/* =========================================================
   Yatin Vohra — Founder & Developer
   Charcoal · glowing orange ribbons · cream panels
   ========================================================= */

:root {
  --bg: #0e0e0f;
  --bg-2: #141415;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f2ed;
  --soft: #a9a59e;
  --faint: #6f6c67;

  --accent: #ff5a1f;
  --accent-2: #ff7a3d;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --accent-glow: rgba(255, 90, 31, 0.45);

  --cream: #f3eee7;
  --cream-2: #faf7f2;
  --cream-ink: #161514;
  --cream-soft: #625d56;
  --cream-line: rgba(22, 21, 20, 0.09);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --hand: "Caveat", cursive;

  --r-lg: 30px;
  --r: 22px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.container { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--faint); font-weight: 400; }
.accent { color: var(--accent); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__glow { position: absolute; border-radius: 50%; will-change: transform; }
.ambient__glow--1 { width: 80vw; height: 80vw; right: -35vw; top: -35vw; background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), rgba(255, 90, 31, 0.06) 55%, transparent); animation: drift1 30s var(--ease-soft) infinite alternate; }
.ambient__glow--2 { width: 70vw; height: 70vw; left: -33vw; bottom: -33vw; background: radial-gradient(closest-side, rgba(255, 110, 50, 0.1), rgba(255, 110, 50, 0.04) 55%, transparent); animation: drift2 38s var(--ease-soft) infinite alternate; }
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(10vw, -8vh) scale(0.9); } }

.glow-cursor {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.1), transparent 65%);
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.glow-cursor.is-on { opacity: 1; }

/* ---------- ribbons ---------- */
.ribbon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ribbon-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 60%; will-change: transform; }
.rb--silk { opacity: 0.9; animation: silk 22s var(--ease-soft) infinite alternate; }
.rb--lines, .rb--flow { animation: sway 18s var(--ease-soft) infinite alternate; }
.ribbons .line { fill: none; stroke: url(#rb-grad); stroke-linecap: round; }
.ribbons .l1 { stroke-width: 2.4; }
.ribbons .l2 { stroke-width: 1.4; opacity: 0.75; }
.ribbons .l3 { stroke-width: 1; opacity: 0.5; }
.ribbons .l4 { stroke-width: 0.8; opacity: 0.3; }
.ribbons .l5 { stroke-width: 1.6; opacity: 0.7; }
.ribbons .l6 { stroke-width: 0.8; opacity: 0.35; }
.ribbons .glow { fill: none; stroke: #ff5a1f; stroke-width: 10; opacity: 0.45; filter: url(#rb-glow); }
.ribbons .pulse {
  fill: none; stroke: #ffd2b8; stroke-width: 2.2; stroke-linecap: round; opacity: 0.9;
  stroke-dasharray: 140 2400; stroke-dashoffset: 2540;
  animation: pulse 9s var(--ease-soft) infinite;
}
@keyframes sway { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-30px, 24px) rotate(-1.6deg); } }
@keyframes silk { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -30px) scale(1.06); } }
@keyframes pulse { to { stroke-dashoffset: 0; } }
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

.ribbon-wrap--hero { z-index: 0; opacity: 0.8; mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); }
.ribbon-wrap--hero .ribbons { transform: translateY(6%); }
.ribbon-wrap--feature { opacity: 0.85; }
.ribbon-wrap--feature .ribbons { transform: scale(1.1) translate(12%, 8%); }
.ribbon-wrap--contact { mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 75%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 75%, transparent 100%); }
.ribbon-wrap--contact .ribbons { transform: scaleX(-1) translateY(12%); }

/* halftone dots */
.halftone {
  position: absolute; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 90, 31, 0.55) 1.3px, transparent 1.8px);
  background-size: 11px 11px;
}
.halftone--stats { inset: -20% -10% -40% 50%; mask-image: radial-gradient(ellipse 50% 50% at 60% 50%, rgba(0, 0, 0, 0.45), transparent 70%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 60% 50%, rgba(0, 0, 0, 0.45), transparent 70%); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--accent { background: linear-gradient(180deg, #ff6a30, #ff5a1f); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 90, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--soft { background: rgba(255, 255, 255, 0.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--soft:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn--dark { background: var(--cream-ink); color: #fff; }
.btn__arrow { display: inline-grid; transition: transform 0.6s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link { color: var(--accent); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size 0.6s var(--ease); }
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- labels & heads ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft);
}
.label::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--accent); box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 6px var(--accent);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.05; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.section-title .serif { font-size: 1.08em; letter-spacing: -0.015em; }
.section-sub { margin-top: 18px; font-size: 1.08rem; color: var(--soft); max-width: 520px; }
.section-head--split .section-sub { margin-top: 0; }

.note { font-family: var(--hand); font-weight: 500; line-height: 1.1; color: #e9e3da; }

/* ---------- motion primitives ---------- */
/* hero content animates in with pure CSS, so it paints without waiting for JavaScript */
.fade { animation: fadeUp 1.1s var(--ease) var(--d, 0s) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

[data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.25em; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .w__i {
  display: inline-block; opacity: 0; transform: translateY(55%);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 0.06s + var(--d, 0s));
}
[data-split].is-in .w__i { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__pill {
  pointer-events: auto; max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(20, 20, 21, 0.5);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.8s var(--ease), box-shadow 0.8s var(--ease), transform 0.8s var(--ease);
}
.nav.is-scrolled .nav__pill { background: rgba(20, 20, 21, 0.82); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 40px -14px rgba(0, 0, 0, 0.8); }
.nav.is-hidden .nav__pill { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.brand__mark { color: #fff; display: grid; transition: color 0.6s var(--ease), transform 1s var(--ease); }
.brand__mark path { stroke: var(--bg); }
.brand:hover .brand__mark { color: var(--accent); transform: rotate(-12deg); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--soft); transition: color 0.4s, background 0.4s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; border-radius: 50%; background: var(--accent); }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform 0.6s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 24.5px; }
.nav.menu-open .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.menu-open .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: none; pointer-events: none; position: fixed; inset: 0; z-index: -1;
  flex-direction: column; justify-content: center; gap: 2px; padding: 100px var(--gutter) 40px;
  background: rgba(14, 14, 15, 0.98);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.mobile-menu a:not(.btn) { font-family: var(--display); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; padding: 6px 0; transform: translateY(16px); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.mobile-menu .btn { margin-top: 24px; }
.nav.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.nav.menu-open .mobile-menu a { transform: none; opacity: 1; }
.nav.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
.nav.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
.nav.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }
.nav.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.2s; }
.nav.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.25s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(120px, 15vh, 160px) 0 clamp(60px, 8vh, 90px); overflow: hidden; isolation: isolate; }
.hero__grid { position: relative; z-index: 2; display: block; }
.hero__copy { max-width: 640px; }

/* full-bleed portrait that melts into the page */
.hero__media { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(64vw, 1200px); pointer-events: none; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%;
  animation: heroIn 2.4s var(--ease) both;
}
/* fade to transparent (not to a flat colour) so it melts into the glows & ribbons behind */
.hero__media {
  --fade-x: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 12%, rgba(0, 0, 0, 0.75) 28%, #000 46%);
  --fade-y: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 16%, #000 70%, transparent 100%);
}
.hero__media img {
  -webkit-mask-image: var(--fade-x), var(--fade-y); mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
@keyframes heroIn { from { transform: scale(1.06); } }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.86rem; font-weight: 500; color: #ddd8d0;
}
.chip__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.chip__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: #3ddc84; opacity: 0.3; animation: breathe 3.2s var(--ease-soft) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 50% { transform: scale(1.3); opacity: 0; } }

.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.9rem, 6.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.hero__title .serif { font-size: 1.1em; }
.underline-word { position: relative; display: inline-block; }
.squiggle { position: absolute; left: -2%; bottom: -0.08em; width: 100%; height: 0.24em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.8s var(--ease) 1.1s; }
.is-in .squiggle path { stroke-dashoffset: 0; }

.hero__lead { margin-top: 26px; max-width: 540px; font-size: clamp(1.05rem, 1.35vw, 1.16rem); color: var(--soft); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; margin-top: 44px; }
.hero__trust li { display: grid; gap: 2px; padding: 0 34px; border-left: 1px solid var(--line-2); }
.hero__trust li:first-child { padding-left: 0; border-left: 0; }
.hero__trust strong { font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: var(--text); letter-spacing: -0.02em; }
.hero__trust span { font-size: 0.92rem; color: var(--soft); }




/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.95rem; font-weight: 500; color: #ddd8d0; white-space: nowrap;
}
.marquee span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(255, 90, 31, 0.55); }
.marquee i { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   STATS
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(60px, 8vw, 110px); }
.stat { position: relative; padding: 26px 26px 28px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.stat__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.35); }
.stat__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat__num { font-family: var(--display); font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; color: var(--soft); font-size: 0.94rem; line-height: 1.5; }

/* =========================================================
   FEATURE — SafarTax
   ========================================================= */
.feature { padding-bottom: clamp(90px, 11vw, 150px); }
.feature__card {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(255, 90, 31, 0.18), transparent 60%), linear-gradient(160deg, #1a1a1b, #121213);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.feature__copy { position: relative; z-index: 1; padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; }
.feature__title { font-family: var(--display); font-size: clamp(3.2rem, 7vw, 5.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; }
.feature__lead { margin-top: 22px; font-size: 1.12rem; color: var(--soft); max-width: 440px; }
.feature__lead strong { color: var(--text); font-weight: 600; }
.journey { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.journey li { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.journey li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 1px; background: var(--line-2); }
.journey .is-final { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent-glow); font-weight: 600; }
.note--light { margin-top: auto; padding-top: 32px; font-size: 1.8rem; }

.feature__viz { position: relative; z-index: 1; min-height: 460px; }
.feature__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__counter {
  position: absolute; left: 24px; bottom: 24px; display: grid; gap: 2px;
  padding: 18px 22px; border-radius: 20px;
  background: rgba(18, 18, 19, 0.92);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 40px -10px var(--accent-glow);
  font-size: 0.82rem; color: var(--soft);
}
.feature__big { font-family: var(--display); font-size: clamp(2.3rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }

/* =========================================================
   WORK
   ========================================================= */
.work { padding-bottom: clamp(90px, 11vw, 150px); }
.segmented {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 40px;
  padding: 5px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.segmented button { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--soft); transition: color 0.6s var(--ease); }
.segmented button.is-active { color: #fff; }
.segmented__thumb {
  position: absolute; z-index: 0; left: 0; top: 0; border-radius: 999px; background: var(--accent);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transform: translate(var(--tx, 5px), var(--ty, 5px)); width: var(--tw, 0); height: var(--th, 0);
  transition: transform 0.8s var(--ease), width 0.8s var(--ease), height 0.8s var(--ease);
}

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.project { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; transition: background 0.8s var(--ease), box-shadow 0.8s var(--ease), transform 1s var(--ease); }
.project:hover { background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.35), 0 30px 60px -30px rgba(255, 90, 31, 0.35); transform: translateY(-6px); }
.project--wide { grid-column: span 2; }
.project.is-hidden { display: none; }
.project__media { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #1c1c1d; }
.project--wide .project__media { aspect-ratio: auto; flex: 1; min-height: 220px; }
.project__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 2.4s var(--ease), object-position 4s var(--ease-soft);
}
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 15, 0.35), transparent 40%); }
.project:hover .project__media img { transform: scale(1.035); object-position: bottom center; }
.project__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 10px 10px; }
.project__info h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.project__info p { color: var(--soft); font-size: 0.9rem; margin-top: 2px; line-height: 1.45; }
.tag { flex-shrink: 0; padding: 5px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); }

.work__more {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 48px; padding: 18px 18px 18px 28px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.work__more p { font-size: 1.02rem; font-weight: 500; }

/* =========================================================
   CREAM PANELS (services, testimonials)
   ========================================================= */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 5vw, 72px); border-radius: 34px;
  background: linear-gradient(160deg, var(--cream-2), var(--cream));
  color: var(--cream-ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.panel__wave {
  position: absolute; z-index: -1; left: -14%; bottom: -30%; width: 60%; height: 80%;
  border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(255, 120, 60, 0.5), rgba(255, 160, 120, 0.22) 50%, transparent);
  animation: wave 20s var(--ease-soft) infinite alternate;
}
.panel__wave--right { left: auto; right: -16%; bottom: auto; top: -30%; }
@keyframes wave { to { transform: translate(6%, -6%) scale(1.1); } }
.panel .label { color: var(--cream-soft); }
.panel .label::before { box-shadow: inset 0 0 0 2.5px var(--cream), inset 0 0 0 6px var(--accent); }
.panel .section-sub { color: var(--cream-soft); }
.panel .section-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.panel--quotes .section-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.note--panel { position: absolute; right: clamp(24px, 5vw, 72px); top: clamp(24px, 4vw, 56px); font-size: 1.5rem; color: var(--cream-soft); transform: rotate(-4deg); }

/* services */
.services { padding-bottom: clamp(90px, 11vw, 150px); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--cream-line), 0 10px 30px -20px rgba(60, 30, 10, 0.35);
  transition: transform 1s var(--ease), box-shadow 1s var(--ease), background 1s var(--ease);
}
.svc:hover { transform: translateY(-6px); background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.3), 0 24px 50px -24px rgba(255, 90, 31, 0.45); }
.svc h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-top: 8px; }
.svc p { color: var(--cream-soft); font-size: 0.94rem; line-height: 1.55; }
.svc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff1ea; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.18); transition: transform 1s var(--ease); }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.06); }
.svc__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.svc--hero { grid-column: span 2; grid-row: span 2; padding: 32px; }
.svc--hero h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.svc--hero p { font-size: 1.04rem; max-width: 420px; }
.svc__mock { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 64px 64px; gap: 10px; }
.svc__mock span { border-radius: 14px; background: linear-gradient(135deg, #fff, #f6efe7); box-shadow: inset 0 0 0 1px var(--cream-line); animation: shimmer 6s var(--ease-soft) infinite; }
.svc__mock span:first-child { grid-row: span 2; background: linear-gradient(135deg, #ffb48f, #ff7a3d 55%, #ff5a1f); }
.svc__mock span:nth-child(3) { animation-delay: -3s; }
@keyframes shimmer { 50% { opacity: 0.7; } }
.svc--tall { grid-row: span 2; background: linear-gradient(170deg, #fff4ec, rgba(255, 255, 255, 0.7)); }
.svc--wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 22px; padding: 24px 24px 24px 28px; }
.svc--wide > div:not(.svc__icon) { flex: 1; }
.svc--wide h3 { margin-top: 0; }
.svc--accent { background: linear-gradient(120deg, #161514, #2a1a12); color: #fff; }
.svc--accent:hover { background: linear-gradient(120deg, #161514, #3a1f12); }
.svc--accent p { color: #b9b1a7; }
.svc--accent .svc__icon { background: rgba(255, 90, 31, 0.15); box-shadow: none; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding-bottom: clamp(90px, 11vw, 150px); }
.path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path__line { position: absolute; left: 40px; right: 40px; top: 52px; height: 1px; background: var(--line-2); overflow: hidden; z-index: 0; }
.path__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2), #ffd2b8); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.3s linear; }
.path__step { position: relative; z-index: 1; padding: 26px; border-radius: var(--r); background: rgba(20, 20, 21, 0.9); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.8s var(--ease); }
.path__step.is-lit { box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.3); }
.path__dot { display: block; font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--faint); transition: color 0.8s var(--ease); }
.path__dot::before { content: "0"; }
.path__step.is-lit .path__dot { color: var(--accent); }
.path__step h3 { margin-top: 22px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.path__step p { margin-top: 8px; color: var(--soft); font-size: 0.95rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-bottom: clamp(90px, 11vw, 150px); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__photo { position: sticky; top: 110px; }
.about__frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.about__frame img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; object-position: 50% 22%; }
.about__badge {
  position: absolute; right: -26px; bottom: 40px; width: 136px; height: 136px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent);
  box-shadow: 0 20px 50px -12px var(--accent-glow);
}
.about__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.about__badge text { font-family: var(--body); font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; fill: #fff; }
.about__badge span { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.about__text { margin-top: 26px; display: grid; gap: 16px; font-size: 1.06rem; color: var(--soft); max-width: 620px; }
.about__text strong { color: var(--text); font-weight: 600; }

.timeline { margin-top: 40px; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.timeline__when { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-2); white-space: nowrap; }
.timeline h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.timeline p { color: var(--soft); font-size: 0.93rem; margin-top: 2px; }

/* =========================================================
   QUOTES (cream panel)
   ========================================================= */
.quotes { padding-bottom: clamp(90px, 11vw, 150px); }
.panel--quotes { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quotes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border-radius: 22px; background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px var(--cream-line), 0 14px 36px -24px rgba(60, 30, 10, 0.4); }
.quote__mark { width: 34px; height: 26px; fill: var(--accent); }
.quote blockquote { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 500; line-height: 1.55; color: var(--cream-ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; font-weight: 600; }
.quote__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cream-ink); color: #fff; font-size: 0.78rem; font-weight: 700; }
.quote__avatar--b { background: var(--accent); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-bottom: clamp(90px, 11vw, 150px); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; text-align: left; font-size: 1.05rem; font-weight: 500; transition: color 0.5s var(--ease); }
.qa__q:hover { color: var(--accent-2); }
.qa__q i { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.6s var(--ease), transform 0.8s var(--ease), box-shadow 0.6s; }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; border-radius: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: background 0.6s; }
.qa__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.is-open .qa__q i { background: var(--accent); box-shadow: none; transform: rotate(135deg); }
.qa.is-open .qa__q i::before, .qa.is-open .qa__q i::after { background: #fff; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.9s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 48px 22px 4px; color: var(--soft); opacity: 0; transform: translateY(-6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.qa.is-open .qa__a p { opacity: 1; transform: none; transition-delay: 0.15s; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 35% 70% at 0% 70%, rgba(255, 90, 31, 0.5), transparent 70%), radial-gradient(ellipse 30% 50% at 100% 20%, rgba(255, 90, 31, 0.12), transparent 70%);
}
.contact__card { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__title { font-family: var(--display); font-size: clamp(2.8rem, 5.8vw, 4.8rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
.contact__title .serif { font-size: 1.1em; }
.contact__sub { margin-top: 20px; font-size: 1.06rem; color: var(--soft); max-width: 420px; }
.contact__direct { margin-top: 40px; display: grid; gap: 16px; }
.contact__direct li { display: grid; gap: 2px; padding-left: 34px; position: relative; }
.contact__direct li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 0 0 5px var(--bg), inset 0 0 0 10px var(--accent); }
.contact__direct span { font-size: 0.8rem; color: var(--faint); }
.contact__direct a, .contact__direct p { font-size: clamp(1.02rem, 1.7vw, 1.22rem); font-weight: 600; color: #fff; overflow-wrap: anywhere; width: fit-content; }
.contact__direct a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size 0.8s var(--ease); }
.contact__direct a:hover { background-size: 100% 1.5px; }

.brief {
  display: grid; gap: 22px; padding: clamp(22px, 3vw, 34px); border-radius: 26px;
  background: rgba(22, 22, 23, 0.94);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.brief legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 0.95rem; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button {
  padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: #d9d4cc;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.pick button:hover { box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.6); }
.pick button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent-glow); transform: scale(1.03); }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 1rem; resize: vertical;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); }
.field.has-error input { box-shadow: inset 0 0 0 1.5px #ff6b6b; }
.brief__error { margin: -8px 0; color: #ff8a8a; font-size: 0.92rem; font-weight: 500; }
.brief__error:empty { display: none; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(50px, 7vw, 90px) 0 36px; overflow: hidden; }
.footer__big { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 10vw, 9.4rem); line-height: 1; letter-spacing: -0.035em; color: var(--text); transition: color 0.8s var(--ease); }
.footer__big .serif { font-size: 1.08em; text-shadow: 0 0 40px rgba(255, 90, 31, 0.35); }
.footer__big:hover { color: #fff; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 0.92rem; color: var(--soft); }
.footer__social { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__social a, .to-top { transition: color 0.4s; }
.footer__social a:hover, .to-top:hover { color: var(--accent); }

.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { transform: translateY(-3px); }

/* =========================================================
   PORTFOLIO READER
   ========================================================= */
.deck { position: relative; padding-bottom: clamp(90px, 11vw, 150px); }
.halftone--deck { inset: 10% -10% auto 40%; height: 70%; mask-image: radial-gradient(ellipse 50% 50% at 60% 50%, rgba(0, 0, 0, 0.4), transparent 70%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 60% 50%, rgba(0, 0, 0, 0.4), transparent 70%); }

.reader { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.reader__stage {
  position: relative; border-radius: 26px; padding: 12px;
  background: linear-gradient(160deg, #1b1b1c, #111112);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -40px rgba(0, 0, 0, 0.95);
  outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.reader__stage:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent), 0 50px 100px -40px rgba(0, 0, 0, 0.95); }
.reader__glow {
  position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(255, 90, 31, 0.45), rgba(255, 90, 31, 0.12) 55%, transparent 80%);
  opacity: 0.75; will-change: transform, opacity; animation: breatheGlow 8s var(--ease-soft) infinite alternate;
}
@keyframes breatheGlow { to { opacity: 1; transform: scale(1.04); } }
.reader__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0a0a0b; }
.reader__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: translateX(calc(var(--dir, 1) * 3%)) scale(0.985);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
.reader__img.is-current { opacity: 1; transform: none; }
.reader__img.is-leaving { opacity: 0; transform: translateX(calc(var(--dir, 1) * -3%)) scale(0.985); }

.reader__top {
  position: absolute; left: 26px; right: 26px; top: 26px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none;
}
.reader__chapter, .reader__count {
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  background: rgba(14, 14, 15, 0.85);
  box-shadow: inset 0 0 0 1px var(--line-2); color: #e8e3db;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reader__count strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.reader__nav, .reader__full {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(14, 14, 15, 0.85);
  box-shadow: inset 0 0 0 1px var(--line-2); color: #fff;
  opacity: 0; transition: opacity 0.6s var(--ease), background 0.4s var(--ease), transform 0.6s var(--ease);
}
.reader__nav svg, .reader__full svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reader__nav { top: 50%; margin-top: -25px; }
.reader__nav--prev { left: 26px; transform: translateX(-8px); }
.reader__nav--next { right: 26px; transform: translateX(8px); }
.reader__full { right: 26px; bottom: 30px; width: 44px; height: 44px; }
.reader__nav:hover, .reader__full:hover { background: var(--accent); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.reader__nav:disabled { opacity: 0 !important; pointer-events: none; }
.reader__stage:hover .reader__nav, .reader__stage:focus-within .reader__nav,
.reader__stage:hover .reader__full, .reader__stage:focus-within .reader__full,
.reader__stage:hover .reader__chapter, .reader__stage:hover .reader__count,
.reader__stage:focus-within .reader__chapter, .reader__stage:focus-within .reader__count { opacity: 1; transform: none; }
.reader__progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 0 0 16px 16px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.reader__progress span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: transform 0.9s var(--ease); }

.reader__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.reader__chapters { display: flex; flex-wrap: wrap; gap: 6px; }
.reader__chapters button {
  padding: 8px 15px; border-radius: 999px; font-size: 0.86rem; font-weight: 500; color: var(--soft);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.reader__chapters button:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.5); }
.reader__chapters button.is-active { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.reader__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn__meta { font-size: 0.78rem; font-weight: 500; opacity: 0.75; padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, 0.35); }

.reader__thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255, 90, 31, 0.5) transparent;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.reader__thumbs button {
  position: relative; flex: 0 0 auto; width: 150px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  scroll-snap-align: center; background: #19191a;
  box-shadow: inset 0 0 0 1px var(--line); opacity: 0.55;
  transition: opacity 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.reader__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.reader__thumbs button span { position: absolute; left: 6px; bottom: 5px; padding: 1px 6px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; background: rgba(14, 14, 15, 0.75); }
.reader__thumbs button:hover { opacity: 0.9; transform: translateY(-2px); }
.reader__thumbs button.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--accent), 0 10px 24px -10px var(--accent-glow); }

/* fullscreen (native or fallback) */
.reader.is-full { position: fixed; inset: 0; z-index: 100; margin: 0; padding: clamp(12px, 3vw, 32px); background: rgba(10, 10, 11, 0.97); align-content: center; overflow-y: auto; }
.reader:fullscreen { padding: clamp(12px, 3vw, 32px); background: #0a0a0b; align-content: center; }
.reader.is-full > *, .reader:fullscreen > * { width: min(100%, calc((100vh - 240px) * 16 / 9)); margin: 0 auto; }
.reader.is-full .reader__nav, .reader.is-full .reader__full, .reader.is-full .reader__chapter, .reader.is-full .reader__count,
.reader:fullscreen .reader__nav, .reader:fullscreen .reader__full, .reader:fullscreen .reader__chapter, .reader:fullscreen .reader__count { opacity: 1; transform: none; }

@media (hover: none) {
  .reader__nav, .reader__full, .reader__chapter, .reader__count { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .reader__stage { padding: 6px; border-radius: 18px; }
  .reader__frame { border-radius: 12px; }
  .reader__top { left: 14px; right: 14px; top: 14px; }
  .reader__chapter { display: none; }
  .reader__nav { width: 38px; height: 38px; margin-top: -19px; }
  .reader__nav--prev { left: 12px; }
  .reader__nav--next { right: 12px; }
  .reader__full { display: none; }
  .reader__progress { left: 6px; right: 6px; bottom: 6px; }
  .reader__chapters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .reader__chapters button { flex: 0 0 auto; }
  .reader__actions, .reader__actions .btn { width: 100%; }
  .reader__thumbs button { width: 112px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero__media { width: 72vw; opacity: 0.85; --fade-x: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.7) 50%, #000 70%); }
  .hero__copy { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature__card { grid-template-columns: 1fr; }
  .feature__viz { min-height: 360px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc--wide { grid-column: span 2; }
  .svc--tall { grid-row: auto; }
  .path { grid-template-columns: repeat(2, 1fr); }
  .path__line { display: none; }
  .contact__card, .faq__grid, .panel--quotes { grid-template-columns: 1fr; }
  .panel .section-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.panel--quotes .section-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.note--panel { display: none; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__pill { padding: 6px 6px 6px 12px; }
  .mobile-menu { display: flex; }
  .section-head--split { grid-template-columns: 1fr; gap: 18px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; max-width: 400px; }
  .about__badge { right: -8px; width: 112px; height: 112px; }
  .quotes__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { display: block; min-height: 0; padding: 0 0 60px; }
  .hero__media { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .hero__media img { object-position: 70% 30%; }
  .hero__media { opacity: 1; --fade-x: linear-gradient(90deg, rgba(0, 0, 0, 0.6), #000 35%); --fade-y: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, #000 22%, #000 55%, transparent 100%); }
  .hero__grid { margin-top: -90px; }
  .hero__trust li { padding: 0 18px; }
  .hero__trust strong { font-size: 1.2rem; }
  .hero__trust span { font-size: 0.8rem; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px; }
  .stat__label { font-size: 0.85rem; }
  .feature__viz { min-height: 300px; }
  .projects { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .project--wide .project__media { aspect-ratio: 16 / 10; flex: none; }
  .segmented { display: flex; border-radius: 22px; }
  .panel { border-radius: 26px; padding: 26px 18px; }
  .bento { grid-template-columns: 1fr; }
  .svc--hero, .svc--wide { grid-column: auto; grid-row: auto; }
  .svc--wide { flex-direction: column; align-items: flex-start; }
  .path { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .brief__row { grid-template-columns: 1fr; }
  .brief__actions .btn { width: 100%; }
  .work__more { border-radius: 22px; padding: 20px; }
  .work__more .btn { width: 100%; }
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .fade, .reveal, [data-split] .w__i { opacity: 1 !important; transform: none !important; }
  .squiggle path { stroke-dashoffset: 0; }
  .hero__media img { opacity: 1; transform: none; }
  .ribbons .pulse { display: none; }
}

/* =========================================================
   MOBILE-FIRST LAYER (phones only — desktop untouched)
   ========================================================= */
.m-bar, .m-progress { display: none; }

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { line-height: 1.6; }
  section { scroll-margin-top: 76px; }

  /* type scale tuned for thumbs & small screens */
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(2rem, 8.6vw, 2.5rem); line-height: 1.08; }
  .section-sub { font-size: 1rem; margin-top: 12px; }
  .label { margin-bottom: 12px; font-size: 0.7rem; }

  /* section rhythm: tighter so the page feels like an app, not a long document */
  .feature, .deck, .work, .services, .process, .about, .quotes, .faq { padding-bottom: 72px; }
  .stats { padding-top: 36px; padding-bottom: 48px; }

  /* ---------- nav ---------- */
  .nav { top: 10px; }
  .brand { min-height: 44px; }
  .mobile-menu { background: #0e0e0f; justify-content: flex-start; padding-top: 110px; }
  .mobile-menu a:not(.btn) { font-size: 2.1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 28px; }

  /* ---------- hero ---------- */
  .hero { padding-bottom: 36px; }
  .hero__media {
    height: clamp(300px, 78vw, 390px);
    aspect-ratio: auto;
    --fade-x: linear-gradient(90deg, rgba(0, 0, 0, 0.32), #000 42%);
    --fade-y: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, #000 18%, #000 68%, transparent 100%);
  }
  .hero__media img {
    /* Give phones an intentional portrait crop instead of squeezing the
       desktop composition into the viewport. Keep the right edge anchored
       so the subject sits near the visual centre while the laptop stays in frame. */
    width: 122%;
    max-width: none;
    margin-left: -22%;
    object-position: 50% 31%;
  }
  .hero__grid { margin-top: -52px; }
  .chip { margin-bottom: 18px; font-size: 0.8rem; padding: 6px 14px 6px 10px; }
  .hero__title { max-width: 11ch; font-size: clamp(2.35rem, 10.4vw, 2.75rem); line-height: 1.03; }
  .hero__lead { margin-top: 16px; font-size: 0.98rem; line-height: 1.58; }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); margin-top: 22px; gap: 10px; }
  .hero__actions .btn { height: 50px; padding-inline: 16px; font-size: 0.92rem; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding: 15px 0; border-block: 1px solid var(--line); }
  .hero__trust li, .hero__trust li:first-child { padding: 0 10px; border-left: 1px solid var(--line-2); }
  .hero__trust li:first-child { padding-left: 0; border-left: 0; }
  .hero__trust strong { font-size: 1.15rem; }
  .hero__trust span { font-size: 0.72rem; line-height: 1.3; }

  .marquee { padding: 14px 0; }
  .marquee span { font-size: 0.85rem; padding: 8px 14px; }

  /* ---------- stats: compact 2×2 tiles ---------- */
  .stats { gap: 10px; }
  .stat { padding: 16px; border-radius: 18px; }
  .stat__icon { width: 32px; height: 32px; margin-bottom: 12px; border-radius: 9px; }
  .stat__icon svg { width: 16px; height: 16px; }
  .stat__num { font-size: 1.9rem; }
  .stat__label { font-size: 0.8rem; margin-top: 8px; line-height: 1.4; }

  /* ---------- SafarTax ---------- */
  .feature__card { border-radius: 24px; }
  .feature__copy { padding: 26px 20px 8px; }
  .feature__title { font-size: 3rem; }
  .feature__lead { font-size: 1rem; margin-top: 14px; }
  .journey { margin-top: 20px; gap: 6px; }
  .journey li { font-size: 0.8rem; padding: 6px 11px; }
  .journey li:not(:last-child)::after { display: none; }
  .note--light { font-size: 1.4rem; padding-top: 18px; }
  .feature__viz { min-height: 250px; }
  .feature__counter { left: 14px; bottom: 14px; padding: 12px 16px; border-radius: 16px; }
  .feature__big { font-size: 2rem; }

  /* ---------- swipeable rows (projects, process, testimonials) ---------- */
  .projects, .path, .quotes__grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  }
  .projects::-webkit-scrollbar, .path::-webkit-scrollbar, .quotes__grid::-webkit-scrollbar { display: none; }
  .projects > *, .path > *, .quotes__grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  /* cards scrolled in from the side are always visible */
  .projects .reveal, .path .reveal, .quotes__grid .reveal { opacity: 1; transform: none; }
  .project, .project--wide { grid-column: auto; }
  .project:hover { transform: none; }
  .project--wide .project__media { aspect-ratio: 16 / 10; flex: none; }
  .project__info { padding: 14px 8px 8px; }
  .project__info h3 { font-size: 1.1rem; }
  .project__info p { font-size: 0.86rem; }
  .m-progress { display: block; height: 3px; margin: 14px auto 0; width: 64px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
  .m-progress span { display: block; height: 100%; width: var(--w, 30%); border-radius: 3px; background: var(--accent); transform: translateX(var(--x, 0)); transition: transform 0.2s linear; }
  .panel .m-progress { background: var(--cream-line); }

  .segmented { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; margin-bottom: 20px; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: 0 0 auto; padding: 10px 16px; }
  .work__more { margin-top: 24px; padding: 18px; }
  .work__more p { font-size: 0.95rem; }

  /* ---------- services: compact list instead of tall tiles ---------- */
  .panel { border-radius: 24px; padding: 26px 16px 18px; }
  .bento { gap: 8px; }
  .svc, .svc--hero, .svc--tall {
    display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
    padding: 14px; border-radius: 16px;
  }
  .svc:hover { transform: none; }
  .svc__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; }
  .svc__icon svg { width: 19px; height: 19px; }
  .svc h3, .svc--hero h3 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
  .svc p, .svc--hero p { font-size: 0.86rem; line-height: 1.45; }
  .svc__mock { display: none; }
  .svc--wide { display: grid; grid-template-columns: 40px 1fr; align-items: start; padding: 16px; }
  .svc--wide > div:not(.svc__icon) { grid-column: 2; }
  .svc--wide .btn { grid-column: 1 / -1; margin-top: 14px; width: 100%; }

  /* ---------- process ---------- */
  .path__step { padding: 20px; }
  .path__dot { font-size: 2.4rem; }
  .path__step h3 { margin-top: 14px; font-size: 1.15rem; }
  .path__step p { font-size: 0.9rem; }

  /* ---------- about ---------- */
  .about__grid { gap: 28px; }
  .about__photo { max-width: none; }
  .about__frame { aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .about__frame img { object-position: 50% 25%; }
  .about__badge { width: 92px; height: 92px; right: 10px; bottom: -22px; }
  .about__badge text { font-size: 12px; }
  .about__badge span { font-size: 1.3rem; }
  .about__text { font-size: 0.98rem; gap: 12px; margin-top: 16px; }
  .timeline { margin-top: 26px; gap: 8px; }
  .timeline li { padding: 14px 16px; border-radius: 16px; }
  .timeline h3 { font-size: 1rem; }
  .timeline p { font-size: 0.86rem; }

  /* ---------- testimonials ---------- */
  .quotes__head { margin-bottom: 18px; }
  .quote { padding: 20px; border-radius: 18px; }
  .quote blockquote { font-size: 1rem; margin-top: 12px; }
  .quote figcaption { padding-top: 16px; }

  /* ---------- faq ---------- */
  .faq__grid { gap: 20px; }
  .qa__q { padding: 18px 2px; font-size: 1rem; min-height: 56px; }
  .qa__a p { padding: 0 8px 18px 2px; font-size: 0.94rem; }
  .text-link { display: inline-block; padding: 8px 0; }

  /* ---------- contact ---------- */
  .contact { padding: 60px 0 40px; }
  .contact__card { gap: 28px; }
  .contact__title { font-size: clamp(2.4rem, 10.5vw, 2.9rem); }
  .contact__sub { font-size: 1rem; margin-top: 12px; }
  .contact__direct { margin-top: 24px; gap: 12px; }
  .contact__direct a, .contact__direct p { font-size: 1.02rem; padding: 2px 0; }
  .brief { padding: 20px 16px; border-radius: 22px; gap: 20px; }
  .pick { gap: 6px; }
  .pick button { padding: 10px 14px; font-size: 0.86rem; min-height: 42px; }
  .field input, .field textarea { font-size: 16px; padding: 14px; } /* 16px stops iOS zoom on focus */

  /* ---------- footer ---------- */
  .footer { padding: 40px 0 110px; }
  .footer__big { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; }
  .footer__social { gap: 6px 20px; }
  .footer__social a, .to-top { display: inline-block; padding: 8px 0; }

  /* ---------- reader ---------- */
  .reader { gap: 12px; }
  .reader__nav { width: 44px; height: 44px; margin-top: -22px; }
  .reader__chapters button { min-height: 40px; }
  .reader__actions .btn { height: 50px; }

  /* ---------- sticky bottom action bar replaces the floating button ---------- */
  .wa-fab { display: none; }
  .m-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; gap: 8px; padding: 6px; border-radius: 999px;
    background: rgba(22, 22, 23, 0.92); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.9);
    transform: translateY(140%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  }
  .m-bar.is-visible { transform: none; opacity: 1; }
  .m-bar__cta {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 999px;
    background: linear-gradient(180deg, #ff6a30, #ff5a1f); color: #fff; font-weight: 600; font-size: 0.98rem;
  }
  .m-bar__wa { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #25d366; color: #fff; }
}

@media (max-width: 420px) {
  .hero__actions { grid-template-columns: 1fr; }
}
