@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/InstrumentSerif.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(/assets/fonts/InterTight.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Tight"; font-weight: 600; src: url(/assets/fonts/InterTight-600.woff2) format("woff2"); font-display: swap; }
:root { --paper: #f1ead9; --ink: #16130e; --serif: "Instrument Serif", Georgia, serif; --text: "Inter Tight", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #0b0a08; color: var(--paper); font-family: var(--text); -webkit-font-smoothing: antialiased; }
header { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: flex-end; padding: 28px 4.5vw; }
header a { color: var(--paper); font-size: 14px; text-decoration: none; border-bottom: 1px solid #f1ead966; padding-bottom: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#progress { position: fixed; left: 0; bottom: 0; height: 2px; width: 0; background: var(--paper); opacity: .7; z-index: 21; }
#loading { position: fixed; left: 50%; bottom: 30px; width: 120px; height: 1px; margin-left: -60px; background: rgba(241,234,217,.25); z-index: 21; opacity: 0; transition: opacity .4s; }
#loading.on { opacity: 1; }
#loading::before { content: "Loading"; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 13px; font-style: italic; color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
#loading i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
#hint i { display: block; width: 7px; height: 7px; margin: 7px auto 0; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 4px; } }
#hint { position: fixed; left: 50%; bottom: 22px; text-align: center; transform: translateX(-50%); z-index: 21; opacity: .75; transition: opacity .5s; font-size: 14px; font-style: italic; }
.copy { position: fixed; top: 22vh; width: min(500px, 40vw); pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity .9s, transform .9s; z-index: 10; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 30px rgba(8,8,6,.55); }
.copy.l { left: 4.5vw; } .copy.r { right: 4.5vw; } .copy.b { top: auto; bottom: 11vh; } .copy.sky { top: 9vh; }
.copy.on { opacity: 1; transform: none; }
.copy p.strong { font-weight: 600; }
.copy h1, .copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 70px); line-height: 1.02; letter-spacing: -.005em; margin: 0 0 20px; text-wrap: balance; }
.copy p { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; margin: 0; max-width: 430px; }
.copy.hero { top: 27vh; }
.copy.hero h1 { font-size: clamp(28px, 2.6vw, 42px); margin-bottom: 14px; }
.copy.ink { color: var(--ink); text-shadow: 0 1px 1px rgba(241,234,217,.5), 0 2px 26px rgba(241,234,217,.7); }
.copy.sky p { font-size: clamp(17px, 1.35vw, 21px); }
.copy.at70 { left: 70%; right: auto; transform: translate(-50%, 10px); width: min(560px, 44vw); text-align: center; }
.copy.at70.on { transform: translate(-50%, 0); }
.copy.solo { width: min(300px, 22vw); top: 50%; transform: translateY(-46%); }
.copy.solo.on { transform: translateY(-50%); }
.copy.solo p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; }
.copy.scrim::before { content: ""; position: absolute; inset: -16% -22% -18% -26%; z-index: -1; background: radial-gradient(closest-side, rgba(8,7,5,.7), rgba(8,7,5,.45) 55%, transparent); filter: blur(6px); }
.cf { width: min(420px, 31vw); top: 50%; transform: translateY(-46%); }
.cf.on { transform: translateY(-50%); }
.cf.narrow { width: min(360px, 24vw); }
.cf h2 { margin-bottom: 26px; }
.cf:not(.on) .cf-in { pointer-events: none; visibility: hidden; transition: visibility 0s 1s; }
.cf-in { display: grid; gap: 12px; perspective: 1400px; pointer-events: auto; }
.cf-p, .cf-cta { opacity: 0; transform: translateY(18px) rotateX(10deg); filter: blur(8px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1), filter .9s, border-color .4s, box-shadow .4s; transition-delay: calc(.25s + var(--i) * .14s); }
.cf.on .cf-p, .cf.on .cf-cta { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); filter: none; }
.cf-p { display: block; padding: 12px 16px 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,236,200,.10), rgba(20,16,10,.30)); border: 1px solid rgba(255,220,160,.22); box-shadow: inset 0 1px 0 rgba(255,240,210,.18), 0 18px 40px rgba(0,0,0,.35); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); cursor: text; }
.cf-p:focus-within { border-color: rgba(255,214,140,.6); box-shadow: inset 0 1px 0 rgba(255,240,210,.25), 0 0 0 4px rgba(255,190,90,.08), 0 18px 40px rgba(0,0,0,.4); }
.cf-p span { display: block; font-size: 12px; letter-spacing: .06em; opacity: .7; margin-bottom: 4px; }
.cf-p input, .cf-p textarea { width: 100%; background: none; border: 0; outline: 0; color: var(--paper); font: inherit; font-size: 17px; padding: 0; resize: none; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-cta { justify-self: start; margin-top: 6px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255,220,160,.45); background: rgba(255,214,140,.12); color: var(--paper); font: inherit; font-size: 16px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cf-cta:hover { background: rgba(255,214,140,.22); }
.cf-cta:disabled { cursor: default; }
@media (max-width: 760px) {
  .copy, .copy.l, .copy.r, .copy.sky { left: 22px; right: 22px; width: auto; top: auto; bottom: 12vh; }
  .copy h1, .copy h2 { font-size: 34px; }
  .copy.at70, .copy.at70.on, .copy.solo, .copy.solo.on { left: 22px; right: 22px; transform: none; width: auto; text-align: left; top: auto; }
  .cf, .cf.on { top: auto; bottom: 6vh; transform: none; width: auto; }
  .cf h2 { margin-bottom: 14px; }
}
