/* ==========================================================================
   CASEFILE — landing page
   Conspiracy board (cork, pins, red string, taped paper) meets art deco
   (jade + brass, stepped frames, sunburst). Moody, but legibility first.

   Sections:  1. Fonts   2. Tokens   3. Base   4. Header   5. Buttons
              6. Board pieces (paper, pins, tape, stamps, string)
              7. Deco pieces (frame, rules, medallions)   8. Hero
              9. Sections (premise, module, series, contact)   10. Footer
              11. Responsive   12. Motion & a11y
   ========================================================================== */

/* 1. Fonts — self-hosted, all open licence (OFL / Apache 2.0) ------------- */
@font-face {
  font-family: 'Limelight';
  src: url('../fonts/Limelight-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('../fonts/JosefinSans-Variable.ttf') format('truetype');
  font-weight: 100 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('../fonts/JosefinSans-Italic-Variable.ttf') format('truetype');
  font-weight: 100 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Special Elite';
  src: url('../fonts/SpecialElite-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* board */
  --cork: #1b1613;
  --cork-2: #2a211b;
  --string: #c0392b;

  /* jade (primary) */
  --jade: #1fae83;
  --jade-bright: #4fd1a5;
  --jade-deep: #0d5f48;
  --jade-ink: #06231b;

  /* brass (deco accent) */
  --brass: #cfa64b;
  --brass-bright: #e8c56b;
  --brass-dim: #8f6f2e;

  /* paper */
  --paper: #efe6d0;
  --paper-2: #e2d6b8;
  --manila: #dcc78f;
  --manila-2: #c8b070;
  --ink: #1c1814;
  --ink-soft: #4a4139;

  /* text on cork */
  --cream: #efe6d0;
  --cream-dim: #c4b79f;

  --font-display: 'Limelight', 'Poiret One', Georgia, serif;
  --font-body: 'Josefin Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-type: 'Special Elite', 'Courier New', Courier, monospace;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);

  --shadow-paper:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 22px 36px -18px rgba(0, 0, 0, .9),
    0 6px 12px -6px rgba(0, 0, 0, .6);
  --shadow-frame:
    0 30px 60px -30px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .6);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cork) url('../assets/cork.svg') center / 512px 512px repeat;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;          /* Josefin runs small; 18px keeps body copy readable */
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* fixed vignette so the board feels lit from the middle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--jade-bright); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brass-bright); }

:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75em 1.25em;
  background: var(--jade);
  color: var(--jade-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* everything sits above the vignette */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 22, 19, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(207, 166, 75, .35);
}
.site-header::after {           /* thin jade hairline under the brass rule */
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jade) 30%, var(--jade) 70%, transparent);
  opacity: .6;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: .85rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.brand:hover { color: var(--cream); }
.brand__mark {
  width: 28px; height: 28px;
  flex: none;
}

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}
.site-nav a {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--jade-bright); border-bottom-color: var(--jade-bright); }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 1.05em 1.7em .95em;   /* Josefin sits high; nudge optical centre */
  border: 2px solid currentColor;
  position: relative;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: var(--jade);
  color: var(--jade-ink);
  border-color: var(--jade);
  /* deco double outline: board gap then a brass hairline */
  box-shadow: 0 0 0 4px var(--cork), 0 0 0 5px var(--brass);
}
.btn--primary:hover {
  background: var(--jade-bright);
  color: var(--jade-ink);
  box-shadow: 0 0 0 4px var(--cork), 0 0 0 5px var(--brass-bright), 0 14px 30px -12px rgba(79, 209, 165, .6);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--brass-bright);
  border-color: var(--brass);
  background: rgba(0, 0, 0, .25);
}
.btn--ghost:hover {
  color: var(--cork);
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.btn--sm { font-size: .78rem; padding: .85em 1.3em .75em; }

/* 6. Board pieces ---------------------------------------------------------- */

/* --- paper ---------------------------------------------------------------- */
.paper {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  box-shadow: var(--shadow-paper);
}
.paper a { color: var(--jade-deep); }
.paper a:hover { color: var(--brass-dim); }

.paper--manila {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(180deg, var(--manila), var(--manila-2));
}

/* pinned / taped items get a little tilt; set --tilt inline on the element */
.pinned {
  transform: rotate(var(--tilt, 0deg));
}

/* --- pushpin -------------------------------------------------------------- */
.pin {
  position: absolute;
  top: -11px;
  left: 50%;
  margin-left: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  z-index: 3;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55) 0 18%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 50% 55%, #e0574a, #8e1f16 75%);
  box-shadow:
    inset 0 -3px 4px rgba(0, 0, 0, .35),
    0 2px 2px rgba(0, 0, 0, .55),
    0 12px 14px -4px rgba(0, 0, 0, .8);
}
.pin[data-color="brass"] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6) 0 18%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 50% 55%, #efd58a, #8f6f2e 75%);
}
.pin[data-color="jade"] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55) 0 18%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 50% 55%, #4fd1a5, #0d5f48 75%);
}
.pin--left  { left: 1.5rem; margin-left: 0; }
.pin--right { left: auto; right: 1.5rem; margin-left: 0; }
.pin--low   { top: auto; bottom: 1rem; }      /* pinned through the lower part of the card */

/* --- tape ----------------------------------------------------------------- */
.tape {
  position: absolute;
  z-index: 3;
  width: 120px; height: 32px;
  background: rgba(239, 230, 208, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  /* frayed ends */
  clip-path: polygon(0 8%, 3% 0, 6% 10%, 100% 0, 97% 50%, 100% 100%, 6% 92%, 3% 100%, 0 90%);
}
.tape--tl { top: -14px; left: -34px; transform: rotate(-38deg); }
.tape--tr { top: -14px; right: -34px; transform: rotate(38deg); }
.tape--top { top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); }

/* --- rubber stamp --------------------------------------------------------- */
.stamp {
  display: inline-block;
  font-family: var(--font-type);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  padding: .55em .8em .45em;
  border: 3px double currentColor;
  border-radius: 3px;
  color: var(--jade-bright);
  transform: rotate(var(--stamp-tilt, -5deg));
  opacity: .92;
  white-space: nowrap;
  /* slightly uneven ink */
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 100%);
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 100%);
}
.stamp--brass { color: var(--brass-bright); }
.stamp--red   { color: #9b2b22; }
.stamp--jade-ink { color: var(--jade-deep); }
.paper .stamp { mix-blend-mode: multiply; }

/* --- typewriter text ------------------------------------------------------ */
.typewriter {
  font-family: var(--font-type);
  font-size: .95rem;
  line-height: 1.5;
  letter-spacing: .01em;
}
.paper .typewriter { color: var(--ink-soft); }

/* --- red string (drawn by js/board.js) ----------------------------------- */
[data-board] { position: relative; }
.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.strings__shadow path {
  fill: none;
  stroke: rgba(0, 0, 0, .45);
  stroke-width: 3;
  stroke-linecap: round;
}
.strings__thread path {
  fill: none;
  stroke: var(--string);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.strings__pins circle { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6)); }

/* 7. Deco pieces ----------------------------------------------------------- */

/* --- stepped double frame ------------------------------------------------- */
.deco-frame {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: rgba(27, 22, 19, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 2px solid var(--brass);
  box-shadow: var(--shadow-frame);
}
.deco-frame::before {            /* inner jade hairline */
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--jade);
  opacity: .8;
  pointer-events: none;
}
.deco-frame::after {             /* brass corner blocks */
  content: '';
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background:
    linear-gradient(var(--brass), var(--brass)) 0 0 / 12px 12px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 0 / 12px 12px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 0 100% / 12px 12px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 100% / 12px 12px no-repeat;
}

/* --- section heading: an ivory calling card pinned to the board ---------- */
.section-head {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
/* The heading is the top of a letterhead sheet, torn off and pinned up.
   Three layers: card (shadow + pin) > fiber (pale torn fringe) > paper (clip + border). */
.section-head__card {
  position: relative;
  display: inline-block;
  min-width: min(100%, 360px);
  max-width: 100%;
  color: var(--ink);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)) drop-shadow(0 18px 16px rgba(0, 0, 0, .55));
}
.section-head__fiber {
  background: #fbf6ea;
  clip-path: var(--tear-fiber);
}
.section-head__paper {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(2rem, 5vw, 3.5rem) calc(clamp(1.3rem, 2.5vw, 1.8rem) + 28px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .55), transparent 65%),
    linear-gradient(180deg, #f6efdd, #eadfc6);
  clip-path: var(--tear-paper);
}
.section-head__paper::before {   /* engraved double border, open at the torn edge */
  content: '';
  position: absolute;
  inset: 8px 8px -40px;
  border: 2px solid var(--brass-dim);
  border-bottom: 0;
  pointer-events: none;
}
.section-head__paper::after {    /* inner jade hairline */
  content: '';
  position: absolute;
  inset: 12px 12px -40px;
  border: 1px solid var(--jade-deep);
  border-bottom: 0;
  opacity: .55;
  pointer-events: none;
}
.section-head__card .pin { top: -9px; }

/* Torn edges: one per section so no two look alike. Generated, not hand-drawn;
   regenerate or tweak freely. Fallback (no clip-path support): a straight edge. */
.tear-1 {
  --tear-paper: polygon(0 0, 100% 0, 100.0% calc(100% - 2.0px), 97.6% calc(100% - 4.0px), 94.6% calc(100% - 6.5px), 90.0% calc(100% - 3.1px), 85.9% calc(100% - 4.6px), 84.1% calc(100% - 4.0px), 79.7% calc(100% - 4.7px), 76.9% calc(100% - 3.4px), 73.0% calc(100% - 6.6px), 71.7% calc(100% - 9.2px), 68.3% calc(100% - 7.4px), 63.6% calc(100% - 10.5px), 61.0% calc(100% - 10.8px), 58.5% calc(100% - 10.0px), 54.8% calc(100% - 11.7px), 51.3% calc(100% - 12.4px), 48.8% calc(100% - 11.9px), 45.2% calc(100% - 11.2px), 41.6% calc(100% - 11.5px), 38.3% calc(100% - 13.9px), 34.9% calc(100% - 12.3px), 33.0% calc(100% - 5.2px), 28.3% calc(100% - 22.6px), 24.8% calc(100% - 4.9px), 23.1% calc(100% - 6.4px), 18.3% calc(100% - 8.7px), 17.0% calc(100% - 6.2px), 13.5% calc(100% - 4.2px), 8.6% calc(100% - 24.1px), 6.1% calc(100% - 9.5px), 2.6% calc(100% - 10.5px), 0.0% calc(100% - 13.6px));
  --tear-fiber: polygon(0 0, 100% 0, 100.0% calc(100% - 0.0px), 97.6% calc(100% - 2.6px), 94.6% calc(100% - 3.3px), 90.0% calc(100% - 0.8px), 85.9% calc(100% - 2.5px), 84.1% calc(100% - 0.3px), 79.7% calc(100% - 0.0px), 76.9% calc(100% - 0.0px), 73.0% calc(100% - 5.1px), 71.7% calc(100% - 6.0px), 68.3% calc(100% - 0.0px), 63.6% calc(100% - 6.8px), 61.0% calc(100% - 8.4px), 58.5% calc(100% - 7.5px), 54.8% calc(100% - 9.8px), 51.3% calc(100% - 3.3px), 48.8% calc(100% - 10.2px), 45.2% calc(100% - 8.4px), 41.6% calc(100% - 9.0px), 38.3% calc(100% - 11.7px), 34.9% calc(100% - 10.2px), 33.0% calc(100% - 4.1px), 28.3% calc(100% - 19.5px), 24.8% calc(100% - 1.0px), 23.1% calc(100% - 4.4px), 18.3% calc(100% - 6.6px), 17.0% calc(100% - 0.0px), 13.5% calc(100% - 3.0px), 8.6% calc(100% - 22.0px), 6.1% calc(100% - 7.9px), 2.6% calc(100% - 8.9px), 0.0% calc(100% - 10.4px));
}
.tear-2 {
  --tear-paper: polygon(0 0, 100% 0, 100.0% calc(100% - 11.5px), 96.5% calc(100% - 8.3px), 92.4% calc(100% - 10.8px), 91.5% calc(100% - 14.0px), 88.0% calc(100% - 7.0px), 83.5% calc(100% - 24.9px), 79.6% calc(100% - 10.3px), 77.2% calc(100% - 7.8px), 73.7% calc(100% - 8.5px), 71.8% calc(100% - 8.2px), 68.7% calc(100% - 11.5px), 64.7% calc(100% - 14.2px), 60.9% calc(100% - 15.2px), 56.9% calc(100% - 18.0px), 55.5% calc(100% - 18.0px), 50.7% calc(100% - 18.0px), 47.2% calc(100% - 15.4px), 45.5% calc(100% - 12.3px), 41.9% calc(100% - 11.5px), 39.9% calc(100% - 14.0px), 35.7% calc(100% - 13.4px), 33.4% calc(100% - 10.2px), 28.4% calc(100% - 7.9px), 25.2% calc(100% - 5.2px), 21.8% calc(100% - 5.5px), 20.2% calc(100% - 3.3px), 15.6% calc(100% - 6.5px), 13.4% calc(100% - 10.0px), 10.3% calc(100% - 10.3px), 6.9% calc(100% - 11.1px), 4.3% calc(100% - 11.0px), 0.0% calc(100% - 7.8px));
  --tear-fiber: polygon(0 0, 100% 0, 100.0% calc(100% - 8.1px), 96.5% calc(100% - 4.5px), 92.4% calc(100% - 7.7px), 91.5% calc(100% - 7.1px), 88.0% calc(100% - 4.8px), 83.5% calc(100% - 21.9px), 79.6% calc(100% - 9.0px), 77.2% calc(100% - 6.0px), 73.7% calc(100% - 3.3px), 71.8% calc(100% - 5.1px), 68.7% calc(100% - 9.8px), 64.7% calc(100% - 11.6px), 60.9% calc(100% - 7.2px), 56.9% calc(100% - 14.2px), 55.5% calc(100% - 15.5px), 50.7% calc(100% - 15.8px), 47.2% calc(100% - 13.9px), 45.5% calc(100% - 10.4px), 41.9% calc(100% - 7.9px), 39.9% calc(100% - 11.6px), 35.7% calc(100% - 9.5px), 33.4% calc(100% - 6.9px), 28.4% calc(100% - 6.2px), 25.2% calc(100% - 3.2px), 21.8% calc(100% - 0.0px), 20.2% calc(100% - 0.0px), 15.6% calc(100% - 0.0px), 13.4% calc(100% - 8.5px), 10.3% calc(100% - 7.7px), 6.9% calc(100% - 9.1px), 4.3% calc(100% - 8.0px), 0.0% calc(100% - 5.7px));
}
.tear-3 {
  --tear-paper: polygon(0 0, 100% 0, 100.0% calc(100% - 3.4px), 96.4% calc(100% - 5.4px), 94.9% calc(100% - 3.8px), 89.7% calc(100% - 2.0px), 87.5% calc(100% - 2.9px), 84.8% calc(100% - 5.6px), 80.4% calc(100% - 5.1px), 77.0% calc(100% - 2.9px), 75.1% calc(100% - 3.6px), 72.2% calc(100% - 7.0px), 69.8% calc(100% - 5.1px), 66.9% calc(100% - 2.0px), 61.3% calc(100% - 2.1px), 58.9% calc(100% - 2.0px), 56.0% calc(100% - 23.3px), 51.9% calc(100% - 2.0px), 51.0% calc(100% - 18.7px), 46.7% calc(100% - 6.1px), 44.3% calc(100% - 22.6px), 40.9% calc(100% - 12.9px), 37.6% calc(100% - 11.1px), 35.4% calc(100% - 13.8px), 30.3% calc(100% - 14.0px), 27.6% calc(100% - 14.0px), 24.8% calc(100% - 14.0px), 22.4% calc(100% - 12.7px), 19.0% calc(100% - 11.6px), 16.3% calc(100% - 11.9px), 13.0% calc(100% - 14.0px), 9.1% calc(100% - 14.0px), 5.0% calc(100% - 14.0px), 3.2% calc(100% - 13.7px), 0.0% calc(100% - 12.5px));
  --tear-fiber: polygon(0 0, 100% 0, 100.0% calc(100% - 0.0px), 96.4% calc(100% - 3.8px), 94.9% calc(100% - 1.5px), 89.7% calc(100% - 0.7px), 87.5% calc(100% - 1.8px), 84.8% calc(100% - 2.5px), 80.4% calc(100% - 1.3px), 77.0% calc(100% - 1.8px), 75.1% calc(100% - 1.5px), 72.2% calc(100% - 3.5px), 69.8% calc(100% - 1.6px), 66.9% calc(100% - 0.0px), 61.3% calc(100% - 0.2px), 58.9% calc(100% - 0.0px), 56.0% calc(100% - 21.0px), 51.9% calc(100% - 0.0px), 51.0% calc(100% - 16.5px), 46.7% calc(100% - 4.8px), 44.3% calc(100% - 21.4px), 40.9% calc(100% - 11.2px), 37.6% calc(100% - 7.9px), 35.4% calc(100% - 11.1px), 30.3% calc(100% - 3.2px), 27.6% calc(100% - 12.1px), 24.8% calc(100% - 10.9px), 22.4% calc(100% - 8.9px), 19.0% calc(100% - 9.5px), 16.3% calc(100% - 9.9px), 13.0% calc(100% - 10.9px), 9.1% calc(100% - 12.2px), 5.0% calc(100% - 10.5px), 3.2% calc(100% - 9.9px), 0.0% calc(100% - 8.9px));
}
.tear-4 {
  --tear-paper: polygon(0 0, 100% 0, 100.0% calc(100% - 4.9px), 97.9% calc(100% - 2.0px), 92.8% calc(100% - 2.0px), 90.3% calc(100% - 2.0px), 87.9% calc(100% - 2.6px), 83.8% calc(100% - 4.5px), 81.8% calc(100% - 2.0px), 79.2% calc(100% - 4.4px), 75.6% calc(100% - 5.1px), 71.1% calc(100% - 6.2px), 67.6% calc(100% - 6.0px), 65.0% calc(100% - 4.4px), 63.5% calc(100% - 2.0px), 58.7% calc(100% - 27.7px), 55.4% calc(100% - 2.2px), 53.3% calc(100% - 2.1px), 49.8% calc(100% - 4.8px), 46.1% calc(100% - 2.0px), 44.9% calc(100% - 27.5px), 41.6% calc(100% - 2.0px), 38.0% calc(100% - 2.0px), 34.6% calc(100% - 4.3px), 31.1% calc(100% - 6.3px), 27.8% calc(100% - 9.8px), 25.6% calc(100% - 13.0px), 22.3% calc(100% - 10.0px), 17.8% calc(100% - 13.4px), 16.1% calc(100% - 11.8px), 13.0% calc(100% - 11.4px), 10.0% calc(100% - 12.1px), 6.6% calc(100% - 10.7px), 3.9% calc(100% - 12.7px), 0.0% calc(100% - 9.4px));
  --tear-fiber: polygon(0 0, 100% 0, 100.0% calc(100% - 2.2px), 97.9% calc(100% - 0.0px), 92.8% calc(100% - 0.0px), 90.3% calc(100% - 0.0px), 87.9% calc(100% - 0.0px), 83.8% calc(100% - 3.4px), 81.8% calc(100% - 0.0px), 79.2% calc(100% - 0.0px), 75.6% calc(100% - 3.4px), 71.1% calc(100% - 2.7px), 67.6% calc(100% - 0.0px), 65.0% calc(100% - 1.8px), 63.5% calc(100% - 0.6px), 58.7% calc(100% - 25.9px), 55.4% calc(100% - 0.3px), 53.3% calc(100% - 0.0px), 49.8% calc(100% - 2.4px), 46.1% calc(100% - 0.0px), 44.9% calc(100% - 25.7px), 41.6% calc(100% - 0.0px), 38.0% calc(100% - 0.0px), 34.6% calc(100% - 1.3px), 31.1% calc(100% - 3.7px), 27.8% calc(100% - 6.7px), 25.6% calc(100% - 9.8px), 22.3% calc(100% - 6.8px), 17.8% calc(100% - 10.5px), 16.1% calc(100% - 3.0px), 13.0% calc(100% - 8.8px), 10.0% calc(100% - 9.5px), 6.6% calc(100% - 8.3px), 3.9% calc(100% - 10.0px), 0.0% calc(100% - 6.1px));
}
.section-head h2 {
  position: relative;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  color: var(--ink);
  letter-spacing: .03em;
}
.section-head h2 .accent { color: var(--jade-deep); }
.deco-rule {
  position: relative;
  width: min(360px, 100%);
  height: 22px;
  margin: .7rem auto 0;
  color: var(--brass-dim);
}

/* --- exhibit medallion ---------------------------------------------------- */
.medallion {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--jade-deep);
  border: 2px solid var(--jade-deep);
  border-radius: 50%;
  position: relative;
  margin-bottom: 1.25rem;
}
.medallion::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--brass-dim);
  border-radius: 50%;
}

/* 8. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem);
}
.hero::before {                  /* sunburst rising from the bottom */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../assets/sunburst.svg') center bottom / max(1600px, 130%) auto no-repeat;
  opacity: .7;                   /* raise toward 1 for more glitz, lower for more mood */
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero__copy .eyebrow {
  font-family: var(--font-type);
  font-size: .9rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  line-height: .95;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 60px rgba(31, 174, 131, .35);
}
.hero__title .accent {
  display: block;
  color: var(--jade-bright);
}
.hero__lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--cream);
  max-width: 34ch;
  margin-top: 1.5rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-top: 2.25rem;
}
.hero__meta {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(207, 166, 75, .35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  font-size: .95rem;
  color: var(--cream-dim);
}
.hero__meta .stamp { --stamp-tilt: -3deg; font-size: .75rem; }

/* evidence photo + index card */
.hero__evidence {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 1rem 3rem;
}
.photo {
  width: min(100%, 360px);
  margin: 0;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, #f7f1e3, #e9dfc8);
  box-shadow: var(--shadow-paper);
  position: relative;
}
.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #14100d;
}
.photo figcaption {
  margin-top: .7rem;
  padding-right: .25rem;
  text-align: right;            /* keeps clear of the index card pinned bottom-left */
  color: var(--ink-soft);
}
.note {
  width: min(100%, 260px);
  padding: 1.75rem 1.4rem 1.25rem;
  justify-self: start;
  margin-top: -1.5rem;
  margin-left: -2rem;
  z-index: 2;
}
.note::before {                  /* ruled index-card lines */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(31, 174, 131, .22) 27px 28px);
  background-position: 0 14px;
}
.note::after {                   /* red header rule */
  content: '';
  position: absolute;
  left: 0; right: 0; top: 18px;
  height: 2px;
  background: rgba(192, 57, 43, .5);
}
.note p { position: relative; }

/* 9. Sections -------------------------------------------------------------- */
.section { padding-block: var(--section-pad); }
.section + .section { padding-top: 0; }

/* --- premise (memo sheet) ------------------------------------------------- */
.sheet {
  width: min(100%, 860px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.25rem, 5vw, 3.5rem);
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .75rem;
  margin-bottom: 1.75rem;
}
.sheet__head .typewriter { color: var(--ink-soft); }
.sheet__body {
  font-size: 1.15rem;
  line-height: 1.7;
  columns: 2;
  column-gap: 2.5rem;
}
.sheet__body p { break-inside: avoid; }
.sheet__body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  line-height: .8;
  float: left;
  margin: .1em .12em 0 0;
  color: var(--jade-deep);
}
.sheet .stamp {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: 1.25rem;
  --stamp-tilt: -9deg;
  font-size: .9rem;
}

/* --- module cards --------------------------------------------------------- */
.cards {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}
.card {
  padding: 2.5rem 1.75rem 2rem;
}
.card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .75rem;
}
.card p { color: var(--ink-soft); font-size: 1.05rem; }
.card .typewriter {
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 1px dashed rgba(28, 24, 20, .35);
  font-size: .85rem;
}

/* --- series dossiers ------------------------------------------------------ */
.dossiers {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
  width: min(100%, 760px);
  margin-inline: auto;
}
.dossier {
  padding: 2.25rem 1.5rem 1.75rem;
  margin-top: 1.25rem;          /* room for the folder tab */
  min-height: 100%;
}
.dossier::before {               /* folder tab */
  content: '';
  position: absolute;
  top: -18px;
  left: 14px;
  width: 42%;
  height: 20px;
  background: inherit;
  clip-path: polygon(0 100%, 8% 0, 92% 0, 100% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.dossier__icon {
  width: 56px; height: 56px;
  color: var(--jade-deep);
  margin-bottom: 1.25rem;
}
.dossier__icon img { width: 100%; height: 100%; }
.dossier h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .6rem;
}
.dossier p { color: var(--ink-soft); font-size: 1rem; }
.dossier .stamp {
  position: absolute;
  top: 1.35rem; right: 1rem;
  font-size: .7rem;
  --stamp-tilt: 8deg;
}
.dossier--available { outline: 2px solid var(--jade); outline-offset: 4px; }
.dossier--available .dossier__icon { color: var(--jade-deep); }
.dossier--soon .dossier__icon { color: var(--brass-dim); }

/* --- contact -------------------------------------------------------------- */
.contact-frame {
  width: min(100%, 820px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: center;
}
.contact-frame p { color: var(--cream-dim); max-width: 42ch; }
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .9rem;
}
.contact-list a {
  display: grid;
  grid-template-columns: 1.4rem auto;
  align-items: center;
  gap: .9rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .55rem .9rem;
  border: 1px solid rgba(207, 166, 75, .35);
  background: rgba(0, 0, 0, .3);
  transition: border-color .2s, background-color .2s, color .2s;
}
.contact-list a:hover {
  color: var(--jade-bright);
  border-color: var(--jade);
  background: rgba(31, 174, 131, .08);
}
.contact-list svg { width: 1.4rem; height: 1.4rem; color: var(--brass); }
.contact-list a:hover svg { color: var(--jade-bright); }
.contact-list small {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* 10. Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(207, 166, 75, .35);
  padding-block: 2.5rem 3rem;
  font-size: .9rem;
  color: var(--cream-dim);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0; max-width: 60ch; }
.site-footer ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.site-footer a { color: var(--cream-dim); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.site-footer a:hover { color: var(--jade-bright); }
.site-footer .legal { flex-basis: 100%; font-size: .78rem; opacity: .8; }

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__evidence { padding-top: 2rem; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .sheet__body { columns: 1; }
  .contact-frame { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .site-header .container { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  .dossiers { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .note { margin-left: 0; margin-top: 1rem; justify-self: start; }
  .pinned { --tilt: 0deg; }      /* straighten on small screens: legibility over flavour */
  .strings { display: none; }    /* stacked cards: string would cross the copy */
  .sheet .stamp { position: static; display: inline-block; margin-top: 1.5rem; }
}

/* 12. Motion & a11y -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (prefers-contrast: more) {
  .deco-frame { background: #1b1613; }
  .cream-dim, .contact-frame p, .site-footer { color: var(--cream); }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .hero::before, .strings, .pin, .tape { display: none !important; }
  .paper, .deco-frame { box-shadow: none; background: #fff; border: 1px solid #000; color: #000; }
}
