/* ---------------------------------------------------------------------------
   Welcome / splash page (PROTOTYPE, 2026-09-23). Not linked from the site yet.
   Background: canvas "signal streams" (js/welcome.js). Text never relies on it:
   the canvas is dimmed behind the copy column, and there's a Pause control (WCAG 2.2.2).
   --------------------------------------------------------------------------- */
.welcome-top { position: absolute; inset: 0 0 auto; z-index: 3; }
.welcome-top .site-header__inner { justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.welcome-top .site-header__inner > .welcome-top__skip { margin-left: auto; }
.welcome-top .brand { font-size: 1.05rem; }
.welcome-top__skip { font-weight: 600; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; }
.welcome-top__skip:hover { color: var(--text-primary); text-decoration: underline; }

body[data-module="welcome"] { --mod: var(--m0); }   /* buttons and accents follow the hub teal */
:root { --w-gutter: max(1.25rem, calc((100vw - 1100px) / 2 + 1.25rem)); }

/* ---- Hero ---- */
.w-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px);
  display: grid; align-items: center;
  padding: 6rem var(--w-gutter) 5rem;
}
.w-hero__canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block;
  /* Dim the streams behind the copy column so they never compete with the text */
  mask-image: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.14) 52%, #000 82%);
}
.w-hero::after {   /* soft aurora wash under everything */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(in oklab ellipse 55% 60% at 82% 30%, color-mix(in srgb, var(--m2) 14%, transparent), transparent 70%),
    radial-gradient(in oklab ellipse 45% 55% at 95% 95%, color-mix(in srgb, var(--m0) 12%, transparent), transparent 70%),
    radial-gradient(in oklab ellipse 40% 50% at 5% 100%, color-mix(in srgb, var(--m1) 9%, transparent), transparent 70%),
    var(--bg-base);
}
.w-hero__copy { max-width: 50rem; }
.w-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary);
}
.w-eyebrow::before { content: ""; width: 1.75rem; height: 2px; border-radius: 2px; background: var(--theme-gradient); }
.w-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.08; text-wrap: balance; letter-spacing: -0.03em; margin: 0 0 1.25rem;
}
.w-hero h1 .w-accent {
  background: var(--theme-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w-lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--text-secondary); margin: 0 0 2rem; max-width: 40rem; }
.w-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-bottom: 2.25rem; }
.w-ctas .btn { padding: 0.8rem 1.35rem; font-size: 1.02rem; }
.w-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.w-facts li {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(6px);
}
.w-motion {
  position: absolute; right: var(--w-gutter); bottom: 1.25rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  padding: 0.35rem 0.75rem; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--bg-raised) 85%, transparent); border: 1px solid var(--border-strong);
}
.w-motion:hover { color: var(--text-primary); }
.w-motion[hidden] { display: none; }

/* Gentle entrance (skipped with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .w-rise { opacity: 0; transform: translateY(12px); animation: w-rise 700ms cubic-bezier(.2,.7,.2,1) forwards; }
  .w-rise:nth-child(2) { animation-delay: 80ms; } .w-rise:nth-child(3) { animation-delay: 160ms; }
  .w-rise:nth-child(4) { animation-delay: 240ms; } .w-rise:nth-child(5) { animation-delay: 320ms; }
  @keyframes w-rise { to { opacity: 1; transform: none; } }
}

/* ---- Sections ---- */
.w-section { padding: 5rem var(--w-gutter); }
.w-section--tint { background: color-mix(in srgb, var(--m2) 4%, var(--bg-base)); border-block: 1px solid var(--border-subtle); }
.w-section h2, .w-close h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; max-width: 30ch; }
.w-section__intro { color: var(--text-secondary); font-size: 1.08rem; max-width: 42rem; margin: 0 0 2.5rem; }

.w-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.w-card {
  position: relative; padding: 1.35rem 1.35rem 1.45rem; border-radius: 16px;
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
}
.w-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--c) 12%, var(--bg-raised));
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border-subtle));
}
.w-card__icon svg { width: 22px; height: 22px; stroke: var(--c); }
.w-card h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.w-card p { margin: 0; color: var(--text-secondary); line-height: 1.55; }

.w-steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.w-steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.w-steps li::before {
  content: counter(step) / ""; position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-heading, var(--font-sans)); font-weight: 700; color: var(--text-primary);
  background: var(--bg-raised); border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-raised), var(--bg-raised)), var(--theme-gradient);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.w-steps h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.w-steps p { margin: 0; color: var(--text-secondary); line-height: 1.55; }

.w-close { text-align: center; padding: 5.5rem var(--w-gutter) 4.5rem; }
.w-close h2 { margin-inline: auto; }
.w-close .w-section__intro { margin-inline: auto; }
.w-close .w-ctas { justify-content: center; margin-bottom: 0; }

.w-footer { padding: 2rem var(--w-gutter) 2.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border-subtle); }
.w-footer p { margin: 0.3rem 0; }

@media (max-width: 640px) {
  .w-hero { padding-top: 8.5rem; }   /* the top bar wraps to two rows on phones */
  .w-hero__canvas { mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,.12) 100%); }
  .w-section { padding-block: 3.5rem; }
}
@media print { .w-hero__canvas, .w-motion { display: none; } }
/* AA over the hero's color wash: the secondary CTA uses the main text color here */
.w-hero .btn--ghost { color: var(--text-primary); }
.w-hero .btn--ghost:hover { color: var(--text-primary); text-decoration: underline; }

/* Two-weight headline: a quieter set-up line, then the line that lands */
.w-hero h1 .w-setup { display: block; font-size: 0.52em; line-height: 1.25; letter-spacing: -0.015em; color: var(--text-primary); margin-bottom: 0.35em; }
.w-hero h1 .w-accent {   /* gradient text is painted only inside its box: pad it so descenders (the g in "hiring") aren't clipped */
  display: block; padding: 0.04em 0.06em 0.18em 0; margin: -0.04em -0.06em -0.18em 0;
}
.w-hero h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.2rem); }

/* ---- "See it in 50 seconds": click-to-load Vimeo tour (2026-09-24) ---- */
.w-tour { padding-top: 4rem; }
.w-video {
  position: relative; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--m2) 45%, transparent);
}
.w-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-video__play {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: none; font: inherit; color: inherit; display: block;
}
.w-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease, filter 400ms ease; }
.w-video__play::after {   /* soft scrim so the label always sits on a dark, even background */
  content: ""; position: absolute; inset: auto 0 0; height: 35%;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.35), transparent);
}
.w-video__badge {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--theme-gradient); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  transition: scale 200ms ease;
}
.w-video__badge svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.w-video__label {   /* solid dark pill: white text stays well above 4.5:1 on any poster */
  position: absolute; left: 1rem; bottom: 1rem; right: auto; max-width: calc(100% - 2rem); z-index: 1; text-align: left;
  color: #fff; font-weight: 700; font-size: 1.02rem; line-height: 1.35;
  padding: 0.5rem 0.85rem; border-radius: 10px; background: rgba(12, 14, 22, 0.86);
}
.w-video__meta { font-weight: 500; opacity: 0.92; }
.w-video__play:hover .w-video__badge { scale: 1.06; }
.w-video__play:focus-visible { outline: 3px solid var(--focus, var(--mod)); outline-offset: -3px; }
.w-video__play:focus-visible .w-video__badge { scale: 1.06; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--text-primary); }
@media (prefers-reduced-motion: reduce) { .w-video__play img, .w-video__badge { transition: none; } }

.w-transcript { max-width: 960px; margin-top: 1rem; }
.w-transcript summary { cursor: pointer; font-weight: 600; color: var(--text-primary); padding: 0.4rem 0; width: fit-content; }
.w-transcript summary:hover { text-decoration: underline; }
.w-transcript__body { padding: 0.5rem 0 0.25rem; color: var(--text-secondary); line-height: 1.6; max-width: 46rem; }
.w-transcript__body p { margin: 0 0 0.6rem; }
.w-transcript__body strong { color: var(--text-primary); }
@media (max-width: 640px) {
  .w-video__badge { width: 64px; height: 64px; }
  .w-video__badge svg { width: 26px; height: 26px; }
  .w-video__label { font-size: 0.9rem; bottom: 0.6rem; left: 0.6rem; max-width: calc(100% - 1.2rem); }
  .w-video__meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* still read by screen readers */
}
@media print { .w-video { display: none; } }

/* ---- 404 page (2026-09-24): reuses the welcome header, type and buttons ---- */
.nf { min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(in oklab ellipse 55% 60% at 85% 20%, color-mix(in srgb, var(--m2) 12%, transparent), transparent 70%),
    radial-gradient(in oklab ellipse 45% 55% at 5% 100%, color-mix(in srgb, var(--m0) 10%, transparent), transparent 70%),
    var(--bg-base); }
.nf .welcome-top { position: static; }
.nf__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3rem var(--w-gutter) 5rem; max-width: calc(44rem + 2 * var(--w-gutter)); }
.nf__main h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; }
.nf__main .w-ctas { margin-bottom: 0; }

/* ---- About the designer (2026-09-24) ---- */
.about .welcome-top { position: static; }
.about-hero {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: 2.5rem var(--w-gutter) 4rem;
  background:
    radial-gradient(in oklab ellipse 55% 60% at 85% 15%, color-mix(in srgb, var(--m2) 12%, transparent), transparent 70%),
    radial-gradient(in oklab ellipse 38% 55% at 0% 45%, color-mix(in srgb, var(--m0) 9%, transparent), transparent 70%);
  /* glows stay clear of the bottom edge so the hero hands off to the first ribbon without a seam */
}
.about-hero__photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 22px 50px -26px color-mix(in srgb, var(--m2) 55%, transparent);
}
.about-hero h1 {
  /* Name in Newsreader (Jeff's pick). Most serifs let the two f crossbars touch, so a hairline
     gap (.ff-gap) keeps them apart; screen readers get the plain name from a visually hidden copy. */
  font-family: "Newsreader", Georgia, serif; font-weight: 500; font-optical-sizing: none; font-variation-settings: "opsz" 72;
  font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "calt" 0;
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 3.8rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 0.6rem;
}
.about-hero h1 .ff-gap { margin-left: 0.035em; }
.about-hero__role { font-weight: 600; color: var(--text-primary); margin: 0 0 1.1rem; font-size: 1.05rem; line-height: 1.45; }
.about-hero .w-lede { margin-bottom: 0; }
.about-prose { max-width: 44rem; font-size: 1.08rem; line-height: 1.7; color: var(--text-secondary); }
.about-prose p { margin: 0 0 1.1rem; }
.about-sub { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.about-list { margin: 0; padding-left: 1.2rem; color: var(--text-secondary); line-height: 1.7; }
.about-list strong { color: var(--text-primary); }
.about-body { padding-block: 4rem; }
@media (max-width: 700px) {
  .about-hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .about-hero__photo { max-width: 220px; }
}
.about-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.about-links .btn { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.about-links__meta { font-weight: 500; opacity: 0.92; }
@media (max-width: 480px) { .about-links__meta { display: none; } }

/* ---- About page: "conductor's line" separators (2026-09-24) ----
   Section colors blend (no hard edges); three ribbons trace real conducting beat patterns
   (2-beat downbeat, 3-beat loop, rising upbeat) in the violet -> teal brand gradient. Decorative only. */
.about { --a-base: var(--bg-base); --a-tint: color-mix(in srgb, var(--m2) 4%, var(--bg-base)); }
.about .w-section--tint { background: var(--a-tint); border-block: 0; }
.about .about-body, .about .w-section--tint { padding-block: 2.5rem; }
.about .about-hero { padding-bottom: 1.5rem; }
.a-sep { position: relative; height: clamp(84px, 9vw, 130px); pointer-events: none; }
.a-sep[data-from="base"][data-to="base"] { background: var(--a-base); }
.a-sep[data-from="base"][data-to="tint"] { background: linear-gradient(var(--a-base), var(--a-tint)); }
.a-sep[data-from="tint"][data-to="base"] { background: linear-gradient(var(--a-tint), var(--a-base)); }
.a-sep--blend { height: clamp(48px, 6vw, 80px); }
.a-sep svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.a-sep path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.a-sep__line { stroke-width: 2.25; }
.a-sep__echo { stroke-width: 1.25; opacity: 0.38; }
/* draw-on (only when JS confirms motion is OK). A left-to-right clip reveal, not stroke dashes:
   with vector-effect: non-scaling-stroke, dash lengths are measured in screen pixels, so a pathLength-based
   dash stopped short whenever the ribbon was stretched wider than its 1200-unit viewBox (e.g. at 1920px). */
.a-sep-anim .a-sep svg { clip-path: inset(-24px 100% -24px 0); transition: clip-path 1.6s cubic-bezier(.45,.05,.25,1); }
.a-sep-anim .a-sep.is-drawn svg { clip-path: inset(-24px 0 -24px 0); }
/* a small four-point sparkle where the gesture lands */
.a-sep__spark {
  position: absolute; width: 18px; height: 18px; translate: -50% -50%;
  background: var(--m0);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--m0) 70%, transparent));
}
.a-sep-anim .a-sep__spark { opacity: 0; scale: .4; transition: opacity .4s ease 1.45s, scale .5s cubic-bezier(.3,1.6,.5,1) 1.45s; }
.a-sep-anim .a-sep.is-drawn .a-sep__spark { opacity: 1; scale: 1; }
@media (max-width: 640px) { .a-sep { height: 64px; } .a-sep__spark { width: 14px; height: 14px; } }
@media print { .a-sep { display: none; } }
.about-rooms { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.about-rooms li { margin-bottom: 0.45rem; }
.about-rooms strong { color: var(--text-primary); }

/* ---- About page: "How I design" as three movements (2026-09-24) ----
   No tiles: a baton-stroke line runs across, each rule sits on it at a glowing note marker,
   with a large italic serif numeral. Stacks along a vertical line on phones. */
.about-rules__intro { margin-bottom: 0; }
.about-rules {
  --rule-line: linear-gradient(90deg, color-mix(in srgb, var(--m2) 0%, transparent), var(--m2) 12%, var(--m1) 55%, var(--m0) 92%, color-mix(in srgb, var(--m0) 0%, transparent));
  position: relative; list-style: none; margin: 2.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.about-rules::before {            /* the line */
  content: ""; position: absolute; left: -1rem; right: -1rem; top: 7px; height: 2px; border-radius: 2px;
  background: var(--rule-line); opacity: 0.75;
}
.about-rules__item { position: relative; padding-top: 1.9rem; }
.about-rules__item::before {      /* the note marker */
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-base); border: 3px solid var(--c, var(--m2));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--m2)) 16%, transparent), 0 0 18px color-mix(in srgb, var(--c, var(--m2)) 45%, transparent);
  transition: transform 200ms ease;
}
.about-rules__item:nth-child(1) { --c: var(--m2); }
.about-rules__item:nth-child(2) { --c: var(--m1); }
.about-rules__item:nth-child(3) { --c: var(--m0); }
.about-rules__item:hover::before { transform: scale(1.15); }
/* titles carry the marker's color (replaces the Roman numerals, 2026-09-24) */
.about-rules__item h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 0.55rem; color: var(--c); }
.about-rules__item p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 760px) {
  .about-rules { grid-template-columns: 1fr; gap: 2.25rem; padding-left: 2.25rem; }
  .about-rules::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--m2), var(--m1) 50%, var(--m0)); }
  .about-rules__item { padding-top: 0; }
  .about-rules__item::before { left: calc(-2.25rem); top: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) { .about-rules__item::before { transition: none; } }
