/* ==========================================================================
   unh/nged — THE CASTING CALL press page
   Brand system per 2025_12_10_Unhinged_Brandbook (SWT&CO), accents re-cut
   per Byron 08/2026: Rush Orange leads, Deadnoon Blue seconds, and green
   appears only as the ecommerce site's own #00CC00 (wordmark, footer stripes).
   Helvetica Now Display + Carbona Mono. The tilted "I" holds it together.
   ========================================================================== */

/* ---------- brand fonts (from Branding & Design/Fonts) ---------- */

@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Carbona Mono";
  src: url("assets/fonts/Carbona-MonoRegular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* 2000's Grey — PMS 663 C */
  --grey: #F0F2F0;
  --grey-2: #E2E6E2;
  /* Timeless Black — PMS Black 6 C */
  /* brand black per logo files (#1d1d1b), not pure black */
  --black: #1D1D1B;
  --soft: #5D625D;

  /* Rush Orange — PMS 165 C — the lead accent */
  --orange: #F45C1D;
  /* Deadnoon Blue — PMS 304 C — the second voice */
  --blue: #8FE5FF;
  /* THE green: same value as alwaysunhinged.com's theme scheme (#00CC00).
     Used only where the brand mark itself is green: wordmark, footer stripes, favicon. */
  --green: #00CC00;
  /* Late Pink — PMS 2238 C — bench, currently unused */
  --pink: #FF66A1;

  --accent: var(--orange);

  --line: rgb(0 0 0 / 0.14);
  --line-soft: rgb(0 0 0 / 0.07);
  --line-grey: rgb(240 242 240 / 0.22);

  --sans: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Carbona Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --spring: linear(0, 0.29 12.8%, 0.63 25.5%, 0.89 37.7%, 1.03 49.7%, 1.07 61.5%, 1.04 74.2%, 1.01 87.2%, 1);

  --container: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sec-gap: clamp(5rem, 11vw, 9.5rem);

  /* the tilted-I skew, straight off the wordmark */
  /* slash lean measured from unhinged_reduction.svg: atan(99.07/369.74) */
  --tilt: -15deg;
}

/* ---------- reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--grey);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.section--dark :focus-visible,
.site-foot :focus-visible,
.marquee--ink :focus-visible { outline-color: var(--accent); }

[id] { scroll-margin-top: 5.5rem; }
.top-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; scroll-margin-top: 0; }

/* film grain wash over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("assets/grain.svg") repeat;
  background-size: 240px;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* display voice: Helvetica Now Display ExtraBold */
.display-lg, .display-md, .hero__title, .sec-head__title,
.cast-card__cta-text, .stats dd, .site-foot__big, .pull p, .asset__name,
.cast-card__name, .contact__name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-wrap: balance;
}

.display-lg { font-size: clamp(2rem, 4.8vw, 4.1rem); }
.display-md { font-size: clamp(1.6rem, 3.2vw, 2.7rem); }

/* the slash device (kickers, CTA card) — geometry matches the reduction mark */
.cast-card__cta-bar {
  display: inline-block;
  background: var(--accent);
  transform: skewX(var(--tilt));
}

/* The slash, exactly as drawn in the logo reduction: same stroke and lean,
   and never taller than the letters beside it — height = cap height,
   bottom flush with the baseline. */
.slash-mark, .kbar {
  display: inline-block;
  height: 0.72em;
  aspect-ratio: 521 / 1000;
  background: var(--accent);
  clip-path: polygon(51.45% 0, 100% 0, 48.55% 100%, 0 100%);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad);
  z-index: 200;
  padding: 0.7em 1em;
  background: var(--black);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.skip-link:focus-visible { top: 0.5rem; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem var(--pad);
  background: color-mix(in srgb, var(--grey) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); }

.wordmark {
  display: flex;
  align-items: center;
  color: var(--black);
}
.logo {
  display: block;
  height: 1.05rem;
  width: auto;
  aspect-ratio: 1477.94 / 336.67;
}
.logo--foot { height: 0.78rem; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 1; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.35em;
  border: 1px solid var(--black);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--black);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), translate 0.22s var(--ease);
}
.btn:hover { background: var(--black); color: var(--grey); translate: 0 -2px; }

.btn--solid { background: var(--black); color: var(--grey); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }

.btn--ghost {
  border-color: var(--line-grey);
  color: var(--grey);
  padding: 0.6em 1em;
  font-size: 0.65rem;
}
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad) clamp(4rem, 7vw, 5.5rem);
  max-width: var(--container);
  margin-inline: auto;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--soft);
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}
.kbar { flex: none; }

.hero__copy { container-type: inline-size; min-width: 0; }
.hero__title {
  font-size: clamp(2.9rem, 9.4vw, 8.6rem);
  /* widest line ("UNHINGED") measures 5.24× the font-size; cap the size so it
     always fits the copy column with a little to spare (older browsers keep the
     clamp above) */
  font-size: min(clamp(2.7rem, 8.8vw, 8rem), calc(100cqw / 6));
  line-height: 0.88;
}
.hero__line { display: block; }
.hero__title .slash-mark { margin-left: 0.07em; }

.hero__cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: baseline;
  margin-top: clamp(1.2rem, 2.6vw, 2rem);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  line-height: 1.5;
  /* fixed at two lines so the page never shifts as strings rotate
     (strings must stay under ~70 characters) */
  height: 3em;
}
#cycleText { display: block; width: 100%; }

.hero__foot {
  margin-top: clamp(1.6rem, 3.2vw, 2.6rem);
  padding-top: clamp(1.1rem, 2vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.hero__sub {
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
}
.hero__sub strong {
  font-weight: 800;
  /* a solid marker behind the whole line rather than a part-height bar;
     clone gives the wrapped second line its own box */
  background: var(--blue);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.14em 0.16em;
  margin-inline: -0.04em;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* Let the photo fill the 12px previously occupied by the stripe backdrop. */
.hero__photo-frame {
  position: relative;
  margin-right: -12px;
}
.hero__photo-frame img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: var(--grey-2);
}
.hero__photo-chip {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  bottom: 0.9rem;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  color: var(--grey);
  padding: 0.5em 0.8em;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

.hero__scroll {
  position: absolute;
  bottom: 1.1rem;
  left: var(--pad);
  font-size: 0.62rem;
  opacity: 0.5;
  animation: nudge 2.6s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 6px; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { max-width: 30rem; }
  .hero__scroll { display: none; }
}

/* Short laptop windows: the hero's height comes from the title, which is sized
   off width, so on a wide-but-short screen the CTAs fall below the fold. Tighten
   the title and the vertical rhythm only when height is actually scarce. */
@media (min-width: 881px) and (max-height: 880px) {
  .hero { padding-top: clamp(1rem, 1.8vw, 1.5rem); }
  .hero__title { font-size: min(clamp(2.5rem, 7.8vw, 7rem), calc(100cqw / 6.8)); }
  .hero__kicker { margin-bottom: clamp(0.8rem, 1.8vw, 1.2rem); }
  .hero__cycle { margin-top: clamp(1rem, 2vw, 1.5rem); }
  .hero__foot { margin-top: clamp(1.2rem, 2.4vw, 1.9rem); padding-top: clamp(0.9rem, 1.6vw, 1.3rem); }
}

/* Very short windows (720p laptops): one more step down, or the CTAs sit on
   the fold line with no margin for font-loading differences. */
@media (min-width: 881px) and (max-height: 770px) {
  .hero { padding-top: clamp(0.75rem, 1.4vw, 1.1rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
  .hero__title { font-size: min(clamp(2.3rem, 7vw, 6rem), calc(100cqw / 7.4)); }
}

/* hero load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero__kicker, .hero__title .hero__line, .hero__cycle, .hero__foot {
    animation: hero-rise 0.9s var(--ease) both;
  }
  .hero__title .hero__line:nth-child(1) { animation-delay: 0.05s; }
  .hero__title .hero__line:nth-child(2) { animation-delay: 0.11s; }
  .hero__title .hero__line:nth-child(3) { animation-delay: 0.17s; }
  .hero__title .hero__line:nth-child(4) { animation-delay: 0.23s; }
  .hero__cycle { animation-delay: 0.34s; }
  .hero__foot { animation-delay: 0.42s; }
}
@keyframes hero-rise {
  from { opacity: 0; translate: 0 1.6rem; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: clip;
  padding-block: 0.85em;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0;
}
.marquee--ink { background: var(--black); color: var(--accent); }
.marquee--accent { background: var(--accent); color: var(--black); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 36s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track span { white-space: nowrap; }

@keyframes marq {
  to { translate: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__scroll { animation: none; }
}

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

.section {
  padding-block: var(--sec-gap);
  padding-inline: var(--pad);
  max-width: var(--container);
  margin-inline: auto;
}

.section--dark,
.section--accent {
  max-width: none;
  padding-inline: 0;
  position: relative;
}
.section--dark { background: var(--black); color: var(--grey); }
.section--accent { background: var(--accent); color: var(--black); }

.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/grain-light.svg") repeat;
  background-size: 240px;
  opacity: 0.035;
}

.section__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head__no {
  background: var(--accent);
  color: var(--black);
  padding: 0.2em 0.45em;
  font-size: 0.72rem;
  transform: skewX(var(--tilt));
}
.sec-head__no { display: inline-block; }
.sec-head--on-accent .sec-head__no { background: var(--black); color: var(--accent); }
.sec-head__slash { font-weight: 800; opacity: 0.3; }
.sec-head__title { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.sec-head__rule { flex: 1; border-top: 1px solid currentColor; opacity: 0.16; align-self: center; }

.section__lede {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 52ch;
}

/* ---------- prose ---------- */

.prose p {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  max-width: 62ch;
}
.prose p + p { margin-top: 1.4em; }
.prose em { font-style: italic; }
.prose strong { font-weight: 800; }
.prose--on-dark { color: color-mix(in srgb, var(--grey) 88%, transparent); }
.prose--on-accent p { max-width: 56ch; font-weight: 500; }
.prose--center { margin-inline: auto; text-align: center; }
.prose--center p { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split__aside { position: sticky; top: 6.5rem; }
.split__aside .display-md { max-width: 19ch; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
}

.pull {
  margin-block: 2.4em;
  padding-block: 1.4em;
  border-block: 1px solid var(--line);
}
.pull .slash-mark { margin-right: 0.22em; }
.pull p {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  max-width: 18ch;
}

/* ---------- interlude still ---------- */

/* Fixed box ratio so the layout never shifts when <picture> swaps sources:
   4:5 on phones (the 4x5 crop), 2.35:1 from 900px (the wide crop). */
.interlude {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 76vh;
  overflow: clip;
}
@media (min-width: 900px) {
  .interlude { aspect-ratio: 2.35 / 1; }
}
.interlude img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.interlude__chip {
  position: absolute;
  left: var(--pad);
  bottom: 1.1rem;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  color: var(--grey);
  padding: 0.55em 0.85em;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

/* ---------- film ---------- */

.film__embed {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.film__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* ---------- cast grid ---------- */

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: clamp(1.4rem, 2.6vw, 2.1rem);
}
@media (min-width: 1060px) {
  .cast-card:nth-child(4n + 2) { margin-top: 2.6rem; }
  .cast-card:nth-child(4n + 3) { margin-top: 5.2rem; }
  .cast-card:nth-child(4n + 4) { margin-top: 2.6rem; }
}

.cast-card { --ca: var(--accent); }

.cast-card__frame {
  position: relative;
  overflow: clip;
  aspect-ratio: 4 / 5;
  background: var(--grey-2);
}
.cast-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--ease);
}
.cast-card:hover .cast-card__frame img { scale: 1.03; }

.cast-card__no {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.45em 0.7em;
  background: color-mix(in srgb, var(--black) 80%, transparent);
  color: var(--grey);
  font-size: 0.56rem;
  backdrop-filter: blur(3px);
}

.cast-card__stamp {
  position: absolute;
  top: 44%;
  left: 50%;
  translate: -50% -50%;
  rotate: -12deg;
  padding: 0.12em 0.45em;
  border: 3px solid var(--ca);
  color: var(--ca);
  background: rgb(0 0 0 / 0.18);
  backdrop-filter: blur(2px);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  scale: 1.5;
  transition: opacity 0.28s var(--ease), scale 0.34s var(--spring);
}
.cast-card:hover .cast-card__stamp { opacity: 1; scale: 1; }

.cast-card__name {
  margin-top: 0.9rem;
  font-size: 1.3rem;
}
.cast-card__name span { color: transparent; }
.cast-card__name { position: relative; }
.cast-card__name::after {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.72em;
  margin-left: 0.18em;
  background: var(--ca);
  transform: skewX(var(--tilt));
}

.cast-card__string {
  margin-top: 0.55rem;
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--soft);
  max-width: 34ch;
}
.cast-card__string .sl { color: var(--black); background: var(--ca); padding: 0 0.14em; font-weight: 400; }

.cast-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--soft);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

/* CTA card */
.cast-card__frame--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--black);
  color: var(--grey);
}
.cast-card__cta-bar {
  width: 0.9rem;
  height: clamp(3rem, 5vw, 4.6rem);
}
.cast-card__cta-text { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.cast-card__cta-sub { font-size: 0.6rem; opacity: 0.75; letter-spacing: 0.1em; }
.cast-card__cta-sub a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.cast-card__cta-sub a:hover { color: var(--accent); }

/* ---------- slash section ---------- */

.slash-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
}
/* the tilted I, solid, straight off the logo */
.slash-glyph {
  justify-self: center;
  width: clamp(5.5rem, 11vw, 10rem);
  height: clamp(17rem, 34vw, 30rem);
  background: var(--black);
  transform: skewX(var(--tilt));
}
.slash-copy .display-lg { max-width: 16ch; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.slash-copy .sec-head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 820px) {
  .slash-layout { grid-template-columns: 1fr; }
  .slash-glyph { order: 2; justify-self: end; height: clamp(10rem, 34vw, 14rem); width: clamp(3.4rem, 11vw, 5rem); margin-top: 0.5rem; }
}

/* ---------- fables: own band after The Slash, Deadnoon Blue; a scroll-snap carousel ---------- */

.section--fable {
  /* one tone per fable (data-tone is set from the active slide by script.js);
     green stays reserved for the mark, so: blue / pink / ink / paper */
  --fable-bg: var(--blue);
  --fable-fg: var(--black);
  background: var(--fable-bg);
  color: var(--fable-fg);
  transition: background-color 0.55s var(--ease), color 0.55s var(--ease);
  max-width: none;
  padding-inline: 0;
  position: relative;
}
.section--fable[data-tone="pink"] { --fable-bg: var(--pink); --fable-fg: var(--black); }
.section--fable[data-tone="ink"] { --fable-bg: var(--black); --fable-fg: var(--grey); }
.section--fable[data-tone="orange"] { --fable-bg: var(--orange); --fable-fg: var(--black); }
.section--fable[data-tone="paper"] { --fable-bg: #FFFFFF; --fable-fg: var(--black); }
/* hairline so an orange fable never merges into the orange Slash band above */
.section--fable::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: rgb(0 0 0 / 0.22);
}
.section--fable :focus-visible { outline-color: currentColor; }
.fables { position: relative; }
.fables__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* the track is exactly one slide wide, so neighbouring fables are clipped
     at the container edge instead of peeking in beside the active one */
  clip-path: inset(0);
}
.fables__track::-webkit-scrollbar { display: none; }
.fables__track:focus-visible { outline: 2px solid var(--black); outline-offset: 6px; }
.fable {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-width: 0;
}
.fable__photo { position: relative; user-select: none; }
.fable__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--grey-2);
  -webkit-user-drag: none;
}
.fable__chip {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  color: var(--grey);
  padding: 0.5em 0.8em;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}
.fable__kicker {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: color-mix(in srgb, currentColor 65%, transparent);
  margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
}
.kbar--ink { background: currentColor; }
.fable__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.fable__text {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  font-weight: 500;
  max-width: 60ch;
}
.fable__text .sl {
  color: var(--fable-bg);
  background: var(--fable-fg);
  padding: 0 0.14em;
  transition: background-color 0.55s var(--ease), color 0.55s var(--ease);
}

.fables__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}
.fables__dot {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.fables__dot span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 28%, transparent);
  transition: background 0.25s var(--ease), scale 0.3s var(--spring);
}
.fables__dot:hover span { background: color-mix(in srgb, currentColor 55%, transparent); }
.fables__dot[aria-selected="true"] span { background: currentColor; scale: 1.35; }

.fable__note {
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  max-width: 60ch;
  text-align: center;
  margin-inline: auto;
}
@media (max-width: 820px) {
  .fable { grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
  .fable__photo { max-width: 24rem; }
}

/* ---------- the bar: three flavors side by side ---------- */

.product { margin-block: 0 clamp(2.5rem, 5vw, 4rem); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.8rem);
}
.product__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product__card {
  display: block;
  background: #FFFFFF;
  padding: clamp(1rem, 2.4vw, 2rem);
  position: relative;
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product__link:hover .product__card { translate: 0 -3px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.08); }
/* corner registration marks */
.product__card::before, .product__card::after {
  content: "";
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid var(--black);
  opacity: 0.3;
}
.product__card::before { top: 0.6rem; left: 0.6rem; border-width: 2px 0 0 2px; }
.product__card::after { bottom: 0.6rem; right: 0.6rem; border-width: 0 2px 2px 0; }
.product__card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product__name {
  display: block;
  margin-top: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}
.product__arrow { display: inline-block; transition: translate 0.3s var(--spring); }
.product__link:hover .product__arrow { translate: 0.15em -0.15em; }
.product__link:hover .product__name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.product__shop { display: block; margin-top: 0.5rem; color: var(--soft); font-size: 0.6rem; letter-spacing: 0.12em; }
.product__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}
@media (max-width: 700px) {
  /* phones: keep them side by side as a snap scroller, bleeding to the edges */
  .product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-item { flex: 0 0 72%; scroll-snap-align: center; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.stats__item {
  padding: clamp(1.2rem, 2.5vw, 2rem) clamp(0.5rem, 2vw, 2rem);
  text-align: center;
}
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats dt { color: var(--soft); font-size: 0.62rem; margin-bottom: 0.5em; }
.stats dd { font-size: clamp(2.1rem, 5.4vw, 4.6rem); }
.stats dd span { margin-left: 0.06em; padding: 0 0.06em; color: var(--black); }
.stats dd.stats__note {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-top: 0.7em;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-left: 0; border-top: 1px solid var(--line); }
}

.availability { margin-top: 2em; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--soft); }

/* ---------- credits ---------- */

.credits {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
/* credits now follow the section header directly (no narrative above) */
.sec-head + .credits { margin-top: 0; }
.credits__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem;
  padding: 0.85em 0;
  border-bottom: 1px solid var(--line-soft);
}
.credits dt { color: var(--soft); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; align-self: center; }
.credits dd {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .credits__row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- press kit ---------- */

.assets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-grey);
  border: 1px solid var(--line-grey);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
/* Four cards fill every row: four across on desktop, two on tablets,
   and stacked on phones. */
@media (max-width: 1179px) {
  .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .assets { grid-template-columns: minmax(0, 1fr); }
}

/* the grid's own background is what shows through under a short card, so the
   link has to fill its cell rather than stopping at its content */
.assets > li { display: flex; }
.asset {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  /* name at the top, meta pinned to the bottom so they line up across cards */
  justify-content: space-between;
  gap: 2.6rem;
  padding: 1.4rem;
  background: var(--black);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.asset:hover { background: var(--accent); color: var(--black); }
.asset__name { font-size: clamp(1.3rem, 1.9vw, 1.7rem); max-width: 8ch; }
/* "On TikTok" is the one name short enough to fit the 8ch cap on a single
   line; break it so all four card names share the same two-line shape. */
.asset__name-line { display: block; }
.asset__meta { font-size: 0.6rem; opacity: 0.7; letter-spacing: 0.12em; }
.asset__arrow {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 1.3rem;
  transition: translate 0.3s var(--spring);
}
.asset:hover .asset__arrow { translate: 0.2rem 0.2rem; }

.boiler { border-top: 1px solid var(--line-grey); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.boiler__item { border-bottom: 1px solid var(--line-grey); }
.boiler__label {
  display: block;
  padding: 1.1em 0 0.5em;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 400;
}
.boiler__body { padding: 0 0 1.4em; max-width: 70ch; }
.boiler__body p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--grey) 85%, transparent);
  margin-bottom: 1em;
}

.contact { border-left: 4px solid var(--blue); padding-left: 1.4rem; }
.contact__label { color: var(--blue); margin-bottom: 0.6em; }
.contact__name {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  margin-bottom: 0.3em;
  text-transform: none;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.contact__name a { text-decoration: none; }
.contact__name a:hover { color: var(--blue); }
.contact a { text-decoration-color: var(--blue); text-underline-offset: 3px; }
.contact a:hover { color: var(--blue); }
.contact__note { margin-top: 0.9em; opacity: 0.6; font-size: 0.62rem; letter-spacing: 0.1em; }

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

.site-foot {
  position: relative;
  background: var(--black);
  color: var(--grey);
  padding: 0 var(--pad) 1.4rem;
  overflow: clip;
}
.site-foot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/grain-light.svg") repeat;
  background-size: 240px;
  opacity: 0.035;
}
/* op-art stripe band, straight off the box (box stripes are green) */
.stripes {
  height: 16px;
  margin: 0 calc(var(--pad) * -1) var(--sec-gap);
  background: repeating-linear-gradient(114deg, var(--green) 0 12px, transparent 12px 28px);
}
.site-foot__big {
  font-size: clamp(4.4rem, 16vw, 15rem);
  line-height: 0.82;
  max-width: var(--container);
  margin-inline: auto;
}
.site-foot__big .slash-mark { margin-left: 0.07em; }
.site-foot__social { display: inline-flex; gap: 1.4rem; }
.site-foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-grey);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.site-foot__mark { display: inline-flex; align-items: center; gap: 0.6em; }
.site-foot__bar a { text-decoration: none; }
.site-foot__bar a:hover { color: var(--accent); }

/* ---------- TK tokens ---------- */

.tk {
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--black);
  background: var(--accent);
  border: 1px dashed rgb(0 0 0 / 0.45);
  padding: 0.05em 0.35em;
  white-space: nowrap;
  cursor: help;
  letter-spacing: 0.06em;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  translate: -50% 0;
  z-index: 150;
  background: var(--black);
  color: var(--grey);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8em 1.3em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}
.toast.show { opacity: 1; translate: -50% -0.4rem; }

/* ---------- scroll reveals ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-rise both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
  }
}
@keyframes reveal-rise {
  from { opacity: 0; translate: 0 2.2rem; }
  to { opacity: 1; translate: 0 0; }
}

.js-reveal .reveal {
  opacity: 0;
  translate: 0 2.2rem;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
}
.js-reveal .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- print ---------- */

@media print {
  .site-head, .hero__scroll, .marquee, .film__embed, .toast { display: none !important; }
  body::after, .section--dark::after, .site-foot::after { display: none; }
  .reveal { opacity: 1 !important; translate: 0 0 !important; animation: none !important; }
}
