/* =========================================================
   EXPECTANCE — refined black & white systems aesthetic
   ========================================================= */

:root {
  --ink:        #0a0a0a;
  --ink-2:      #18181a;
  --paper:      #ffffff;
  --paper-2:    #f3f2ef;   /* warm off-white */
  --paper-3:    #ebeae6;
  --muted:      #4d4c48;
  --muted-2:    #9b9b96;
  --line:       rgba(10, 10, 10, 0.12);
  --line-soft:  rgba(10, 10, 10, 0.07);

  --font-display: "Google Sans", "Outfit", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; 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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

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

.section__head { margin-bottom: clamp(48px, 6vw, 88px); }

.section__head--split {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-end;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.95em 1.7em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); background: var(--ink-2); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--sm { padding: 0.6em 1.2em; font-size: 0.82rem; }

.btn--lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  padding: 0.7em 1.4em;
  letter-spacing: -0.02em;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  line-height: 1; letter-spacing: -0.04em;
  background: var(--ink); color: var(--paper);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em;
}

.nav__links {
  display: flex; gap: 30px; margin-left: auto;
  font-size: 0.9rem; font-weight: 500;
}
.nav__links a {
  position: relative; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 0;
  transition: opacity 0.3s;
}
.nav__idx { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted-2); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--ink);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: 4px; }

.nav__toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 6px; justify-content: center; align-items: center; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  /* balanced top/bottom so the content sits centred (nav clears the top,
     the meta row is pinned to the bottom, out of flow) */
  padding: clamp(108px, 15vh, 150px) 0 clamp(84px, 12vh, 116px);
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
/* radial veil keeps headline legible over the particle field */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 32% 46%,
              rgba(255,255,255,0.92) 0%,
              rgba(255,255,255,0.55) 40%,
              rgba(255,255,255,0) 75%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 8.5vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 2rem;
  max-width: 920px;
}
.hero__title > span { display: block; position: relative; }
.hero__title--em { font-style: italic; font-weight: 500; }

/* ---- Glitch (one-shot chromatic intro — RGB split that settles) ---- */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
}
.glitch::before {
  color: #ff2d55;                 /* magenta-red channel */
  animation: glitch-in-a 0.72s steps(1, end) both;
  animation-delay: calc(var(--d, 0) * 90ms + 140ms);
}
.glitch::after {
  color: #00d4ff;                 /* cyan channel */
  animation: glitch-in-b 0.82s steps(1, end) both;
  animation-delay: calc(var(--d, 0) * 90ms + 140ms);
}
@keyframes glitch-in-a {
  0%   { opacity: .9;  transform: translate(-15px, 2px);  clip-path: inset(0 0 58% 0); }
  20%  { opacity: .9;  transform: translate(11px, -1px);  clip-path: inset(42% 0 20% 0); }
  40%  { opacity: .85; transform: translate(-8px, 1px);   clip-path: inset(8% 0 64% 0); }
  60%  { opacity: .7;  transform: translate(5px, 0);      clip-path: inset(50% 0 12% 0); }
  80%  { opacity: .4;  transform: translate(-2px, 0);     clip-path: inset(0 0 0 0); }
  100% { opacity: 0;   transform: translate(0, 0);        clip-path: inset(0 0 0 0); }
}
@keyframes glitch-in-b {
  0%   { opacity: .9;  transform: translate(15px, -2px);  clip-path: inset(60% 0 0 0); }
  20%  { opacity: .9;  transform: translate(-11px, 1px);  clip-path: inset(18% 0 44% 0); }
  40%  { opacity: .85; transform: translate(8px, -1px);   clip-path: inset(66% 0 6% 0); }
  60%  { opacity: .7;  transform: translate(-4px, 0);     clip-path: inset(12% 0 52% 0); }
  80%  { opacity: .4;  transform: translate(2px, 0);      clip-path: inset(0 0 0 0); }
  100% { opacity: 0;   transform: translate(0, 0);        clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
}

/* ---- Rotating headline word (glitches between terms) ---- */
.rotate-word { display: inline-block; position: relative; will-change: transform; }
.rotate-word.is-glitching {
  animation: rw-glitch 0.16s steps(2, end) infinite;
}
@keyframes rw-glitch {
  0%   { text-shadow: 2px 0 #ff2d55, -2px 0 #00d4ff; transform: translate(0, 0) skewX(0); }
  33%  { text-shadow: -3px 0 #ff2d55, 3px 0 #00d4ff; transform: translate(1px, -1px) skewX(-3deg); }
  66%  { text-shadow: 3px 0 #ff2d55, -3px 0 #00d4ff; transform: translate(-1px, 1px) skewX(2deg); }
  100% { text-shadow: -2px 0 #ff2d55, 2px 0 #00d4ff; transform: translate(0, 0); }
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 2.6rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 28px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted); flex-wrap: wrap;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.hero__scroll-line {
  width: 46px; height: 1px; background: var(--ink); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--paper-3);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 20px 0;
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  animation: marquee 34s linear infinite;
}
.ticker__dot { color: var(--muted-2); font-weight: 400; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   CAPABILITIES
   ========================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);   /* close the box so a part-full last row reads cleanly */
  border-bottom: 1px solid var(--line);
}
.cap {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.45s var(--ease);
  overflow: hidden;
}
.cap::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--ink); transition: width 0.5s var(--ease);
}
.cap:hover { background: var(--paper-2); }
.cap:hover::before { width: 100%; }
.cap__idx { color: var(--muted-2); display: block; margin-bottom: 2.4rem; }
.cap__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.62rem);
  letter-spacing: -0.03em; margin-bottom: 0.85rem;
}
.cap__body { color: var(--muted); font-size: 0.97rem; line-height: 1.6; margin-bottom: 1.6rem; }
.cap__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.cap__tags li {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px;
}

/* inviting CTA cell — completes the grid and adds a conversion path */
.cap--cta {
  grid-column: span 2;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  display: flex; flex-direction: column;
}
.cap--cta::before { display: none; }
.cap--cta:hover { background: var(--ink-2); }
.cap--cta .cap__title { margin-bottom: 0.85rem; }
.cap--cta .cap__body { color: rgba(255, 255, 255, 0.6); margin-bottom: auto; max-width: 42ch; }
.cap--cta .cap__more {
  margin-top: 1.8rem; color: var(--paper);
  display: inline-flex; align-items: center; gap: 0.4em;
}
.cap--cta:hover .cap__more { text-decoration: underline; text-underline-offset: 4px; }
.cap--cta ::selection { background: var(--paper); color: var(--ink); }

/* =========================================================
   WORK / PORTFOLIO
   ========================================================= */
.work { background: var(--paper); }
.work__filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.work__list { border-top: 1px solid var(--line); }

.work__more-wrap { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.work__more[hidden] { display: none; }

.case {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.7fr) 200px 220px;
  gap: 28px; align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 8px;
  border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
}
/* soft, full-bleed fill — wipes in from the left on hover, fades out in place
   on leave (opacity fades fast while the wipe retreats slowly out of sight) */
.case::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: 50%; width: 100vw; margin-left: -50vw;
  background: var(--paper-2);
  transform: scaleX(0); transform-origin: left center;
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
  z-index: -1; pointer-events: none;
}
.case:hover::before {
  transform: scaleX(1); opacity: 1;
  transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
}
.case.is-hidden {
  display: none;
}
.case__num { color: var(--muted-2); align-self: start; padding-top: 6px; }
.case__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.case__desc { color: var(--muted); font-size: 0.97rem; line-height: 1.55; max-width: 52ch; }
.case__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.case__tags li {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 100px;
}
.case__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.case__metric { font-size: 0.92rem; color: var(--muted); }
.case__metric strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em;
  display: block;
}

/* =========================================================
   APPROACH
   ========================================================= */
.approach { background: var(--paper-2); max-width: none; }
.approach > .section__head, .approach > .steps { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.approach { padding-left: 0; padding-right: 0; }
.approach .section__head { padding: 0 var(--gutter); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-right: 0; }
.step__num {
  display: block; color: var(--ink); margin-bottom: 1.2rem;
  font-size: 0.82rem; letter-spacing: 0.02em;
}
.step__body { color: var(--muted); font-size: 0.97rem; line-height: 1.6; }

/* =========================================================
   STATS / ABOUT
   ========================================================= */
.stats__intro { margin-bottom: clamp(56px, 7vw, 96px); }
.stats__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.16; letter-spacing: -0.025em;
  max-width: 22ch;
}
.stats__statement em { font-style: italic; font-weight: 600; }

.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 38px 24px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1; letter-spacing: -0.04em;
}
.stat__label { color: var(--muted); }

/* =========================================================
   CLOSING — dark zone (CTA + footer) sharing one particle field
   ========================================================= */
.closing {
  position: relative;
  background: #000;
  overflow: hidden;
}
/* ambient drifting particles behind the whole dark zone (CTA + footer) */
.closing__particles {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative; z-index: 1;
  background: transparent; color: var(--paper);
  max-width: none; text-align: center;
}
.cta__inner { max-width: 860px; margin: 0 auto; }
.cta .label { color: var(--muted-2); }
.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.0; letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}
.cta__lead { color: var(--paper-3); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 46ch; margin: 0 auto 2.6rem; }
.cta .btn--lg { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn--lg:hover { background: transparent; color: var(--paper); }
.cta ::selection { background: var(--paper); color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; z-index: 1; overflow: hidden;
  background: transparent; color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__particles {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.footer ::selection { background: var(--paper); color: var(--ink); }
.footer__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter) 48px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px;
}
.footer__brand { max-width: 360px; }
.footer__brand .brand__mark { margin-bottom: 20px; background: var(--paper); color: var(--ink); }
.footer__tag { color: rgba(255, 255, 255, 0.58); font-size: 0.92rem; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__head { color: rgba(255, 255, 255, 0.42); margin-bottom: 6px; }
.footer__col a { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; width: fit-content; position: relative; transition: color 0.3s; }
.footer__col a:hover { color: var(--paper); }
.footer__col a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px;
  background: var(--paper); transition: width 0.35s var(--ease);
}
.footer__col a:hover::after { width: 100%; }

/* compact contact (mobile only) — logo + email/social icons in a row */
.footer__compact { display: none; }
.footer__compact .brand__mark { background: var(--paper); color: var(--ink); }
.footer__icons { display: flex; align-items: center; gap: 22px; }
.footer__icons a {
  display: inline-flex; color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s, transform 0.3s var(--ease);
}
.footer__icons a:hover { color: var(--paper); transform: translateY(-2px); }
.footer__icons svg { width: 23px; height: 23px; display: block; }

.footer__base {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .case { grid-template-columns: 44px minmax(0, 1.6fr) 150px; }
  .case__meta { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .case__metric strong { display: inline; font-size: 1.1rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }

  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav__links.is-open a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav.is-scrolled .nav__links.is-open { background: var(--paper); }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap--cta { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; border-bottom: none; }
  .step { padding: 36px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 30px; }
}

@media (max-width: 560px) {
  .hero__veil { background: radial-gradient(ellipse 120% 70% at 50% 42%, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0) 80%); }
  .hero__meta .mono:nth-child(3) { display: none; }

  .cap-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .stats__grid { grid-template-columns: 1fr; }

  .case { grid-template-columns: 36px 1fr; gap: 16px; }
  .case__tags { grid-column: 2; }
  .case__meta { grid-column: 2; }

  /* simplified mobile footer: just the number + email/social icons */
  .footer__inner { display: none; }
  .footer__compact {
    position: relative; z-index: 1;
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 22px;
    padding: clamp(56px, 16vw, 88px) var(--gutter) 36px;
  }
  .footer__base { justify-content: flex-start; }
  .footer__base .mono:nth-child(2) { display: none; }
}
