/* ==========================================================================
   Rizz Digital Solutions — site styles
   ========================================================================== */

:root {
  --bg: #0b0d10;
  --bg-2: #111418;
  --surface: #161a20;
  --surface-2: #1c2128;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fa;
  --muted: #9aa4b2;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: "Fraunces", Georgia, serif;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
  white-space: nowrap;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #041014; box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px var(--accent-glow); background: #5ee3f5; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--accent); color: #041014; border-color: var(--accent); transform: scale(1.06); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; background: rgba(34, 211, 238, .1); color: var(--accent); border: 1px solid rgba(34, 211, 238, .25); }

/* ---------- 1. Header ---------- */
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu. */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 13, 16, .6);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before, body.nav-open .site-header::before { background: rgba(11, 13, 16, .92); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; }
.brand-tag { font-family: var(--font-head); font-weight: 500; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #c3cad4; margin-top: 3px; white-space: nowrap; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav > ul { display: flex; align-items: center; gap: 30px; }
.primary-nav > ul > li > a, .dropdown-trigger {
  position: relative; font-size: .95rem; font-weight: 400; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; transition: color .25s;
}
.primary-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.primary-nav > ul > li > a:hover, .dropdown-trigger:hover, .dropdown-trigger[aria-expanded="true"] { color: var(--text); }
.primary-nav > ul > li > a:hover::after { transform: scaleX(1); transform-origin: left; }
.dropdown-trigger svg { transition: transform .3s var(--ease); }
.dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 290px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius-sm); transition: background .2s; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--surface-2); }
.dd-title { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.dropdown a:hover .dd-title { color: var(--accent); }
.dd-sub { font-size: .82rem; color: var(--muted); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 2. Hero ---------- */
.hero { position: relative; padding: 90px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -20% 0 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -120px; opacity: .28; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -160px; left: -140px; opacity: .22; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; min-height: 560px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 24px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.hero-stats span { font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; }
.mock-window {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 211, 238, .06), 0 0 80px -20px var(--accent-glow);
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  transition: transform .8s var(--ease);
}
.hero-visual:hover .mock-window { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3039; }
.mock-bar i:first-child { background: var(--accent); }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); font-family: ui-monospace, monospace; }
.mock-body { padding: 22px; display: grid; gap: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-kpis div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.mock-kpis small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.mock-kpis b { font-family: var(--font-head); font-size: 1.25rem; }
.mock-kpis em { font-style: normal; font-size: .75rem; color: var(--accent); }
.mock-chart { width: 100%; height: 120px; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock-ads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ad-tile { aspect-ratio: 4 / 5; border-radius: 10px; }
.t1 { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.t2 { background: linear-gradient(135deg, #3b82f6, #1e1b4b); }
.t3 { background: linear-gradient(135deg, #f5f7fa, #64748b); }
.float-chip {
  position: absolute; padding: 10px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: rgba(22, 26, 32, .9); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); animation: float 6s ease-in-out infinite;
}
.chip-1 { left: -30px; bottom: 60px; color: var(--accent); }
.chip-2 { right: -10px; top: -18px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.logo-strip { position: relative; display: flex; align-items: center; gap: 40px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.logo-strip > span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.logo-strip ul { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.logo-strip li { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #5b6573; transition: color .3s; }
.logo-strip li:hover { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 3. Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, opacity .9s var(--ease);
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(34, 211, 238, .14), transparent 60%);
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); }
.cap-card:hover::before { opacity: 1; }
.cap-card > * { position: relative; }
.cap-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .2);
  transition: background .4s, transform .5s var(--ease);
}
.cap-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.cap-card:hover .cap-icon { background: var(--accent); transform: rotate(-6deg) scale(1.05); }
.cap-card:hover .cap-icon svg { stroke: #041014; }
.cap-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.cap-card p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.cap-link { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--accent); display: inline-flex; gap: 8px; }
.cap-link span { transition: transform .3s var(--ease); }
.cap-card:hover .cap-link span { transform: translateX(5px); }

/* ---------- How we work: Phase 1 ---------- */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; position: relative; }
.process-steps::before {
  content: ""; position: absolute; top: 118px; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent); opacity: .5; z-index: 0;
}
.step {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 30px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, opacity .9s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step-num { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step-time { font-size: .78rem; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }
.step-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid rgba(34, 211, 238, .45); box-shadow: 0 0 0 6px var(--surface), 0 0 24px -4px var(--accent-glow);
  transition: background .4s;
}
.step-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.step:hover .step-icon { background: var(--accent); }
.step:hover .step-icon svg { stroke: #041014; }
.step h3 { font-size: 1.4rem; }
.step > p { color: var(--muted); font-size: .98rem; }
.step-list { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.step-list li { position: relative; padding-left: 22px; color: #c3cad4; }
.step-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent); }
.step-list strong { color: var(--text); font-weight: 500; }

/* ---------- 4. Portfolio ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--muted); transition: all .3s; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 500; }

.work-scroller {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 30px;
  scroll-padding-inline: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  scrollbar-width: none;
}
.work-scroller::-webkit-scrollbar { display: none; }
.work-card {
  position: relative; flex: 0 0 min(460px, 82vw); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  scroll-snap-align: start; border: 1px solid var(--line);
  transition: opacity .5s var(--ease), transform .5s var(--ease), flex-basis .5s var(--ease);
}
.work-card.is-hidden { display: none; }
.work-art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1s var(--ease); }
.work-card:hover .work-art { transform: scale(1.07); }
/* Featured case study with a real project image; 4:3 at the same height as the 4:5 cards */
.work-card.is-featured { flex-basis: min(767px, 88vw); aspect-ratio: 4 / 3; }
.work-photo { background: #8fa38c; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
@media (max-width: 640px) { .work-card.is-featured { flex-basis: 82vw; aspect-ratio: 4 / 5; } }
.work-photo.work-photo-top { background: var(--surface); place-items: start stretch; }
.work-photo-top img {
  height: 62%; object-position: top center;
  -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent);
}
/* Before / after product transformation card */
.work-split { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 100%; place-items: stretch; gap: 3px; background: var(--bg); }
.work-split figure { position: relative; margin: 0; overflow: hidden; height: 100%; }
.work-split figure:first-child { background: #fff; }
.work-split img { width: 100%; height: 100%; object-fit: cover; }
.work-split figure:first-child img { object-fit: contain; }
.work-split figcaption {
  position: absolute; top: 18px; left: 14px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11, 13, 16, .78); color: var(--text);
}
.work-split figcaption.is-after { background: var(--accent); color: #041014; }
.play-badge {
  position: absolute; top: 22px; right: 22px;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px;
  background: rgba(34, 211, 238, .92); color: #041014; font-size: 1.6rem; box-shadow: 0 0 40px var(--accent-glow);
}
.post-thumb { overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-word { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.04em; color: rgba(255, 255, 255, .92); text-align: center; padding: 0 20px; mix-blend-mode: overlay; }
.art-1 { background: radial-gradient(circle at 20% 20%, #22d3ee 0, transparent 45%), radial-gradient(circle at 80% 80%, #3b82f6 0, transparent 50%), #0f172a; }
.art-2 { background: radial-gradient(circle at 70% 30%, #f97316 0, transparent 45%), radial-gradient(circle at 20% 90%, #dc2626 0, transparent 50%), #1c0d08; }
.art-3 { background: linear-gradient(160deg, #134e4a 0%, #0f766e 40%, #0b0d10 100%); }
.art-4 { background: radial-gradient(circle at 30% 70%, #a16207 0, transparent 50%), linear-gradient(135deg, #292524, #0c0a09); }
.art-5 { background: conic-gradient(from 200deg at 60% 40%, #6366f1, #22d3ee, #0b0d10, #6366f1); }

.work-overlay {
  position: absolute; inset: 0; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  background: linear-gradient(to top, rgba(8, 10, 12, .96) 0%, rgba(8, 10, 12, .6) 45%, transparent 75%);
}
.work-overlay h3 { font-size: 1.8rem; }
.work-overlay p, .work-overlay .btn { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.work-overlay p { color: #c3cad4; font-size: .98rem; max-height: 0; }
.work-overlay .btn { align-self: flex-start; transition-delay: .05s; }
.work-card:hover .work-overlay p, .work-card:focus-within .work-overlay p { opacity: 1; transform: none; max-height: 200px; }
.work-card:hover .work-overlay .btn, .work-card:focus-within .work-overlay .btn { opacity: 1; transform: none; }
.work-overlay .tag { align-self: flex-start; }

.scroller-controls { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.scroll-progress { flex: 1; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.scroll-progress span { display: block; height: 100%; width: 20%; background: var(--accent); transition: width .2s linear; }

/* ---------- 5. Why + Testimonials ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-bottom: 90px; }
.why-col { padding: 40px 36px 40px 0; border-right: 1px solid var(--line); }
.why-col + .why-col { padding-left: 36px; }
.why-col:last-child { border-right: 0; }
.why-num { font-family: var(--font-head); font-size: .9rem; color: var(--accent); display: block; margin-bottom: 24px; }
.why-col h3 { font-size: 1.5rem; margin-bottom: 14px; }
.why-col p { color: var(--muted); }

.testimonials {
  position: relative; padding: 60px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.testimonials::before { content: "“"; position: absolute; top: -40px; right: 40px; font-family: var(--font-head); font-size: 16rem; line-height: 1; color: rgba(34, 211, 238, .08); }
.t-track { position: relative; display: grid; }
.t-slide { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateX(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.t-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.t-slide blockquote { margin: 0 0 32px; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 900px; }
.t-slide figcaption { display: flex; align-items: center; gap: 14px; }
.t-slide figcaption small { display: block; color: var(--muted); font-size: .88rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #041014; font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.t-controls { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); transition: width .4s var(--ease), background .3s; }
.t-dots button[aria-selected="true"] { width: 32px; background: var(--accent); }

/* ---------- 6. Insights ---------- */
.insights-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post-thumb { aspect-ratio: 16 / 11; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .6s var(--ease); }
.post:hover .post-thumb { transform: translateY(-5px); }
.pt-1 { background: radial-gradient(circle at 70% 30%, rgba(34, 211, 238, .6), transparent 55%), var(--surface-2); }
.pt-2 { background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, .6), transparent 55%), var(--surface-2); }
.pt-3 { background: linear-gradient(135deg, rgba(34, 211, 238, .35), transparent 60%), repeating-linear-gradient(90deg, transparent 0 22px, var(--line) 22px 23px), var(--surface-2); }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); }
.post h3 { font-size: 1.2rem; line-height: 1.3; }
.post h3 a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.post:hover h3 a { background-size: 100% 2px; color: var(--accent); }
.post p { color: var(--muted); font-size: .95rem; }

.newsletter {
  position: sticky; top: 100px; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34, 211, 238, .12), rgba(59, 130, 246, .05) 60%), var(--surface);
  border: 1px solid rgba(34, 211, 238, .25);
}
.newsletter h3 { font-size: 1.5rem; margin-bottom: 10px; }
.newsletter > p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.nl-form { display: grid; gap: 12px; }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 16px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239aa4b2' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #5b6573; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); background: rgba(34, 211, 238, .03); }
.is-invalid { border-color: #f87171 !important; }
.form-msg { font-size: .88rem; min-height: 1.2em; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #f87171; }

/* ---------- 7. Footer ---------- */
.site-footer { background: var(--bg); padding-bottom: 30px; }
.marquee { display: block; overflow: hidden; padding: 50px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(3.5rem, 10vw, 8.5rem); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35); transition: color .4s, -webkit-text-stroke-color .4s;
}
.marquee:hover .marquee-track span { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.marquee-track i { font-style: normal; font-size: clamp(2rem, 5vw, 4rem); color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 50px; padding-top: 80px; padding-bottom: 70px; }
.footer-brand > p { color: var(--muted); margin: 20px 0 28px; max-width: 320px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; font-size: .95rem; }
.contact-list span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; padding-top: 3px; }
.contact-list a { transition: color .25s; }
.contact-list a:hover { color: var(--accent); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: 1rem; margin-bottom: 20px; }
.footer-links ul { display: grid; gap: 12px; }
.footer-links a { color: var(--muted); font-size: .95rem; transition: color .25s, padding-left .3s var(--ease); }
.footer-links a:hover { color: var(--text); padding-left: 6px; }
.contact-form { display: grid; gap: 14px; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-form h4 { margin-bottom: 4px; font-size: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: .8rem; transition: all .3s; }
.socials a:hover { background: var(--accent); color: #041014; border-color: var(--accent); transform: translateY(-3px); }
.back-top:hover { color: var(--accent); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 36px 32px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, opacity .9s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); }
.price-card h3 { font-size: 1.35rem; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.price .currency { font-size: 1.3rem; font-weight: 600; color: var(--muted); vertical-align: top; margin-right: 4px; letter-spacing: 0; }
.price .per { font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-note { color: var(--muted); font-size: .9rem; }
.price-list { display: grid; gap: 12px; margin: 18px 0 28px; padding-top: 20px; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.price-list li { position: relative; padding-left: 28px; color: #c3cad4; font-size: .98rem; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.price-list strong { color: var(--text); font-weight: 500; }
.price-card.is-recommended {
  background: linear-gradient(160deg, rgba(34, 211, 238, .12), rgba(59, 130, 246, .05) 60%), var(--surface);
  border-color: rgba(34, 211, 238, .45); box-shadow: 0 30px 80px -30px var(--accent-glow);
}
.price-badge {
  position: absolute; top: -14px; left: 32px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent); color: #041014; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .04em;
}
.price-monthly { background: transparent; border-style: dashed; border-color: var(--line-strong); }

/* ---------- Client intake page ---------- */
.intake { padding-top: 70px; }
.intake-layout { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: start; }
.intake-aside { position: sticky; top: 110px; display: grid; gap: 24px; }
.intake-aside h1 { font-size: clamp(2.2rem, 4vw, 3rem); text-wrap: balance; }
.intake-aside .lead { font-size: 1.02rem; margin: 0; }
.intake-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
.intake-progress a { display: block; padding: 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; transition: color .25s, border-color .25s; }
.intake-progress a:hover, .intake-progress a.is-current { color: var(--text); border-left-color: var(--accent); }
.intake-next { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.intake-next h2 { font-size: 1.05rem; color: var(--text); }
.intake-next strong { color: var(--text); font-weight: 500; }

.intake-form { display: grid; gap: 22px; }
.intake-form fieldset { margin: 0; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; min-width: 0; scroll-margin-top: 100px; }
.intake-form legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; display: flex; align-items: baseline; gap: 12px; }
.intake-form legend span { font-size: .8rem; color: var(--accent); letter-spacing: .12em; }
.intake-form legend small { font-family: var(--font-body); font-weight: 300; font-size: .85rem; color: var(--muted); }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: .9rem; color: #c3cad4; background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .25); }
.notice strong { color: var(--accent); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 14px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--muted); transition: all .25s; }
.chip:hover span { color: var(--text); border-color: var(--text); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #041014; font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.is-invalid-group { outline: 1px solid #f87171; outline-offset: 6px; }
input[type="date"] { color-scheme: dark; }

.intake-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.intake-submit .form-msg { flex-basis: 100%; }
.intake-footer { padding-top: 20px; }
.intake-footer .footer-bottom a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav, .primary-nav > ul { gap: 20px; }
  .insights-layout { grid-template-columns: 1fr; }
  .newsletter { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 76px 0 0; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 30px 24px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav > ul > li > a, .dropdown-trigger { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 1.25rem; font-family: var(--font-head); color: var(--text); }
  .primary-nav > ul > li > a::after { display: none; }
  .dropdown { position: static; width: auto; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; }
  .has-dropdown:hover .dropdown { transform: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .nav-cta { align-self: stretch; padding: 16px; }
  body.nav-open { overflow: hidden; }

  .hero { padding-top: 50px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 60px; }
  .hero-visual { max-width: 520px; }
  .mock-window { transform: none; }
  .chip-1 { left: 10px; }
  .logo-strip { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; gap: 28px; }
  .intake-layout { grid-template-columns: 1fr; gap: 36px; }
  .intake-aside { position: static; }
  .intake-progress { display: none; }
  .process-steps::before { top: 32px; bottom: 32px; left: 58px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
  .why-grid { grid-template-columns: 1fr; }
  .why-col, .why-col + .why-col { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-stats { gap: 26px; }
  .hero-stats strong { font-size: 1.8rem; }
  .cap-grid, .post-grid, .field-row, .footer-grid, .footer-links { grid-template-columns: 1fr; }
  .field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .intake-form fieldset { padding: 22px 18px; }
  .brand-name { font-size: 1.5rem; }
  .intake-page .nav-wrap .btn { padding: 9px 14px; }
  .work-scroller { padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; }
  .testimonials { padding: 36px 24px; }
  .footer-grid { padding-top: 60px; gap: 40px; }
  .contact-form { padding: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Touch devices: always show portfolio overlay copy */
@media (hover: none) {
  .work-overlay p, .work-overlay .btn { opacity: 1; transform: none; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Insight article pages ---------- */
/* Whole blog card is clickable via its title link */
.post { position: relative; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.article-wrap { padding: 70px 0 100px; }
.article { max-width: 780px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.article h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 22px 0 20px; text-wrap: balance; }
.article-lead { font-size: 1.2rem; color: #c3cad4; }
.article-byline { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.article-hero { margin: 36px 0 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-hero img { width: 100%; height: auto; }
.article-body h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.article-body p { color: #c3cad4; margin-bottom: 16px; }
.article-body ul { display: grid; gap: 12px; margin: 0 0 18px; }
.article-body li { position: relative; padding-left: 26px; color: #c3cad4; }
.article-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--accent); }
.article-body strong { color: var(--text); font-weight: 500; }
.article-cta {
  margin-top: 56px; padding: 32px; border-radius: var(--radius); display: grid; gap: 12px; justify-items: start;
  background: linear-gradient(160deg, rgba(34, 211, 238, .12), rgba(59, 130, 246, .05) 60%), var(--surface);
  border: 1px solid rgba(34, 211, 238, .25);
}
.article-cta h2 { font-size: 1.5rem; }
.article-cta p { color: var(--muted); }

/* ---------- Thank-you page (after form submission) ---------- */
.thanks { min-height: calc(100vh - 80px); display: grid; place-items: center; padding-block: 60px; }
.thanks-card {
  max-width: 620px; text-align: center; display: grid; gap: 16px; justify-items: center;
  padding: 48px 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(34, 211, 238, .25);
  box-shadow: 0 30px 80px -30px var(--accent-glow);
}
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #041014; font-size: 2rem; font-weight: 700; }
.thanks-card h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-wrap: balance; }
.thanks-card p { color: #c3cad4; }
.thanks-contact { font-size: .95rem; color: var(--muted) !important; }
.thanks-contact a { color: var(--accent); }
.thanks-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Long client reviews: headline line + smaller body text */
.t-headline { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--accent); margin-bottom: 14px; }
.t-slide-long blockquote { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 400; line-height: 1.6; color: #c3cad4; max-width: 980px; }
.t-slide figcaption small a { color: var(--accent); }
