/* ================================================================
   UBON UDONKANG · v6  |  site.css
   White paper · editorial serif · signed-off ink · dock nav
================================================================ */

:root {
  --paper: #FFFFFF;
  --paper-2: #F6F4EF;      /* warm card surface */
  --ink: #111111;
  --ink-2: #4B4B4B;
  --ink-3: #8A8782;
  --line: #E7E4DD;
  --line-2: #D6D2C8;
  --accent: #1F3BD6;       /* signature ink blue */
  --accent-ink: #172DA8;
  --stamp: #C8372D;        /* only for the APPROVED stamp */
  --manila: #E3C58F;
  --manila-2: #D2AE6E;
  --sticky: #FBE38A;
  --night: #0F0F10;        /* project cards */

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 120px; /* room for the dock */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* keeps photos in proportion when width is constrained */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ─────────────────────────────────────────────────── */
.label {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif { font-family: var(--serif); font-weight: 400; }
.h-sec {
  font: 400 clamp(2.5rem, 6vw, 4.75rem)/1 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
}
.h-sec em { font-style: italic; color: var(--ink-3); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--sans);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-ink); }
  .btn-line:hover { border-color: var(--ink); }
  .btn-dark:hover { background: #2a2a2a; }
}

/* ── Top bar (translucent) ───────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.topbar::after { /* scroll edge fade instead of a hard divider */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0));
  pointer-events: none; opacity: 0; transition: opacity 200ms ease;
}
.topbar.is-scrolled::after { opacity: 1; }
.topbar__name { font: 500 0.95rem/1 var(--sans); letter-spacing: -0.01em; }
.topbar__meta { display: flex; align-items: center; gap: 18px; font: 500 0.75rem/1 var(--mono); color: var(--ink-2); }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail__dot { width: 7px; height: 7px; border-radius: 50%; background: #1FA15C; box-shadow: 0 0 0 3px rgba(31,161,92,0.15); }
@media (max-width: 560px) { .topbar__clock { display: none; } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 10vw, 128px) clamp(56px, 8vw, 96px); }
.hero__label { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 28px; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 26vw, 360px);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
}
.hero__name {
  font: 400 clamp(4rem, 11vw, 10.5rem)/0.88 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 36px;
}
.hero__name span { display: block; }
.hero__name span:last-child { padding-left: 0.9em; }
@media (max-width: 640px) { .hero__name span:last-child { padding-left: 0; } }
.hero__row {
  display: grid; grid-template-columns: 1fr;
  gap: 28px; align-items: end;
  padding-top: 32px; border-top: 1px solid var(--ink);
}
.hero__lede { font: 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--sans); letter-spacing: -0.015em; margin: 0; max-width: 34ch; }
.hero__lede strong { font-weight: 500; }
.hero__lede .ink { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.12em; letter-spacing: 0; }
.hero__cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__note { font-size: 0.85rem; color: var(--ink-2); }
.hero__note s { color: var(--ink-3); }

/* portrait: printed-photo treatment with a figure caption */
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 862 / 1080; object-fit: cover;
  border-radius: 4px; background: var(--paper-2);
}
.portrait figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
/* one-time reveal on load: the print slides up out of a mask */
.hero__photo img { animation: photoIn 1s var(--ease-in-out) 150ms both; }
@keyframes photoIn {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.04); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 0 32px; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font: 400 clamp(2.5rem, 6vw, 4.5rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__lbl { margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-top: 1px solid var(--line); padding: 20px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .stat__lbl { margin: 0; text-align: right; }
}

/* ── Section scaffold ────────────────────────────────────── */
.sec { padding-top: clamp(80px, 12vw, 152px); }
.sec__hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec__hd .label { display: block; margin-bottom: 18px; }
.sec__link { font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color 200ms ease, border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .sec__link:hover { color: var(--ink); border-color: var(--ink); } }

/* ── Case file (signature) ───────────────────────────────── */
.casefile {
  position: relative;
  height: 720px;
  margin-top: 8px;
  touch-action: pan-y;
}
.folder {
  position: absolute; inset: 40px 0 0 0;
  background: var(--manila);
  border-radius: 6px 18px 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05), 0 30px 60px -30px rgba(80,55,10,0.45);
}
.folder::before { /* tab */
  content: ""; position: absolute; left: 0; top: -34px; width: 240px; height: 40px;
  background: var(--manila); border-radius: 12px 12px 0 0;
}
.folder__tab {
  position: absolute; left: 22px; top: -24px; z-index: 1;
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(60,40,5,0.7);
}
.folder__edge { /* back sheet peeking out */
  position: absolute; left: 14px; right: 14px; top: 14px; bottom: 14px;
  border: 1px dashed rgba(80,55,10,0.25); border-radius: 12px; pointer-events: none;
}

/* the main sheet with the bio */
.sheet {
  position: absolute; right: 5%; top: 90px; width: min(460px, 44%); z-index: 2;
  background: #fff; padding: 36px 34px 30px;
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(0,0,0,0.35);
}
.sheet__head { display: flex; justify-content: space-between; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.sheet h3 { font: 400 2.1rem/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; }
.sheet p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 0.85rem; }
.sheet dt { font: 500 0.68rem/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.sheet dd { margin: 0; }
.sheet__sign { margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sheet__sig { font: italic 400 2rem/1 var(--serif); color: var(--accent); transform: rotate(-4deg); transform-origin: left bottom; }
.sheet__sig small { display: block; font: 500 0.62rem/1 var(--mono); color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(4deg); margin-top: 8px; font-style: normal; }
.sheet__link { font-size: 0.85rem; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

/* loose documents (draggable) */
.doc {
  position: absolute; z-index: 3;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 18px 36px -18px rgba(0,0,0,0.35);
  border-radius: 3px;
  cursor: grab;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  will-change: transform;
  --r: 0deg;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r));
}
.doc.is-grabbed { cursor: grabbing; box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 32px 60px -20px rgba(0,0,0,0.45); }
.doc__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1;
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(60,40,5,0.55);
}

/* ID card */
.doc-id { left: 4%; top: 78px; width: 280px; padding: 16px; border-radius: 10px; --r: -5deg; background: #FBFAF7; }
.doc-id__top { display: flex; justify-content: space-between; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.doc-id__body { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.doc-id__photo { width: 84px; height: 104px; border-radius: 4px; background: #1b1b1b; color: #fff; display: grid; place-items: center; font: 400 2rem/1 var(--serif); overflow: hidden; }
/* zoom in on the face: the source is a seated half-length portrait */
.doc-id__photo { position: relative; place-items: start; }
.doc-id__photo img { display: block; width: 250%; max-width: none; height: auto; transform: translate(-38%, -15%); pointer-events: none; user-select: none; }
.doc-id__field { font: 500 0.55rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.doc-id__val { font-size: 0.8rem; font-weight: 500; margin-bottom: 9px; line-height: 1.2; }
.doc-id__bar { margin-top: 12px; height: 26px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); opacity: 0.85; }

/* BRD cover */
.doc-brd { left: 26%; top: 260px; width: 250px; padding: 22px 20px 24px; --r: 4deg; }
.doc-brd__ref { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 26px; }
.doc-brd__title { font: 400 1.5rem/1.05 var(--serif); margin-bottom: 8px; }
.doc-brd__sub { font-size: 0.72rem; color: var(--ink-2); margin-bottom: 26px; }
.doc-brd__lines span { display: block; height: 5px; background: var(--line); border-radius: 3px; margin-bottom: 7px; }
.doc-brd__lines span:nth-child(2) { width: 82%; }
.doc-brd__lines span:nth-child(4) { width: 64%; }
.stamp {
  position: absolute; right: 14px; bottom: 30px;
  font: 700 1rem/1 var(--mono); letter-spacing: 0.14em; color: var(--stamp);
  border: 2.5px solid var(--stamp); border-radius: 6px; padding: 7px 10px 6px;
  transform: rotate(-14deg); opacity: 0.88;
  mix-blend-mode: multiply;
}
.stamp small { display: block; font-size: 0.5rem; letter-spacing: 0.1em; margin-top: 3px; font-weight: 600; }

/* BPMN fragment */
.doc-bpmn { left: 3%; top: 430px; width: 320px; padding: 14px 16px 16px; --r: -2deg; }
.doc-bpmn__cap { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.doc-bpmn svg { width: 100%; height: auto; }

/* RTM excerpt */
.doc-rtm { left: 28%; top: 548px; width: 300px; padding: 12px 14px 14px; --r: 2.5deg; }
.doc-rtm table { width: 100%; border-collapse: collapse; font: 500 0.62rem/1.3 var(--mono); }
.doc-rtm th { text-align: left; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; padding: 0 6px 6px 0; border-bottom: 1px solid var(--ink); }
.doc-rtm td { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); }
.doc-rtm .ok { color: #1FA15C; }

/* sticky note */
.doc-note { left: 36%; top: 96px; width: 170px; padding: 18px 16px 20px; background: var(--sticky); border-radius: 2px; --r: 6deg; box-shadow: 0 18px 30px -18px rgba(90,70,0,0.5); }
.doc-note__big { font: 400 2.2rem/1 var(--serif); letter-spacing: -0.02em; margin-bottom: 6px; }
.doc-note__small { font-size: 0.72rem; line-height: 1.35; color: rgba(0,0,0,0.7); }

/* paper clip on the sheet */
.clip { position: absolute; top: -18px; left: 58%; width: 22px; height: 58px; border: 2.5px solid #9aa0a6; border-radius: 11px; border-bottom-color: #9aa0a6; }
.clip::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; bottom: 12px; border: 2.5px solid #9aa0a6; border-radius: 8px; border-top: 0; }

/* collapse the collage on narrow screens */
@media (max-width: 960px) {
  .casefile { height: auto; padding: 72px 16px 24px; }
  .folder { inset: 40px 0 0 0; }
  .sheet, .doc { position: relative; left: auto; right: auto; top: auto; width: auto; margin: 0 auto 18px; max-width: 460px; cursor: default; transform: rotate(var(--r)); }
  .doc-bpmn, .doc-rtm, .doc__hint { display: none; }
  .doc-id { max-width: 300px; }
  .doc-note { max-width: 220px; }
  .doc-brd { max-width: 300px; }
  .collage-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-start; margin-bottom: 18px; }
  .collage-row .doc { margin: 0; }
}
@media (min-width: 961px) { .collage-row { display: contents; } }

/* ── Services: stacked sticky cards ──────────────────────── */
.svc { display: grid; gap: 16px; }
.svc-card {
  position: sticky;
  top: calc(80px + var(--i, 0) * 14px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px;
  min-height: 300px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 -12px 30px -24px rgba(0,0,0,0.25);
}
.svc-card__num { font: 400 clamp(2.2rem, 4vw, 3.5rem)/1 var(--serif); color: var(--ink-3); letter-spacing: -0.02em; }
.svc-card__title { font: 400 clamp(2rem, 4.5vw, 3.5rem)/1 var(--serif); letter-spacing: -0.02em; margin: 16px 0 18px; max-width: 14ch; }
.svc-card__desc { color: var(--ink-2); max-width: 52ch; margin: 0 0 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.04em; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: #fff; }
@media (max-width: 640px) {
  .svc-card { grid-template-columns: 1fr; min-height: 0; top: calc(68px + var(--i, 0) * 10px); }
  .svc-card__num { order: -1; }
}

/* ── Work: dark cards ────────────────────────────────────── */
.work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.work-card {
  grid-column: span 3;
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 440px; padding: clamp(24px, 3vw, 36px);
  background: var(--night); color: #F4F2EE;
  border-radius: 20px; overflow: hidden;
  transition: transform 200ms var(--ease-out);
}
.work-card:nth-child(n+3) { grid-column: span 2; min-height: 400px; }
.work-card:active { transform: scale(0.99); }
.work-card__top { display: flex; justify-content: space-between; gap: 16px; font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,242,238,0.55); }
.work-card__metric { font: 400 clamp(3.5rem, 7vw, 6.5rem)/0.9 var(--serif); letter-spacing: -0.035em; margin: 32px 0; }
.work-card:nth-child(n+3) .work-card__metric { font-size: clamp(3rem, 5vw, 4.5rem); }
.work-card__title { font: 500 1.15rem/1.3 var(--sans); letter-spacing: -0.01em; margin: 0 0 10px; }
.work-card__desc { font-size: 0.9rem; color: rgba(244,242,238,0.62); margin: 0 0 20px; line-height: 1.55; }
.work-card .tag { background: transparent; border-color: rgba(255,255,255,0.16); color: rgba(244,242,238,0.75); }
.work-card__arrow {
  position: absolute; right: clamp(24px, 3vw, 36px); bottom: clamp(24px, 3vw, 36px);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}
.work-card__arrow svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-card__arrow { background: var(--accent); transform: rotate(-45deg); }
}
@media (max-width: 900px) {
  .work-card, .work-card:nth-child(n+3) { grid-column: span 6; min-height: 0; }
  .work-card__metric, .work-card:nth-child(n+3) .work-card__metric { font-size: clamp(3rem, 14vw, 4.5rem); }
  .work-card__desc { padding-right: 52px; }
}

/* ── Cohort (user story card) ────────────────────────────── */
.cohort {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--ink); border-radius: 24px;
}
.cohort__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.cohort__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31,59,214,0.14); }
.cohort h2 { font: 400 clamp(2.5rem, 5.5vw, 4.25rem)/1 var(--serif); letter-spacing: -0.025em; margin: 0 0 20px; }
.cohort h2 em { color: var(--accent); }
.cohort p { color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }
.cohort__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.cohort__price strong { font: 400 2.5rem/1 var(--serif); letter-spacing: -0.02em; }
.cohort__price s { color: var(--ink-3); }
.cohort__price span { font-size: 0.8rem; color: var(--ink-2); }
.story {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 48px -28px rgba(0,0,0,0.3);
  transform: rotate(1.5deg);
}
.story__head { display: flex; justify-content: space-between; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); margin-bottom: 16px; }
.story__line { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.45; }
.story__line b { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.story__ac { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 0.88rem; color: var(--ink-2); }
.story__ac li { display: flex; gap: 10px; }
.story__ac li::before { content: "✓"; color: #1FA15C; font-weight: 600; }
.story__foot { display: flex; justify-content: space-between; margin-top: 18px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) { .cohort { grid-template-columns: 1fr; } .story { transform: rotate(0.8deg); } }

/* ── Testimonials ────────────────────────────────────────── */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.quote__stage { position: relative; min-height: 22rem; }
.quote__item {
  position: absolute; inset: 0;
  opacity: 0; filter: blur(4px); transform: translateY(6px);
  transition: opacity 300ms ease, filter 300ms ease, transform 300ms var(--ease-out);
  pointer-events: none;
}
.quote__item.is-on { opacity: 1; filter: blur(0); transform: none; pointer-events: auto; }
.quote__text { font: 400 clamp(1.7rem, 3.4vw, 2.75rem)/1.18 var(--serif); letter-spacing: -0.015em; margin: 0 0 32px; max-width: 30ch; }
.quote__text::before { content: "\201C"; color: var(--accent); }
.quote__text::after { content: "\201D"; color: var(--accent); }
.quote__who { display: flex; align-items: center; gap: 14px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font: 500 0.8rem/1 var(--mono); }
.quote__name { font-weight: 500; }
.quote__role { font-size: 0.85rem; color: var(--ink-2); }
.quote__nav { display: flex; align-items: center; gap: 10px; }
.quote__count { font: 500 0.75rem/1 var(--mono); color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--ink); } }
@media (max-width: 640px) {
  .quote { grid-template-columns: 1fr; }
  .quote__stage { min-height: 27rem; }
}

/* ── Resources list ──────────────────────────────────────── */
.res { border-top: 1px solid var(--ink); }
.res-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: padding 0s, background-color 200ms ease;
}
.res-row__n { font: 500 0.75rem/1 var(--mono); color: var(--ink-3); }
.res-row__title { font: 400 1.6rem/1.1 var(--serif); letter-spacing: -0.01em; }
.res-row__desc { font-size: 0.88rem; color: var(--ink-2); margin-top: 4px; }
.res-row__kind { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.res-row__price { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
@media (hover: hover) and (pointer: fine) { .res-row:hover .res-row__title { color: var(--accent); } }
@media (max-width: 640px) {
  .res-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .res-row__n, .res-row__kind { display: none; }
}

/* ── Closing CTA ─────────────────────────────────────────── */
.closing { padding-block: clamp(96px, 14vw, 176px) 64px; }
.closing__big { font: 400 clamp(4.5rem, 16vw, 13rem)/0.85 var(--serif); letter-spacing: -0.04em; margin: 18px 0 40px; }
.closing__big em { color: var(--accent); }
.closing__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.kbd-hint { font-size: 0.85rem; color: var(--ink-3); }
kbd { font: 500 0.75rem/1 var(--mono); padding: 4px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-2); background: #fff; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-3); }
.foot__links { display: flex; gap: 20px; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { color: var(--ink); } }

/* ================================================================
   INNER PAGES
================================================================ */

/* ── Page hero ───────────────────────────────────────────── */
.phero { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); }
.phero__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  transition: color 200ms ease;
}
.phero__back svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .phero__back:hover { color: var(--ink); }
  .phero__back:hover svg { transform: translateX(-3px); }
}
.phero__label { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 24px; }
.phero__title {
  font: 400 clamp(3.25rem, 9vw, 7.5rem)/0.92 var(--serif);
  letter-spacing: -0.03em;
  margin: 0 0 32px; max-width: 16ch;
}
.phero__title em { color: var(--accent); }
.phero__sub {
  margin: 0; padding-top: 28px; border-top: 1px solid var(--ink);
  font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.4 var(--sans); letter-spacing: -0.01em;
  color: var(--ink-2); max-width: 46ch;
}

/* ── Two-column scaffold (label | content) ───────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 64px; }
.split__aside { position: sticky; top: 88px; align-self: start; }
.split__aside .label { display: block; margin-bottom: 12px; }
.split__aside h2 { font: 400 clamp(2rem, 3.4vw, 2.75rem)/1 var(--serif); letter-spacing: -0.02em; margin: 0; }
.split__aside h2 em { color: var(--ink-3); }
.split__aside p { color: var(--ink-2); font-size: 0.92rem; margin: 14px 0 0; max-width: 30ch; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
}

/* ── Prose ───────────────────────────────────────────────── */
.prose { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); max-width: 64ch; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a:not([class]) { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.prose li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 1.5px; background: var(--accent); }
.prose--lead p:first-child { font: 400 clamp(1.4rem, 2.4vw, 1.85rem)/1.35 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.prose--lead p:first-child strong { font-weight: 400; font-style: italic; color: var(--accent); }

.split__aside .portrait { margin-top: 28px; max-width: 320px; }

/* ── Recommendations ─────────────────────────────────────── */
.recs { columns: 2 360px; column-gap: 16px; }
.rec {
  break-inside: avoid; margin: 0 0 16px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px;
}
.rec__text p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; }
.rec__text p:last-child { margin-bottom: 0; }
.rec__who { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.rec__name { font: 400 1.35rem/1.1 var(--serif); }
.rec__role { font-size: 0.82rem; color: var(--ink-2); margin-top: 2px; }
.rec__meta { font: 500 0.64rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.recs__note { font-size: 0.85rem; color: var(--ink-3); margin: 8px 0 0; }

/* ── 4C framework ────────────────────────────────────────── */
.fw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fw-card { padding: clamp(24px, 3vw, 36px); background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; }
.fw-card__c { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.fw-card__n { font: 400 3.5rem/0.8 var(--serif); color: var(--accent); letter-spacing: -0.03em; }
.fw-card h3 { font: 400 1.9rem/1.05 var(--serif); letter-spacing: -0.015em; margin: 0 0 12px; }
.fw-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 720px) { .fw { grid-template-columns: 1fr; } }

/* ── Notes (articles) ────────────────────────────────────── */
.phero__title--article { font-size: clamp(2.4rem, 5.4vw, 4.5rem); line-height: 1; max-width: 22ch; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 58% 22%; background: var(--paper-2); }
.byline__name { display: block; font-weight: 500; }
.byline__meta { display: block; font-size: 0.85rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .byline__name:hover { color: var(--accent); } }

.article-prose h3 { font: 400 1.5rem/1.15 var(--serif); color: var(--ink); margin: 1.6em 0 0.6em; }
.article-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-prose ol li { padding: 6px 0 6px 6px; }
.article-prose ol li::marker { color: var(--accent); font: 500 0.85rem var(--mono); }
.prose ol li::before { content: none; }
.article-prose .note { padding: 14px 18px; background: var(--paper-2); border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0; font-size: 0.92rem; }
.article-prose a:not([class]) { color: var(--accent); border-bottom: 1px solid rgba(31,59,214,0.3); }
@media (hover: hover) and (pointer: fine) { .article-prose a:not([class]):hover { border-bottom-color: var(--accent); } }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.table-wrap th { text-align: left; font: 500 0.68rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table-wrap tr:last-child td { border-bottom: 0; }

.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; font: 400 1.35rem/1.25 var(--serif); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 1.3rem/1 var(--sans); color: var(--accent); flex-shrink: 0; transition: transform 200ms var(--ease-out); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: -4px 0 20px; color: var(--ink-2); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }

.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .note-grid { grid-template-columns: 1fr; } }
.note-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 30px); background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.note-card:active { transform: scale(0.99); }
.note-card__meta { display: flex; gap: 14px; }
.note-card__title { font: 400 1.6rem/1.1 var(--serif); letter-spacing: -0.01em; }
.note-card__desc { font-size: 0.9rem; color: var(--ink-2); flex: 1; }
.note-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; }
.note-card__more svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .note-card:hover { border-color: var(--ink); }
  .note-card:hover .note-card__more svg { transform: translateX(3px); }
}

/* ── 4C step sequence ────────────────────────────────────── */
.fc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fc-steps li { position: relative; padding: 20px 16px 0 0; font: 400 clamp(1.6rem, 3vw, 2.5rem)/1 var(--serif); letter-spacing: -0.015em; }
.fc-steps li .label { display: block; margin-bottom: 12px; color: var(--accent); }
.fc-steps li:not(:last-child)::after { content: "→"; position: absolute; right: 20px; bottom: 4px; font: 400 1.1rem/1 var(--sans); color: var(--ink-3); }
@media (max-width: 640px) { .fc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .fc-steps li:nth-child(2)::after { content: none; } }

/* ── Skills ──────────────────────────────────────────────── */
.skills { border-top: 1px solid var(--ink); }
.skills__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 16px 64px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.skills__row h3 { font: 400 1.5rem/1.1 var(--serif); margin: 0; }
@media (max-width: 720px) { .skills__row { grid-template-columns: 1fr; } }

/* ── Timeline ────────────────────────────────────────────── */
.tl { border-top: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-row__date { font: 500 0.78rem/1.5 var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }
.tl-row__role { font: 400 1.9rem/1.05 var(--serif); letter-spacing: -0.015em; margin: 0 0 4px; }
.tl-row__co { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 12px; }
.tl-row p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; } }

/* ── Status list (certifications) ────────────────────────── */
.status-list { border-top: 1px solid var(--ink); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.status-row__name { font: 400 1.6rem/1.1 var(--serif); }
.status-row__org { font-size: 0.85rem; color: var(--ink-3); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: #16804A; border-color: rgba(22,128,74,0.3); background: rgba(22,128,74,0.06); }
.pill--progress { color: var(--accent); border-color: rgba(31,59,214,0.3); background: rgba(31,59,214,0.05); }

/* ── CTA band ────────────────────────────────────────────── */
.band {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--night); color: #F4F2EE;
}
.band h2 { font: 400 clamp(2.25rem, 5vw, 3.75rem)/1 var(--serif); letter-spacing: -0.025em; margin: 0; max-width: 16ch; }
.band h2 em { color: #9DB0FF; }
.band .label { color: rgba(244,242,238,0.5); display: block; margin-bottom: 16px; }
.band .btn-line { border-color: rgba(255,255,255,0.22); color: #fff; }
@media (hover: hover) and (pointer: fine) { .band .btn-line:hover { border-color: #fff; } }
.band + .foot, .sec--last { margin-top: clamp(80px, 10vw, 128px); }

/* ── Work grid (all even) ────────────────────────────────── */
.work--even .work-card, .work--even .work-card:nth-child(n+3) { grid-column: span 3; min-height: 420px; }
.work--even .work-card:nth-child(n+3) .work-card__metric { font-size: clamp(3.5rem, 7vw, 6.5rem); }
@media (max-width: 900px) { .work--even .work-card, .work--even .work-card:nth-child(n+3) { grid-column: span 6; min-height: 0; } }

/* ── Resource groups ─────────────────────────────────────── */
.res-group + .res-group { margin-top: clamp(56px, 8vw, 96px); }
.res-group__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.res-group__hd h2 { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--serif); letter-spacing: -0.02em; margin: 0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.cinfo { border-top: 1px solid var(--ink); }
.cinfo-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cinfo-row__lbl { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cinfo-row__val { font-size: 1.02rem; overflow-wrap: anywhere; }
.cinfo-row__act { font-size: 0.85rem; color: var(--ink-3); }
a.cinfo-row, button.cinfo-row { width: 100%; text-align: left; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.cinfo-row:hover .cinfo-row__val, button.cinfo-row:hover .cinfo-row__val { color: var(--accent); } }
@media (max-width: 480px) { .cinfo-row { grid-template-columns: 1fr auto; } .cinfo-row__lbl { grid-column: 1 / -1; } }

.steps { margin-top: 48px; counter-reset: step; }
.steps .label { display: block; margin-bottom: 16px; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.step__n { font: 400 1.6rem/1 var(--serif); color: var(--accent); }
.step__title { font-weight: 500; margin-bottom: 4px; }
.step p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }

.form-card { scroll-margin-top: 80px; padding: clamp(24px, 4vw, 40px); background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; }
.form-card__hd { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px dashed var(--line-2); }
.form-card h2 { font: 400 2.25rem/1 var(--serif); letter-spacing: -0.02em; margin: 0 0 24px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 18px; }
.field__lbl { display: block; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
select.input { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input::placeholder { color: #A9A59D; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,59,214,0.14); }
.field__err { display: block; font-size: 0.8rem; color: #B42318; margin-top: 6px; }
.field__err:empty { display: none; }
.form-note { font-size: 0.8rem; color: var(--ink-3); text-align: center; margin: 12px 0 0; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.notice { padding: 20px 22px; border-radius: 16px; margin-bottom: 20px; }
.notice--ok { background: rgba(22,128,74,0.07); border: 1px solid rgba(22,128,74,0.25); }
.notice--ok strong { display: block; font: 400 1.6rem/1.1 var(--serif); margin-bottom: 4px; }
.notice--ok p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.notice--err { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-size: 0.88rem; }

/* ── Case study ──────────────────────────────────────────── */
.cs-result {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 48px; align-items: end;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--night); color: #F4F2EE;
}
.cs-result__metric { font: 400 clamp(4rem, 11vw, 9rem)/0.85 var(--serif); letter-spacing: -0.04em; }
.cs-result__metric--long { font-size: clamp(3rem, 6.5vw, 5.75rem); white-space: nowrap; }
.cs-result__cap { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,242,238,0.5); margin-bottom: 20px; display: block; }
.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.cs-meta div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.cs-meta dt { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,242,238,0.5); margin-bottom: 6px; }
.cs-meta dd { margin: 0; font-size: 0.95rem; }
@media (max-width: 760px) { .cs-result { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cs-meta { grid-template-columns: 1fr; } }

.cs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px 64px; }
.cs-toc { position: sticky; top: 88px; align-self: start; }
.cs-toc .label { display: block; margin-bottom: 14px; }
.cs-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cs-toc a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-3); transition: color 200ms ease; }
.cs-toc a span { font: 500 0.7rem/1.9 var(--mono); }
.cs-toc a.is-current, .cs-toc a:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cs-toc a:hover { color: var(--ink); } }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr; } .cs-toc { display: none; } }

.cs-sec { padding-bottom: clamp(40px, 6vw, 64px); scroll-margin-top: 88px; }
.cs-sec h2 { display: flex; align-items: baseline; gap: 16px; font: 400 clamp(2rem, 3.8vw, 2.9rem)/1.02 var(--serif); letter-spacing: -0.02em; margin: 0 0 20px; }
.cs-sec h2 span { font: 500 0.75rem/1 var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }

.outcome {
  position: relative; margin: 0 0 clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 40px); padding-right: clamp(24px, 12vw, 160px);
  border: 1px solid var(--ink); border-radius: 20px;
}
.outcome .label { display: block; margin-bottom: 14px; color: var(--accent); }
.outcome__text { font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--serif); letter-spacing: -0.01em; margin: 0; }
.outcome .stamp { right: clamp(16px, 3vw, 32px); top: 28px; bottom: auto; font-size: 0.85rem; }
@media (max-width: 560px) { .outcome { padding-right: 24px; padding-top: 72px; } }

.cs-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cs-nav a { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 20px; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.cs-nav a:active { transform: scale(0.99); }
.cs-nav a:last-child { text-align: right; }
.cs-nav__dir { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: block; }
.cs-nav__title { font: 400 1.5rem/1.1 var(--serif); letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .cs-nav a:hover { border-color: var(--ink); } }
@media (max-width: 560px) { .cs-nav { grid-template-columns: 1fr; } .cs-nav a:last-child { text-align: left; } }

/* project artefacts */
.artifact-list { border-top: 1px solid var(--ink); margin-top: 8px; }
.artifact-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.artifact-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.artifact-ico { flex: none; width: 44px; height: 52px; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--ink-3); }
.artifact-ico svg { width: 18px; height: 18px; }
.artifact-name { font: 400 1.3rem/1.15 var(--serif); color: var(--ink); }
.artifact-meta { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.artifact-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; color: var(--ink); font-family: var(--sans); line-height: 1; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.88rem; font-weight: 500; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.artifact-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .artifact-btn:hover { border-color: var(--ink); } }

/* PDF viewer (modal: stays centred) */
.pdf-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  background: rgba(15,15,16,0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.pdf-modal.open { opacity: 1; pointer-events: auto; }
.pdf-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); color: #fff; }
.pdf-modal__bar-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pdf-modal__title { font: 400 1.35rem/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-modal__badge { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.pdf-modal__close { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 1rem; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.pdf-modal__close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .pdf-modal__close:hover { background: rgba(255,255,255,0.18); } }
.pdf-modal__body {
  position: relative; flex: 1; margin: 0 var(--gutter) var(--gutter); border-radius: 12px; overflow: hidden; background: #fff;
  transform: scale(0.98); transition: transform 240ms var(--ease-out);
}
.pdf-modal.open .pdf-modal__body { transform: none; }
.pdf-modal__frame { width: 100%; height: 100%; border: 0; display: block; }
.pdf-modal__guard { position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pdf-modal__body { transform: none; transition: none; } }

/* ── Dock ────────────────────────────────────────────────── */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 8px;
  padding: 9px 10px 11px;
  border-radius: 24px;
}
/* the glass lives on its own layer so it can widen while tiles magnify */
.dock-bg {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(58, 58, 64, 0.56);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), inset 0 1px 0 rgba(255,255,255,0.3), 0 16px 36px -14px rgba(0,0,0,0.35);
}
/* Mac-style app tiles: translucent glass with a white two-tone glyph.
   Tile colours: --t1 (top) to --t2 (bottom), glyph --g. */
.dock-item {
  --t1: rgba(255,255,255,0.16); --t2: rgba(255,255,255,0.05); --g: #fff;
  position: relative; flex: none;
  width: 50px; height: 50px; border-radius: 12.5px;
  display: grid; place-items: center;
  color: var(--g);
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 1px 2px rgba(0,0,0,0.12),
    0 6px 12px -8px rgba(0,0,0,0.3);
  transform-origin: 50% 100%;
  will-change: transform;
  transition: filter 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
/* soft top light, like Big Sur icons */
.dock-item::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 55%);
}
.dock-item:active { filter: brightness(0.85); }
/* one translucent tile for every page; the current page is solid white */
.dock-item.is-active { --t1: #FFFFFF; --t2: #EDEDF0; --g: var(--ink); }
.dock-item.is-active .duo { fill-opacity: 0.12; }
.dock-item.is-active svg { filter: none; }

/* one icon grammar: 24px grid, 1.75 stroke, round joins, two-tone fill */
.dock-item svg {
  position: relative; width: 28px; height: 28px; pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.22)); /* keeps white glyphs legible over light pages */
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.dock-item .duo { fill: currentColor; fill-opacity: 0.22; }
.dock-item svg.brand { width: 26px; height: 26px; fill: currentColor; stroke: none; }
/* current page: a small dot under the tile, as on the Mac */
.dock-item.is-active::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.dock-sep { width: 1px; height: 38px; margin: 0 3px 6px; background: rgba(255,255,255,0.16); flex: none; }
.dock-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(20,20,22,0.92); color: #fff;
  font: 500 0.72rem/1 var(--sans); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px) scale(0.97); transform-origin: 50% 100%;
  transition: opacity 125ms ease-out, transform 125ms var(--ease-out);
  pointer-events: none;
}
.dock.is-warm .dock-tip { transition-duration: 0ms; } /* instant after the first tooltip */
.dock-item:focus-visible .dock-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .dock-item:hover .dock-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@media (max-width: 480px) {
  .dock { gap: 5px; padding: 7px 7px 9px; border-radius: 20px; bottom: 12px; }
  .dock-item { width: 40px; height: 40px; border-radius: 10px; }
  .dock-item svg { width: 23px; height: 23px; }
  .dock-item svg.brand { width: 21px; height: 21px; }
  .dock-sep { height: 30px; margin: 0 1px 5px; }
}

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 0.85rem;
  opacity: 0; transform: translate(-50%, 8px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Scroll reveal ───────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* ── Reduced motion / transparency / contrast ────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: opacity 300ms ease; }
  .quote__item { transform: none; filter: none; transition: opacity 200ms ease; }
  .btn:active, .icon-btn:active, .work-card:active { transform: none; }
  .svc-card { position: relative; top: auto; }
  .hero__photo img { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock-bg { background: #4A4A50; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #222; --ink-3: #444; --line: #999; --line-2: #666; }
}
