/* HERO LAB, rounds 6 and 7. Shared by the hero prototypes. Desktop only, local review only.
   Tokens and type come from public/css/base.css. The next section copies the approved
   Work rows of design/hero-variants (cream paper, the row under the pointer opens). */

@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: block;
  src: url('/assets/fonts/jakarta-var.woff2') format('woff2-variations'), url('/assets/fonts/jakarta-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: block;
  src: url('/assets/fonts/instrument-serif-400-italic.woff2') format('woff2');
}

:root {
  --void: #070706; --ink: #0b0b0a; --bone: #ece8e1;
  --bone-dim: rgba(236, 232, 225, 0.68); --bone-soft: rgba(236, 232, 225, 0.6); --bone-mute: rgba(236, 232, 225, 0.22);
  --line: rgba(236, 232, 225, 0.12);
  --signal: #E24A3B;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', serif;
  --gut: clamp(24px, 4.03vw, 96px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.4; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
p, h1, h2, h3, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--signal); color: var(--void); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 16px; background: var(--bone); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- top bar: the approved bar ---------- */
.bar { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 76px; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-brand { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.03em; text-decoration: none; color: var(--bone); transition: opacity 0.4s linear, visibility 0s linear; }
/* The hero already sets the name. The small wordmark comes in when the hero has gone. */
.at-hero .bar-brand { opacity: 0; visibility: hidden; transition: opacity 0.25s linear, visibility 0s linear 0.25s; }
.bar-links { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.bar-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; color: var(--bone); }
.bar-links a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 5px; transition: background-size 0.4s var(--ease); }
.bar-links a:hover span, .bar-links a:focus-visible span { background-size: 100% 1px; }
.bar-links a.bar-mail span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.bar-links a.bar-mail:hover { color: var(--signal); }
.bar-open { position: fixed; z-index: 49; left: 50%; top: 0; height: 76px; display: flex; align-items: center; transform: translateX(-50%); font-size: 0.9375rem; color: var(--bone-dim); white-space: nowrap; transition: opacity 0.3s linear; }
body:not(.at-hero) .bar-open { opacity: 0; }
/* 18 Nov 2026: the scrim is as firm as on the case pages (case-page.css). With 0.92 fading from the very top, the text of the page showed through the wordmark and the links. */
body:not(.at-hero) .bar { background: linear-gradient(rgb(7, 7, 6) 68%, rgba(7, 7, 6, 0)); } /* taste-skill-ignore: the bar's scrim */

/* ---------- hero shell ---------- */
.hero { position: sticky; top: 0; z-index: 0; height: 100vh; min-height: 620px; overflow: hidden; background: var(--void); }
.after { position: relative; z-index: 1; background: var(--void); }

.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.55rem; border-radius: 99px; background: var(--bone); color: var(--ink); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; transition: background-color 0.25s linear; }
.btn:hover { background: var(--signal); }
.link { font-weight: 600; font-size: 1.0625rem; color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.link:hover { color: var(--signal); }

/* ---------- next section: selected work, as approved ---------- */
.wk-title { padding: clamp(6rem, 17vh, 11rem) var(--gut) clamp(2.5rem, 7vh, 5rem); text-align: center; white-space: nowrap; font-weight: 800; font-size: clamp(5rem, 12.4vw, 24rem); line-height: 0.9; letter-spacing: -0.05em; }
.wk-list { --closed: clamp(150px, 25vh, 280px); --open: clamp(420px, 72vh, 860px); height: calc((var(--n, 4) - 1) * var(--closed) + var(--open)); margin: 0 21px; display: flex; flex-direction: column; background: var(--bone); }
.wk-row { --foot: clamp(120px, 21vh, 190px); position: relative; flex: 1 1 var(--closed); min-height: 0; overflow: hidden; display: grid; place-items: center; color: var(--ink); text-decoration: none; transition: flex-basis 0.62s var(--ease), background-color 0.38s var(--ease), color 0.38s var(--ease); }
.wk-row + .wk-row { box-shadow: inset 0 1px 0 rgba(11, 11, 10, 0.12); }
.wk-row:is(:hover, :focus-visible) { flex-basis: var(--open); background: var(--ink); color: var(--bone); box-shadow: none; }
.wk-row:focus-visible { outline: 3px solid var(--bone); outline-offset: -8px; }
.wk-name { font-weight: 500; font-size: min(7.3vw, 12.6vh); line-height: 1; letter-spacing: -0.05em; white-space: nowrap; transition: opacity 0.25s linear; }
.wk-row:is(:hover, :focus-visible) .wk-name { opacity: 0; }
.wk-film { position: absolute; left: 0; right: 0; top: 0; bottom: var(--foot); opacity: 0; transition: opacity 0.4s linear; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.wk-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-row:is(:hover, :focus-visible) .wk-film { opacity: 1; transition-delay: 0.12s; }
.wk-foot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--foot); padding: 0 clamp(1.5rem, 3.3vw, 3.5rem) clamp(1.2rem, 3.4vh, 2rem); display: flex; align-items: flex-end; justify-content: space-between; opacity: 0; transition: opacity 0.2s linear; }
.wk-row:is(:hover, :focus-visible) .wk-foot { opacity: 1; transition: opacity 0.4s linear 0.18s; }
.wk-foot b { font-weight: 500; font-size: min(7.3vw, 12.6vh); line-height: 0.92; letter-spacing: -0.05em; }
.wk-foot span { text-align: right; font-size: clamp(1.0625rem, 1.5vw, 1.5rem); line-height: 1.22; letter-spacing: -0.02em; }
/* A case that is not made yet: the row opens, but it holds no film. */
.wk-row.is-soon:not(:hover):not(:focus-visible) .wk-name { opacity: 0.42; }
.wk-row.is-soon:is(:hover, :focus-visible) { background: #1a1917; }
.wk-end { padding: clamp(4rem, 12vh, 8rem) var(--gut) clamp(3rem, 8vh, 6rem); display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; color: var(--bone-dim); font-size: 1.0625rem; }
.wk-end a { color: var(--bone); text-underline-offset: 6px; text-decoration-thickness: 1px; }
