/* Fudd Service — one dark, warm sheet. The light comes from the build. */
:root {
  --bg: #0d0b09;
  --bg-2: #14110e;
  --ink: #efe7da;
  --ink-2: #b3a796;
  --ink-3: #7d7366;
  --line: rgba(239, 231, 218, 0.14);
  --amber: #e8964a;
  --amber-ink: #1a120a;
  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --side: max(16px, env(safe-area-inset-left, 0px), 5vw);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--amber-ink); }

.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.lede { font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-2); max-width: 42ch; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--amber);
  color: var(--ink);
  transition: background-color 0.25s, color 0.25s;
}
.btn-fill { background: var(--amber); color: var(--amber-ink); }
.btn-fill:hover { background: #f3ad6b; }
.btn-line:hover { background: var(--amber); color: var(--amber-ink); }

/* ---------- header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--side);
  background: linear-gradient(rgba(13, 11, 9, 0.85), rgba(13, 11, 9, 0));
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name {
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 6px;
}
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 10px 16px; white-space: nowrap; }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .brand-tag { font-size: 9px; letter-spacing: 0.12em; }
}

/* ---------- the build sequence ---------- */
.seq { position: relative; height: 495vh; height: 495svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#build-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 55% 45%, transparent 55%, rgba(5, 4, 3, 0.78) 100%),
    linear-gradient(rgba(13, 11, 9, 0) 62%, rgba(13, 11, 9, 0.7));
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.intro {
  position: absolute;
  left: var(--side);
  top: 50%;
  transform: translateY(-46%);
  max-width: 820px;
  pointer-events: none;
  z-index: 2;
}
.intro h1 {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(54px, 9.6vw, 156px);
  line-height: 0.85;
  letter-spacing: -0.005em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.intro h1 span, .finale h2 span, .h-xl span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
html.ready .intro > * { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.ready .intro h1 { animation-delay: 0.12s; }
html.ready .intro .lede { animation-delay: 0.3s; }
html.shot .intro > * { animation: none; }

.readout {
  position: absolute;
  top: 96px;
  right: var(--side);
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  z-index: 2;
}
.readout .spec { color: var(--ink-3); }
.readout .count { color: var(--ink); font-variant-numeric: tabular-nums; }

.caption {
  position: absolute;
  left: var(--side);
  bottom: max(56px, 10vh);
  max-width: min(580px, 82vw);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.cap-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--amber); }
.cap-title {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(46px, 7.4vw, 112px);
  line-height: 0.86;
  margin: 12px 0 16px;
}
.cap-line { font-size: clamp(15px, 1.35vw, 18px); color: var(--ink-2); margin: 0; max-width: 46ch; }
.caption.swap .cap-title { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.caption.swap .cap-line { animation: rise 0.8s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.rail {
  position: absolute;
  right: var(--side);
  bottom: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  z-index: 3;
}
.rail .t { display: none; }
.rail button.on .t { display: inline; }
.rail button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 7px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.3s;
}
.rail button::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s, background-color 0.4s;
}
.rail button:hover, .rail button.done { color: var(--ink-2); }
.rail button.on { color: var(--ink); }
.rail button.on::after { width: 44px; background: var(--amber); }
.rail button:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.rail .n { color: var(--amber); opacity: 0.8; }

.finale {
  position: absolute;
  left: var(--side);
  bottom: max(56px, 10vh);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.finale h2 {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(50px, 8.4vw, 132px);
  line-height: 0.85;
  margin: 0 0 30px;
}
.finale-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
  z-index: 2;
}
.cue i { width: 1px; height: 42px; background: linear-gradient(var(--amber), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(239, 231, 218, 0.08); z-index: 3; }
.progress i { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }

@media (max-width: 760px) {
  .rail { gap: 6px; bottom: max(24px, 4vh); }
  .rail button.on .t { display: none; }
  .rail button { padding: 8px 2px; }
  .rail button::after { display: none; }
  .rail button.on .n { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
  .nav .long { display: none; }
  .caption, .finale { bottom: max(84px, 12vh); }
  .readout { top: 84px; font-size: 10px; }
  .readout .spec { display: none; }
  .cue { display: none; }
}

/* ---------- the page below ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--side); }
.sheds, .work, .estimate { padding: clamp(88px, 15vh, 168px) 0; border-top: 1px solid var(--line); }
.h-xl, .h-lg {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  line-height: 0.88;
  margin: 0 0 48px;
}
.h-xl { font-size: clamp(42px, 6.8vw, 100px); }
.h-lg { font-size: clamp(36px, 4.8vw, 68px); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.facts > div { background: var(--bg); padding: 30px 28px; }
.facts h3 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.facts p { margin: 0; color: var(--ink-2); }
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.frame {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.tabs button {
  all: unset;
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { border-color: var(--amber); color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
/* the gallery: a row per style, each scrolling sideways on its own */
.jump {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 14px 0;
  margin-bottom: 8px;
  background: linear-gradient(var(--bg) 70%, rgba(13, 11, 9, 0));
}
.jump a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.jump a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.row { padding: 40px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.row.sub { padding: 26px 0 0; margin-left: clamp(0px, 3vw, 40px); border-top: 1px dashed var(--line); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.row-title {
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.9;
  margin: 0;
}
.row.sub .row-title { font-size: clamp(24px, 2.6vw, 36px); }
.row-count { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.row-note { margin: 10px 0 22px; color: var(--ink-2); max-width: 60ch; }
.strip-wrap { position: relative; margin-bottom: 18px; }
.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.strip::-webkit-scrollbar { display: none; }
.card {
  all: unset;
  cursor: zoom-in;
  position: relative;
  flex: 0 0 min(440px, 82vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  scroll-snap-align: start;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s;
  filter: saturate(0.92) brightness(0.92);
}
.card:hover img { transform: scale(1.04); filter: none; }
.card:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.card-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  background: linear-gradient(rgba(13, 11, 9, 0), rgba(13, 11, 9, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.card:hover .card-cap, .card:focus-visible .card-cap { opacity: 1; transform: none; }
@media (hover: none) { .card-cap { opacity: 1; transform: none; } }
.strip-btn {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: var(--ink);
  background: rgba(13, 11, 9, 0.75);
  border: 1px solid var(--line);
}
.strip-wrap.can-scroll .strip-btn { display: grid; }
.strip-btn:hover { border-color: var(--amber); }
.strip-btn:disabled { opacity: 0; pointer-events: none; }
.strip-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.strip-btn.prev { left: 10px; }
.strip-btn.next { right: 10px; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px 16px 48px;
  border: 0;
  background: rgba(10, 8, 7, 0.96);
  color: var(--ink);
  place-items: center;
  grid-template-rows: 1fr auto;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox p { margin: 14px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.lb-btn {
  all: unset;
  cursor: pointer;
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(13, 11, 9, 0.6);
}
.lb-btn:hover { border-color: var(--amber); }
.lb-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 12px; }

.estimate .lede { margin-bottom: 36px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot .brand-name { font-size: 20px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--ink); }
.foot-meta .vora { color: var(--amber); }
/* the release stamp (assets/js/version.js): which state of the site a review is looking at */
.ver { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-3); }
.panel > .ver { margin: 28px 0 8px; }

/* ---------- no WebGL: the stages read as a plain list ---------- */
.no-webgl .seq { height: auto; }
.no-webgl .stage { position: relative; height: auto; min-height: 100vh; padding: 150px var(--side) 80px; }
.no-webgl #build-canvas, .no-webgl .vignette, .no-webgl .readout, .no-webgl .caption,
.no-webgl .finale, .no-webgl .cue, .no-webgl .progress { display: none; }
.no-webgl .intro { position: static; transform: none; margin-bottom: 48px; }
.no-webgl .rail { position: static; transform: none; align-items: flex-start; }
.no-webgl .rail button { justify-content: flex-start; color: var(--ink-2); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
