/* =====================================================================
   Mouneshan Jegan, CV site. One stylesheet.
   Look: ocean-blue velvet, glowing cream gold, translucent scrollwork, a touch of film grain.
   Rule of thumb: only transform, opacity and filter are ever animated.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Butler'; src: url(../assets/fonts/Butler-Bold.otf) format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../assets/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../assets/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../assets/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url(../assets/fonts/courier-prime-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url(../assets/fonts/courier-prime-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url(../assets/fonts/SpecialElite-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Birds of Paradise'; src: url(../assets/fonts/BirdsOfParadise.ttf) format('truetype'); font-display: swap; }

/* Metric-matched fallbacks, so text doesn't jump when the real fonts arrive. */
@font-face { font-family: 'Cormorant Fallback'; src: local('Times New Roman'), local('Times'); size-adjust: 86%; ascent-override: 107%; descent-override: 33%; line-gap-override: 0%; }
@font-face { font-family: 'Butler Fallback'; src: local('Georgia Bold'), local('Georgia'); size-adjust: 98%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 107%; ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  /* Ocean-blue velvet (replaces the darker midnight). */
  --navy: #102650;
  --navy-deep: #0A1836;
  --navy-2: #16316A;
  /* Glowing cream gold. */
  --gold: #E2BE7C;
  --gold-bright: #F7E2B2;
  --gold-deep: #B8904F;
  --ivory: #F5EEDF;
  --ivory-dim: rgba(245, 238, 223, .72);
  --black: #050505;
  --white: #F2F2F2;
  --paper: #EFE6D2;
  --rule: rgba(11, 26, 51, .12);
  --ink: #1C1A17;
  --wax: #7A1F1F;
  --wax-rim: #9B2C2C;
  --wax-gold: #B8954F;

  --gold-a12: rgba(226, 190, 124, .12);
  --gold-a28: rgba(226, 190, 124, .3);
  --gold-a50: rgba(226, 190, 124, .55);

  /* The glow: a hot cream core with a warm amber halo, like stage-lit gold foil. */
  --glow-text: 0 0 1px rgba(255, 242, 214, .8), 0 0 12px rgba(255, 190, 110, .45), 0 0 34px rgba(255, 150, 60, .28);
  --glow-soft: 0 0 10px rgba(255, 190, 110, .35), 0 0 26px rgba(255, 150, 60, .18);
  --glow-line: drop-shadow(0 0 3px rgba(255, 200, 120, .55)) drop-shadow(0 0 12px rgba(255, 150, 60, .3));

  --display: 'Butler', 'Butler Fallback', Georgia, serif;
  --serif: 'Cormorant', 'Cormorant Fallback', 'Times New Roman', serif;
  --sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --type: 'Courier Prime', 'Courier New', monospace;
  --stamp: 'Special Elite', 'Courier Prime', monospace;
  --script: 'Birds of Paradise', 'Snell Roundhand', cursive;

  /* Snappy with a tiny overshoot, and a plain quick ease-out. */
  --ease-pop: cubic-bezier(.3, 1.45, .55, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 220ms;
  --t-med: 340ms;

  --page-pad: clamp(20px, 5vw, 64px);
  --safe-top: env(safe-area-inset-top, 0px);

  /* Velvet: sheen patches over a deep base. Shared by the page, the intro doors and the menu. */
  --velvet:
    radial-gradient(ellipse 55% 45% at 22% 18%, rgba(46, 92, 170, .55), transparent 70%),
    radial-gradient(ellipse 45% 55% at 82% 38%, rgba(38, 80, 156, .45), transparent 70%),
    radial-gradient(ellipse 60% 40% at 40% 82%, rgba(34, 72, 145, .45), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 50%, #13306A 0%, #0D2149 60%, #081530 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--navy-deep); overflow-x: clip; }
body {
  margin: 0; color: var(--ivory); font-family: var(--sans); font-size: 17px; line-height: 1.6; background: transparent;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--navy-deep); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 300; padding: 10px 16px; background: var(--gold); color: var(--navy-deep); border-radius: 999px; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }

/* =====================================================================
   ATMOSPHERE: velvet, scrollwork, grain, vignette (all fixed)
   ===================================================================== */
.velvet { position: fixed; inset: 0; z-index: -3; background: var(--velvet); }

/* Translucent scrollwork across the whole page. Three nested layers per piece, so each motion
   stays a pure transform: .amb (mouse parallax, set by JS) > .amb-sway (slow sway, CSS) > img (mirroring). */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; transition: opacity 600ms linear; }
.amb { position: absolute; width: clamp(220px, 34vw, 560px); aspect-ratio: 420 / 364; will-change: transform; }
.amb-sway { position: absolute; inset: 0; will-change: transform; animation: sway var(--sway, 13s) ease-in-out infinite alternate; transform-origin: var(--mx) var(--my); }
.amb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.amb .base { opacity: .2; filter: var(--glow-line); }
/* A brighter copy that breathes in and out: the "shine". */
.amb .shine { opacity: 0; will-change: opacity; filter: brightness(1.5) drop-shadow(0 0 6px rgba(255, 200, 120, .8)); animation: glint var(--glint, 9s) ease-in-out infinite; animation-delay: var(--gd, 0s); }
.amb { -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 36%, transparent 76%); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 36%, transparent 76%); }
.amb { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* The side pieces are rotated, so their box is square and the fade is an ellipse that is fully clear at every edge. */
.amb-ml, .amb-mr { aspect-ratio: 1; }
.amb-ml img, .amb-mr img { object-fit: contain; }
.amb-ml { -webkit-mask-image: radial-gradient(ellipse 100% 50% at 0% 50%, #000 35%, transparent 96%); mask-image: radial-gradient(ellipse 100% 50% at 0% 50%, #000 35%, transparent 96%); }
.amb-mr { -webkit-mask-image: radial-gradient(ellipse 100% 50% at 100% 50%, #000 35%, transparent 96%); mask-image: radial-gradient(ellipse 100% 50% at 100% 50%, #000 35%, transparent 96%); }
.amb-tl { left: -3%; top: -4%; --mx: 0%; --my: 0%; } .amb-tl img { transform: scaleY(-1); }
.amb-tr { right: -3%; top: -4%; --mx: 100%; --my: 0%; } .amb-tr img { transform: scale(-1, -1); }
.amb-bl { left: -3%; bottom: -4%; --mx: 0%; --my: 100%; }
.amb-br { right: -3%; bottom: -4%; --mx: 100%; --my: 100%; } .amb-br img { transform: scaleX(-1); }
.amb-ml { left: -6%; top: 36%; width: clamp(160px, 20vw, 340px); --mx: 0%; --my: 50%; } .amb-ml img { transform: rotate(-90deg) scaleY(-1); }
.amb-mr { right: -6%; top: 42%; width: clamp(160px, 20vw, 340px); --mx: 100%; --my: 50%; } .amb-mr img { transform: rotate(90deg); }
.amb-ml .base, .amb-mr .base { opacity: .12; }
@keyframes sway {
  0% { transform: rotate(-1.1deg) translate3d(-3px, 2px, 0) scale(1); }
  50% { transform: rotate(.6deg) translate3d(2px, -3px, 0) scale(1.012); }
  100% { transform: rotate(1.2deg) translate3d(4px, 1px, 0) scale(1.004); }
}
@keyframes glint { 0%, 62%, 100% { opacity: 0; } 76% { opacity: .4; } }

/* Neo-noir finish: edge vignette and moving film grain on top of everything (no pointer events). */
.vignette { position: fixed; inset: 0; z-index: 140; pointer-events: none; background: radial-gradient(ellipse 85% 80% at 50% 45%, transparent 55%, rgba(4, 10, 26, .55) 100%); }
/* Static and unblended on purpose: it only breaks up gradient banding and adds a filmic tooth. */
.grain { position: fixed; inset: 0; z-index: 141; pointer-events: none; background: var(--grain); background-size: 220px 220px; opacity: .045; }

/* ---------- Reveal on scroll (an inline script adds .js to <html>) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-med) var(--ease-out), transform 380ms var(--ease-pop);
  transition-delay: var(--d, 0ms);
}

/* ---------- Cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; will-change: transform; }
.has-cursor .cursor { display: block; }
.cursor > span { position: absolute; border-radius: 50%; transition: transform var(--t-fast) var(--ease-pop), opacity 160ms linear; }
.cursor-dot { width: 8px; height: 8px; left: -4px; top: -4px; background: var(--gold-bright); box-shadow: 0 0 10px rgba(255, 190, 110, .8); }
.cursor-ring { width: 32px; height: 32px; left: -16px; top: -16px; border: 1.5px solid var(--gold-bright); box-shadow: var(--glow-soft); opacity: 0; transform: scale(.25); }
.cursor.is-hover .cursor-dot { opacity: 0; transform: scale(.5); }
.cursor.is-hover .cursor-ring { opacity: 1; transform: scale(1); }
.cursor.is-down .cursor-ring { transform: scale(.82); }
.cursor.is-hidden > span { opacity: 0; }

/* =====================================================================
   INTRO
   ===================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 200; perspective: 1600px; pointer-events: auto;
  --cw: min(calc(54vh * 640 / 669), 76vw);
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden;
  background: var(--velvet); background-size: 100vw 100vh;
  backface-visibility: hidden; will-change: transform;
}
.door-l { left: 0; transform-origin: 0 50%; background-position: 0 0; }
.door-r { right: 0; transform-origin: 100% 50%; background-position: -50vw 0; }
/* Thin glowing gold edge on each door's meeting side, shown only as they open. */
.door::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(transparent, var(--gold-bright) 30%, var(--gold-bright) 70%, transparent); box-shadow: 0 0 14px rgba(255, 180, 90, .8); opacity: 0; transition: opacity 120ms linear; }
.door-l::after { right: 0; }
.door-r::after { left: 0; }
.intro.is-opening .door::after { opacity: 1; }
/* Each door holds the full crest, centred on the viewport, so the two halves line up exactly. */
.door-crest { position: absolute; top: 50%; width: var(--cw); transform: translate(-50%, -50%); opacity: 0; }
.door-l .door-crest { left: 100%; }
.door-r .door-crest { left: 0; }
.door-crest img { width: 100%; height: auto; filter: brightness(1.15) var(--glow-line); }
/* A pre-brightened copy that fades in and out for the flare: only its opacity animates. */
.door-crest .flare { position: absolute; inset: 0; opacity: 0; filter: brightness(1.55) drop-shadow(0 0 6px rgba(255, 210, 140, .9)) drop-shadow(0 0 24px rgba(255, 150, 60, .5)); }
/* Darkens each door as it turns away, to give the panels weight. Opacity only. */
.door-shade { position: absolute; inset: 0; background: #030916; opacity: 0; }

.intro-draw, .intro-shine { position: absolute; left: 50%; top: 50%; width: var(--cw); transform: translate(-50%, -50%); pointer-events: none; }
.intro-shine { aspect-ratio: 900 / 941; }
.intro-shine canvas { width: 100%; height: 100%; }
.intro-canvas { width: 100%; height: auto; aspect-ratio: 640 / 669; }

.intro-corners { position: absolute; inset: 0; pointer-events: none; }
.corner { position: absolute; width: clamp(130px, 24vw, 340px); aspect-ratio: 420 / 364; --mx: 0%; --my: 100%; }
.corner > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.corner img { opacity: 0; filter: brightness(1.15) var(--glow-line); }
/* The artwork's scrollwork grows from its bottom-left; mirror it into each corner. Masks are applied in
   the corner's own (mirrored) space, so the fade always anchors on the artwork's base. */
.corner { -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 55%, transparent 96%); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 55%, transparent 96%); }
.corner-bl { left: 0; bottom: 0; }
.corner-tl { left: 0; top: 0; transform: scaleY(-1); }
.corner-br { right: 0; bottom: 0; transform: scaleX(-1); }
.corner-tr { right: 0; top: 0; transform: scale(-1, -1); }

/* Flying crest that lands in the nav. */
.crest-fly { position: fixed; z-index: 210; pointer-events: none; will-change: transform, opacity; filter: brightness(1.35) drop-shadow(0 0 4px rgba(255, 180, 90, .6)); }

/* Failsafe: if the intro script never finishes, the site still shows. */
body.is-intro .intro { animation: intro-failsafe 300ms linear 4.4s forwards; }
body.is-intro .nav, body.is-intro .mute { animation: ui-failsafe 300ms linear 4.4s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes ui-failsafe { to { opacity: 1; transform: none; pointer-events: auto; } }
.intro.is-done { display: none; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: calc(14px + var(--safe-top)); left: 50%; z-index: 90;
  transform: translateX(-50%); opacity: 1;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-pop);
}
body.is-intro .nav { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }
.nav-pill {
  position: relative; display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 8px 0 10px;
  border: 1px solid var(--gold-a28); border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 18px rgba(255, 170, 80, .08), inset 0 0 12px rgba(255, 190, 110, .05);
}
/* Frosted layer: a separate element so only its opacity changes on scroll. */
.nav-pill::before, .mute::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: rgba(12, 30, 66, .7); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transition: opacity var(--t-med) linear;
}
.is-scrolled .nav-pill::before, .is-scrolled .mute::before { opacity: 1; }

.nav-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.nav-logo .crest-blink { width: 34px; }
.nav-logo img { width: 34px; height: auto; filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 4px rgba(255, 180, 90, .45)); transition: transform var(--t-fast) var(--ease-pop); }
.nav-logo:hover img { transform: scale(1.08); }
.nav-logo.is-waiting { opacity: 0; }

.nav-links { display: flex; gap: 2px; }
.nav-links a, .nav-skim {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 13px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--ivory-dim); border-radius: 999px;
  transition: color 150ms linear, text-shadow 150ms linear;
}
.nav-links a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 1px; background: var(--gold-bright); box-shadow: 0 0 6px rgba(255, 190, 110, .7);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-bright); text-shadow: var(--glow-soft); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 22px; background: var(--gold-a28); margin: 0 4px; }
.nav-skim { color: var(--gold-bright); border: 1px solid var(--gold-a50); height: 36px; padding: 0 14px; box-shadow: var(--glow-soft); transition: color 150ms linear, transform var(--t-fast) var(--ease-pop); }
.nav-skim:hover { color: var(--ivory); transform: translateY(-1px); }

.lang { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ivory-dim); }
.lang span { opacity: .45; }
.lang button { display: grid; place-items: center; min-width: 30px; height: 36px; border-radius: 8px; color: var(--ivory-dim); transition: color 150ms linear; }
.lang button[aria-pressed="true"] { color: var(--gold-bright); text-shadow: var(--glow-soft); }
.lang button:hover { color: var(--ivory); }

.nav-menu { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.nav-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--gold-bright); box-shadow: 0 0 6px rgba(255, 190, 110, .6); transition: transform var(--t-fast) var(--ease-pop); }
.nav-menu span:first-child { top: 18px; }
.nav-menu span:last-child { top: 25px; left: 17px; }
.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: translate(-4px, -3.5px) rotate(-45deg); left: 13px; }

/* ---------- Mute ---------- */
.mute {
  position: fixed; top: calc(19px + var(--safe-top)); right: max(16px, env(safe-area-inset-right)); z-index: 91;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-a28);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-pop);
}
body.is-intro .mute { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.mute:hover { transform: scale(1.06); }
.mute svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-bright); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 180, 90, .5)); }
.mute .spk { fill: var(--gold-a28); }
.mute .cross { opacity: 0; transform: scale(.6); transform-origin: 18px 12px; transition: opacity 150ms linear, transform var(--t-fast) var(--ease-pop); }
.mute .waves { transition: opacity 150ms linear; }
.mute[aria-pressed="true"] .waves { opacity: 0; }
.mute[aria-pressed="true"] .cross { opacity: 1; transform: none; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center;
  background: var(--velvet);
  opacity: 0; transition: opacity 260ms var(--ease-out);
}
.menu.is-open { opacity: 1; }
.menu-corners .mc { position: absolute; width: 38vw; max-width: 220px; opacity: .45; filter: var(--glow-line); }
.mc-bl { left: 0; bottom: 0; }
.mc-tl { left: 0; top: 0; transform: scaleY(-1); }
.mc-br { right: 0; bottom: 0; transform: scaleX(-1); }
.mc-tr { right: 0; top: 0; transform: scale(-1, -1); }
.menu-inner { position: relative; text-align: center; }
.menu-inner li { opacity: 0; transform: translateY(14px); transition: opacity 260ms var(--ease-out), transform 340ms var(--ease-pop); transition-delay: calc(var(--i) * 35ms + 60ms); }
.menu.is-open li { opacity: 1; transform: none; }
.menu-inner a { display: inline-block; padding: 6px 16px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 9vw, 44px); line-height: 1.25; color: var(--gold-bright); text-shadow: var(--glow-soft); }
.menu-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 32px; }
.lang-lg { font-size: 16px; }
.lang-lg button { min-width: 44px; height: 44px; }

/* =====================================================================
   SHARED PIECES
   ===================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .04em;
  transition: color 180ms linear, transform var(--t-fast) var(--ease-pop);
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn-gold { color: var(--gold-bright); border: 1px solid var(--gold); box-shadow: var(--glow-soft), inset 0 0 14px rgba(255, 190, 110, .12); text-shadow: 0 0 8px rgba(255, 190, 110, .4); }
.btn-gold::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
}
.btn-gold:hover, .btn-gold:focus-visible { color: var(--navy-deep); text-shadow: none; }
.btn-gold:hover::before, .btn-gold:focus-visible::before { transform: scaleX(1); }
.btn:active { transform: scale(.97); }

/* Gold line, tiny crest, gold line. */
.divider { display: flex; align-items: center; gap: 18px; width: min(560px, 80vw); margin: 0 auto; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; box-shadow: 0 0 8px rgba(255, 180, 90, .35); }
.divider::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider img { width: 22px; height: auto; filter: brightness(1.45) saturate(1.1) drop-shadow(0 0 5px rgba(255, 180, 90, .7)); }

.section { padding: clamp(96px, 14vh, 160px) var(--page-pad); }
.section-head { max-width: 900px; margin: 0 auto; text-align: center; }
.section-head h2, .h2 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.05; letter-spacing: -.005em; color: var(--gold-bright); text-shadow: var(--glow-text); }
.lede { margin: 22px auto 0; max-width: 36ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ivory-dim); }
.kicker { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* Crest eye-blink easter egg. JS draws the lids into .lids. */
.crest-blink { position: relative; display: inline-block; line-height: 0; }
.crest-blink .lids { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lids .lid { opacity: 0; transform: scaleY(.2); transform-box: fill-box; transform-origin: 50% 0; }
.lids .lid-fill { fill: var(--navy); }
.lids .lid-line { fill: none; stroke: var(--gold-bright); stroke-width: 5; stroke-linecap: round; }
.crest-blink.is-blinking .lid { animation: blink 260ms ease-in-out; }
@keyframes blink { 0% { opacity: 0; transform: scaleY(.2); } 40%, 60% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(.2); } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh;
  padding: 120px var(--page-pad) 120px; text-align: center; overflow-x: clip;
}
/* A cool pool of light behind the name, like a spotlight on velvet. */
.hero::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(1100px, 100%); aspect-ratio: 2 / 1; transform: translate(-50%, -52%); background: radial-gradient(ellipse at center, rgba(90, 140, 230, .22), rgba(255, 170, 80, .05) 40%, transparent 68%); pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 18px 0 14px; margin-bottom: 34px;
  border: 1px solid var(--gold); border-radius: 999px; background: rgba(226, 190, 124, .1);
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright);
  box-shadow: var(--glow-soft); text-shadow: 0 0 8px rgba(255, 190, 110, .45);
}
.badge-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 8px rgba(255, 190, 110, .9); }
.badge-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--gold-bright); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

.hero-name {
  font-family: var(--display); font-weight: 700; font-size: clamp(58px, 10.4vw, 160px); line-height: .96;
  letter-spacing: -.012em; color: var(--gold-bright); text-shadow: var(--glow-text);
}
.hero-also {
  position: relative; z-index: 1; margin-top: -.18em; transform: translateX(6%) rotate(-5deg);
  font-family: var(--script); font-size: clamp(42px, 5.8vw, 92px); line-height: 1.1; color: var(--gold);
  text-shadow: 0 0 2px rgba(255, 235, 200, .6), 0 0 14px rgba(255, 170, 80, .55), 0 0 34px rgba(255, 140, 40, .25);
}
html[lang="da"] .hero-also { transform: translateX(0) rotate(-5deg); }
.hero-line { margin-top: clamp(22px, 3vh, 34px); font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; color: var(--ivory); }
.hero-based { margin: 14px 0 38px; font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 44px; height: 72px; margin-left: -22px; display: grid; place-items: center; }
.scroll-cue span { position: relative; width: 1px; height: 56px; overflow: hidden; }
.scroll-cue span::before { content: ''; position: absolute; inset: 0; background: var(--gold-a28); }
.scroll-cue span::after { content: ''; position: absolute; inset: 0; background: var(--gold-bright); animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: 50% 0; }
  45% { transform: scaleY(1); transform-origin: 50% 0; }
  45.01% { transform: scaleY(1); transform-origin: 50% 100%; }
  90%, 100% { transform: scaleY(0); transform-origin: 50% 100%; }
}

/* =====================================================================
   ABOUT + STATS
   ===================================================================== */
.about { padding: clamp(80px, 12vh, 140px) var(--page-pad) clamp(96px, 14vh, 160px); }
.about-grid {
  display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 560px); justify-content: center; align-items: center;
  gap: clamp(48px, 7vw, 110px); max-width: 1100px; margin: 0 auto;
}
.about-text { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: var(--ivory); --d: 80ms; }

/* An estate-hall portrait: oil painting in a glowing double gold oval with scrollwork. */
.portrait { position: relative; display: flex; flex-direction: column; align-items: center; }
.oval { width: min(310px, 72vw); aspect-ratio: 4 / 5; padding: 7px; border: 1.5px solid var(--gold-bright); border-radius: 50%; box-shadow: 0 0 14px rgba(255, 180, 90, .45), 0 0 40px rgba(255, 150, 60, .18), inset 0 0 10px rgba(255, 180, 90, .3); }
.oval-inner { position: relative; width: 100%; height: 100%; border: 1px solid var(--gold); border-radius: 50%; overflow: hidden; background: #221e17; box-shadow: 0 0 8px rgba(255, 180, 90, .35); }
.oval-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.oval-inner::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 26px 6px rgba(10, 8, 6, .65); }
.flourish { display: flex; justify-content: center; gap: 0; width: 200px; position: relative; z-index: 1; filter: brightness(1.2) var(--glow-line); }
.flourish img { width: 50%; height: auto; }
.flourish-top { margin-bottom: -30px; }
.flourish-top img:last-child { transform: scaleX(-1); }
.flourish-bottom { margin-top: -30px; }
.flourish-bottom img:first-child { transform: scaleY(-1); }
.flourish-bottom img:last-child { transform: scale(-1, -1); }

.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1100px; margin: clamp(72px, 10vh, 120px) auto 0;
  border-top: 1px solid var(--gold-a50); border-bottom: 1px solid var(--gold-a50);
  background: linear-gradient(180deg, rgba(10, 24, 54, .35), rgba(10, 24, 54, .1));
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 14px; text-align: center; }
.stats li + li { border-left: 1px solid rgba(226, 190, 124, .18); }
.stats li:nth-child(2) { --d: 60ms; } .stats li:nth-child(3) { --d: 120ms; } .stats li:nth-child(4) { --d: 180ms; } .stats li:nth-child(5) { --d: 240ms; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 5.4vw, 80px); line-height: 1; color: var(--gold-bright); text-shadow: var(--glow-text); font-variant-numeric: lining-nums tabular-nums; }
.stat-label { max-width: 17ch; font-size: 14px; line-height: 1.45; color: var(--ivory-dim); }

/* =====================================================================
   PROJECTS: one full-screen panel per tool
   ===================================================================== */
.proj-list { max-width: 1240px; margin: 4vh auto 0; }
.proj {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 84px); align-items: center;
  min-height: 100vh; min-height: 100svh; padding: 8vh 0;
}
.proj-card {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; cursor: pointer; isolation: isolate;
  background: radial-gradient(ellipse at 50% 40%, #183a7a, #081530); border: 1px solid var(--gold-a50);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 170, 80, .12);
  transition: transform 340ms var(--ease-pop);
}
/* Brighter glow on hover is a separate layer, so only its opacity changes. */
.proj-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 40px rgba(255, 180, 90, .35); opacity: 0; transition: opacity 220ms linear; }
.proj-card:hover, .proj-card:focus-visible { transform: translateY(-6px) scale(1.012); }
.proj-card:hover::after, .proj-card:focus-visible::after { opacity: 1; }
.proj-card video { width: 100%; height: 100%; object-fit: cover; }
.proj-pill {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: rgba(10, 24, 54, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-a50); color: var(--gold-bright); font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: opacity 200ms linear, transform 260ms var(--ease-pop);
}
.proj-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.proj-card:hover .proj-pill, .proj-card:focus-visible .proj-pill { opacity: 1; transform: none; }
@media (hover: none) { .proj-pill { opacity: 1; transform: none; } }
.proj-soon { display: grid; place-items: center; align-content: center; gap: 14px; height: 100%; }
.proj-soon img { width: 30%; filter: brightness(1.2) var(--glow-line); }
.proj-soon span { font: 700 13px var(--type); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); text-shadow: var(--glow-soft); }

.proj-num { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--gold); }
.proj-num i { width: 44px; height: 1px; background: var(--gold-a50); }
.proj-num span:last-child { opacity: .55; }
.proj-title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.05; color: var(--gold-bright); text-shadow: var(--glow-text); }
.proj-tag { margin: 10px 0 28px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; color: var(--ivory); }
.proj-dl { margin: 0 0 30px; }
.proj-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.proj-dl dd { margin: 6px 0 18px; font-size: 16.5px; line-height: 1.6; color: var(--ivory-dim); }
.proj-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px 28px; }

/* Red-ink rubber stamp. */
.stamp {
  display: inline-block; margin: 0; padding: 6px 11px 4px; border: 2px solid currentColor; border-radius: 3px;
  outline: 1px solid currentColor; outline-offset: 2px;
  font-family: var(--stamp); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  color: #E0574A; transform: rotate(-6deg); opacity: .9;
}

/* =====================================================================
   LEDGER SHEET
   ===================================================================== */
body.ledger-open { overflow: hidden; }
.ledger { position: fixed; inset: 0; z-index: 160; }
.ledger[hidden] { display: none; }
.ledger-backdrop { position: absolute; inset: 0; background: rgba(10, 24, 54, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms linear; }
.ledger.is-open .ledger-backdrop { opacity: 1; }
.sheet {
  position: absolute; inset: 0; margin: auto; width: min(1060px, 94vw); height: min(900px, 90vh); height: min(900px, 90svh);
  border-radius: 4px; overflow: hidden; color: var(--ink); transform-origin: 50% 50%; outline: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 250, 235, .55), transparent 75%),
    linear-gradient(90deg, transparent 84px, rgba(155, 44, 44, .3) 84px, rgba(155, 44, 44, .3) 85px, transparent 85px, transparent 89px, rgba(155, 44, 44, .3) 89px, rgba(155, 44, 44, .3) 90px, transparent 90px),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 0 70px rgba(120, 80, 30, .28);
}
/* Paper tooth: static grain multiplied into the page. */
.sheet::before { content: ''; position: absolute; inset: 0; background: var(--grain); background-size: 220px 220px; opacity: .16; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }
.sheet-frame { position: absolute; inset: 14px; border: 1px solid var(--gold-deep); pointer-events: none; z-index: 1; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(184, 144, 79, .55); }
.sc { position: absolute; width: 110px; height: auto; filter: brightness(.8) saturate(1.2); }
.sc-bl { left: -6px; bottom: -6px; }
.sc-tl { left: -6px; top: -6px; transform: scaleY(-1); }
.sc-br { right: -6px; bottom: -6px; transform: scaleX(-1); }
.sc-tr { right: -6px; top: -6px; transform: scale(-1, -1); }
.sheet-close { position: absolute; top: 26px; right: 26px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(239, 230, 210, .9); border: 1px solid rgba(28, 26, 23, .35); color: var(--ink); transition: transform var(--t-fast) var(--ease-pop); }
.sheet-close:hover { transform: rotate(90deg); }
.sheet-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet-scroll { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; padding: 46px clamp(28px, 7vw, 110px) 64px; perspective: 1600px; }
.sheet :focus-visible { outline-color: var(--gold-deep); }

/* Wax seal pressed with the crest. */
.seal { position: relative; width: 86px; height: 86px; margin: 0 auto 16px; display: grid; place-items: center; }
.seal-wax {
  position: absolute; inset: 0; border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 34% 30%, #C04848 0, var(--wax-rim) 30%, var(--wax) 62%, #5C1616 100%);
  box-shadow: 0 3px 6px rgba(60, 10, 10, .45), inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 3px 5px rgba(255, 160, 150, .25);
}
.seal-wax::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; border: 2px solid rgba(60, 10, 10, .45); box-shadow: 0 1px 0 rgba(255, 170, 160, .25); }
.seal img { position: relative; width: 58%; opacity: .9; filter: drop-shadow(0 1px 0 rgba(255, 170, 160, .35)); }

.sheet-head { text-align: center; margin-bottom: 30px; }
.sheet-no { font: 400 13px var(--type); letter-spacing: .24em; text-transform: uppercase; color: rgba(28, 26, 23, .6); }
.sheet-title { margin: 8px 0 6px; font: 700 clamp(30px, 4vw, 50px)/1.12 var(--type); color: var(--ink); }
.sheet-tag { font: italic 500 clamp(20px, 2vw, 26px)/1.3 var(--serif); color: #4a3b28; }
.untyped { color: transparent; }
.caret-ink { display: inline-block; width: .5em; height: 1em; margin-right: -.5em; background: currentColor; opacity: .55; vertical-align: -.14em; }

.sheet-fold { transform-origin: 50% 0; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sheet-text h3 { margin: 0 0 6px; font: 700 12px var(--type); letter-spacing: .2em; text-transform: uppercase; color: var(--wax); }
.sheet-text p { margin: 0 0 22px; font: 400 16.5px/1.65 var(--type); color: var(--ink); }
.sheet-text .stamp { color: var(--wax-rim); font-size: 14px; transform: rotate(-8deg); margin-top: 6px; mix-blend-mode: multiply; opacity: .85; }

/* Video player in gold and ink. */
.player { position: relative; border-radius: 6px; overflow: hidden; background: #0b0f17; border: 1px solid var(--gold-deep); box-shadow: 0 12px 30px rgba(28, 26, 23, .35); }
.player video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; background: #000; }
.pc { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--ink); }
.pc-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold); transition: transform var(--t-fast) var(--ease-pop); }
.pc-btn:hover { transform: scale(1.1); color: var(--gold-bright); }
.pc-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pc-btn svg .fill { fill: currentColor; stroke: none; }
.pc-time { flex: none; min-width: 84px; text-align: right; font: 12px var(--type); color: #E2C98F; }
.player-soon { aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 12px; background: radial-gradient(ellipse at 50% 40%, #13306A, #081530); }
.player-soon img { width: 34%; filter: brightness(1.2) var(--glow-line); }
.player-soon span { font: 700 13px var(--type); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); }

/* Gold range slider (scrubber and the day/night handle). --p is the filled part. */
.range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 0%; --track: rgba(239, 230, 210, .25); }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--p), var(--track) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: var(--gold-bright); border: 2px solid var(--ink); box-shadow: 0 0 8px rgba(255, 190, 110, .7); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--track); }
.range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--gold); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-bright); border: 2px solid var(--ink); }

/* ---------- Demos (inside the paper sheet) ---------- */
.sheet-demo { margin-top: 44px; padding-top: 30px; border-top: 1px dashed rgba(28, 26, 23, .3); }
.sheet-demo[hidden] { display: none; }
.demo-h { margin: 0 0 20px; text-align: center; font: 700 13px var(--type); letter-spacing: .22em; text-transform: uppercase; color: var(--wax); }
.demo-hint { margin-top: 6px; text-align: center; font: 13px var(--type); color: rgba(28, 26, 23, .62); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field span { font: 700 11px var(--type); letter-spacing: .2em; text-transform: uppercase; color: var(--wax); }
.field input { height: 48px; padding: 0 14px; border-radius: 4px; border: 1px solid rgba(28, 26, 23, .35); background: rgba(255, 255, 255, .45); font: 16px var(--type); color: var(--ink); }
.field input:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.btn-ink { min-height: 48px; padding: 0 24px; border-radius: 4px; background: var(--ink); color: var(--gold-bright); border: 1px solid var(--ink); }
.btn-ink:hover { transform: translateY(-1px); }
.j-form, .r-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

/* Day/night scrubber */
.dn-stage { border-radius: 6px; overflow: hidden; border: 1px solid var(--gold-deep); background: radial-gradient(ellipse at 50% 45%, #13306A, #081530); }
.dn-stage canvas { width: 100%; aspect-ratio: 16 / 9; }
.dn-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.dn-end { font: 700 13px var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.dn-range { --track: rgba(28, 26, 23, .22); }
.dn-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10.5px; }

/* Journal book: the cover is hinged on the spine and swings open to the left. */
.j-desk { display: grid; place-items: center; padding: 20px 0 8px; perspective: 2000px; background: radial-gradient(ellipse at center, rgba(120, 80, 30, .14), transparent 70%); overflow: hidden; }
.book { --pw: min(290px, 38vw); position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.38); transform: translateX(-25%); transition: transform 800ms var(--ease-out); transform-style: preserve-3d; }
.book.is-open { transform: none; }
.book-page { padding: 9% 9%; background: #F1E6CC; color: #15254b; }
.book-right { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; border-radius: 0 4px 4px 0; overflow: hidden; box-shadow: inset 16px 0 18px -12px rgba(60, 40, 20, .45), 0 14px 30px rgba(0, 0, 0, .3); }
.book-cover { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 950ms cubic-bezier(.55, .05, .25, 1); }
.book.is-open .book-cover { transform: rotateY(-178deg); }
.cover-front, .cover-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cover-front {
  display: grid; place-items: center; border-radius: 2px 6px 6px 2px;
  background: linear-gradient(90deg, #0b1838 0, #1a2f63 6%, #14295a 50%, #0f2149 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 7px #14295a, inset 0 0 0 8px rgba(226, 190, 124, .75), inset 0 0 0 13px #14295a, inset 0 0 0 14px rgba(226, 190, 124, .45);
}
.cover-front img { width: 58%; filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 180, 90, .4)); }
.cover-back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; overflow: hidden; box-shadow: inset -16px 0 18px -12px rgba(60, 40, 20, .45); }
.j-snaps { display: flex; gap: 10%; margin-bottom: 12%; }
.j-snaps i { flex: 1; aspect-ratio: 1; border: 5px solid #F7F0DE; background: linear-gradient(160deg, #8a9aa3, #6d5d48); opacity: .5; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transform: rotate(-4deg); }
.j-snaps i + i { transform: rotate(5deg); background: linear-gradient(200deg, #9a8a70, #3e3427); }
.j-hand, .j-scrib { width: 100%; height: auto; }
.j-hand path, .j-scrib path { fill: none; stroke: #15254b; stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.j-vlog { margin-bottom: 6%; font: 700 11px var(--type); letter-spacing: .24em; color: rgba(21, 37, 75, .7); }
.j-title { min-height: 2.7em; font: 700 clamp(14px, 1.9vw, 19px)/1.32 var(--type); color: #15254b; overflow-wrap: anywhere; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: #15254b; opacity: 0; }
.book.is-typing .caret { animation: caret .5s steps(1) infinite; }
@keyframes caret { 0% { opacity: .8; } 50% { opacity: 0; } }
.j-photo { position: relative; margin: 7% 4% 0; padding: 5px 5px 14px; background: #F7F0DE; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(-26px) rotate(-7deg) scale(1.08); transition: opacity 200ms linear, transform 420ms var(--ease-pop); }
.book.has-photo .j-photo { opacity: 1; transform: rotate(-2.5deg); }
.j-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: sepia(.45) contrast(.95); }
.j-clip { position: absolute; top: -13px; left: 24%; width: 12px; height: 34px; border: 2.5px solid #D6A848; border-radius: 8px; transform: rotate(4deg); }
.j-scrib { margin-top: 7%; }
.j-scrib path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms ease-out; }
.j-scrib path:nth-child(2) { transition-delay: 350ms; }
.j-scrib path:nth-child(3) { transition-delay: 700ms; }
.book.has-notes .j-scrib path { stroke-dashoffset: 0; }

/* Vintage route map */
.r-map { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 12px 30px rgba(28, 26, 23, .35); background: #132a55; }
.r-map canvas { width: 100%; aspect-ratio: 16 / 9; }
.r-card {
  position: absolute; left: 50%; bottom: 8%; margin: 0; min-width: 8em; min-height: 1.7em; padding: 7px 18px; text-align: center; white-space: nowrap;
  background: #E9DCC0; border: 1.5px solid #3a2410; box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  font: 700 clamp(12px, 1.6vw, 17px) var(--type); color: #2a1a0c;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity 200ms linear, transform 300ms var(--ease-pop);
}
.r-card.is-on { opacity: 1; transform: translate(-50%, 0); }
.r-msg { position: absolute; top: 12px; left: 50%; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(28, 26, 23, .86); color: var(--gold-bright); font: 13px var(--type); white-space: nowrap; opacity: 0; transform: translateX(-50%); transition: opacity 200ms linear; pointer-events: none; }
.r-msg.is-on { opacity: 1; }

@media (max-width: 860px) {
  .proj { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: auto; padding: 9vh 0; }
  .sheet { width: 96vw; height: 94vh; height: 94svh; }
  .sheet-scroll { padding: 44px 30px 48px; }
  .sheet-frame { inset: 9px; }
  /* No red margin lines on a narrow page: they would run through the text. */
  .sheet { background-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 250, 235, .55), transparent 75%), repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); }
  .sheet-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sc { width: 64px; }
  .sheet-close { top: 20px; right: 20px; }
  .seal { width: 70px; height: 70px; }
  .book { --pw: 41vw; }
  .j-form .btn-ink, .r-form .btn-ink { flex: 1 1 100%; }
}

/* =====================================================================
   MALEFEKT: the black and white chapter
   --mf (0 to 1) is set on <html> by js/malefekt.js from scroll position.
   ===================================================================== */
.noir { position: fixed; inset: 0; z-index: -1; background: #050505; opacity: 0; pointer-events: none; will-change: opacity; }
/* While the chapter is on screen, the gold UI drains to white. Filters only, so nothing repaints layout. */
html.mf-on .nav-pill > *, html.mf-on .cursor, html.mf-on .mute svg {
  filter: saturate(calc(1 - var(--mf, 0))) brightness(calc(1 + var(--mf, 0) * .4));
}
html.mf-on .nav-pill { border-color: color-mix(in srgb, var(--gold-a28), rgba(242, 242, 242, .3) calc(var(--mf, 0) * 100%)); }
html.mf-on .nav-pill::before, html.mf-on .mute::before { background: color-mix(in srgb, rgba(12, 30, 66, .7), rgba(10, 10, 10, .78) calc(var(--mf, 0) * 100%)); }

.mf { --white: #F2F2F2; --white-dim: rgba(242, 242, 242, .66); --line: rgba(242, 242, 242, .22); color: var(--white); }
.mf .section-head h2 { color: var(--white); text-shadow: 0 0 24px rgba(255, 255, 255, .22); }
.mf .lede { color: var(--white-dim); }
.mf-crest { display: block; width: clamp(84px, 9vw, 120px); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .25)); }

.mf-release { max-width: 1180px; margin: clamp(56px, 9vh, 100px) auto 0; }
.mf-label { display: flex; align-items: center; gap: 18px; margin: 0 0 34px; font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--white); }
.mf-label::before, .mf-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mf-stage-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(20px, 3vw, 40px); }

/* Vertical film with a thin white edge. */
.mf-film { position: relative; aspect-ratio: 16 / 9; border: 1px solid rgba(242, 242, 242, .85); background: #000; cursor: pointer; overflow: hidden; }
.mf-film video { width: 100%; height: 100%; object-fit: cover; }
.mf-hint {
  position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: rgba(5, 5, 5, .62); border: 1px solid rgba(242, 242, 242, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 500; color: var(--white); white-space: nowrap; transform: translateX(-50%); transition: opacity 200ms linear;
}
.mf-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mf-hint .fill { fill: currentColor; stroke: none; }
.mf-hint .w { display: none; }
.mf-film[aria-pressed="true"] .mf-hint .w { display: inline; }
.mf-film[aria-pressed="true"] .mf-hint .x { display: none; }
/* Once the sound is on, the hint shrinks to just the icon. */
.mf-film[aria-pressed="true"] .mf-hint-t { display: none; }
.mf-film[aria-pressed="true"] .mf-hint { padding: 0 10px; opacity: .7; }
.mf-film:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* 3D hoodie stage: soft studio light on black. */
.mf-hoodie { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: radial-gradient(ellipse 60% 55% at 50% 42%, #2a2a2a 0, #111 55%, #050505 100%); overflow: hidden; }
.mf-3d { position: relative; flex: 1; min-height: 420px; cursor: grab; touch-action: pan-y; outline: none; }
.mf-3d:active { cursor: grabbing; }
.mf-3d:focus-visible { box-shadow: inset 0 0 0 2px var(--white); }
.mf-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mf-3d.is-fallback { background: url("../assets/img/eclipse-flat.webp") center / cover; cursor: default; }
.mf-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 13px var(--type); letter-spacing: .2em; text-transform: uppercase; color: var(--white-dim); transition: opacity 300ms linear; }
.mf-3d.is-ready .mf-loading, .mf-3d.is-fallback .mf-loading { opacity: 0; }
.mf-drag { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--white-dim); pointer-events: none; }
.mf-drag svg { width: 34px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.mf-photos { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.mf-photos figure { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.mf-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.08); border: 1px solid var(--line); }
.mf-photos figcaption { margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--white-dim); }

.mf-did { max-width: 1180px; margin: clamp(80px, 12vh, 140px) auto 0; }
.mf-did-h { margin: 0 0 34px; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); color: var(--white); }
.mf-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mf-cards li { position: relative; padding: clamp(28px, 3.4vw, 44px); background: #050505; }
.mf-n { display: block; margin-bottom: 18px; font-family: var(--display); font-size: 15px; color: var(--white-dim); }
.mf-cards h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); color: var(--white); }
.mf-cards p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--white-dim); }
.mf-next { margin: clamp(72px, 11vh, 120px) auto 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(26px, 3vw, 40px); color: var(--white); }

@media (max-width: 860px) {
  .mf-stage-row { grid-template-columns: minmax(0, 1fr); }
  .mf-3d { min-height: 0; aspect-ratio: 1 / 1.05; flex: none; }
  .mf-photos { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .mf-photos img { aspect-ratio: 4 / 5; }
  .mf-label { letter-spacing: .18em; font-size: 12px; }
  .mf-hint { bottom: 10px; }
  .mf-cards { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   EXPERIENCE: scroll timeline with a scene per job
   ===================================================================== */
.tl { position: relative; list-style: none; max-width: 1100px; margin: clamp(56px, 9vh, 100px) auto 0; padding: 0 0 0 64px; }
.tl-rail { position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--gold-a28); }
.tl-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); box-shadow: 0 0 10px rgba(255, 180, 90, .6); transform-origin: 50% 0; transform: scaleY(0); will-change: transform; }
.job { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(40px, 7vh, 80px) 0; }
.job-node { position: absolute; left: -56px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--gold); background: var(--navy-deep); }
.job-node::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 10px rgba(255, 180, 90, .9); transform: scale(0); transition: transform 320ms var(--ease-pop); }
.job.is-lit .job-node::after { transform: scale(1); }

.job-scene { position: relative; aspect-ratio: 400 / 250; border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid var(--gold-a28); background: radial-gradient(ellipse 80% 70% at 50% 45%, #183a78 0, #0d2047 70%, #091733 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 20px rgba(255, 170, 80, .08); }
.job-scene svg { display: block; width: 100%; height: 100%; }
.job-scene svg * { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; }
.job-scene svg .fill { fill: #0B1C40; }
.job-scene svg text { fill: var(--gold-bright); stroke: none; font-family: var(--type); }
.job-scene .floor { stroke: var(--gold-a28); }
.job-scene .reset * { transition: none !important; animation: none !important; }

.job-when { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.job-place { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; color: var(--gold-bright); text-shadow: var(--glow-text); }
.job-role { margin: 6px 0 18px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(21px, 1.9vw, 26px); color: var(--ivory); }
.job-body { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ivory-dim); }

/* -- Daica: the phone rings, judders, the handset lifts and the call types out -- */
.ph-rings path { opacity: 0; }
.ph-body { transform-origin: 50% 100%; }
.is-ring .ph-rings path { animation: ph-ringflash 1.05s linear; }
.is-ring .ph-body { animation: ph-shake 1.05s linear; }
@keyframes ph-ringflash { 0%, 36% { opacity: 1; } 37%, 56% { opacity: 0; } 57%, 93% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes ph-shake { 0.0% { transform: rotate(-2.2deg); } 4.2% { transform: rotate(2.2deg); } 8.4% { transform: rotate(-2.2deg); } 12.7% { transform: rotate(2.2deg); } 16.9% { transform: rotate(-2.2deg); } 21.1% { transform: rotate(2.2deg); } 25.3% { transform: rotate(-2.2deg); } 29.6% { transform: rotate(2.2deg); } 33.8% { transform: rotate(-2.2deg); } 38.0% { transform: rotate(2.2deg); } 40.0% { transform: rotate(0deg); } 56.0% { transform: rotate(0deg); } 57.0% { transform: rotate(-2.2deg); } 61.2% { transform: rotate(2.2deg); } 65.4% { transform: rotate(-2.2deg); } 69.7% { transform: rotate(2.2deg); } 73.9% { transform: rotate(-2.2deg); } 78.1% { transform: rotate(2.2deg); } 82.3% { transform: rotate(-2.2deg); } 86.6% { transform: rotate(2.2deg); } 90.8% { transform: rotate(-2.2deg); } 95.0% { transform: rotate(2.2deg); } 97.0% { transform: rotate(0deg); } 100% { transform: none; } }
.ph-hand { transform-origin: 50% 50%; transition: transform 420ms var(--ease-pop); }
.is-lift .ph-hand { transform: translate(-58px, -52px) rotate(-17deg); }
.ph-bubble { opacity: 0; transform: scale(.85); transform-origin: 15% 100%; transition: opacity 180ms linear, transform 300ms var(--ease-pop); }
.is-talk .ph-bubble { opacity: 1; transform: none; }
.job-scene .bub-t { font-size: 13px; font-weight: 700; }
.ph-signed { opacity: 0; transform: scale(.5); transform-origin: 0 50%; transition: opacity 160ms linear, transform 320ms var(--ease-pop); }
.is-signed .ph-signed { opacity: 1; transform: none; }
.job-scene .ph-signed .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; fill: var(--gold); }

/* -- Ramboll: each connected call pulses the mic and ticks a box -- */
.job-scene .band { stroke-width: 6; }
.hs-pulse { opacity: 0; transform-origin: 50% 50%; }
.is-beep .hs-pulse { animation: hs-pulse 700ms ease-out; }
.is-beep .hs-pulse.p2 { animation-delay: 140ms; }
@keyframes hs-pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.job-scene .ln { stroke: var(--gold-a50); }
.job-scene .tick { stroke: var(--gold-bright); stroke-width: 3; opacity: 0; transform: scale(.3); transform-origin: 30% 70%; transition: opacity 120ms linear, transform 280ms var(--ease-pop); filter: drop-shadow(0 0 4px rgba(255, 190, 110, .7)); }
.job-scene .tick.is-on { opacity: 1; transform: none; }

/* -- Clemens: the crate slides in, bottles hop onto the shelf, the club light thumps -- */
.job-scene .club { fill: url(#clubGlow); stroke: none; opacity: .4; transform-origin: 50% 50%; }
.is-beat .club { animation: club 484ms ease-out 8; }
@keyframes club { 0% { opacity: 1; transform: scale(1.06); } 100% { opacity: .4; transform: none; } }
.job-scene .shelf { stroke-width: 3; }
.job-scene .lbl-band { stroke: var(--gold-a50); }
.job-scene use { fill: #0B1C40; }
.crate { opacity: 0; transform: translateX(230px); transition: opacity 200ms linear, transform 650ms var(--ease-pop); }
.is-crate .crate { opacity: 1; transform: none; }
.job-scene .b { opacity: 0; transform: translate(40px, -26px) rotate(14deg); transition: opacity 150ms linear, transform 380ms var(--ease-pop); }
.job-scene .b.is-on { opacity: 1; transform: none; }

/* -- Little India: steam, a boiling pot, tickets swinging on the rail, the naan wobbling -- */
.job-scene .curry { fill: #B8692C; stroke: #E2A35A; stroke-width: 1.5; }
.job-scene .bub { fill: #E8A55A; stroke: none; opacity: 0; transform-origin: 50% 50%; }
.is-boil .bub { animation: bub 800ms ease-out 3; }
.is-boil .bub.u1 { animation-delay: 260ms; } .is-boil .bub.u2 { animation-delay: 520ms; }
@keyframes bub { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.job-scene .steam path { stroke: rgba(245, 238, 223, .55); opacity: 0; }
.is-live .steam path { animation: steam 2.6s ease-out infinite; }
.is-live .steam .s1 { animation-delay: .8s; } .is-live .steam .s2 { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleX(.8); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-22px) scaleX(1.15); } }
.job-scene .paper { fill: #EFE6D2; stroke: none; }
.job-scene .ink { stroke: rgba(28, 26, 23, .7); stroke-width: 2; }
.tk { transform-origin: 50% 0; }
.is-swing .tk { animation: tk 1.3s var(--ease-out); }
.is-swing .k1 { animation-delay: 120ms; } .is-swing .k2 { animation-delay: 240ms; }
@keyframes tk { 0% { transform: rotate(16deg); } 30% { transform: rotate(-10deg); } 55% { transform: rotate(6deg); } 78% { transform: rotate(-2deg); } 100% { transform: none; } }
.job-scene .bread { fill: #D9A75E; stroke: #F1CE8C; }
.job-scene .spot { fill: #7A4A1E; stroke: none; }
.naan { transform-origin: 50% 80%; }
.is-wob .naan { animation: naan 900ms var(--ease-pop); }
@keyframes naan { 0% { transform: translate(40px, 10px) rotate(12deg); opacity: 0; } 50% { opacity: 1; transform: translateY(-8px) rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: none; } }

/* Education */
.edu { max-width: 1100px; margin: clamp(72px, 11vh, 120px) auto 0; }
.edu-h { margin: 0 0 30px; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); color: var(--gold-bright); text-shadow: var(--glow-text); }
.edu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.edu-card { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--gold-a28); border-radius: 14px; background: linear-gradient(160deg, rgba(22, 49, 106, .55), rgba(10, 24, 54, .55)); box-shadow: 0 0 20px rgba(255, 170, 80, .06); }
.edu-card img { display: block; width: 28px; height: auto; margin-bottom: 18px; filter: brightness(1.4) drop-shadow(0 0 5px rgba(255, 180, 90, .6)); }
.edu-card h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.25; color: var(--gold-bright); }
.edu-place { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ivory); }
.edu-note { margin: 0; font-size: 15px; color: var(--ivory-dim); }

@media (max-width: 860px) {
  .tl { padding-left: 34px; }
  .tl-rail { left: 7px; }
  .job-node { left: -34px; top: 40px; margin-top: 0; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 34px 0; }
  .edu-cards { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   YOUTUBE: vlog grid and skill breakdown
   ===================================================================== */
.yt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); max-width: 1180px; margin: clamp(56px, 9vh, 96px) auto 0; }
.yt-card { position: relative; display: flex; flex-direction: column; border-radius: 14px; color: inherit; text-decoration: none; transition: transform 300ms var(--ease-pop); }
.yt-card.is-feat { grid-column: span 2; grid-row: span 2; }
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--gold-a28); background: radial-gradient(ellipse at 50% 40%, #183a7a, #0a1836); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.yt-card.is-feat .yt-thumb { flex: 1; aspect-ratio: auto; min-height: 0; }
.yt-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.yt-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 30px rgba(255, 180, 90, .3); opacity: 0; transition: opacity 200ms linear; }
.yt-card:hover, .yt-card:focus-visible { transform: translateY(-6px); }
.yt-card:hover .yt-thumb::after, .yt-card:focus-visible .yt-thumb::after { opacity: 1; }
.yt-card:hover .yt-thumb > img { transform: scale(1.04); }
.yt-card:focus-visible { outline: none; }
.yt-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; background: linear-gradient(150deg, rgba(22, 49, 106, .9), rgba(8, 21, 48, .95)); }
.yt-ph img { width: 22%; max-width: 64px; opacity: .55; filter: brightness(1.2) drop-shadow(0 0 6px rgba(255, 180, 90, .4)); }
.yt-ph span { font: 700 12px var(--type); letter-spacing: .4em; color: var(--gold); opacity: .8; }
.yt-play { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(10, 24, 54, .72); border: 1px solid var(--gold-a50); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 260ms var(--ease-pop); }
.yt-play svg { width: 18px; height: 18px; fill: var(--gold-bright); }
.yt-card:hover .yt-play { transform: scale(1.12); }
.is-feat .yt-play { width: 60px; height: 60px; left: 22px; bottom: 22px; }
.is-feat .yt-play svg { width: 26px; height: 26px; }
.yt-badge { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.yt-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px 0; }
.yt-title { font-size: 15px; font-weight: 500; color: var(--ivory); }
.is-feat .yt-title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 28px); color: var(--gold-bright); text-shadow: var(--glow-text); }
.yt-watch { flex: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.yt-card:not(.is-feat) .yt-watch { display: none; }
.yt-channel { margin: 34px 0 0; text-align: center; }

.sk { max-width: 1180px; margin: clamp(90px, 13vh, 150px) auto 0; }
.sk-title { margin: 0 0 34px; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); color: var(--gold-bright); text-shadow: var(--glow-text); }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'grade grade' 'music cut' 'sound more'; gap: clamp(16px, 2vw, 26px); }
.sk-grade { grid-area: grade; } .sk-music { grid-area: music; } .sk-cut { grid-area: cut; } .sk-sound { grid-area: sound; } .sk-list { grid-area: more; }
.sk-card { display: flex; flex-direction: column; gap: 22px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--gold-a28); border-radius: 16px; background: linear-gradient(160deg, rgba(22, 49, 106, .5), rgba(10, 24, 54, .5)); }
.sk-wide { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 3vw, 44px); }
.sk-text h4, .sk-list h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); color: var(--gold-bright); }
.sk-text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ivory-dim); }
.sk-text .sk-hint { margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Before/after */
.ba { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; border: 1px solid var(--gold-a28); }
.ba-pane { position: absolute; inset: 0; }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { background: radial-gradient(ellipse at 40% 45%, #7c8794 0, #4d5662 55%, #2c323a 100%); }
.ba-graded { background: radial-gradient(ellipse at 40% 45%, #b98a52 0, #6a4320 50%, #1d0f05 100%); }
.ba-after { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.ba-after-in { position: absolute; inset: 0; will-change: transform; }
.ba-tag { position: absolute; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(5, 10, 20, .6); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.ba-before .ba-tag { left: 12px; }
.ba-graded .ba-tag { right: 12px; }
.ba-ph { position: absolute; left: 50%; bottom: 14px; margin: 0; padding: 6px 12px; border-radius: 6px; background: rgba(5, 10, 20, .7); border: 1px dashed rgba(255, 255, 255, .4); font: 12px var(--type); color: #fff; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.ba.has-shots .ba-ph { display: none; }
.ba-handle { position: absolute; inset: 0; pointer-events: none; will-change: transform; outline: none; }
.ba-handle::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--gold-bright); box-shadow: 0 0 10px rgba(255, 190, 110, .8); }
.ba-knob { position: absolute; left: 0; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(10, 24, 54, .45), 0 0 18px rgba(255, 180, 90, .7); }
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 3px var(--ivory), 0 0 18px rgba(255, 180, 90, .7); }

/* Subtitles */

/* Music timing */
.wave svg { display: block; width: 100%; height: auto; overflow: visible; }
.wave .bar { fill: rgba(226, 190, 124, .3); }
.wave .bar.beat { fill: rgba(226, 190, 124, .75); }
.wave .bar.loud { fill: rgba(247, 226, 178, .55); }
.wave .bar.beat.loud { fill: var(--gold-bright); }
.wave .cutm { opacity: .45; transform: translateX(var(--off)); transition: opacity 200ms linear var(--d), transform 420ms var(--ease-pop) var(--d); }
.wave .cutm path { stroke: var(--ivory); stroke-width: 2; fill: none; }
.wave .cutm .flag { fill: var(--ivory); stroke: none; }
.wave .cutm.drop path { stroke: #E0574A; }
.wave .cutm.drop .flag { fill: #E0574A; }
.wave .is-snapped .cutm { opacity: 1; transform: none; }
.wave .drop-t { fill: #E0574A; font: 700 11px var(--type); letter-spacing: .16em; text-transform: uppercase; }
.wave { cursor: pointer; }

/* Cutting for retention */
.cut { position: relative; padding: 6px 0 34px; cursor: pointer; }
.cut-state { position: relative; height: 18px; margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cut-state span { position: absolute; left: 0; top: 0; transition: opacity 250ms linear; }
.cs-final, .cut.is-final .cs-raw { opacity: 0; }
.cut.is-final .cs-final { opacity: 1; }
.cut-track { position: relative; height: 46px; border-radius: 6px; overflow: hidden; background: rgba(226, 190, 124, .06); border: 1px solid var(--gold-a28); }
.seg { position: absolute; left: 0; top: 7px; bottom: 7px; width: 100%; transform-origin: 0 50%; background: rgba(226, 190, 124, .62); transition: transform 760ms cubic-bezier(.65, 0, .25, 1), opacity 300ms linear; will-change: transform; }
.seg.is-cold { background: var(--gold-bright); box-shadow: 0 0 12px rgba(255, 190, 110, .7); }
.seg.is-reset { background: var(--ivory); }
.seg.is-callback { background: #E0574A; }
.cut.is-trim .seg.is-gone { opacity: 0; }
.cut.no-anim .seg { transition: none; }
.cut-tags { position: relative; height: 0; }
.cut-tag { position: absolute; top: 10px; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); opacity: 0; transform: translate(-50%, 6px); transition: opacity 200ms linear, transform 300ms var(--ease-pop); }
.cut-tag.tag-cold { color: var(--gold-bright); margin-left: 0; }
.cut.is-final .cut-tag.tag-cold, .cut-tag.tag-cold { transform: translate(-12%, 6px); }
.cut.is-final .cut-tag.tag-cold { transform: translate(-12%, 0); }
.cut-tag.tag-callback { color: #F07A6E; }
.cut.is-final .cut-tag { opacity: 1; transform: translate(-50%, 0); transition-delay: 600ms; }

/* Sound design */
.mix { position: relative; display: grid; gap: 8px; padding: 4px 0; --name: 92px; }
.lane { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); align-items: center; gap: 10px; }
.lane-name { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lane-track { position: relative; height: 30px; border-radius: 5px; overflow: hidden; background: rgba(226, 190, 124, .06); }
.lane-track .clip { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; }
.clip-a { left: 0; width: 54.6%; border: 1.5px solid var(--gold); background: rgba(226, 190, 124, .16); }
.clip-b { left: 55.4%; width: 44.6%; border: 1.5px solid var(--gold); background: rgba(226, 190, 124, .16); }
.aud-a { left: 0; width: 55%; background: rgba(226, 190, 124, .4); transform-origin: 0 50%; transition: transform 700ms var(--ease-out) 300ms; }
.aud-b { left: 42%; width: 58%; background: var(--gold-bright); box-shadow: 0 0 10px rgba(255, 190, 110, .5); transform: translateX(22.4%); transition: transform 700ms var(--ease-pop) 300ms; display: flex; align-items: center; padding-left: 8px; }
.aud-b b { font-size: 11px; letter-spacing: .1em; color: var(--navy-deep); }
.mix.is-on .aud-a { transform: scaleX(.764); }
.mix.is-on .aud-b { transform: none; }
.bed { position: absolute; left: 0; right: 0; top: 11px; bottom: 11px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(226, 190, 124, .35) 0 3px, rgba(226, 190, 124, .15) 3px 6px); }
.mix-cutline { position: absolute; top: 0; bottom: 0; left: calc(var(--name) + 10px + (100% - var(--name) - 10px) * .55); width: 0; border-left: 1px dashed rgba(245, 238, 223, .45); pointer-events: none; }
.boom { position: absolute; top: -8px; left: calc(var(--name) + 10px + (100% - var(--name) - 10px) * .8); display: grid; place-items: center; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; }
.boom-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #E0574A; color: #fff; font: 700 9px var(--type); letter-spacing: .08em; box-shadow: 0 0 14px rgba(224, 87, 74, .7); transition: transform 200ms var(--ease-pop); }
.boom:hover .boom-dot { transform: scale(1.08); }
.boom-ring { position: absolute; inset: 4px; border-radius: 50%; border: 2px solid #E0574A; opacity: 0; }
.boom.is-hit .boom-ring, .mix.is-on .boom-ring { animation: boom-ring 900ms ease-out; }
.boom.is-hit .r2, .mix.is-on .r2 { animation-delay: 160ms; }
.mix.is-on .boom-ring { animation-delay: 1100ms; }
.mix.is-on .r2 { animation-delay: 1260ms; }
@keyframes boom-ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.2); } }

.sk-list ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.sk-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--ivory); }
.sk-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: url("../assets/crest/crest-gold-64.webp") center / contain no-repeat; filter: brightness(1.4) drop-shadow(0 0 4px rgba(255, 180, 90, .6)); }

@media (max-width: 860px) {
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .yt-card.is-feat { grid-row: auto; }
  .yt-card.is-feat .yt-thumb { flex: none; aspect-ratio: 16 / 9; }
  .yt-title { font-size: 13.5px; }
  .yt-grid .yt-card:last-child:nth-child(even) { grid-column: span 2; }
  .yt-ph span { display: none; }
  .yt-watch { display: none; }
  .yt-card:not(.is-feat) .yt-play { width: 32px; height: 32px; left: 8px; bottom: 8px; }
  .yt-card:not(.is-feat) .yt-play svg { width: 14px; height: 14px; }
  .ba-ph { white-space: normal; width: max-content; max-width: 86%; text-align: center; font-size: 11px; }
  .cut-tag { font-size: 9.5px; letter-spacing: .08em; }
  .is-feat .yt-play { width: 48px; height: 48px; left: 14px; bottom: 14px; }
  .sk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'grade' 'music' 'cut' 'sound' 'more'; }
  .sk-wide { grid-template-columns: minmax(0, 1fr); }
  .mix { --name: 70px; }
}

/* =====================================================================
   TALES OF TÅRE: the playable demo (board + host phone)
   ===================================================================== */
.tq-intro { margin: 18px auto 0; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--ivory-dim); }
.tq { max-width: 1240px; margin: clamp(48px, 8vh, 84px) auto 0; }
.tq-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 22px; }
.tq-party { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.tq-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ivory); }
.tq-track { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--gold-a50); background: rgba(10, 24, 54, .7); transition: background-color 200ms linear; }
.tq-thumb { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(255, 180, 90, .6); transition: transform 260ms var(--ease-pop); }
.tq-switch[aria-checked="true"] .tq-track { background: #6B1E2A; border-color: #E0574A; }
.tq-switch[aria-checked="true"] .tq-thumb { transform: translateX(22px); background: #F3A79E; box-shadow: 0 0 10px rgba(224, 87, 74, .8); }
.tq-switch:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 999px; }
.tq-hint { font-size: 14px; color: var(--ivory-dim); }
#tqRestart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: 8px; }
#tqRestart { display: inline-flex; align-items: center; }

.tq-stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 330px); gap: clamp(20px, 3vw, 40px); align-items: center; }
.tq figure { margin: 0; }
.tq figcaption { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
/* The party screen: a thin dark bezel like a TV. */
.tq-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0a0714; border: 10px solid #07060c; box-shadow: 0 0 0 1px var(--gold-a28), 0 30px 80px rgba(0, 0, 0, .5), 0 0 40px rgba(130, 90, 220, .12); }
.tq-screen iframe, .tq-handset iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0a0714; }
.tq-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 13px var(--type); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); transition: opacity 300ms linear; pointer-events: none; }
.tq.is-ready .tq-loading { opacity: 0; }
/* The host's phone. */
.tq-handset { position: relative; aspect-ratio: 9 / 18.5; border-radius: 38px; overflow: hidden; background: #0b0816; border: 11px solid #08070d; box-shadow: 0 0 0 1px var(--gold-a28), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 70px rgba(0, 0, 0, .55); }
.tq-handset iframe { top: 26px; right: auto; bottom: auto; height: calc(100% - 26px); transform-origin: 0 0; }
.tq-notch { position: absolute; left: 50%; top: 7px; z-index: 1; width: 34%; height: 18px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.tq-try { margin: 26px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ivory); }

@media (max-width: 860px) {
  .tq-stage { grid-template-columns: minmax(0, 1fr); }
  .tq-screen { border-width: 6px; }
  .tq-phone { width: min(330px, 86vw); margin: 0 auto !important; }
}

/* =====================================================================
   CONTACT + FOOTER
   ===================================================================== */
#contact .section-head h2 { font-size: clamp(56px, 8vw, 120px); }
.ct { max-width: 860px; margin: clamp(40px, 6vh, 64px) auto 0; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--gold-a28); border-radius: 22px; background: linear-gradient(180deg, rgba(16, 40, 92, .55), rgba(8, 20, 48, .55)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 0 40px rgba(255, 190, 110, .04); }
.ct-form { display: grid; gap: 20px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ct-field { display: grid; gap: 8px; }
.ct-field > span { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ct-field input, .ct-field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid var(--gold-a28); border-radius: 12px;
  background: rgba(5, 14, 34, .6); color: var(--ivory); font: 16px/1.5 var(--sans); caret-color: var(--gold-bright);
  transition: border-color 160ms linear, box-shadow 160ms linear;
}
.ct-field textarea { resize: vertical; min-height: 150px; }
.ct-field input:hover, .ct-field textarea:hover { border-color: var(--gold-a50); }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(255, 190, 110, .18), 0 0 18px rgba(255, 180, 90, .15); }
.ct-field [aria-invalid="true"] { border-color: #E0574A; }
.ct-err { font-style: normal; font-size: 13.5px; color: #F3A79E; }
.ct-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
#ctSend svg, .ct-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
#ctLinkedin svg { fill: currentColor; stroke: none; }
#ctSend[disabled] { opacity: .7; cursor: progress; }
.ct-form.is-busy #ctSend svg { animation: ct-fly 900ms var(--ease-out) infinite; }
@keyframes ct-fly { 0% { transform: translate(0, 0); opacity: 1; } 60% { transform: translate(8px, -8px); opacity: 0; } 61% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.ct-status { flex: 1 1 260px; margin: 0; font-size: 15px; color: var(--ivory-dim); }
.ct-status.is-ok { color: var(--gold-bright); }
.ct-status.is-warn { color: #F3C29E; }
.ct-direct { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--gold-a28); text-align: center; }
.ct-or { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ct-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.site-foot { display: grid; justify-items: center; gap: 8px; padding: 70px 24px 56px; text-align: center; font-size: 14px; color: var(--ivory-dim); }
.site-foot img { width: 28px; height: 28px; opacity: .85; margin-bottom: 4px; }
.foot-c { font-size: 13px; letter-spacing: .06em; opacity: .75; }
@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct { border-radius: 18px; }
  .ct-foot .btn { width: 100%; }
  .ct-btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ct-form.is-busy #ctSend svg { animation: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1040px) {
  .nav-links, .nav-sep, .nav .nav-skim, .nav .lang { display: none; }
  .nav-menu { display: block; }
  .nav-pill { gap: 2px; padding: 0 5px; height: 52px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .badge { margin-bottom: 28px; }
  .hero-also { transform: translateX(4%) rotate(-5deg); }
  html[lang="da"] .hero-also { transform: translateX(0) rotate(-5deg); }
  .amb { width: 62vw; }
  .amb-ml, .amb-mr { display: none; }
  .about-grid { grid-template-columns: 1fr; justify-items: center; gap: 36px; }
  .about-text { text-align: left; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 32px 10px; }
  .stats li + li { border-left: 0; }
  .stats li:nth-child(even) { border-left: 1px solid rgba(226, 190, 124, .18); }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(226, 190, 124, .18); }
  .stats li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1041px) { .menu { display: none !important; } }

/* =====================================================================
   REDUCED MOTION: keep everything usable, skip the theatre.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js [data-reveal] { transform: none; }
  .badge-dot::after, .scroll-cue span::after, .amb-sway, .amb .shine { animation: none; }
  body.is-intro .intro { animation: intro-failsafe 1ms linear 4.4s forwards !important; }
}
