/* ==========================================================================
   nullsmith.net: Nullsmith Interactive
   The studio's forge (black, steel, one ember) wraps every page: header,
   footer, the home page and the 404. Grave Benders, the first game, lies on
   the bench as things a person could pick up:
   - NIGHT (cloth, bone, lamp amber): the game page's dark scenes
   - PRINT (bone paper, ink, stamp red): notices, the job board, the crew's
     book, the press kit
   Ember never touches paper; amber stays inside the game.
   ========================================================================== */

/* --- Fonts (self-hosted subsets, SIL OFL 1.1; see assets/fonts/OFL.txt) --- */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-400-500.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* STUDIO (from the studio site on main) */
  --ns-bg:       #030304;
  --ns-bg-alt:   #060607;
  --ns-bg-deep:  #020203;
  --ns-text:     #d6dadd;
  --ns-text-hi:  #eceff1;
  --ns-text-mid: #8d9297;   /* ledes, 6.5:1 on --ns-bg */
  --ns-text-nav: #9aa0a5;   /* anything under 24 px, 7.5:1 */
  --ns-ember:    #ff7d29;   /* 7.7:1 */
  --ns-line:     rgba(214, 218, 221, 0.07);

  /* NIGHT */
  --cloth:   #151517;
  --leather: #1B1714;
  --bone:    #D8CFBD;  /* 11.79:1 on cloth */
  --mask:    #B7AD9D;  /*  8.23:1 on cloth */
  --dim:     #9A9284;  /*  5.92:1 on cloth */
  --amber:   #D8923A;  /* the one warm light inside the game */
  --moon:    #8CA8FF;  /* links and focus on night, 7.95:1 */
  /* PRINT */
  --paper:   #D8CFBD;
  --ink:     #1B1A1C;  /* 11.21:1 on paper */
  --ink-2:   #3A3631;  /*  7.75:1 on paper */
  --stamp:   #8F2A2A;
  --print:   #E6DECD;  /* the white border of a photographic print */
  --manila:  #CDB98F;  /* luggage tags on the job board, ink 9.1:1 */

  --serif:   "Spectral", Georgia, "Times New Roman", serif;
  --title:   "Cinzel", Georgia, "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --type:    "Courier Prime", "Courier New", Courier, monospace;
  --hand:    "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --shell:  1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header: 70px;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-sheet: url("../img/paper.webp");
}

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

html {
  background: var(--ns-bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 14px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ns-bg);
  color: var(--ns-text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
p, h1, h2, h3, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ns-ember); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.ns-skip {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 20px;
  background: var(--ns-bg-alt);
  border: 1px solid rgba(255, 125, 41, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ns-text-hi);
  text-decoration: none;
  transition: top 0.16s ease;
}
.ns-skip:focus { top: 14px; }

/* ==========================================================================
   STUDIO
   ========================================================================== */

/* --- Header ------------------------------------------------------------- */
.ns-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 3, 4, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ns-line);
}
@media (max-width: 559px) { .ns-header { position: relative; } }
.ns-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.ns-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.ns-brand img { height: 30px; width: auto; }
.ns-brand__text { display: flex; flex-direction: column; gap: 3px; }
.ns-brand__name { font-family: var(--title); font-size: 15px; letter-spacing: 0.28em; color: #e2e6e9; line-height: 1.2; }
.ns-brand__sub { font-family: var(--mono); font-size: 8px; letter-spacing: 0.4em; color: #868b90; line-height: 1.2; }

.ns-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 2.6vw, 30px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.ns-nav a { display: inline-block; padding: 9px 0; color: var(--ns-text-nav); text-decoration: none; transition: color 0.2s ease; }
.ns-nav a:hover { color: #fff; }
.ns-nav a[aria-current="page"] { color: var(--ns-text-hi); box-shadow: inset 0 -1px 0 var(--ns-ember); }
/* The game page only: one amber Wishlist button at the end of the nav. */
.ns-nav a.ns-wish {
  padding: 8px 14px 7px;
  background: var(--amber);
  color: var(--cloth);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
}
.ns-nav a.ns-wish:hover { background: #E6A04A; color: var(--cloth); }

/* --- Type ----------------------------------------------------------------- */
.ns-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; line-height: 1.5; color: var(--ns-ember); }
.ns-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.16; color: var(--ns-text-hi); text-wrap: pretty; }
.ns-h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.3; color: #e6eaed; }
.ns-lede { font-weight: 300; font-size: clamp(17px, 1.7vw, 19px); line-height: 1.75; color: var(--ns-text-mid); text-wrap: pretty; }
.ns-body { font-size: 17px; line-height: 1.75; color: var(--ns-text-nav); text-wrap: pretty; }
.ns-textlink { color: var(--ns-text-hi); text-decoration: underline; text-decoration-color: rgba(255, 125, 41, 0.6); }
.ns-textlink:hover { color: #fff; text-decoration-color: var(--ns-ember); }

.ns-live { display: flex; align-items: center; gap: 11px; }
.ns-live__dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ns-ember); animation: ns-breath 3.4s ease-in-out infinite; flex: none; }

/* --- Buttons ---------------------------------------------------------------- */
.ns-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  line-height: 1.4;
  padding: 15px 26px;
  border: 1px solid rgba(214, 218, 221, 0.24);
  color: #e2e6e9;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ns-btn:hover { border-color: rgba(255, 125, 41, 0.75); color: #fff; }

/* --- Ember field (home hero only) ------------------------------------------ */
@keyframes ns-drift {
  0%   { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
  14%  { opacity: var(--peak, 0.6); }
  100% { transform: translate3d(var(--sway, 14px), -340px, 0) scale(1); opacity: 0; }
}
@keyframes ns-breath {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.95; }
}
.ns-emberfield { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ns-spark {
  position: absolute;
  bottom: -10px;
  left: var(--x, 50%);
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint, #ffe6c2), rgba(255, 140, 50, 0));
  animation: ns-drift var(--life, 11s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
.ns-spark--deep { --peak: 0.32; filter: blur(0.7px); }
.ns-forgeglow {
  position: absolute;
  left: 50%;
  bottom: -300px;
  width: min(1500px, 190vw);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 110, 30, 0.12) 0%, rgba(255, 80, 16, 0.05) 46%, rgba(0, 0, 0, 0) 76%);
  animation: ns-breath 12s ease-in-out infinite;
}

/* --- Home hero ---------------------------------------------------------------- */
.ns-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(540px, calc(72vh - var(--header)), 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.2vw, 34px);
  padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(40px, 5vw, 60px);
  text-align: center;
}
.ns-hero__glow, .ns-hero__core { position: absolute; pointer-events: none; z-index: -1; }
.ns-hero__glow {
  left: 50%; bottom: -280px;
  width: min(1100px, 150vw); height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 126, 38, 0.16) 0%, rgba(255, 90, 20, 0.06) 42%, rgba(0, 0, 0, 0) 74%);
  animation: ns-breath 9s ease-in-out infinite;
}
.ns-hero__core {
  left: 50%; top: 40%;
  width: min(760px, 110vw); height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 150, 70, 0.12) 0%, rgba(255, 100, 30, 0.05) 40%, rgba(0, 0, 0, 0) 72%);
  animation: ns-breath 6.5s ease-in-out infinite;
}
.ns-hero__mark { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.6vw, 28px); width: 100%; }
.ns-hero__symbol { height: clamp(120px, 23vh, 240px); width: auto; }
.ns-hero__lockup { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.ns-hero__wordmark { width: min(380px, 74vw); height: auto; }
.ns-rule { display: flex; align-items: center; gap: clamp(8px, 2vw, 12px); }
.ns-rule::before, .ns-rule::after { content: ""; display: block; width: clamp(28px, 8vw, 54px); height: 1px; }
.ns-rule::before { background: linear-gradient(90deg, rgba(190, 196, 201, 0) 0%, rgba(190, 196, 201, 0.5) 100%); }
.ns-rule::after  { background: linear-gradient(90deg, rgba(190, 196, 201, 0.5) 0%, rgba(190, 196, 201, 0) 100%); }
.ns-rule span { font-family: var(--title); font-size: clamp(11px, 2.4vw, 15px); letter-spacing: 0.62em; margin-right: -0.62em; color: #a2a7ab; white-space: nowrap; }
.ns-hero__copy { max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ns-hero__line { font-family: var(--serif); font-weight: 300; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.3; color: #e6eaed; text-wrap: balance; }
.ns-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* --- Sections --------------------------------------------------------------------- */
.ns-section { position: relative; border-top: 1px solid var(--ns-line); }
.ns-section--alt { background: var(--ns-bg-alt); }
.ns-section__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

/* --- On the anvil (the Grave Benders block on the studio home page) --------------- */
.ns-anvil .ns-section__inner { padding-top: clamp(56px, 7vw, 88px); gap: clamp(24px, 3.4vw, 36px); }
.ns-anvil__head { display: flex; flex-direction: column; gap: 16px; }
.ns-anvil__title { line-height: 0; }
.ns-anvil__title img { width: min(260px, 64vw); height: auto; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6)); }
.ns-anvil__layout { display: grid; gap: clamp(72px, 9vw, 96px) clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .ns-anvil__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .ns-anvil__story { padding-top: 8px; }
}
.ns-anvil__bench { position: relative; }
.ns-anvil__story { display: flex; flex-direction: column; gap: 18px; max-width: 60ch; }
.ns-anvil__story p { font-size: 1.125rem; line-height: 1.72; color: #b9bec2; }   /* 10.6:1 */
.ns-anvil__story .ns-anvil__hook {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.85rem);
  line-height: 1.32;
  color: var(--ns-text-hi);
  padding-left: 20px;
  border-left: 1px solid rgba(255, 125, 41, 0.55);
}
.ns-anvil__story .ns-anvil__close { color: var(--ns-text-hi); }
.ns-anvil__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 8px; }

/* The key art laid on the bench as a print, the notice pinned over its corner. */
.gb-keyprint {
  position: relative;
  background: var(--print);
  padding: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 22px 40px -18px rgba(0, 0, 0, 0.9);
}
.gb-keyprint img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--cloth); }
@media (min-width: 700px) { .gb-keyprint img { aspect-ratio: 16 / 9; } }
.gb-keyprint__cap {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 4px 9px 3px;
  background: var(--print);
  font-family: var(--type);
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink-2);
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.gb-pinned {
  position: relative;
  z-index: 2;
  margin: -46px 12px 0;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}
/* Two drawing pins, as shadows and heads, at the notice's top corners. */
.gb-pinned::before, .gb-pinned::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9cdd1 0 18%, #6d7176 46%, #2b2d30 100%);
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.45);
}
.gb-pinned::before { left: 14px; }
.gb-pinned::after { right: 18px; top: 12px; }
@media (min-width: 900px) {
  .ns-anvil__bench { margin-bottom: 150px; }
  .gb-pinned {
    position: absolute;
    right: -30px;
    bottom: -150px;
    width: clamp(250px, 44%, 310px);
    margin: 0;
    transform: rotate(-1.2deg);
  }
  .gb-pinned .gb-notice__head { font-size: clamp(1.6rem, 0.9rem + 1vw, 2rem); }
  .gb-pinned .gb-notice__body { font-size: 0.875rem; }
}

/* --- Studio and contact ------------------------------------------------------------- */
.ns-studio__inner { display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .ns-studio__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }
.ns-studio__intro { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.ns-studio__bench { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-left: 20px; border-left: 1px solid rgba(214, 218, 221, 0.12); }
.ns-studio__bench .ns-btn { margin-top: 10px; }

.ns-contact__inner { display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .ns-contact__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.ns-contact__head { display: flex; flex-direction: column; gap: 18px; max-width: 58ch; }
.ns-contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.2;
  color: var(--ns-text-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 125, 41, 0.55);
  word-break: break-word;
}
.ns-contact__mail:hover { color: #fff; border-color: var(--ns-ember); }

/* --- Mailing list (one form, the studio's) ------------------------------------------- */
.ns-signup { display: flex; flex-direction: column; gap: 11px; max-width: 460px; }
.ns-signup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--ns-text-nav); }
.ns-signup__row { display: flex; gap: 9px; flex-wrap: wrap; }
.ns-signup input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  background: rgba(214, 218, 221, 0.04);
  border: 1px solid rgba(214, 218, 221, 0.28);
  color: #e2e6e9;
  padding: 12px 16px;
  font-family: var(--serif);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.ns-signup input::placeholder { color: #80858a; }
.ns-signup input:focus-visible { border-color: rgba(255, 125, 41, 0.75); outline-offset: 2px; }
.ns-signup button {
  flex: 0 0 auto;
  min-height: 48px;
  background: #e2e6e9;
  color: #08090a;
  border: none;
  padding: 12px 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ns-signup button:hover { background: #fff; }
.ns-signup__note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; line-height: 1.6; color: var(--ns-text-nav); min-height: 1.6em; }
.ns-signup__note[data-state="sent"] { color: var(--ns-ember); }
.ns-signup__consent { font-size: 0.9375rem; line-height: 1.6; color: var(--ns-text-nav); }
/* The same form on paper (the game page's closing notice). */
.ns-signup--paper .ns-signup__label, .ns-signup--paper .ns-signup__note, .ns-signup--paper .ns-signup__consent { color: var(--ink-2); }
.ns-signup--paper .ns-signup__note[data-state="sent"] { color: var(--stamp); }
.ns-signup--paper input { background: rgba(255, 255, 255, 0.35); border-color: rgba(27, 26, 28, 0.55); color: var(--ink); }
.ns-signup--paper input::placeholder { color: #524c45; }   /* 5.2:1 on the paper's darkest 5% */
.ns-signup--paper input:focus-visible { border-color: var(--ink); outline-color: var(--ink); }
.ns-signup--paper button { background: var(--ink); color: var(--paper); }
.ns-signup--paper button:hover { background: #000; }
.ns-signup--paper :focus-visible { outline-color: var(--ink); }

/* --- Footer ---------------------------------------------------------------------- */
.ns-footer { border-top: 1px solid var(--ns-line); background: var(--ns-bg-deep); }
.ns-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(34px, 4vw, 52px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  flex-wrap: wrap;
}
.ns-footer__brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: var(--ns-text-nav); }
/* The anvil as a maker's mark: small, dimmed, pressed in. */
.ns-footer__brand img { height: 26px; width: auto; opacity: 0.7; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.06)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.9)); }
.ns-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ns-footer__links a { display: inline-block; padding: 8px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ns-text-nav); text-decoration: none; }
.ns-footer__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ns-ember); }
.ns-footer__legal { width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ns-text-nav); }

/* --- 404 --------------------------------------------------------------------------- */
.ns-404 { min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); }
.ns-404 .ns-hero__actions { margin-top: 8px; }

/* ==========================================================================
   GRAVE BENDERS: the game page, and the game's paper wherever it appears
   ========================================================================== */
.gb-world { background: var(--cloth); color: var(--bone); overflow-x: clip; }
.gb-world :focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; }
.gb-shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Type ------------------------------------------------------------------------ */
.gb-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--bone);
  text-wrap: balance;
}
.gb-lede { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.6; text-wrap: pretty; }
.gb-text p, .gb-prose p { font-size: 1.125rem; line-height: 1.72; text-wrap: pretty; }
.gb-text p + p, .gb-prose p + p { margin-top: 1em; }
.gb-night .gb-text p, .gb-night .gb-prose p { color: var(--mask); }
.gb-night .gb-lede { color: var(--bone); }
.gb-night a:not(.gb-btn):not(.gb-shot) { color: var(--moon); }

/* --- Buttons --------------------------------------------------------------------- */
.gb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px 11px;
  border: 2px solid var(--amber);
  border-radius: 2px;
  background: var(--amber);
  color: var(--cloth);              /* 7.03:1 */
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.gb-btn:hover { background: #E6A04A; border-color: #E6A04A; }
.gb-btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }   /* 11.21:1 */
.gb-btn--ink:hover { background: #000; border-color: #000; }
.gb-btn--bone { background: var(--bone); border-color: var(--bone); color: var(--ink); }   /* on the studio's steel */
.gb-btn--bone:hover { background: #ECE4D3; border-color: #ECE4D3; }
.gb-btn--bone:focus-visible { outline-color: var(--ns-ember); }

/* --- Opening (NIGHT) --------------------------------------------------------------- */
.gb-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(calc(100vh - var(--header)), 980px);
  min-height: min(calc(100svh - var(--header)), 980px);
  background: var(--cloth);
  overflow: hidden;
}
.gb-hero__art, .gb-hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gb-hero__art { z-index: -2; }
.gb-hero__art img { object-fit: cover; object-position: 36% 30%; }
.gb-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21, 21, 23, 0.55) 0%, rgba(21, 21, 23, 0) 18%),
    linear-gradient(180deg, rgba(21, 21, 23, 0) 42%, rgba(21, 21, 23, 0.82) 64%, var(--cloth) 92%);
}
.gb-hero__content {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 24px;
  padding-top: clamp(20px, 4vh, 40px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.gb-hero__titleblock { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gb-hero__title { line-height: 0; }
.gb-wordmark { width: min(74vw, 340px); height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.75)); }
.gb-hero__credit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9);
}
.gb-hero__copy { grid-row: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 34rem; }
.gb-hook {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
  line-height: 1.12;
  color: var(--bone);
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.gb-genre { font-size: 1.125rem; line-height: 1.5; color: var(--bone); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.gb-hero__cta { margin-top: 6px; }
/* Landscape screens: the wide art. Wordmark in the sky between the Warden's
   hat and the moon; the copy sits on the Warden's dark cloak, bottom left. */
@media (min-aspect-ratio: 1001/1000) {
  .gb-hero__art img { object-position: 50% 35%; }
  .gb-hero__scrim {
    background:
      linear-gradient(180deg, rgba(21, 21, 23, 0.6) 0%, rgba(21, 21, 23, 0) 16%),
      linear-gradient(90deg, rgba(21, 21, 23, 0.78) 0%, rgba(21, 21, 23, 0.5) 32%, rgba(21, 21, 23, 0) 52%),
      linear-gradient(180deg, rgba(21, 21, 23, 0) 72%, var(--cloth) 100%);
  }
  .gb-hero__content { justify-items: start; }
  .gb-hero__titleblock { justify-self: center; margin-left: -4vw; }
  .gb-wordmark { width: clamp(240px, 24vw, 380px); }
  .gb-hero__copy { align-items: flex-start; text-align: left; max-width: min(36rem, 46vw); }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 620px) {
  .gb-hero { min-height: 560px; }
  .gb-wordmark { width: 200px; }
}

/* --- NIGHT and PRINT sections ------------------------------------------------------ */
.gb-night { position: relative; background: var(--cloth); color: var(--bone); padding: clamp(64px, 9vw, 120px) 0; }
.gb-paper {
  position: relative;
  background-color: var(--paper);
  background-image: var(--paper-sheet), var(--paper-grain);
  background-size: 512px 512px, 220px 220px;
  color: var(--ink);
  color-scheme: light;
  padding: clamp(72px, 9vw, 128px) 0;
}
.gb-paper .gb-h2, .gb-paper .gb-lede { color: var(--ink); }
.gb-paper p { color: var(--ink-2); }
.gb-paper .gb-lede { color: var(--ink); }
.gb-paper a:not(.gb-btn):not(.gb-shot) { color: var(--ink); }
.gb-paper :focus-visible { outline-color: var(--ink); }

/* Deckled paper edges: two hand-irregular outlines (uneven point spacing, a few
   small tears), so no two edges match. The night colour shows in the notches. */
.gb-deckle-a {
  clip-path: polygon(0% 1.4px, 3.7% 0.9px, 6.8% 1.3px, 8.2% 2.2px, 10.6% 2.8px, 14% 3.5px, 16.4% 3.8px, 18.8% 3px, 22.2% 2.1px, 25.3% 4.2px, 27.8% 6px, 31.5% 3.4px, 33% 1px, 37% 0.5px, 40.2% 0.1px, 41.6% 0px, 45% 0.1px, 48.8% 0.7px, 52.9% 4.3px, 54.8% 7.2px, 58.1% 4.3px, 61.9% 1.8px, 63.7% 1.5px, 67.8% 1px, 71.5% 0.5px, 74.7% 0.2px, 77.2% 0.2px, 79.2% 3.5px, 83.6% 6.7px, 87.2% 3.3px, 88.6% 0.1px, 92.7% 0.7px, 94.9% 1.4px, 97.8% 1.7px, 100% 2.3px, 100% calc(100% - 4.4px), 99.5% calc(100% - 5.4px), 97% calc(100% - 6.7px), 93.7% calc(100% - 5.2px), 90.1% calc(100% - 3.6px), 87.2% calc(100% - 2.9px), 85.2% calc(100% - 2.2px), 83.4% calc(100% - 2.7px), 78.8% calc(100% - 2.9px), 74.3% calc(100% - 2.1px), 71.6% calc(100% - 1.6px), 68.9% calc(100% - 2.3px), 65.3% calc(100% - 3.6px), 61.8% calc(100% - 4.5px), 58.6% calc(100% - 6.9px), 54.5% calc(100% - 9.4px), 50.2% calc(100% - 8px), 46.1% calc(100% - 5.5px), 41.9% calc(100% - 4.8px), 38.3% calc(100% - 4.1px), 36.8% calc(100% - 2.6px), 35.5% calc(100% - 3.9px), 32.2% calc(100% - 6.1px), 28% calc(100% - 3.3px), 26.8% calc(100% - 0.8px), 22.5% calc(100% - 1.1px), 20.2% calc(100% - 0.8px), 16.4% calc(100% - 0.2px), 12.4% 100%, 8.8% calc(100% - 0.4px), 5.1% calc(100% - 1.6px), 2.2% calc(100% - 3.4px), 0% calc(100% - 4.8px));
}
.gb-deckle-b {
  clip-path: polygon(0% 3.8px, 3.9% 3.8px, 5.1% 4.2px, 6.9% 4.5px, 8.5% 4.9px, 12.2% 5.1px, 15.8% 6.3px, 17.3% 7.6px, 20.3% 6.2px, 22.9% 4.9px, 24.7% 4.9px, 28.6% 4.8px, 31.5% 5.3px, 34.5% 5.8px, 36.6% 5.9px, 39.3% 5.8px, 43.4% 6.8px, 46.6% 8px, 49.5% 6.8px, 54% 4.8px, 57.5% 4.2px, 61.1% 4.6px, 63.6% 5.2px, 65.2% 5.6px, 67.7% 6.5px, 72% 7.1px, 73.7% 5.8px, 77.2% 4.5px, 80.2% 4.6px, 83.6% 5px, 86% 4.2px, 88.8% 4.8px, 91.4% 6.1px, 92.6% 4.2px, 94.3% 2.6px, 97% 2.8px, 100% 2.3px, 100% calc(100% - 4.2px), 99.7% calc(100% - 4.2px), 97.4% calc(100% - 3.5px), 93.8% calc(100% - 2.5px), 91% calc(100% - 3.6px), 88.6% calc(100% - 4.8px), 84.3% calc(100% - 2.2px), 82.4% calc(100% - 0.1px), 80.3% calc(100% - 0.6px), 78.6% calc(100% - 0.8px), 77.1% calc(100% - 0.7px), 73.5% calc(100% - 0.9px), 70.1% calc(100% - 1.5px), 66.6% calc(100% - 2.3px), 64.5% calc(100% - 2.3px), 60.8% calc(100% - 3.4px), 56.9% calc(100% - 4.7px), 53.1% calc(100% - 2.2px), 49.2% 100%, 47.4% 100%, 43% calc(100% - 0.2px), 41.1% calc(100% - 0.8px), 37.4% calc(100% - 1.9px), 36.1% calc(100% - 4.7px), 32.6% calc(100% - 6.3px), 29.4% calc(100% - 3.4px), 27.7% calc(100% - 1px), 23.1% calc(100% - 1.4px), 21.1% calc(100% - 1.9px), 17.3% calc(100% - 2.1px), 14.5% calc(100% - 2.1px), 11.1% calc(100% - 2.5px), 7.2% calc(100% - 2.9px), 4% calc(100% - 2.5px), 0% calc(100% - 1.6px));
}

/* --- Rows: text beside a print, never the same split twice in a row ---------------- */
.gb-row { display: grid; gap: 28px clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(36px, 5vw, 60px); }
.gb-row:first-child { margin-top: 0; }
.gb-text { max-width: 62ch; }
@media (min-width: 860px) {
  .gb-row--r  { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gb-row--l  { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .gb-row--l > .gb-print { order: -1; }
  .gb-row--rr { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .gb-row--low > .gb-print { margin-top: 48px; }
  .gb-row--high > .gb-print { margin-top: -24px; }
}

/* --- Prints: photographs with a white border and a typed label -------------------- */
.gb-print {
  position: relative;
  background: var(--print);
  padding: 7px 7px 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 26px -12px rgba(0, 0, 0, 0.7);
}
.gb-paper .gb-print { box-shadow: 0 1px 1px rgba(27, 26, 28, 0.28), 0 14px 24px -14px rgba(27, 26, 28, 0.6); }
.gb-print img, .gb-print video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0E0E10; }
.gb-print__cap { font-family: var(--type); font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); padding: 7px 2px 9px; }
.gb-paper .gb-print__cap, .gb-print .gb-print__cap { color: var(--ink-2); }
.gb-shot { display: block; color: inherit; text-decoration: none; }
.gb-shot:focus-visible { outline-offset: 4px; }
.gb-shot img { transition: filter 0.15s ease; }
.gb-shot:hover img { filter: brightness(1.08); }
@media (min-width: 900px) {
  .gb-tilt-1 { transform: rotate(-0.8deg); }
  .gb-tilt-2 { transform: rotate(0.6deg); }
  .gb-tilt-3 { transform: rotate(-0.35deg); }
  .gb-tilt-4 { transform: rotate(0.45deg); }
}

/* Loops sit in prints too. */
.gb-loopbox { position: relative; background: #0E0E10; }
.gb-loop__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* no-JS poster */
.gb-clipbtn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(216, 207, 189, 0.7);
  border-radius: 2px;
  background: rgba(21, 21, 23, 0.85);
  color: var(--bone);
  font-family: var(--type);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.gb-clipbtn:hover { background: var(--cloth); border-color: var(--bone); }
.gb-clipbtn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* --- Notices (the world's own paper) ---------------------------------------------- */
.gb-notice {
  position: relative;
  background-color: var(--paper);
  background-image: var(--paper-sheet), var(--paper-grain);
  background-size: 512px 512px, 220px 220px;
  color: var(--ink);
  padding: 26px 24px 30px;
}
.gb-notice__issuer {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 3px double var(--ink);
}
.gb-notice__head {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}
.gb-notice__body { font-family: var(--type); font-size: 0.9375rem; line-height: 1.5; color: var(--ink); margin-top: 14px; }
.gb-notice p { color: var(--ink); }
.gb-notice p.gb-margin { color: var(--ink-2); }
/* The Corps poster on the home page: torn off mid-sentence, as it is in the game. */
.gb-notice--torn {
  padding-bottom: 44px;
  clip-path: polygon(0% 0.8px, 4.2% 0.6px, 5.8% 0.7px, 8.8% 0.4px, 13% 1.1px, 16.3% 0.8px, 20.8% 0.6px, 23.5% 7.8px, 27.2% 1.6px, 29.1% 1px, 31.6% 0.7px, 34.9% 1px, 38.5% 1.9px, 41.3% 1.9px, 45.3% 1.8px, 49% 2.3px, 52.5% 3px, 54.6% 6.5px, 56.1% 2.5px, 59.1% 2px, 63.5% 3px, 65.9% 3px, 67.2% 3px, 70.8% 2.2px, 72.9% 1.9px, 76.9% 5.7px, 80.4% 2.3px, 83.2% 1.6px, 85.2% 1.1px, 88.1% 0.6px, 90.7% 0.9px, 95.2% 0.8px, 99.1% 5.9px, 100% 0px, 100% calc(100% - 19.3px), 95.1% calc(100% - 25.3px), 87.8% calc(100% - 12.9px), 84.6% calc(100% - 11.4px), 78.9% calc(100% - 14.9px), 72.7% calc(100% - 5.1px), 70.3% calc(100% - 16.7px), 66.3% calc(100% - 12.8px), 62.8% calc(100% - 26px), 58.3% calc(100% - 9.2px), 54% calc(100% - 27.7px), 51% calc(100% - 19px), 45.2% calc(100% - 28.7px), 42.1% calc(100% - 13.6px), 34.9% calc(100% - 10.8px), 28.9% calc(100% - 6.5px), 23.3% calc(100% - 24px), 18.7% calc(100% - 28.9px), 13% calc(100% - 4px), 9.3% calc(100% - 4.4px), 5.9% calc(100% - 13.4px), 3.9% calc(100% - 12.1px), 0% calc(100% - 5px));
}
/* A notice board card on the game page: a double rule, a little foxing at the edge. */
.gb-notice--board {
  border: 1px solid rgba(27, 26, 28, 0.55);
  outline: 1px solid rgba(27, 26, 28, 0.35);
  outline-offset: -7px;
  box-shadow: inset 0 0 40px rgba(120, 90, 40, 0.14), 0 16px 26px -16px rgba(27, 26, 28, 0.55);
  padding: 30px 28px 34px;
}
.gb-notice--board .gb-notice__body { font-size: 1.125rem; line-height: 1.5; }

/* One stamp per page, with uneven ink (an SVG filter in the page). */
.gb-stamp { display: block; width: 230px; height: auto; color: var(--stamp); transform: rotate(-4deg); margin: 22px 0 -6px auto; }
.gb-stamp text { font-family: var(--display); font-weight: 700; }

/* The crew's pencil: margin notes in a hand (at most one per block). */
.gb-margin {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.12;
  color: var(--ink-2);   /* 7.75:1 on paper */
  transform: rotate(-2.2deg);
  margin-top: 16px;
  max-width: 24ch;
}
.gb-paper p.gb-margin { color: var(--ink-2); font-size: 1.625rem; line-height: 1.12; }
.gb-margin--notice { position: absolute; right: 16px; top: 8px; margin: 0; font-size: 1.5rem; transform: rotate(-6deg); }
.gb-margin--right { margin-left: auto; text-align: right; transform: rotate(1.6deg); }

/* A chalked line, quoted as typed. */
.gb-quote {
  margin: 14px 0 0;
  padding: 10px 0 10px 18px;
  border-left: 3px solid rgba(27, 26, 28, 0.6);
  font-family: var(--type);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}

/* --- The opening notice (PRINT) ----------------------------------------------------- */
.gb-curfew__grid { display: grid; gap: 48px clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .gb-curfew__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.gb-curfew .gb-notice { max-width: 420px; }
@media (min-width: 900px) { .gb-curfew .gb-notice { transform: rotate(-0.9deg); } }
.gb-curfew .gb-h2 { margin-bottom: 22px; }

/* --- Night prose ------------------------------------------------------------------ */
.gb-work .gb-h2, .gb-watch .gb-h2, .gb-crew .gb-h2 { margin-bottom: clamp(28px, 4vw, 44px); max-width: 18ch; }

/* --- The job board: five grounds (PRINT) ------------------------------------------- */
.gb-grounds__head { max-width: 62ch; display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(48px, 6vw, 80px); }
.gb-ground { display: grid; gap: 26px clamp(32px, 5vw, 64px); align-items: start; }
.gb-ground + .gb-ground { margin-top: clamp(64px, 8vw, 104px); }
@media (min-width: 860px) {
  .gb-ground--a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gb-ground--b { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .gb-ground--b .gb-print { margin-top: 56px; }
  .gb-ground--c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gb-ground--c > .gb-print { grid-column: 1 / -1; }
  .gb-ground--c .gb-ground__text { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 64px); }
  .gb-ground--c .gb-ground__text > .gb-tag { grid-column: 1 / -1; }
  .gb-ground--c .gb-ground__text > p + p { margin-top: 0; }
  .gb-ground--d { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .gb-ground--d .gb-print { margin-top: -18px; }
  .gb-ground--e { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
}
.gb-ground__text > p:not(.gb-margin) { font-size: 1.125rem; line-height: 1.72; color: var(--ink-2); }
.gb-ground__text > p + p { margin-top: 1em; }

/* Board tags: the van's own labels, on manila card with a punched hole. */
.gb-tag {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  padding: 12px 20px 12px 46px;
  background: var(--manila);
  color: var(--ink);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  font-weight: 400;
  justify-self: start;
  align-self: start;
}
.gb-tag::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 1px 1px 2px rgba(27, 26, 28, 0.45), 0 0 0 3px #BFA977;
}
.gb-tag__name { font-family: var(--display); font-weight: 700; font-size: 1.625rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.gb-tag__blurb { font-family: var(--type); font-size: 1rem; line-height: 1.3; color: var(--ink); }

/* --- The restless dead (PRINT: a page of the crew's book) --------------------------- */
.gb-dead__grid { display: grid; gap: 48px clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .gb-dead__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.gb-dead__text { max-width: 64ch; }
.gb-dead__text .gb-h2 { margin-bottom: 18px; }
.gb-dead__text > p:not(.gb-margin):not(.gb-lede) { font-size: 1.125rem; line-height: 1.72; margin-top: 1em; }
.gb-dead__media { display: grid; gap: 40px; }
@media (min-width: 960px) { .gb-dead__media { padding-top: 96px; } .gb-dead__media > .gb-print:nth-child(2) { width: 88%; margin-left: auto; } .gb-dead__media > .gb-print:nth-child(3) { width: 82%; } }
.gb-dead__close { font-size: 1.1875rem !important; color: var(--ink) !important; margin-top: 28px !important; }

/* A ledger page: faint blue rules, a red margin line, typed entries on the rules. */
.gb-ledger {
  --rule: 1.75rem;
  margin: 28px 0 0;
  padding: calc(var(--rule) * 0.5) 18px calc(var(--rule) * 0.5) 0;
  background-color: #E9E2D0;
  background-image:
    linear-gradient(90deg, transparent 2.6rem, rgba(143, 42, 42, 0.42) 2.6rem, rgba(143, 42, 42, 0.42) calc(2.6rem + 1px), transparent calc(2.6rem + 1px), transparent calc(2.6rem + 4px), rgba(143, 42, 42, 0.32) calc(2.6rem + 4px), rgba(143, 42, 42, 0.32) calc(2.6rem + 5px), transparent calc(2.6rem + 5px)),
    repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--rule) - 1px), rgba(64, 86, 140, 0.26) calc(var(--rule) - 1px), rgba(64, 86, 140, 0.26) var(--rule));
  background-position: 0 0, 0 calc(var(--rule) * 0.5);
  box-shadow: 0 1px 1px rgba(27, 26, 28, 0.2), 0 12px 22px -16px rgba(27, 26, 28, 0.6);
  font-family: var(--type);
  font-size: 1rem;
  line-height: var(--rule);
  color: var(--ink);
}
.gb-ledger li { padding-left: 3.4rem; }
.gb-ledger__name { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9375rem; }
@media (min-width: 900px) { .gb-ledger { transform: rotate(0.25deg); } }
.gb-margin--understudy { margin: 10px 0 0 auto; text-align: right; transform: rotate(-1.4deg); }

/* --- Home by first light (PRINT) ---------------------------------------------------- */
.gb-home__grid { display: grid; gap: 48px clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .gb-home__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.gb-home .gb-h2 { margin-bottom: 22px; }
.gb-ledgerlines { margin-top: 26px; font-family: var(--type); font-size: 1rem; line-height: 1.5; color: var(--ink); max-width: 56ch; }
.gb-ledgerlines p { display: flex; align-items: baseline; gap: 8px; color: var(--ink) !important; font-size: 1rem !important; margin-top: 4px !important; }
.gb-ledgerlines p > span:first-child { flex: 0 1 auto; }
.gb-ledgerlines p::after { content: ""; order: 1; flex: 1 1 24px; border-bottom: 2px dotted rgba(27, 26, 28, 0.55); transform: translateY(-4px); }
.gb-ledgerlines__amt { order: 2; flex: none; }
.gb-home__close { margin-top: 26px !important; font-size: 1.1875rem !important; color: var(--ink) !important; }

/* --- Screenshots (NIGHT): prints laid out loose, in two widths ---------------------- */
.gb-roll .gb-h2 { margin-bottom: 10px; }
.gb-roll__sub { color: var(--mask); font-size: 1.125rem; }
.gb-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 28px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
@media (min-width: 640px) {
  .gb-shots { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(20px, 3vw, 34px); }
  .gb-shots > li { grid-column: span 6; }
  .gb-shots > li.gb-w7 { grid-column: span 7; }
  .gb-shots > li.gb-w5 { grid-column: span 5; }
  .gb-shots > li.gb-w4 { grid-column: span 4; }
  .gb-shots > li.gb-drop { margin-top: 28px; }
}
@media (min-width: 640px) and (max-width: 899px) { .gb-shots > li.gb-w4 { grid-column: span 6; } }

/* --- The trailer (NIGHT) ------------------------------------------------------------ */
.gb-trailer { padding-top: 0; }
.gb-trailer__frame { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(90, 99, 112, 0.6); }
.gb-trailer__frame picture { position: absolute; inset: 0; z-index: -1; }
.gb-trailer__frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.gb-trailer__body {
  min-height: clamp(280px, 40vw, 500px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(21, 21, 23, 0) 20%, rgba(21, 21, 23, 0.92) 100%);
}
.gb-trailer__body p { color: var(--bone); max-width: 48ch; font-size: 1.125rem; }
.gb-label {
  display: inline-block;
  padding: 5px 10px 4px;
  border: 1px solid rgba(216, 207, 189, 0.75);
  font-family: var(--type);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(21, 21, 23, 0.6);
}
.gb-trailer__note { color: var(--mask) !important; font-size: 0.9375rem !important; }

/* --- Closing (PRINT) ---------------------------------------------------------------- */
.gb-close__grid { display: grid; gap: 48px clamp(40px, 6vw, 88px); align-items: end; }
@media (min-width: 900px) { .gb-close__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.gb-close .gb-h2 { margin-bottom: 18px; }
.gb-close .gb-prose > p { margin-top: 18px; }
.gb-close .gb-prose > p.gb-lede { margin-top: 0; }
.gb-close__last {
  margin-top: clamp(48px, 6vw, 72px) !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.1;
  color: var(--ink) !important;
}

/* --- Lightbox ----------------------------------------------------------------------- */
.gb-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 11, 0.96);
  color: var(--bone);
}
.gb-lightbox::backdrop { background: rgba(10, 10, 11, 0.9); }
.gb-lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.gb-lightbox :focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; }
.gb-lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gutter); }
.gb-lb__count { font-family: var(--type); color: var(--mask); }
.gb-lb__stage { min-height: 0; display: grid; place-items: center; padding: 0 var(--gutter); }
.gb-lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gb-lb__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) 18px; }
.gb-lb__cap { flex: 1 1 30ch; font-family: var(--type); color: var(--bone); }
.gb-lb__nav { display: flex; gap: 10px; }
.gb-lb__btn {
  min-width: 48px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid rgba(216, 207, 189, 0.5);
  border-radius: 2px;
  background: var(--cloth);
  color: var(--bone);
  font-family: var(--type);
  font-size: 1rem;
  cursor: pointer;
}
.gb-lb__btn:hover { border-color: var(--bone); }

/* ==========================================================================
   PRESS KIT: a printed dossier between the studio's header and footer
   ========================================================================== */
.pk-main { color: var(--ink); padding: clamp(20px, 3vw, 36px) 0 clamp(48px, 6vw, 80px); }
.pk-main :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pk-main a { color: var(--ink); }
.pk-main .gb-btn--ink { color: var(--paper); }
.pk-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); }
.pk-eyebrow { font-family: var(--type); font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pk-title { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 2rem + 5vw, 5.25rem); line-height: 0.9; margin-top: 8px; color: var(--ink); }
.pk-intro { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--ink); max-width: 52ch; margin-top: 16px; }
.pk-zip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; padding: 22px 24px; border: 2px solid var(--ink); background: rgba(27, 26, 28, 0.04); }
.pk-zip p { flex: 1 1 30ch; color: var(--ink-2); }
.pk-usage { margin-top: 16px; color: var(--ink-2); }
.pk-jump { margin-top: 10px; font-family: var(--type); color: var(--ink-2); }
.pk-jump a { display: inline-block; padding: 6px 0; }
.pk-section { padding: clamp(40px, 6vw, 64px) 0; border-top: 2px solid var(--ink); }
.pk-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem); line-height: 1; color: var(--ink); margin-bottom: 20px; }
.pk-h2 + p, .pk-section p { color: var(--ink-2); max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; }
.pk-section p + p { margin-top: 12px; }
.pk-section .pk-h2:not(:first-child) { margin-top: 40px; }
.pk-two { display: grid; gap: 32px 56px; }
@media (min-width: 960px) { .pk-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pk-facts { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid rgba(27, 26, 28, 0.35); }
.pk-facts dt, .pk-facts dd { padding: 10px 0; border-bottom: 1px solid rgba(27, 26, 28, 0.35); }
.pk-facts dd { overflow-wrap: anywhere; color: var(--ink); font-size: 1.0625rem; line-height: 1.55; }
@media (max-width: 559px) { .pk-facts dt { padding-bottom: 0; border-bottom: 0; } .pk-facts dd { padding-top: 2px; } }
@media (min-width: 560px) { .pk-facts { grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); } }
.pk-facts dt { font-family: var(--type); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9375rem; color: var(--ink-2); padding-right: 20px; }
.pk-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 24px; }
.pk-card { display: flex; flex-direction: column; gap: 8px; }
.pk-card .gb-print { margin-bottom: 4px; }
.pk-card__title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: var(--ink) !important; }
.pk-card__dl { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9375rem !important; }
.pk-card__dl a { display: inline-block; padding: 4px 0; font-family: var(--type); }
.pk-note { font-family: var(--type); font-size: 0.875rem; }
.pk-tile { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 20px; border: 1px solid rgba(27, 26, 28, 0.5); }
.pk-tile img { max-height: 150px; width: auto; }
.pk-grid--art { align-items: start; }
@media (min-width: 700px) { .pk-grid--art { grid-template-columns: 8fr 3fr; } }
.pk-grid--art .gb-print img { aspect-ratio: auto; }
.pk-grid--marks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pk-grid--marks .pk-tile { aspect-ratio: 2 / 1; }
.pk-grid--marks .pk-tile img { max-height: 60px; }
.pk-grid--marks .pk-tile--square img { max-height: 120px; }
.pk-tile--night { background: var(--cloth); }
.pk-tile--steel { background: var(--ns-bg); }
.pk-tile--paper { background: var(--paper); }

/* --- Motion preference -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ns-emberfield { display: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .gb-clipbtn { display: none; }
}
