/* keerat.fyi — dusk to night */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* sky — overwritten live by main.js */
  --sky-0: #24346e; --sky-1: #4f5a9c; --sky-2: #c98a9a; --sky-3: #f6b27c;
  --glow: #ffcf8a; --t: 0;

  --cream: #fbf1e4;
  --cream-2: rgba(251, 241, 228, 0.78);
  --cream-3: rgba(251, 241, 228, 0.56);
  --amber: #ffc27a;
  --rose: #f2898f;
  --violet: #b9a6ff;
  --ink: #090b20;
  --glass: rgba(12, 14, 40, 0.38);
  --glass-strong: rgba(10, 12, 34, 0.62);
  --line: rgba(251, 241, 228, 0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--sans); font-size: clamp(16px, 1.05vw + 10px, 18px); line-height: 1.6;
  color: var(--cream); background: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- the sky ---------- */
.sky {
  position: fixed; inset: 0; z-index: -3;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 50%, var(--sky-2) 84%, var(--sky-3) 100%);
}
.sky::after { /* film grain, like the photos */
  content: ""; position: absolute; inset: -50%; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stars { position: fixed; inset: 0; z-index: -2; pointer-events: none; width: 100%; height: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(9, 11, 32, .42); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; text-decoration: none; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.01em; }
.brand span { color: var(--amber); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; font-size: .9rem; padding: 8px 12px; border-radius: 999px; color: var(--cream-2); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--cream); background: rgba(251, 241, 228, .08); }
.sound-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(251, 241, 228, .08); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px 8px 12px; font-size: .85rem; color: var(--cream-2);
  transition: background .25s, color .25s, border-color .25s;
}
.sound-btn:hover { background: rgba(251, 241, 228, .14); color: var(--cream); }
.sound-btn[aria-pressed="true"] { color: var(--cream); border-color: rgba(255, 194, 122, .5); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound-btn[aria-pressed="true"] .eq i { animation: eq 1.4s ease-in-out infinite; }
.sound-btn[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.4s; }
.sound-btn[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 em, h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--amber); }
.lede { font-size: clamp(1.05rem, .8vw + .8rem, 1.3rem); color: var(--cream-2); max-width: 36ch; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 88px; overflow: hidden; isolation: isolate; }
.hero-inner { align-self: center; padding-block: 6vh 20vh; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 7px 14px 7px 11px; border-radius: 999px; font-size: .88rem;
  background: rgba(9, 11, 32, .28); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.status b { font-weight: 600; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 194, 122, .6); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 122, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 122, 0); } }
.hero h1 { font-size: clamp(3.6rem, 12.5vw, 10.5rem); font-weight: 300; line-height: .9; letter-spacing: -.035em; text-shadow: 0 2px 40px rgba(9, 11, 32, .25); }
.hero h1 em { color: inherit; font-weight: 250; }
.hero .lede { margin: 28px 0 0; font-size: clamp(1.1rem, 1vw + .8rem, 1.45rem); max-width: 30ch; color: var(--cream); }
.hero .roles { margin-top: 14px; color: var(--cream-2); font-size: .98rem; }

.sun {
  position: absolute; z-index: -1; left: 62%; width: clamp(180px, 22vw, 340px); aspect-ratio: 1; border-radius: 50%;
  top: calc(52% + var(--t) * 62%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff3d6 0%, #ffd497 34%, rgba(255, 170, 110, .55) 52%, rgba(255, 140, 110, 0) 72%);
  filter: blur(1px); opacity: calc(1 - var(--t) * 1.4);
  pointer-events: none;
}
.sun::after { content: ""; position: absolute; inset: -80%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 130, .28), transparent 60%); }
.moon {
  position: absolute; z-index: -1; right: 14%; top: 18%; width: 54px; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset -12px 6px 0 0 #f5ecd8; filter: drop-shadow(0 0 18px rgba(245, 236, 216, .5));
  opacity: clamp(0, calc((var(--t) - .45) * 3), 1); transform: rotate(-20deg);
  pointer-events: none;
}
.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 20vw, 260px); z-index: -1; pointer-events: none; }
.h-far { fill: color-mix(in oklab, var(--sky-2) 35%, #141433); opacity: .9; }
.h-near { fill: color-mix(in oklab, var(--sky-2) 14%, #0c0c26); }
.h-trees { fill: #07081a; }

.dial {
  position: relative; z-index: 2; margin-bottom: clamp(18px, 4vh, 40px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 18px;
  padding: 14px 18px; border-radius: 18px; max-width: 560px;
  background: rgba(9, 11, 32, .36); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dial-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); line-height: 1.3; }
.dial-label strong { display: block; letter-spacing: 0; text-transform: none; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--cream); font-style: italic; }
.dial input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.dial input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffcf8a, #f3895e 30%, #a24a5c 60%, #2a2560 82%, #0a0e2a); }
.dial input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffcf8a, #f3895e 30%, #a24a5c 60%, #2a2560 82%, #0a0e2a); }
.dial input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6e3, #ffc27a 60%, #f3895e); box-shadow: 0 0 0 4px rgba(255, 194, 122, .18), 0 0 22px rgba(255, 194, 122, .7); border: 0; }
.dial input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6e3, #ffc27a 60%, #f3895e); box-shadow: 0 0 0 4px rgba(255, 194, 122, .18), 0 0 22px rgba(255, 194, 122, .7); border: 0; }
.dial-reset { background: none; border: 1px solid var(--line); color: var(--cream-2); border-radius: 999px; padding: 6px 12px; font-size: .8rem; cursor: pointer; white-space: nowrap; transition: opacity .3s, background .25s; }
.dial-reset:hover { background: rgba(251, 241, 228, .08); }
.dial-reset[hidden] { display: inline-block; visibility: hidden; opacity: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--cream-3), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- tabla ---------- */
.play { padding-block: clamp(80px, 14vh, 160px); }
.play-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.play-copy .lede { margin: 20px 0 28px; }
.how { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: .95rem; color: var(--cream-2); }
.how li { display: flex; gap: 10px; align-items: baseline; }
.how b { color: var(--cream); font-weight: 600; }
.how .sw { flex: none; width: 10px; height: 10px; border-radius: 50%; translate: 0 1px; }
.bols { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bol {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 12px; font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  background: rgba(251, 241, 228, .07); border: 1px solid var(--line);
  transition: background .2s, transform .15s var(--ease), border-color .2s;
}
.bol kbd { font-family: var(--sans); font-style: normal; font-size: .68rem; color: var(--cream-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.bol:hover { background: rgba(251, 241, 228, .13); }
.bol:active, .bol.hit { transform: scale(.95); background: rgba(255, 194, 122, .2); border-color: rgba(255, 194, 122, .5); }
.theka-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 6px;
  padding: 12px 20px; border-radius: 999px; border: 0; font-weight: 600; font-size: .95rem;
  color: var(--ink); background: linear-gradient(135deg, #ffd9a0, #ffb27a 55%, #f2898f);
  box-shadow: 0 10px 30px -10px rgba(255, 160, 110, .7);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.theka-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 160, 110, .85); }
.theka-btn svg { width: 14px; height: 14px; }
.matras { display: flex; gap: 5px; margin-top: 18px; height: 6px; }
.matras i { flex: 1; max-width: 22px; border-radius: 3px; background: rgba(251, 241, 228, .14); transition: background .15s; }
.matras i.on { background: var(--amber); box-shadow: 0 0 10px rgba(255, 194, 122, .7); }
.matras i:nth-child(4n+1) { background: rgba(251, 241, 228, .26); }
.matras i.on:nth-child(n) { background: var(--amber); }

.stage {
  position: relative; aspect-ratio: 6 / 5; width: 100%;
  border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 62%, color-mix(in oklab, var(--glow) 26%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(9, 11, 32, .1), rgba(9, 11, 32, .45));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(251, 241, 228, .08), 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.tabla-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.stage-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: .8rem; color: var(--cream-3); letter-spacing: .04em; pointer-events: none; white-space: nowrap; transition: opacity .6s; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream-3); font-size: .9rem; }
.bol-big { position: absolute; left: 24px; top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--cream); opacity: 0; transition: opacity .5s; pointer-events: none; text-shadow: 0 0 30px rgba(255, 194, 122, .6); }
.bol-big.show { opacity: .95; transition: opacity .05s; }
.float-bol { position: absolute; pointer-events: none; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--amber); text-shadow: 0 0 18px rgba(255, 194, 122, .7); animation: floatUp 1s var(--ease) forwards; translate: -50% -50%; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-46px); } }

/* ---------- reveal ---------- */
.reveal { opacity: .35; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .play-grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 1 / 1; order: -1; }
  .sun { left: 78%; top: calc(66% + var(--t) * 50%); width: 200px; }
}
@media (max-width: 560px) {
  .dial { grid-template-columns: 1fr auto; }
  .dial input[type=range] { grid-column: 1 / -1; grid-row: 2; }
  .hero-inner { padding-block: 4vh 22vh; }
  .sound-btn .label { display: none; }
  .stage { border-radius: 24px; }
}

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

main > section:not(.hero) { text-shadow: 0 1px 14px rgba(9, 11, 32, .35); }

/* ---------- mobile menu ---------- */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(251, 241, 228, .08); cursor: pointer; place-items: center; gap: 5px; padding: 0; align-content: center; justify-content: center; }
.menu-btn span:not(.sr-only) { display: block; width: 16px; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
.menu { position: fixed; z-index: 49; inset: 68px 12px auto 12px; display: grid; gap: 2px; padding: 10px; border-radius: 20px; background: rgba(9, 11, 32, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
.menu a { text-decoration: none; font-family: var(--serif); font-size: 1.5rem; padding: 10px 14px; border-radius: 12px; }
.menu a:hover { background: rgba(251, 241, 228, .08); }

/* page borrows a photo's light */
.borrow { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); background: radial-gradient(120% 60% at 50% 110%, var(--borrow, #ff8a3d), transparent 70%); mix-blend-mode: screen; }
.borrow.on { opacity: .55; }

.body { color: var(--cream-2); max-width: 52ch; }

/* ---------- about ---------- */
.about { padding-block: clamp(80px, 12vh, 140px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photos { position: relative; max-width: 440px; width: 100%; padding-bottom: 14%; padding-right: 12%; }
.arch { margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); background: #2a2b45; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.95) contrast(1.02); }
.arch::after { content: ""; position: absolute; inset: 0 12% 14% 0; border-radius: inherit; pointer-events: none; background: linear-gradient(200deg, color-mix(in oklab, var(--glow) 28%, transparent), transparent 45%); mix-blend-mode: soft-light; }
.polaroid { position: absolute; right: 0; bottom: 0; width: 46%; margin: 0; padding: 8px 8px 30px; background: #f6efe3; border-radius: 4px; transform: rotate(5deg); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .65); transition: transform .5s var(--ease); }
.polaroid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }
.photos:hover .polaroid { transform: rotate(2deg) translateY(-6px); }
.about-copy .lede { margin: 22px 0 14px; max-width: 46ch; }
.mini-label { margin: 30px 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.mini-label span { letter-spacing: 0; text-transform: none; }
.interests { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interests a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: .92rem; background: rgba(251, 241, 228, .06); border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.interests a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.interests a:hover { background: rgba(255, 194, 122, .12); border-color: rgba(255, 194, 122, .4); transform: translateY(-2px); }

/* ---------- journey / cards ---------- */
.journey { padding-block: clamp(80px, 12vh, 140px); }
.journey-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.journey-head .lede { margin: 18px 0 0; }
.dex { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .9rem; font-variant-numeric: tabular-nums; }
.dex-pips { display: flex; gap: 4px; }
.dex-pips i { width: 10px; height: 14px; border-radius: 2px; border: 1px solid var(--cream-3); transition: background .3s, border-color .3s; }
.dex-pips i.on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px rgba(255, 194, 122, .7); }
.dex.done { border-color: rgba(255, 194, 122, .55); color: var(--amber); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; }
.chip { cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: .9rem; background: transparent; border: 1px solid var(--line); color: var(--cream-2); transition: all .25s; }
.chip:hover { color: var(--cream); background: rgba(251, 241, 228, .06); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); perspective: 1400px; }
.card { position: relative; aspect-ratio: 5 / 7.2; transition: opacity .45s var(--ease), filter .45s, transform .45s var(--ease); }
.card.dim { opacity: .28; filter: grayscale(.6); transform: scale(.97); }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.2, .4, 1); transform: rotateY(calc(var(--flip, 0) * 180deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card.flipped { --flip: 1; }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 20px; padding: 14px; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(140% 80% at 50% 0%, color-mix(in oklab, var(--el) 22%, transparent), transparent 60%),
    linear-gradient(170deg, #1b1d44, #0e1030);
  border: 1px solid color-mix(in oklab, var(--el) 45%, transparent);
  box-shadow: inset 0 0 0 5px rgba(9, 11, 32, .55), inset 0 0 0 6px color-mix(in oklab, var(--el) 30%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.face::after { /* holo sheen follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: var(--sheen, 0); transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 40%),
              linear-gradient(115deg, transparent 30%, color-mix(in oklab, var(--el) 30%, transparent) 45%, rgba(185, 166, 255, .18) 52%, transparent 65%);
  mix-blend-mode: screen;
}
.back { transform: rotateY(180deg); padding: 22px; gap: 12px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.card-top h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); font-weight: 450; letter-spacing: -.01em; }
.el { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--el); padding: 4px 9px 4px 7px; border-radius: 999px; background: color-mix(in oklab, var(--el) 14%, transparent); border: 1px solid color-mix(in oklab, var(--el) 40%, transparent); }
.el svg { width: 13px; height: 13px; }
.art { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 12px; overflow: hidden; background: #0b0d26; border: 1px solid color-mix(in oklab, var(--el) 35%, transparent); }
.art:not(.art-icon) > img:first-child, .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-logo { position: absolute; left: 10px; bottom: 10px; width: 34%; padding: 6px 8px; border-radius: 8px; background: rgba(9, 11, 32, .72); backdrop-filter: blur(4px); }
.art-logo.round { width: 22%; padding: 3px; border-radius: 50%; background: #fff; }
.art-icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 200, 90, .25), transparent 60%), #120f22; }
.art-icon img { height: auto; width: 46%; border-radius: 22%; box-shadow: 0 0 50px rgba(255, 190, 80, .35); }
.art-cap { position: absolute; left: 10px; bottom: 8px; font-size: .68rem; letter-spacing: .04em; color: var(--cream-3); }
.stats { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 12px; background: linear-gradient(transparent, rgba(9, 11, 32, .8)); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .66rem; color: var(--cream-3); letter-spacing: .06em; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.role { margin: 12px 6px 8px; font-size: .86rem; font-weight: 600; color: var(--cream); }
.moves { list-style: none; margin: 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.moves li { font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: rgba(251, 241, 228, .07); color: var(--cream-2); }
.card-foot { display: flex; justify-content: space-between; margin: 12px 6px 2px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.card-flip { position: absolute; inset: 0; z-index: 2; background: none; border: 0; border-radius: 20px; cursor: pointer; }
.back h3 { font-size: 1.35rem; font-weight: 450; }
.back p { margin: 0; font-size: .93rem; color: var(--cream-2); line-height: 1.55; }
.back p.small { font-size: .82rem; color: var(--cream-3); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.links a, .listen-btn { text-decoration: none; font-size: .85rem; padding: 8px 12px; border-radius: 10px; background: color-mix(in oklab, var(--el) 16%, transparent); border: 1px solid color-mix(in oklab, var(--el) 40%, transparent); cursor: pointer; transition: background .2s; }
.links a:hover, .listen-btn:hover { background: color-mix(in oklab, var(--el) 28%, transparent); }
.flip-back { align-self: flex-start; background: none; border: 0; color: var(--cream-3); font-size: .8rem; cursor: pointer; padding: 4px 0; }
.flip-back:hover { color: var(--cream); }


.player { margin-top: 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--glass-strong); }
.player-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: .85rem; color: var(--cream-2); }
.player-close { background: none; border: 0; color: var(--cream-2); cursor: pointer; font-size: 1rem; }
.player iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- sunsets ---------- */
.sunsets { padding-block: clamp(80px, 12vh, 140px); }
.sunsets-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.sunsets-head .lede { margin: 18px 0 0; }
.strip-nav { display: flex; gap: 8px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(251, 241, 228, .06); cursor: pointer; font-size: 1.1rem; transition: background .25s; }
.round-btn:hover { background: rgba(251, 241, 228, .14); }
.strip {
  list-style: none; margin: 0; display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2)) 24px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; scroll-snap-align: start; }
.shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; height: clamp(320px, 52vh, 520px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); transition: transform .6s var(--ease); }
.shot img { height: 100%; width: auto; aspect-ratio: auto; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.shot:hover, .shot:focus-visible { transform: translateY(-6px); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(5, 7, 26, .88); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; box-shadow: 0 40px 100px -30px #000; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(9, 11, 32, .6); color: var(--cream); cursor: pointer; font-size: 1.1rem; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; } .lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-close { right: 16px; top: 16px; }

/* ---------- thoughts ---------- */
.thoughts { padding-block: clamp(120px, 22vh, 240px); overflow: hidden; }
.thoughts-inner { text-align: center; display: grid; justify-items: center; }
.thoughts .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.thought { margin: 10px 0 36px; max-width: 22ch; font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; transition: opacity .6s var(--ease), filter .6s, transform .6s var(--ease); }
.thought p { margin: 0; }
.thought p::before { content: "“"; color: var(--amber); }
.thought p::after { content: "”"; color: var(--amber); }
.thought.out { opacity: 0; filter: blur(6px); transform: translateY(8px); }
.thought-row { display: flex; align-items: center; gap: 18px; }
.ghost-btn { cursor: pointer; padding: 10px 18px; border-radius: 999px; background: rgba(251, 241, 228, .06); border: 1px solid var(--line); font-size: .92rem; transition: background .25s, border-color .25s; }
.ghost-btn:hover { background: rgba(251, 241, 228, .12); border-color: rgba(251, 241, 228, .3); }
.thought-count { font-size: .85rem; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.shooting { position: absolute; top: 18%; left: 10%; width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff6e6); opacity: 0; transform: rotate(-18deg); pointer-events: none; }
.shooting.go { animation: shoot 1.1s var(--ease) forwards; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: 60vw 22vh; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(80px, 12vh, 140px) 32px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact .lede { margin: 18px 0 26px; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.email-link { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.9rem); text-decoration-color: rgba(255, 194, 122, .5); text-underline-offset: 6px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.email-link:hover { text-decoration-color: var(--amber); }
.constellation { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 520px; justify-self: center; }
.c-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-lines * { stroke: rgba(251, 241, 228, .22); stroke-width: 1; stroke-dasharray: 3 5; }
.star { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; justify-items: center; gap: 8px; text-decoration: none; padding: 10px; border-radius: 14px; }
.star i { width: 12px; height: 12px; border-radius: 50%; background: #fff6e6; box-shadow: 0 0 0 4px rgba(255, 246, 230, .1), 0 0 18px 4px rgba(255, 246, 230, .45); transition: transform .35s var(--ease), box-shadow .35s; }
.star span { font-size: .85rem; color: var(--cream-2); transition: color .25s; }
.star:hover i, .star:focus-visible i { transform: scale(1.5); box-shadow: 0 0 0 6px rgba(255, 194, 122, .15), 0 0 28px 8px rgba(255, 194, 122, .6); background: var(--amber); }
.star:hover span { color: var(--cream); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(80px, 12vh, 140px); padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--cream-3); }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--amber); }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .menu-btn { display: grid; margin-left: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .photos { max-width: 360px; justify-self: center; }
  .sunsets-head { align-items: flex-start; flex-direction: column; }
  .strip-nav { display: none; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-inline: auto; }
  .constellation { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-inner { transition: none; }
}
.menu[hidden] { display: none; }
.art-logo { height: auto; }
main > .hero, main > .about { overflow-x: clip; }
