/* ==========================================================================
   Codsworth: noir art deco marketing site
   ========================================================================== */

:root {
  --ink: #08070a;
  --night: #0e0c12;
  --coal: #16131b;
  --smoke: #221e28;
  --crimson: #c0142f;
  --crimson-hi: #e3304a;
  --blood: #6e0b19;
  --ember: #e2481c;
  --amber: #ffb547;
  --amber-soft: #ffd58a;
  --bone: #eee5d1;
  --fog: #a9a1b2;
  --gold: #c9a24a;
  --gold-dim: rgba(201, 162, 74, .28);

  --f-display: "Limelight", "Didot", Georgia, serif;
  --f-deco: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --f-body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --f-mono: "Courier Prime", "Courier New", monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --brand-h: clamp(60px, 6.5vw, 92px);
  --nav-h: calc(var(--brand-h) + 20px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1.25rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--crimson-hi); }

::selection { background: var(--crimson); color: #fff; }

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

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 1000;
  background: var(--amber); color: var(--ink); padding: .6rem 1rem;
  font-family: var(--f-deco); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -100%; z-index: 900; pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.8rem;
  font-family: var(--f-deco); font-weight: 600; font-size: .85rem;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--bone); background: transparent;
  border: 1px solid var(--b); cursor: pointer;
  transition: background .3s var(--ease), color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 4px; border: 1px solid currentColor;
  opacity: .35; pointer-events: none; transition: inset .3s var(--ease), opacity .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { inset: 6px; opacity: .6; }
.btn--primary { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-hi); box-shadow: 0 0 0 1px var(--crimson-hi), 0 10px 40px -8px rgba(227, 48, 74, .7); }
.btn--ghost:hover { background: rgba(201, 162, 74, .12); box-shadow: 0 10px 40px -12px rgba(201, 162, 74, .6); }
.btn--small { padding: .7rem 1.1rem; font-size: .72rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  transition: background .4s, box-shadow .4s, height .4s;
}
.nav.is-scrolled {
  background: rgba(8, 7, 10, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--gold-dim);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: var(--brand-h); width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.footer .brand img { height: 70px; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__menu a:not(.btn) {
  position: relative;
  font-family: var(--f-deco); font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--fog); transition: color .3s;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--amber); transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__menu a:not(.btn):hover { color: var(--bone); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--gold-dim); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 2px; background: var(--bone); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --brand-h: 72px; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.5rem 2rem;
    background: rgba(8, 7, 10, .97);
    border-bottom: 1px solid var(--gold-dim);
    transform: translateY(calc(-100% - var(--nav-h))); transition: transform .45s var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .9rem; }
  .nav__menu .btn { margin-top: 1.2rem; }
}
@media (max-width: 380px) {
  :root { --brand-h: 60px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.2rem, 5vw, 4rem) 22vh;
  overflow: hidden;
}
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 70% 92%, rgba(196, 120, 220, .38), transparent 70%),
    linear-gradient(180deg, #04030a 0%, #0b0718 16%, #1c0f36 36%, #34175a 56%, #57297c 76%, #85489a 92%, #a8679f 100%);
}

/* Painted cloud streaks */
.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(9, 5, 20, .9) 0%, rgba(9, 5, 20, .55) 40%, transparent 70%);
  will-change: transform;
  animation: cloud-drift var(--t, 80s) ease-in-out infinite alternate;
}
.c1 { width: 75vw; height: 12vh; top: 8%;  left: -20%; --t: 90s; }
.c2 { width: 60vw; height: 9vh;  top: 22%; left: 45%;  --t: 70s; animation-delay: -20s; }
.c3 { width: 90vw; height: 14vh; top: 34%; left: -30%; --t: 110s; opacity: .7; }
.c4 { width: 50vw; height: 7vh;  top: 46%; left: 55%;  --t: 65s; opacity: .55; animation-delay: -35s; }
.c5 { width: 70vw; height: 10vh; top: 2%;  left: 30%;  --t: 120s; animation-delay: -50s; }
@keyframes cloud-drift { from { transform: translateX(-8vw); } to { transform: translateX(10vw); } }

/* Police-style blimp drifting across the sky */
.blimp {
  position: absolute; top: 15%; left: 0;
  width: clamp(130px, 15vw, 230px);
  animation: blimp-drift 95s linear infinite;
  animation-delay: -30s;
  will-change: transform;
}
@keyframes blimp-drift {
  from { transform: translateX(105vw) translateY(0); }
  50% { transform: translateX(40vw) translateY(-14px); }
  to { transform: translateX(-30vw) translateY(0); }
}
.blimp__text { animation: sign-scroll 9s linear infinite; }
@keyframes sign-scroll { from { transform: translateX(0); } to { transform: translateX(-238px); } }
.blimp__beam { transform-origin: 128px 72px; animation: blimp-beam 6s ease-in-out infinite alternate; }
@keyframes blimp-beam { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.blimp__light { animation: blink 1.6s steps(1) infinite; }
.blimp__light--b { animation-delay: .8s; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .1; } }

/* Procedural skyline layers (built in JS) */
.skyline {
  position: absolute; left: -3%; width: 106%; bottom: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  will-change: transform;
}
.skyline--far  { height: 64%; }
.skyline--mid  { height: 52%; }
.skyline--near { height: 38%; }
.skyline .win { fill: #ffcd6b; transition: opacity .6s; }
.skyline .win.off { opacity: .06; }
.skyline--mid .win { fill: #e8a24f; }
.skyline .tip { fill: #ff3b3b; animation: blink 2.2s steps(1) infinite; }

/* Searchlights */
.beams { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; }
.beam {
  position: absolute; bottom: 24%;
  width: 12vw; min-width: 90px; height: 120vh;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 226, 170, .5), rgba(255, 226, 170, .14) 45%, transparent 80%);
  clip-path: polygon(47% 100%, 53% 100%, 100% 0, 0 0);
  filter: blur(3px);
  opacity: 0;
  animation: sweep var(--t, 12s) ease-in-out infinite alternate, beam-in 2s 0.6s var(--ease) forwards;
}
.b1 { left: 14%; --from: -32deg; --to: 12deg; --t: 13s; }
.b2 { left: 52%; --from: 18deg;  --to: -24deg; --t: 10s; animation-delay: -4s, .9s; }
.b3 { left: 80%; --from: -10deg; --to: 30deg; --t: 15s; animation-delay: -7s, 1.2s; }
@keyframes sweep { from { transform: rotate(var(--from)); } to { transform: rotate(var(--to)); } }
@keyframes beam-in { to { opacity: 1; } }

.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.lightning {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 80% 60% at var(--lx, 70%) 10%, rgba(255, 240, 230, .7), rgba(255, 210, 190, .18) 45%, transparent 75%);
}
.lightning.is-flashing { animation: flash .9s ease-out; }
@keyframes flash {
  0% { opacity: 0; } 6% { opacity: .95; } 12% { opacity: .1; }
  20% { opacity: .7; } 32% { opacity: 0; } 40% { opacity: .25; } 100% { opacity: 0; }
}

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .65) 100%),
    linear-gradient(to bottom, transparent 75%, var(--ink) 100%);
}

/* Hero content */
.hero__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--f-deco); font-size: .78rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--amber-soft);
  margin-bottom: 1.6rem;
  opacity: 0; animation: rise 1s .2s var(--ease) forwards;
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }

.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.9rem, 7vw, 6.2rem); line-height: .98; letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: line-up 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .35s; }
.hero__title .line:nth-child(2) > span { animation-delay: .5s; }
.hero__title .line:nth-child(3) > span { animation-delay: .65s; }
.hero__title em { color: var(--amber); text-shadow: 0 0 40px rgba(255, 181, 71, .45); }
@keyframes line-up { to { transform: translateY(0); } }

.hero__lede {
  max-width: 34rem; margin-top: 1.8rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: #e2d8c6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
  opacity: 0; animation: rise 1s .9s var(--ease) forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem;
  opacity: 0; animation: rise 1s 1.05s var(--ease) forwards;
}
.hero__actions .btn--ghost { background: rgba(8, 7, 10, .45); }
.hero__duties {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 2.4rem;
  font-family: var(--f-deco); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--fog);
  opacity: 0; animation: rise 1s 1.2s var(--ease) forwards;
}
.hero__duties li { display: inline-flex; align-items: center; gap: .6rem; }
.hero__duties li::before { content: ""; width: 7px; height: 7px; background: var(--crimson); transform: rotate(45deg); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__mark {
  position: relative; justify-self: center;
  width: min(420px, 34vw); aspect-ratio: 1;
  opacity: 0; animation: mark-in 1.6s .5s var(--ease) forwards;
}
/* full moon behind the badge, so it reads as an eclipse halo */
.hero__mark::before {
  content: ""; position: absolute; inset: -9%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff6df 0%, #f1dfb6 45%, #d9b98a 70%, #b98f62 100%);
  box-shadow: 0 0 80px 20px rgba(255, 230, 190, .32), 0 0 220px 60px rgba(170, 130, 255, .25);
  animation: moon-pulse 7s ease-in-out infinite;
}
.hero__mark::after {
  content: ""; position: absolute; inset: -9%; border-radius: 50%;
  background: repeating-radial-gradient(circle at 60% 60%, transparent 0 18px, rgba(140, 100, 60, .12) 19px 22px);
  mix-blend-mode: multiply; pointer-events: none;
}
@keyframes moon-pulse { 50% { box-shadow: 0 0 100px 30px rgba(255, 230, 190, .42), 0 0 260px 80px rgba(170, 130, 255, .32); } }
@keyframes mark-in { from { opacity: 0; transform: scale(.85) translateY(30px); } to { opacity: 1; transform: none; } }

/* the logo stays put; the eyebrow, bow tie and monocle glint animate inside assets/logo-hero.svg itself */
.mark { position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 2% 6% 6% 2%; filter: drop-shadow(0 14px 18px rgba(40, 20, 10, .35)); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-family: var(--f-deco); font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--fog); text-decoration: none;
  opacity: 0; animation: rise 1s 1.6s var(--ease) forwards;
}
.scroll-cue svg { width: 22px; height: 22px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

@media (max-width: 900px) {
  .hero { padding-bottom: 26vh; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__mark { order: -1; width: min(220px, 52vw); justify-self: start; margin-bottom: .5rem; }
}

/* ==========================================================================
   NEWSPAPER INTERLUDE
   ========================================================================== */
.ledger {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 1.2rem;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, #241a1f 0%, var(--ink) 75%);
  display: grid; place-items: center;
  perspective: 1400px;
}
.paper {
  --paper: #e9dcbd;
  width: min(780px, 100%);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  color: #1d1813;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(120, 85, 40, .28) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    var(--paper);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
  transform: rotate(-2deg);
}
.js .paper { opacity: 0; transform: rotate(-1080deg) scale(.05); }
.js .paper.is-in { animation: spin-in 1.5s var(--ease) forwards; }
@keyframes spin-in {
  0% { opacity: 0; transform: rotate(-1080deg) scale(.05); }
  15% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}
.paper__masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem;
  font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}
.paper__masthead span:last-child { text-align: right; }
.paper__name { font-family: var(--f-display); font-size: clamp(1.6rem, 4.5vw, 2.8rem); line-height: 1; text-align: center; }
.paper__rule { height: 6px; margin: .8rem 0 1.2rem; border-top: 3px solid #1d1813; border-bottom: 1px solid #1d1813; }
.paper__headline {
  font-family: var(--f-deco); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.6vw, 3.1rem); line-height: 1; letter-spacing: -.01em; text-align: center;
}
.paper__deck { margin: 1rem auto 1.4rem; max-width: 36rem; text-align: center; font-style: italic; font-size: 1.15rem; }
.paper__body {
  columns: 3 13rem; column-gap: 1.6rem; column-rule: 1px solid rgba(29, 24, 19, .35);
  font-size: .98rem; line-height: 1.45; text-align: justify; hyphens: auto;
  border-top: 1px solid #1d1813; padding-top: 1.2rem;
}
.paper__body p + p { margin-top: .7rem; }
.paper__photo { break-inside: avoid; margin: 0 0 .8rem; }
.paper__photo img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; padding: 10%;
  background: #c9bb9a; filter: grayscale(1) contrast(1.3) sepia(.3);
}
.paper__photo figcaption { font-family: var(--f-mono); font-size: .68rem; margin-top: .4rem; text-align: left; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { position: relative; padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 4rem); }
.section__head { max-width: 46rem; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--f-deco); font-size: .75rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.kicker::before, .kicker::after {
  content: ""; width: 34px; height: 7px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 40%, currentColor 40% 60%, transparent 60%) center / 7px 7px no-repeat;
}
.title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.04;
}
.section__lede { margin-top: 1.4rem; color: #d3c9b8; font-size: clamp(1.15rem, 1.5vw, 1.32rem); }

/* Reveal on scroll */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   DUTIES
   ========================================================================== */
.duties {
  background:
    linear-gradient(180deg, var(--ink), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(201, 162, 74, .04) 119px 120px),
    var(--night);
}
.cases {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem);
}
.case {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 3.4rem 1.8rem 1.8rem;
  background: linear-gradient(180deg, #19161f 0%, #110f15 100%);
  border: 1px solid var(--gold-dim);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.case::before, .case::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); pointer-events: none;
}
.case::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.case::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.case:hover { transform: translateY(-6px); border-color: rgba(201, 162, 74, .6); box-shadow: 0 30px 60px -30px rgba(192, 20, 47, .55); }
.case__light {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 200, 120, .13), transparent 60%);
}
.case:hover .case__light { opacity: 1; }
.case__tab {
  position: absolute; top: 0; left: 1.8rem;
  padding: .35rem .8rem .3rem;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--crimson);
}
.case__stamp {
  position: absolute; top: 1.4rem; right: 1.2rem;
  padding: .2rem .55rem;
  font-family: var(--f-mono); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson-hi); border: 2px solid currentColor;
  transform: rotate(8deg); opacity: .75;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}
.case__icon { width: 54px; height: 54px; color: var(--amber); margin-bottom: 1.4rem; transition: transform .6s var(--ease); }
.case:hover .case__icon { transform: rotate(-6deg) scale(1.08); }
.case h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.case__tagline {
  margin: .4rem 0 1rem;
  font-family: var(--f-deco); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.case > p:not([class]) { color: #d0c6b5; font-size: 1.12rem; }
.case__list { margin: 1.2rem 0 1.6rem; display: grid; gap: .5rem; }
.case__list li { position: relative; padding-left: 1.4rem; font-size: 1.08rem; }
.case__list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px;
  background: var(--crimson); transform: rotate(45deg);
}
.case__exchange {
  margin-top: auto;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, .35);
  border-left: 2px solid var(--amber);
  font-family: var(--f-mono); font-size: .86rem; line-height: 1.5; color: #d8cfbf;
}
.case__exchange p + p { margin-top: .6rem; color: var(--bone); }
.case__exchange span {
  display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fog);
}
.case__exchange p + p span { color: var(--amber); }

@media (max-width: 980px) {
  .cases { grid-template-columns: 1fr; max-width: 620px; }
}

/* ==========================================================================
   DEFENSE (interrogation room)
   ========================================================================== */
.defense {
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 80% 70% at 70% 40%, #1d1419 0%, #0b090d 70%);
}
.blinds {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-18deg, rgba(255, 196, 120, .085) 0 26px, transparent 26px 58px);
  -webkit-mask-image: radial-gradient(ellipse 45% 55% at 34% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 45% 55% at 34% 45%, #000 0%, transparent 72%);
  animation: blinds 18s ease-in-out infinite alternate;
}
@keyframes blinds { from { transform: translateX(-6%) skewX(-8deg); } to { transform: translateX(8%) skewX(-14deg); } }

.defense__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.defense__copy .kicker { margin-bottom: 1.2rem; }
.defense__copy .title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }

.tenets { counter-reset: t; margin-top: 2.6rem; display: grid; gap: 1.6rem; }
.tenets li { counter-increment: t; position: relative; padding-left: 4.2rem; }
/* diamond frame */
.tenets li::before {
  content: ""; position: absolute; left: .35rem; top: .25rem;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--gold); transform: rotate(45deg);
}
/* roman numeral */
.tenets li::after {
  content: counter(t, upper-roman);
  position: absolute; left: 0; top: -.1rem; width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1rem; color: var(--amber);
}
.tenets h3 { font-family: var(--f-deco); font-size: 1rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.tenets p { margin-top: .3rem; color: #cfc5b4; font-size: 1.12rem; }

.interrogation { position: relative; padding-top: 170px; }
.lamp {
  position: absolute; top: calc(-1 * clamp(5rem, 11vw, 9rem)); left: 50%;
  width: 120px; height: calc(170px + clamp(5rem, 11vw, 9rem));
  margin-left: -60px;
  transform-origin: 50% 0;
  animation: swing 5s ease-in-out infinite alternate;
  z-index: 2; pointer-events: none;
}
.lamp__fixture { position: absolute; bottom: 0; left: 0; width: 120px; height: auto; }
.lamp__fixture line { transform: scaleY(1); }
.lamp::before {
  /* cord running up to the ceiling */
  content: ""; position: absolute; top: 0; bottom: 110px; left: 59px; width: 2px; background: #2a2730;
}
.lamp__bulb { animation: bulb 4s ease-in-out infinite; }
@keyframes bulb { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .4; } 50% { opacity: 1; } 52% { opacity: .6; } 54% { opacity: 1; } }
.lamp__cone {
  position: absolute; top: calc(100% - 24px); left: 50%;
  width: 560px; height: 560px; margin-left: -280px;
  background: linear-gradient(to bottom, rgba(255, 220, 150, .22), rgba(255, 220, 150, .06) 60%, transparent 90%);
  clip-path: polygon(44.6% 0, 55.4% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen; filter: blur(2px);
}
@keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

.log {
  position: relative; z-index: 1;
  background: rgba(10, 9, 13, .9);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .04);
}
.log__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--gold-dim);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fog);
}
.log__rec { display: inline-flex; align-items: center; gap: .45rem; color: var(--crimson-hi); }
.log__rec i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(1) infinite; }
.log__body {
  position: relative;
  height: 400px; overflow: hidden;
  padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem;
  font-family: var(--f-mono); font-size: .95rem; line-height: 1.5;
}
.msg { max-width: 88%; opacity: 0; transform: translateY(8px); animation: msg-in .4s var(--ease) forwards; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
.msg__who { display: block; margin-bottom: .25rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fog); }
.msg__text { display: block; padding: .75rem .95rem; }
.msg--visitor { align-self: flex-start; }
.msg--visitor .msg__text { background: #1e1b24; border-left: 2px solid var(--crimson); color: #e6dccb; }
.msg--codsworth { align-self: flex-end; text-align: left; }
.msg--codsworth .msg__who { color: var(--amber); text-align: right; }
.msg--codsworth .msg__text { background: #241d14; border-right: 2px solid var(--amber); color: var(--bone); }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: blink .8s steps(1) infinite; }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: dots 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.verdict {
  align-self: center;
  padding: .4rem 1rem;
  font-family: var(--f-mono); font-weight: 700; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--crimson-hi); border: 3px double currentColor;
  transform: rotate(-6deg) scale(2.4); opacity: 0;
  animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
@keyframes stamp { to { transform: rotate(-6deg) scale(1); opacity: .9; } }
.log__body.is-clearing > * { transition: opacity .5s, transform .5s; opacity: 0 !important; transform: translateY(-14px) !important; }

@media (max-width: 980px) {
  .defense__grid { grid-template-columns: 1fr; }
  .interrogation { padding-top: 150px; }
  .lamp { top: -40px; height: 190px; }
  .log__body { height: 380px; }
}

/* ==========================================================================
   FULL SERVICE
   ========================================================================== */
.service {
  background:
    linear-gradient(180deg, #0b090d 0%, transparent 25%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(192, 20, 47, .22), transparent 70%),
    var(--night);
}
.steps {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem);
}
.steps::before {
  content: ""; position: absolute; top: 48px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.8s .3s var(--ease);
}
.steps.is-in::before { transform: scaleX(1); }
.js .steps[data-reveal] { opacity: 1; transform: none; }
.step { position: relative; text-align: center; }
.js .step { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(.3s + var(--d) * 280ms); }
.js .steps.is-in .step { opacity: 1; transform: none; }
.step__icon {
  position: relative; z-index: 1;
  width: 96px; height: 96px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  color: var(--amber);
  background: var(--night);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: box-shadow .4s, background .4s;
}
.step__icon::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-dim); }
.step__icon svg { width: 52px; height: 52px; transform: rotate(-45deg); overflow: visible; }
.step:hover .step__icon { background: #1b1418; box-shadow: 0 0 40px -6px rgba(255, 181, 71, .45); }
.step__num { margin-top: 1.6rem; font-family: var(--f-display); font-size: 1rem; color: var(--crimson-hi); letter-spacing: .1em; }
.step h3 { margin: .2rem 0 .6rem; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; }
.step p:last-child { color: #cfc5b4; font-size: 1.1rem; }

/* icon micro-animations */
.ic-paper { transition: transform .5s var(--ease); }
.step:hover .ic-paper--1 { transform: translate(-4px, -3px) rotate(-6deg); }
.step:hover .ic-paper--2 { transform: translate(3px, 2px) rotate(4deg); }
.ic-glass { animation: search 4s ease-in-out infinite; }
@keyframes search { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-14px, -10px); } 66% { transform: translate(-6px, 6px); } }
.ic-blink { animation: blink 1.4s steps(1) infinite; }
.ic-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.ic-sparkle { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s .1s, transform .6s; transform: scale(.2); }
.step:hover .ic-lid { transform: translate(-4px, -10px) rotate(-22deg); }
.step:hover .ic-sparkle { opacity: 1; transform: scale(1) rotate(45deg); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; gap: 2.6rem; }
  .steps::before { top: 48px; bottom: 48px; left: 48px; right: auto; width: 1px; height: auto; transform: scaleY(0); transform-origin: top;
    background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent); }
  .steps.is-in::before { transform: scaleY(1); }
  .step { text-align: left; padding-left: 130px; min-height: 110px; }
  .step__icon { position: absolute; left: 0; top: 0; margin: 0; }
  .step__num { margin-top: 0; }
}

/* ==========================================================================
   OPEN SOURCE
   ========================================================================== */
.open { background: var(--ink); }
.terminal {
  max-width: 880px; margin: 0 auto clamp(3rem, 6vw, 5rem);
  background: #0c0b0f; border: 1px solid var(--gold-dim);
  box-shadow: 0 40px 80px -40px rgba(192, 20, 47, .5);
}
.terminal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--gold-dim);
  font-family: var(--f-mono); font-size: .78rem; color: var(--fog);
}
.terminal__dots { display: inline-flex; gap: 6px; }
.terminal__dots i { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold); }
.terminal__dots i:first-child { background: var(--crimson); border-color: var(--crimson); }
.terminal__copy {
  font-family: var(--f-deco); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  padding: .4rem .8rem; color: var(--bone); background: none; border: 1px solid var(--gold-dim); cursor: pointer;
  transition: background .3s, color .3s;
}
.terminal__copy:hover { background: var(--gold); color: var(--ink); }
.terminal__body {
  margin: 0; padding: 1.4rem 1.4rem 1.6rem;
  font-family: var(--f-mono); font-size: clamp(.8rem, 1.6vw, 1rem); line-height: 1.8;
  white-space: pre-wrap; word-break: break-all; color: var(--bone);
  min-height: 9.5em;
}
.terminal__body .p { color: var(--amber); }
.terminal__body .o { color: var(--fog); }
.terminal__body .c { color: #8a7f6a; }

.paths {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem);
}
.path {
  position: relative; display: flex; flex-direction: column;
  padding: 2.4rem 2rem 2rem;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, #141118, #0d0b10);
}
.path--featured {
  border-color: var(--crimson);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(192, 20, 47, .25), transparent 70%),
    linear-gradient(180deg, #1a0f14, #0d0b10);
  box-shadow: 0 30px 70px -30px rgba(192, 20, 47, .6);
}
.path__tag {
  align-self: flex-start;
  font-family: var(--f-deco); font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); padding-bottom: .4rem; border-bottom: 1px solid currentColor;
}
.path--featured .path__tag { color: var(--crimson-hi); }
.path h3 { margin: 1.1rem 0 .6rem; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; }
.path > p:not([class]) { color: #cfc5b4; font-size: 1.12rem; }
.path ul { margin: 1.4rem 0 2rem; display: grid; gap: .55rem; }
.path li { position: relative; padding-left: 1.8rem; }
.path li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg);
}
.path .btn { margin-top: auto; align-self: flex-start; }

/* Ferris the Rustacean, peeking out from behind the repo button */
.peek { position: relative; isolation: isolate; margin-top: auto; align-self: flex-start; }
.peek .btn { position: relative; z-index: 1; margin-top: 0; background: #0f0d13; }
.peek .btn:hover { background: #1f1a14; }
.ferris {
  position: absolute; z-index: 0; right: 14px; bottom: calc(100% - 16px);
  width: 96px; height: auto; overflow: visible;
  transform: translateY(8px);
  animation: ferris-peek 8s var(--ease) 2s infinite;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.ferris__pupils { animation: ferris-look 8s ease-in-out 2s infinite; }
.ferris__claw { transform-box: fill-box; }
.ferris__claw--l { transform-origin: 100% 100%; }
.ferris__claw--r { transform-origin: 0% 100%; }
.peek:hover .ferris { animation: none; transform: translateY(-6px); }
.peek:hover .ferris__pupils { animation: none; transform: translate(-1px, -1.5px); }
.peek:hover .ferris__claw--l { animation: snap-l .45s ease-in-out infinite alternate; }
.peek:hover .ferris__claw--r { animation: snap-r .45s ease-in-out .2s infinite alternate; }
@keyframes ferris-peek {
  0%, 60%, 100% { transform: translateY(8px); }
  66%, 90% { transform: translateY(0); }
}
@keyframes ferris-look {
  0%, 66% { transform: translateX(0); }
  72%, 76% { transform: translateX(-1.6px); }
  82%, 86% { transform: translateX(1.6px); }
  90%, 100% { transform: translateX(0); }
}
@keyframes snap-l { to { transform: rotate(-14deg); } }
@keyframes snap-r { to { transform: rotate(14deg); } }

@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background:
    radial-gradient(ellipse 60% 60% at 15% 60%, rgba(255, 181, 71, .08), transparent 70%),
    linear-gradient(180deg, var(--ink), #110c10);
}
.contact__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.bell {
  position: relative; display: block; margin-top: 3rem;
  width: 200px; padding: 0; background: none; border: 0; cursor: pointer;
}
.bell svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.bell__body { transform-origin: 80px 96px; }
.bell__plunger { transition: transform .1s; }
.bell.is-ringing .bell__body { animation: ring .7s ease-out; }
.bell.is-ringing .bell__plunger { transform: translateY(5px); }
@keyframes ring {
  0% { transform: rotate(0); } 15% { transform: rotate(-6deg); } 30% { transform: rotate(5deg); }
  45% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } 100% { transform: rotate(0); }
}
.bell__ding {
  position: absolute; top: -10px; right: -40px;
  font-family: var(--f-display); font-size: 1.6rem; color: var(--amber);
  opacity: 0; transform: translateY(10px) rotate(-10deg); pointer-events: none;
}
.bell.is-ringing .bell__ding { animation: ding .9s var(--ease); }
@keyframes ding { 0% { opacity: 0; transform: translateY(10px) rotate(-10deg) scale(.6); } 20% { opacity: 1; transform: translateY(-6px) rotate(-10deg) scale(1.1); } 100% { opacity: 0; transform: translateY(-30px) rotate(-10deg) scale(1); } }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, #16131b, #0e0c12);
  border: 1px solid var(--gold-dim);
  position: relative;
}
.form::before, .form::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); }
.form::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.form::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.field { display: flex; flex-direction: column; gap: .5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field:nth-child(3), .field--chips, .field:has(textarea) { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--f-deco); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.field legend { margin-bottom: .7rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: .7rem 0;
  font: inherit; font-size: 1.15rem; color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid rgba(238, 229, 209, .25);
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 1px 0 var(--amber); }
.field input[aria-invalid="true"] { border-color: var(--crimson-hi); }
.field--chips { flex-direction: row; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .55rem 1rem;
  font-family: var(--f-deco); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--gold-dim); color: var(--fog);
  transition: all .25s;
}
.chip:hover span { border-color: var(--gold); color: var(--bone); }
.chip input:checked + span { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; font-family: var(--f-mono); font-size: .9rem; color: var(--amber); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .bell { width: 150px; margin-top: 2rem; }
}
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding: 4rem clamp(1.2rem, 5vw, 4rem) 3rem;
  background: #060508;
  border-top: 1px solid var(--gold-dim);
}
.footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: 180px; height: 3px; margin-left: -90px; background: var(--crimson);
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.footer__tag { font-family: var(--f-body); font-style: italic; color: var(--fog); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-top: .6rem; }
.footer__links a {
  font-family: var(--f-deco); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--fog); transition: color .3s;
}
.footer__links a:hover { color: var(--amber); }
.footer__legal { margin-top: 1.4rem; font-family: var(--f-mono); font-size: .78rem; color: #6d6676; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .beam { opacity: 1; }
  .js .paper { opacity: 1; transform: rotate(-2deg); }
}
