:root {
  --bg: #050505;
  --ink: #f2efe9;
  --ink-2: rgba(242, 239, 233, 0.68);
  --ink-3: rgba(242, 239, 233, 0.42);
  --line: rgba(255, 255, 255, 0.11);
  --verm: #e23a28;
  --seal: #c8322a;
  --live: #e23a28;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--verm); color: #fff; }
html { scroll-padding-top: 90px; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.dim { color: var(--ink-3); }
.serif { font-family: var(--serif); font-weight: 400; }
em { font-style: italic; }

.glass {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.35);
}

.live-dot {
  position: relative; display: inline-block; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 10px var(--live);
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.nav.scrolled {
  background: rgba(16, 16, 18, 0.5); border-color: var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 40px rgba(0, 0, 0, 0.4);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: auto; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 13px; white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.status-pill:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.status-label { color: var(--ink-3); }
.status-sep { width: 1px; height: 12px; background: var(--line); }
.status-value { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: 110px var(--gutter) 60px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.hero-glow {
  position: absolute; z-index: -2; right: -10%; top: 10%; width: 70vw; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(226, 58, 40, 0.12) 0%, rgba(226, 58, 40, 0.03) 35%, transparent 65%);
  pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 1.2s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.25s; }
.hero-copy > :nth-child(4) { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.kicker { color: var(--ink-3); }
.name {
  margin: 14px 0 26px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(72px, 11vw, 168px); line-height: 0.88; letter-spacing: -0.02em;
}
.name em { color: var(--ink-2); }
.lead { max-width: 30em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); }
.where-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  padding: 12px 18px 12px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 15px; font-weight: 500;
  transition: background 0.3s, border-color 0.3s, gap 0.4s var(--ease);
}
.where-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.where-link:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); gap: 16px; }

.hero-mark { position: relative; justify-self: center; width: min(100%, 560px); padding-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.hero-actions .where-link { margin-top: 0; }
.text-link { font-size: 14px; color: var(--ink-3); transition: color 0.3s; }
.text-link:hover { color: var(--ink); }
.rooster-wrap { position: relative; display: block; width: 100%; padding: 0; animation: float 9s ease-in-out infinite 2.4s; cursor: pointer; border-radius: 24px; }
.rooster-wrap:focus-visible { outline-offset: 10px; }
.rooster-wrap.crowing .rooster { animation: crowkick 0.5s var(--ease); }
@keyframes crowkick { 30% { transform: rotate(-3deg) translateY(-10px) scale(1.02); } 60% { transform: rotate(1.5deg); } }
.crow {
  position: absolute; right: -4%; top: 2%; padding: 8px 12px; border-radius: 14px 14px 14px 3px;
  background: var(--ink); color: #0a0a0a; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.crow.show { opacity: 1; transform: none; }
.seal.restamp { animation: stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.polaroid {
  position: absolute; right: -4%; bottom: -6%; width: 34%; min-width: 150px;
  padding: 8px 8px 30px; background: #f2efe8; border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 2px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(6deg); transform-origin: 50% 100%;
  opacity: 0; animation: polaroidIn 1s var(--ease) 1.4s forwards;
  transition: transform 0.6s var(--ease);
}
.polaroid:hover { transform: rotate(2deg) translateY(-8px) scale(1.04); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: saturate(0.9) contrast(1.05); }
.polaroid-cap { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-family: "Caveat", cursive; font-size: 18px; color: #1b1a19; }
@keyframes polaroidIn { from { opacity: 0; transform: rotate(14deg) translateY(30px); } to { opacity: 1; transform: rotate(6deg); } }
.rooster {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(105deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(105deg, #000 45%, transparent 55%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: brush 2.2s var(--ease) 0.2s forwards;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
@keyframes brush { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes float { 50% { transform: translateY(-8px); } }

.seal {
  position: absolute; top: 34%; left: -2%;
  display: grid; place-items: center;
  width: 58px; padding: 12px 0;
  background: var(--seal); border-radius: 7px;
  transform: rotate(-4deg) scale(0.6); opacity: 0;
  box-shadow: inset 0 0 0 3px rgba(255, 235, 220, 0.15), 0 10px 30px rgba(200, 50, 42, 0.35);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.9s forwards;
}
.seal span {
  writing-mode: vertical-rl; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900;
  font-size: 34px; line-height: 1.05; color: #f8ebe0; letter-spacing: 0.02em;
}
@keyframes stamp { to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.seal-note {
  position: absolute; left: -2%; top: calc(34% + 150px);
  color: var(--ink-3); font-size: 11px; writing-mode: vertical-rl; letter-spacing: 0.14em;
  opacity: 0; animation: rise 1s var(--ease) 2.3s forwards;
}

/* ---------- Ticker ---------- */
.ticker { margin: 10px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 0; width: max-content; padding: 12px 0; animation: ticker 60s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; padding: 0 28px; border-right: 1px solid var(--line); }
.ticker-track b { color: var(--ink); font-weight: 500; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Blocks ---------- */
.block { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 14vh var(--gutter) 0; scroll-margin-top: 80px; }
.label { display: flex; align-items: center; gap: 10px; color: var(--ink-3); text-transform: uppercase; margin-bottom: 28px; }
.label::before { content: ""; width: 26px; height: 1px; background: var(--line); }
.prose { max-width: 760px; }
.prose p { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.01em; }
.prose p + p { margin-top: 1.1em; }
.prose p:first-child { color: var(--ink); }
.inline-link {
  display: inline; font-size: inherit; color: var(--ink);
  background-image: linear-gradient(var(--verm), var(--verm)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.inline-link:hover { color: #fff; background-size: 100% 100%; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.socials a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-weight: 600; font-size: 15px; transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease); }
.socials a:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.socials a .mono { color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; }
.socials a small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.now-list p strong { color: var(--ink); font-weight: 600; }
.now-live { margin-top: 26px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.now-live .live-dot { margin-right: 8px; vertical-align: middle; }
.now-live b { color: var(--ink); font-weight: 600; }
.now-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.now-list li { display: flex; gap: 18px; padding: 26px 28px; border-radius: 22px; transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s; }
.now-list li:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07); transform: translateY(-3px); }
.now-list .idx { color: var(--verm); padding-top: 4px; }
.now-list p { font-size: 17px; color: var(--ink-2); }

.where-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 30px; }
.where-copy h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.01em; }
.where-copy h2 em { color: var(--ink-3); font-size: 0.72em; }
.where-copy p { margin: 20px 0 30px; color: var(--ink-2); max-width: 26em; }
.hero-globe { position: relative; display: block; width: 100%; aspect-ratio: 1; max-width: 560px; justify-self: center; cursor: pointer; border-radius: 50%; }
.hero-globe canvas { width: 100%; height: 100%; display: block; transition: transform 0.8s var(--ease); }
.hero-globe:hover canvas { transform: scale(1.03); }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote { padding: 24px 26px; border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  opacity: 0; transform: translateY(40px) scale(0.9) rotate(-1.5deg); transition: opacity 0.7s var(--ease), transform 0.9s cubic-bezier(0.2, 1.4, 0.4, 1), border-color 0.4s; }
.quote:nth-child(even) { transform: translateY(40px) scale(0.9) rotate(1.5deg); }
.quote.in { opacity: 1; transform: none; }
.quote:hover { border-color: rgba(255, 255, 255, 0.25); }
.quote blockquote { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-3); }
.quote figcaption b { color: var(--ink); font-weight: 600; font-size: 14px; }
.quote::before { content: "★★★★★"; display: block; color: var(--verm); letter-spacing: 0.2em; font-size: 11px; margin-bottom: -8px; }

.trivia-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; max-width: 1000px; }
.trivia-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; } .trivia-list li > span:last-child { display: block; }
.trivia-list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); line-height: 1.45; }
.trivia-list li .mono { color: var(--verm); padding-top: 3px; }
.trivia-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.poi-tip { position: absolute; z-index: 4; left: 0; top: 0; width: 260px; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(18, 18, 22, 0.75); pointer-events: none; opacity: 0; transition: opacity 0.25s var(--ease); }
.poi-tip.show { opacity: 1; }
.poi-photo { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #111; }
.poi-photo img { width: 100%; height: 100%; object-fit: cover; }
.poi-label { display: block; font-size: 14px; font-weight: 600; }
.poi-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.map-legend { position: absolute; z-index: 3; right: 18px; bottom: 24px; display: grid; gap: 6px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.map-legend .dot.race { background: #ffcd3c; } .map-legend .dot.life { background: #8fb3ff; }
.map-legend .dot.nomad { box-shadow: 0 0 0 2px rgba(255,255,255,0.6); width: 6px; height: 6px; margin: 1px; }
.place-panel { position: absolute; z-index: 5; right: 18px; top: 76px; width: min(340px, calc(100% - 36px)); border-radius: 24px; overflow: hidden; background: rgba(18, 18, 22, 0.72);
  opacity: 0; transform: translateX(20px); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.place-panel.show { opacity: 1; transform: none; }
.pp-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); }
.pp-close svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.pp-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pp-body { padding: 18px 20px 20px; }
.pp-kind { color: var(--verm); font-size: 10.5px; text-transform: uppercase; }
.pp-label { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 6px; }
.pp-note { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.pp-link { margin-top: 16px; height: 42px; padding: 0 18px; font-size: 14px; }
.map-card.tucked, .map.open .map-card.tucked { opacity: 0.35; pointer-events: none; }
/* a place panel sits over the zoom buttons on desktop: slide them out from under it */
@media (min-width: 901px) { .map:has(.place-panel.show) .zoom-ctl { right: 370px; } }
.map .map-card { bottom: 70px; }
.place-chips { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.place-chips::-webkit-scrollbar { display: none; }
.place-chips button { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18, 18, 22, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.place-chips button:hover, .place-chips button.on { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.map-card { bottom: 70px; }
.map-legend { bottom: 76px; }
.flag-kh { background: linear-gradient(#032ea1 0 25%, #e00025 25% 75%, #032ea1 75%); }

.photos-section { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 14vh auto 0; padding: 0 var(--gutter); }
.photos-section .row-head { display: flex; align-items: baseline; justify-content: space-between; }
.photos-section .label { margin-bottom: 22px; }
.ph { display: block; }
.ph > .mono { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 11px; color: var(--ink); }

.timeline { list-style: none; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .yr { color: var(--ink-3); padding-top: 4px; }
.timeline p { font-size: 19px; color: var(--ink-2); }

.photos { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 12px; align-items: end; }
.ph { position: relative; overflow: hidden; border-radius: 16px; background: #111; }
.ph:nth-child(1) { aspect-ratio: 3 / 4; }
.ph:nth-child(2) { aspect-ratio: 4 / 5; }
.ph:nth-child(3) { aspect-ratio: 3 / 4.4; }
.ph:nth-child(4) { aspect-ratio: 3 / 4; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.05) brightness(0.85); transition: filter 0.8s var(--ease), transform 1.4s var(--ease); }
.ph:hover img { filter: none; transform: scale(1.04); }
.ph figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 11px; color: var(--ink);
}

.letters { padding-bottom: 16vh; }
.letters-card { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: 30px; }
.letters-card h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; }
.signup {
  display: flex; gap: 8px; margin-top: 30px; padding: 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.signup:focus-within { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05); }
.signup input[type="email"] { flex: 1; min-width: 0; padding: 0 18px; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 16px; }
.signup input::placeholder { color: var(--ink-3); }
.signup.loading .btn { opacity: 0.6; pointer-events: none; }
.signup.done { border-color: rgba(120, 220, 150, 0.45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); min-height: 1.5em; }
.form-note.ok { color: #8fe0a8; }
.form-note.err { color: #ff9a8a; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-light { background: var(--ink); color: #0a0a0a; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.14); }
.btn-glass { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 34px var(--gutter) calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; color: var(--ink-3);
}
.footer img { width: 22px; height: auto; }
.footer-name { color: var(--ink); font-weight: 600; margin-right: auto; }
.footer a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Map ---------- */
.map { position: fixed; inset: 0; z-index: 80; background: radial-gradient(ellipse at 50% 55%, #0b0d14 0%, #030304 70%); opacity: 0; transition: opacity 0.6s var(--ease); }
.map[hidden] { display: none; }
.map.open { opacity: 1; }
#mapGlobe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#mapGlobe:active { cursor: grabbing; }

.map-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s; }
.map-close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, 0.12); }
.map-close svg, .zoom-ctl svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.zoom-ctl { position: absolute; z-index: 3; right: 18px; top: 50%; transform: translateY(-50%); display: grid; border-radius: 22px; overflow: hidden; transition: right 0.5s var(--ease); }
.zoom-ctl button { width: 44px; height: 44px; display: grid; place-items: center; transition: background 0.3s; }
.zoom-ctl button + button { border-top: 1px solid var(--line); }
.zoom-ctl button:hover { background: rgba(255, 255, 255, 0.1); }

.map-card {
  position: absolute; z-index: 3; left: 24px; bottom: 24px; width: min(380px, calc(100% - 48px));
  padding: 26px; border-radius: 26px; background: rgba(18, 18, 22, 0.5);
  transform: translateY(20px); opacity: 0; transition: transform 0.8s var(--ease) 0.3s, opacity 0.8s var(--ease) 0.3s;
}
.map.open .map-card { transform: none; opacity: 1; }
.map-card .label { margin-bottom: 12px; }
.map-card .label::before { display: none; }
.map-card h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.01em; }
.map-country { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink-2); }
.flag { position: relative; width: 26px; height: 17px; border-radius: 3px; flex: none; }
.flag-vn { background: #da251d; }
.flag-vn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -52%); background: #ffcd00;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.flag-th { background: linear-gradient(#a51931 0 16.6%, #f4f5f8 16.6% 33.3%, #2d2a4a 33.3% 66.6%, #f4f5f8 66.6% 83.3%, #a51931 83.3%); }
.map-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.map-meta dt { color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; }
.map-meta dd { margin-top: 2px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.map-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.map-actions .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.map-hint { position: absolute; z-index: 2; left: 50%; top: 26px; transform: translateX(-50%); color: var(--ink-3); font-size: 11px; white-space: nowrap; pointer-events: none; }
.swap { animation: swap 0.6s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(8px); } }

.doodle {
  position: absolute; z-index: 2; left: 0; top: 0; width: 280px;
  padding: 12px 12px 6px; border-radius: 16px; background: #f2efe8; color: #1b1a19;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform-origin: 50% 100%; pointer-events: none;
  opacity: 0; transition: opacity 0.45s var(--ease), scale 0.6s var(--ease);
  scale: 0.6; will-change: transform;
}
.doodle.show { opacity: 1; scale: 1; }
.doodle::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px;
  background: #f2efe8; transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.doodle img { width: 100%; height: auto; }
.doodle p { position: relative; z-index: 1; font-family: "Caveat", cursive; font-size: 25px; line-height: 1.1; text-align: center; padding: 2px 0 6px; }
.live-tag {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 6px; background: #1b1a19; color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.live-tag .live-dot { width: 6px; height: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 8px; }
  .hero-mark { order: -1; width: min(78vw, 420px); margin-bottom: 28px; }
  .seal { width: 46px; left: -4%; } .seal span { font-size: 26px; }
  .seal-note { display: none; }
  .now-list { grid-template-columns: 1fr; }
  .polaroid { right: -2%; bottom: -2%; width: 36%; min-width: 120px; }
  .crow { right: 0; top: 0; font-size: 11px; }
  .hero-mark { padding-bottom: 50px; }
  .quote-grid { grid-template-columns: 1fr; } .quote blockquote { font-size: 22px; }
  .trivia-list { grid-template-columns: 1fr; }
  .map-legend { display: none; }
  .poi-tip { width: 220px; }
  .photos-section .row-head { align-items: center; }
  .where-grid { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .ph:nth-child(n) { aspect-ratio: 3 / 4; }
  .map-card { left: 12px; right: 12px; bottom: 62px; width: auto; padding: 20px; }
  .map-card.tucked, .map.open .map-card.tucked { opacity: 0; }
  .place-panel { right: 12px; left: 12px; top: auto; bottom: 62px; width: auto; display: grid; grid-template-columns: 120px 1fr; }
  .pp-img { height: 100%; aspect-ratio: auto; }
  .pp-label { font-size: 22px; } .pp-note { font-size: 13px; } .pp-link { height: 36px; font-size: 13px; }
  .map-card h2 { font-size: 34px; }
  .map-note { display: none; }
  .zoom-ctl { top: 76px; transform: none; right: 12px; }
  .map-close { top: 12px; right: 12px; }
  .map-hint { top: auto; bottom: auto; display: none; }
  .doodle { width: 220px; }
  .doodle p { font-size: 21px; }
}
@media (max-width: 560px) {
  .status-label, .status-sep { display: none; }
  .brand span { display: none; }
  .timeline li { grid-template-columns: 74px 1fr; gap: 12px; }
  .timeline p { font-size: 17px; }
  .signup { flex-direction: column; border-radius: 22px; padding: 8px; }
  .signup input[type="email"] { flex: none; height: 48px; }
  .footer-name { margin-right: 0; }
}

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


/* ---------- Pa-zazz ---------- */
:root { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }
.progress { position: fixed; z-index: 70; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--verm), #ff9a8a); pointer-events: none; }

/* nav links get a sliding pill */
.nav-links { position: relative; padding: 4px; border-radius: 999px; }
.nav-links a { position: relative; padding: 6px 12px; border-radius: 999px; z-index: 1; }
.nav-links .pill { position: absolute; z-index: 0; top: 4px; height: calc(100% - 8px); border-radius: 999px; background: rgba(255, 255, 255, 0.1); opacity: 0; transition: left 0.35s var(--spring), width 0.35s var(--spring), opacity 0.25s; }
.nav-links:hover .pill { opacity: 1; }
.nav-letters { color: var(--ink); font-weight: 600; }
.nav-letters::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--verm); transform: scaleX(0.4); transform-origin: left; transition: transform 0.4s var(--spring); }
.nav-letters:hover::after { transform: scaleX(1); }

@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* buttons: spring + shine + magnetic */
.btn, .where-link, .status-pill, .arrow, .zoom-ctl button, .map-close, .pp-close, .place-chips button, .filters button, .socials a {
  transition: transform 0.45s var(--spring), background 0.3s, border-color 0.3s, box-shadow 0.4s, color 0.3s;
  will-change: transform;
}
.btn:hover, .where-link:hover, .status-pill:hover { transform: translateY(-2px) scale(1.04); }
.btn:active, .where-link:active, .status-pill:active, .place-chips button:active, .filters button:active { transform: scale(0.94); transition-duration: 0.12s; }
.btn-light { position: relative; overflow: hidden; }
.btn-light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn-light:hover::after { transform: translateX(120%); }
.magnet { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important; }
.magnet.magnet-on { transition: transform 0.08s linear !important; }
.btn-omen { height: 52px; }

/* glass cards: cursor spotlight + tilt */
.spot { position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform 0.5s var(--spring), border-color 0.4s, background 0.4s, box-shadow 0.5s; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.spot:hover { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.spot > * { transform: translateZ(14px); }
.quote.in { transition: opacity 0.7s var(--ease), transform 0.9s var(--spring), border-color 0.4s, box-shadow 0.5s; }

/* hero bits float with the cursor */
.hero-mark { transform-style: preserve-3d; }
.rooster-wrap, .seal, .polaroid { will-change: transform; }

/* timeline slides in from the left */
.timeline li.reveal { transform: translateX(-30px); }
.timeline li.reveal.in { transform: none; }
.ph.reveal { transform: translateY(40px) scale(0.94); }
.ph.reveal.in { transform: none; }
.trivia-list li.reveal { transform: translateX(-16px); }
.trivia-list li.reveal.in { transform: none; }

/* feather burst when the rooster crows */
.feather { position: fixed; z-index: 90; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; pointer-events: none; animation: feather 1.1s var(--ease) forwards; }
@keyframes feather { to { transform: translate(var(--dx), var(--dy)) rotate(540deg) scale(0.2); opacity: 0; } }

/* why the rooster */
.omen { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; }
.omen[hidden] { display: none; }
.omen-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); opacity: 0; transition: opacity 0.5s var(--ease); }
.omen-panel { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; padding: clamp(24px, 4vw, 48px); border-radius: 34px; background: rgba(18, 18, 22, 0.6);
  opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.7s var(--spring); }
.omen.open .omen-backdrop { opacity: 1; }
.omen.open .omen-panel { opacity: 1; transform: none; }
.omen-copy h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.015em; margin: 10px 0 20px; }
.omen-copy h2 em { color: var(--ink-3); }
.omen-copy p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.omen-copy p + p { margin-top: 14px; }
.omen-copy p:first-of-type { color: var(--ink); }
.omen-foot { margin-top: 24px; font-size: 11px; text-transform: uppercase; }
.omen-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.omen-strip figure { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: #111; transform: rotate(var(--r, 0deg)); transition: transform 0.5s var(--spring); }
.omen-strip figure:nth-child(1) { --r: -2deg; } .omen-strip figure:nth-child(2) { --r: 1.5deg; } .omen-strip figure:nth-child(3) { --r: -1deg; }
.omen-strip figure:nth-child(4) { --r: 2deg; } .omen-strip figure:nth-child(5) { --r: -1.5deg; } .omen-strip figure:nth-child(6) { --r: 1deg; }
.omen-strip figure:hover { transform: rotate(0deg) scale(1.06); z-index: 1; }
.omen-strip img { width: 100%; height: 100%; object-fit: cover; }
.omen-strip figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); font-size: 10px; color: var(--ink); }
.omen .map-close { position: absolute; top: 16px; right: 16px; }

@media (max-width: 900px) {
  .nav-note { display: none; }
  .omen-panel { grid-template-columns: 1fr; padding: 24px 18px; }
  .omen-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .omen-strip figcaption { font-size: 10px; }
  .omen-copy p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .spot, .magnet { transform: none !important; } }

/* ---------- The skill ---------- */
.skill-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.skill-copy { position: relative; }
.tier { position: absolute; right: 0; top: -30px; font-family: var(--serif); font-size: clamp(120px, 16vw, 220px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(226, 58, 40, 0.55); pointer-events: none; user-select: none; }
.skill-copy h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.015em; max-width: 12em; margin-bottom: 22px; }
.skill-copy h2 em { color: var(--ink-3); }
.skill-copy p { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.skill-copy p + p { margin-top: 14px; }
.skill-copy p:first-of-type { color: var(--ink); font-size: 20px; }
.skill-side { display: grid; gap: 12px; }
.stat { padding: 22px 24px; border-radius: 22px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 58px); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.stat a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.niches { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.niches li { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); transition: color 0.3s, border-color 0.3s, transform 0.4s var(--spring); }
.niches li:hover { color: var(--ink); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
@media (max-width: 900px) { .skill-grid { grid-template-columns: 1fr; } .tier { right: -4px; top: -20px; font-size: 110px; } }


/* ---------- Scrawls (hand-written notes) ---------- */
.scrawl { position: absolute; display: flex; align-items: flex-start; gap: 6px; pointer-events: none; z-index: 3; }
.scrawl .s-arrow { flex: none; width: 70px; height: 52px; color: var(--verm); }
.scrawl p, .scrawl > span { font-family: "Caveat", cursive; font-size: 21px; line-height: 1.05; color: var(--ink); text-shadow: 0 2px 14px rgba(0,0,0,0.8); transform: rotate(-2.5deg); white-space: nowrap; }
.scrawl em { color: var(--verm); font-style: normal; }
.scrawl .draw { stroke-dasharray: 300; stroke-dashoffset: 300; }
.scrawl p, .scrawl > span { opacity: 0; }
.scrawl.on .draw { animation: drawIn 1.3s var(--ease) forwards; }
.scrawl.on p, .scrawl.on > span { animation: rise 0.7s var(--ease) 0.7s forwards; }

.s-skill { position: static; margin-top: 18px; }
.s-skill .s-arrow { width: 90px; height: 44px; }
.s-now { right: var(--gutter); top: 10vh; flex-direction: row-reverse; }
.s-now p { transform: rotate(2deg); }
.s-globe { left: 2%; bottom: 6%; }
.s-ref { right: var(--gutter); top: 12vh; flex-direction: row-reverse; }
.s-ref p { transform: rotate(2deg); }
.s-photos { position: static; justify-content: flex-end; margin-top: 10px; }
.s-about { position: static; margin-top: 18px; }

/* hero email capture */
.hero-signup { max-width: 520px; margin-top: 26px; background: rgba(255, 255, 255, 0.05); }
.hero-copy .form-note { margin-top: 10px; }
.hero-copy > .hero-actions { margin-top: 26px; }

/* the rooster easter egg */
.egg { position: absolute; left: 8%; bottom: 6%; display: flex; align-items: flex-end; gap: 4px; padding: 6px 8px; border-radius: 10px; font-family: "Caveat", cursive; font-size: 19px; color: var(--ink-3); opacity: 0; transform: rotate(-4deg); transition: color 0.3s, transform 0.4s var(--spring); animation: rise 1s var(--ease) 2.6s forwards; }
.egg svg { width: 38px; height: 26px; color: var(--verm); opacity: 0.8; }
.egg .draw { stroke-dasharray: 160; stroke-dashoffset: 160; animation: drawIn 1.2s var(--ease) 2.8s forwards; }
.egg:hover { color: var(--ink); transform: rotate(-2deg) scale(1.08); }

/* in short */
.short-list { list-style: none; max-width: 760px; display: grid; gap: 0; }
.short-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; color: var(--ink-2); }
.short-list li:first-child { color: var(--ink); }
.short-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.skill-copy p { font-size: 18px; }
.block + .block { padding-top: 12vh; }
.now, .reviews { position: relative; }

/* sub pages */
.sub-main { position: relative; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 120px var(--gutter) 10vh; }
.sub-head { max-width: 860px; margin-bottom: 20px; }
.sub-head h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.015em; margin-top: 4px; }
.sub-head h1 em { color: var(--ink-3); }
.sub-main .block { padding-left: 0; padding-right: 0; }
.sub-main .block:first-of-type { padding-top: 6vh; }
.gallery-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

@media (max-width: 900px) {
  .s-now, .s-ref { display: none; }
  .s-globe { left: 0; bottom: -6px; }
  .scrawl p, .scrawl > span { font-size: 18px; white-space: normal; }
  .egg { left: 0; bottom: 0; font-size: 17px; }
  .s-hero { margin-left: 8px; }
}


/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { position: fixed; z-index: 55; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 999px;
    background: rgba(16, 16, 18, 0.65); border: 1px solid var(--line); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; padding: 7px 10px; border-radius: 999px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); transition: background 0.3s, color 0.3s, transform 0.4s var(--spring); }
  .dock a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock a:active { transform: scale(0.9); }
  .dock a[aria-current="page"] { background: rgba(255,255,255,0.12); color: var(--ink); }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .place-chips { bottom: 0; }
  .gallery-page .tile-cap { padding: 22px 10px 8px; font-size: 11px; line-height: 1.25; }
  .gallery-page .tile-cap .mono { display: none; }
}
.map-legend .dot.trail { background: none; width: 14px; height: 0; border-top: 2px dotted rgba(255,205,60,0.8); border-radius: 0; }


/* ---------- v13: air, line-height, arrows ---------- */
body { line-height: 1.7; }
.prose { max-width: 680px; }
.prose p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.75; }
.prose p + p { margin-top: 1.6em; }
.lead { line-height: 1.7; }
.short-list li { padding: 20px 0; line-height: 1.6; }
.now-list li { padding: 30px 30px; }
.now-list p { line-height: 1.7; }
.skill-copy p { line-height: 1.75; } .skill-copy p + p { margin-top: 1.4em; }
.trivia-list li { padding: 20px 0; line-height: 1.65; }
.timeline li { padding: 28px 0; } .timeline p { line-height: 1.65; }
.quote { padding: 30px 30px; gap: 30px; }
.block { padding-top: 16vh; }
.block + .block { padding-top: 14vh; }
.omen-copy p { line-height: 1.75; } .omen-copy p + p { margin-top: 1.3em; }
.ai-card p, .ai-card li { line-height: 1.65; }
.ai-card ul, .ai-card ol { gap: 12px; }
.ai-card dl div { padding: 11px 0; }
.letters-card h2 { line-height: 1.2; }
.stat span { line-height: 1.6; }
/* arrow-less notes just sit under their thing */
.scrawl.plain .s-arrow { display: none; }
.scrawl.plain p { transform: rotate(-1.5deg); }
.s-photos { flex-direction: row-reverse; }
.s-photos .s-arrow { transform: scaleX(-1) rotate(20deg); }

.about-photo { float: right; width: min(38%, 360px); margin: 0 0 24px 40px; transform: rotate(2deg); }
.about-photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,0.6); border: 8px solid #f2efe8; border-bottom-width: 36px; }
.about-photo figcaption { position: relative; margin-top: -32px; text-align: center; font-family: "Caveat", cursive; font-size: 19px; color: #1b1a19; letter-spacing: 0; }
#story { overflow: hidden; }
@media (max-width: 900px) { .about-photo { float: none; width: min(70%, 320px); margin: 0 auto 30px; } }

/* ---------- random photo ---------- */
.random-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.random-copy h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1; letter-spacing: -0.015em; margin-bottom: 20px; }
.random-copy h2 em { color: var(--ink-3); }
.random-copy p { color: var(--ink-2); max-width: 30em; margin-bottom: 26px; line-height: 1.7; }
.s-random { margin-top: 18px; }
.polaroid-stage { position: relative; min-height: 460px; display: grid; place-items: center; perspective: 1200px; }
.rp { width: min(360px, 90%); padding: 12px 12px 18px; background: #f2efe8; border-radius: 6px; box-shadow: 0 40px 80px rgba(0,0,0,0.65), 0 2px 0 rgba(0,0,0,0.2); opacity: 0; transform: rotate(-4deg) translateY(30px) scale(0.9); }
.rp.in { animation: rpIn 0.7s var(--spring) forwards; }
.rp.out { animation: rpOut 0.35s var(--ease) forwards; }
@keyframes rpIn { to { opacity: 1; transform: rotate(var(--r, -2deg)) translateY(0) scale(1); } }
@keyframes rpOut { to { opacity: 0; transform: rotate(8deg) translate(60px, -40px) scale(0.85); } }
.rp img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #111; }
.rp figcaption { display: grid; gap: 4px; padding: 12px 4px 0; }
.rp figcaption span:first-child { font-family: "Caveat", cursive; font-size: 22px; line-height: 1.1; color: #1b1a19; }
.rp .mono { color: #6b6761; font-size: 10.5px; text-transform: uppercase; }
.rp.empty { opacity: 1; transform: rotate(-3deg); }
.rp.empty img { opacity: 0.15; }
@media (max-width: 900px) { .random-grid { grid-template-columns: 1fr; } .polaroid-stage { min-height: 0; margin-top: 10px; } }

/* ---------- edit mode ---------- */
.editing [data-edit] { outline: 1px dashed rgba(226, 58, 40, 0.5); outline-offset: 3px; cursor: text; }
.editing [data-edit]:focus { outline: 2px solid var(--verm); background: rgba(226, 58, 40, 0.08); }
.editing .spot, .editing .magnet { transform: none !important; }
.editbar { position: fixed; z-index: 95; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: rgba(18,18,22,0.85); max-width: calc(100% - 24px); }
.editbar input { width: 150px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,0.4); color: var(--ink); font: inherit; font-size: 13px; }
.editbar .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.editbar .mono { color: var(--ink-3); font-size: 11px; }

/* ---------- about: chapters, not walls ---------- */
.story { display: grid; gap: 0; }
.chapter { position: relative; padding: 11vh 0; border-top: 1px solid var(--line); max-width: 820px; }
.chapter:first-child { border-top: 0; padding-top: 6vh; }
.chapter .label { margin-bottom: 18px; }
.chapter h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.06; letter-spacing: -0.015em; max-width: 16em; margin-bottom: 26px; }
.chapter h2 em { color: var(--ink-3); }
.lines { display: grid; gap: 14px; max-width: 34em; }
.lines p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); }
.lines p:first-child { color: var(--ink); }
.lines a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bignum { display: grid; gap: 4px; margin-top: 30px; }
.bignum b { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bignum span { font-size: 14px; color: var(--ink-3); }
.detours { list-style: none; display: grid; gap: 0; max-width: 40em; }
.detours li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.detours li:last-child { border-bottom: 1px solid var(--line); }
.detours b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verm); padding-top: 5px; }
.detours a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.chapter .btn { margin-top: 26px; }
.chapter .socials { margin-top: 30px; }
.chapter .s-about { margin-top: 20px; }
.chapter .about-photo { width: min(34%, 300px); margin: 0 0 20px 40px; }
#story { overflow: visible; }
@media (max-width: 900px) { .chapter { padding: 8vh 0; } .chapter .about-photo { float: none; width: min(70%, 300px); margin: 0 0 24px; } }

.detours li > span { display: block; }
.omen-copy .lines { gap: 10px; max-width: none; }
.omen-copy .lines p { font-size: 16.5px; line-height: 1.5; }

/* ---------- hero capture block: note sits under the button, arrow goes straight up into it ---------- */
.capture { position: relative; max-width: 520px; margin-top: 26px; }
.capture .hero-signup { margin-top: 0; }
.capture .form-note { margin-top: 10px; max-width: 300px; }
/* arrow top = form bottom (6px pad + 48px button + 2px), tip lands ~8px under the button, centred on it;
   text sits left of the arrow, starting below the form-note so nothing overlaps */
.s-hero { position: absolute; right: 63px; top: 56px; display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; width: max-content; }
.s-hero p { text-align: right; margin-top: 64px; transform: rotate(-2deg); font-size: 20px; white-space: nowrap; }
.s-hero .s-arrow { flex: none; width: 56px; height: 80px; margin: 0; }
.hero-copy > .hero-actions { margin-top: 94px; }
@media (max-width: 900px) {
  .s-hero p { font-size: 18px; white-space: nowrap; }
}
@media (max-width: 560px) {
  /* form stacks (8px pad + 48 input + 8 gap + 48 button + 8 pad): button bottom is 112px down */
  .s-hero { top: 114px; right: 4px; }
  .capture .form-note { max-width: calc(100% - 68px); } /* keeps the note clear of the arrow */
  .label { flex-wrap: wrap; row-gap: 4px; } /* long labels drop the dim half to its own line instead of wrapping side by side */
}

/* ---------- hero capture, final: one tidy row under the form ---------- */
.capture { max-width: 520px; margin-top: 26px; }
.capture .hero-signup { margin-top: 0; }
.s-hero { position: static; top: auto; right: auto; width: auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; padding-right: 56px; }
.s-hero p { text-align: left; margin: 14px 0 0; font-size: 19px; line-height: 1.1; white-space: nowrap; transform: rotate(-1.5deg); }
.s-hero .s-arrow { flex: none; width: 44px; height: 64px; margin: 0; }
.capture .form-note { margin-top: 0; max-width: none; white-space: nowrap; font-size: 12.5px; }
.hero-copy > .hero-actions { margin-top: 30px; }
@media (max-width: 560px) {
  .s-hero { top: auto; right: auto; padding-right: calc(50% - 32px); }
  .s-hero p { white-space: normal; font-size: 17px; }
  .capture .form-note { white-space: normal; max-width: none; }
}

/* ---------- review mode: sticky notes ---------- */
.placing, .placing * { cursor: crosshair !important; }
.notes { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 94; }
.stick { position: absolute; width: 220px; padding: 10px 10px 8px; background: #ffe36a; color: #1b1a19; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,0.5); transform: rotate(-1.5deg); font-family: "Caveat", cursive; }
.stick textarea { width: 100%; min-height: 70px; border: 0; background: transparent; resize: vertical; font: 600 19px/1.15 "Caveat", cursive; color: #1b1a19; outline: none; }
.stick textarea::placeholder { color: rgba(27,26,25,0.45); }
.stick button { position: absolute; top: 2px; right: 6px; font-size: 18px; color: rgba(27,26,25,0.6); line-height: 1; }
.editbar b { color: var(--ink); }
.editbar a.btn { text-decoration: none; }

.pen { position: fixed; z-index: 93; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); opacity: 0.6; transition: opacity 0.3s, transform 0.4s var(--spring); }
.pen:hover { opacity: 1; transform: scale(1.08); color: var(--ink); }
.pen svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .pen { bottom: calc(92px + env(safe-area-inset-bottom)); right: 12px; } }
/* review mode: the handwritten notes normally ignore the mouse; let them be edited */
.editing .scrawl, .editing .scrawl p, .editing .scrawl > span, .editing .crow, .editing .egg span { pointer-events: auto !important; opacity: 1 !important; animation: none !important; }
.editing .scrawl .draw { stroke-dashoffset: 0 !important; }

/* ---------- about: outline graphics on the right ---------- */
.about-graphic { float: right; width: min(36%, 320px); margin: -10px 0 20px 40px; opacity: 0.9; }
.about-graphic img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(239,236,230,0.08)); }
.about-graphic.big { width: min(44%, 400px); margin-top: -40px; }
.goal-ch { padding-bottom: 14vh; }
.goal-ch h2 { max-width: 12em; }
@media (max-width: 900px) { .about-graphic { float: none; width: min(60%, 260px); margin: 0 auto 20px; } .about-graphic.big { width: min(70%, 320px); margin: 0 auto 20px; } }
