/* ============================================================
   DERVUE — design system
   Ground:  #121215  (the ink from the Dervue mark)
   Accent:  #1db696  (the teal from the Dervue mark)
   The logo is a two-colour mark, so the whole palette stays in
   that family — no third hue, only tints and shades of the teal.
   ============================================================ */

:root {
  /* --- ground: the logo's ink, stepped up into surfaces --- */
  --ink: #121215;
  --bg: #121215;
  --bg-soft: #16161a;
  --panel: #1a1a1f;
  --panel-2: #212128;
  --panel-3: #2a2a32;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  /* --- brand teal ramp, anchored on the exact logo value --- */
  --brand: #1db696;
  --brand-100: #d5f7ee;
  --brand-200: #9aeeda;
  --brand-300: #4fe3c0;
  --brand-400: #2fd0aa;
  --brand-500: #1db696;
  --brand-600: #158f77;
  --brand-700: #0e6b58;
  --brand-800: #0a4d40;
  --brand-glow: rgba(29, 182, 150, 0.34);
  --brand-wash: rgba(29, 182, 150, 0.09);

  /* --- text --- */
  --text: #f2f4f3;
  --text-2: #c8cfcd;
  --muted: #8f9a97;
  --on-brand: #06201a;

  --grad: linear-gradient(100deg, #4fe3c0 0%, #1db696 48%, #0f9d84 110%);
  --grad-soft: linear-gradient(140deg, rgba(79, 227, 192, 0.16), rgba(29, 182, 150, 0.04));

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --shell: 1320px;
  --shell-wide: 1480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--brand); color: var(--on-brand); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

.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;
}

/* ============ TYPE UTILITIES ============ */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.label--brand { color: var(--brand-300); border-color: rgba(29, 182, 150, 0.35); background: var(--brand-wash); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }

/* ============ LAYOUT ============ */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.shell--wide { max-width: var(--shell-wide); }

.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--tight { padding: clamp(52px, 6vw, 84px) 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 780px; margin-bottom: clamp(38px, 5vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4.4vw, 58px); margin-bottom: 18px; }
.section__head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 62ch; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero wave canvas ---------- */
.wave-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  pointer-events: none; opacity: 0.5;
}
.hero__panel > *:not(.wave-canvas) { position: relative; z-index: 2; }

/* ---------- tilt + glare ---------- */
.tilt { transform-style: preserve-3d; transition: transform 0.35s ease; will-change: transform; position: relative; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(380px circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(29, 182, 150, 0.12), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-10px) rotateX(4deg) rotateY(-6deg); }
  50% { transform: translateY(-4px) rotateX(-3deg) rotateY(5deg); }
  75% { transform: translateY(-12px) rotateX(3deg) rotateY(-3deg); }
}
.orb { animation: float3d 8s ease-in-out infinite; }
.orb:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 16px 28px; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--grad { background: var(--grad); color: var(--on-brand); box-shadow: 0 10px 34px var(--brand-glow); }
.btn--grad:hover { box-shadow: 0 16px 44px var(--brand-glow); }
.btn--pill { background: var(--brand); color: var(--on-brand); padding: 12px 22px; }
.btn--pill:hover { background: var(--brand-400); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-300); }
.btn--dark { background: var(--ink); color: #fff; width: 100%; }
.btn--dark:hover { background: #000; }
.btn--sm { padding: 11px 20px; font-size: 12px; }
.btn__dot {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.18); font-size: 12px;
}
.btn--pill .btn__dot { background: var(--ink); color: var(--brand-300); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-300); font-weight: 700; font-size: 14px; letter-spacing: 0.03em;
}
.link-arrow:hover { color: var(--brand-200); }
.link-arrow span { transition: transform 0.22s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 18, 21, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--shell-wide); margin: 0 auto;
  padding: 12px 28px; display: flex; align-items: center; gap: 22px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { width: 148px; height: auto; }

.nav__links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav__links > a, .nav__droptoggle {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  padding: 9px 11px; border-radius: 8px; transition: color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.nav__links > a:hover, .nav__droptoggle:hover { color: var(--brand-300); background: var(--brand-wash); }
.nav__links > a.is-current, .nav__drop.is-current .nav__droptoggle { color: var(--brand); }

.nav__drop { position: relative; }
.chev { font-size: 8px; opacity: 0.6; }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; min-width: 190px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.nav__drop:hover .nav__dropdown, .nav__drop.open .nav__dropdown, .nav__drop:focus-within .nav__dropdown {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__dropdown a { padding: 10px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.nav__dropdown a:hover { background: var(--brand-wash); color: var(--brand-300); }

.nav__cta { flex-shrink: 0; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO (home) ============ */
.hero { max-width: var(--shell-wide); margin: 26px auto 0; padding: 0 28px; }
.hero__panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(29, 182, 150, 0.20), transparent 62%),
    radial-gradient(760px 420px at 92% 110%, rgba(15, 157, 132, 0.16), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  padding: clamp(38px, 5.4vw, 76px);
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 44px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-300);
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.3);
  border-radius: 999px; padding: 7px 15px; align-self: flex-start;
}
.hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.hero__title {
  font-size: clamp(42px, 7.6vw, 108px);
  line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase;
}
.hero__title .grad { display: inline-block; }

.hero__bottom {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 4vw, 60px);
  align-items: end;
}
.hero__sub { font-size: clamp(16px, 1.6vw, 21px); color: var(--text-2); max-width: 56ch; }
.pill-word {
  display: inline-block; padding: 1px 12px; border-radius: 999px;
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.3);
}
.pill-word em { font-family: var(--font-serif); font-style: italic; color: var(--brand-300); }

.hero__cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__note {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  line-height: 1.7; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); max-width: 46ch;
}
.hero__note strong { color: var(--text); }

/* ============ PAGE HERO (interior) ============ */
.phero { position: relative; padding: clamp(52px, 7vw, 104px) 0 clamp(38px, 5vw, 72px); overflow: hidden; }
.phero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -20%, rgba(29, 182, 150, 0.16), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(15, 157, 132, 0.10), transparent 62%);
}
.phero > * { position: relative; }
.phero__crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.phero__crumb a:hover { color: var(--brand-300); }
.phero__crumb span { opacity: 0.45; }
.phero h1 { font-size: clamp(34px, 5.6vw, 76px); margin-bottom: 20px; max-width: 20ch; }
.phero__lede { font-size: clamp(16px, 1.7vw, 21px); color: var(--text-2); max-width: 62ch; }
.phero__actions { margin-top: 32px; }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; margin-top: 26px; background: var(--bg-soft); }
.marquee__track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-head); font-size: 13px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.marquee__track i { color: var(--brand); font-style: normal; font-size: 11px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============ ALL-IN-ONE SCROLL STORY ============ */
.aio { height: 420vh; position: relative; }
.aio__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 0 24px;
}
.aio__headline { max-width: 900px; }
.aio__headline h2 { font-size: clamp(30px, 5.2vw, 70px); margin-bottom: 20px; }
.aio__headline p { font-size: clamp(16px, 1.8vw, 22px); color: var(--muted); }
.aio-word { opacity: 0.16; transition: opacity 0.28s ease, color 0.28s ease; }
.aio-word.on { opacity: 1; }

.aio__center {
  position: absolute; font-family: var(--font-head); font-weight: 900;
  font-size: clamp(40px, 8vw, 120px); letter-spacing: -0.04em; opacity: 0;
}
.aio__items { position: absolute; inset: 0; pointer-events: none; }
.aio__pill, .aio__img { position: absolute; left: 50%; top: 50%; opacity: 0; }
.aio__pill {
  font-family: var(--font-head); font-size: clamp(12px, 1.2vw, 16px); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  padding: 10px 20px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
}
.aio__img { width: clamp(90px, 12vw, 170px); border-radius: 16px; }

.aio__logo { position: absolute; opacity: 0; display: grid; justify-items: center; gap: 20px; }
.aio__3d { width: min(340px, 62vw); height: min(340px, 62vw); }
.aio__logo p {
  font-family: var(--font-head); font-size: clamp(15px, 2vw, 24px); font-weight: 800;
  letter-spacing: 0.02em;
}
.aio--static { height: auto; }
.aio--static .aio__sticky { position: static; height: auto; padding: 90px 24px; gap: 30px; }
.aio--static .aio__center, .aio--static .aio__logo { position: static; opacity: 1; }
.aio--static .aio__items { display: none; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: clamp(48px, 6vw, 78px) 0 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 3fr; gap: clamp(30px, 5vw, 70px); }
.footer__brand { max-width: 330px; }
.footer__logo img { width: 160px; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.footer__col h3 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer__col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-2); }
.footer__col a:hover { color: var(--brand-300); }
.footer__bar {
  margin-top: clamp(34px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: 13.5px; color: var(--muted);
}
.footer__bar a:hover { color: var(--brand-300); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============ CARD PRIMITIVES ============ */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}
.card:hover { border-color: rgba(29, 182, 150, 0.34); background: var(--panel-2); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* numbered benefit card */
.ncard { position: relative; }
.ncard__num {
  font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; color: var(--brand); display: block; margin-bottom: 14px;
}

/* icon card */
.icon-card__icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.3);
  color: var(--brand-300); margin-bottom: 18px;
}
.icon-card__icon svg { width: 21px; height: 21px; }

/* check list */
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 11px;
  color: var(--text-2); font-size: 15px; line-height: 1.55;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 15px; height: 8px; border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.check-list--tight li { margin-bottom: 7px; font-size: 14.5px; }

/* chip / tag rows */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
}
.chip--brand { color: var(--brand-300); border-color: rgba(29, 182, 150, 0.3); background: var(--brand-wash); }
.tag {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-300);
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.28);
  border-radius: 999px; padding: 6px 13px;
}

/* ============ SPLIT ROW (image + copy) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 104px); }
.split--flip .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(18, 18, 21, 0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 18px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.split__num { font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: 0.15em; color: var(--brand); }
.split__copy h3 { font-size: clamp(24px, 3vw, 40px); margin: 12px 0 16px; }
.split__copy > p { color: var(--muted); margin-bottom: 22px; }

/* ============ FOLDER / ACCORDION ============ */
.folder { border-top: 1px solid var(--line); }
.folder:last-child { border-bottom: 1px solid var(--line); }
.folder summary {
  display: flex; align-items: center; gap: 20px; padding: 26px 4px;
  cursor: pointer; list-style: none; transition: color 0.25s;
}
.folder summary::-webkit-details-marker { display: none; }
.folder summary:hover { color: var(--brand-300); }
.folder__num { font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--brand); min-width: 26px; }
.folder summary h3 { flex: 1; font-size: clamp(19px, 2.4vw, 30px); }
.folder__arrow { font-size: 19px; color: var(--muted); transition: transform 0.3s ease, color 0.25s; }
.folder[open] .folder__arrow { transform: rotate(45deg); color: var(--brand); }
.folder__body { padding: 0 4px 30px 46px; max-width: 76ch; }
.folder__body p { color: var(--muted); margin-bottom: 16px; }

/* ============ INDUSTRY CARDS ============ */
.icard {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.28s, background 0.28s;
}
.icard:hover { border-color: rgba(29, 182, 150, 0.4); background: var(--panel-2); }
.icard__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.3); color: var(--brand-300);
}
.icard__icon svg { width: 22px; height: 22px; }
.icard__count { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.icard h3 { font-size: 21px; }
.icard p { color: var(--muted); font-size: 15px; flex: 1; }
.icard__cta { font-size: 13.5px; font-weight: 700; color: var(--brand-300); margin-top: 4px; }
.icard:hover .icard__cta { color: var(--brand-200); }

/* ============ PLATFORM EDITIONS ============ */
.edition { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.edition + .edition { margin-top: 22px; }
.edition__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.edition__head h3 { font-size: clamp(21px, 2.6vw, 32px); }
.edition__count { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand); }
.edition__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px 30px; }
.feat h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 5px; }
.feat h4::before { content: "▸"; color: var(--brand); margin-right: 8px; font-size: 11px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.5; padding-left: 19px; }

/* ============ CASE STUDIES ============ */
.case-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.28s, transform 0.28s;
}
.case-card:hover { border-color: rgba(29, 182, 150, 0.4); }
.case-card__cover {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
  background: radial-gradient(520px 300px at 30% 10%, rgba(29, 182, 150, 0.22), transparent 62%), var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.case-card__mono {
  font-family: var(--font-head); font-weight: 900; font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -0.05em; color: var(--brand-300); opacity: 0.9;
}
.case-card__chip { position: absolute; left: 16px; top: 16px; }
.case-card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-card__body h3 { font-size: 21px; }
.case-card__loc { font-size: 13px; color: var(--muted); }
.case-card__tag { font-size: 15px; color: var(--text-2); flex: 1; }

/* case study article */
.case-body { max-width: 860px; }
.case-block { padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.case-block:first-child { border-top: none; padding-top: 0; }
.case-block > h2 { font-size: clamp(24px, 3.2vw, 40px); margin-bottom: 20px; }
.case-block p { color: var(--text-2); margin-bottom: 16px; }
.case-block p:last-child { margin-bottom: 0; }
.case-block__outro { color: var(--muted); font-style: italic; font-size: 14.5px; margin-top: 18px; }

.case-step { border-left: 2px solid rgba(29, 182, 150, 0.28); padding: 4px 0 4px 24px; margin-bottom: 30px; position: relative; }
.case-step::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.case-step h3 { font-size: 19px; margin-bottom: 12px; }
.case-step__pair { display: grid; gap: 10px; margin-bottom: 14px; }
.case-step__pair > div { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.case-step__k {
  font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); padding-top: 4px;
}
.case-step__pair .is-solution .case-step__k { color: var(--brand); }
.case-step__flow {
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--brand-300); background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.26);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; overflow-x: auto; white-space: nowrap;
}

.case-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.case-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.case-table th, .case-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.case-table thead th {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); background: var(--panel-2);
}
.case-table tbody th { font-weight: 500; color: var(--muted); }
.case-table td:last-child { color: var(--brand-200); font-weight: 600; }
.case-table tr:last-child th, .case-table tr:last-child td { border-bottom: none; }

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contrast__side { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.contrast__side--after { border-color: rgba(29, 182, 150, 0.34); background: linear-gradient(160deg, var(--brand-wash), transparent 70%), var(--panel); }
.contrast__side h3 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.contrast__side--after h3 { color: var(--brand); }
.contrast__side li { font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.contrast__side li:last-child { border-bottom: none; }
.contrast__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); font-style: italic; }

.exchange { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; background: var(--panel); }
.exchange__q { font-weight: 700; margin-bottom: 10px; color: var(--text); }
.exchange__q::before { content: "You"; display: block; font-family: var(--font-head); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.exchange__a { color: var(--brand-200); font-size: 15px; margin: 0; }
.exchange__a::before { content: "Dervue AI"; display: block; font-family: var(--font-head); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand); margin-bottom: 5px; }

.facts { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--panel); padding: 18px 22px; }
.facts dt { font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 15px; color: var(--text); }

.pullquote {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.3; color: var(--text); border-left: 3px solid var(--brand);
  padding: 6px 0 6px 26px; margin: 8px 0;
}
.takeaway { background: linear-gradient(160deg, var(--brand-wash), transparent 70%), var(--panel); border: 1px solid rgba(29, 182, 150, 0.3); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); }
.takeaway h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.takeaway p { font-size: clamp(16px, 1.8vw, 20px); color: var(--text-2); }

/* ============ CHAT PHONE (Text Your Business) ============ */
.phone {
  width: min(340px, 82vw); margin: 0 auto; aspect-ratio: 9 / 19;
  background: var(--ink); border: 9px solid #26262e; border-radius: 44px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #26262e; border-radius: 999px; z-index: 3;
}
.phone__bar {
  padding: 32px 18px 12px; border-bottom: 1px solid var(--line);
  background: var(--panel); display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.phone__avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.4); flex-shrink: 0;
}
.phone__avatar img { width: 18px; }
.phone__who strong { display: block; font-size: 14px; font-weight: 700; }
.phone__who span { font-size: 11px; color: var(--brand); }
.phone__thread { flex: 1; overflow: hidden; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.bubble {
  max-width: 84%; padding: 11px 15px; border-radius: 17px;
  font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bubble.in { opacity: 1; transform: none; }
.bubble--owner { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 5px; font-weight: 600; }
.bubble--ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); border-bottom-left-radius: 5px; }
.bubble--typing { display: flex; gap: 4px; padding: 14px 16px; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.phone__input {
  border-top: 1px solid var(--line); background: var(--panel); padding: 12px 16px 20px;
  font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.phone__input span { flex: 1; }
.phone__send { width: 27px; height: 27px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 12px; }
.phone-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  .bubble { opacity: 1; transform: none; }
  .bubble--typing { display: none; }
}

/* ask cards */
.ask-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ask-card__q { font-family: var(--font-head); font-size: 16.5px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.ask-card__a { font-size: 14.5px; color: var(--text-2); padding-top: 14px; border-top: 1px solid var(--line); }
.ask-card__who { display: flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.ask-card__who i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ============ HARDWARE ============ */
.hw-group + .hw-group { margin-top: clamp(44px, 6vw, 76px); }
.hw-group__label {
  font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.hw-group__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.28s; }
.hcard:hover { border-color: rgba(29, 182, 150, 0.36); }
.hcard__media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 26px;
  background: radial-gradient(420px 260px at 50% 20%, rgba(29, 182, 150, 0.14), transparent 66%), var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.hcard__media img { max-height: 100%; width: auto; object-fit: contain; }
.hcard__slot { color: var(--muted); font-size: 12.5px; text-align: center; letter-spacing: 0.05em; }
.hcard__body { padding: 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.hcard__kind { font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.hcard__body h3 { font-size: 18px; }
.hcard__body > p { color: var(--muted); font-size: 14.5px; flex: 1; }

/* ============ STATS / NUMBERS ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--panel); padding: 30px 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(30px, 4vw, 50px); font-weight: 900; letter-spacing: -0.03em; color: var(--brand-300); line-height: 1; }
.stat span { display: block; margin-top: 9px; font-size: 13px; color: var(--muted); letter-spacing: 0.03em; }

/* ============ STEPS ============ */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 26px 76px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 26px; top: 26px;
  font-family: var(--font-head); font-size: 13px; font-weight: 900; letter-spacing: 0.06em; color: var(--brand);
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.3);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============ QUOTES ============ */
.quote-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); }
.quote-card__stars { color: var(--brand); font-size: 15px; letter-spacing: 0.14em; margin-bottom: 16px; }
.quote-card__stars b { color: var(--text); margin-left: 8px; letter-spacing: 0; }
.quote-card p { font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 2vw, 23px); line-height: 1.42; margin-bottom: 18px; }
.quote-card cite { font-style: normal; font-size: 13.5px; color: var(--muted); }

/* ============ INTEGRATIONS ============ */
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.int-tile {
  display: flex; align-items: center; gap: 13px; padding: 20px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; transition: border-color 0.25s, background 0.25s;
}
.int-tile:hover { border-color: rgba(29, 182, 150, 0.36); background: var(--panel-2); }
.int-tile i {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-style: normal;
  font-family: var(--font-head); font-weight: 900; font-size: 13px;
  background: var(--brand-wash); border: 1px solid rgba(29, 182, 150, 0.3); color: var(--brand-300);
}

/* ============ CTA BAND ============ */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-xl); border: 1px solid rgba(29, 182, 150, 0.28);
  padding: clamp(44px, 6.5vw, 92px) clamp(24px, 4vw, 60px);
  background:
    radial-gradient(760px 400px at 50% -20%, rgba(29, 182, 150, 0.26), transparent 66%),
    radial-gradient(600px 340px at 80% 120%, rgba(15, 157, 132, 0.18), transparent 62%),
    var(--panel);
}
.cta-band h2 { font-size: clamp(28px, 4.6vw, 60px); margin-bottom: 18px; }
.cta-band p { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* ============ FORM ============ */
.form-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.form-card__main { background: var(--panel); padding: clamp(28px, 4vw, 52px); }
.form-card__side { background: var(--panel-2); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.form-card__main h2 { font-size: clamp(24px, 3.2vw, 40px); margin-bottom: 12px; }
.form-card__main > p { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-head); font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 15px;
  transition: border-color 0.22s, background 0.22s;
}
.field input::placeholder, .field textarea::placeholder { color: #6c7674; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: var(--panel-2); outline: none; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 22px, calc(100% - 16px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--brand-300); text-decoration: underline; }
.form-thanks { text-align: center; padding: 30px 0; }
.form-thanks h3 { font-size: 26px; margin-bottom: 12px; color: var(--brand-300); }
.form-thanks p { color: var(--muted); }
.form-side__item h4 { font-size: 10.5px; font-family: var(--font-head); font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-side__item p { font-size: 16px; font-weight: 600; }

/* ============ CAREERS / ROLES ============ */
.role {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 22px 26px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.25s, background 0.25s;
}
.role:hover { border-color: rgba(29, 182, 150, 0.36); background: var(--panel-2); }
.role h3 { font-size: 18px; flex: 1; min-width: 190px; }
.role__meta { font-size: 13.5px; color: var(--muted); }
.role__meta b { color: var(--brand-300); font-weight: 600; }

/* ============ NATIONWIDE ============ */
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: clamp(22px, 3vw, 40px); }
.map-wrap svg { width: 100%; height: auto; }
.map-wrap path { fill: var(--panel-3); stroke: var(--bg); stroke-width: 0.7; transition: fill 0.5s ease; }
.map-wrap path.lit { fill: var(--brand-700); }

/* ============ FAQ ============ */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 21px; line-height: 1; transition: transform 0.3s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--brand-300); }
.qa__body { padding: 0 0 24px 0; color: var(--muted); max-width: 76ch; }

/* ============ RESPONSIVE ============ */
/* The nav carries eight items plus a long CTA, so it needs a compact tier
   before it collapses — otherwise the CTA is pushed off the right edge. */
@media (max-width: 1400px) {
  .nav__inner { gap: 12px; padding: 12px 20px; }
  .nav__links > a, .nav__droptoggle { font-size: 10px; padding: 8px 6px; letter-spacing: 0.05em; }
  .nav__logo img { width: 116px; }
  .nav__cta { padding: 10px 15px; font-size: 10px; }
  .nav__cta .btn__dot { width: 20px; height: 20px; font-size: 10px; }
}
@media (max-width: 1150px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--panel-2); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links > a, .nav__droptoggle { font-size: 13px; padding: 12px 10px; letter-spacing: 0.08em; width: 100%; }
  .nav__drop { width: 100%; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 6px 16px; min-width: 0; display: none;
  }
  .nav__drop.open .nav__dropdown { display: flex; }
  .nav__cta { display: none; }
  .hero__bottom { grid-template-columns: 1fr; }
  .split, .contrast, .form-card { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .shell { padding: 0 18px; }
  .hero { padding: 0 18px; }
  .hero__panel { padding: 30px 22px; border-radius: 28px; min-height: 0; }
  /* "CONVERSATION." is the widest word in the site — size the hero so it fits
     inside the panel at 390px rather than being clipped by the body's
     overflow guard. */
  .hero__title { font-size: clamp(30px, 8.6vw, 46px); letter-spacing: -0.03em; }
  .field--row { grid-template-columns: 1fr; }
  .case-step__pair > div { grid-template-columns: 1fr; gap: 4px; }
  .folder__body { padding-left: 4px; }
  .aio { height: 340vh; }
}
