/* SkipWire Laboratories: mid-century "educational film" theme.
   Fonts: Ultra, Yellowtail, Special Elite (Apache-2.0, Google Fonts). Body uses system Futura/Avenir. */

:root {
  /* fixed art colours (used inside SVG illustrations in both themes) */
  --ink: #2b2118;
  --cream: #f6ead0;
  --cream-2: #fbf4e2;
  --teal: #2e7c76;
  --teal-d: #1f5955;
  --orange: #d8622a;
  --mustard: #e3a92f;
  --velvet: #8a1c1c;
  --velvet-d: #4f0d0d;

  /* themed tokens */
  --bg: #efe0bd;
  --bg-2: #f6ead0;
  --paper: #fbf4e2;
  --text: #2b2118;
  --muted: #6b5843;
  --rule: #2b2118;
  --accent: #d8622a;
  --accent-2: #2e7c76;
  --shadow: 6px 6px 0 #2b2118;
  --burst: rgba(216, 98, 42, .18);
  --grain-opacity: .16;

  --display: "Ultra", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --type: "Special Elite", "American Typewriter", "Courier New", monospace;
  --body: Futura, "Futura PT", "Century Gothic", "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120d;
    --bg-2: #211910;
    --paper: #2a2016;
    --text: #f3e4c3;
    --muted: #bfa984;
    --rule: #f3e4c3;
    --accent: #f08143;
    --accent-2: #5fb3ab;
    --shadow: 6px 6px 0 #000;
    --burst: rgba(240, 129, 67, .14);
    --grain-opacity: .22;
  }
}
:root[data-theme="dark"] {
  --bg: #17120d; --bg-2: #211910; --paper: #2a2016; --text: #f3e4c3; --muted: #bfa984;
  --rule: #f3e4c3; --accent: #f08143; --accent-2: #5fb3ab; --shadow: 6px 6px 0 #000;
  --burst: rgba(240, 129, 67, .14); --grain-opacity: .22;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--mustard); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mustard); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 16px; }

/* ---------- film effects ---------- */
/* Reach past the screen edges: iOS Safari draws the page under its status bar and toolbars,
   where a plain inset: 0 overlay stops short and leaves flat strips. */
.grain, .vignette { position: fixed; inset: -140px 0; pointer-events: none; z-index: 50; }
.grain {
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .5s steps(4) infinite;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; } }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; }
.vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(30, 18, 8, .38) 100%);
  animation: flicker 6s infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -1%); } 100% { transform: translate(0, 0); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .82; } 49% { opacity: 1; } 72% { opacity: .92; } 73% { opacity: 1; }
}
body.no-film .grain, body.no-film .vignette { display: none; }

/* ---------- film leader ---------- */
.leader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #1a1410; color: #f3e4c3;
  cursor: pointer;
  transition: opacity .5s ease;
}
.leader.is-done { opacity: 0; pointer-events: none; }
.leader__ring, .leader__sweep { position: absolute; width: min(70vmin, 520px); aspect-ratio: 1; border-radius: 50%; }
.leader__ring {
  border: 6px solid #f3e4c3;
  box-shadow: inset 0 0 0 26px #1a1410, inset 0 0 0 30px #f3e4c3;
}
.leader__ring::before, .leader__ring::after {
  content: ""; position: absolute; background: #f3e4c3;
  left: 50%; top: -20vmax; bottom: -20vmax; width: 3px; transform: translateX(-50%);
}
.leader__ring::after { transform: rotate(90deg); left: 50%; }
.leader__sweep {
  background: conic-gradient(rgba(243, 228, 195, .28) 0deg, rgba(243, 228, 195, .28) var(--a, 0deg), transparent var(--a, 0deg));
}
.leader__num { position: relative; font-family: var(--display); font-size: min(34vmin, 260px); line-height: 1; }
.leader__caption {
  position: absolute; bottom: 6vh; left: 16px; right: 16px; text-align: center;
  font-family: var(--type); font-size: 14px; letter-spacing: .12em; opacity: .7;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 3px double var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__atom { width: 38px; height: 38px; color: var(--accent-2); animation: spin 14s linear infinite; }
.brand__name { font-family: var(--display); font-size: 22px; line-height: .9; }
.brand__name small { display: block; font-family: var(--type); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--type); font-size: 15px; }
.nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }
.masthead__actions { display: flex; align-items: center; gap: 10px; margin-left: 0; }
.projector {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: transparent; color: var(--text); border: 2px solid var(--rule); border-radius: 50%;
}
.projector__lamp { width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 10px var(--mustard); }
.btn.masthead__dl { padding: 8px 16px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.btn.masthead__dl:hover { box-shadow: 6px 6px 0 var(--ink); }
.projector[aria-pressed="false"] .projector__lamp { background: var(--muted); box-shadow: none; }

/* ---------- shared ---------- */
#main > section { position: relative; padding: 110px 24px; max-width: 1180px; margin: 0 auto; }
#main > section + section { border-top: 3px double var(--rule); }
.reel {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--type); font-size: 14px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-2); border: 2px solid currentColor; padding: 4px 12px;
}
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1; margin: 0 0 16px; }
.script { font-family: var(--script); font-weight: 400; color: var(--accent); }
.h2 .script { font-size: .78em; display: inline-block; transform: rotate(-3deg); }
.section-lede { font-family: var(--type); font-size: 18px; color: var(--muted); margin: 0 0 54px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 17px; letter-spacing: .02em;
  padding: 14px 24px; border: 3px solid var(--ink); border-radius: 6px;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn--primary { background: var(--accent); color: var(--cream-2); box-shadow: var(--shadow); }
.btn--ghost { background: var(--paper); color: var(--text); box-shadow: var(--shadow); border-color: var(--rule); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
:focus-visible { outline: 3px dashed var(--accent); outline-offset: 4px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 90px !important; overflow: hidden; }
.hero__burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: -1; }
.hero__burst svg { width: min(1000px, 160vw); color: var(--burst); animation: spin 120s linear infinite; }
.hero__presents { font-family: var(--type); letter-spacing: .3em; text-transform: uppercase; font-size: 14px; margin: 8px 0 0; }
.hero__title { margin: 6px 0 22px; font-weight: 400; line-height: .9; }
.hero__title .script { display: block; font-size: clamp(42px, 7vw, 92px); transform: rotate(-4deg); }
.hero__title .block {
  display: block; font-family: var(--display); font-size: clamp(44px, 11vw, 168px); letter-spacing: -.01em;
  color: var(--text);
  text-shadow: 4px 4px 0 var(--mustard), 8px 8px 0 var(--accent-2);
}
.hero__title .script--small { font-size: clamp(40px, 6vw, 80px); text-align: right; max-width: 900px; margin: 14px auto 0; transform: rotate(-4deg); }
.hero__lede { max-width: 720px; margin: 0 auto 26px; font-size: 20px; }
.hero__free { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); margin: 0 0 30px; }
.hero__free span { display: inline-block; animation: pop 3s ease-in-out infinite; }
.hero__free span:nth-child(2) { color: var(--accent-2); animation-delay: .25s; }
.hero__free span:nth-child(3) { color: var(--accent); animation-delay: .5s; }
@keyframes pop { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-6px) rotate(-2deg); } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 54px; }
.narrator {
  max-width: 640px; margin: 0 auto 46px; padding: 22px 28px;
  font-family: var(--type); font-size: 18px; font-style: normal;
  background: var(--paper); border: 2px solid var(--rule); box-shadow: var(--shadow);
  position: relative; text-align: left;
}
.narrator::before {
  content: "SUBTITLE"; position: absolute; top: -12px; left: 20px;
  background: var(--accent-2); color: var(--cream-2); font-size: 11px; letter-spacing: .3em; padding: 2px 10px;
}
.narrator cite { display: block; margin-top: 10px; font-family: var(--script); font-size: 24px; color: var(--accent); }
.hero__specs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; font-family: var(--type); font-size: 15px; }
.hero__specs b { color: var(--accent-2); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; margin-right: 6px; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 56px; align-items: start; }
.founder__portrait { position: sticky; top: 100px; text-align: center; }
.founder__portrait svg {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(8px 8px 0 var(--ink));
}
.founder__portrait svg { animation: sway 7s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 50% { transform: rotate(-1.2deg); } }
.portrait__glint { animation: blink 3.2s steps(2) infinite; }
.founder__plaque {
  display: inline-block; margin: 22px 0 0; padding: 10px 18px;
  background: linear-gradient(#e9c062, #b98a2a); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 4px;
  font-family: var(--display); font-size: 16px; letter-spacing: .06em; line-height: 1.3;
}
.founder__plaque small { display: block; font-family: var(--type); font-size: 12px; letter-spacing: .08em; }
.phono { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 10px 0 26px; }
.phono__btn {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: var(--ink); color: var(--mustard); border: 3px solid var(--mustard);
  font-family: var(--display); font-size: 16px; box-shadow: var(--shadow);
}
.record {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle, var(--orange) 0 7px, var(--mustard) 7px 9px, transparent 9px),
    repeating-radial-gradient(circle, #111 0 2px, #2a2a2a 2px 4px);
}
.phono__btn[aria-pressed="true"] .record { animation: spin 1.1s linear infinite; }
.phono__meta { font-family: var(--type); font-size: 13px; color: var(--muted); }
.transcript {
  position: relative; padding: 30px 32px; background: var(--paper);
  border: 2px solid var(--rule); box-shadow: var(--shadow);
  font-family: var(--type); font-size: 18px; line-height: 1.7;
}
.transcript::before {
  content: "TRANSCRIPT"; position: absolute; top: -12px; left: 22px;
  background: var(--accent); color: var(--cream-2); font-size: 11px; letter-spacing: .3em; padding: 2px 10px;
}
.transcript p { margin: 0 0 16px; transition: opacity .5s; }
.transcript.is-playing p { opacity: .12; }
.transcript.is-playing p.on { opacity: 1; }
.transcript p.speaking { color: var(--accent); }
.transcript__sig { font-family: var(--script); font-size: 40px; color: var(--accent-2); text-align: right; margin: 0 !important; transform: rotate(-4deg); }
.card__note b { font-weight: 400; color: var(--accent); }
.footer__quote {
  position: relative; max-width: 680px; margin: 0 auto 40px;
  font-family: var(--type); font-size: 19px; line-height: 1.6;
}
.footer__quote cite { display: block; margin-top: 8px; font-family: var(--script); font-size: 30px; font-style: normal; color: var(--orange); }

/* founder avatar used in the cameo and interruptions */
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--mustard);
}
.cameo {
  display: flex; gap: 18px; align-items: flex-start; text-align: left;
  max-width: 600px; margin: -20px auto 46px; padding: 18px 22px;
  background: var(--mustard); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow);
  transform: rotate(1.2deg) translateX(40px);
  animation: barge .7s cubic-bezier(.2, 1.6, .4, 1) 2.6s both;
}
.cameo p { margin: 0; font-size: 17px; line-height: 1.5; }
.cameo cite { display: block; margin-top: 6px; font-family: var(--script); font-size: 22px; font-style: normal; color: var(--velvet); }
@keyframes barge { from { opacity: 0; transform: rotate(-6deg) translateX(180px) scale(.8); } }
.interrupt {
  display: flex; gap: 12px; align-items: center; margin: 16px 0 0 !important;
  padding: 10px 14px; background: var(--mustard); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 14px 14px 14px 3px;
  font-size: 15px; line-height: 1.45; text-align: left;
}
.interrupt .avatar { width: 48px; height: 48px; border-width: 2px; box-shadow: none; }
.interrupt b { font-weight: 400; font-family: var(--type); letter-spacing: .04em; color: var(--velvet); }
.scene.is-active .interrupt { animation: barge .6s cubic-bezier(.2, 1.6, .4, 1) .9s both; }

/* ---------- hall of achievements ---------- */
.plaques {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px;
}
.plaques li {
  position: relative; padding: 22px 20px 20px;
  background: linear-gradient(145deg, #c9964a, #8a5f26 60%, #b07d3a);
  color: #2a1a0a; border: 3px solid #4a3112; border-radius: 6px;
  box-shadow: inset 0 0 0 4px rgba(255, 230, 170, .35), var(--shadow);
}
.plaques li::before, .plaques li::after {
  content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6e2b0, #6b4a1c);
}
.plaques li::before { left: 10px; } .plaques li::after { right: 10px; }
.plaques__yr { display: block; font-family: var(--display); font-size: 34px; line-height: 1; color: #fbe7b5; text-shadow: 2px 2px 0 #4a3112; }
.plaques h3 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 8px 0 6px; }
.plaques p { margin: 0; font-family: var(--type); font-size: 15px; line-height: 1.5; }
.plaques__now { background: linear-gradient(145deg, var(--orange), #9c3f14) !important; color: var(--cream-2) !important; }
.plaques__now .plaques__yr { color: var(--mustard); }

/* ---------- carousel theatre ---------- */
.theatre { text-align: center; }
.stage { max-width: 960px; margin: 0 auto; }
.stage__marquee {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  background: var(--velvet-d); color: var(--mustard);
  border: 4px solid var(--mustard); border-bottom: 0; border-radius: 20px 20px 0 0;
  padding: 12px; font-family: var(--display); font-size: 24px; letter-spacing: .08em;
}
.bulbs { flex: 1; height: 12px; background: radial-gradient(circle, var(--mustard) 4px, transparent 5px) 0 0 / 20px 12px repeat-x; animation: chase 1s steps(2) infinite; max-width: 260px; }
@keyframes chase { to { background-position: 20px 0; } }
.stage__frame {
  position: relative; overflow: hidden;
  border: 4px solid var(--mustard); border-top-width: 2px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 230, 160, .35), transparent 70%),
    var(--paper);
  min-height: 420px;
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 3;
  background:
    repeating-linear-gradient(90deg, var(--velvet) 0 22px, var(--velvet-d) 22px 30px, var(--velvet) 30px 44px);
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, .35);
  transition: transform .55s cubic-bezier(.7, 0, .3, 1);
}
.curtain--l { left: 0; transform: translateX(-92%); }
.curtain--r { right: 0; transform: translateX(92%); }
.stage.is-closing .curtain--l, .stage.is-closing .curtain--r { transform: translateX(0); }
.stage__scenes { position: relative; z-index: 1; padding: 36px 9%; }
.scene { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: center; text-align: left; }
.scene[hidden] { display: none; }
.scene__art { width: 100%; height: auto; }
.scene h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.scene p { margin: 0 0 12px; }
.scene .aside { font-family: var(--script); font-size: 24px; line-height: 1.3; color: var(--accent); }
.stage__controls {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  background: var(--velvet-d); border: 4px solid var(--mustard); border-top: 0; border-radius: 0 0 20px 20px;
  padding: 16px 22px;
}
.acts { display: flex; gap: 8px; }
.acts button {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-family: var(--display); font-size: 16px;
  background: transparent; color: var(--mustard); border: 3px solid var(--mustard);
}
.acts button[aria-selected="true"] { background: var(--mustard); color: var(--velvet-d); }
.rotate__wheel { width: 26px; height: 26px; transition: transform .9s cubic-bezier(.6, 0, .2, 1); }
.scanlines rect { animation: type 2.4s steps(6) infinite; transform-box: fill-box; transform-origin: left; }
.scanlines rect:nth-child(2) { animation-delay: .3s; } .scanlines rect:nth-child(3) { animation-delay: .6s; }
.scanlines rect:nth-child(4) { animation-delay: .9s; } .scanlines rect:nth-child(5) { animation-delay: 1.2s; }
@keyframes type { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
.blink circle { animation: blink 1s steps(2) infinite; }
.blink circle:nth-child(2) { animation-delay: .5s; }
@keyframes blink { 50% { opacity: .15; } }
.sparks { animation: blink .8s steps(2) infinite; }

/* ---------- exhibits ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card {
  position: relative; background: var(--paper); border: 2px solid var(--rule); box-shadow: var(--shadow);
  padding: 26px 22px 22px; transition: transform .2s;
}
.card:nth-child(odd) { transform: rotate(-.6deg); }
.card:nth-child(even) { transform: rotate(.5deg); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card__no {
  position: absolute; top: -14px; left: 16px; margin: 0;
  background: var(--mustard); color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--type); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 2px 10px;
}
.card h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.15; margin: 6px 0 10px; }
.card p { margin: 0 0 12px; font-size: 16px; }
.card__note {
  margin: 0 !important; padding-top: 10px; border-top: 1px dashed var(--muted);
  font-family: var(--type); font-size: 14px !important; color: var(--muted);
}

/* ---------- pairing ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps li { position: relative; padding-top: 64px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 76px; right: -26px; border-top: 4px dotted var(--accent-2);
}
.steps__n {
  position: absolute; top: 0; left: 0; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 26px;
  background: var(--accent-2); color: var(--cream-2); border: 3px solid var(--ink);
}
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.steps p { margin: 0; }
.memo {
  max-width: 720px; margin: 0 auto; padding: 26px 30px;
  background: repeating-linear-gradient(var(--paper) 0 29px, color-mix(in srgb, var(--accent-2) 22%, transparent) 29px 30px);
  border: 2px solid var(--rule); box-shadow: var(--shadow);
  font-family: var(--type); font-size: 16px; line-height: 30px; transform: rotate(-.8deg);
}
.memo p { margin: 0 0 10px; }
.memo__head { color: var(--accent); letter-spacing: .14em; }
.memo__sig { font-family: var(--script); font-size: 26px; color: var(--accent-2); text-align: right; }

/* ---------- ledger ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.plan { position: relative; padding: 34px 30px; border: 3px solid var(--rule); box-shadow: var(--shadow); background: var(--paper); }
.plan--free { background: var(--teal); color: var(--cream-2); border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.plan__kicker { margin: 0; font-family: var(--type); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; opacity: .85; }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 38px; margin: 6px 0; line-height: 1; }
.plan__price { font-family: var(--type); margin: 0 0 18px; }
.plan__price b { font-family: var(--display); font-weight: 400; font-size: 54px; }
.plan--paid .plan__price b { font-size: 24px; }
.plan__desc { margin: 0 0 16px; }
.plan ul { padding: 0; margin: 0 0 26px; list-style: none; }
.plan li { padding-left: 30px; position: relative; margin: 8px 0; }
.plan li::before { content: "\2605"; position: absolute; left: 0; color: var(--mustard); }
.plan--paid li::before { color: var(--accent); }
.plan__seal { position: absolute; top: -40px; right: -26px; width: 116px; height: 116px; display: grid; place-items: center; transform: rotate(12deg); animation: wobble 5s ease-in-out infinite; }
.plan__seal svg { position: absolute; inset: 0; color: var(--orange); }
.plan__seal span { position: relative; font-family: var(--display); font-size: 24px; color: var(--cream-2); }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.05); } }

/* ---------- questions ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 2px solid var(--rule); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 40px 14px 0; position: relative;
  font-family: var(--display); font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 8px; font-size: 30px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; text-align: center; padding: 100px 24px 70px; background: var(--ink); color: var(--cream); }
.footer__burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.footer__burst svg { width: 760px; color: rgba(227, 169, 47, .12); animation: spin 90s linear infinite reverse; }
.footer > p { position: relative; }
.footer__script { font-family: var(--script); font-size: clamp(36px, 6vw, 64px); color: var(--mustard); margin: 0 0 8px; }
.footer__line { font-family: var(--type); letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.footer__fine { max-width: 760px; margin: 22px auto; font-size: 13px; opacity: .65; }
.footer__end { font-family: var(--display); font-size: 48px; margin: 30px 0 0; letter-spacing: .1em; }
.footer__end span { color: var(--orange); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease, transform .2s; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .founder { grid-template-columns: 1fr; gap: 30px; }
  .founder__portrait { position: static; max-width: 280px; margin: 0 auto; }
  .masthead__actions { margin-left: auto; }
  .scene { grid-template-columns: 1fr; text-align: center; }
  .scene__art { max-width: 300px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .plans { grid-template-columns: 1fr; gap: 56px; }
  .plan__seal { right: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  #main > section { padding: 80px 16px; }
  .masthead { padding: 10px 16px; }
  .brand__name small { letter-spacing: .2em; }
  .stage__scenes { padding: 26px 18px; }
  .stage__controls { justify-content: center; }
  .stage__marquee { font-size: 18px; }
  .plan { padding: 30px 20px; }
  .memo { padding: 22px 18px; }
  .hero__title .script--small { text-align: center; }
  .cameo { transform: rotate(1deg); margin-top: -26px; padding: 14px 16px; gap: 12px; }
  .cameo .avatar { width: 48px; height: 48px; }
  .interrupt { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ---------- the Skipworth Collection ---------- */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.inv {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start;
  padding: 22px; background: var(--paper); border: 2px solid var(--rule); box-shadow: var(--shadow);
}
.inv--default { grid-column: 1 / -1; grid-template-columns: 160px 1fr; border-width: 3px; background: color-mix(in srgb, var(--mustard) 22%, var(--paper)); }
.inv__icon { width: 100%; height: auto; border-radius: 22.5%; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--ink); }
.inv__yr { margin: 0; font-family: var(--type); font-size: 13px; letter-spacing: .24em; color: var(--accent-2); }
.inv h3 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 4px 0 8px; }
.inv--default h3 { font-size: 30px; }
.inv__body > p { margin: 0 0 12px; font-size: 16px; }
.inv__verdict { font-family: var(--script); font-size: 24px !important; line-height: 1.2; color: var(--accent); }
.inv__verdict span { display: block; font-family: var(--type); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.inv__badge {
  display: inline-block; padding: 3px 10px; transform: rotate(-2deg);
  font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--velvet); border: 2px solid var(--velvet); border-radius: 4px;
}
.inv__badge--alt { color: var(--accent-2); border-color: var(--accent-2); }
.collection__quote { max-width: 640px; margin: 48px auto 0; text-align: center; font-family: var(--type); font-size: 19px; }
.collection__quote cite { display: block; margin-top: 6px; font-family: var(--script); font-size: 28px; font-style: normal; color: var(--accent); }
@media (max-width: 560px) {
  .inv, .inv--default { grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 16px; }
  .inv-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   THE TAKEOVER: "THE END?" trigger, film burn, acquisition screen,
   Solitary Lake Partners edition, and Gus's buyback.
   ===================================================================== */
.the-end {
  font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0 6px; cursor: pointer;
}
.the-end span { display: inline-block; transition: transform .2s; }
.the-end:hover span, .the-end:focus-visible span { transform: rotate(18deg) scale(1.25); color: var(--mustard); }

/* while a transition runs */
body.is-jitter #main, body.is-jitter .footer, body.is-jitter .masthead { animation: jitter .09s steps(2) infinite; }
body.is-jitter .vignette { background: radial-gradient(ellipse at center, transparent 30%, rgba(30, 12, 0, .75) 100%); animation: flicker .25s infinite; }
@keyframes jitter { 0% { transform: translate(0, 0); } 50% { transform: translate(-3px, 2px); } 100% { transform: translate(2px, -2px); } }

.burn { position: fixed; inset: -140px 0; z-index: 300; pointer-events: none; overflow: hidden; display: none; }
.burn.on { display: block; }
.burn__hole {
  position: absolute; width: 40px; height: 40px; border-radius: 47% 53% 51% 49%;
  background: #fff;
  box-shadow: 0 0 0 4px #fff3c4, 0 0 0 9px #f2a33a, 0 0 0 15px #c4501a, 0 0 0 21px #4a1d06, 0 0 30px 26px rgba(30, 10, 0, .8);
  transform: translate(-50%, -50%) scale(0);
}
.burn.on .burn__hole { animation: burnGrow 1.5s cubic-bezier(.55, 0, .9, .4) both; }
.burn__hole { filter: blur(1.2px); }
.burn__hole--extra { width: 26px; height: 26px; }
@keyframes burnGrow {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0); }
  35% { transform: translate(-50%, -50%) scale(2.2) rotate(40deg); }
  100% { transform: translate(-50%, -50%) scale(90) rotate(160deg); }
}

.acq {
  position: fixed; inset: -140px 0; z-index: 310; display: none; align-items: center; justify-content: center;
  background: #fff; color: #5b6670; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.acq.on { display: flex; animation: fadeIn .4s ease both; }
.acq.out { animation: fadeOut .6s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.acq__inner { width: min(420px, 100% - 32px); text-align: center; }
.acq__title { margin: 28px 0 18px; font-size: 17px; color: #3a4450; }
.acq__bar { height: 4px; background: #e6e9ed; border-radius: 2px; overflow: hidden; }
.acq__bar span { display: block; height: 100%; width: 0; background: #1d2c3c; transition: width .45s linear; }
.acq__step { margin: 12px 0 0; font-size: 13px; color: #8a949e; min-height: 1.4em; }

/* the Solitary Lake Partners logo */
.slp-logo { display: inline-flex; align-items: center; gap: 10px; color: #1d2c3c; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; text-align: left; }
.slp-logo__mark { width: 34px; height: 34px; color: #1d2c3c; flex: none; }
.slp-logo__word { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.slp-logo__word small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .42em; color: #6b7682; }

/* swapping the whole site */
body.is-pe { background: #fff; }
body.is-pe > .masthead, body.is-pe > main#main, body.is-pe > .footer, body.is-pe > .grain, body.is-pe > .vignette, body.is-pe > .skip { display: none !important; }
.pe {
  --pe-ink: #2f3a45; --pe-muted: #6b7682; --pe-line: #dde1e6; --pe-bg: #f4f5f7; --pe-navy: #1d2c3c;
  min-height: 100vh; background: #fff; color: var(--pe-ink);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.55;
}
.pe a { color: inherit; }
.pe-ticker { overflow: hidden; white-space: nowrap; background: var(--pe-navy); color: #c9d1d9; font-size: 12px; padding: 6px 0; }
.pe-ticker span { display: inline-block; padding-left: 100%; animation: ticker 32s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
.pe-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--pe-line);
}
.pe-head__brand { text-decoration: none; }
.pe-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--pe-muted); }
.pe-nav a { text-decoration: none; }
.pe-nav a:hover { color: var(--pe-ink); }
.pe-btn {
  font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 4px; cursor: pointer;
  background: #fff; color: var(--pe-ink); border: 1px solid #c5cbd2;
}
.pe-btn--primary { background: var(--pe-navy); color: #fff; border-color: var(--pe-navy); }
.pe-btn:hover { filter: brightness(.96); }
.pe-main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.pe-hero { padding: 72px 0 40px; }
.pe-kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pe-muted); }
.pe-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; font-weight: 600; color: var(--pe-navy); letter-spacing: -.01em; }
.pe-lede { max-width: 640px; margin: 0 0 28px; font-size: 18px; color: var(--pe-muted); }
.pe-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.pe-stock {
  display: grid; place-items: center; text-align: center; padding: 24px; aspect-ratio: 16 / 6;
  background: repeating-linear-gradient(45deg, #eceef1 0 14px, #e4e7eb 14px 28px); color: #8a949e;
  font-size: 14px; border-radius: 4px;
}
.pe-kpis { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--pe-line); border-radius: 4px; margin: 8px 0 24px; }
.pe-kpis div { padding: 20px 16px; border-left: 1px solid var(--pe-line); }
.pe-kpis div:first-child { border-left: 0; }
.pe-kpis b { display: block; font-size: 28px; font-weight: 600; color: var(--pe-navy); }
.pe-kpis span { font-size: 13px; color: var(--pe-muted); }
.pe-section { padding: 48px 0; border-top: 1px solid var(--pe-line); }
.pe-section h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; color: var(--pe-navy); }
.pe-sub { margin: 0 0 24px; color: var(--pe-muted); }
.pe-letter { max-width: 680px; padding: 24px 28px; background: var(--pe-bg); border-left: 3px solid var(--pe-navy); border-radius: 0; }
.pe-letter p { margin: 0 0 12px; }
.pe-letter__sig { margin-top: 18px !important; font-weight: 600; }
.pe-letter__sig small { font-weight: 400; color: var(--pe-muted); }
.pe-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.pe-checks li { position: relative; padding-left: 30px; }
.pe-checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; background: #e3e8ed; color: var(--pe-navy);
}
.pe-ad {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 16px; padding: 18px 20px;
  background: #fffbe6; border: 1px dashed #d8c77a; border-radius: 4px; font-size: 15px;
}
.pe-ad p { margin: 0; flex: 1 1 320px; }
.pe-ad__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a7a2a; }
.pe-plans { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 24px 16px; align-items: stretch; }
.pe-plan { position: relative; display: flex; flex-direction: column; padding: 22px 18px; border: 1px solid var(--pe-line); border-radius: 4px; }
.pe-plan--pop { border-color: var(--pe-navy); box-shadow: inset 0 0 0 1px var(--pe-navy); }
.pe-plan__flag { position: absolute; top: -11px; left: 16px; margin: 0; padding: 2px 8px; background: var(--pe-navy); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; }
.pe-plan h3 { margin: 0; font-size: 17px; font-weight: 600; }
.pe-price { margin: 6px 0 14px; font-size: 30px; font-weight: 600; color: var(--pe-navy); }
.pe-price small { font-size: 13px; font-weight: 400; color: var(--pe-muted); }
.pe-plan ul { flex: 1; margin: 0 0 18px; padding-left: 18px; font-size: 14px; color: var(--pe-muted); }
.pe-plan .pe-btn { width: 100%; margin-top: auto; }
.pe-fine { margin: 16px 0 0; font-size: 12px; color: var(--pe-muted); }
.pe-tablewrap { overflow-x: auto; }
.pe-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.pe-table th { text-align: left; font-weight: 600; color: var(--pe-muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pe-table th, .pe-table td { padding: 12px 10px; border-bottom: 1px solid var(--pe-line); }
.pe-faq { max-width: 760px; }
.pe-faq details { border-bottom: 1px solid var(--pe-line); }
.pe-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.pe-faq details p { margin: 0 0 14px; color: var(--pe-muted); }
.pe-foot { margin-top: 40px; padding: 40px 24px 56px; background: var(--pe-bg); border-top: 1px solid var(--pe-line); text-align: center; font-size: 12px; color: var(--pe-muted); }
.pe-foot > p { max-width: 720px; margin: 16px auto 0; }
.pe-foot__real { color: var(--pe-ink); font-weight: 600; }
.pe-bid { margin: 36px auto 0; }
.pe-bid__note { margin: 0 0 10px; font-style: italic; }
.pe-bid__btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; cursor: pointer;
  background: #e3a92f; color: #2b2118; border: 3px solid #2b2118; border-radius: 999px; box-shadow: 4px 4px 0 #2b2118;
  font-family: "Ultra", Georgia, serif; font-size: 16px;
  animation: nudge 2.6s ease-in-out infinite;
}
.pe-bid__btn .avatar { width: 40px; height: 40px; border-width: 2px; box-shadow: none; }
.pe-bid__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #2b2118; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } }
.pe-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 330; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 4px; background: #2f3a45; color: #fff;
  font: 14px -apple-system, "Helvetica Neue", Arial, sans-serif; transition: opacity .25s, transform .25s;
}
.pe-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Gus storms back in */
.gusback {
  position: fixed; inset: -140px 0; z-index: 320; display: none; align-items: center; justify-content: center; overflow: hidden;
  background: var(--mustard); color: var(--ink); padding: 16px;
}
.gusback.on { display: flex; }
.gusback.out { animation: fadeOut .5s ease both; }
.gusback__burst { position: absolute; inset: 0; display: grid; place-items: center; }
.gusback__burst svg { width: 160vmax; color: rgba(216, 98, 42, .35); animation: spin 18s linear infinite; }
.gusback__card { position: relative; text-align: center; max-width: 640px; }
.gusback.on .gusback__card { animation: slam .7s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes slam { from { transform: scale(.2) rotate(-14deg); opacity: 0; } }
.gusback__portrait { width: min(200px, 44vw); height: auto; filter: drop-shadow(6px 6px 0 var(--ink)); }
.gusback__hold { margin: 10px 0 8px; font-family: var(--display); font-size: clamp(34px, 8vw, 72px); line-height: 1; color: var(--velvet); text-shadow: 3px 3px 0 var(--cream); }
.gusback__line { margin: 0 auto; max-width: 560px; font-family: var(--type); font-size: clamp(16px, 2.4vw, 20px); min-height: 3.4em; }
.gusback__count { margin: 14px 0 0; font-family: var(--display); font-size: 64px; line-height: 1; color: var(--teal-d); min-height: 1em; }

@media (max-width: 900px) {
  .pe-nav { display: none; }
  .pe-head .pe-btn { margin-left: auto; }
  .pe-kpis { grid-template-columns: repeat(2, 1fr); }
  .pe-kpis div { border-left: 0; border-top: 1px solid var(--pe-line); }
  .pe-kpis div:nth-child(-n+2) { border-top: 0; }
  .pe-kpis div:nth-child(even) { border-left: 1px solid var(--pe-line); }
  .pe-kpis div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pe-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pe-head { padding: 12px 16px; gap: 12px; }
  .pe-head .pe-btn { padding: 7px 10px; font-size: 13px; }
  .pe-main { padding: 0 16px; }
  .pe-plans { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .slp-logo__word { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pe-ticker span { padding-left: 0; }
}

/* ---------- the Requisition Office (downloads) ---------- */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.req {
  position: relative; display: flex; flex-direction: column; text-align: center;
  padding: 30px 22px 24px; background: var(--paper); border: 2px solid var(--rule); box-shadow: var(--shadow);
}
.req::before { /* the perforated tear-off edge of a requisition slip */
  content: ""; position: absolute; left: 12px; right: 12px; top: 10px; border-top: 2px dashed var(--muted); opacity: .6;
}
.req__form { margin: 8px 0 14px; font-family: var(--type); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.req__art { width: 140px; height: auto; margin: 0 auto 10px; }
.req h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0 0 8px; }
.req__role { margin: 0 0 4px; font-size: 15px; }
.req__req { margin: 0 0 22px; font-family: var(--type); font-size: 14px; color: var(--muted); }
.req__btn { margin-top: auto; justify-content: center; }
.req__note { margin: 14px 0 0; font-family: var(--type); font-size: 12px; color: var(--muted); }
.req.is-pending .req__btn {
  background: var(--paper); color: var(--muted); border-style: dashed; box-shadow: none; cursor: default; transform: none;
}
.req.is-pending::after {
  content: "Shipment pending"; position: absolute; top: -14px; right: -12px; transform: rotate(7deg);
  padding: 3px 10px; font-family: var(--type); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--velvet); border: 2px solid var(--velvet); background: var(--paper); border-radius: 3px;
}
.req__aside { margin: 40px auto 0; max-width: 620px; text-align: center; font-family: var(--type); font-size: 18px; }
.req__aside cite { display: block; margin-top: 4px; font-family: var(--script); font-size: 26px; font-style: normal; color: var(--accent); }
.pe-dl { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .req-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

/* header fit on phones, and anchor targets clear of the sticky header */
.brand { min-width: 0; }
.brand__atom { flex: none; }
.masthead__actions { flex: none; }
#main > section[id] { scroll-margin-top: 76px; }
@media (max-width: 560px) {
  .masthead { gap: 10px; }
  .brand__atom { width: 32px; height: 32px; }
  .brand__name { font-size: 19px; }
  .btn.masthead__dl { padding: 7px 12px; font-size: 14px; }
}
