/* ============ VA Studios — 3D redesign ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #121010;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4efe9;
  --muted: #a39d97;
  --brand: #c0392b;
  --brand-hi: #e0503f;
  --brand-lo: #7a1a1a;
  --cream: #f9e4d4;

  /* Theme surfaces (dark values; light overrides below) */
  --text-soft: #d6d0ca;
  --gl-glow: #3a0f0b;
  --nav-glass: rgba(10,10,10,.7);
  --menu-bg: rgba(10,10,10,.96);
  --hero-fade-1: rgba(10,10,10,.75);
  --hero-fade-2: rgba(10,10,10,.35);
  --hero-fade-m: rgba(10,10,10,.7);
  --glass: rgba(20,14,14,.45);
  --ghost-bg: rgba(255,255,255,.02);
  --ghost-hover: rgba(255,255,255,.35);
  --glass-btn: rgba(255,255,255,.06);
  --shine: rgba(255,255,255,.12);
  --shadow: rgba(0,0,0,.6);
  --shadow-deep: rgba(0,0,0,.8);
  --card-1: #1b1414; --card-2: #0f0c0c;
  --flip-1: #1c1515; --flip-2: #100c0c;
  --quote-1: rgba(40,20,18,.75); --quote-2: rgba(14,10,10,.75);
  --img-bg: #1a1212;
  --slide-bg: #160f0f;
  --slide-dim: brightness(.55) saturate(.8);
  --client-bg: #f6f2ee;
  --tag-bg: rgba(10,10,10,.8);
  --footer-bg: rgba(8,8,8,.85);
  --backdrop: rgba(5,5,5,.85);
  --grain: 0.06;
  --extrude-diag: 1px 1px 0 #2a2422, 2px 2px 0 #241e1c, 3px 3px 0 #1e1918, 4px 4px 0 #191514, 5px 5px 0 #141110, 6px 6px 0 #100d0c, 10px 18px 30px rgba(0,0,0,.6);
  --extrude-down: 0 1px 0 #2a2422, 0 2px 0 #241e1c, 0 3px 0 #1e1918, 0 4px 0 #191514, 0 5px 0 #141110, 0 6px 0 #100d0c, 0 7px 0 #0c0a09, 0 24px 40px rgba(0,0,0,.6);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2ec;
  --bg-2: #efe7df;
  --surface: rgba(60,30,20,.04);
  --line: rgba(40,20,15,.12);
  --text: #1b1514;
  --muted: #6b615b;
  --brand-hi: #c0392b;
  --text-soft: #3d3532;
  --gl-glow: #f7d6c8;
  --nav-glass: rgba(247,242,236,.78);
  --menu-bg: rgba(247,242,236,.97);
  --hero-fade-1: rgba(247,242,236,.85);
  --hero-fade-2: rgba(247,242,236,.4);
  --hero-fade-m: rgba(247,242,236,.8);
  --glass: rgba(255,255,255,.6);
  --ghost-bg: rgba(255,255,255,.5);
  --ghost-hover: rgba(40,20,15,.35);
  --glass-btn: rgba(255,255,255,.6);
  --shine: rgba(255,255,255,.55);
  --shadow: rgba(90,40,25,.18);
  --shadow-deep: rgba(90,40,25,.25);
  --card-1: #ffffff; --card-2: #f8f1eb;
  --flip-1: #ffffff; --flip-2: #f8f1eb;
  --quote-1: rgba(255,255,255,.85); --quote-2: rgba(250,243,238,.85);
  --img-bg: #efe7df;
  --slide-bg: #ffffff;
  --slide-dim: brightness(.9) saturate(.6) opacity(.75);
  --client-bg: #ffffff;
  --tag-bg: rgba(255,255,255,.85);
  --footer-bg: rgba(255,250,246,.85);
  --backdrop: rgba(247,242,236,.9);
  --grain: 0.035;
  --extrude-diag: 1px 1px 0 #e6dbd2, 2px 2px 0 #ddd0c6, 3px 3px 0 #d4c5ba, 4px 4px 0 #cbbaae, 5px 5px 0 #c2afa2, 6px 6px 0 #b9a496, 10px 18px 30px rgba(90,40,25,.18);
  --extrude-down: 0 1px 0 #e6dbd2, 0 2px 0 #ddd0c6, 0 3px 0 #d4c5ba, 0 4px 0 #cbbaae, 0 5px 0 #c2afa2, 0 6px 0 #b9a496, 0 7px 0 #b0998a, 0 24px 40px rgba(90,40,25,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--brand-hi); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 6px; }

/* WebGL canvas behind everything */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  background: radial-gradient(60% 60% at 70% 40%, var(--gl-glow) 0%, var(--bg) 70%); }
main, footer, .nav { position: relative; z-index: 2; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: var(--max); margin: 0 auto; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(34px, 6vw, 76px); }
h2 em { font-size: 1.08em; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.hint { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .4s var(--ease), background .3s, box-shadow .4s; will-change: transform; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 -3px 0 var(--brand-lo) inset, 0 12px 30px -10px rgba(192,57,43,.7); }
.btn--primary:hover { background: var(--brand-hi); transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 -3px 0 var(--brand-lo) inset, 0 20px 40px -12px rgba(224,80,63,.8); }
.btn--ghost { border: 1px solid var(--line); background: var(--ghost-bg); }
.btn--ghost:hover { border-color: var(--ghost-hover); transform: translateY(-3px); }
.btn--glass { background: var(--glass-btn); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 11px 20px; font-size: 14px; }
.btn--glass:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--xl { padding: 20px 38px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 18px var(--gutter); transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: var(--nav-glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-block: 12px; border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(192,57,43,.4)); }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brand-hi); transform: scaleX(0); transition: transform .4s var(--ease); transform-origin: right; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.theme-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-btn); color: var(--text); cursor: pointer; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.theme-toggle:hover { border-color: var(--brand); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s; }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; padding-top: 110px; padding-bottom: 90px; }
.hero__inner { max-width: 820px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--hero-fade-1) 0%, var(--hero-fade-2) 45%, transparent 65%); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, transparent 20%, var(--hero-fade-m) 55%); } }
.hero__title { font-size: clamp(42px, min(7.4vw, 11.5vh), 112px); line-height: .98; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%) rotateX(-60deg); transform-origin: bottom; opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.is-loaded .hero__title .line > span { transform: none; opacity: 1; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.hero__title em { font-size: 1.1em; }
.hero__sub { max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); margin: 0 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge { position: absolute; right: var(--gutter); bottom: 56px; display: grid; grid-template-columns: auto auto; align-items: baseline; padding: 22px 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: perspective(800px) rotateY(-14deg) rotateX(6deg); box-shadow: 0 30px 60px -20px var(--shadow); }
.hero__badge strong { font: 800 54px/1 var(--f-display); letter-spacing: -0.04em; }
.hero__badge span { font: 800 34px/1 var(--f-display); color: var(--brand-hi); }
.hero__badge small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Clients: tilted 3D marquee ---------- */
.clients { max-width: none; padding-inline: 0; padding-block: 40px 100px; overflow: hidden; perspective: 900px; }
.clients__label { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 36px; }
.clients__stage { padding-block: 30px; transform: rotateX(16deg) rotateZ(-3deg) scale(1.04); -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.clients__track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.clients__stage:hover .clients__track { animation-play-state: paused; }
.client { flex: none; width: 180px; height: 96px; display: grid; place-items: center; padding: 18px 26px; border-radius: 18px; background: var(--client-bg); box-shadow: 0 1px 0 #fff inset, 0 -4px 0 #d9d1ca inset, 0 20px 30px -18px var(--shadow-deep); transition: transform .4s var(--ease); }
.client:hover { transform: translateY(-8px); }
.client--dark { background: linear-gradient(160deg, #2a1d1c, #151010); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 -4px 0 #0a0707 inset, 0 20px 30px -18px rgba(0,0,0,.8); }
.client img { max-height: 58px; width: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- About: extruded 3D words ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__words { display: flex; flex-direction: column; perspective: 1000px; }
.word3d { position: relative; font: 800 clamp(38px, 7vw, 96px)/1.05 var(--f-display); letter-spacing: -0.04em; color: var(--text); transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease);
  text-shadow: var(--extrude-diag); }
.word3d--accent { color: var(--brand);
  text-shadow: 1px 1px 0 #a93226, 2px 2px 0 #9a2d22, 3px 3px 0 #8b281e, 4px 4px 0 #7a1a1a, 5px 5px 0 #6a1616, 6px 6px 0 #5a1212, 10px 18px 30px rgba(120,20,15,.5); }
.about__copy p { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-soft); margin: 0 0 28px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--surface); }

/* ---------- Tilt (shared) ---------- */
.tilt { transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .5s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--shine), transparent 40%); opacity: 0; transition: opacity .4s; }
.tilt:hover::after { opacity: 1; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-svc { position: relative; border-radius: var(--radius); background: linear-gradient(160deg, var(--card-1), var(--card-2)); border: 1px solid var(--line); padding: 14px; box-shadow: 0 30px 60px -30px var(--shadow-deep); }
.card-svc:hover { box-shadow: 0 40px 80px -30px rgba(192,57,43,.45); }
.card-svc__img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; transform: translateZ(40px); background: var(--img-bg); }
.card-svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-svc__img--contain { background: #f6f2ee; }
.card-svc__img--contain img { object-fit: contain; padding: 0; }
.card-svc:hover .card-svc__img img { transform: scale(1.06); }
.card-svc__body { padding: 20px 8px 10px; transform: translateZ(60px); }
.card-svc__num { font: 600 12px/1 var(--f-display); color: var(--brand-hi); }
.card-svc h3 { font-size: 22px; margin: 10px 0 8px; }
.card-svc p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Portfolio carousel (CSS 3D cylinder) ---------- */
.work { max-width: none; overflow: hidden; }
.work .section-head { max-width: var(--max); margin-inline: auto; }
.carousel { --card-w: clamp(200px, 22vw, 300px); height: calc(var(--card-w) * 1.6); perspective: 1600px; perspective-origin: 50% 40%; cursor: grab; touch-action: pan-y; user-select: none; position: relative; outline: none; }
.carousel:active { cursor: grabbing; }
.carousel__ring { position: absolute; left: 50%; top: 0; width: var(--card-w); height: 100%; margin-left: calc(var(--card-w) / -2); transform-style: preserve-3d; }
.slide { position: absolute; inset: 0; height: calc(var(--card-w) * 1.33); border-radius: 20px; overflow: hidden; backface-visibility: hidden; background: var(--slide-bg); border: 1px solid var(--line); box-shadow: 0 40px 70px -30px var(--shadow-deep); transition: filter .5s, opacity .5s; -webkit-box-reflect: below 14px linear-gradient(transparent 70%, rgba(0,0,0,.25)); }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slide--contain img { object-fit: contain; background: #fff; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85)); z-index: 1; }
.slide__meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.slide__meta small { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--brand); margin-bottom: 8px; }
.slide__meta strong { display: block; font: 600 16px/1.25 var(--f-display); }
.slide__meta span { color: #cfc8c2; font-size: 13px; }
.slide:not(.is-front) { filter: var(--slide-dim); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 24px; }
.carousel__caption { min-width: 220px; text-align: center; margin: 0; color: var(--muted); font-size: 14px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; transition: background .3s, transform .3s var(--ease); }
.round-btn:hover { background: var(--brand); color: #fff; transform: scale(1.08); }

/* ---------- Why: bento grid ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reason { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; min-height: 270px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--flip-1), var(--flip-2)); border: 1px solid var(--line); box-shadow: 0 24px 50px -30px var(--shadow); }
.reason:hover { box-shadow: 0 34px 70px -34px rgba(192,57,43,.45); }
.reason__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.reason__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--brand-hi);
  background: color-mix(in srgb, var(--brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  transition: background .4s, color .4s, transform .6s var(--ease); }
.reason__icon svg { width: 24px; height: 24px; }
.reason:hover .reason__icon { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.06); }
.reason__num { font: 600 13px/1 var(--f-display); letter-spacing: .06em; color: var(--muted); }
.reason h3 { margin-top: 28px; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.15; letter-spacing: -0.02em; }
.reason p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Feature card: big, red, with a giant outlined number */
.reason--feature { grid-column: span 2; grid-row: span 2; padding: clamp(28px, 3.5vw, 48px); color: #fff; border-color: transparent;
  background: radial-gradient(120% 90% at 0% 0%, var(--brand-hi), var(--brand) 45%, var(--brand-lo)); box-shadow: 0 40px 80px -40px rgba(192,57,43,.75); }
.reason--feature > :not(.reason__big) { position: relative; z-index: 1; }
.reason--feature .reason__icon { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.reason--feature:hover .reason__icon { background: #fff; color: var(--brand); }
.reason--feature .reason__num { display: none; } /* the giant outlined number already says it */
.reason--feature h3 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1; letter-spacing: -0.035em; max-width: 10ch; }
.reason--feature p { color: rgba(255,255,255,.88); font-size: clamp(16px, 1.3vw, 18px); max-width: 34ch; }
.reason__big { position: absolute; right: -0.04em; top: -0.12em; font: 800 clamp(170px, 21vw, 300px)/1 var(--f-display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.25); pointer-events: none; user-select: none; }

/* Wide card: text on the left, a growing bar chart on the right */
.reason--wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(240px, 42%); align-items: end; gap: clamp(24px, 5vw, 72px); }
.reason__text { display: flex; flex-direction: column; gap: 12px; }
.reason--wide .reason__top { margin-bottom: 0; justify-content: flex-start; gap: 16px; }
.reason--wide h3 { margin-top: 20px; }
.reason__chart { display: flex; align-items: flex-end; gap: clamp(6px, 1vw, 12px); height: 150px; }
.reason__chart span { flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--brand-hi), var(--brand-lo));
  transform: scaleY(.08); transform-origin: bottom; transition: transform 1.2s var(--ease); }
.reason__chart span:nth-child(-n+3) { opacity: .35; }
.reason__chart span:nth-child(n+4):nth-child(-n+5) { opacity: .65; }
.reason.in .reason__chart span { transform: scaleY(1); }
.reason__chart span:nth-child(2) { transition-delay: .06s; } .reason__chart span:nth-child(3) { transition-delay: .12s; }
.reason__chart span:nth-child(4) { transition-delay: .18s; } .reason__chart span:nth-child(5) { transition-delay: .24s; }
.reason__chart span:nth-child(6) { transition-delay: .3s; }  .reason__chart span:nth-child(7) { transition-delay: .36s; }

/* ---------- Testimonials ---------- */
.voices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { position: relative; margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: linear-gradient(160deg, var(--quote-1), var(--quote-2)); box-shadow: 0 30px 60px -36px var(--shadow); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.quote::before { content: "“"; position: absolute; top: -10px; right: 28px; font: 400 160px/1 var(--f-serif); color: var(--brand); opacity: .35; transform: translateZ(30px); }
.quote blockquote { margin: 0 0 32px; font: 400 clamp(20px, 2vw, 26px)/1.4 var(--f-body); letter-spacing: -0.01em; transform: translateZ(40px); }
.quote figcaption { display: flex; align-items: center; gap: 14px; transform: translateZ(25px); }
.quote figcaption img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: #f6f2ee; padding: 6px; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.founder__photo { position: relative; border-radius: 28px; aspect-ratio: 928 / 1120; }
.founder__frame { position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(150deg, var(--brand-hi), var(--brand-lo)); transform: translateZ(-40px) translate(18px, 18px); }
.founder__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; transform: translateZ(20px); background: var(--img-bg); }
.founder__tag { position: absolute; left: -16px; bottom: 32px; padding: 12px 18px; border-radius: 14px; background: var(--tag-bg); border: 1px solid var(--line); font: 600 13px/1 var(--f-display); transform: translateZ(80px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.founder__copy h2 { font-size: clamp(32px, 4.5vw, 58px); margin-bottom: 28px; }
.founder__copy > p { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-soft); }
.founder__name { margin-top: 32px; display: flex; flex-direction: column; }
.founder__name span { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding-block: clamp(120px, 16vw, 220px); }
.cta__title { perspective: 1000px; margin-bottom: 56px; }
.extrude { display: block; font: 800 clamp(38px, 8.5vw, 120px)/1.02 var(--f-display); letter-spacing: -0.045em;
  text-shadow: var(--extrude-down);
  transform: rotateX(var(--rx, 18deg)); transition: transform .3s linear; }
.extrude--accent { color: var(--brand);
  text-shadow: 0 1px 0 #a93226, 0 2px 0 #9a2d22, 0 3px 0 #8b281e, 0 4px 0 #7a1a1a, 0 5px 0 #6a1616, 0 6px 0 #5a1212, 0 7px 0 #4a0f0f, 0 24px 40px rgba(120,20,15,.55); }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--footer-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 72px var(--gutter) 32px; }
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1.4fr .8fr; gap: 40px; }
.footer__brand img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 300px; margin: 0; font-size: 14px; }
.footer h4 { font: 600 13px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--brand-hi); }
.footer__bottom { max-width: var(--max); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: var(--backdrop); backdrop-filter: blur(8px); }
.lightbox[open] { animation: pop .5s var(--ease); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 16px; }
.lightbox p { text-align: center; margin: 14px 0 0; color: var(--muted); }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; z-index: 1; }
@keyframes pop { from { opacity: 0; transform: perspective(800px) rotateX(20deg) scale(.9); } }

/* ---------- Scroll reveal (3D) ---------- */
.reveal { opacity: 0; transform: perspective(1000px) translateY(60px) rotateX(-18deg); transform-origin: 50% 100%; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tilt.reveal.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.word3d { opacity: 0; transform: translateZ(-200px) rotateX(70deg); transition: transform 1.2s var(--ease), opacity 1s var(--ease); transform-origin: 50% 100%; }
.word3d.in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.word3d:nth-child(2) { transition-delay: .1s; } .word3d:nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .reason--feature { grid-row: auto; min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 28px; background: var(--menu-bg); font: 600 28px/1 var(--f-display); color: var(--text); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .hero { padding-top: 38svh; justify-content: flex-start; }
  .hero::before { display: none; }
  .hero__badge { position: static; margin-top: 40px; align-self: flex-start; transform: perspective(800px) rotateY(-10deg); }
  .about, .founder, .voices__grid { grid-template-columns: 1fr; }
  .services__grid, .why__grid { grid-template-columns: 1fr; }
  .reason { min-height: 0; }
  .reason--feature { grid-column: auto; min-height: 320px; }
  .reason--wide { grid-template-columns: 1fr; }
  .reason__chart { height: 110px; }
  .client { width: 140px; height: 76px; padding: 14px 18px; }
  .client img { max-height: 44px; }
  .founder__tag { left: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .slide { -webkit-box-reflect: unset; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .clients__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; transform: none; }
}
