/* The Hive — continuity with the old site: Libre Franklin with light/bold contrast in headings,
   deep green and coral on warm off-white, slanted buttons. Layout: wide photographic opener,
   then alternating paper and green bands; one bold moment per page. */
:root {
  --paper: #edede5;
  --paper-2: #f7f7f2;
  --ink: #0f2b29;
  --ink-soft: #3f5552;
  --green: #043c39;
  --green-ink: #edede5;
  --coral: #ed6c4f;
  --coral-ink: #2a0f08;
  --line: #cfd3c8;
  --on-green-soft: #b9cbc6;
  --display: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --measure: 64ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);
  --step-5: clamp(4rem, 2rem + 9vw, 8.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1c1b; --paper-2: #132624; --ink: #e6e9e1; --ink-soft: #aab8b4;
    --green: #0a2e2b; --green-ink: #e6e9e1; --coral: #f07d62; --coral-ink: #1d0a05;
    --line: #2b403d; --on-green-soft: #9fb5b0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1c1b; --paper-2: #132624; --ink: #e6e9e1; --ink-soft: #aab8b4;
  --green: #0a2e2b; --green-ink: #e6e9e1; --coral: #f07d62; --coral-ink: #1d0a05;
  --line: #2b403d; --on-green-soft: #9fb5b0; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; }
:root[data-theme="dark"] .brand { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: var(--ink); } }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--coral); }
.nav a[aria-current="page"] { border-color: var(--green); font-weight: 600; }
.nav .btn { margin-left: 6px; color: var(--green-ink); border-bottom: 0; padding: 12px 28px; }
.nav .btn:hover { border-color: transparent; }
@media (max-width: 760px) { .nav { gap: 2px 16px; font-size: 0.9rem; } .nav .btn { display: none; } }

/* Buttons: the old site's slanted shapes */
.btn {
  --b: var(--green); --t: var(--green-ink);
  display: inline-block; text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; font-size: 0.82rem; padding: 14px 34px; background: var(--b); color: var(--t);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.coral { --b: var(--coral); --t: var(--coral-ink); }
.btn.light { --b: var(--paper); --t: var(--ink); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 300; }
h1 b, h2 b { font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--coral); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack-lg { display: grid; gap: 2rem; }
.small { font-size: var(--step--1); color: var(--ink-soft); }

/* Bands */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band.tight { padding-block: clamp(40px, 5vw, 64px); }
.band.alt { background: var(--paper-2); }
.band.green { background: var(--green); color: var(--green-ink); }
.band.green .lede, .band.green .small { color: var(--on-green-soft); }
.band.green .text-link { color: var(--green-ink); }

/* Hero */
.hero { position: relative; color: #f3f3ec; background: #062a28; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,30,28,.92) 0%, rgba(3,30,28,.78) 48%, rgba(3,30,28,.25) 100%); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 150px); }
.hero h1 { max-width: 20ch; color: #f3f3ec; }
.hero .lede { color: #cfdcd8; max-width: 52ch; }
.hero .eyebrow { color: #f2937c; }
.hero .btn.light { --b: #f3f3ec; --t: #0f2b29; }
.hero .stack { gap: 1.6rem; }

.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 22ch; }

/* Two-column */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split.rev > :first-child { order: 2; } }
.split > * { min-width: 0; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }

/* The 9% moment */
.gap-figures { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .gap-figures { grid-template-columns: 1fr 1fr; } }
.figure { border-top: 2px solid var(--on-green-soft); padding-top: 18px; display: grid; gap: 10px; }
.figure .n { font-family: var(--display); font-weight: 800; font-size: var(--step-5); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.figure.nine { border-color: var(--coral); }
.figure.nine .n { color: var(--coral); }
.figure p { font-size: var(--step-1); line-height: 1.4; max-width: 26ch; }

/* STORM stages */
.stages { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stage { display: grid; gap: 8px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .stage { grid-template-columns: 220px 1fr; } }
.stage h3 { font-size: var(--step-2); font-weight: 300; }
.stage h3 b { font-weight: 700; }

/* Outcomes */
.outcomes { display: grid; gap: 28px; }
@media (min-width: 860px) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outcome { display: grid; gap: 10px; align-content: start; border-top: 4px solid var(--coral); padding-top: 18px; }
.outcome .client { font-weight: 700; font-size: var(--step-1); }

/* Videos */
.videos { display: grid; gap: 18px; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.video { display: grid; gap: 10px; text-decoration: none; }
.video .frame { aspect-ratio: 16 / 9; max-width: 100%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.band.green .video .frame { background: #0b4a46; }
.video .frame svg { width: 54px; height: 54px; }
.video .frame .tag { position: absolute; left: 12px; bottom: 10px; font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.video .who { font-weight: 600; }
.video .role { font-size: var(--step--1); color: var(--ink-soft); }

/* Logos */
.logos { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; padding-top: 8px; }
.logos span { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.86rem; color: var(--ink-soft); }

/* Quotes */
blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--coral); display: grid; gap: 8px; max-width: var(--measure); }
blockquote p { font-size: var(--step-1); line-height: 1.45; font-weight: 300; }
blockquote cite { font-style: normal; font-size: var(--step--1); color: var(--ink-soft); }

/* Case stories (Work) */
.case { display: grid; gap: 22px 56px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .case { grid-template-columns: 300px 1fr; } }
.case > * { min-width: 0; }
.case .label { display: grid; gap: 8px; align-content: start; }
.case .label .client { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.1; }
.case .label .headline { font-weight: 300; font-size: var(--step-1); line-height: 1.3; color: var(--ink-soft); }
.case .body { display: grid; gap: 1.1rem; }
.case .video { max-width: 420px; }

/* Scale strip */
.scale { display: grid; gap: 22px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scale { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

.scale div { display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--coral); padding-top: 14px; }
.scale .n { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; }

/* Steps (How we work) */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; gap: 14px 48px; padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .step { grid-template-columns: 300px 1fr; } }
.step > * { min-width: 0; }
.step .num { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--coral); }
.step .head { display: grid; gap: 10px; align-content: start; }
.step ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: var(--measure); }
.included { background: var(--paper-2); padding: 22px 24px; display: grid; gap: 10px; max-width: var(--measure); border-left: 3px solid var(--green); }
.band.alt .included { background: var(--paper); }

/* Moments list */
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.moments li { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--step-1); font-weight: 300; }

/* CTA band */
.cta .wrap { display: grid; gap: 24px; }
.cta h2 { max-width: 20ch; }
.cta .secondary { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); max-width: var(--measure); }

/* Footer */
.site-footer { background: var(--green); color: var(--green-ink); padding-block: 48px 40px; }
.band.green + .site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .wrap { display: grid; gap: 28px; }
.signoff { font-family: var(--display); font-size: var(--step-3); font-weight: 300; font-style: italic; }
.signoff b { font-weight: 700; }
.foot-grid { display: grid; gap: 24px; font-size: var(--step--1); color: var(--on-green-soft); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-grid a { color: var(--green-ink); text-decoration: none; }
.foot-grid .links { display: grid; gap: 6px; }
.selectable { user-select: all; color: var(--green-ink); }

/* Preview notes (removed before launch) */
.note { font-size: 0.8rem; color: var(--ink-soft); border: 1px dashed var(--line); padding: 8px 12px; max-width: var(--measure); }
.band.green .note, .hero .note { color: #cfdcd8; border-color: rgba(255,255,255,.3); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Privacy page */
.prose { max-width: 760px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.prose h3 { margin-top: 1rem; }

/* Live video embed */
.embed { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; border: 0; background: var(--green); display: block; }
.videos:has(> :only-child) { grid-template-columns: minmax(0, 640px); }

/* Logo */
.brand .logo { height: 36px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
@media (max-width: 420px) { .brand .logo { height: 30px; } }

/* Client logo spread */
.logo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-grid.small { grid-template-columns: repeat(2, minmax(0, 180px)); }
.logo-grid span { background: #ffffff; border-radius: 8px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; min-width: 0; overflow: hidden; }
.logo-grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

.case .label .case-logo { display: block; height: 44px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: 10px; background: #ffffff; padding: 8px 12px; border-radius: 8px; box-sizing: content-box; }
.logo-wall { display: grid; gap: 18px; }
.logo-wall .logo-grid { margin-top: 0; }
.logo-grid.wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .logo-grid.wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.track { display: grid; gap: 22px 56px; }
@media (min-width: 760px) { .track { grid-template-columns: 1fr 1fr; } }
.track div { display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--coral); padding-top: 14px; }

.scale .ico { display: flex; align-items: flex-end; height: 76px; color: var(--green); }
.scale .ico svg { height: 100%; width: auto; max-width: 100%; }
.scale .ico svg * { stroke-width: 2.4; }

.spotify { border: 0; border-radius: 12px; max-width: 100%; }
.ep-tools { display: grid; gap: 14px; }
.ep-tools input { width: 100%; max-width: 520px; font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.ep-seasons { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-seasons button { font: inherit; font-size: 0.9rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.ep-seasons button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ep-list li[hidden] { display: none; }
.ep-list a { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
@media (min-width: 760px) { .ep-list a { grid-template-columns: 190px 1fr auto; align-items: baseline; } }
.ep-list a:hover .t { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.ep-list .tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--coral); }
.ep-list .t { font-weight: 600; }
.ep-list .m { color: var(--ink-soft); font-size: 0.9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo-art { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; max-width: 420px; justify-self: end; }
.ep-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ep-grid li[hidden] { display: none; }
.ep-grid a { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); }
.ep-grid img { width: 100%; height: auto; aspect-ratio: 414 / 260; object-fit: cover; border-radius: 10px; background: #2a3e57; }
.ep-grid a:hover .t { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.ep-grid .tag { margin-top: 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--coral); }
.ep-grid .t { font-weight: 600; line-height: 1.3; }
.ep-grid .m { color: var(--ink-soft); font-size: 0.9rem; }
.article { max-width: 760px; display: grid; gap: 28px; }
.article-hero { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 12px; }
.prose { display: grid; gap: 1.1rem; font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; margin-top: 1.6rem; }
.prose h3 { font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin-top: 0.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.article-list li { border-top: 1px solid var(--line); }
.article-list a { display: block; padding: 14px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.article-list a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
@media (min-width: 760px) { .article-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.ep-grid img.fallback { object-fit: contain; padding: 14px 0; background: #2a3e57; }
.page-head .lede { max-width: 62ch; }
.jump { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 0; }
.jump a { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.strip { list-style: none; margin: 0; padding: 0 0 12px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.strip li { flex: 0 0 min(300px, 78%); scroll-snap-align: start; }
.strip a { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.strip img { width: 100%; height: auto; aspect-ratio: 414 / 260; object-fit: cover; border-radius: 10px; background: #2a3e57; }
.strip .t { font-weight: 600; line-height: 1.3; font-size: 0.95rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards a { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); }
.cards img, .cards .ph { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; background: #0f3d3a; }
.cards .tag { margin-top: 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--coral); }
.cards .t { font-weight: 600; line-height: 1.3; }
.cards a:hover .t { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.cards .ph { background: #0f3d3a url(/favicon.svg) center / 64px no-repeat; }
.article .credit { font-size: 0.8rem; color: var(--ink-soft); margin: -8px 0 16px; } .article .credit a { color: inherit; }
/* nudges and wider reading column */
.nudge { display: grid; gap: 16px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 10px; padding: 22px 26px; margin: 12px 0; }
.nudge p { margin: 0; }
.nudge .t { font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.25; margin-bottom: 6px; }
@media (min-width: 760px) { .nudge { grid-template-columns: 1fr auto; gap: 36px; } }
.article { max-width: 920px; }
.prose { max-width: 880px; font-size: 1.1rem; }
.article-hero { max-height: 460px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scale .ico { color: var(--ink); }
  :root:not([data-theme="light"]) .nav a[aria-current="page"] { border-color: var(--coral); }
}
:root[data-theme="dark"] .scale .ico { color: var(--ink); }
:root[data-theme="dark"] .nav a[aria-current="page"] { border-color: var(--coral); }
/* crop a black band that is part of one source video */
.scale .n { font-size: clamp(1.7rem, 1.1rem + 1.7vw, 2.6rem); }
