/* Resonant Light Studio — base: tokens, type, nav, buttons, forms, footer */
:root {
  --ink: #F2F0EB;
  --dim: rgba(242, 240, 235, .78);
  --mute: rgba(242, 240, 235, .56);
  --faint: rgba(242, 240, 235, .14);
  --accent: #7EB0FF;
  --serif: 'Bespoke Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 3.9vw, 56px);
  --navh: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 860px) { :root { --navh: 68px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: #000; color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* no drag-out or long-press saving */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main > section, main > .band { max-width: 1600px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.k { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 6.4vw, 96px); line-height: .98; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.45vw, 66px); line-height: 1.03; letter-spacing: -.02em; }
.h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.h1 i, .h2 i, .h3 i { font-style: italic; color: var(--accent); }
.lead { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.8vw, 40px); line-height: 1.22; letter-spacing: -.01em; }
.p { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.65; color: var(--dim); }
.p + .p { margin-top: 1em; }
.small { font-size: 14px; line-height: 1.5; color: var(--mute); }
@media (max-width: 520px) { .wide-only { display: none; } }

/* ---------- buttons ----------
   .btn.solid  compact cream pill with a soft accent glow
   .btn.line   quiet text link with a drawn underline
   Both roll their label on hover. Icons are Phosphor (regular), inlined by build.py. */
.row { display: flex; align-items: center; gap: 14px 32px; flex-wrap: wrap; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; font-size: 15px; letter-spacing: .005em; line-height: 1; white-space: nowrap; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn .roll { display: inline-grid; overflow: hidden; padding-block: .2em; }
/* labels inherit from the button only, so page rules like ".x span" can never recolor or resize them */
.btn .roll, .btn .roll > span { color: inherit; font-size: inherit; line-height: inherit; }
.btn .roll > span { display: block; grid-area: 1 / 1; transition: transform .6s var(--ease); }
.btn .roll > span + span { transform: translateY(125%); }
.btn:hover .roll > span:first-child { transform: translateY(-125%); }
.btn:hover .roll > span + span { transform: none; }
.btn .ic { flex: none; width: 17px; height: 17px; transition: transform .6s var(--ease); }
.btn.solid {
  height: 48px; padding: 0 20px 0 24px; border-radius: 999px; background: var(--ink); color: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 32px -12px rgba(126, 176, 255, .55);
  transition: background-color .4s var(--ease), box-shadow .6s var(--ease), transform .5s var(--ease);
}
.btn.solid:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 46px -12px rgba(126, 176, 255, .9); }
.btn.solid:hover .ic { transform: translateX(3px); }
.btn.solid:active { transform: scale(.97); }
.btn.line { color: var(--ink); }
.btn.line .roll { background: linear-gradient(rgba(242, 240, 235, .38), rgba(242, 240, 235, .38)) 0 100% / 100% 1px no-repeat; }
.btn.line:hover .roll { background-image: linear-gradient(var(--ink), var(--ink)); animation: underline-swap .9s var(--ease); }
.btn.line .ic { color: var(--mute); }
.btn.line:hover .ic { transform: translate(2px, -2px); color: var(--ink); }
@keyframes underline-swap {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
.tlink { display: inline-flex; align-items: center; gap: 6px; }
.tlink .ic { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.tlink:hover .ic { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .btn .roll > span, .btn .ic { transition: none; } .btn.line:hover .roll { animation: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--navh); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s, transform .6s var(--ease), backdrop-filter .5s, -webkit-backdrop-filter .5s;
}
.nav.solid { background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--faint); }
.nav.hide { transform: translateY(-105%); }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.01em; }
.logo img { width: 26px; height: 26px; }
.links { display: flex; gap: clamp(22px, 2.6vw, 38px); font-size: 15.5px; }
.links a { color: rgba(242, 240, 235, .72); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.links a:hover { color: #fff; }
.links a[aria-current="page"] { color: #fff; border-color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .45s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; display: none; flex-direction: column; padding: calc(var(--navh) + 28px) var(--pad) 32px; background: #000; }
.menu.open { display: flex; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 11vw, 64px); line-height: 1.12; letter-spacing: -.02em; }
.menu nav a[aria-current="page"] { color: var(--accent); }
.menu-foot { margin-top: auto; font-size: 14px; color: var(--mute); }
.menu-open .nav { background: #000; border-color: transparent; transform: none; }
@media (max-width: 860px) { .links { display: none; } .burger { display: flex; } }

.curtain { position: fixed; inset: 0; z-index: 150; background: #000; opacity: 0; visibility: hidden; pointer-events: none; }
/* everything main.js animates in stays hidden until it has set its starting states, so nothing is painted, snapped away
   and faded back in (the head script reveals after 3.5 s regardless) */
.js:not(.ready) [data-intro], .js:not(.ready) [data-reveal], .js:not(.ready) [data-split], .js:not(.ready) [data-iris], .js:not(.ready) .nav { visibility: hidden; }

/* ---------- forms ---------- */
.f { display: block; border-bottom: 1.5px solid rgba(242, 240, 235, .22); padding: 16px 0 10px; transition: border-color .3s; }
.f:focus-within { border-color: var(--accent); }
.f > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.f input, .f textarea { display: block; width: 100%; padding: 2px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 18px/1.5 var(--sans); }
.f textarea { min-height: 116px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: rgba(242, 240, 235, .36); }
.f .msg { display: none; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: #FF9C8A; }
.f.err { border-color: #FF9C8A; }
.f.err .msg { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.chips input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(242, 240, 235, .22);
  font-size: 14.5px; font-weight: 500; color: var(--dim); cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: rgba(242, 240, 235, .5); color: var(--ink); }
.chips input:checked + .chip, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #000; font-weight: 700; }
.chips input:focus-visible + .chip { outline: 2px solid var(--accent); outline-offset: 3px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.send { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.form-note { margin-top: 20px; padding: 18px 20px; border-radius: 10px; background: rgba(126, 176, 255, .1); border: 1px solid rgba(126, 176, 255, .3); font-size: 15px; line-height: 1.55; color: var(--dim); }
.hp { display: none !important; } /* spam honeypot: invisible to people and to the keyboard */
.form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-note b { color: var(--ink); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { max-width: 1600px; margin: 0 auto; padding: clamp(70px, 7vw, 90px) var(--pad) 36px; border-top: 1px solid var(--faint); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.foot .big { font-family: var(--serif); font-weight: 700; font-size: clamp(56px, 7.2vw, 104px); line-height: .9; letter-spacing: -.03em; }
.foot .big i { font-style: italic; color: var(--accent); }
.foot .big { display: inline-flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); }
.foot .big .seal { width: clamp(60px, 6.4vw, 92px); height: auto; margin-bottom: .08em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(30px, 4.4vw, 64px); font-size: 15px; }
.foot-cols b { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.foot-cols a, .foot-cols span { display: block; line-height: 1.9; color: var(--dim); }
.foot-cols a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(50px, 5vw, 70px); padding-top: 22px; border-top: 1px solid var(--faint); font-size: 13px; color: var(--mute); }
.foot-bot .legal { max-width: 720px; line-height: 1.6; }
.foot-bot .credit { display: inline-block; margin-top: 6px; color: inherit; text-decoration: none; transition: color .2s; }
.foot-bot .credit:hover { color: var(--dim); }
.foot-bot .legal a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.foot-bot .legal a:hover { color: #fff; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
