/* ============================================================
   The Time Machine Launch Site: Victorian Scientific-Romance
   Palette: dark slate, brass, verdigris/patina, pale ivory
   Fonts: Cinzel (display), EB Garamond (body), Cormorant Garamond (italic)
   Register: penny-dreadful engraving meets technical illustration
   ============================================================ */

/* ---- Self-hosted fonts: latin + latin-ext, font-display:swap ---- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cinzel-normal-400-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cinzel-normal-400-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cinzel-normal-500-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cinzel-normal-500-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cinzel-normal-600-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cinzel-normal-600-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cinzel-normal-700-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cinzel-normal-700-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-400-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-400-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-500-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-500-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-600-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-600-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-normal-400-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-normal-400-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-italic-400-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-italic-400-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-italic-500-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-italic-500-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-normal-400-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-normal-400-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-normal-500-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-normal-500-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-normal-600-latin-ext-s1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-normal-600-latin-s1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Design tokens: brass, verdigris, deep slate
   ============================================================ */
:root {
  /* Core palette */
  --slate:       #0d1117;
  --slate-2:     #131920;
  --slate-3:     #1c2630;
  --slate-4:     #253040;

  /* Brass family */
  --brass:       #c8922a;
  --brass-soft:  #e0b060;
  --brass-dim:   #8a6018;
  --brass-faint: rgba(200,146,42,.12);

  /* Verdigris / patina family */
  --patina:      #5a8a6a;
  --patina-soft: #7ab88a;
  --patina-dim:  #3a6048;
  --patina-glow: rgba(90,138,106,.18);

  /* Ivory / paper */
  --ivory:       #f0e8d4;
  --ivory-2:     #e4d8be;
  --ivory-line:  #c8b88a;

  /* Text tones */
  --text:        #e8dcc6;
  --text-2:      #d0c0a0;
  --text-3:      #a08868;
  --muted:       #7a6848;
  --muted-2:     #5c5038;

  /* Accent: deep rust for the sealing-wax label */
  --rust:        #9a4020;
  --rust-soft:   #c06040;

  /* Typography */
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body:    "EB Garamond", "Garamond", Georgia, serif;
  --font-italic:  "Cormorant Garamond", "Palatino Linotype", serif;

  --radius:      3px;
  --radius-lg:   6px;
  --max-w:       1080px;
  --section-gap: 100px;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(130% 80% at 60% 5%, #1a2230 0%, #0d1117 50%, #080d12 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Fine cross-hatch grain: evokes Victorian engraving paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient brass glow: like lamplight from the laboratory */
body::after {
  content: "";
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,42,.055) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1; }
a { color: var(--brass-soft); text-decoration: none; }
a:hover { color: var(--patina-soft); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ---- Utility ---------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout shells ---------------------------------------- */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section-inner--narrow { max-width: 680px; }

.section-header { text-align: center; margin-bottom: 54px; }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 10px;
}
.section-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  color: var(--text-3);
  margin: 0;
}

/* ---- Site header ------------------------------------------ */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(200,146,42,.12);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-brand {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-brand:hover { color: var(--brass-soft); }
.header-demo-badge {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(154,64,32,.18);
  color: var(--rust-soft);
  border: 1px solid rgba(154,64,32,.35);
  border-radius: 2px;
  padding: 2px 7px;
}

/* ---- Inspect hint ----------------------------------------- */
.inspect-hint {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--muted-2);
  text-transform: uppercase;
  padding: 18px 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.inspect-hint strong { color: var(--brass-soft); font-weight: 500; }
.hint-seal-example {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass) 60%, var(--brass-dim));
  color: #1a1000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  box-shadow: 0 0 0 3px rgba(200,146,42,.2);
  animation: seal-pulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}
.hint-seal-example::after { content: "i"; transform: translateY(-1px); }

/* ---- Inspectable affordance ------------------------------- */
.inspectable {
  position: relative;
  cursor: pointer;
  transition: filter .35s, transform .35s;
}
.inspectable:focus-visible {
  outline: 2px solid var(--brass-soft);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.inspectable:hover { filter: drop-shadow(0 0 18px rgba(90,138,106,.25)); }

.seal {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass) 60%, var(--brass-dim));
  color: #1a1000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.35);
  animation: seal-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
  transition: transform .3s;
}
.seal::after { content: "i"; transform: translateY(-1px); display: block; }
.inspectable:hover .seal,
.inspectable:focus-visible .seal { transform: scale(1.15); }

@keyframes seal-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.6), 0 0 0 0 rgba(200,146,42,.55); }
  50% { box-shadow: 0 2px 10px rgba(0,0,0,.6), 0 0 0 8px rgba(200,146,42,0); }
}

/* ---- Dim + spotlight -------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, rgba(8,12,18,.65), rgba(3,5,8,.95));
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s;
  z-index: 40;
}
body.dimmed .scrim {
  opacity: 1;
  pointer-events: auto;
}
body.dimmed main,
body.dimmed .site-header,
body.dimmed .inspect-hint,
body.dimmed .site-footer {
  filter: brightness(.28) saturate(.5);
  transition: filter .42s;
}
.inspectable.is-active {
  filter: none !important;
}

/* ---- Explain card ----------------------------------------- */
.explain-card {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(.95);
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s, transform .42s;
  background: linear-gradient(172deg, #faf0da 0%, #f0e2c0 100%);
  color: #2a1e08;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ivory-line);
  box-shadow:
    0 0 0 1px rgba(200,146,42,.3),
    0 50px 100px rgba(0,0,0,.8),
    0 0 80px rgba(200,146,42,.12);
  padding: 36px 36px 32px;
}
body.dimmed .explain-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Technical-drawing corner marks on the explain card */
.explain-card::before,
.explain-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(200,146,42,.45);
  border-style: solid;
}
.explain-card::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.explain-card::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}

.explain-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #8a6830;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.explain-close:hover { background: rgba(154,64,32,.1); color: var(--rust); }

.explain-label {
  font-family: var(--font-display);
  letter-spacing: .22em;
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
}
.explain-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 3vw, 23px);
  margin: 0 0 14px;
  color: #1a1000;
  line-height: 1.15;
}
.explain-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: #3a2c10;
  margin: 0 0 18px;
}

/* SMMB canon receipt card */
.smmb-card {
  background: #fff;
  border: 1px solid var(--ivory-line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 18px;
}
.smmb-src {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8a6830;
  margin-bottom: 8px;
}
.smmb-quote {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: #3a2c10;
}
.explain-rejected {
  font-size: 14px;
  color: #6a3010;
  border-top: 1px dashed var(--ivory-line);
  padding-top: 14px;
  line-height: 1.55;
}
.explain-rejected strong { color: #4a1e06; }
.placeholder-note {
  display: block;
  font-style: italic;
  font-size: 12px;
  color: #8a6830;
  margin-top: 6px;
}

/* ---- HERO ------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 60px 0 var(--section-gap);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- Cover placeholder (no image yet: pending approval) ---- */
.hero-cover-wrap { display: block; }
.cover-plate {
  aspect-ratio: 3 / 4.4;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(175deg, #1a2030 0%, #0d1520 60%, #080d14 100%);
  box-shadow:
    0 30px 70px rgba(0,0,0,.7),
    inset 0 0 0 1px rgba(200,146,42,.2),
    inset 0 0 40px rgba(200,146,42,.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px 16px;
  position: relative;
}

/* Technical-illustration corner marks */
.cover-plate::before,
.cover-plate::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(200,146,42,.4);
  border-style: solid;
  z-index: 3;
}
.cover-plate::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.cover-plate::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* Cover art image: full-bleed behind typography */
.cover-plate picture { position: absolute; inset: 0; z-index: 0; }
.cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* Scrim: dark gradient overlaying the placeholder to ensure text legibility */
.cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(8,12,18,.55) 0%,
      rgba(8,12,18,.25) 35%,
      rgba(8,12,18,.10) 60%,
      rgba(8,12,18,.0) 78%,
      rgba(8,12,18,.35) 100%
    );
  pointer-events: none;
}

/* Verdigris shimmer line: the gear-shaft aesthetic */
.cover-verdigris-line {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 1px;
  height: 44%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--patina), rgba(90,138,106,.6), var(--patina), transparent);
  opacity: .5;
  filter: blur(.4px);
  box-shadow: 0 0 16px var(--patina-dim);
  z-index: 2;
}

.cover-top {
  font-family: var(--font-display);
  letter-spacing: .26em;
  font-size: 9px;
  color: var(--brass-soft);
  text-align: center;
  position: relative;
  z-index: 3;
}
.cover-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
}
.cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 4vw, 26px);
  color: #f0e4c4;
  letter-spacing: .1em;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 20px rgba(0,0,0,.8);
}
.cover-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: .03em;
  text-align: center;
}

/* Hero text */
.kicker {
  font-family: var(--font-display);
  letter-spacing: .34em;
  font-size: 11px;
  color: var(--patina);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.book-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 76px);
  line-height: .92;
  color: #f0e4c4;
  letter-spacing: .025em;
  margin: 0;
}
.book-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--brass-soft);
  margin: 10px 0 28px;
  font-weight: 400;
}
.tagline-wrap { display: inline-block; }
.tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: #dcd0b4;
  max-width: 34ch;
  margin: 0;
  border-left: 2px solid rgba(200,146,42,.35);
  padding-left: 18px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-sub-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  font-family: var(--font-display);
  letter-spacing: .14em;
  font-size: 12px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: filter .2s, transform .15s, background .2s;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brass-soft), var(--brass));
  color: #1a1000;
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--brass-soft);
  border: 1px solid rgba(200,146,42,.45);
}
.btn-ghost:hover { background: rgba(200,146,42,.07); }

/* ---- Section dividers ------------------------------------- */
section + section {
  border-top: 1px solid rgba(200,146,42,.09);
}
section { padding: var(--section-gap) 0; }

/* ---- Synopsis --------------------------------------------- */
.synopsis-wrap { padding: 4px; }
.synopsis-text {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.72;
  color: var(--text-2);
}
.synopsis-text p + p { margin-top: 1.2em; }

/* ---- Cast: typographic dossier cards ---------------------- */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
@media (max-width: 600px) {
  .cast-grid { grid-template-columns: 1fr; gap: 18px; }
}

.cast-card {
  background: linear-gradient(160deg, rgba(28,38,52,.9), rgba(14,20,28,.95));
  border: 1px solid rgba(200,146,42,.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  position: relative;
}
.cast-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200,146,42,.3), transparent);
}
.cast-card:hover {
  border-color: rgba(200,146,42,.4);
  transform: translateY(-3px);
}

/* Dossier header band */
.cast-dossier-band {
  background: rgba(200,146,42,.06);
  border-bottom: 1px solid rgba(200,146,42,.14);
  padding: 12px 16px 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cast-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0;
  line-height: 1.2;
}
.cast-role {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  color: var(--patina-soft);
  margin: 0;
  line-height: 1.2;
}

/* Canon receipt within the card */
.cast-canon-receipt {
  border-left: 3px solid rgba(200,146,42,.35);
  margin: 14px 16px 0;
  padding: 0 0 0 12px;
}
.cast-receipt-label {
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.cast-quote {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.cast-citation {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 8px;
  display: block;
}

/* Role description below the receipt */
.cast-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 12px 16px 16px;
}

/* ---- Trailer placeholder ---------------------------------- */
.trailer-placeholder {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(200,146,42,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20,28,38,.9), rgba(10,14,20,.95));
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Technical corner ticks on trailer */
.trailer-placeholder::before,
.trailer-placeholder::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(200,146,42,.3);
  border-style: solid;
}
.trailer-placeholder::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.trailer-placeholder::after  { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.trailer-inner {
  text-align: center;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.trailer-icon { opacity: .65; }
.trailer-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0;
}
.trailer-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 15px;
  color: var(--text-3);
  max-width: 38ch;
  margin: 0;
}
.staged-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(90,138,106,.1);
  color: var(--patina-soft);
  border: 1px solid rgba(90,138,106,.3);
  border-radius: 2px;
  padding: 4px 10px;
}

/* ---- Social pack ------------------------------------------ */
.social-grid-wrap { display: block; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.social-frame {
  background: linear-gradient(160deg, rgba(28,36,50,.85), rgba(14,18,26,.9));
  border: 1px solid rgba(200,146,42,.15);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-frame-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.social-copy {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.social-copy-sub {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

/* ---- Join the list ---------------------------------------- */
.join-form-wrap {
  background: linear-gradient(160deg, rgba(24,34,46,.85), rgba(12,18,26,.9));
  border: 1px solid rgba(200,146,42,.2);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
}
@media (max-width: 480px) {
  .join-form-wrap { padding: 28px 20px 24px; }
}
.join-form { display: flex; flex-direction: column; gap: 0; }
.join-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.join-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(200,146,42,.28);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.join-input:focus {
  border-color: rgba(200,146,42,.65);
  background: rgba(255,255,255,.08);
}
.join-input::placeholder { color: var(--muted-2); }
.btn-join { flex-shrink: 0; }
.join-note {
  font-size: 12px;
  color: var(--muted-2);
  margin: 10px 0 0;
}
.join-thanks { text-align: center; padding: 10px 0; }
.join-thanks-msg {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 17px;
  color: var(--brass-soft);
  margin: 0;
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(200,146,42,.1);
  padding: 40px 0 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 680px;
  margin: 0;
}
.footer-back {
  font-size: 12px;
  color: var(--muted-2);
  margin: 0;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 600px) {
  :root { --section-gap: 64px; }
  .hero { padding: 40px 0 var(--section-gap); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cast-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
}
