/* Tenjack portfolio
   Layout: a personal shell (ink and paper, one marigold mark) that hands each company's work
   its own brand band. Case pages follow the Lula Workbench structure: dark hero band,
   sticky tabs, overview with an aside, chaptered deep dive, document drawer. */

:root {
  /* Shell palette */
  --paper: #f2f3f5;
  --paper-2: #e8eaee;
  --surface: #ffffff;
  --ink: #15171b;
  --ink-2: #2b2f37;
  --muted: #5d6470;
  --line: #d9dce2;
  --line-2: #eceef2;
  --mark: #f0a81c;            /* the Tenjack marigold: marks only, never text on paper */
  --mark-ink: #8a5a00;        /* marigold dark enough for text on paper */
  --warn: #f5a524;
  --shadow: 0 2px 6px rgba(21, 23, 27, .06);
  --shadow-lift: 0 18px 40px rgba(21, 23, 27, .14), 0 4px 10px rgba(21, 23, 27, .05);

  /* Band palette (dark areas). Company pages override these. */
  --deep: #121418;
  --deep-2: #1b1e24;
  --on-deep: #ffffff;
  --on-deep-2: #c9ced8;
  --on-deep-3: #8c93a1;
  --deep-line: rgba(255, 255, 255, .12);

  /* Company slot, defaults to Tenjack */
  --co: var(--mark);
  --co-ink: var(--mark-ink);
  --co-soft: #fdf3dc;
  --co-soft-ink: #6b4600;
  --co-2: #ffd27a;
  --co-blue: #3b5bdb;
  --co-font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Type */
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1114; --paper-2: #161920; --surface: #181b21; --ink: #eceef2; --ink-2: #d3d7de;
    --muted: #9aa1ad; --line: #2a2f38; --line-2: #22262e; --mark-ink: #f5bd4f;
    --co-ink: var(--co-ink-dark, #f5bd4f); --co-soft: rgba(240, 168, 28, .14); --co-soft-ink: var(--co-2);
    --shadow: 0 2px 6px rgba(0, 0, 0, .3); --shadow-lift: 0 18px 40px rgba(0, 0, 0, .45);
    --deep: #0a0b0e; --deep-2: #14161b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1114; --paper-2: #161920; --surface: #181b21; --ink: #eceef2; --ink-2: #d3d7de;
  --muted: #9aa1ad; --line: #2a2f38; --line-2: #22262e; --mark-ink: #f5bd4f;
  --co-ink: var(--co-ink-dark, #f5bd4f); --co-soft: rgba(240, 168, 28, .14); --co-soft-ink: var(--co-2);
  --shadow: 0 2px 6px rgba(0, 0, 0, .3); --shadow-lift: 0 18px 40px rgba(0, 0, 0, .45);
  --deep: #0a0b0e; --deep-2: #14161b;
  color-scheme: dark;
}

/* ---------- Company brands ---------- */
.co-lula {
  --co: #28b97b; --co-ink: #1a895a; --co-ink-dark: #63d39a; --co-2: #63d39a; --co-blue: #1369e9;
  --co-soft: #eafaf2; --co-soft-ink: #166b47;
  --deep: #162134; --deep-2: #1f2e49; --co-navy: #283a5d;
  --co-font: "Inter", system-ui, sans-serif;
}
.co-replica {
  --co: #ff5c35; --co-ink: #c8401c; --co-ink-dark: #ff8a6b; --co-2: #ff8a6b; --co-blue: #9e3c83;
  --co-soft: #fff0eb; --co-soft-ink: #a3321a;
  --deep: #121b21; --deep-2: #1b2a33; --co-navy: #16324f;
  --co-font: "Figtree", "Proxima Nova", system-ui, sans-serif;
}
.co-tractics {
  --co: #3e7cb1; --co-ink: #2f6699; --co-ink-dark: #8ab8e0; --co-2: #8ab8e0; --co-blue: #3e7cb1;
  --co-soft: #eaf2fa; --co-soft-ink: #24527d;
  --deep: #0e1f33; --deep-2: #17304c; --co-navy: #1c3a5c;
  --co-font: "Manrope", system-ui, sans-serif;
}
.co-mysidewalk {
  --co: #1fa3a3; --co-ink: #137c7c; --co-ink-dark: #6fd1d1; --co-2: #6fd1d1; --co-blue: #1d6fa5;
  --co-soft: #e6f6f6; --co-soft-ink: #0f6363;
  --deep: #23272b; --deep-2: #2f3439; --co-navy: #1d6fa5;
  --co-font: "Source Sans 3", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .co-lula, :root:not([data-theme="light"]) .co-replica,
  :root:not([data-theme="light"]) .co-tractics, :root:not([data-theme="light"]) .co-mysidewalk {
    --co-ink: var(--co-ink-dark); --co-soft: color-mix(in srgb, var(--co) 16%, transparent); --co-soft-ink: var(--co-2);
  }
}
:root[data-theme="dark"] .co-lula, :root[data-theme="dark"] .co-replica,
:root[data-theme="dark"] .co-tractics, :root[data-theme="dark"] .co-mysidewalk {
  --co-ink: var(--co-ink-dark); --co-soft: color-mix(in srgb, var(--co) 16%, transparent); --co-soft-ink: var(--co-2);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
body.co { font-family: var(--co-font); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--co-ink); }
:focus-visible { outline: 2px solid var(--co); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono, .eyebrow, .label {
  font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.2;
  letter-spacing: .09em; text-transform: uppercase;
}
.dot { color: var(--co); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--deep); color: var(--on-deep); border-bottom: 1px solid var(--deep-line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--on-deep); text-decoration: none; white-space: nowrap; }
.brand b { font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand b i { font-style: normal; color: var(--mark); }
.brand span { color: var(--on-deep-3); }
.nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--on-deep-2); text-decoration: none; font: 500 14px/1 var(--display);
  padding: 9px 12px; border-radius: 6px; white-space: nowrap; transition: background .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .09); color: #fff; }
.nav a.is-co { color: #fff; box-shadow: inset 0 -2px 0 var(--co); border-radius: 6px 6px 0 0; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--co); transform: scaleX(0); transform-origin: left; }
@media (max-width: 720px) { .brand span { display: none; } .top .wrap { gap: 8px; } .nav a { padding: 9px 9px; font-size: 13px; } }

/* ---------- Bands ---------- */
.band { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.band .eyebrow { color: var(--co-2); }
.band .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
@media (prefers-reduced-motion: no-preference) { .band .grid-bg { animation: drift 14s linear infinite; } }
@keyframes drift { to { background-position: 48px 48px, 48px 48px; } }

/* ---------- Home hero ---------- */
.hero-home .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-block: clamp(64px, 10vw, 128px) 88px; }
.hero-home .lead-col { flex: 1 1 540px; min-width: 0; }
.hero-home .who { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.hero-home .who img { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: cover; }
.hero-home .who .eyebrow { color: var(--mark); margin: 0; }
.hero-home .who small { display: block; margin-top: 6px; font: 400 14px/1.3 var(--display); color: var(--on-deep-3); text-transform: none; letter-spacing: 0; }
.hero-home h1 {
  margin: 0; font: 600 clamp(42px, 6.6vw, 88px)/1 var(--display); letter-spacing: -.035em; max-width: 14ch;
}
.hero-home h1 .dot { color: var(--mark); }
.hero-home .intro { margin: 32px 0 0; font-size: 19px; line-height: 1.55; color: var(--on-deep-2); max-width: 56ch; }
.hero-home .now { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--on-deep-3); max-width: 60ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; padding: 13px 18px;
  font: 600 15px/1 var(--display); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-mark { background: var(--mark); color: #15171b; }
.btn-mark:hover { background: #ffbd3a; box-shadow: 0 8px 20px rgba(240, 168, 28, .28); }
.btn-ghost { background: transparent; color: var(--on-deep); border-color: rgba(255, 255, 255, .26); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }

.career { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .16); }
.career-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 20px 0 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: var(--on-deep); text-decoration: none; position: relative; transition: padding .32s var(--ease), background .32s;
}
.career-row::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--co); }
.career-row:hover { padding-left: 26px; background: rgba(255, 255, 255, .03); }
.career-row b { font: 600 22px/1.1 var(--co-font); letter-spacing: -.01em; }
.career-row .yr { font: 500 12px/1 var(--mono); color: var(--on-deep-3); white-space: nowrap; }
.career-row .rl { grid-column: 1 / -1; font-size: 14px; color: var(--on-deep-2); }
.career-row .ct { grid-column: 1 / -1; font: 500 11px/1 var(--mono); color: var(--co-2); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.sec-head h2 { margin: 0; font: 600 clamp(32px, 4vw, 52px)/1.06 var(--display); letter-spacing: -.025em; }
.sec-head h2 .dot { color: var(--mark); }
.sec-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.sec-head .eyebrow { color: var(--muted); display: block; margin-bottom: 14px; }

/* Featured cards */
.cards-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 28px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: box-shadow .32s var(--ease), transform .32s var(--ease); font-family: var(--co-font);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.card .media { display: block; aspect-ratio: 16 / 10; background: var(--deep); overflow: hidden; position: relative; border-bottom: 3px solid var(--co); }
.card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .media img { transform: scale(1.03); }
.card .chip {
  position: absolute; left: 18px; top: 18px; font: 500 12px/1 var(--mono); color: #fff;
  background: color-mix(in srgb, var(--deep) 78%, transparent); backdrop-filter: blur(8px); padding: 7px 10px; border-radius: 999px;
}
.card .chip i { font-style: normal; color: var(--co-2); }
.card .body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 24px; }
.card .kick { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--co-ink); }
.card .th { font: 600 clamp(23px, 2.5vw, 31px)/1.12 var(--co-font); letter-spacing: -.02em; text-wrap: balance; }
.card .sm { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto;
  padding: 16px 28px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 60%, var(--surface));
}
.card .foot span { font-size: 14px; color: var(--muted); }
.card .foot b { font-size: 18px; font-weight: 600; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.card .foot em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--co-ink); white-space: nowrap; }

/* Company bands on home */
.company { border-top: 1px solid var(--deep-line); }
.company .wrap { position: relative; padding-block: clamp(56px, 8vw, 96px); }
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.co-head .wm { margin-bottom: 18px; }
.co-head .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--co-2); }
.co-head .meta span:not(:first-child) { color: var(--on-deep-3); }
.co-head p { margin: 0; color: var(--on-deep-2); font-size: 16px; line-height: 1.6; font-family: var(--co-font); }
@media (max-width: 860px) { .co-head { grid-template-columns: minmax(0, 1fr); } }
.cards-co { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.mini {
  display: flex; flex-direction: column; text-decoration: none; color: var(--on-deep);
  background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 12px; overflow: hidden;
  transition: transform .32s var(--ease), border-color .32s, box-shadow .32s; font-family: var(--co-font);
}
.mini:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--co) 55%, transparent); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.mini .media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.mini .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.mini .kick { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--co-2); }
.mini b { font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.mini .th { font-size: 14px; line-height: 1.45; color: var(--on-deep-2); }
.mini .met { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--on-deep-3); border-top: 1px solid var(--deep-line); }
.mini .met strong { font-size: 20px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-new { font: 500 10px/1 var(--mono); letter-spacing: .08em; padding: 4px 6px; border-radius: 4px; background: var(--co); color: #fff; margin-left: 8px; vertical-align: 2px; }

/* Wordmarks */
.wm { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.wm img { height: 26px; width: auto; display: block; }
.wm-replica { font: 800 17px/1 "Figtree", sans-serif; letter-spacing: .14em; border: 3px solid currentColor; padding: 5px 9px 5px 11px; }
.wm-tractics { font: 700 18px/1 "Manrope", sans-serif; letter-spacing: .32em; gap: 10px; }
.wm-tractics::before { content: ""; width: 20px; height: 20px; border: 3px solid var(--co); border-radius: 3px; border-top-width: 7px; }
.wm-mysidewalk { font: 700 22px/1 "Source Sans 3", sans-serif; letter-spacing: -.01em; gap: 10px; }
.wm-mysidewalk::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--co) 0 50%, var(--co-blue) 0); }
.wm-sm img { height: 18px; }
.wm-sm.wm-replica { font-size: 12px; border-width: 2px; padding: 4px 7px 4px 8px; }
.wm-sm.wm-tractics { font-size: 13px; }
.wm-sm.wm-tractics::before { width: 14px; height: 14px; border-width: 2px; border-top-width: 5px; }
.wm-sm.wm-mysidewalk { font-size: 16px; }
.wm-sm.wm-mysidewalk::before { width: 16px; height: 16px; }

/* Habits */
.habits { background: var(--paper-2); }
.habit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.habit {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  transition: box-shadow .24s, transform .24s; border-top: 3px solid var(--co);
}
.habit:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.habit .from { font: 500 12px/1 var(--mono); color: var(--co-ink); }
.habit b { font: 600 21px/1.25 var(--display); letter-spacing: -.01em; }
.habit span:last-child { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; padding-block: 72px; position: relative; }
.contact h2 { margin: 0 0 12px; font: 600 clamp(30px, 4vw, 48px)/1.06 var(--display); letter-spacing: -.025em; }
.contact h2 .dot { color: var(--mark); }
.contact p { margin: 0; color: var(--on-deep-2); max-width: 46ch; }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-3); margin-bottom: 6px; }
.contact dd { margin: 0; font-size: 17px; }
.contact dd a { color: #fff; text-decoration-color: var(--mark); text-underline-offset: 4px; }
.copy { background: none; border: 1px solid rgba(255, 255, 255, .24); color: var(--on-deep-2); border-radius: 6px; padding: 4px 8px; font: 500 12px/1 var(--mono); cursor: pointer; margin-left: 8px; }
.copy:hover { color: #fff; border-color: #fff; }
.site-foot { background: var(--deep); color: var(--on-deep-3); border-top: 1px solid var(--deep-line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-block: 28px; font-size: 13px; }
.site-foot a { color: var(--on-deep-2); }

/* ---------- Case hero ---------- */
.case-hero .wrap { position: relative; padding-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 40px; }
.crumbs a.back { color: var(--on-deep-3); text-decoration: none; font-size: 14px; font-weight: 500; }
.crumbs a.back:hover { color: #fff; }
.crumbs .wm { opacity: .95; }
.crumbs .rl { font: 500 12px/1 var(--mono); color: var(--on-deep-3); letter-spacing: .04em; }
.case-hero .eyebrow { margin: 0 0 22px; color: var(--co-2); }
.case-hero h1 { margin: 0; font: 600 clamp(38px, 6vw, 78px)/1.03 var(--co-font); letter-spacing: -.035em; max-width: 18ch; }
.case-hero .summary { margin: 26px 0 0; font-size: 19px; line-height: 1.55; color: var(--on-deep-2); max-width: 64ch; }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--deep-line); }
.facts dt { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-deep-3); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.4; color: #fff; }
.hero-media { margin-top: 52px; padding-bottom: 52px; }
.hero-media .cap { margin: 16px 0 0; font-size: 13px; color: var(--on-deep-3); }
.hm-phones { display: flex; gap: clamp(12px, 2vw, 24px); justify-content: center; align-items: flex-start; overflow-x: auto; padding: 8px 0 16px; }
.hm-phones figure { flex: 0 0 clamp(140px, 17vw, 210px); margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-phones .zoom { border-radius: 22px; border: 1px solid rgba(255, 255, 255, .1); background: #0d1420; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hm-phones figcaption { font: 500 12px/1 var(--mono); color: var(--on-deep-2); text-align: center; }
.hm-evo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; align-items: start; }
.hm-evo figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hm-evo .zoom { border-radius: 12px; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hm-evo figcaption { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1.3 var(--mono); color: var(--on-deep-2); }
.hm-evo figcaption span:last-child { color: var(--co-2); }
.hm-collage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.hm-collage figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-collage .zoom { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); aspect-ratio: 4 / 3; background: #0d1420; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hm-collage .zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hm-collage figcaption { font: 500 12px/1.3 var(--mono); color: var(--on-deep-2); }
.hm-device .zoom { width: 100%; background: transparent; }
.hm-week { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 10px; overflow-x: auto; padding: 20px; border-radius: 16px; background: #fff; color: #283a5d; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.zoom { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; transition: transform .32s var(--ease); }
.zoom img { width: 100%; display: block; }
.zoom:hover { transform: translateY(-6px); }

/* Week grid (shared by hero and blocks) */
.wk-day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wk-day > b { font: 600 13px/1 var(--co-font); padding: 6px 2px 10px; border-bottom: 2px solid #283a5d; }
.ev { border-radius: 8px; padding: 9px 10px; }
.ev span { display: block; font: 500 11px/1 var(--mono); opacity: .75; margin-bottom: 5px; }
.ev strong { display: block; font: 500 13px/1.3 var(--co-font); }
.ev-auto { background: #eafaf2; color: #166b47; border: 1px solid #c9f2dd; }
.ev-meet { background: #283a5d; color: #fff; }
.ev-person { background: #fff; color: #283a5d; border: 1px dashed #7a8ead; }
.ev-quiet { background: #f5f9fe; color: #5e6a83; border: 1px dashed #c1cadb; }

/* ---------- Tabs ---------- */
.tabs {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabs .wrap { display: flex; align-items: center; gap: 4px; height: 56px; position: relative; }
.tab {
  background: none; border: 0; height: 56px; padding: 0 14px; font-size: 15px; font-weight: 500;
  color: var(--muted); cursor: pointer; white-space: nowrap; position: relative;
}
.tab small { margin-left: 8px; font: 500 11px/1 var(--mono); color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--co); }
.tabs .next { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--co-ink); text-decoration: none; white-space: nowrap; }
.tabs .next:hover { text-decoration: underline; }
@media (max-width: 640px) { .tabs .next { display: none; } .tab { padding: 0 10px; font-size: 14px; } .tab small { display: none; } }

/* ---------- Overview ---------- */
.panel { padding-block: 64px 104px; }
.ov { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.ov-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.ov-aside { flex: 0 1 340px; min-width: 0; position: sticky; top: 148px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .ov-aside { flex: 1 1 100%; position: static; } }
.ov .eyebrow { color: var(--muted); margin: 0 0 18px; display: block; }
.ov .big { margin: 0; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.42; letter-spacing: -.012em; font-weight: 500; }
.bets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bets li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bets .n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--co-navy, var(--ink)); color: #fff; font: 600 14px/36px var(--co-font); text-align: center; }
.bets b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.bets span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.tile .n { font: 500 11px/1 var(--mono); color: var(--co-ink); }
.tile b { font-size: 17px; font-weight: 600; }
.tile span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.lessons { display: flex; flex-direction: column; gap: 10px; }
.lesson { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); }
.lesson .n { flex: 0 0 auto; font: 600 11px/1 var(--mono); color: var(--co-ink); padding-top: 4px; letter-spacing: .06em; }
.lesson b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.lesson span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.nextbox { padding: 32px; border-radius: 16px; background: var(--co-navy, var(--deep)); color: #fff; }
.nextbox .eyebrow { color: var(--co-2); margin-bottom: 10px; }
.nextbox p { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 500; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.box > .eyebrow { margin-bottom: 14px; }
.role h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.role p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.role ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.role li { font-size: 13px; line-height: 1.45; color: var(--muted); padding-left: 16px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--co); }
.proof div { padding: 16px 0; border-top: 1px solid var(--line-2); }
.proof strong { display: block; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.protos a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.protos a:hover { color: var(--co-ink); }
.protos a span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.protos b { font-size: 15px; font-weight: 600; }
.protos small { font-size: 13px; color: var(--muted); }
.protos i { font-style: normal; color: var(--co-ink); }
.godeep { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--deep); color: #fff; border: 0; border-radius: 16px; padding: 22px 24px; cursor: pointer; transition: background .15s, transform .1s; }
.godeep:hover { background: var(--deep-2); }
.godeep b { font-size: 17px; font-weight: 600; }
.godeep span { font-size: 13px; color: var(--on-deep-3); }

/* ---------- Deep dive ---------- */
.deep { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.rail { flex: 0 0 232px; position: sticky; top: 152px; display: flex; flex-direction: column; gap: 2px; }
.rail > .eyebrow { color: var(--muted); margin-bottom: 12px; }
.rail button {
  text-align: left; background: transparent; border: 0; border-left: 2px solid var(--line); padding: 10px 12px;
  font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-radius: 0 6px 6px 0;
  transition: all .32s var(--ease);
}
.rail button small { font: 500 11px/1 var(--mono); opacity: .6; margin-right: 10px; }
.rail button.on { background: var(--surface); border-left-color: var(--co); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); transform: translateX(4px); }
.rail .bar { margin-top: 16px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail .bar div { height: 100%; background: var(--co); transform: scaleX(0); transform-origin: left; }
@media (max-width: 960px) {
  .rail { flex: 1 1 100%; position: sticky; top: 120px; z-index: 5; flex-direction: row; overflow-x: auto; gap: 6px; padding: 8px 0; background: var(--paper); }
  .rail > .eyebrow, .rail .bar { display: none; }
  .rail button { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 8px 12px; font-size: 13px; }
  .rail button.on { background: var(--co-navy, var(--ink)); color: #fff; border-color: transparent; transform: none; }
}
.chapters { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; }
.chapter { padding-bottom: 80px; margin-bottom: 80px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 136px; }
.ch-head { display: flex; flex-direction: column; gap: 16px; }
.ch-head .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--co-ink); margin: 0; }
.ch-head .eyebrow span { font-size: 13px; padding: 6px 8px; border-radius: 6px; background: var(--co-navy, var(--ink)); color: #fff; letter-spacing: 0; }
.chapter h2 { margin: 0; font: 600 clamp(30px, 3.8vw, 48px)/1.06 var(--co-font); letter-spacing: -.025em; max-width: 20ch; }
.chapter p { margin: 0; color: var(--ink-2); max-width: 66ch; font-size: 17px; line-height: 1.65; }
.chapter p.lead { font-size: 20px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.chapter h3 { margin: 16px 0 -8px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.b-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.b-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.b-stats strong { display: block; font-size: clamp(30px, 3vw, 40px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.b-stats span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.b-cards, .b-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.b-cards > div, .b-notes > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.b-cards small { font: 500 11px/1.3 var(--mono); color: var(--muted); }
.b-cards b, .b-notes b { font-size: 16px; font-weight: 600; }
.b-cards span, .b-notes span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.b-cards em { align-self: flex-start; margin-top: 4px; font: 500 11px/1 var(--mono); font-style: normal; padding: 5px 8px; border-radius: 999px; background: var(--co-soft); color: var(--co-soft-ink); }
.b-quote { margin: 0; padding: 32px 36px; background: var(--co-navy, var(--deep)); color: #fff; border-radius: 16px; position: relative; overflow: hidden; }
.b-quote::before { content: "\201C"; position: absolute; right: 24px; top: -18px; font-size: 160px; line-height: 1; font-weight: 600; color: rgba(255, 255, 255, .06); }
.b-quote p { position: relative; margin: 0 0 14px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.38; font-weight: 500; letter-spacing: -.01em; max-width: 40ch; color: #fff; }
.b-quote cite { font: 500 12px/1.3 var(--mono); font-style: normal; color: var(--co-2); }
.b-bullets { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.b-bullets li { font-size: 16px; line-height: 1.5; color: var(--ink-2); padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); position: relative; }
.b-bullets li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--co); }
.b-img { margin: 0; }
.b-img .zoom { padding: clamp(14px, 3vw, 40px); background: #17181c; border-radius: 16px; }
.b-img .zoom img { border-radius: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.b-img .zoom:hover { transform: none; }
figcaption.fc { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 72ch; }
.b-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.b-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.b-gallery .zoom { background: #17181c; border-radius: 12px; padding: 12px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.b-gallery .zoom img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.b-gallery .zoom:hover { transform: translateY(-3px); }
.b-gallery figcaption { font-size: 13px; line-height: 1.4; color: var(--muted); }
.b-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.b-compare figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.b-compare .lbl { font: 500 11px/1 var(--mono); color: var(--mark-ink); letter-spacing: .06em; text-transform: uppercase; }
.b-compare figure + figure .lbl { color: var(--co-ink); }
.b-compare .zoom { display: flex; align-items: center; justify-content: center; padding: 18px; background: #17181c; border-radius: 14px; min-height: 220px; }
.b-compare .zoom img { width: auto; max-width: 100%; max-height: 440px; border-radius: 6px; }
.b-compare .zoom:hover { transform: none; }
.b-compare figcaption { font-size: 13px; color: var(--muted); }
.b-phones { display: flex; gap: 20px; overflow-x: auto; padding: 32px; background: #17181c; border-radius: 16px; }
.b-phones figure { flex: 0 0 200px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.b-phones .who { font: 500 11px/1 var(--mono); color: var(--co-2); }
.b-phones .zoom { border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: #0d1420; max-height: 440px; }
.b-phones figcaption { font-size: 13px; line-height: 1.4; color: #d3dae6; }
.b-proto { margin: 0; display: flex; flex-direction: column; }
.b-proto .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--deep); border-radius: 16px 16px 0 0; }
.b-proto .bar span { font: 500 12px/1.3 var(--mono); color: var(--on-deep-2); }
.b-proto .bar a { display: inline-flex; align-items: center; gap: 8px; background: var(--co); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 6px; }
.b-proto iframe { width: 100%; height: min(80vh, 760px); border: 0; border-radius: 0 0 16px 16px; background: #fff; display: block; }
.b-proto figcaption { margin-top: 12px; }
.b-links h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.b-links > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.b-links a { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .24s, transform .24s; }
.b-links a:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.b-links b { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.b-links b i { font-style: normal; color: var(--co-ink); }
.b-links span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.b-bars { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.b-bars h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.b-bars .row { display: grid; grid-template-columns: minmax(100px, 220px) minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.b-bars .row > span:first-child { font-size: 13px; color: var(--muted); }
.b-bars .track { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.b-bars .fill { height: 100%; border-radius: 4px; transform-origin: left; }
.b-bars .row > strong { font-size: 14px; font-weight: 600; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.b-bars p, .b-split p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) { .b-bars .row { grid-template-columns: minmax(0, 1fr) auto; } .b-bars .track { grid-column: 1 / -1; grid-row: 2; } }
.tone-g { background: var(--co); } .tone-g2 { background: var(--co-2); } .tone-n { background: var(--co-navy, #283a5d); }
.tone-n2 { background: #7a8ead; } .tone-o { background: var(--warn); } .tone-b { background: var(--co-blue); } .tone-r { background: #d64545; }
.b-split { margin: 0; }
.b-split .strip { display: flex; height: 52px; border-radius: 8px; overflow: hidden; gap: 0; }
.b-split.agenda .strip { gap: 3px; border-radius: 0; }
.b-split .strip > div { color: #fff; font: 600 13px/52px var(--co-font); padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.b-split.agenda .strip > div { border-radius: 6px; }
.b-split .strip > .tone-o, .b-split .strip > .tone-g2 { color: #162134; }
.b-timeline { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.b-timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.b-timeline li { display: flex; gap: 20px; padding: 10px 0 10px 28px; position: relative; }
.b-timeline li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #c1cadb; box-shadow: 0 0 0 4px var(--paper); }
.b-timeline li.k-key::before { background: var(--co); }
.b-timeline li.k-miss::before { background: var(--warn); }
.b-timeline time { flex: 0 0 88px; font: 500 12px/1.6 var(--mono); color: var(--muted); }
.b-timeline b { display: block; font-size: 15px; font-weight: 600; }
.b-timeline span { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 560px) { .b-timeline li { flex-direction: column; gap: 2px; } }
.b-table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.b-table th { text-align: left; padding: 14px 18px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--paper) 60%, var(--surface)); border-bottom: 1px solid var(--line); }
.b-table td { padding: 13px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--muted); }
.b-table td:first-child { font-weight: 600; color: var(--ink); }
.b-table tr:last-child td { border-bottom: 0; }
.b-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.b-flow > div { flex: 1 1 150px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.b-flow .st { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; height: 100%; min-width: 0; }
.b-flow small { font: 500 11px/1 var(--mono); color: var(--co-ink); }
.b-flow b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.b-flow span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.b-flow i { font-style: normal; color: var(--co); font-size: 18px; }
.b-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.b-rules > div { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.b-rules b { font-size: 15px; font-weight: 600; }
.b-rules span { font-size: 13px; color: var(--muted); }
.b-obs { display: flex; flex-direction: column; gap: 8px; }
.b-obs > div { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 92px; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.b-obs small { display: block; font: 500 11px/1 var(--mono); color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.b-obs > div > span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.b-obs > div > span:nth-child(3) { color: var(--ink); }
.b-obs > div > span:nth-child(3) small { color: var(--co-ink); }
.b-obs i { font-style: normal; color: var(--co); font-size: 18px; text-align: center; }
.b-obs strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-align: right; }
@media (max-width: 640px) { .b-obs > div { grid-template-columns: minmax(0, 1fr); } .b-obs i { display: none; } .b-obs strong { text-align: left; } }
.b-gate { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.b-gate li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.b-gate li span { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--co-soft); color: var(--co-soft-ink); font: 600 12px/28px var(--co-font); text-align: center; }
.b-week { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding: 20px; border-radius: 16px; background: #fff; color: #283a5d; border: 1px solid var(--line); }
.nextcase { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; text-decoration: none; background: var(--deep); color: #fff; border-radius: 16px; padding: 28px; transition: transform .32s var(--ease); }
.nextcase:hover { transform: translateY(-4px); }
.nextcase > span:first-child { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.nextcase .eyebrow { color: var(--co-2); }
.nextcase b { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.nextcase .th { flex: 0 1 220px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #17181c; }
.nextcase .th img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Documents ---------- */
.docs-intro { margin: 0 0 32px; font-size: 16px; color: var(--muted); max-width: 60ch; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.doc-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; cursor: pointer; transition: box-shadow .24s, transform .24s; }
.doc-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.doc-card .m { display: flex; justify-content: space-between; gap: 8px; font: 500 11px/1.3 var(--mono); color: var(--muted); }
.doc-card b { font-size: 16px; line-height: 1.35; font-weight: 600; }
.doc-card .f { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.doc-card .f span:last-child { color: var(--co-ink); font-weight: 500; }
.drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(13, 20, 32, .55); backdrop-filter: blur(4px); }
.drawer aside { position: relative; width: min(760px, 100%); height: 100%; background: var(--surface); box-shadow: -30px 0 60px rgba(13, 20, 32, .25); display: flex; flex-direction: column; }
.drawer .dbar { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 14px) clamp(16px, 4vw, 40px) 14px; border-bottom: 1px solid var(--line); }
.drawer .dbar span { flex: 1; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer .dbar button { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.drawer .dbar button:disabled { opacity: .4; cursor: default; }
.drawer .dbar .close { background: var(--co-navy, var(--ink)); color: #fff; border-color: transparent; }
.drawer .dscroll { flex: 1; overflow-y: auto; padding: 36px clamp(16px, 4vw, 40px) 80px; }
.drawer .kind { margin: 0 0 12px; color: var(--co-ink); }
.drawer h2 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.drawer .dsum { margin: 0 0 20px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.drawer .dmeta { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px 0; margin-bottom: 28px; border-block: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.docbody { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.docbody h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.25; }
.docbody h3 { margin: 28px 0 8px; font-size: 18px; }
.docbody h4 { margin: 22px 0 6px; font-size: 15px; }
.docbody p { margin: 0 0 14px; max-width: 68ch; }
.docbody ul, .docbody ol { margin: 0 0 16px; padding-left: 22px; }
.docbody li { margin: 0 0 6px; }
.docbody blockquote { margin: 0 0 20px; padding: 14px 18px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.docbody .tw { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; }
.docbody table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.docbody th { text-align: left; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); font-weight: 600; vertical-align: top; }
.docbody td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.docbody code { font-family: var(--mono); font-size: .88em; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.docbody pre { margin: 0 0 16px; padding: 14px 16px; background: var(--paper); border-radius: 10px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.docbody hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 16, .93); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px 16px; cursor: zoom-out; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); display: block; border-radius: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lightbox p { margin: 0; color: #d3dae6; font-size: 14px; text-align: center; max-width: 70ch; }
.lightbox span { position: absolute; top: 20px; right: 24px; font: 500 12px/1 var(--mono); color: #a7b4ca; }

/* ---------- About ---------- */
.about-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.about-hero h1 { margin: 0 0 24px; font: 600 clamp(40px, 6vw, 76px)/1.02 var(--display); letter-spacing: -.035em; }
.about-hero h1 .dot { color: var(--mark); }
.about-hero p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--on-deep-2); max-width: 60ch; }
.about-hero .portrait { justify-self: center; width: min(360px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.about-hero .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .about-hero .wrap { grid-template-columns: minmax(0, 1fr); } .about-hero .portrait { width: min(240px, 70%); } }
.photos { columns: 3 280px; column-gap: 16px; }
.photos figure { break-inside: avoid; margin: 0 0 16px; }
.photos .zoom { border-radius: 12px; background: var(--paper-2); }
.photos .zoom:hover { transform: none; }
.photos figcaption { margin-top: 8px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.timeline-co { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.timeline-co a { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.timeline-co a:hover b { color: var(--co-ink); }
.timeline-co .yr { font: 500 12px/1.6 var(--mono); color: var(--muted); }
.timeline-co .yr i { display: block; font-style: normal; width: 28px; height: 3px; border-radius: 3px; background: var(--co); margin-bottom: 10px; }
.timeline-co b { display: block; font: 600 22px/1.2 var(--co-font); margin-bottom: 4px; }
.timeline-co em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.timeline-co p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 640px) { .timeline-co a { grid-template-columns: minmax(0, 1fr); } }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 32px; }
.results div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; font-size: 15px; line-height: 1.5; border-top: 3px solid var(--mark); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rv].rv-wait { opacity: 0; transform: translateY(28px); }
  .js [data-rv].rv-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .js .grow.rv-wait { transform: scaleX(0); opacity: 1; }
  .js .grow.rv-in { transform: none; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0ms); }
  .js .panel.enter { animation: panelIn .5s var(--ease); }
  @keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Fixes after first review ---------- */
.bets b, .lesson b, .b-timeline b { color: var(--ink); }
.mini .met strong { white-space: nowrap; }
.cards-co.one { grid-template-columns: minmax(0, 1fr); }
.cards-co.one .mini { flex-direction: row; }
.cards-co.one .mini .media { flex: 0 0 min(52%, 560px); aspect-ratio: 16 / 10; }
.cards-co.one .mini .body { padding: 28px 32px; gap: 12px; justify-content: center; }
.cards-co.one .mini b { font-size: clamp(22px, 2.4vw, 30px); }
.cards-co.one .mini .th { font-size: 16px; }
@media (max-width: 720px) {
  .cards-co.one .mini { flex-direction: column; }
  .cards-co.one .mini .media { flex: none; }
  .cards-co.one .mini .body { padding: 18px 20px 20px; }
  .nav a.co-link { display: none; }
}

/* ---------- Page heroes (Work, Resume) ---------- */
.page-hero .wrap { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.page-hero .eyebrow { color: var(--mark); margin: 0 0 20px; }
.page-hero h1 { margin: 0; font: 600 clamp(38px, 5.6vw, 72px)/1.03 var(--display); letter-spacing: -.035em; max-width: 18ch; }
.page-hero h1 .dot { color: var(--mark); }
.page-hero .lede { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--on-deep-2); max-width: 60ch; }
.more-row { display: flex; justify-content: center; margin-top: 40px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: var(--shadow-lift); }

/* Company jump links on the Work page */
.jumps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 40px; }
.jump { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 10px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid var(--deep-line); border-left: 3px solid var(--co); transition: background .2s, transform .2s var(--ease); }
.jump:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.jump b { font: 600 18px/1.1 var(--co-font); }
.jump span { font: 500 11px/1.3 var(--mono); letter-spacing: .04em; color: var(--on-deep-3); }
.company { scroll-margin-top: 64px; }

/* ---------- Resume ---------- */
.cv-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 40px; align-items: end; }
@media (max-width: 860px) { .cv-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; font-size: 15px; color: var(--on-deep-3); }
.cv-contact a { color: var(--on-deep-2); text-underline-offset: 3px; }
.dl-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--deep-line); }
.dl-card .mono, .dl-side .mono { margin: 0; text-align: center; color: var(--on-deep-3); letter-spacing: .04em; }
.dl-side .mono { color: var(--muted); }
.btn-dl { justify-content: center; padding: 16px 20px; font-size: 16px; }
.btn-dl svg { transition: transform .2s var(--ease); }
.btn-dl:hover svg { transform: translateY(2px); }
.dl-view { text-align: center; font-size: 14px; color: var(--on-deep-2); text-underline-offset: 3px; }
.cv-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.cv-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.cv-aside { flex: 0 1 320px; min-width: 0; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 960px) { .cv-aside { flex: 1 1 100%; position: static; } }
.cv .eyebrow { color: var(--muted); margin: 0 0 18px; }
.cv-summary { margin: 0; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; letter-spacing: -.01em; max-width: 62ch; }
.cv-impact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cv-impact li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--mark); border-radius: 10px; padding: 18px 20px; font-size: 15px; line-height: 1.5; }
.cv-roles { display: flex; flex-direction: column; gap: 16px; }
.cv-role { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.cv-role > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: 22px 26px; background: var(--deep); color: #fff; border-bottom: 3px solid var(--co); }
.cv-role h3 { margin: 12px 0 4px; font: 600 22px/1.2 var(--co-font); letter-spacing: -.01em; }
.cv-meta { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .03em; color: var(--on-deep-3); }
.cv-cases { font-size: 14px; font-weight: 600; color: var(--co-2); text-decoration: none; white-space: nowrap; }
.cv-cases:hover { text-decoration: underline; }
.cv-list { margin: 0; padding: 20px 26px 22px; list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--co-font); }
.cv-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cv-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--co); }
.cv-earlies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.cv-early { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.cv-early h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.cv-early .cv-meta { color: var(--muted); margin-bottom: 10px; }
.cv-early p:last-child { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; line-height: 1; padding: 8px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.cv-edu { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.cv-edu span { color: var(--muted); font-size: 14px; }
@media print {
  .top, .contact, .site-foot, .dl-card, .dl-side, .grid-bg { display: none !important; }
  .band { background: none !important; color: #000 !important; }
  .page-hero .lede, .cv-contact { color: #333 !important; }
}
.dl-side { display: flex; flex-direction: column; gap: 10px; }
.cv-impact { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.cv-impact li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0 14px 26px; position: relative; font-size: 16px; }
.cv-impact li::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px; border-radius: 2px; background: var(--mark); }

/* ================= Capability structure (Home, Work, case pages) ================= */
/* Home proof strip */
.hero-home .wrap:first-of-type { padding-bottom: 48px; }
.proof-wrap { position: relative; padding-bottom: 72px; }
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); }
.proof-item { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 4px 0; text-decoration: none; color: var(--on-deep); border-right: 1px solid rgba(255, 255, 255, .08); margin-right: 20px; }
.proof-item:last-child { border-right: 0; margin-right: 0; }
.proof-item strong { font: 600 clamp(34px, 3.6vw, 48px)/1 var(--display); letter-spacing: -.03em; color: var(--co-2); font-variant-numeric: tabular-nums; }
.proof-item span { font-size: 14px; line-height: 1.45; color: var(--on-deep-2); }
.proof-item em { font-style: normal; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-deep-3); margin-top: auto; padding-top: 6px; }
.proof-item:hover em { color: #fff; }
@media (max-width: 860px) { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof-item:nth-child(2) { border-right: 0; margin-right: 0; } }

/* Home capability rows */
.caps { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); }
.cap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 32px 56px; align-items: start; scroll-margin-top: 80px; }
.cap-intro { position: sticky; top: 96px; }
.cap-intro .eyebrow { color: var(--mark-ink); display: block; margin-bottom: 14px; }
.cap-intro h2 { margin: 0 0 14px; font: 600 clamp(28px, 3.2vw, 40px)/1.08 var(--display); letter-spacing: -.025em; }
.cap-intro h2 .dot { color: var(--mark); }
.cap-intro p { margin: 0 0 18px; color: var(--muted); }
.cap-all { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration-color: var(--mark); text-underline-offset: 4px; }
.cap-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cap-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.cap-link { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s var(--ease); }
.cap-link:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.cap-link i { flex: 0 0 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--co); }
.cap-link b { display: block; font-size: 15px; font-weight: 600; font-family: var(--co-font); }
.cap-link small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .cap-row { grid-template-columns: minmax(0, 1fr); } .cap-intro { position: static; } }

/* Capability chips */
.capchip { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; text-decoration: none; background: var(--mark-soft); color: var(--mark-ink); }
.capchip.on-deep { background: rgba(255, 255, 255, .08); color: var(--on-deep-2); border: 1px solid var(--deep-line); }
.capchip.on-deep:hover { color: #fff; border-color: var(--co); }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* Work page */
.wbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.fchip i { width: 8px; height: 8px; border-radius: 2px; background: var(--co); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.view-cap .wrap { padding-block: 24px 96px; }
.wgroup { padding-top: 56px; scroll-margin-top: 130px; }
.wg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 32px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.wg-head h2 { margin: 0; font: 600 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.02em; }
.wg-head h2 .dot { color: var(--mark); }
.wg-head p { margin: 0; color: var(--muted); max-width: 56ch; font-size: 15px; }
.wlist { display: flex; flex-direction: column; }
.wrow { display: grid; grid-template-columns: 168px minmax(0, 1fr) 190px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.wrow:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.wrow:hover .wtitle { color: var(--co-ink); }
.wthumb { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--deep); border-bottom: 3px solid var(--co); }
.wthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-family: var(--co-font); }
.wco { display: flex; align-items: center; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wco i { width: 8px; height: 8px; border-radius: 2px; background: var(--co); }
.wco b { color: var(--mark-ink); font-weight: 500; }
.wtitle { font-size: 21px; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.wth { font-size: 15px; color: var(--muted); }
.wtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wtags span { font: 500 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; background: var(--paper-2); color: var(--muted); }
.wmet { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.wmet strong { font: 600 30px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wmet small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.also { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.also a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 760px) {
  .wrow { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
  .wmet { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; }
  .wmet strong { font-size: 20px; }
  .wtitle { font-size: 18px; }
  .wth { display: none; }
}

/* Case pages: one scroll */
.secbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.secbar .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 52px; align-items: center; }
.secbar .wrap::-webkit-scrollbar { display: none; }
.secbar a { flex: 0 0 auto; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; position: relative; }
.secbar a:hover { color: var(--ink); }
.secbar a.on { color: var(--ink); font-weight: 600; }
.secbar a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 2px; background: var(--co); }
.case-sec { padding-block: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.case-sec .wrap.narrow { max-width: 860px; }
.sec-title { margin-bottom: 32px; }
.sec-title .eyebrow { color: var(--co-ink); display: block; margin-bottom: 12px; }
.sec-title h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 42px)/1.08 var(--co-font); letter-spacing: -.025em; }
.band .sec-title .eyebrow { color: var(--co-2); }
.band .sec-title h2 { color: #fff; }
.summary-sec .ov { margin-top: 40px; }
.summary-sec .ov-main { gap: 48px; }
.summary-sec .ov-aside { top: 132px; }
.sum-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-block: 1px solid var(--line); }
.sum-proof > div { padding: 22px 20px 22px 0; border-right: 1px solid var(--line-2); margin-right: 20px; }
.sum-proof > div:last-child { border-right: 0; margin-right: 0; }
.sum-proof strong { display: block; font: 600 clamp(32px, 3.4vw, 44px)/1 var(--co-font); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-proof span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
a.godeep { text-decoration: none; }
.story-sec .deep { margin-top: 8px; }
.story-sec .chapter:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.story-sec .rail { top: 132px; }
@media (max-width: 960px) { .story-sec .rail { top: 116px; } }
.chapter { scroll-margin-top: 124px; }
.case-more { border-bottom: 0; }
.case-more .wrap { position: relative; padding-block: clamp(56px, 7vw, 88px); }
.more-all { margin: 24px 0 0; }
.more-all a { color: #fff; text-decoration-color: var(--co); text-underline-offset: 4px; font-weight: 600; }
.b-img.light .zoom, .b-gallery figure.light .zoom { background: #fff; }

/* ---------- Locked full stories ---------- */
.btn-co { background: var(--co); color: #fff; }
.btn-co:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--co) 35%, transparent); }
.locked-sec { border-bottom: 0; }
.locked { display: flex; gap: 24px; align-items: flex-start; padding: clamp(24px, 4vw, 40px); border-radius: 16px; background: var(--deep); color: #fff; border: 1px solid var(--deep-line); }
.locked .lock { flex: 0 0 auto; color: var(--co-2); margin-top: 4px; }
.locked .eyebrow { color: var(--co-2); display: block; margin-bottom: 10px; }
.locked h2 { margin: 0 0 12px; font: 600 clamp(24px, 3vw, 34px)/1.12 var(--co-font); letter-spacing: -.02em; color: #fff; }
.locked p { margin: 0 0 22px; color: var(--on-deep-2); max-width: 60ch; }
.lk-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.lk-mail { font-size: 14px; color: var(--on-deep-3); }
@media (max-width: 560px) { .locked { flex-direction: column; } }
.private-hero .wrap { padding-bottom: 48px; }
.wlock { font: 500 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; background: var(--co-soft); color: var(--co-soft-ink); }
.unlock-band .wrap { position: relative; padding-block: clamp(56px, 10vw, 120px); display: flex; justify-content: center; }
.unlock-card { width: min(520px, 100%); background: var(--surface); color: var(--ink); border-radius: 18px; padding: clamp(24px, 5vw, 40px); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.unlock-card .lock { color: var(--co); }
.unlock-card .eyebrow { color: var(--co-ink); margin: 14px 0 10px; }
.unlock-card h1 { margin: 0 0 12px; font: 600 clamp(28px, 4vw, 38px)/1.1 var(--display); letter-spacing: -.02em; }
.unlock-card h1 .dot { color: var(--co); }
.unlock-card p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.unlock-card label { display: block; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ul-row { display: flex; gap: 10px; margin-bottom: 18px; }
.ul-row input { flex: 1; min-width: 0; font: 400 16px var(--body); padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.ul-row input:focus { outline: 2px solid var(--co); outline-offset: 1px; }
.ul-error { color: #b3362b; font-weight: 600; }
.ul-help, .ul-local { font-size: 14px !important; }
.unlock-card .copy { color: var(--muted); border-color: var(--line); }
.unlock-card .ul-error { color: #b3362b; font-weight: 600; }
