/* ==========================================================================
   NoobiBuilds — The Workshop After Dark
   Design system + all-tier page styles.
   Tiers: html[data-lw="on"] heavy WebGL world · "lite" ambient CSS · "off" calm static.
   Themes: html[data-theme="night"] (default) · html[data-theme="day"].
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', ui-monospace, monospace;

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --header-h: 4.25rem;
}

html[data-theme='night'] {
  color-scheme: dark;
  --bg: #11151d;
  --bg-2: #161c26;
  --bg-3: #1c2431;
  --ink: #f2ead9;
  --ink-strong: #fff8ea;
  --muted: #b3a793;
  --cyan: #5fe1ff;
  --cyan-dim: #2aa8c4;
  --gold: #f2b64e;
  --amber: #e08b3a;
  --wood: #7a4e2a;
  --card: rgba(26, 33, 43, .82);
  --card-solid: #1a212b;
  --line: #333e4e;
  --line-soft: #242c38;
  --scrim: rgba(15, 19, 26, .5);
  --glow-cyan: 0 0 24px rgba(95, 225, 255, .35);
  --glow-gold: 0 0 24px rgba(242, 182, 78, .30);
  --shadow-lift: 0 18px 50px -12px rgba(0, 0, 0, .65);
}

html[data-theme='day'] {
  color-scheme: light;
  --bg: #f3ead9;
  --bg-2: #ecdfc8;
  --bg-3: #e4d4b8;
  --ink: #241a10;
  --ink-strong: #17100a;
  --muted: #6d5b44;
  --cyan: #0b7e9d;
  --cyan-dim: #0b7e9d;
  --gold: #9a6a14;
  --amber: #b06f22;
  --wood: #8a5a30;
  --card: rgba(255, 252, 244, .86);
  --card-solid: #fffcf4;
  --line: #d5c5a6;
  --line-soft: #e2d5ba;
  --scrim: rgba(243, 234, 217, .55);
  --glow-cyan: 0 0 24px rgba(11, 126, 157, .22);
  --glow-gold: 0 0 24px rgba(154, 106, 20, .22);
  --shadow-lift: 0 18px 44px -14px rgba(60, 40, 14, .35);
}

/* Day theme reads too bright on large screens where the viewport fills the
   field of view — soften it on desktop only; mobile keeps the approved look. */
@media (min-width: 48rem) {
  html[data-theme='day'] {
    --bg: #eadcc2;
    --bg-2: #e2d2b4;
    --bg-3: #d9c5a2;
    --card: rgba(251, 245, 232, .88);
    --card-solid: #fbf5e8;
    --line: #cbb992;
    --line-soft: #d8c8a8;
    --scrim: rgba(234, 220, 194, .5);
    --muted: #61503a;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  transition: background-color .8s ease, color .8s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink-strong); }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); font-weight: 750; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 650; }
p { margin: 0 0 1em; }
::selection { background: var(--cyan); color: #06222b; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: min(72rem, 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .6rem 1rem; border-radius: .5rem;
  background: var(--card-solid); color: var(--ink-strong);
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus-visible { transform: none; }

/* Film grain — whole site, both themes */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.6%, -1.2%); }
  75% { transform: translate(-1%, -2%); }
}

/* ---------- WebGL stage ---------- */
#world {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
}
html[data-world='on'] #world { opacity: 1; }

/* ---------- Header ---------- */
.nb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background-color .5s ease, border-color .5s ease, backdrop-filter .5s ease;
  border-bottom: 1px solid transparent;
}
.nb-header.is-solid {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nb-header:not(.is-solid)::before {
  content: ''; position: absolute; inset: 0 0 -60% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 68%, transparent), transparent);
}
.nb-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  height: var(--header-h);
}
.nb-brand {
  display: flex; align-items: center;
  text-decoration: none; margin-right: auto;
}
.nb-brand__logo {
  display: block; height: 3.55rem; width: auto;
  transition: transform .3s var(--ease-spring), filter .3s ease;
}
.nb-brand:hover .nb-brand__logo { transform: scale(1.03); }
html[data-theme='night'] .nb-brand__logo {
  /* light halo keeps the charcoal tagline readable over the dark workshop */
  filter: drop-shadow(0 0 1px rgba(255, 248, 234, .9)) drop-shadow(0 0 10px rgba(255, 248, 234, .35));
}
.nb-nav { display: flex; gap: 1.6rem; }
.nb-nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem;
  position: relative; padding-block: .4rem;
}
.nb-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: right .35s var(--ease-out);
}
.nb-nav a:hover::after, .nb-nav a[aria-current='page']::after { right: 0; }

/* Theme toggle — the sun crank */
.nb-theme {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  color: var(--gold); cursor: pointer; display: grid; place-items: center;
  transition: box-shadow .3s, transform .3s var(--ease-spring);
}
.nb-theme:hover { box-shadow: var(--glow-gold); transform: rotate(15deg); }
.nb-theme svg { width: 1.25rem; height: 1.25rem; transition: transform .8s var(--ease-spring); }
html[data-theme='day'] .nb-theme svg { transform: rotate(180deg); }
.nb-theme .icon-moon { display: none; }
html[data-theme='night'] .nb-theme .icon-sun { display: none; }
html[data-theme='night'] .nb-theme .icon-moon { display: block; color: var(--cyan); }

.nb-menu {
  display: none; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); border-radius: .55rem; padding: .5rem .85rem;
  font: inherit; font-size: .9rem; cursor: pointer;
}
.nb-mobilenav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 39;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-soft);
}
.nb-mobilenav.is-open { display: block; }
.nb-mobilenav__inner { display: grid; gap: .25rem; padding-block: 1rem 1.4rem; }
.nb-mobilenav a {
  color: var(--ink-strong); text-decoration: none; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 650; padding: .55rem .25rem;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 47.9rem) {
  .nb-nav { display: none; }
  .nb-menu { display: block; }
  .nb-brand__logo { height: 2.5rem; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 1.1rem;
}
.eyebrow::before { content: '// '; color: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: .75rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .3s, background-color .3s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--cyan-dim));
  color: #052730; box-shadow: var(--glow-cyan);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(95, 225, 255, .5); color: #031a20; }
.btn--ghost { border-color: var(--line); color: var(--ink-strong); background: var(--card); }
.btn--ghost:hover { border-color: var(--gold); box-shadow: var(--glow-gold); transform: translateY(-2px); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0; list-style: none; }
.tags span, .tags li {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  padding: .35rem .8rem; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); background: var(--card);
}

/* ---------- Acts (homepage) ---------- */
.act { position: relative; z-index: 1; }
.act__inner { position: relative; }

/* HERO — the workshop doorway */
.act--arrive {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
}
/* Lite/off tiers get the plate as a slow-breathing CSS backdrop */
html:not([data-world='on']) .act--arrive::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('../assets/workshop/desktop-workshop-plate-1920x1080.webp') center / cover no-repeat;
  animation: plate-drift 26s ease-in-out infinite alternate;
}
html[data-theme='day']:not([data-world='on']) .act--arrive::before {
  background-image: url('../assets/workshop/desktop-workshop-plate-day-1920x1080.webp');
}
@media (max-width: 47.9rem) {
  html:not([data-world='on']) .act--arrive::before {
    background-image: url('../assets/workshop/mobile-workshop-plate-1080x1920.webp');
  }
  html[data-theme='day']:not([data-world='on']) .act--arrive::before {
    background-image: url('../assets/workshop/mobile-workshop-plate-day-1080x1920.webp');
  }
}
@keyframes plate-drift {
  from { transform: scale(1.02) translate(-.6%, .3%); }
  to { transform: scale(1.07) translate(.6%, -.4%); }
}
.act--arrive::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58rem 34rem at 24% 62%, var(--scrim) 0%, transparent 68%),
    linear-gradient(to top, var(--bg) 0%, transparent 26%);
}
html[data-theme='day'] .act--arrive::after {
  background:
    radial-gradient(64rem 40rem at 24% 60%, rgba(243, 234, 217, .82) 0%, rgba(243, 234, 217, .3) 52%, transparent 74%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.hero-copy { max-width: 40rem; }
.hero-copy h1 .line { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(1.1em); }
  to { opacity: 1; transform: none; }
}
.hero-copy > .eyebrow { animation: rise .8s var(--ease-out) backwards; }
.hero-copy h1 .line { animation: rise .9s var(--ease-out) backwards; }
.hero-copy h1 .line:nth-child(1) { animation-delay: .1s; }
.hero-copy h1 .line:nth-child(2) { animation-delay: .24s; }
.hero-copy h1 .line:nth-child(3) { animation-delay: .38s; }
.hero-copy > .lede { animation: rise .9s .5s var(--ease-out) backwards; }
.hero-copy > .hero-ctas { animation: rise .9s .64s var(--ease-out) backwards; }
.hero-noobi { animation-name: noobi-arrive, noobi-bob; animation-duration: 1s, 5.2s; animation-delay: .5s, 1.5s; animation-timing-function: var(--ease-out), ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: backwards, none; }
@keyframes noobi-arrive {
  from { opacity: 0; transform: translateY(3rem); }
  to { opacity: 1; transform: none; }
}
.hero-title-accent { color: var(--cyan); text-shadow: 0 0 26px rgba(95, 225, 255, .45); }
html[data-theme='day'] .hero-title-accent { text-shadow: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-noobi {
  position: absolute; right: clamp(1rem, 8vw, 9rem); bottom: 0; z-index: -1;
  width: clamp(11rem, 24vw, 20rem); pointer-events: none;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5));
  animation: noobi-bob 5.2s ease-in-out infinite;
}
html[data-world='on'] .hero-noobi { display: none; } /* the world renders him instead */
@keyframes noobi-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.2deg); }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .45rem;
  color: var(--muted); font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 3rem;
  background: linear-gradient(var(--cyan), transparent);
  animation: cue-fall 2s ease-in-out infinite;
}
@keyframes cue-fall {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(1.2rem); opacity: 0; }
}

/* STORY — Problems → Solutions → Products */
.act--story { padding-block: clamp(6rem, 14vh, 11rem); }
.story-steps { display: grid; gap: clamp(3rem, 8vh, 6rem); counter-reset: step; margin-top: 3rem; }
.story-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem 2rem; align-items: start;
  max-width: 46rem;
}
.story-step:nth-child(2) { margin-left: auto; }
.story-step__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  transition: color 1s ease, -webkit-text-stroke-color 1s ease;
}
.story-step.is-lit .story-step__num { color: var(--gold); -webkit-text-stroke-color: transparent; text-shadow: var(--glow-gold); }
.story-step h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.story-step p { color: var(--muted); max-width: 34rem; }

/* SHELF — the products */
.act--shelf { padding-block: clamp(5rem, 12vh, 9rem); }
.shelf-head { max-width: 44rem; margin-bottom: 3.5rem; }
.shelf { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: repeat(6, 1fr); }
.shelf-card { grid-column: span 2; perspective: 1000px; }
.shelf-card:nth-child(1), .shelf-card:nth-child(2) { grid-column: span 3; }
@media (max-width: 63.9rem) { .shelf-card, .shelf-card:nth-child(-n+2) { grid-column: span 3; } }
@media (max-width: 47.9rem) { .shelf-card, .shelf-card:nth-child(-n+2) { grid-column: span 6; } }
.shelf-card__tilt {
  position: relative; height: 100%; border-radius: 1.1rem; overflow: clip;
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform .5s var(--ease-spring), box-shadow .5s ease, border-color .5s ease;
  transform-style: preserve-3d; will-change: transform;
}
.shelf-card:hover .shelf-card__tilt {
  box-shadow: var(--shadow-lift), var(--glow-cyan);
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--line));
}
.shelf-card__proof { position: relative; aspect-ratio: 16 / 10; overflow: clip; }
.shelf-card__proof img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.shelf-card:hover .shelf-card__proof img { transform: scale(1.05); }
.shelf-card__proof::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, transparent 55%, rgba(10, 13, 18, .55));
}
.shelf-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.shelf-card__body p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.shelf-card__link {
  font-family: var(--font-display); font-weight: 650; font-size: .95rem;
  color: var(--cyan); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.shelf-card__link::after { content: '\2192'; transition: transform .3s var(--ease-spring); }
.shelf-card:hover .shelf-card__link::after { transform: translateX(.35rem); }
.shelf-card__link::before { content: ''; position: absolute; inset: 0; } /* whole card clickable */

/* MAKER — about teaser */
.act--maker { padding-block: clamp(6rem, 14vh, 10rem); }
.maker-panel {
  display: grid; gap: 2.5rem; grid-template-columns: 1.2fr .8fr; align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: 1.4rem;
  background: linear-gradient(140deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line-soft); position: relative; overflow: clip;
}
.maker-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(30rem 18rem at 85% 20%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}
.maker-quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.12; color: var(--ink-strong);
  margin: 0 0 1.2rem;
}
.maker-noobi { width: min(15rem, 60vw); margin-inline: auto; animation: noobi-bob 6s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); }
@media (max-width: 63.9rem) { .maker-panel { grid-template-columns: 1fr; } }

/* SIGNAL — contact finale */
.act--signal { padding-block: clamp(6rem, 15vh, 11rem); text-align: center; }
.signal-inner { max-width: 44rem; margin-inline: auto; }
.signal-noobi { width: min(13rem, 46vw); margin: 0 auto 1.6rem; animation: noobi-bob 5.6s ease-in-out infinite; filter: drop-shadow(0 16px 20px rgba(0,0,0,.45)); }
html[data-world='on'] .signal-noobi { display: none; }
.signal-mail { font-family: var(--font-mono); font-size: .95rem; }

/* ---------- Footer ---------- */
.nb-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  padding-block: 2.2rem; font-size: .92rem; color: var(--muted);
}
.nb-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; }
.nb-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.nb-footer a { color: var(--ink); text-decoration: none; }
.nb-footer a:hover { color: var(--cyan); }
.nb-footer p { margin: 0; max-width: 34rem; }

/* ---------- Sub-pages ---------- */
.page { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 4rem) 5rem; min-height: 82vh; }
.page__band {
  position: absolute; inset: 0 0 auto; height: 24rem; z-index: -1; overflow: clip; pointer-events: none;
}
.page__band::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/workshop/band-night-1600x600.webp') center / cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
  animation: plate-drift 30s ease-in-out infinite alternate;
}
html[data-theme='day'] .page__band::before { background-image: url('../assets/workshop/band-day-1600x600.webp'); opacity: .6; }
.page__noobi {
  position: absolute; top: clamp(5rem, 12vh, 8rem); right: clamp(0rem, 4vw, 4rem); z-index: -1;
  width: clamp(8rem, 16vw, 13rem); pointer-events: none; opacity: .95;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.4));
  animation: noobi-bob 6s ease-in-out infinite;
}
@media (max-width: 63.9rem) { .page__noobi { opacity: .35; } }
.page .content { max-width: 46rem; }
.page section { margin-block: 2.6rem; }
.page section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
}
.page ul { padding-left: 1.2rem; }
.page li { margin-block: .45rem; color: var(--ink); }
.page li::marker { color: var(--gold); }

/* Contact form */
.form {
  margin-top: 2.5rem; padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 1.2rem; border: 1px solid var(--line);
  background: var(--card); backdrop-filter: blur(10px);
  max-width: 40rem;
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 47.9rem) { .form-grid { grid-template-columns: 1fr; } }
.field-group { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field-group label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.field {
  font: inherit; color: var(--ink-strong);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border: 1px solid var(--line); border-radius: .6rem;
  padding: .7rem .9rem; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.field:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
textarea.field { min-height: 9rem; resize: vertical; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.form-status { min-height: 1.4rem; font-size: .92rem; margin-bottom: .8rem; }
.form-status.is-sent { color: var(--cyan); }
.form-status.is-failed { color: #ff9d7a; }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- Reveal choreography (shell.js adds .rv to decorative children) ---------- */
.rv { opacity: 1; transform: none; }
html[data-lw] .rv { opacity: 0; transform: translateY(1.6rem); }
html[data-lw] .rv.is-in, .rv.is-in { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s var(--ease-out); }
html[data-lw='off'] .rv { opacity: 1; transform: none; }

@media (max-width: 47.9rem) {
  .act--story,
  .act--shelf {
    background:
      linear-gradient(90deg, rgba(7, 10, 14, .9), rgba(7, 10, 14, .72) 58%, rgba(7, 10, 14, .84)),
      radial-gradient(26rem 22rem at 50% 18%, rgba(95, 225, 255, .1), transparent 72%);
  }
  html[data-theme='day'] .act--story,
  html[data-theme='day'] .act--shelf {
    background:
      linear-gradient(90deg, rgba(243, 234, 217, .94), rgba(243, 234, 217, .78) 58%, rgba(243, 234, 217, .9)),
      radial-gradient(26rem 22rem at 50% 18%, rgba(40, 145, 170, .1), transparent 72%);
  }
  .story-steps { gap: 1.25rem; }
  .story-step,
  .shelf-head {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: .9rem;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  }
  .story-step {
    grid-template-columns: 4.4rem 1fr;
    gap: .85rem;
  }
  .story-step:nth-child(2) { margin-left: 0; }
  .story-step__num { font-size: 3.2rem; }
  .story-step p,
  .shelf-card__body p { color: var(--ink); }
  .shelf-head { margin-bottom: 1.25rem; }
  .shelf-card__tilt {
    background: color-mix(in srgb, var(--bg-2) 94%, transparent);
    border-color: color-mix(in srgb, var(--cyan) 24%, var(--line));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  }
  .shelf-card__proof::after {
    background: linear-gradient(180deg, transparent 36%, rgba(7, 10, 14, .2) 70%, rgba(7, 10, 14, .55));
  }
  .shelf-card__body { padding: 1.15rem 1.15rem 1.25rem; }
  .shelf-card__link {
    color: var(--ink-strong);
    background: color-mix(in srgb, var(--cyan) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--cyan) 36%, var(--line));
    border-radius: .6rem;
    padding: .55rem .7rem;
  }
}

/* ---------- Calm tier / reduced motion ---------- */
html[data-lw='off'] *, html[data-lw='off'] *::before, html[data-lw='off'] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
