@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 700; font-display: block; src: url('/assets/fonts/bodoni-moda-roman.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 400; font-display: block; src: url('/assets/fonts/satoshi-400.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: block; src: url('/assets/fonts/satoshi-500.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: block; src: url('/assets/fonts/satoshi-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: block; src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2'); }

:root {
  --paper: #FFFFFF;
  --pane: #F7F5F1;
  --ink: #1D1B18;
  --ink-2: #55514A;
  --ink-3: #746E65;
  --ember: #C2531F;
  --ember-soft: rgba(194, 83, 31, .12);
  --copper: #7E6244;
  --copper-2: #9A7B5A;
  --line: rgba(20, 22, 26, .08);
  --line-2: rgba(20, 22, 26, .16);
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 150ms;
  --med: 220ms;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  animation: fade var(--med) var(--ease) both;
}
a { color: var(--copper); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--copper-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--ember-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -200vw; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .4rem .8rem; z-index: 10; }
.col { width: min(100% - 2rem, 1040px); margin-inline: auto; }
.narrow { max-width: 26rem; text-align: center; }

.mind, .veil { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.veil { background: radial-gradient(58% 46% at 50% 44%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, 0) 72%); }
.top, main { position: relative; z-index: 1; }

.top {
  width: min(100% - 2rem, 1040px);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em; color: var(--ink); display: inline-flex; align-items: center; gap: .55rem; }
.brand:hover { color: var(--ink); text-decoration: none; }
.mark { width: 22px; height: 22px; display: block; }
.logo { height: 28px; width: auto; max-width: 180px; display: block; }
.top nav a {
  display: inline-block;
  font-weight: 500;
  font-size: .9rem;
  line-height: 1;
  padding: .5rem .85rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.top nav a:hover { text-decoration: none; border-color: var(--ember); color: var(--ember); }
main { flex: 1; display: flex; flex-direction: column; }

.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
.narrow .eyebrow, .narrow .kicker, .hero-col .eyebrow { justify-content: center; }
.dot { display: inline-block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(194, 83, 31, .5); animation: pulse 3.2s ease-in-out infinite; }
.col > h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  margin: 0;
  max-width: 14ch;
  color: var(--ink);
}
.narrow > h1 { margin-inline: auto; }
.col > h1 em { position: relative; font-style: normal; color: var(--copper); white-space: nowrap; }
.col > h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: 2px; background: rgba(126, 98, 68, .4); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 34rem; margin: 1.6rem auto 0; }
.lede b, .body b { font-weight: 500; color: var(--ink); }
.body { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 34rem; margin: 0 0 1.1rem; }
.narrow .body { margin-inline: auto; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: inherit; gap: .6rem; margin: 2rem 0 0; }
.narrow .actions, .hero-col .actions { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 16rem;
  padding: .95rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: 500 .82rem/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--ember); border-color: var(--ember); color: var(--paper); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: transparent; border-color: var(--ember); color: var(--ember); }

.hero { flex: 1; min-height: calc(100svh - 4.6rem); display: flex; align-items: center; padding: clamp(2rem, 6vw, 4rem) 0; }
.hero-col { text-align: center; max-width: 42rem; }
.hero .r { animation: rise .9s var(--ease) both; }
.hero .eyebrow.r { animation-delay: .1s; }
.hero h1.r { animation-delay: .25s; }
.hero .lede.r { animation-delay: .45s; }
.hero .actions.r { animation-delay: .6s; }
.gate { flex: 1; display: flex; align-items: center; padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem); }
.gate [data-clerk] { margin-top: 1.8rem; }

[data-clerk] { min-height: 24rem; width: 100%; text-align: left; }
[data-clerk] .cl-cardBox { width: 100%; }
[data-clerk] .cl-footer, [data-clerk] .cl-footer * { background: none !important; }
[data-clerk] .cl-footer { font-size: .8rem; opacity: .75; }

.room { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.room-col { max-width: 42rem; }
.who { font-size: .9rem; color: var(--ink-3); margin: 0 0 2.4rem; }
.who, .addr { overflow-wrap: anywhere; }
.who b { font-weight: 500; color: var(--ink-2); }
.room-col > h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .6rem; max-width: 18ch; }
.addr { font-family: var(--mono); font-size: .86em; color: var(--ink); background: var(--pane); border: 1px solid var(--line); border-radius: 2px; padding: .1em .45em; }
.connection:not(:empty) { margin-top: 1.5rem; }
.path { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 30rem; border-top: 1px solid var(--line); }
.path > li { position: relative; padding: .9rem 0 .9rem 1.9rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.path > li::before, .steps li::before { content: ''; position: absolute; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); }
.path > li::before { left: .25rem; top: 1.45rem; width: 9px; height: 9px; }
.path .done { color: var(--ink-2); }
.path .now, .path .failed { color: var(--ink); font-weight: 500; }
.path .done::before { background: var(--ink); border-color: var(--ink); }
.path .now::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 0 rgba(194, 83, 31, .5); animation: pulse 2.6s ease-in-out infinite; }
.path .failed::before { background: var(--ember); border-color: var(--ember); }
.steps { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .95rem; font-weight: 400; }
.steps li { position: relative; padding: .3rem 0 .3rem 1.4rem; color: var(--ink-3); }
.steps li::before { left: .05rem; top: .8rem; width: 6px; height: 6px; }

.note { flex: 1; display: flex; align-items: center; padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 7rem); }
.note-col > h1 { font-size: clamp(2.1rem, 4.5vw, 2.75rem); margin-bottom: 1rem; max-width: none; }
.note-col > .hint { margin-top: 1rem; font-size: .95rem; color: var(--ink-3); }

.skeleton { display: grid; gap: .8rem; padding: .2rem 0; }
.skeleton i {
  display: block;
  height: 2.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pane) 0%, #EEEAE4 50%, var(--pane) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
.skeleton .d { height: 1px; margin: .3rem 0; }
.skeleton .l { height: .7rem; width: 28%; margin-bottom: -.3rem; }
.skeleton .p { background: var(--ink); opacity: .12; animation: none; }
.rise { animation: rise .36s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 83, 31, .45); } 50% { box-shadow: 0 0 0 5px rgba(194, 83, 31, 0); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .col > h1 { max-width: none; }
  .btn { width: 100%; min-width: 0; }
  .hero { min-height: calc(100svh - 4.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
