/* ==========================================================================
   The hub, in the language of the GTM explainer videos. A step rail is the
   navigation, the hero is the approved bio card, every section opens on one
   plain sentence, and the contact is the locked outro with one green button.
   Loads after site.css and live.css on index.html only, so anything here can
   override the base without touching the deep pages.

   Spacing sits on a 4px scale (--space-1 to --space-9). Radius: 16px for
   cards and frames (--radius), 8px for a picture inside a frame, 999px for
   pills. The one authored moment is the marker sweep on the hero line.
   ========================================================================== */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --gutter: 34px;     /* matches .wrap in site.css */
  --nav-h: 64px;
  --head: 40px;       /* the plain-sentence headlines */
}
@media (max-width: 899px) { :root { --head: 32px; } }
@media (max-width: 700px) { :root { --gutter: 20px; --head: 28px; } }
@media (max-width: 819px) { :root { --nav-h: 56px; } }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); }

/* ---------- the step rail ----------------------------------------------- */
/* Numbered pills as in the videos: lit is filled green, done is a green
   outline with a green number, upcoming is gray. site.js sets the states. */

.nav-in { height: var(--nav-h); gap: var(--space-5); }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; }

.rail {
  display: flex; align-items: center; gap: var(--space-2);
  list-style: none; margin: 0; padding: 0;
}
.rail li { flex: none; }

.step {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 36px; padding: 0 var(--space-4);
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text-3);
  font: 600 14px/1 var(--body); letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
/* The number sits concentric in the pill: (36 - 24) / 2 on every side. */
.step:has(.step-no) { padding-left: calc((36px - 24px) / 2); }
.step-no {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--line); color: var(--text-3);
  font: 600 12px/1 var(--body); font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* 36px to see, 46px to press (the inset counts from inside the border). */
a.step::after { content: ''; position: absolute; inset: -6px 0; }

.step.is-done { color: var(--accent); border-color: var(--accent-edge); background: var(--surface); }
.step.is-done .step-no { background: var(--accent); color: var(--surface); }
.step.is-on { color: var(--surface); border-color: var(--accent); background: var(--accent); }
.step.is-on .step-no { background: var(--surface); color: var(--accent); }

a.step:focus-visible { border-radius: 999px; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  a.step:hover { color: var(--text-hi); border-color: var(--accent-edge); }
  a.step.is-done:hover { color: var(--accent-deep); }
  a.step.is-on:hover { color: var(--surface); border-color: var(--accent-deep); background: var(--accent-deep); }
}

/* Below 820px the brand gives way and the rail runs edge to edge, scrolling
   sideways inside itself (never the page); the fades say there is more. */
@media (max-width: 819px) {
  .nav-brand { display: none; }
  .nav-in { padding: 0; }
  .rail {
    width: 100%; height: 100%;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .rail::-webkit-scrollbar { display: none; }
}

/* ---------- sections ---------------------------------------------------- */

.sec { padding: var(--space-9) 0 0; border-bottom: 0; scroll-margin-top: 0; }
#work.sec { padding-top: 0; scroll-margin-top: calc(var(--nav-h) + var(--space-5)); }
.bucket { scroll-margin-top: calc(var(--nav-h) + var(--space-5)); }
@media (max-width: 700px) {
  .sec { padding-top: var(--space-8); scroll-margin-top: var(--space-4); }
}

/* A section head: the sentence on the left, what it means on the right. */
.head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-4) var(--space-7);
  align-items: start;
  margin: 0 0 var(--space-7);
}
.head > h2 { font-size: var(--head); line-height: 1.1; margin: 0; }
.head-side { margin: 0; max-width: 62ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.head-side p { margin: 0; }
.head-side strong { color: var(--text); }
@media (max-width: 899px) {
  .head { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-6); }
}

/* The cover legend, in the light palette the covers now draw with. */
.legend { gap: var(--space-2) var(--space-4); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.legend li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--text-2);
}
.legend .lg { display: block; width: 16px; height: 3px; border-radius: 2px; }
/* The live path is drawn in each project's own color, so its key shows the
   three bucket colors side by side. */
.legend .lg--live { width: 24px; background: linear-gradient(90deg, var(--research) 0 33%, var(--fun) 33% 66%, var(--ent) 66% 100%); }
.lg--structure { background: #c5cbc3; }
.lg--done      { background: var(--sig-done); }
.lg--stopped   { background: var(--sig-issue); }
.lg--clarify   { background: var(--sig-clarify); }
.lg--question  { background: var(--sig-note); }

/* ---------- hero: the bio card ------------------------------------------ */

.id { padding: var(--space-5) 0 var(--space-7); border-bottom: 0; }
/* The photo sits beside the card, the line and the bio, and is sized to
   end with the bio; the buttons run underneath. The 24px gutter is the
   same as between cards, so the name card and the frame read as a pair. */
.id-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "card  photo"
    "line  photo"
    "bio   photo"
    "links links";
  gap: 0 var(--space-5);
  align-items: start;
}

.id-card {
  grid-area: card;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5) var(--space-6);
}
.id-name {
  font-family: var(--display);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-4);
}
.id-creds { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.id-creds li {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--accent); color: var(--surface);
  font: 600 14px/1.2 var(--body); letter-spacing: -0.005em;
}

.id-line {
  grid-area: line;
  margin: var(--space-5) 0 0;
  font-family: var(--display);
  /* 46px lines: when the line wraps, the phrase links stack with their
     targets (at least 44px) side by side, never overlapping. */
  font-size: 26px; font-weight: 600; line-height: 46px; letter-spacing: -0.02em;
  color: var(--text-hi);
  text-wrap: balance;
}

/* The marker from the videos: a pale green highlighter that sweeps under
   each bucket once on first load, in turn. Each phrase is a link to its
   bucket. With reduced motion, or with no animation at all, the highlight
   is simply there. */
.mk {
  --mk: var(--marker);
  position: relative;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: none;
  padding: 0 var(--space-1);
  border-radius: 6px;
  background-image: linear-gradient(var(--mk), var(--mk));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  transition: color 0.15s ease;
  animation: mk-sweep 450ms var(--ease-out) both;
}
.mk:nth-of-type(1) { animation-delay: 300ms; }
.mk:nth-of-type(2) { animation-delay: 1000ms; }
.mk:nth-of-type(3) { animation-delay: 1700ms; }
@keyframes mk-sweep { from { background-size: 0% 100%; } }
/* The phrase box is about 1.3em tall; this grows its target to fill the
   46px line exactly, and no further. */
.mk::after { content: ''; position: absolute; inset: calc((1.3em - 46px) / 2) -2px; }
.mk:focus-visible { border-radius: 6px; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .mk:hover { --mk: var(--accent-edge); color: var(--accent-deep); }
}
@media (prefers-reduced-motion: reduce) {
  .mk { animation: none; }
}

.id-bio {
  grid-area: bio;
  margin: var(--space-4) 0 0;
  max-width: 64ch;
  font-size: 17px;
  color: var(--text-2);
}
.id-links { grid-area: links; margin-top: var(--space-5); gap: var(--space-2); }

/* The desk photo is 3:4 and stays whole: the box is the picture's own
   shape, so nothing is ever cropped. */
.id-photo {
  grid-area: photo;
  position: relative;
  margin: 0;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.id-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 8px; }
.id-photo figcaption {
  position: absolute; top: var(--space-5); left: var(--space-5);
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--accent); color: var(--surface);
  font: 600 13px/1 var(--body); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(17, 24, 20, 0.16);
}

@media (max-width: 979px) {
  .id-in { grid-template-columns: minmax(0, 1fr) 232px; column-gap: var(--space-6); }
  .id-line { font-size: 24px; }
}

/* Phones: the card and the line lead, then the photo sits beside the
   buttons so the work starts sooner. */
@media (max-width: 719px) {
  .id { padding: var(--space-5) 0 var(--space-7); }
  .id-in {
    grid-template-columns: 184px minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "card  card"
      "line  line"
      "bio   bio"
      "photo links";
    column-gap: var(--space-3);
  }
  .id-card { padding: var(--space-4); }
  .id-name { font-size: clamp(32px, 9vw, 40px); margin-bottom: var(--space-3); }
  .id-creds li { font-size: 13px; padding: var(--space-1) var(--space-3); min-height: 30px; }
  .id-line { font-size: 23px; margin-top: var(--space-5); }
  .id-bio { font-size: 16px; margin-top: var(--space-3); }
  .id-photo { margin-top: var(--space-5); }
  .id-photo figcaption { top: var(--space-4); left: var(--space-4); padding: 0 var(--space-2); font-size: 12px; min-height: 26px; }
  .id-links { flex-direction: column; flex-wrap: nowrap; align-self: end; margin-top: 0; }
  .id-links .btn { width: 100%; padding: 0 var(--space-3); font-size: 14px; }
}
/* The narrowest phones stack everything. */
@media (max-width: 359px) {
  .id-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "line" "bio" "links" "photo"; }
  .id-links { flex-direction: row; flex-wrap: wrap; margin-top: var(--space-5); }
  .id-links .btn { width: auto; }
  .id-photo { max-width: 240px; }
}

/* ---------- buckets ----------------------------------------------------- */

/* Buckets touch end to end (space is padding, not margin) so the rail
   always has exactly one section under its line. */
.bucket { margin-top: 0; padding-bottom: var(--space-9); }
.bucket:last-child { padding-bottom: 0; }
/* The meaning sits beside the headline and ends on its last line. */
.bucket-head { border-top: 0; padding: 0; margin-bottom: var(--space-5); align-items: end; }
.bucket-head .bucket-title {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
  margin: 0;
  font-family: var(--display); font-size: var(--head); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.035em;
}
.bucket-line { display: block; }
.bucket-def { font-size: 16px; max-width: 62ch; }
@media (max-width: 700px) {
  .bucket { padding-bottom: var(--space-8); }
  .bucket:last-child { padding-bottom: 0; }
}

/* ---------- cards ------------------------------------------------------- */
/* One link per card, on the title; its ::after stretches over the whole
   card so the card stays one big target with a short link name. */

.work { gap: var(--space-5); }
@media (max-width: 820px) { .work { gap: var(--space-4); } }

.wk { position: relative; }
.wk-body { padding: var(--space-5); }
.wk-top { margin-bottom: var(--space-3); }
.wk h4 { margin-bottom: var(--space-2); }
.wk-desc { font-size: 16px; margin-bottom: var(--space-4); }
.wk-meta { padding-top: var(--space-4); gap: var(--space-2) var(--space-4); }

.wk-link, .card-link { color: inherit; text-decoration: none; }
.wk-link::after, .card-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius);
}
.wk:has(.wk-link:focus-visible), .card:has(.card-link:focus-visible) {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.wk:has(.wk-link:focus-visible) .wk-link, .card:has(.card-link:focus-visible) .card-link { outline: none; }

.wk:has(.wk-link):active, .card:has(.card-link):active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}
@media (hover: hover) and (pointer: fine) {
  .wk:has(.wk-link):hover, .card:has(.card-link):hover {
    border-color: var(--accent-edge); box-shadow: var(--shadow-lift); transform: translateY(-4px);
  }
  .wk:has(.wk-link):active, .card:has(.card-link):active { transform: translateY(-4px) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .wk, .card { transform: none !important; }
}

/* Wide cards run the full row, cover beside the copy; the closing wide card
   of a bucket turns the other way, so each bucket reads wide, pair, wide. */
@media (min-width: 821px) {
  .wk--wide .wk-sch { flex: 0 0 58%; }
  .wk--wide .wk-body { padding: var(--space-6); }
  .wk--flip { flex-direction: row-reverse; }
  .wk--flip .wk-sch { border-right: 0; border-left: 1px solid var(--line); }
}

/* ---------- writing ----------------------------------------------------- */

.grid--3 { gap: var(--space-5); }
.card {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
.card-top { margin-bottom: var(--space-3); }
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: 16px; }
.card-kicker, .card p.card-kicker { font-size: 12px; }
.card-foot { padding-top: var(--space-4); }
/* Not a link, so it does not look like one: no green, no arrow. */
.card--soon { background: var(--surface-2); box-shadow: none; }
.card-soon { font: 500 13px/1.4 var(--body); color: var(--text-3); }

/* ---------- contact: the outro ------------------------------------------ */

.outro { padding-bottom: var(--space-9); }
.outro-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: center;
}
.outro h2 {
  font-size: 64px; line-height: 1.02; letter-spacing: -0.04em;
  max-width: 12ch; margin: 0 0 var(--space-5);
}
.outro-main > p { color: var(--text-2); max-width: 52ch; margin: 0 0 var(--space-6); }
.outro-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.outro-mail { font-family: var(--mono); font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }

.outro-links {
  list-style: none; margin: 0; padding: var(--space-2) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.outro-links li {
  display: grid; grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0;
}
.outro-links li + li { border-top: 1px solid var(--line); }
.outro-links .btn { width: 100%; padding: 0 var(--space-4); }
.outro-links p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 899px) {
  .outro-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .outro h2 { font-size: 48px; }
}
@media (max-width: 700px) {
  .outro { padding-bottom: var(--space-8); }
  .outro h2 { font-size: 40px; }
  .outro-links { padding: var(--space-1) var(--space-4); }
  .outro-links li { grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-3); }
}

/* ---------- footer ------------------------------------------------------ */

.foot { border-top: 1px solid var(--line); padding: var(--space-6) 0 var(--space-8); }
.foot-in { gap: var(--space-4) var(--space-5); align-items: center; }
.foot-links { gap: var(--space-1) var(--space-5); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot-note { font-size: 12px; margin: 0; }

/* ---------- the video player -------------------------------------------- */
/* Enters with a fade and a small scale from 0.96, leaves faster; with
   reduced motion only the fade stays. The embed exists only while open. */

html.vid-lock { overflow: hidden; scrollbar-gutter: stable; }

.vid {
  width: min(960px, calc(100vw - 32px), calc((100vh - 160px) * 16 / 9));
  width: min(960px, calc(100vw - 32px), calc((100dvh - 160px) * 16 / 9));
  max-width: none; max-height: none;
  padding: 0; border: 0;
  border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 2px 4px rgba(17, 24, 20, 0.08), 0 24px 64px rgba(17, 24, 20, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.vid.is-in { opacity: 1; transform: none; transition-duration: 220ms; }
.vid::backdrop { background: rgba(18, 21, 19, 0.72); opacity: 0; transition: opacity 150ms ease; }
.vid.is-in::backdrop { opacity: 1; transition-duration: 220ms; }

.vid-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
}
.vid-title { margin: 0; min-width: 0; font: 650 17px/1.3 var(--body); letter-spacing: -0.01em; color: var(--text-hi); }
.vid-close {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s var(--ease-out);
}
.vid-close svg { width: 20px; height: 20px; }
.vid-close:active { transform: scale(0.97); }
.vid-close:focus-visible { border-radius: 999px; outline-offset: 0; }
@media (hover: hover) and (pointer: fine) {
  .vid-close:hover { background: var(--surface-2); color: var(--text-hi); }
}
.vid-frame { aspect-ratio: 16 / 9; background: var(--text-hi); }
.vid-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vid-foot { display: flex; justify-content: flex-end; padding: var(--space-3) var(--space-4); }

/* Shorts are vertical: a 9:16 frame, as tall as the window allows. */
.vid--short { width: fit-content; }
.vid--short .vid-frame {
  width: min(360px, calc(100vw - 32px), calc((100vh - 160px) * 9 / 16));
  width: min(360px, calc(100vw - 32px), calc((100dvh - 160px) * 9 / 16));
  aspect-ratio: 9 / 16;
}

@media (prefers-reduced-motion: reduce) {
  .vid, .vid.is-in { transform: none; transition-property: opacity; }
  .vid { transition-duration: 150ms !important; }
  .vid.is-in { transition-duration: 220ms !important; }
}

/* ==========================================================================
   Color and structure (Nov 7 revision). Joseph: "everything blends into one
   another, there's no structure, no color differentiation between projects
   or sections". So each bucket is its own zone, opened by a solid banner in
   the bucket's color on a band of its tint, and every project carries its
   own color (site.css, "project colors"). The page closes on a dark band.
   ========================================================================== */

:root {
  --research: #2d5bbf; --research-band: #e4ecfa;
  --fun:      #b5461c; --fun-band:      #fae6db;
  --ent:      #0e6b4b; --ent-band:      #dff0e6;
  --ink-band: #121513;
}

/* ---------- the rail takes the color of the zone it points at ----------- */
.rail .step { --sc: var(--text-hi); }
.rail .step[href="#research"]        { --sc: var(--research); }
.rail .step[href="#fun"]             { --sc: var(--fun); }
.rail .step[href="#entrepreneurial"] { --sc: var(--ent); }
.rail .step.is-done { color: var(--sc); border-color: color-mix(in srgb, var(--sc) 35%, #ffffff); }
.rail .step.is-done .step-no { background: var(--sc); color: var(--surface); }
.rail .step.is-on { color: var(--surface); border-color: var(--sc); background: var(--sc); }
.rail .step.is-on .step-no { background: var(--surface); color: var(--sc); }
@media (hover: hover) and (pointer: fine) {
  .rail a.step:hover { border-color: color-mix(in srgb, var(--sc) 45%, #ffffff); }
  .rail a.step.is-done:hover { color: var(--sc); }
  .rail a.step.is-on:hover { background: color-mix(in srgb, var(--sc) 85%, #000000); border-color: transparent; }
}

/* ---------- hero: each phrase in the color of its bucket ----------------- */
.mk[href="#research"]        { color: var(--research); --mk: var(--research-band); }
.mk[href="#entrepreneurial"] { color: var(--ent);      --mk: var(--ent-band); }
.mk[href="#fun"]             { color: var(--fun);      --mk: var(--fun-band); }
@media (hover: hover) and (pointer: fine) {
  .mk:hover { --mk: color-mix(in srgb, currentColor 22%, #ffffff); color: inherit; }
}

/* ---------- buckets: a band of the bucket's tint, opened by a banner ----- */
/* The band runs edge to edge (a shadow the size of the viewport, clipped at
   the band's own top and bottom), so the content keeps the page's columns. */
.bucket { --bc: var(--research); --bc-band: var(--research-band); }
#fun { --bc: var(--fun); --bc-band: var(--fun-band); }
#entrepreneurial { --bc: var(--ent); --bc-band: var(--ent-band); }
.bucket, .bucket:last-child {
  background: var(--bc-band);
  box-shadow: 0 0 0 100vmax var(--bc-band);
  clip-path: inset(0 -100vmax);
  padding: var(--space-8) 0 var(--space-9);
}
#research { margin-top: var(--space-4); }

.bucket-head {
  position: relative;
  background: var(--bc);
  color: #ffffff;
  border-radius: 24px;
  padding: var(--space-7);
  margin: 0 0 var(--space-6);
  align-items: end;
}
.bucket-head .bucket-title { color: #ffffff; font-size: 44px; }
.bucket-head .bucket-def { color: rgba(255, 255, 255, 0.92); }
.bucket-head .step,
.bucket-head .step.is-on { color: var(--bc); background: #ffffff; border-color: #ffffff; }
.bucket-head .step .step-no,
.bucket-head .step.is-on .step-no { background: var(--bc); color: #ffffff; }
@media (max-width: 899px) { .bucket-head .bucket-title { font-size: 34px; } }
@media (max-width: 700px) {
  .bucket, .bucket:last-child { padding: var(--space-7) 0 var(--space-8); }
  .bucket-head { padding: var(--space-6) var(--space-5); border-radius: 20px; }
  .bucket-head .bucket-title { font-size: 28px; }
}

/* ---------- cards carry their project's color ---------------------------- */
.wk { border-color: #dde1da; }
.wk-kicker { color: var(--pc-ink, var(--accent)); }
.wk-more { color: var(--pc-ink, var(--accent)); }
.wk:has(.wk-link:focus-visible) { outline-color: var(--pc, var(--accent)); }
@media (hover: hover) and (pointer: fine) {
  .wk:has(.wk-link):hover { border-color: var(--pc-edge, var(--accent-edge)); }
  .wk:has(.wk-link):hover .wk-link { color: var(--pc-ink); }
}
@media (min-width: 821px) {
  .wk--wide .wk-sch { border-right-color: color-mix(in srgb, var(--pc) 20%, #e1e4df); }
  .wk--flip .wk-sch { border-left-color: color-mix(in srgb, var(--pc) 20%, #e1e4df); }
}
.wk-sch { border-bottom-color: color-mix(in srgb, var(--pc, #e1e4df) 20%, #e1e4df); }

/* ---------- the close: contact and footer on one dark band --------------- */
.outro, .foot {
  background: var(--ink-band);
  box-shadow: 0 0 0 100vmax var(--ink-band);
  clip-path: inset(0 -100vmax);
  color: #dfe3dd;
}
.outro { margin-top: var(--space-9); padding: var(--space-9) 0 var(--space-8); }
.outro h2 { color: #fbfbfa; }
.outro-main > p, .outro-mail { color: #b4bbb5; }
.outro .btn--solid { background: #12935f; color: #ffffff; }
.outro-links { background: #1a1e1b; border-color: #2b312c; box-shadow: none; }
.outro-links li + li { border-top-color: #2b312c; }
.outro-links p { color: #b4bbb5; }
.outro-links .btn--ghost { background: transparent; border-color: #3a413b; color: #fbfbfa; }
@media (hover: hover) and (pointer: fine) {
  .outro .btn--solid:hover { background: #0f7a55; }
  .outro-links .btn--ghost:hover { background: #232824; border-color: #4d564f; color: #ffffff; }
}
.foot { border-top: 1px solid #2b312c; padding-top: var(--space-6); }
.foot-links a { color: #c9cfc9; }
.foot-note { color: #8f978f; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: #ffffff; } }
.outro :focus-visible, .foot :focus-visible { outline-color: #5fd3a2; }

/* ---------- motion: things arrive the way they do in the videos ----------- */
/* Content is visible by default: site.js only arms a card or banner while it
   is still offscreen, then lets it land as it scrolls in. The hero's pills
   land once on load. Reduced motion skips all of it. */
.rise-armed { opacity: 0; transform: translateY(32px) scale(0.985); }
.rise-in {
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--rise-delay, 0ms);
}
.bucket-head.wipe-armed { clip-path: inset(0 100% 0 0 round 24px); }
.bucket-head.wipe-in { clip-path: inset(0 0 0 0 round 24px); transition: clip-path 750ms var(--ease-in-out); }
.bucket-line .w { display: inline-block; }
.bucket-head.wipe-armed .bucket-line .w { opacity: 0; transform: translateY(0.45em); }
.bucket-head.wipe-in .bucket-line .w {
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: calc(320ms + var(--i) * 65ms);
}
.id-creds li, .id-photo, .id-card { animation: land 560ms var(--ease-out) both; }
.id-card { animation-delay: 0ms; }
.id-creds li { animation-name: pop-in; animation-duration: 420ms; animation-delay: calc(260ms + var(--i, 0) * 90ms); }
.id-creds li:nth-child(2) { --i: 1; }
.id-creds li:nth-child(3) { --i: 2; }
.id-creds li:nth-child(4) { --i: 3; }
.id-creds li:nth-child(5) { --i: 4; }
.id-photo { animation-delay: 380ms; }
/* Movement only, no fade: if the animation never runs, nothing is hidden. */
@keyframes land { from { transform: translateY(18px); } }
@keyframes pop-in { from { transform: scale(0.84); } }
html.live-still *, html.live-still *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rise-armed, .bucket-head.wipe-armed, .bucket-head.wipe-armed .bucket-line .w { opacity: 1; transform: none; clip-path: none; }
  .id-creds li, .id-photo, .id-card { animation: none; }
}
@media print {
  .rise-armed, .bucket-head.wipe-armed, .bucket-head.wipe-armed .bucket-line .w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- sections open the way a video page does (Nov 7 evening) ------- */
/* Joseph called the colored banners and tinted bands "vibe code". Each bucket
   now opens like a page in the GTM explainer videos: its rail pill in the
   bucket's color, one plain sentence at display size, the meaning beside it,
   and a hairline and space between buckets. Color lives in the rail and in
   each project's own scene. */
.bucket, .bucket:last-child {
  background: transparent; box-shadow: none; clip-path: none;
  border-top: 1px solid var(--line);
  padding: var(--space-9) 0;
}
#research { margin-top: var(--space-6); }
.bucket-head { background: none; color: inherit; border-radius: 0; padding: 0 0 var(--space-2); margin-bottom: var(--space-7); }
.bucket-head .bucket-title { color: var(--text-hi); font-size: 52px; letter-spacing: -0.04em; }
.bucket-head .bucket-def { color: var(--text-2); }
.bucket-head .step,
.bucket-head .step.is-on { background: var(--bc); color: #ffffff; border-color: var(--bc); }
.bucket-head .step .step-no,
.bucket-head .step.is-on .step-no { background: #ffffff; color: var(--bc); }
.bucket-head.wipe-armed, .bucket-head.wipe-in { clip-path: none; }
@media (max-width: 899px) { .bucket-head .bucket-title { font-size: 36px; } }
@media (max-width: 700px) {
  .bucket, .bucket:last-child { padding: var(--space-8) 0; }
  .bucket-head { margin-bottom: var(--space-6); }
  .bucket-head .bucket-title { font-size: 30px; }
}

/* Every project is one row, like a slide in the videos: the scene carries it
   at about 62% of the width, the words sit beside it, and the sides
   alternate down each bucket. */
@media (min-width: 821px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .work > .wk { flex-direction: row; }
  .work > .wk .wk-sch {
    flex: 0 0 62%; aspect-ratio: auto; min-height: 400px;
    border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--pc, #e1e4df) 20%, #e1e4df);
  }
  .work > .wk:nth-child(even) { flex-direction: row-reverse; }
  .work > .wk:nth-child(even) .wk-sch { border-right: 0; border-left: 1px solid color-mix(in srgb, var(--pc, #e1e4df) 20%, #e1e4df); }
  .work > .wk .wk-body { padding: var(--space-6); justify-content: center; }
  .work > .wk h4 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: var(--space-3); }
}

/* ---------- the name card's facts (Nov 7 evening) ------------------------- */
/* Joseph asked for the five solid green capsules to go. The facts now read
   the way the video cards label things: a small mono label in green over a
   plain bold line, in a quiet grid, and the photo's label is a white tag. */
.id-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content));
  gap: var(--space-4) var(--space-7);
  margin: var(--space-2) 0 0; padding: var(--space-4) 0 0;
  border-top: 1px solid var(--line);
}
.id-facts div { min-width: 0; }
.id-facts dt { font: 500 13px/1.3 var(--mono); color: var(--accent); margin: 0 0 var(--space-1); }
.id-facts dd { margin: 0; font: 600 16px/1.35 var(--body); letter-spacing: -0.01em; color: var(--text-hi); }
.id-facts > div { animation: land 520ms var(--ease-out) both; animation-delay: calc(240ms + var(--i, 0) * 80ms); }
.id-facts > div:nth-child(2) { --i: 1; }
.id-facts > div:nth-child(3) { --i: 2; }
.id-facts > div:nth-child(4) { --i: 3; }
.id-facts > div:nth-child(5) { --i: 4; }
@media (max-width: 979px) { .id-facts { grid-template-columns: repeat(2, minmax(0, max-content)); } }
@media (max-width: 719px) {
  .id-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); }
  .id-facts dd { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .id-facts > div { animation: none; } }

.id-photo figcaption {
  background: rgba(253, 253, 252, 0.94); color: var(--text-hi);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(17, 24, 20, 0.12);
}
