/* ==========================================================================
   NOVEN — design system
   Light, editorial, hairline-ruled. Gradients only on hero, hover, buttons,
   and abstract objects. Never behind body copy.

   Type: Inter variable, self-hosted and subset to Latin (65KB, one request)
   so the design renders identically on Windows and Android, not just Apple.
   ========================================================================== */

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-var.woff2") format("woff2");
  /* Latin + punctuation only */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette */
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --card: #FCFCFD;
  --ink: #111111;
  --ink-2: #6B7280;
  --line: #EAEAEA;
  --line-soft: #F1F2F4;
  --accent: #5A7DFF;
  --accent-2: #8B5CFF;
  --highlight: #AEEBFF;

  /* Accessible variants of the brand accents.
     #5A7DFF gives white text only 3.6:1 — below AA. These deepened tones
     hold the same hue at 5.3:1 and 6.1:1, and are used wherever white sits
     on colour or a brand colour is used as text. */
  --accent-deep: #3F5FE8;
  --accent-2-deep: #6D3FE0;

  /* Type */
  --font: "Inter var", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* Rhythm — deliberately tighter than the first pass; the page reads
     denser and more editorial, less like a template with air to fill. */
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1240px;
  --section: clamp(60px, 7vw, 104px);

  /* Elevation — barely there */
  --shadow-1: 0 1px 2px rgba(17, 17, 17, 0.04),
    0 8px 24px -12px rgba(17, 17, 17, 0.08);
  --shadow-2: 0 2px 4px rgba(17, 17, 17, 0.04),
    0 24px 56px -20px rgba(17, 17, 17, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.skip-link:focus { left: 16px; }

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

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(44px, 5vw, 68px); }
.section--surface { background: var(--surface); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Brand graphics ----------
   A small kit of reusable marks so sections stop looking interchangeable:
   a dot-grid, a hairline rule-grid, and soft iridescent blooms. All are
   decorative and pointer-transparent. */
.bg-dots,
.bg-grid,
.bg-bloom { position: relative; isolation: isolate; }

.bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(17, 17, 17, 0.13) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.6;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

/* Kept strictly inside its own section. An earlier version used a negative
   top inset, which pushed the purple bloom up over the tail of the
   preceding section — it landed behind "Long-term partnerships" and read
   as an unexplained gradient behind body copy. */
.bg-bloom { overflow: hidden; }
.bg-bloom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 86% 16%, rgba(174, 235, 255, 0.34), transparent 70%),
    radial-gradient(32% 30% at 8% 88%, rgba(139, 92, 255, 0.10), transparent 72%);
  filter: blur(6px);
}

/* Free-floating ribbon marks used as section punctuation */
.ribbon {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  filter: blur(0.3px);
}
.ribbon--tr { top: -40px; right: -60px; width: min(46vw, 420px); rotate: -8deg; }
.ribbon--bl { bottom: -50px; left: -70px; width: min(40vw, 340px); rotate: 172deg; opacity: 0.35; }
@media (max-width: 760px) { .ribbon { display: none; } }


/* ---------- Type ---------- */
.display {
  font-size: clamp(2.75rem, 6.9vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.048em;
  font-weight: 600;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.026em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.016em;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.body { color: var(--ink-2); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 76px);
}
.section-head .lede { max-width: 52ch; }

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 48px;
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--accent-deep), var(--accent-2-deep) 70%, #7A4BE6);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 12px 32px -14px rgba(90, 125, 255, 0.75); }
.btn:active { transform: scale(0.98); }

.btn--gradient { --btn-bg: transparent; color: #fff; }
.btn--gradient::before { opacity: 1; }
.btn--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--accent-2-deep), var(--accent-deep) 55%, #2F4FDC);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.btn--gradient:hover::after { opacity: 1; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost::before { display: none; }
.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface);
  box-shadow: none;
}

.btn--sm { height: 40px; padding-inline: 18px; font-size: 14.5px; }
.btn--lg { height: 60px; padding-inline: 34px; font-size: 17px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with a wiping underline */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link .arrow { transition: transform 0.45s var(--ease); }
.link:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft),
    backdrop-filter 0.4s var(--ease-soft);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand lockup — iridescent wave mark beside a light, wide-tracked wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.logo__mark {
  width: 58px;
  height: auto;
  flex: none;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.logo:hover .logo__mark {
  transform: translateY(-2px) scale(1.05);
  filter: saturate(1.12);
}
.logo__word {
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.32em;
  line-height: 1;
  /* wide tracking adds a trailing gap; pull it back so the lockup
     reads as optically balanced */
  margin-right: -0.32em;
}

/* Stacked lockup, used in the footer */
.logo--stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.logo--stack .logo__mark { width: 64px; margin-left: -4px; }
.logo--stack .logo__word { font-size: 21px; }

@media (max-width: 420px) {
  .logo__mark { width: 46px; }
  .logo__word { font-size: 17px; letter-spacing: 0.28em; margin-right: -0.28em; }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.menu a[aria-current="page"] { color: var(--accent-deep); }

.nav__right { display: flex; align-items: center; gap: 14px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle span + span { margin-top: 4px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-2.75px) rotate(-45deg); }
@media (min-width: 900px) { .nav__toggle { display: none; } }

.menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 32px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu a {
  padding: 15px 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(52px, 7.5vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(58% 44% at 78% 18%, rgba(174, 235, 255, 0.5), transparent 68%),
    radial-gradient(48% 40% at 12% 6%, rgba(139, 92, 255, 0.16), transparent 70%),
    radial-gradient(70% 55% at 50% 108%, rgba(90, 125, 255, 0.13), transparent 72%);
  filter: blur(6px);
  animation: drift 26s ease-in-out infinite alternate;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  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='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.07); }
}

.hero__grid { display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; }
}

.hero__copy { display: grid; gap: 28px; justify-items: start; }
/* quieter than the section eyebrows — it sits directly above the largest
   type on the site and was competing with it */
.hero__copy > .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #8A909B;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 125, 255, 0.16);
}

/* Hero graphic — a photographed chrome/glass form. Not the logo: the mark
   already sits in the nav, and repeating it here read as branding rather
   than art direction. */
.hero-art {
  position: relative;
  width: min(112%, 700px);
  /* allowed to bleed past its grid column so the object holds its own
     against a four-line headline */
  margin-inline: auto -6%;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.hero-art img {
  width: 100%;
  height: auto;
  /* The source is shot on near-white. multiply drops the backdrop toward
     the page, and the radial mask feathers the frame edge so no grey
     rectangle shows against the hero gradient. */
  mix-blend-mode: multiply;
  mask-image: radial-gradient(58% 54% at 50% 46%, #000 34%, transparent 76%);
  -webkit-mask-image: radial-gradient(58% 54% at 50% 46%, #000 34%, transparent 76%);
  animation: sway 14s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { translate: 0 -9px; }
  50%      { translate: 0 9px; }
}

/* ---------- Trusted by ----------
   A single ruled band: label on the left, wordmarks flowing to the right,
   each with a hairline divider. Reads as a masthead credit line rather
   than the usual logo-soup grid. */
.trust {
  display: grid;
  gap: 22px;
  padding-block: clamp(26px, 3vw, 38px);
  border-block: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 900px) {
  .trust { grid-template-columns: auto 1fr; gap: 44px; }
}

.trust__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.trust__label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line);
}
@media (max-width: 899px) { .trust__label::after { display: none; } }

.trust__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.trust__item {
  position: relative;
  padding: 6px clamp(14px, 2.2vw, 26px);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #8C939E;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.trust__item:first-child { padding-left: 0; }
.trust__item + .trust__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 13px;
  width: 1px;
  background: var(--line);
  transform: translateY(-50%);
}
.trust__item:hover { color: var(--ink); transform: translateY(-1px); }

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  position: relative;
  background: var(--card);
  padding: clamp(28px, 3.2vw, 40px);
  min-height: 268px;
  display: grid;
  align-content: start;
  gap: 12px;
  isolation: isolate;
  transition: background 0.5s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    120% 100% at var(--mx, 50%) var(--my, 0%),
    rgba(90, 125, 255, 0.13),
    rgba(139, 92, 255, 0.06) 42%,
    transparent 70%
  );
  transition: opacity 0.5s var(--ease);
}
.service:hover::before { opacity: 1; }
.service:hover { background: #fff; }

.service__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.service__title { display: flex; align-items: flex-start; gap: 10px; }
/* titles wrap to one or two lines depending on length; reserving two lines
   keeps every description in a row starting on the same baseline */
@media (min-width: 700px) {
  .service__title { min-height: 2.5em; }
}
.service__title .arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  color: var(--accent-deep);
}
.service:hover .service__title .arrow { opacity: 1; transform: none; }
.service p { color: var(--ink-2); font-size: 15.5px; }

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.service:hover .service__tags,
.service:focus-within .service__tags { opacity: 1; transform: none; }
.tag {
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--bg);
}

/* ---------- Work ---------- */
.work { display: grid; gap: clamp(20px, 2.4vw, 28px); }
@media (min-width: 940px) {
  .work { grid-template-columns: repeat(2, 1fr); }
  .work__item--wide { grid-column: 1 / -1; }
}

.case {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease),
    border-color 0.6s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: #DFE3EA;
}
@media (min-width: 940px) {
  .work__item--wide .case { grid-template-columns: 1.02fr 0.98fr; }
}

.case__visual {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--surface);
}
.case__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.case:hover .case__img { transform: scale(1.04); }
/* on the wide card the image is a full-height column, not a banner */
@media (min-width: 940px) {
  .work__item--wide .case__visual { min-height: 100%; }
}


.case__body {
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  align-content: start;
  gap: 20px;
}
/* On the wide card the body is a full-height column beside the image, so
   content-start alignment left ~100px of dead space under the metrics.
   Push the metrics to the bottom edge instead. */
@media (min-width: 940px) {
  .work__item--wide .case__body {
    align-content: space-between;
    grid-template-rows: auto auto 1fr;
  }
  .work__item--wide .case__metrics { align-self: end; }
}
.case__head { display: grid; gap: 10px; }

/* Expand-in-place: the card opens to its full write-up rather than dead-ending.
   The button lives inside the heading (the standard disclosure pattern) so the
   document outline keeps its h3. */
.case__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.case__toggle > span:first-child { flex: 1; }
.case__plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.5s var(--ease);
}
.case:hover .case__plus { border-color: #D8DCE4; }
.case__plus::before,
.case__plus::after {
  content: "";
  position: absolute;
  inset: 50% 9px auto 9px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.case__plus::after { transform: translateY(-50%) rotate(90deg); }
.case.is-open .case__plus {
  transform: rotate(180deg);
  background: var(--surface);
  border-color: #D8DCE4;
}
.case.is-open .case__plus::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

/* The 0fr→1fr reveal needs overflow:hidden in BOTH places, for opposite
   reasons — this took two passes to get right:
     - on the container, so the open (1fr) state resolves to the content
       height instead of collapsing;
     - on the item, so the closed (0fr) state can actually reach zero.
       Without it the item keeps its automatic minimum size (= content
       height) and the panel sits permanently open.
   Removing either one silently breaks one of the two states. */
.case__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.6s var(--ease);
}
.case.is-open .case__panel { grid-template-rows: 1fr; }
.case__panel > div { overflow: hidden; }
.case__panel .case__detail { padding-top: 2px; }
.case__sector {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.case__detail { display: grid; gap: 14px; }
.case__detail div { display: grid; gap: 4px; }
.case__detail dt {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  font-weight: 500;
}
.case__detail dd { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.case__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case__metrics div { display: grid; gap: 2px; }
.case__metrics b {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.case__metrics span { font-size: 13px; color: var(--ink-2); }

/* ---------- Results ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }

.metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 168px;
  box-shadow: var(--shadow-1);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.metric:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.metric__value {
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric__label { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Why ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar {
  display: grid;
  gap: 10px;
  padding-block: clamp(26px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.pillar:hover { background: linear-gradient(90deg, rgba(247, 248, 250, 0.9), transparent 62%); }
@media (min-width: 860px) {
  .pillar { grid-template-columns: 56px 0.9fr 1.3fr; gap: 32px; align-items: start; }
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding-top: 5px;
}
.pillar p { color: var(--ink-2); max-width: 60ch; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; gap: 0; }
.process__track {
  position: absolute;
  z-index: 2; /* sits above the opaque .step cells */
  left: 5px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.process__track i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transition: height 0.25s linear;
}
@media (min-width: 980px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
  .process__track { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .process__track i { inset: 0 auto 0 0; height: 100%; width: 0; transition: width 0.25s linear; }
}

.step {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px) 0 clamp(28px, 3vw, 44px) 34px;
  display: grid;
  gap: 12px;
  align-content: start;
}
@media (min-width: 980px) {
  .step { padding: clamp(36px, 3.4vw, 52px) clamp(22px, 2.2vw, 32px); }
}
.step::before {
  content: "";
  position: absolute;
  z-index: 3; /* dots cap the connector line */
  left: 0;
  top: calc(clamp(28px, 3vw, 44px) + 8px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
@media (min-width: 980px) {
  .step::before { left: clamp(22px, 2.2vw, 32px); top: -5px; }
}
.step.is-lit::before {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(90, 125, 255, 0.14);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Testimonials ----------
   Editorial, not cards. Each quote is paired with the number that engagement
   actually moved, so the section carries evidence rather than sentiment —
   the earlier badge-and-card treatment read like generic SaaS social proof. */
.quotes { display: grid; }

.quote-item {
  display: grid;
  gap: 22px;
  padding-block: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.quote-item:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .quote-item {
    grid-template-columns: 1.55fr 0.45fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
  }
}

.quote-item blockquote {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
/* the lead quote carries more weight than the two beneath it */
.quote-item--lead blockquote {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 20ch;
}

/* Typographic quote marks via the `quotes` property, so the glyphs stay
   decorative and the copy stays clean. The opening mark hangs into the
   left margin, keeping the text edge aligned with everything above it. */
.quote-item blockquote { quotes: "\201C" "\201D"; }
.quote-item blockquote p::before { content: open-quote; margin-left: -0.4em; }
.quote-item blockquote p::after { content: close-quote; }

.quote-item__attrib { display: grid; gap: 3px; margin-top: 22px; }
.quote-item__name { font-size: 15px; font-weight: 500; letter-spacing: -0.012em; }
.quote-item__role { font-size: 14px; color: var(--ink-2); }

/* the result that quote is about */
.quote-item__result {
  display: grid;
  gap: 4px;
  align-content: start;
  padding-top: 6px;
}
@media (min-width: 900px) {
  .quote-item__result {
    padding-left: clamp(20px, 2.4vw, 32px);
    border-left: 1px solid var(--line);
  }
}
.quote-item__figure {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* solid rather than a gradient text-fill — the gradient lost contrast
     and legibility at this size */
  color: var(--accent-deep);
}
.quote-item__label { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Insights ----------
   Magazine layout: one lead article with a full plate, then a ruled
   column of secondary pieces. Deliberately unlike the Work and Process
   sections so the page doesn't repeat one rhythm throughout. */
.insights { display: grid; gap: clamp(28px, 3.5vw, 44px); }
@media (min-width: 940px) {
  .insights { grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 4vw, 60px); }
}

.lead { display: grid; gap: 20px; align-content: start; }
.lead__img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}
.lead__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.lead:hover .lead__img img { transform: scale(1.04); }
.lead__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lead__meta span { display: inline-flex; align-items: center; gap: 12px; }
.lead__meta span::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--line);
}
.lead__title {
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 600;
  text-wrap: balance;
}
.lead__dek { color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

.stack { display: grid; align-content: start; border-top: 1px solid var(--line); }
.post {
  display: grid;
  gap: 10px;
  padding-block: clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  transition: padding-inline 0.5s var(--ease), background 0.5s var(--ease);
}
.post:hover { padding-inline: 14px; background: var(--surface); }
.post__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.post__title {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  letter-spacing: -0.028em;
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}
.post__dek { color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-deep);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.post:hover .post__more, .post:focus-within .post__more { opacity: 1; transform: none; }
@media (hover: none) { .post__more { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.2vw, 26px) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  letter-spacing: -0.024em;
  font-weight: 500;
  transition: color 0.35s var(--ease);
}
.faq__q:hover { color: var(--accent-deep); }
.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden; /* container clip — see .case__panel for why both are needed */
  transition: grid-template-rows 0.5s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; } /* item clip, so the closed state reaches 0 */
.faq__a p {
  color: var(--ink-2);
  max-width: 68ch;
  padding-bottom: clamp(20px, 2.2vw, 26px);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(48px, 8vw, 108px) clamp(26px, 5vw, 76px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 26px;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  z-index: 0;
  background:
    radial-gradient(50% 44% at 50% 96%, rgba(90, 125, 255, 0.24), transparent 68%),
    radial-gradient(42% 40% at 16% 8%, rgba(174, 235, 255, 0.42), transparent 70%),
    radial-gradient(40% 38% at 86% 12%, rgba(139, 92, 255, 0.18), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.cta > * { position: relative; z-index: 1; }
.cta .h2 { max-width: 16ch; }
.cta .body { max-width: 48ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__top {
  display: grid;
  gap: 44px;
  padding-block: clamp(52px, 6vw, 76px);
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.3fr repeat(3, 0.72fr); gap: 40px; }
}
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 34ch; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  font-family: var(--font-mono);
}
.footer__col a {
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
  /* 24px line box alone is under the 44px touch minimum on mobile */
  padding-block: 10px;
  margin-block: -10px;
}
.footer__col a:hover { color: var(--ink); }

.news { display: grid; gap: 10px; max-width: 400px; }
.news__row { display: flex; gap: 8px; }
.news input {
  flex: 1;
  height: 46px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news input::placeholder { color: var(--ink-2); }
.news input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 125, 255, 0.14);
}
.news small { font-size: 12.5px; color: var(--ink-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { padding-block: 11px; margin-block: -11px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(44px, 6vw, 80px); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.82fr 1.18fr; } }

.info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info__row {
  display: grid;
  gap: 6px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.info__row dt { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }
.info__row dd {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  letter-spacing: -0.024em;
  font-weight: 500;
}
.info__row dd .body { font-size: 15.5px; font-weight: 400; letter-spacing: -0.011em; }

.form {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: clamp(26px, 3.4vw, 44px);
  display: grid;
  gap: 22px;
  box-shadow: var(--shadow-1);
}
.form__grid { display: grid; gap: 20px; }
@media (min-width: 620px) { .form__grid--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 13.5px; font-weight: 500; letter-spacing: -0.006em; }
.field label .opt { color: var(--ink-2); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 13px 15px;
  font-size: 15.5px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 138px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 125, 255, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #D6455B; }
.err { font-size: 12.5px; color: #C2374C; }
.err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  background: var(--bg);
  transition: all 0.35s var(--ease);
}
.chip input:checked + span {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: linear-gradient(120deg, rgba(90, 125, 255, 0.1), rgba(139, 92, 255, 0.08));
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip:hover span { border-color: #DADEE6; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding-top: 4px;
}
.form__note { font-size: 13px; color: var(--ink-2); max-width: 34ch; }

.form__status {
  display: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.form__status.is-shown { display: block; }
.form__status.is-ok {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: linear-gradient(120deg, rgba(90, 125, 255, 0.09), rgba(174, 235, 255, 0.14));
}
.form__status.is-bad { border-color: #F0C2CA; background: #FDF4F5; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.calendly {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: clamp(30px, 4vw, 56px);
  display: grid;
  gap: 26px;
  align-items: center;
}
@media (min-width: 900px) {
  .calendly { grid-template-columns: 1fr auto; gap: 48px; }
}
.calendly__copy { display: grid; gap: 12px; }
.calendly__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 12px 16px;
  font-size: 14px;
  display: grid;
  gap: 2px;
  min-width: 104px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.slot:hover { border-color: #DADEE6; transform: translateY(-2px); }
.slot b { font-weight: 500; }
.slot span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), visibility 0.45s;
}
.sticky-cta.is-shown { opacity: 1; visibility: visible; transform: none; }
.sticky-cta .btn { box-shadow: 0 10px 30px -10px rgba(17, 17, 17, 0.35); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.24s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot {
  transform: scale(1.75);
  background: rgba(90, 125, 255, 0.1);
  border-color: rgba(90, 125, 255, 0.55);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Article pages ----------
   A single measured column. Everything here is optimised for reading:
   ~68ch measure, larger body size than the marketing pages, and generous
   space between blocks rather than inside them. */
.article {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 76px));
  padding-bottom: clamp(56px, 7vw, 96px);
}
.article__head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(34px, 4vw, 52px);
}
/* only the headline is measure-constrained; the meta line needs the full
   width or the category/read-time rule wraps onto its own row */
.article__title { max-width: 20ch; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.article__meta span { display: inline-flex; align-items: center; gap: 12px; }
.article__meta span::before { content: ""; width: 16px; height: 1px; background: var(--line); }

.article__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.042em;
  font-weight: 600;
  text-wrap: balance;
}

.article__lede {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  letter-spacing: -0.016em;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.article__hero {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: clamp(34px, 4.5vw, 56px);
  aspect-ratio: 16 / 8;
  background: var(--surface);
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

/* Inter's `ch` (the width of "0") is much wider than its average glyph, so
   68ch measured out at ~83 characters per line. 56ch lands at ~68, which is
   the range that actually reads well. */
.prose { max-width: 56ch; }
.prose > * + * { margin-top: 1.5em; }
.prose p {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: #2C3038;
  text-wrap: pretty;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: 2.4em;
}
.prose h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  letter-spacing: -0.022em;
  font-weight: 600;
  margin-top: 1.9em;
}
.prose ul, .prose ol { display: grid; gap: 0.7em; padding-left: 1.15em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: #2C3038;
  padding-left: 0.2em;
}
.prose li::marker { color: var(--ink-2); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.prose blockquote {
  border-left: 2px solid var(--line);
  padding-left: clamp(18px, 2.4vw, 28px);
  margin-block: 2em;
}
.prose blockquote p {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: -0.024em;
  color: var(--ink);
  font-weight: 500;
}

/* A pulled-out practical box — the "how to actually do it" of each piece */
.callout {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: clamp(22px, 2.8vw, 32px);
  margin-block: 2.2em;
  display: grid;
  gap: 14px;
}
.callout h3 { margin-top: 0; font-size: 1.02rem; letter-spacing: -0.018em; }
.callout ul, .callout ol { margin-top: 0; }
.callout li, .callout p { font-size: 1rem; }

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 26px;
  transition: color 0.3s var(--ease);
}
.article__back:hover { color: var(--ink); }
.article__back .arrow { transition: transform 0.4s var(--ease); }
.article__back:hover .arrow { transform: translateX(-3px); }

.article__foot {
  max-width: 56ch;
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(28px, 3vw, 38px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.article__foot p { color: var(--ink-2); font-size: 15.5px; }

/* Next-reads strip */
.more { display: grid; gap: 0; border-top: 1px solid var(--line); }
.more__item {
  display: grid;
  gap: 8px;
  padding-block: clamp(20px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
  transition: padding-inline 0.5s var(--ease), background 0.5s var(--ease);
}
.more__item:hover { padding-inline: 14px; background: var(--surface); }
@media (min-width: 820px) {
  .more__item { grid-template-columns: 150px 1fr; gap: 28px; align-items: baseline; }
}
.more__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.more__title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.026em;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

/* ---------- Cross-document page transition ----------
   Chrome/Edge honour this; every other browser simply navigates as normal. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 0.26s var(--ease-soft) both;
}
::view-transition-new(root) {
  animation: vt-in 0.42s var(--ease) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* ---------- Headline: per-line mask reveal ---------- */
.lines .line {
  display: block;
  overflow: hidden;
  /* room for descenders, which the mask would otherwise clip */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.lines .line > span {
  display: block;
  transform: translateY(108%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--ld, 0ms);
  will-change: transform;
}
.lines.is-lit .line > span { transform: none; }
/* before the splitter runs (and if JS never runs) the text just shows */
.lines:not(.is-split) { opacity: 1; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Mobile refinements ----------
   Checked at 390px: no horizontal scroll, every control at/above the 44px
   touch minimum, and the heavier decorative layers pulled back so small
   screens aren't carrying effects they can't show off. */
@media (max-width: 640px) {
  /* dot/grid textures read as noise at this size */
  .bg-dots::before, .bg-grid::before { opacity: 0.35; }

  /* the hero photo is the page's biggest asset — give it room but don't
     let it push the fold down */
  .hero-art { width: min(100%, 400px); }

  /* case images shorten so the copy stays reachable */
  .case__visual { min-height: 190px; }

  .quote-lead { padding: 28px 22px; }
  .quote-lead blockquote { max-width: none; }


  /* comfortable hit areas */
  .trust__item { padding-block: 10px; }
  .faq__q { padding-block: 20px; }
  .post { padding-block: 22px; }
}

/* The sticky CTA renders below 900px, so the footer needs clearance across
   that whole range — an earlier version only padded below 640px, leaving
   the bar sitting on the footer text on portrait tablets. */
@media (max-width: 899px) {
  .footer__bottom { padding-bottom: 84px; }
}

/* Respect notches and home indicators on iOS */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .lines .line > span { transform: none !important; }
  .cursor { display: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}
