/* ============================================================
   NexAxe — Premium website styles
   Sections: Tokens · Base · Utilities · FX · Buttons · Nav ·
   Mobile menu · Hero · About · Services · Featured · Work ·
   Insights · Contact · Footer · Reveal · Responsive
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --bg: #ffffff;
  --surface: #FFFFFF;
  --soft: #f6f8fa;
  --ink: #111111;
  --ink-2: #69665F;
  --sand: #A38B68;
  --lav: #D8C4FF;
  --lav-soft: #EEE7FF;
  --blue: #DDE7FF;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --glass: rgba(255, 255, 255, 0.62);

  /* type */
  --font-display: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* layout */
  --maxw: 1480px;
  --gutter: clamp(20px, 5vw, 84px);
  --radius: 22px;
  --radius-lg: 30px;
  --nav-h: 92px;
  --section-pad: clamp(56px, 6.5vw, 96px);
  --section-head-space: clamp(28px, 3.5vw, 44px);
  --block-gap: clamp(24px, 3vw, 40px);
  --stack-gap: clamp(14px, 1.6vw, 20px);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* type scale (fluid) */
  --t-eyebrow: 0.75rem;
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --t-h2: clamp(2rem, 1.2rem + 2.8vw, 3.8rem);
  --t-display: clamp(2.8rem, 1.2rem + 6.6vw, 7.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-display);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select, button { font: inherit; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }

::selection { background: var(--ink); color: var(--bg); }

/* custom cursor active: hide native on desktop */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [data-magnetic],
body.has-cursor [data-cursor] { cursor: none; }

/* contact form: keep normal pointer, hide cursor label popup on fields */
body.has-cursor .cform input,
body.has-cursor .cform textarea,
body.has-cursor .cform select,
body.has-cursor .cform .choice,
body.has-cursor .cform__consent { cursor: pointer; }

.cursor.is-form-field .cursor__hint {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.45;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-defs { position: absolute; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px;
  transform: translateY(-160%); transition: transform 0.25s var(--ease);
  font-size: 0.85rem;
}
.skip-link:focus { transform: translateY(0); }

/* visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

em { font-style: italic; font-family: var(--font-serif); font-weight: 300; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: var(--section-head-space); max-width: 60ch; }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--block-gap); max-width: none; flex-wrap: wrap;
}
.section-title {
  font-size: var(--t-h2);
  margin-top: var(--stack-gap);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-head__link { margin-bottom: 10px; }

/* ---------- FX: grain, cursor, transition ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
@media (max-width: 640px) { .grain { display: none; } }

.cursor { position: fixed; top: 0; left: 0; z-index: 1100; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }

.cursor__pointer {
  position: fixed; top: 0; left: 0;
  color: #111111;
  transform: translate(0, 0);
  will-change: transform;
  transition: transform 0.12s var(--ease), color 0.25s var(--ease);
}
.cursor__pointer svg { display: block; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35)); }
.cursor.is-on-dark .cursor__pointer {
  color: #ffffff;
}
.cursor.is-on-dark .cursor__pointer svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}

.cursor__hint {
  position: fixed; top: 0; left: 0;
  transform: translate(18px, 18px);
  will-change: transform;
}
.cursor__hint-box {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 6px;
  box-shadow: 0 10px 28px -12px rgba(17, 17, 17, 0.34);
  overflow: hidden;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.cursor__label {
  display: block;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; color: #111111;
  text-transform: uppercase; white-space: nowrap;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.38s var(--ease-out), opacity 0.38s var(--ease-out), color 0.3s var(--ease);
}
.cursor__label.is-exit {
  transform: translateY(-120%);
  opacity: 0;
}
.cursor__label.is-enter {
  transform: translateY(120%);
  opacity: 0;
}

.cursor.is-section-change .cursor__hint-box {
  animation: cursorBoxPop 0.45s var(--ease-out);
}
.cursor.is-hover .cursor__hint-box {
  background: #111111;
  border-color: #111111;
  box-shadow: 0 14px 34px -12px rgba(17, 17, 17, 0.5);
  transform: scale(1.04);
}
.cursor.is-hover .cursor__label { color: var(--bg); }

.cursor.is-on-dark.is-hover .cursor__hint-box {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.45);
}
.cursor.is-on-dark.is-hover .cursor__label { color: #111111; }

@keyframes cursorBoxPop {
  0% { transform: scale(0.9); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.cursor.is-down .cursor__pointer { transition: transform 0.12s var(--ease); }

.page-transition {
  position: fixed; inset: 0; z-index: 1090; pointer-events: none;
  background: var(--bg);
  transform: translateY(100%);
  will-change: transform;
}
.page-transition.is-active { animation: pageWipe 0.85s var(--ease) forwards; }
@keyframes pageWipe {
  0% { transform: translateY(100%); }
  45% { transform: translateY(0); }
  55% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.95em 1.4em;
  border-radius: 100px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.14) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.btn:hover::before { transform: translateX(130%); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(17, 17, 17, 0.5);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px -12px rgba(17, 17, 17, 0.38);
  transition-duration: 0.12s;
}
.btn__text { position: relative; z-index: 1; }
.btn__icon { position: relative; z-index: 1; width: 1.05em; height: 1.05em; transition: transform 0.4s var(--ease); flex: none; }
.btn:hover .btn__icon { transform: translate(4px, -4px); }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: #2b2a27; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost::before {
  background: linear-gradient(105deg, transparent 38%, rgba(17,17,17,0.06) 50%, transparent 62%);
}
.btn--ghost:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  box-shadow: 0 12px 26px -16px rgba(17, 17, 17, 0.28);
}

.btn--lg { padding: 1.1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* hero ghost over video */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn--ghost::before {
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.12) 50%, transparent 62%);
}
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn--solid:hover,
.hero .btn--ghost:hover { box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.45); }

/* ---------- Animated link ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 500; font-size: 0.98rem;
  position: relative; width: max-content;
}
.link-arrow span { position: relative; }
.link-arrow span::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link-arrow:hover span::after,
a:hover > .link-arrow span::after { transform: scaleX(1); }
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg,
a:hover > .link-arrow svg { transform: translate(3px, -3px); }
.link-arrow--sm { font-size: 0.85rem; color: var(--ink-2); }
.link-arrow--lg { font-size: 1.1rem; }

/* ============================================================
   NAVIGATION  (full-width → floating glass pill)
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 900;
  transition: width 0.55s var(--ease), top 0.55s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: padding 0.55s var(--ease), background 0.55s var(--ease),
              border-color 0.55s var(--ease), border-radius 0.55s var(--ease),
              box-shadow 0.55s var(--ease), backdrop-filter 0.55s var(--ease);
}

/* scrolled = pill */
.site-nav.is-scrolled { width: min(1040px, 94vw); top: 14px; }
.site-nav.is-scrolled .nav__inner {
  padding: 9px 9px 9px 22px;
  border-radius: 100px;
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset,
              0 18px 50px -20px rgba(17,17,17,0.30);
}

.nav__logo {
  display: inline-grid;
  align-items: center;
  flex: none;
}
.nav__logo .nav__mark {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: clamp(1.35rem, 2.8vw, 1.75rem);
  transition: height 0.55s var(--ease), opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.nav__mark--dark {
  opacity: 0;
  visibility: hidden;
}
.site-nav.is-scrolled .nav__mark--light {
  opacity: 0;
  visibility: hidden;
}
.site-nav.is-scrolled .nav__mark--dark {
  opacity: 1;
  visibility: visible;
}
.is-scrolled .nav__mark { height: clamp(1.2rem, 2.4vw, 1.5rem); }

.nav__links {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px);
  margin-left: auto;
  transition: gap 0.55s var(--ease);
}
.is-scrolled .nav__links { gap: clamp(14px, 1.6vw, 26px); }
.nav__links a {
  color: rgba(255,255,255,0.92); font-size: 0.95rem; font-weight: 500;
  position: relative; padding: 6px 2px;
  transition: color 0.55s var(--ease);
}
.is-scrolled .nav__links a { color: var(--ink-2); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: #fff; }
.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__cta {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff; backdrop-filter: blur(8px);
  padding: 0.7em 1.1em; font-size: 0.9rem;
}
.nav__cta:hover { background: #fff; color: var(--ink); }
.is-scrolled .nav__cta { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.is-scrolled .nav__cta:hover { background: #2b2a27; }

/* hamburger */
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border: 1px solid rgba(255,255,255,0.4);
}
.nav__toggle span { width: 18px; height: 1.5px; background: #fff; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.is-scrolled .nav__toggle { border-color: var(--line-strong); }
.is-scrolled .nav__toggle span { background: var(--ink); }
body.menu-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  clip-path: circle(0% at 90% 5%);
  transition: clip-path 0.6s var(--ease);
  visibility: hidden;
  display: flex; align-items: center;
}
body.menu-open .mobile-menu { clip-path: circle(150% at 90% 5%); visibility: visible; }
.mobile-menu__inner {
  width: 100%; padding: 120px var(--gutter) 48px;
  display: flex; flex-direction: column; gap: 40px; max-height: 100dvh; overflow-y: auto;
}
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links li { border-top: 1px solid var(--line); }
.mobile-menu__links li:last-child { border-bottom: 1px solid var(--line); }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: clamp(14px, 3.4vw, 22px) 0;
  font-size: clamp(1.8rem, 9vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}
body.menu-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu__links li:nth-child(1) a { transition-delay: 0.10s; }
.mobile-menu__links li:nth-child(2) a { transition-delay: 0.16s; }
.mobile-menu__links li:nth-child(3) a { transition-delay: 0.22s; }
.mobile-menu__links li:nth-child(4) a { transition-delay: 0.28s; }
.mobile-menu__links li:nth-child(5) a { transition-delay: 0.34s; }
.mobile-menu__links li:nth-child(6) a { transition-delay: 0.40s; }
.mm-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--sand); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu__meta { color: var(--ink-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--nav-h) var(--gutter) clamp(70px, 10vh, 120px);
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  will-change: transform, opacity;
}
.hero__placeholder {
  z-index: 0;
  opacity: 1;
  transition: opacity 1.1s var(--ease);
}
.hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero.is-video-ready .hero__video { opacity: 1; }
.hero.is-video-ready .hero__placeholder { opacity: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(17,17,17,0) 40%, rgba(17,17,17,0.45) 100%),
    linear-gradient(180deg, rgba(17,17,17,0.30) 0%, rgba(17,17,17,0.05) 35%, rgba(17,17,17,0.55) 100%),
    linear-gradient(0deg, rgba(80,60,40,0.18), rgba(80,60,40,0.18));
}

.hero__content { max-width: 1100px; }
.hero__eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

.hero__title {
  font-size: var(--t-display);
  letter-spacing: -0.04em; line-height: 0.96; font-weight: 500;
  text-wrap: balance;
}
.hero__title em { color: #fff; }

.hero__desc {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 46ch; font-size: var(--t-lead);
  color: rgba(255,255,255,0.9); font-weight: 400;
}
.hero__actions { margin-top: clamp(30px, 4vw, 46px); display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: clamp(22px, 4vh, 40px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.8);
}
.hero__scroll .mono { font-size: 0.62rem; letter-spacing: 0.2em; }
.hero__scroll-line { width: 1px; height: 46px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.hero__scroll-line span { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: #fff; animation: scrollLine 2.1s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(300%); } }

/* hero load reveal */
[data-hero] { opacity: 0; }
.line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.line > span { display: block; transform: translateY(110%); padding-bottom: 0.06em; }
.hero__title[data-hero] { opacity: 1; }

body.ready [data-hero="1"] { animation: fadeUp 0.8s var(--ease-out) 0.15s both; }
body.ready [data-hero="2"] .line > span { animation: lineUp 0.9s var(--ease-out) both; }
body.ready [data-hero="2"] .line:nth-child(1) > span { animation-delay: 0.30s; }
body.ready [data-hero="2"] .line:nth-child(2) > span { animation-delay: 0.42s; }
body.ready [data-hero="3"] { animation: fadeUp 0.8s var(--ease-out) 0.62s both; }
body.ready [data-hero="4"] { animation: fadeUp 0.8s var(--ease-out) 0.76s both; }
body.ready [data-hero="5"] { animation: fadeUp 0.8s var(--ease-out) 1s both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--block-gap);
  align-items: center;
}
.about__visual {
  margin: 0;
  min-height: clamp(300px, 36vw, 460px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 24px 60px -36px rgba(17, 17, 17, 0.28);
}
.about__visual picture,
.about__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.about__visual img {
  object-fit: cover;
  object-position: center 18%;
}
.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__title {
  margin-top: var(--stack-gap);
  font-size: clamp(1.75rem, 1.05rem + 2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-wrap: balance;
  max-width: 14ch;
}
.about__title em { color: var(--sand); }
.about__lead {
  margin-top: var(--stack-gap);
  max-width: 42ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.55;
}
.about__caps {
  margin-top: var(--block-gap);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 36ch;
}
.about__caps li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.5em 0.7em;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  background: var(--surface);
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about__caps li:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.about__principles {
  margin-top: var(--block-gap);
  padding-top: var(--stack-gap);
  border-top: 1px solid var(--line);
}
.about__principles-label {
  color: var(--ink-2);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about__steps {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.about__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.92rem;
}
.about__step-num {
  color: var(--ink-2);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  flex: none;
}

/* ============================================================
   SERVICES — sticky stacked cards
   ============================================================ */
.services { background: linear-gradient(180deg, var(--bg), var(--soft) 60%, var(--bg)); }
.services__stack { display: flex; flex-direction: column; gap: var(--stack-gap); }

.service-card {
  position: sticky;
  top: clamp(90px, 12vh, 140px);
}
/* staggered stick offset → previous card peeks out at top */
.service-card[data-index="0"] { top: calc(clamp(90px, 12vh, 140px) + 0px); z-index: 1; }
.service-card[data-index="1"] { top: calc(clamp(90px, 12vh, 140px) + 10px); z-index: 2; }
.service-card[data-index="2"] { top: calc(clamp(90px, 12vh, 140px) + 20px); z-index: 3; }
.service-card[data-index="3"] { top: calc(clamp(90px, 12vh, 140px) + 30px); z-index: 4; }
.service-card[data-index="4"] { top: calc(clamp(90px, 12vh, 140px) + 40px); z-index: 5; }

.service-card__inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: clamp(320px, 40vh, 440px);
  box-shadow: 0 30px 70px -50px rgba(17,17,17,0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease);
  position: relative;
  transform-origin: center top;
  backface-visibility: hidden;
}
.service-card__inner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--accent) 0%, transparent 42%);
  opacity: 0.55; pointer-events: none;
}
.service-card__body {
  padding: clamp(22px, 2.5vw, 40px);
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.service-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-card__num { font-size: 0.95rem; color: var(--sand); letter-spacing: 0.05em; }
.service-card__tag { color: var(--ink-2); }
.service-card__title {
  margin-top: var(--stack-gap);
  font-size: var(--t-h3); letter-spacing: -0.03em; max-width: 16ch;
  text-wrap: balance;
}
.service-card__desc {
  margin-top: 12px; color: var(--ink-2); max-width: 42ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
}
.service-card__caps {
  margin-top: auto; padding-top: var(--stack-gap);
  display: flex; flex-wrap: wrap; gap: 7px 8px;
}
.service-card__caps li {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.03em;
  color: var(--ink-2); padding: 0.4em 0.7em;
  border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,0.5);
}
.service-card__body .link-arrow { margin-top: var(--stack-gap); }

.service-card__viz {
  position: relative; overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--soft);
  align-self: stretch;
  min-height: 100%;
}
.service-card__viz img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease);
}
.service-card:hover .service-card__viz img { transform: scale(1.04); }

/* ---- service viz primitives ---- */
.viz { width: 100%; max-width: 380px; }
.viz-browser {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -34px rgba(17,17,17,0.5);
}
.viz-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft);
}
.viz-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.viz-browser__bar .mono { margin-left: 10px; font-size: 0.6rem; color: var(--ink-2); }
.viz-browser__body { padding: 16px; position: relative; }
.viz-hero-block { height: 64px; border-radius: 8px; background: linear-gradient(120deg, var(--ink), #3a3833); margin-bottom: 14px; }
.viz-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.viz-prod { aspect-ratio: 3/4; border-radius: 7px; background: var(--soft); border: 1px solid var(--line); }
.viz-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 11px; box-shadow: 0 14px 30px -18px rgba(17,17,17,0.5);
  display: flex; flex-direction: column; gap: 2px;
}
.viz-chip .mono { font-size: 0.52rem; color: var(--ink-2); }
.viz-chip strong { font-size: 1rem; letter-spacing: -0.02em; }
.viz-chip--convert { top: 54px; right: -12px; color: var(--ink); }
.viz-chip--analytics { bottom: 16px; left: -14px; width: 84px; color: var(--sand); }
.viz-chip--analytics svg { width: 100%; height: 26px; }

.viz-dash { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 24px 50px -34px rgba(17,17,17,0.5); }
.viz-dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viz-stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.viz-stat .mono { font-size: 0.52rem; color: var(--ink-2); }
.viz-stat strong { font-size: 1.25rem; letter-spacing: -0.03em; }
.viz-dash__chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 16px 0; }
.viz-dash__chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--ink), #54514a); border-radius: 4px 4px 0 0; }
.viz-flow { display: flex; align-items: center; gap: 6px; }
.viz-node { font-family: var(--font-mono); font-size: 0.58rem; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.viz-node--on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.viz-wire { flex: 1; height: 1px; background: var(--line-strong); }

.viz-timeline { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 4px; }
.viz-post { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: 0 18px 40px -32px rgba(17,17,17,0.5); }
.viz-post__media { width: 52px; height: 52px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--ink); flex: none; }
.viz-post__media svg { width: 22px; height: 22px; }
.viz-post__media--img { background: linear-gradient(135deg, var(--blue), var(--lav)); }
.viz-post__media--grad { background: linear-gradient(135deg, var(--sand), #d9c4a0); }
.viz-post__meta { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.viz-post__meta .mono { font-size: 0.52rem; color: var(--ink-2); }
.viz-post__meta i { height: 6px; border-radius: 3px; background: var(--soft); width: 100%; }
.viz-timeline .viz-chip--reach { position: absolute; right: -10px; top: -10px; color: var(--sand); }

.viz-brand { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 24px 50px -34px rgba(17,17,17,0.5); }
.viz-brand__mark { width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.viz-brand__mark svg { width: 30px; height: 30px; }
.viz-brand__type { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.viz-brand__aa { font-size: 2.4rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.viz-brand__type .mono { font-size: 0.56rem; color: var(--ink-2); }
.viz-brand__swatches { display: flex; gap: 8px; }
.viz-brand__swatches i { width: 30px; height: 30px; border-radius: 8px; }

.viz-ai { position: relative; height: 170px; width: 100%; max-width: 280px; color: var(--sand); }
.viz-ai__wires { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.viz-ai__node {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.03em;
  padding: 8px 11px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; color: var(--ink); box-shadow: 0 14px 30px -22px rgba(17,17,17,0.5);
}
.viz-ai__node--core { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
.viz-ai__node--out { background: var(--lav-soft); border-color: var(--lav); }

/* ============================================================
   FEATURED CASE STUDY
   ============================================================ */
.featured { background: var(--bg); }
.featured-card {
  display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.featured-card:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 28px 60px -40px rgba(17,17,17,0.55);
}
.featured-card__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .featured-card__media { aspect-ratio: 16/10; } }
.featured-card__media .media-fill,
.featured-card__media img,
.featured-card__media video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01); transition: transform 0.9s var(--ease); will-change: transform;
}
.featured-card:hover .media-fill,
.featured-card:hover img,
.featured-card:hover video { transform: scale(1.04); }

.featured-card__result {
  padding: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 32px);
  background: linear-gradient(180deg, rgba(163,139,104,0.14) 0%, rgba(163,139,104,0.06) 100%);
  border-bottom: 1px solid rgba(163,139,104,0.28);
}
.featured-card__result-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 14px;
}
.featured-card__result-compare {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 28px);
}
.featured-card__result-item {
  display: flex; flex-direction: column; gap: 4px; min-width: 110px;
}
.featured-card__result-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.featured-card__result-num {
  font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.6rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  color: rgba(255,255,255,0.72);
}
.featured-card__result-item--highlight .featured-card__result-num {
  color: var(--sand);
}
.featured-card__result-unit {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
}
.featured-card__result-item--highlight .featured-card__result-unit { color: rgba(255,255,255,0.78); }
.featured-card__result-arrow {
  color: var(--sand); flex-shrink: 0; display: flex; align-items: center;
}
.featured-card__result-badge {
  margin-left: auto;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--sand);
  border-radius: 100px; padding: 0.55em 1em; white-space: nowrap;
}
@media (max-width: 640px) {
  .featured-card__result-compare { gap: 12px 18px; }
  .featured-card__result-badge {
    margin-left: 0; width: 100%; text-align: center;
  }
}

.featured-card__info {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  color: #fff;
}
.featured-card__meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,0.72); margin-bottom: 14px;
  font-size: 0.72rem;
}
.featured-card__client {
  color: rgba(255,255,255,0.62); margin-bottom: 8px;
  letter-spacing: 0.06em; font-size: 0.72rem;
}
.featured-card__title {
  font-size: clamp(1.45rem, 1rem + 2vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.08;
  max-width: 22ch;
}
.featured-card__desc {
  margin-top: 12px; max-width: 48ch;
  color: rgba(255,255,255,0.78); font-size: 1rem; line-height: 1.45;
}
.featured-card__foot {
  margin-top: clamp(18px, 2.5vw, 28px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.featured-card__services { display: flex; flex-wrap: wrap; gap: 8px; }
.featured-card__services li {
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 100px;
  padding: 0.38em 0.8em; font-size: 0.68rem;
}
.featured-card__foot .link-arrow {
  color: #fff; flex-shrink: 0;
  font-size: clamp(0.88rem, 0.8rem + 0.3vw, 1rem);
}
.featured-card__year { color: rgba(255,255,255,0.72); flex-shrink: 0; }
@media (max-width: 560px) {
  .featured-card__title { max-width: none; }
  .featured-card__foot { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   WORK / PORTFOLIO GRID
   ============================================================ */
.work { background: linear-gradient(180deg, var(--bg), var(--surface)); }
.work__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--block-gap);
}
.proj {
  display: block;
  color: inherit;
}
.proj__inner {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), opacity 0.4s var(--ease);
  will-change: transform;
  height: 100%;
}
.proj:hover .proj__inner {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 70px -46px rgba(17,17,17,0.42);
}
.proj__media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg);
}
.proj__media--tall { aspect-ratio: 4/3.6; }
.proj__media:not(.proj__media--natural) .media-fill,
.proj__media:not(.proj__media--natural) img,
.proj__media:not(.proj__media--natural) video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: top center;
  transition: transform 0.7s var(--ease); will-change: transform;
}
.proj__media--natural {
  aspect-ratio: auto;
  height: auto;
}
.proj__media--natural img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  transform: none;
}
.proj:hover .proj__media:not(.proj__media--natural) .media-fill,
.proj:hover .proj__media:not(.proj__media--natural) img,
.proj:hover .proj__media:not(.proj__media--natural) video { transform: scale(1.05); }
.proj__media--natural:hover img { transform: none; }
.proj__media .media-fill { background: radial-gradient(120% 120% at 30% 20%, #fff6, transparent 55%), var(--bg); }

.proj__badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.proj__status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 0.42em 0.7em; border-radius: 100px; border: 1px solid rgba(255,255,255,0.5); font-size: 0.6rem; }
.proj__status i { width: 6px; height: 6px; border-radius: 50%; background: #38a169; box-shadow: 0 0 0 0 rgba(56,161,105,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,161,105,0.5);} 70% { box-shadow: 0 0 0 7px rgba(56,161,105,0);} 100% { box-shadow: 0 0 0 0 rgba(56,161,105,0);} }
.proj__ext { width: 34px; height: 34px; border-radius: 50%; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.5); display: grid; place-items: center; color: var(--ink); transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.proj__ext svg { width: 16px; height: 16px; }
.proj:hover .proj__ext { transform: rotate(0) scale(1.08); background: #fff; }
.proj:hover .proj__ext svg { animation: nudge 0.5s var(--ease); }
@keyframes nudge { 50% { transform: translate(3px, -3px); } }

.proj__tags { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 7px; z-index: 2; }
.proj__tags .mono { font-size: 0.56rem; color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 0.4em 0.7em; border-radius: 100px; border: 1px solid rgba(255,255,255,0.5); }

.proj__info { padding: clamp(16px, 1.8vw, 22px); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.proj__url { color: var(--sand); font-size: 0.62rem; }
.proj__title { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.proj__desc { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.proj__info .link-arrow { margin-top: auto; padding-top: 12px; }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insights { background: var(--surface); }
.insights__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--block-gap); align-items: start; }

.article--featured { display: flex; flex-direction: column; gap: var(--stack-gap); }
.article__media { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--bg); position: relative; }
.article__media .media-fill,
.article__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.8s var(--ease);
}
.article--featured:hover .media-fill,
.article--featured:hover img { transform: scale(1.04); }
.article__meta { display: flex; align-items: center; gap: 12px; color: var(--ink-2); margin-bottom: 16px; }
.article__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.article__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; max-width: 18ch; }
.article__desc { margin-top: 14px; color: var(--ink-2); max-width: 50ch; font-size: 1.05rem; }
.article--featured .link-arrow { margin-top: 20px; }

.article-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.article-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 24px;
  padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.article-row:hover { padding-left: 10px; }
.article-row__cat { color: var(--sand); align-self: start; }
.article-row__title { font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem); letter-spacing: -0.02em; font-weight: 500; grid-column: 1 / -1; max-width: 32ch; }
@media (min-width: 600px) {
  .article-row { grid-template-columns: 120px 1fr auto; }
  .article-row__title { grid-column: 2; }
  .article-row__cat { grid-column: 1; }
}
.article-row__meta { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); justify-self: end; }
.article-row__meta svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.article-row:hover .article-row__meta svg { transform: translate(3px,-3px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 90px); align-items: start; }
.contact__lead { position: sticky; top: 110px; }
.contact__title { font-size: var(--t-h2); margin-top: 22px; letter-spacing: -0.03em; }
.contact__title em { color: var(--sand); }
.contact__sub { margin-top: 22px; color: var(--ink-2); font-size: var(--t-lead); max-width: 42ch; }
.contact__ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.contact__details { margin-top: clamp(34px, 4vw, 50px); display: grid; gap: 2px; border-top: 1px solid var(--line); }
.contact__details li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__details .mono { color: var(--ink-2); }
.contact__details a:hover { color: var(--sand); }
.contact__social { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact__social a { color: var(--ink-2); position: relative; }
.contact__social a:hover { color: var(--ink); }

/* form */
.contact__form-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 46px);
  box-shadow: 0 40px 80px -60px rgba(17,17,17,0.4);
}
.cform { display: grid; gap: 20px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cform__field { display: grid; gap: 8px; }
.cform__field label, .cform__field legend { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.cform__field .opt { color: var(--ink-2); font-weight: 400; }
.cform input, .cform textarea, .cform select {
  width: 100%; padding: 0.85em 1em; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink);
  font-size: 0.95rem; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cform input::placeholder, .cform textarea::placeholder { color: #a8a49b; }
.cform input:focus, .cform textarea:focus, .cform select:focus {
  outline: none; border-color: var(--ink); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.cform textarea { resize: vertical; min-height: 110px; }
.cform__select { position: relative; }
.cform__select select { appearance: none; -webkit-appearance: none; padding-right: 2.6em; cursor: pointer; }
.cform__caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-2); pointer-events: none; }

.cform input[aria-invalid="true"], .cform textarea[aria-invalid="true"], .cform select[aria-invalid="true"] {
  border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.cform__error { font-size: 0.74rem; color: #c0392b; min-height: 0; font-family: var(--font-mono); letter-spacing: 0.02em; }
.cform__error:empty { display: none; }

.cform__field--inline { border: 0; padding: 0; }
.cform__choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 1em; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; font-size: 0.88rem; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.choice input { width: auto; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--soft); }

.cform__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-2); cursor: pointer; }
.cform__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.cform__consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.cform__submit { margin-top: 4px; justify-content: center; }
.cform__submit.is-loading { pointer-events: none; opacity: 0.85; }
.cform__submit.is-loading .btn__text::after {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cform__status { font-size: 0.92rem; padding: 0; }
.cform__status.is-success { color: #1f7a47; background: #e7f4ec; border: 1px solid #bfe3cd; padding: 14px 16px; border-radius: 12px; }
.cform__status.is-error { color: #c0392b; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding-top: var(--section-pad);
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: hidden;
}
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--block-gap); padding-bottom: var(--section-head-space); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__logo { display: inline-flex; align-items: center; }
.footer__mark { display: block; width: auto; height: clamp(1.5rem, 3vw, 2rem); }
.footer__desc { color: rgba(244,241,234,0.62); max-width: 36ch; font-size: 1rem; }
.footer__brand .btn--solid { background: var(--bg); color: var(--ink); }
.footer__brand .btn--solid:hover { background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }

.footer__h { color: rgba(244,241,234,0.45); margin-bottom: 20px; }
.footer__col ul:not(.footer__social) { display: grid; gap: 12px; }
.footer__col a { color: rgba(244,241,234,0.82); position: relative; width: max-content; transition: color 0.3s var(--ease); }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__col a:hover::after { transform: scaleX(1); }

.footer__col ul.footer__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.footer__social li {
  display: flex;
  margin: 0;
  padding: 0;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a::after { display: none; }
.footer__social a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  color: #fff;
}
.footer__social img {
  width: 22px;
  height: 22px;
  display: block;
}

.footer__wordmark {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: clamp(3.6rem, 17vw, 17rem);
  border-top: 1px solid rgba(244,241,234,0.16);
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(10px, 1.5vw, 18px);
  color: var(--bg);
}
.footer__wordmark span {
  display: inline-block;
  transform: translateY(110%);
  line-height: 1;
  padding-bottom: 0.04em;
  transition: transform 0.9s var(--ease);
}
.footer__wordmark.is-in span { transform: translateY(0); }
.footer__wordmark.is-in span:nth-child(1){ transition-delay: 0.02s; }
.footer__wordmark.is-in span:nth-child(2){ transition-delay: 0.07s; }
.footer__wordmark.is-in span:nth-child(3){ transition-delay: 0.12s; }
.footer__wordmark.is-in span:nth-child(4){ transition-delay: 0.17s; }
.footer__wordmark.is-in span:nth-child(5){ transition-delay: 0.22s; }
.footer__wordmark.is-in span:nth-child(6){ transition-delay: 0.27s; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: clamp(20px, 2.5vw, 32px) 0 clamp(24px, 3vw, 40px);
  color: rgba(244,241,234,0.55);
  line-height: 1.5;
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover, .footer__top-link:hover { color: #fff; }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(244,241,234,0.8); }
.footer__top-link svg { width: 14px; height: 14px; }

/* ============================================================
   MEDIA-FILL placeholders (replace with real images)
   ============================================================ */
.media-fill {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.45), transparent 60%),
    var(--bg);
  display: grid; place-items: center;
}
.media-fill::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(17,17,17,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}
.media-fill__tag {
  position: relative; z-index: 1;
  color: var(--ink-2); background: var(--glass);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px dashed var(--line-strong); border-radius: 100px;
  padding: 0.5em 0.95em; font-size: 0.58rem;
}
.media-fill--featured { background: linear-gradient(135deg, var(--lav-soft), var(--blue) 70%, var(--soft)); }
.media-fill--featured .media-fill__tag { color: var(--ink); }
.media-fill--wide { background: linear-gradient(135deg, var(--blue), var(--lav-soft)); }

/* ============================================================
   REVEAL animations (IntersectionObserver)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="lines"] { opacity: 1; transform: none; }
[data-reveal="lines"] .line > span { transform: translateY(110%); transition: transform 0.9s var(--ease-out); }
[data-reveal="lines"].is-in .line > span { transform: translateY(0); }
[data-reveal="lines"] .line:nth-child(2) > span { transition-delay: 0.08s; }
[data-reveal="lines"] .line:nth-child(3) > span { transition-delay: 0.16s; }
[data-reveal="lines"] .line:nth-child(4) > span { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .site-nav.is-scrolled { width: min(680px, 94vw); }
  .nav__inner { padding: 18px var(--gutter); }
  .site-nav.is-scrolled .nav__inner { padding: 10px 10px 10px 20px; }

  .about__layout { grid-template-columns: 1fr; }
  .about__visual { min-height: 0; aspect-ratio: 16 / 10; }
  .about__visual img { object-position: center center; }
  .about__title { max-width: none; }
  .about__caps { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card__inner { grid-template-columns: 1fr; min-height: 0; }
  .service-card__viz { border-left: 0; border-top: 1px solid var(--line); min-height: clamp(220px, 42vw, 320px); order: -1; }
  .insights__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__lead { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .work__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .work__grid .proj {
    position: sticky;
  }
  .work__grid .proj[data-index="0"] { top: calc(clamp(68px, 11vh, 96px) + 0px); z-index: 1; }
  .work__grid .proj[data-index="1"] { top: calc(clamp(68px, 11vh, 96px) + 8px); z-index: 2; }
  .work__grid .proj[data-index="2"] { top: calc(clamp(68px, 11vh, 96px) + 16px); z-index: 3; }
  .work__grid .proj[data-index="3"] { top: calc(clamp(68px, 11vh, 96px) + 24px); z-index: 4; }
  .work__grid .proj[data-index="4"] { top: calc(clamp(68px, 11vh, 96px) + 32px); z-index: 5; }
  .work__grid .proj[data-index="5"] { top: calc(clamp(68px, 11vh, 96px) + 40px); z-index: 6; }
  .work__grid .proj[data-index="6"] { top: calc(clamp(68px, 11vh, 96px) + 48px); z-index: 7; }
  .work__grid .proj__inner { box-shadow: 0 24px 50px -44px rgba(17,17,17,0.4); }
  .proj__media:not(.proj__media--natural),
  .proj__media--tall { aspect-ratio: 16/11; }
  .about__steps { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__col ul.footer__social {
    gap: 8px;
    max-width: 100%;
  }
  .footer__social a {
    width: 40px;
    height: 40px;
  }
  .footer__social img {
    width: 20px;
    height: 20px;
  }

  /* Sticky service stacking on mobile — tighter offsets for smaller nav/viewport */
  .service-card[data-index="0"] { top: calc(clamp(68px, 11vh, 96px) + 0px); }
  .service-card[data-index="1"] { top: calc(clamp(68px, 11vh, 96px) + 10px); }
  .service-card[data-index="2"] { top: calc(clamp(68px, 11vh, 96px) + 20px); }
  .service-card[data-index="3"] { top: calc(clamp(68px, 11vh, 96px) + 30px); }
  .service-card[data-index="4"] { top: calc(clamp(68px, 11vh, 96px) + 40px); }
  .services__stack { gap: var(--stack-gap); }
  .service-card__inner { box-shadow: 0 24px 50px -44px rgba(17,17,17,0.4); }
}

@media (max-width: 480px) {
  .about__caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-bottom: max(70px, env(safe-area-inset-bottom)); }
  .contact__details li { grid-template-columns: 90px 1fr; }
}

/* tablets keep 2-col portfolio */
@media (min-width: 761px) and (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .proj__media--tall { aspect-ratio: 4/3; }
}

/* ============================================================
   CASE STUDY PAGE
   ============================================================ */
.page-case-study .site-nav.is-scrolled,
.page-case-study .site-nav { width: min(1040px, 94vw); top: 14px; }
.page-case-study .site-nav .nav__inner {
  padding: 9px 9px 9px 22px;
  border-radius: 100px;
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 50px -20px rgba(17,17,17,0.30);
}
.page-case-study .nav__mark--light { opacity: 0; visibility: hidden; }
.page-case-study .nav__mark--dark { opacity: 1; visibility: visible; }
.page-case-study .nav__links a { color: var(--ink-2); }
.page-case-study .nav__links a:hover { color: var(--ink); }
.page-case-study .nav__cta { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-case-study .nav__toggle span { background: var(--ink); }

.cs-hero {
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(48px, 6vw, 80px);
  background: var(--bg);
}
.cs-hero__back {
  display: inline-flex; align-items: center; gap: 0.55em;
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--ink-2); font-size: 0.92rem;
}
.cs-hero__back svg { width: 1em; height: 1em; transform: scaleX(-1); }
.cs-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px;
}
.cs-hero__meta span {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.45em 0.85em;
  background: var(--surface);
}
.cs-hero__title {
  font-size: clamp(2.2rem, 1.2rem + 4.8vw, 5rem);
  letter-spacing: -0.04em; line-height: 0.98; max-width: 16ch;
}
.cs-hero__subtitle {
  margin-top: clamp(18px, 2.5vw, 28px);
  font-size: var(--t-lead); color: var(--ink-2); max-width: 52ch; line-height: 1.45;
}
.cs-hero__role {
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); max-width: 72ch;
}
.cs-hero__role strong { display: block; margin-bottom: 8px; font-size: 0.92rem; }
.cs-hero__role p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

.cs-figure {
  margin-top: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px -50px rgba(17,17,17,0.35);
}
.cs-figure img {
  display: block; width: 100%; height: auto;
}
.cs-figure figcaption {
  padding: 14px 18px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--ink-2); text-transform: uppercase;
}

.cs-block { padding-block: clamp(56px, 8vw, 110px); }
.cs-block--soft { background: var(--soft); }
.cs-block__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.cs-block__head h2 {
  font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.cs-block__head p {
  margin-top: 16px; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.5;
}

.cs-list {
  display: grid; gap: 12px; max-width: 62ch;
}
.cs-list li {
  position: relative; padding-left: 1.35em;
  color: var(--ink-2); font-size: 1.05rem; line-height: 1.5;
}
.cs-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sand);
}

.cs-solution { display: grid; gap: clamp(40px, 6vw, 72px); }
.cs-solution__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.cs-solution__item:nth-child(even) .cs-solution__media { order: 2; }
.cs-solution__item:nth-child(even) .cs-solution__copy { order: 1; }
.cs-solution__num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--sand); text-transform: uppercase; margin-bottom: 12px;
}
.cs-solution__copy h3 {
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  letter-spacing: -0.03em; margin-bottom: 14px;
}
.cs-solution__copy p { color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.cs-solution__copy ul { display: grid; gap: 8px; }
.cs-solution__copy li {
  color: var(--ink-2); padding-left: 1.1em; position: relative; line-height: 1.45;
}
.cs-solution__copy li::before {
  content: "—"; position: absolute; left: 0; color: var(--sand);
}
.cs-solution__media {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  box-shadow: 0 24px 50px -40px rgba(17,17,17,0.35);
}
.cs-solution__media img {
  display: block; width: 100%; height: auto;
}

.cs-compare {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.cs-compare table { width: 100%; border-collapse: collapse; }
.cs-compare th,
.cs-compare td {
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.4vw, 24px);
  text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: 0.95rem; line-height: 1.45;
}
.cs-compare th {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); background: var(--soft);
}
.cs-compare tr:last-child td { border-bottom: 0; }
.cs-compare td:first-child { color: var(--ink-2); width: 42%; }
.cs-compare td:last-child { font-weight: 500; }

.cs-gallery-wrap {
  margin-top: clamp(28px, 4vw, 44px);
}
.cs-gallery__hint {
  display: none;
  margin-bottom: 12px;
  font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
}
.cs-gallery {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(12px, 2vw, 18px);
}
.cs-gallery__item {
  flex: 0 0 clamp(120px, 16vw, 168px);
  max-width: 168px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.cs-gallery__item img {
  display: block; width: 100%; height: auto;
  max-height: 280px; object-fit: contain; object-position: top center;
  background: var(--bg);
}
.cs-gallery__item figcaption {
  padding: 8px 10px; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.cs-block--proof { background: var(--soft); }
.cs-proof__head {
  margin-bottom: clamp(32px, 5vw, 56px); max-width: 58ch;
}
.cs-proof__head h2 {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem);
  letter-spacing: -0.04em; line-height: 1.02;
}
.cs-proof__head h2 em {
  font-style: normal; color: var(--sand);
}
.cs-proof__head p {
  margin-top: 16px; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.5;
}

.cs-proof {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); overflow: hidden;
  box-shadow: 0 40px 90px -60px rgba(17,17,17,0.45);
}
.cs-proof__compare {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.cs-proof__before,
.cs-proof__after {
  text-align: center; min-width: 140px;
}
.cs-proof__tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4em 0.85em; background: var(--bg);
}
.cs-proof__tag--highlight {
  color: var(--sand); border-color: rgba(163,139,104,0.45);
  background: rgba(163,139,104,0.08);
}
.cs-proof__num {
  margin-top: 14px;
  font-size: clamp(2.8rem, 2rem + 3vw, 5rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  color: var(--ink-2);
}
.cs-proof__num--highlight { color: var(--ink); }
.cs-proof__unit {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
}
.cs-proof__arrow { color: var(--sand); flex-shrink: 0; }

.cs-proof__dashboard {
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg);
}
.cs-proof__dashboard img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(17,17,17,0.35);
}
.cs-proof__dashboard figcaption {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); text-align: center;
}

.cs-proof__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
}
.cs-proof__metrics li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: clamp(22px, 3vw, 32px) 16px;
  background: var(--surface); text-align: center;
}
.cs-proof__metric-val {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.cs-proof__metric-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
}
.cs-proof__metric-delta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: #1a7a45; font-weight: 500;
}

.cs-results {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
  margin-top: clamp(40px, 5vw, 64px);
}
.cs-stat {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); background: var(--surface);
  display: flex; flex-direction: column; justify-content: center;
}
.cs-stat__label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sand);
}
.cs-stat__before,
.cs-stat__after {
  margin-top: 18px; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem);
  line-height: 1.4;
}
.cs-stat__after {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); font-weight: 500;
  letter-spacing: -0.03em;
}
.cs-stat__note {
  margin-top: 16px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5;
}

.cs-cta {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cs-cta h3 {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -0.03em;
}
.cs-cta p { margin-top: 10px; color: rgba(255,255,255,0.78); max-width: 42ch; }
.cs-cta .btn--solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cs-cta .btn--solid:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }

@media (max-width: 1024px) {
  .cs-solution__item,
  .cs-solution__item:nth-child(even) .cs-solution__media,
  .cs-solution__item:nth-child(even) .cs-solution__copy { grid-template-columns: 1fr; order: unset; }
  .cs-results { grid-template-columns: 1fr; }
  .cs-proof__metrics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cs-compare { overflow-x: auto; }
  .cs-compare table { min-width: 520px; }

  .cs-gallery-wrap {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .cs-gallery__hint { display: block; }
  .cs-gallery {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 6px;
  }
  .cs-gallery::-webkit-scrollbar { display: none; }
  .cs-gallery__item {
    flex: 0 0 min(68vw, 200px);
    max-width: 200px;
    scroll-snap-align: start;
  }
  .cs-gallery__item img { max-height: 320px; }
}

/* ============================================================
   BLOG / INSIGHTS PAGES
   ============================================================ */
.page-blog .site-nav.is-scrolled,
.page-blog .site-nav,
.page-insights .site-nav.is-scrolled,
.page-insights .site-nav,
.page-contact .site-nav.is-scrolled,
.page-contact .site-nav { width: min(1040px, 94vw); top: 14px; }
.page-blog .site-nav .nav__inner,
.page-insights .site-nav .nav__inner,
.page-contact .site-nav .nav__inner {
  padding: 9px 9px 9px 22px;
  border-radius: 100px;
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 50px -20px rgba(17,17,17,0.30);
}
.page-blog .nav__mark--light,
.page-insights .nav__mark--light,
.page-contact .nav__mark--light { opacity: 0; visibility: hidden; }
.page-blog .nav__mark--dark,
.page-insights .nav__mark--dark,
.page-contact .nav__mark--dark { opacity: 1; visibility: visible; }
.page-blog .nav__links a,
.page-insights .nav__links a,
.page-contact .nav__links a { color: var(--ink-2); }
.page-blog .nav__links a:hover,
.page-insights .nav__links a:hover,
.page-contact .nav__links a:hover { color: var(--ink); }
.page-blog .nav__cta,
.page-insights .nav__cta,
.page-contact .nav__cta { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-blog .nav__toggle span,
.page-insights .nav__toggle span,
.page-contact .nav__toggle span { background: var(--ink); }

.blog-hero {
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(40px, 5vw, 72px);
  background: var(--bg);
}
.blog-hero__back {
  display: inline-flex; align-items: center; gap: 0.55em;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--ink-2); font-size: 0.92rem;
}
.blog-hero__back svg { width: 1em; height: 1em; transform: scaleX(-1); }
.blog-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 20px; color: var(--ink-2);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.blog-hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.blog-hero__title {
  font-size: clamp(2rem, 1.1rem + 3.8vw, 4.2rem);
  letter-spacing: -0.04em; line-height: 1.02; max-width: 20ch;
}
.blog-hero__lead {
  margin-top: clamp(18px, 2.5vw, 28px);
  font-size: var(--t-lead); color: var(--ink-2); max-width: 58ch; line-height: 1.5;
}

.blog-content {
  padding-bottom: clamp(56px, 8vw, 100px);
}
.blog-content__inner {
  max-width: 68ch;
}
.blog-content h2 {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
  letter-spacing: -0.03em; margin-top: clamp(36px, 4vw, 52px); margin-bottom: 16px;
}
.blog-content h2:first-child { margin-top: 0; }
.blog-content p {
  color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; margin-bottom: 16px;
}
.blog-content ul, .blog-content ol {
  margin: 16px 0 20px; padding-left: 1.25em;
  color: var(--ink-2); font-size: 1.05rem; line-height: 1.6;
}
.blog-content li { margin-bottom: 8px; }
.blog-content li::marker { color: var(--sand); }
.blog-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--sand); }

.blog-related {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.blog-related__title {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.blog-related__list {
  display: grid; gap: 0; border-top: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.blog-related__list .article-row { background: var(--surface); }

.blog-cta {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.blog-cta h3 { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.blog-cta p { margin-top: 8px; color: rgba(255,255,255,0.78); max-width: 40ch; }
.blog-cta .btn--solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.blog-cta .btn--solid:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }

.insights-page { padding-top: calc(var(--nav-h) + 48px); padding-bottom: clamp(56px, 8vw, 100px); }
.insights-page__head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 58ch; }
.insights-page__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px);
}
.insights-page__card {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: inherit;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.insights-page__card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px -40px rgba(17,17,17,0.35);
}
.insights-page__card-meta {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sand);
}
.insights-page__card-title {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.65rem);
  letter-spacing: -0.03em; line-height: 1.15;
}
.insights-page__card-desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; flex-grow: 1; }
.insights-page__card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-2);
}
@media (max-width: 760px) {
  .insights-page__grid { grid-template-columns: 1fr; }
  .blog-hero__title { max-width: none; }
}

/* ============================================================
   CONTACT PAGE + HOMEPAGE CTA
   ============================================================ */
.contact-page {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.contact-page__back {
  display: inline-flex; align-items: center; gap: 0.55em;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--ink-2); font-size: 0.92rem;
}
.contact-page__back svg { width: 1em; height: 1em; transform: scaleX(-1); }
.contact-page__head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 58ch; }

.contact-quick {
  margin-bottom: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--bg);
}
.contact-quick__head {
  margin-bottom: clamp(20px, 3vw, 28px);
}
.contact-quick__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.contact-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.contact-quick__icon {
  width: 40px;
  height: 40px;
  display: block;
}
.contact-quick__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: clamp(20px, 2.5vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.contact-quick__card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.contact-quick__card--whatsapp {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.1);
}
.contact-quick__card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.7);
  background: rgba(37, 211, 102, 0.16);
}
.contact-quick__card--telegram {
  border-color: rgba(41, 182, 246, 0.45);
  background: rgba(41, 182, 246, 0.1);
}
.contact-quick__card--telegram:hover {
  border-color: rgba(41, 182, 246, 0.7);
  background: rgba(41, 182, 246, 0.16);
}
.contact-quick__label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.contact-quick__value {
  color: var(--bg);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.contact-quick__hint {
  margin-top: auto;
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mobile-menu__chat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.mobile-menu__chat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.mobile-menu__chat-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.mobile-menu__chat-btn img {
  width: 28px;
  height: 28px;
  display: block;
}

.contact-page__form-section {
  padding: 0;
  background: none;
}

.contact-cta {
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--block-gap);
  flex-wrap: wrap;
}
.contact-cta__title {
  font-size: clamp(1.85rem, 1.1rem + 2.2vw, 3.2rem);
  margin-top: var(--stack-gap);
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 18ch;
}
.contact-cta__title em {
  color: var(--sand);
  padding-bottom: 0.06em;
}
.contact-cta__sub {
  margin-top: var(--stack-gap);
  color: var(--ink-2);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  max-width: 42ch;
}
.contact-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .contact-quick__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .contact-quick__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-hero], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .line > span { transform: none !important; }
  .footer__wordmark span { transform: none !important; }
  .hero__media-layer { transform: scale(1); }
  .hero__scroll-line span { display: none; }
  .cursor { display: none !important; }
  .btn::before { display: none; }
  .btn:hover, .btn:active { transform: none; box-shadow: none; }
}
