/* ==========================================================================
   V3rdent design system v3: "stitched nocturne"

   Layout concept: the whole site is one quilt. A patchwork backdrop fills
   every page, dimmed and lit by a lantern that follows the visitor. Content
   floats over it in see-through, hand-stitched frames, slightly crooked,
   with storybook type and stop-motion movement.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Official palette */
  --black: #050505;
  --burgundy: #300207;
  --navy: #04224a;
  --purple: #300d4a;
  --magenta: #631544;
  --forest: #103327;
  --gold: #D4AF37;

  /* Derived */
  --gold-hi: #F2DA85;
  --ink: #F0EADC;
  --ink-2: #CFC6B4;
  --ink-3: #A39B88;
  --glass: rgba(9, 6, 12, 0.8);    /* no blur behind frames (too costly), so a touch darker */
  --glass-deep: rgba(6, 4, 8, 0.86);
  --line: rgba(212, 175, 55, 0.42);
  --line-soft: rgba(240, 234, 220, 0.16);
  --ghost: rgba(140, 220, 180, 0.55);   /* eerie glow, lifted from forest green */

  /* Type: storybook display, old-print text */
  --f-display: "Mystery Quest", "Griffy", Georgia, serif;
  --f-text: "IM Fell English", "Crimson Pro", Georgia, "Times New Roman", serif;
  --f-caps: "IM Fell English SC", "IM Fell English", Georgia, serif;

  --t-body: 1.25rem;                                   /* 20px */
  --t-lead: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  --t-h3: clamp(1.7rem, 1.35rem + 1.2vw, 2.4rem);
  --t-h2: clamp(2.5rem, 1.6rem + 3.4vw, 4.8rem);
  --t-h1: clamp(3.4rem, 1.8rem + 6.4vw, 8.4rem);

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-h: 92px;
  --section: clamp(96px, 6rem + 5vw, 200px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Ornaments */
  --curl-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M46 6C32 6 22 6 15 9 8 12 6 20 6 32v14'/%3E%3Cpath d='M15 9c4-5 13-2 11 5-2 6-10 5-9-1 1-4 5-3 5-1'/%3E%3C/g%3E%3C/svg%3E");
  --curl-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' transform='translate(48 0) scale(-1 1)'%3E%3Cpath d='M46 6C32 6 22 6 15 9 8 12 6 20 6 32v14'/%3E%3Cpath d='M15 9c4-5 13-2 11 5-2 6-10 5-9-1 1-4 5-3 5-1'/%3E%3C/g%3E%3C/svg%3E");
  --curl-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' transform='translate(0 48) scale(1 -1)'%3E%3Cpath d='M46 6C32 6 22 6 15 9 8 12 6 20 6 32v14'/%3E%3Cpath d='M15 9c4-5 13-2 11 5-2 6-10 5-9-1 1-4 5-3 5-1'/%3E%3C/g%3E%3C/svg%3E");
  --curl-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' transform='translate(48 48) scale(-1 -1)'%3E%3Cpath d='M46 6C32 6 22 6 15 9 8 12 6 20 6 32v14'/%3E%3Cpath d='M15 9c4-5 13-2 11 5-2 6-10 5-9-1 1-4 5-3 5-1'/%3E%3C/g%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4Q5 0 10 4T20 4T30 4T40 4' fill='none' stroke='%23D4AF37' stroke-width='1.6'/%3E%3C/svg%3E");
  --spiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 7a1 1 0 1 1-1 1 2 2 0 1 1 2 2 3.4 3.4 0 1 1-3.4-3.4 5 5 0 1 1 5 5' fill='none' stroke='%23D4AF37' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --ticks-h: repeating-linear-gradient(90deg, rgba(212, 175, 55, 0.7) 0 1.3px, transparent 1.3px 7px);
  --ticks-v: repeating-linear-gradient(180deg, rgba(212, 175, 55, 0.7) 0 1.3px, transparent 1.3px 7px);
}

@media (max-width: 720px) {
  :root { --header-h: 78px; --t-body: 1.1875rem; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  /* transparent so the fixed quilt backdrop shows; <html> carries the black */
  background: transparent;
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px; }

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

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--f-display);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

main { display: block; position: relative; }
/* crooked frames and doors may lean past the edge; never let them cause sideways scrolling */
main, .footer { overflow-x: clip; }

/* ==========================================================================
   The quilt backdrop (every page), back to front:
   (the dark cloth itself is the page background on <html>)
   .quilt     the patchwork, as long as the page, scrolling with it
   .veil      the shade, lantern, vignette and fog, fixed over the patchwork
   ========================================================================== */

body { position: relative; } /* the quilt layer stretches over the whole page */

.veil {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100lvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.pw > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.quilt {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.quilt.is-ready { opacity: 1; }

/* One patch: its cloth, hand-cut edge and shadow are drawn once into a canvas
   (quilt-scroll.js), with the stitches on a second canvas above. Moving a patch
   only slides finished pictures, so nothing is redrawn while scrolling. */
.patch { position: absolute; contain: strict; }
.patch__body { position: absolute; inset: 0; }
.patch__body canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Darkness, with a lantern that follows the cursor.
   The shade is one oversized layer with the light painted in its centre;
   following the cursor only slides it (transform), so nothing repaints. */
.backdrop__shade {
  position: absolute;
  left: 0;
  top: 0;
  width: 200vw;
  height: 200lvh;
  background: radial-gradient(circle 420px at 50% 50%, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.64) 100%);
  transform: translate3d(calc(62vw - 50%), calc(32lvh - 50%), 0);
  will-change: transform;
}
.backdrop__shade::after {
  /* candle flicker */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  background: radial-gradient(circle 260px at 50% 50%, rgba(242, 190, 90, 0.07), transparent 70%);
  animation: flicker 5.5s steps(1) infinite;
}
/* with the lantern on, the gradient is a small canvas, enlarged (see site.js) */
html.has-lantern .backdrop__shade { background: none; }
.backdrop__shade > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* no lantern on touch screens: a plain, fixed pool of light is cheaper */
html:not(.has-lantern) .backdrop__shade {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 420px at 62% 32%, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.64) 100%);
  transform: none;
  will-change: auto;
}
html:not(.has-lantern) .backdrop__shade::after { left: 62%; top: 32%; }
.backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 50% 35%, transparent 45%, rgba(2, 1, 3, 0.7) 100%);
}

/* Low fog */
.backdrop__fog {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -6%;
  height: 46%;
  background:
    radial-gradient(40% 50% at 25% 100%, rgba(205, 200, 220, 0.09), transparent 70%),
    radial-gradient(35% 45% at 60% 100%, rgba(190, 185, 210, 0.08), transparent 70%),
    radial-gradient(30% 40% at 90% 100%, rgba(205, 200, 220, 0.07), transparent 70%);
  animation: fog 48s ease-in-out infinite alternate;
}
.backdrop__fog--b { bottom: -12%; height: 38%; opacity: 0.8; animation-duration: 66s; animation-direction: alternate-reverse; }

/* Ghost lights */
.mote {
  position: absolute;
  bottom: -20px;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: #F6E7B0;
  box-shadow: 0 0 10px 3px rgba(246, 231, 176, 0.55);
  opacity: 0;
  animation: mote var(--dur, 22s) linear var(--delay, 0s) infinite;
}
.mote:nth-child(3n) { background: #C9F2DD; box-shadow: 0 0 10px 3px rgba(140, 220, 180, 0.5); }
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  45% { opacity: 0.35; }
  55% { opacity: 0.85; }
  90% { opacity: 0.4; }
  100% { transform: translate(var(--drift, 40px), -105vh); opacity: 0; }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.display, .title, .h3, .creep {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}
.display { font-size: var(--t-h1); line-height: 0.98; }
.title { font-size: var(--t-h2); line-height: 1.02; }
.h3 { font-size: var(--t-h3); line-height: 1.1; }
.gold, .display em, .title em, .h3 em { color: var(--gold-hi); font-style: normal; }

.caps {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-caps);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.caps::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--spiral) center / contain no-repeat;
  animation: twirl 9s linear infinite;
}

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
.prose { display: grid; gap: 1em; color: var(--ink-2); max-width: 60ch; }
.prose em { color: var(--ink); }
.muted { color: var(--ink-3); }

/* Letters that creep into place (split by JS) */
.creep .w { display: inline-block; white-space: nowrap; }
.creep .l { display: inline-block; transform: rotate(var(--rf, 0deg)); }
.js-motion .creep:not(.is-crept) .l { opacity: 0; transform: translateY(0.35em) rotate(var(--r, 0deg)) scale(0.8); }
.js-motion .creep.is-crept .l {
  opacity: 1;
  transform: rotate(var(--rf, 0deg));
  transition: opacity 0.6s var(--ease), transform 0.9s var(--spring);
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* ==========================================================================
   Frames: see-through, stitched, slightly crooked
   ========================================================================== */

.frame {
  --tilt: 0deg;
  position: relative;
  padding: clamp(30px, 4vw, 60px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 3px;
  transform: rotate(var(--tilt));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  transition: transform 0.8s var(--spring), border-color 0.4s, box-shadow 0.5s;
}
.frame::before {
  /* hand stitches just inside the border */
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    var(--ticks-h) top / 100% 6px no-repeat,
    var(--ticks-h) bottom / 100% 6px no-repeat,
    var(--ticks-v) left / 6px 100% no-repeat,
    var(--ticks-v) right / 6px 100% no-repeat;
  opacity: 0.5;
  transition: opacity 0.4s, filter 0.4s;
}
.frame::after {
  /* curled corners */
  content: "";
  position: absolute;
  inset: -13px;
  pointer-events: none;
  background:
    var(--curl-tl) top left / 42px 42px no-repeat,
    var(--curl-tr) top right / 42px 42px no-repeat,
    var(--curl-bl) bottom left / 42px 42px no-repeat,
    var(--curl-br) bottom right / 42px 42px no-repeat;
  opacity: 0.75;
}
.frame--plain::after { display: none; }
.tilt-l { --tilt: -0.8deg; }
.tilt-r { --tilt: 0.7deg; }
.frame--live:hover, .frame--live:focus-within, a.frame:hover, a.frame:focus-visible {
  --tilt: 0deg;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(242, 218, 133, 0.25), 0 0 46px -10px rgba(212, 175, 55, 0.45), 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}
.frame--live:hover::before, .frame--live:focus-within::before, a.frame:hover::before { opacity: 1; filter: drop-shadow(0 0 4px rgba(242, 218, 133, 0.8)); }
a.frame { display: block; color: inherit; text-decoration: none; }

/* A lens: a lit window into the quilt (its own patchwork at full colour) */
.lens {
  position: relative;
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  box-shadow:
    0 0 0 7px rgba(5, 5, 5, 0.55),
    0 0 0 8.5px rgba(212, 175, 55, 0.35),
    0 0 70px -6px rgba(212, 175, 55, 0.22);
}

/* ==========================================================================
   Buttons, links and labels
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.55em 1.35em 0.5em;
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 18px 6px 16px 8px / 8px 16px 6px 18px;
  background: rgba(9, 6, 12, 0.6);
  font-family: var(--f-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.4s, background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.45s var(--spring);
}
.btn:hover, .btn:focus-visible {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 1px rgba(242, 218, 133, 0.3), 0 0 30px -4px rgba(212, 175, 55, 0.7);
  transform: translateY(-2px) rotate(-0.6deg);
}
.btn--gold { background: linear-gradient(180deg, #E6C65C, #C99F2E); border-color: #F2DA85; color: #170f02; }
.btn--gold:hover, .btn--gold:focus-visible { color: #170f02; background: linear-gradient(180deg, #F2D774, #D6AE3C); }
.btn .arrow { display: inline-block; transition: transform 0.4s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.link {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--gold-hi);
  text-decoration: none;
  padding-bottom: 8px;
  background: var(--squiggle) left bottom / 40px 8px repeat-x;
  text-shadow: 0 1px 12px #000;
  transition: color 0.3s;
}
.link:hover, .link:focus-visible { color: var(--ink); }

/* Keyhole lens (About) */
.keyhole { position: relative; width: min(100%, 300px); aspect-ratio: 200 / 300; margin-inline: auto; }
.keyhole__glass {
  position: absolute;
  inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M100 25a70 70 0 0 1 38 128.6L160 290H40l22-136.4A70 70 0 0 1 100 25Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M100 25a70 70 0 0 1 38 128.6L160 290H40l22-136.4A70 70 0 0 1 100 25Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.keyhole svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.keyhole .edge { fill: none; stroke: rgba(212, 175, 55, 0.85); stroke-width: 1.5; }
.keyhole .stitch { fill: none; stroke: var(--gold); stroke-width: 6; stroke-dasharray: 1.3 5.7; }
.keyhole .eye { fill: #F6E39A; filter: drop-shadow(0 0 4px rgba(246, 227, 154, 0.9)); transform-box: fill-box; transform-origin: center; animation: eyes 5s steps(1) infinite; }
.text-link { color: var(--gold-hi); text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }

/* Status tags: hand-cut paper labels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.35em 0.9em 0.3em;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px 4px 10px 5px / 5px 10px 4px 12px;
  font-family: var(--f-caps);
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--gold-hi);
  background: rgba(9, 6, 12, 0.55);
  white-space: nowrap;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tag--live::before { box-shadow: 0 0 0 0 rgba(242, 218, 133, 0.6); animation: beacon 2.4s ease-out infinite; }
.tag--soon { border-style: dashed; color: var(--ink-2); }
.tag--soon::before { background: none; border: 1.5px solid currentColor; animation: blink 3.2s steps(1) infinite; }
.tag--dev { color: #BFEAD3; border-color: rgba(140, 220, 180, 0.45); }
.tag--dev::before { background: #8CDCB4; box-shadow: 0 0 10px rgba(140, 220, 180, 0.9); animation: flicker 4s steps(1) infinite; }

.spirals { display: grid; gap: 14px; }
.spirals li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); }
.spirals li::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--spiral) center / contain no-repeat; transform: translateY(2px); transition: transform 0.6s var(--spring); }
.spirals li:hover::before { transform: translateY(2px) rotate(200deg); }
@media (min-width: 640px) { .spirals--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; } }

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.55s var(--ease), background-color 0.4s, opacity 0.7s var(--ease);
  view-transition-name: site-header;
}
.header.is-scrolled {
  background: rgba(5, 4, 6, 0.93);
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.25);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }
/* the header spans the whole window: logo hard left, links and Contact hard right */
.header__inner.wrap {
  max-width: none;
  padding-left: max(clamp(18px, 2.4vw, 48px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(18px, 2.4vw, 48px), env(safe-area-inset-right, 0px));
}

/* Logo, top left only, original colours on a transparent background.
   The halo follows the letter shapes so the dark green stays readable on the quilt. */
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 4px 2px;
  border-radius: 6px;
  text-decoration: none;
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--spring);
}
.brand__logo {
  position: relative;
  height: 58px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 0 1px rgba(243, 238, 227, 0.85)) drop-shadow(0 0 7px rgba(243, 238, 227, 0.32));
  transition: filter 0.45s var(--ease);
}
.brand:hover, .brand:focus-visible { transform: rotate(1deg) translateY(-2px); }
.brand:hover .brand__logo, .brand:focus-visible .brand__logo { filter: drop-shadow(0 0 1px rgba(243, 238, 227, 0.95)) drop-shadow(0 0 12px rgba(242, 218, 133, 0.5)); }
@media (max-width: 720px) { .brand__logo { height: 44px; } }

.nav { display: none; align-items: center; gap: 0.15rem; }
.nav > a, .nav__drop > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.55rem 0.85rem 0.75rem;
  border: 0;
  background: none;
  font-family: var(--f-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-2);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
  transition: color 0.3s;
}
.nav > a::after, .nav__drop > button::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 8px;
  background: var(--squiggle) left center / 40px 8px repeat-x;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease);
}
.nav > a:hover, .nav__drop > button:hover, .nav > a[aria-current="page"], .nav__drop.is-current > button { color: var(--gold-hi); }
.nav > a:hover::after, .nav__drop > button:hover::after, .nav > a[aria-current="page"]::after, .nav__drop.is-current > button::after { clip-path: inset(0 0 0 0); }

.nav__drop { position: relative; }
/* an invisible bridge over the gap between the button and its menu, so moving
   the pointer down into the menu never counts as leaving it */
.nav__drop.is-open::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 24px; }
.nav__drop > button .chev { display: inline-block; font-size: 0.8em; transition: transform 0.4s var(--spring); }
.nav__drop.is-open > button .chev { transform: rotate(180deg); }
.nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 290px;
  padding: 14px;
  transform: translateX(-50%) rotate(-0.6deg);
  display: grid;
  gap: 4px;
}
.nav__panel[hidden] { display: none; }
.nav__panel a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.nav__panel a:hover, .nav__panel a:focus-visible, .nav__panel a[aria-current="page"] { background: rgba(212, 175, 55, 0.1); }
.nav__panel strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; color: var(--ink); }
.nav__panel span { font-size: 1rem; color: var(--ink-3); }

.header__cta { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 16px 6px 14px 8px / 8px 14px 6px 16px;
  background: rgba(9, 6, 12, 0.7);
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--ink);
}
@media (min-width: 1060px) {
  .nav { display: flex; gap: clamp(0.15rem, 0.9vw, 1.4rem); }
  .header__inner { gap: clamp(1.25rem, 2vw, 2.5rem); }
  .header__cta { display: inline-flex; min-height: 50px; font-size: 1.3rem; }
  .menu-btn { display: none; }
}
/* wide screens: a bigger logo and links, so the header doesn't look lost */
@media (min-width: 1400px) {
  .brand__logo { height: clamp(58px, 3.9vw, 80px); }
  .nav > a, .nav__drop > button { font-size: clamp(1.4rem, 0.9rem + 0.55vw, 1.75rem); }
  .header__cta { min-height: 54px; padding-inline: 1.5em; font-size: clamp(1.3rem, 0.85rem + 0.5vw, 1.6rem); }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 20px) max(var(--gutter), env(safe-area-inset-right, 0px)) 32px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: rgba(5, 4, 6, 0.96);
}
.menu[hidden] { display: none; }
.menu__group + .menu__group { margin-top: 28px; }
.menu__label { margin-bottom: 8px; }
.menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px) rotate(-2deg);
  animation: rise 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 40ms);
}
.menu a[aria-current="page"] { color: var(--gold-hi); }
.menu a small { font-family: var(--f-caps); font-size: 0.95rem; letter-spacing: 0.1em; color: var(--ink-3); }
.menu-open, .menu-open body { overflow: hidden; }

/* ==========================================================================
   Page sections
   ========================================================================== */

.section { position: relative; padding-block: var(--section); }
.section--snug { padding-block: calc(var(--section) * 0.55); }
.center { text-align: center; }
.stack { display: grid; gap: 26px; justify-items: start; }
.center.stack { justify-items: center; }
.center .lead { margin-inline: auto; }

.page-hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 72px;
}
.page-hero__grid { display: grid; gap: 56px; align-items: center; width: 100%; }
@media (min-width: 1000px) { .page-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.page-hero__copy { display: grid; gap: 26px; justify-items: start; }
.page-hero__art { position: relative; justify-self: center; width: min(100%, 460px); }

/* Moon lens on the home page */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; overflow-x: clip; }
.hero__copy { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; max-width: 900px; }
.moon {
  position: absolute;
  right: max(-80px, -6vw);
  top: calc(var(--header-h) + 10px);
  width: clamp(240px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
.moon__face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
/* the moon's glow breathes by fading a layer, not by animating its shadow */
.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(212, 175, 55, 0.25), 0 0 120px 6px rgba(212, 175, 55, 0.3);
  opacity: 0;
  animation: moon 9s ease-in-out infinite;
  will-change: opacity;
  pointer-events: none;
}
@media (max-width: 720px) { .moon { right: -70px; top: calc(var(--header-h) - 10px); width: 260px; opacity: 0.85; } }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; }
.creep-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--f-caps);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-decoration: none;
  text-shadow: 0 1px 10px #000;
}
.creep-cue::after { content: ""; width: 18px; height: 18px; background: var(--spiral) center / contain no-repeat; animation: drop 2.6s ease-in-out infinite; }
.creep-cue:hover { color: var(--gold-hi); }

/* Doors to each part of V3rdent */
.doors { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px); }
.door {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: clamp(148px, 16vw, 210px);
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.door:nth-child(odd) { transform: rotate(-1.5deg); }
.door:nth-child(even) { transform: rotate(1.2deg) translateY(18px); }
.door__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  perspective: 900px;
}
.door__inside {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 4px 4px;
  background: radial-gradient(70% 60% at 50% 45%, #0d0a10, #010102);
  box-shadow: inset 0 0 24px #000, 0 0 0 1.5px rgba(212, 175, 55, 0.6), 0 0 0 7px rgba(5, 5, 5, 0.6), 0 0 0 8px rgba(212, 175, 55, 0.3);
}
/* eyes in the dark when the door opens */
.door__inside::before, .door__inside::after {
  content: "";
  position: absolute;
  top: 44%;
  width: 11px;
  height: 7px;
  border-radius: 50%;
  background: #F6E39A;
  box-shadow: 0 0 10px 2px rgba(246, 227, 154, 0.75);
  opacity: 0;
  transition: opacity 0.3s 0.35s;
  animation: eyes 4s steps(1) infinite;
}
.door__inside::before { left: 36%; }
.door__inside::after { right: 36%; }
.door__panel { position: absolute; inset: 0; transform-origin: 0% 50%; transition: transform 0.9s var(--spring); }
.door__name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.05; text-shadow: 0 1px 12px #000; transition: color 0.3s; }
.door:hover .door__panel, .door:focus-visible .door__panel { transform: rotateY(-58deg); }
.door:hover .door__inside::before, .door:hover .door__inside::after,
.door:focus-visible .door__inside::before, .door:focus-visible .door__inside::after { opacity: 1; }
.door:hover .door__name, .door:focus-visible .door__name { color: var(--gold-hi); }

/* Two-up and three-up layouts of frames */
.duo { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trio { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: grid; gap: 14px; align-content: start; }
.card .h3 { margin-bottom: 2px; }
.card p { color: var(--ink-2); }
.card__icon { width: 54px; height: 54px; color: var(--gold); margin-bottom: 4px; transition: transform 0.7s var(--spring); }
.card__icon * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.frame--live:hover .card__icon { transform: rotate(-10deg) scale(1.08); }

.section-head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .lead { margin-inline: auto; }

/* Big quote */
.quote { font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: 1.08; text-align: center; text-wrap: balance; text-shadow: 0 2px 20px #000; }

/* ==========================================================================
   Venture visuals
   ========================================================================== */

/* Records: a warped record that won't stop spinning */
.vinyl { position: relative; width: 100%; aspect-ratio: 1; animation: warp 5s ease-in-out infinite; }
.vinyl__disc {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 240, 210, 0.09) 30deg, rgba(255, 255, 255, 0) 60deg, rgba(255, 255, 255, 0) 180deg, rgba(255, 240, 210, 0.07) 210deg, rgba(255, 255, 255, 0) 240deg),
    repeating-radial-gradient(circle at 50% 50%, #0a090c 0 1.6px, #16141a 1.6px 3.2px);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4), 0 0 0 9px rgba(5, 5, 5, 0.6), 0 0 0 10px rgba(212, 175, 55, 0.25), 0 50px 90px -30px #000;
  animation: spin 7s linear infinite;
}
.vinyl__label { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.vinyl__label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #050505; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6); }
.vinyl__arm { position: absolute; right: -4%; top: -6%; width: 46%; height: auto; transform-origin: 82% 14%; animation: arm 7s ease-in-out infinite; }
.vinyl__arm path, .vinyl__arm circle { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.vinyl__arm circle { fill: #0b090d; }

/* Clothing: a patchwork coat swaying on its hanger */
.garment { position: relative; width: min(100%, 380px); aspect-ratio: 300 / 400; margin-inline: auto; transform-origin: 50% 3%; animation: sway 6s ease-in-out infinite; }
.garment__cloth {
  position: absolute;
  inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cpath d='M150 62C128 64 106 70 90 80L42 106 16 236 46 242 64 152 68 382 88 372 108 386 128 372 150 388 172 372 192 386 212 372 232 382 236 152 254 242 284 236 258 106 210 80C194 70 172 64 150 62Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cpath d='M150 62C128 64 106 70 90 80L42 106 16 236 46 242 64 152 68 382 88 372 108 386 128 372 150 388 172 372 192 386 212 372 232 382 236 152 254 242 284 236 258 106 210 80C194 70 172 64 150 62Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.garment__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.garment__lines .edge { fill: none; stroke: rgba(212, 175, 55, 0.85); stroke-width: 1.4; }
.garment__lines .stitch { fill: none; stroke: var(--gold); stroke-width: 6; stroke-dasharray: 1.3 5.7; }
.garment__lines .hanger { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }

/* Entertainment: a flickering old screen */
.crt {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border-radius: 34px 26px 30px 24px / 26px 32px 24px 30px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #08140e;
}
/* its own quilt, washed out to a sickly old-screen green */
.crt__quilt { position: absolute; inset: 0; z-index: 0; filter: saturate(0.5) contrast(1.08); }
.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 2px, transparent 2px 4px),
    linear-gradient(rgba(40, 110, 75, 0.3), rgba(40, 110, 75, 0.3));
  pointer-events: none;
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(80% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6));
  animation: crt 6s steps(1) infinite;
  pointer-events: none;
}
.crt__text { position: relative; z-index: 2; padding: 0.15em 0.6em 0.25em; border-radius: 10px 4px 9px 5px; background: rgba(2, 10, 6, 0.8); font-family: var(--f-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); color: #DFF5E8; text-shadow: 0 0 12px rgba(140, 220, 180, 0.9), 0 2px 0 #000; animation: blink 1.6s steps(1) infinite; }
.crt-stand { width: 34%; height: 18px; margin: 14px auto 0; border: 1.5px solid rgba(212, 175, 55, 0.5); border-top: 0; border-radius: 0 0 12px 12px; }

/* Partners: empty patches waiting to be sewn in */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 18px; }
.slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 12px;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  font-family: var(--f-caps);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-align: center;
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.slot:nth-child(4n + 1) { border-radius: 22px 6px 18px 10px / 10px 20px 6px 18px; transform: rotate(-2deg); }
.slot:nth-child(4n + 2) { border-radius: 8px 20px 8px 24px; transform: rotate(1.5deg); }
.slot:nth-child(4n + 3) { border-radius: 18px 10px 24px 6px; transform: rotate(-1deg); }
.slot:nth-child(4n) { border-radius: 6px 24px 12px 20px; transform: rotate(2deg); }
.slot:hover { border-color: var(--gold-hi); color: var(--gold-hi); box-shadow: 0 0 30px -8px rgba(212, 175, 55, 0.6); }

/* Steps along a stitched path */
.path { position: relative; }
.path__steps { display: grid; gap: 30px; }
@media (min-width: 1000px) { .path__steps { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 24px; } }
.path__line { display: none; }
@media (min-width: 1000px) {
  .path__line {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 60px;
    width: 100%;
    overflow: visible;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2.2s var(--ease);
  }
  .path.is-in .path__line { clip-path: inset(0 0 0 0); }
}
.path__line path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-dasharray: 1.4 5.6; }
.path__step { position: relative; display: grid; gap: 10px; justify-items: start; }
@media (min-width: 1000px) { .path__step { padding-top: 76px; justify-items: center; text-align: center; } }
.path__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 50% 46% 52% 44% / 48% 52% 46% 50%;
  background: var(--glass-deep);
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--gold-hi);
  transition: box-shadow 0.4s, transform 0.6s var(--spring);
}
@media (min-width: 1000px) { .path__num { position: absolute; top: 8px; left: 50%; margin-left: -27px; } }
.path__step:hover .path__num { transform: rotate(-12deg) scale(1.1); box-shadow: 0 0 26px rgba(212, 175, 55, 0.6); }
.path__step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.05; text-shadow: 0 1px 12px #000; }
.path__step p { color: var(--ink-2); font-size: 1.1rem; text-shadow: 0 1px 10px #000; }

/* Live preview of a site */
.browser { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #070508; }
.browser__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); font-family: var(--f-caps); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--ink-3); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(240, 234, 220, 0.2); }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--black); }
.browser__screen iframe { position: absolute; left: 0; top: 0; width: 1440px; max-width: none; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 0.4)); pointer-events: none; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.form { display: grid; gap: 26px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .field label { display: block; margin-bottom: 12px; font-family: var(--f-caps); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--ink-2); }
.types { display: flex; flex-wrap: wrap; gap: 10px; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.35em 1em 0.3em;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px 5px 12px 6px / 6px 12px 5px 14px;
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.type span:hover { color: var(--ink); border-color: var(--gold-hi); }
.type input:checked + span { background: var(--gold); border-color: var(--gold-hi); color: #170f02; box-shadow: 0 0 24px -6px rgba(212, 175, 55, 0.8); }
.type input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.field-row { display: grid; gap: 26px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field select option { background: #0b080d; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(240, 234, 220, 0.22);
  border-radius: 10px 4px 9px 5px / 5px 9px 4px 10px;
  background: rgba(3, 2, 4, 0.7);
  font-family: var(--f-text);
  font-size: 1.2rem;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field select { background-color: rgba(3, 2, 4, 0.7); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 28px -8px rgba(212, 175, 55, 0.7); }
.field [aria-invalid="true"] { border-color: #E58D80; }
.field__hint { margin-top: 8px; font-size: 1.05rem; color: var(--ink-3); }
.field__error { margin-top: 8px; font-size: 1.05rem; color: #F2A497; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-done { display: grid; gap: 18px; justify-items: start; }
.form-done[hidden] { display: none; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail-addr { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--gold-hi); text-decoration: none; overflow-wrap: anywhere; }
.copy-btn { min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(212, 175, 55, 0.5); border-radius: 12px 4px 10px 5px; background: rgba(9, 6, 12, 0.6); font-family: var(--f-caps); font-size: 1rem; letter-spacing: 0.08em; color: var(--ink-2); }
.copy-btn:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { position: relative; padding: clamp(72px, 9vw, 140px) 0 32px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer__name { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.footer__brand { display: grid; gap: 12px; align-content: start; }
.footer__brand p:last-child { color: var(--ink-3); font-size: 1.1rem; }
.footer h2 { margin-bottom: 14px; font-family: var(--f-caps); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.14em; color: var(--gold-hi); }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--gold-hi); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; font-family: var(--f-caps); font-size: 1rem; letter-spacing: 0.08em; color: var(--ink-3); text-shadow: 0 1px 8px #000; }

/* the footer spans the whole window, like the header, and stays slim */
.footer { padding-top: clamp(48px, 6vw, 96px); }
.footer__wrap {
  max-width: none;
  padding-left: max(clamp(18px, 2.4vw, 48px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(18px, 2.4vw, 48px), env(safe-area-inset-right, 0px));
}
.footer .frame { --tilt: 0.15deg; padding: clamp(20px, 2.2vw, 30px) clamp(20px, 3vw, 48px); }
.footer .footer__bottom { margin-top: 14px; }
@media (min-width: 1060px) {
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.2fr); gap: 28px 48px; align-items: start; }
  .footer__brand { gap: 6px; }
  .footer__name { font-size: 2rem; }
  .footer h2 { margin-bottom: 8px; }
  /* links sit side by side instead of stacked, so the footer stays thin */
  .footer ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
}

/* ==========================================================================
   Bats (spawned now and then by JS)
   ========================================================================== */

.bat { position: fixed; z-index: 40; width: 46px; height: 24px; pointer-events: none; animation: bat-fly var(--dur, 9s) linear forwards; }
.bat svg { width: 100%; height: 100%; overflow: visible; }
.bat path { fill: #020203; stroke: rgba(212, 175, 55, 0.35); stroke-width: 0.6; }
.bat .wing { transform-box: fill-box; transform-origin: 50% 40%; animation: flap 0.3s ease-in-out infinite; }

/* ==========================================================================
   Reveal and motion
   ========================================================================== */

.js-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px) rotate(calc(var(--tilt, 0deg) - 1.5deg)); }
.js-motion [data-reveal].is-in {
  opacity: 1;
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}

/* Home intro: the header waits until the quilt is sewn */
.is-intro .header { opacity: 0; }
.is-intro.at-0 .header { opacity: 1; }
.is-intro [data-step] { opacity: 0; transform: translateY(14px); }
.is-intro.at-1 [data-step="1"], .is-intro.at-2 [data-step="2"], .is-intro.at-3 [data-step="3"] { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.25s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: rotate(-0.6deg) scale(0.99); } }
@keyframes vt-in { from { opacity: 0; transform: rotate(0.6deg) scale(1.01); } }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes flicker {
  0%, 100% { opacity: 1; } 8% { opacity: 0.72; } 9% { opacity: 1; } 31% { opacity: 0.86; }
  33% { opacity: 1; } 56% { opacity: 0.6; } 57% { opacity: 0.95; } 58% { opacity: 0.7; } 59% { opacity: 1; } 82% { opacity: 0.84; } 84% { opacity: 1; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(242, 218, 133, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(242, 218, 133, 0); } }
@keyframes twirl { to { transform: rotate(360deg); } }
@keyframes drop { 0%, 100% { transform: translateY(-2px) rotate(0deg); } 50% { transform: translateY(5px) rotate(180deg); } }
@keyframes fog { 0% { transform: translateX(-6%); } 100% { transform: translateX(6%); } }
@keyframes moon { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes eyes { 0%, 46%, 50%, 92%, 96%, 100% { transform: scaleY(1); } 48%, 94% { transform: scaleY(0.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes warp { 0%, 100% { transform: perspective(900px) rotateX(4deg) rotateY(-3deg); } 50% { transform: perspective(900px) rotateX(-3deg) rotateY(4deg); } }
@keyframes arm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes crt { 0%, 100% { opacity: 1; } 12% { opacity: 0.7; } 13% { opacity: 1; } 47% { opacity: 0.8; } 48% { opacity: 1; } 71% { opacity: 0.55; } 72% { opacity: 1; } }
@keyframes flap { 0% { transform: scaleY(1); } 50% { transform: scaleY(-0.6); } }
@keyframes bat-fly {
  0% { transform: translate(var(--x0), 0) rotate(-6deg); }
  25% { transform: translate(calc(var(--x0) + (var(--x1) - var(--x0)) * 0.25), -40px) rotate(4deg); }
  50% { transform: translate(calc(var(--x0) + (var(--x1) - var(--x0)) * 0.5), 18px) rotate(-5deg); }
  75% { transform: translate(calc(var(--x0) + (var(--x1) - var(--x0)) * 0.75), -26px) rotate(6deg); }
  100% { transform: translate(var(--x1), 6px) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .backdrop__fog, .backdrop__shade::after { animation: none; }
}

/* Home: the clothing spotlight */
.spotlight .tag { justify-self: start; }
.spotlight .page-hero__grid { align-items: center; }

/* Services: computer and sewing, side by side */
/* The coat hangs by its hook from the browser's first (close) button. The window
   and the coat tilt together, so the hook stays put. In the coat's 300x400 drawing
   the hook rests at (157, 6); the button's middle is 19.5px in and 18.5px down. */
.page-hero__art--crafts { --gw: clamp(124px, 14vw, 190px); width: min(100%, 540px); padding-left: calc(var(--gw) * 157 / 300 - 19.5px); }
.crafts__window { position: relative; }
.crafts__window .garment {
  position: absolute;
  z-index: 2;
  width: var(--gw);
  margin: 0;
  left: calc(19.5px - var(--gw) * 157 / 300);
  top: calc(14px - var(--gw) * 6 / 300);
  transform-origin: 52.3% 1.5%;
}
.lanes { align-items: stretch; }
.lane { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lane__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.lane__top .card__icon { width: 64px; height: 64px; margin: 0; }
.lane__title { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.9rem); }
.lane__actions { margin-top: auto; padding-top: 10px; }
.sewing__more { margin-top: clamp(40px, 5vw, 64px); }

/* ==========================================================================
   Founder's note (About page)
   ========================================================================== */

.founder__note { display: grid; gap: 1em; max-width: 62ch; font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem); font-style: italic; line-height: 1.6; color: var(--ink-2); }
.founder__note p:first-child::first-letter { float: left; margin: 0.06em 0.12em 0 0; font-family: var(--f-display); font-size: 3.1em; font-style: normal; line-height: 0.8; color: var(--gold-hi); }
.founder__sign { justify-self: end; font-family: var(--f-display); font-size: clamp(1.4rem, 1.15rem + 0.6vw, 1.8rem); color: var(--gold-hi); }

/* ==========================================================================
   Legal pages (privacy policy, terms of use): long text, set for easy reading
   ========================================================================== */

.legal { display: grid; gap: 2.4rem; max-width: 70ch; margin-inline: auto; }
.legal section { display: grid; gap: 0.9rem; }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.25rem + 0.9vw, 2.1rem); line-height: 1.15; color: var(--gold-hi); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal strong { color: var(--ink); font-weight: 400; font-style: italic; }
.legal a { color: var(--gold-hi); text-decoration-thickness: 1px; }
.legal a:hover { color: var(--ink); }
.legal .spirals { gap: 10px; }
.legal__updated { font-family: var(--f-caps); letter-spacing: 0.12em; color: var(--ink-3); }
.legal__summary { display: grid; gap: 12px; padding: 20px 24px; border: 1px dashed rgba(212, 175, 55, 0.45); border-radius: 6px; background: rgba(9, 6, 12, 0.55); }
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--gold-hi); }

/* ==========================================================================
   Small layout helpers used in the page markup (instead of inline styles)
   ========================================================================== */

.row-center { justify-content: center; }
.gap-top { margin-top: 12px; }
.mx-auto { margin-inline: auto; }
.offset-down { margin-top: clamp(0px, 6vw, 90px); }    /* the second card of a pair sits lower */
.lead--wide { max-width: none; }
.lead.footer__tagline { font-size: 1.3rem; }
.caps--small { font-size: 1rem; }
.form__note { font-size: 1.05rem; max-width: 36ch; }
.frame--centered { max-width: 920px; margin-inline: auto; }
.frame--wide { max-width: 980px; }
.frame--slim { max-width: 880px; }
.spirals--large { font-size: 1.35rem; }
.stack--tight { gap: 12px; }
.btn-row--tags { gap: 10px; }
.slots--full { width: 100%; }
.path--3 { --n: 3; }
.path--5 { --n: 5; }
.page-hero--compact { min-height: auto; padding-bottom: 40px; }
.page-hero__copy--center { justify-items: center; max-width: 900px; margin-inline: auto; }
.page-hero__art--browser { width: min(100%, 520px); }
.browser--tilt { transform: rotate(1.5deg); }
.section--tight-top { padding-top: clamp(40px, 5vw, 72px); }

/* Light mode (see site.js): for browsers drawing without the graphics card,
   or dropping frames. The extras rest; everything else stays the same. */
.is-lite .moon::after { animation: none; opacity: 0.5; }
/* the shade, candle glow, vignette and fog become one still layer that looks
   the same, instead of four full-screen layers over the quilt */
.is-lite .veil > * { display: none; }
.is-lite .veil {
  background:
    radial-gradient(64% 23% at 25% 100%, rgba(205, 200, 220, 0.09), transparent 70%),
    radial-gradient(56% 21% at 60% 100%, rgba(190, 185, 210, 0.08), transparent 70%),
    radial-gradient(48% 18% at 90% 100%, rgba(205, 200, 220, 0.07), transparent 70%),
    radial-gradient(130% 100% at 50% 35%, transparent 45%, rgba(2, 1, 3, 0.7) 100%),
    radial-gradient(circle 260px at 62% 32%, rgba(242, 190, 90, 0.07), transparent 70%),
    radial-gradient(circle 420px at 62% 32%, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.64) 100%);
}

/* Without the graphics card ('soft', see site.js) the background is one flat
   picture that scrolls with the page: the shade is drawn into the patches, so
   the overlay goes, and the looping decorations hold still. */
.is-soft .veil { display: none; }
.is-soft .caps::before, .is-soft .creep-cue::after, .is-soft .tag--live::before, .is-soft .tag--soon::before,
.is-soft .tag--dev::before, .is-soft .vinyl, .is-soft .vinyl__disc, .is-soft .vinyl__arm, .is-soft .garment,
.is-soft .crt::after, .is-soft .crt__text, .is-soft .keyhole .eye, .is-soft .door__inside::before,
.is-soft .door__inside::after, .is-soft .moon::after { animation: none; }

/* Performance readout, shown with ?debug in the address */
.perf-readout {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 100;
  max-width: calc(100vw - 16px);
  padding: 6px 10px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.88);
  color: var(--gold-hi);
  font: 12px/1.35 ui-monospace, Consolas, monospace;
  pointer-events: none;
}

/* Preview mode (inside the services page iframe) */
html.is-preview { scrollbar-width: none; }
html.is-preview::-webkit-scrollbar { display: none; }
.is-preview .header { position: absolute; }
/* the small live preview on Services is a still picture: no second copy of every animation */
.is-preview *, .is-preview *::before, .is-preview *::after { animation: none !important; transition: none !important; }
