:root {
  color-scheme: dark;
  --jade: #071a17;
  --forest: #244e42;
  --jade-light: #628779;
  --gold: #d3be8d;
  --champagne: #e8dcbb;
  --ivory: #f5f1e6;
  --muted: #bac7ab;
  --line: rgb(232 220 187 / 11%);
  --line-strong: rgb(232 220 187 / 22%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--jade); scroll-padding-top: 2rem; scroll-behavior: smooth; }
body { margin: 0; color: var(--ivory); font: 1rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 920px; z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%, rgb(232 220 187 / 5%), transparent 70%),
    radial-gradient(ellipse 75% 65% at 80% 10%, rgb(98 135 121 / 13%), transparent 65%);
  pointer-events: none;
}
a { color: var(--champagne); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
button, a { -webkit-tap-highlight-color: rgb(211 190 141 / 20%); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: rgb(211 190 141 / 26%); }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
p + p { margin-top: 1em; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px 20px; background: var(--jade); z-index: 20; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 96px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ivory); font: 1.5rem var(--serif); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .88rem; letter-spacing: .02em; }
.site-nav a:hover { color: var(--ivory); }
.site-nav a[aria-current="page"] { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }

/* Shared type details */
.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.button {
  display: inline-block; margin-top: 38px; padding: 13px 30px;
  border: 1px solid rgb(211 190 141 / 42%); border-radius: 999px;
  color: var(--champagne); text-decoration: none; font-size: .94rem; letter-spacing: .02em;
  transition: background .25s, border-color .25s, color .25s;
}
.button:hover { background: rgb(211 190 141 / 10%); border-color: rgb(211 190 141 / 65%); color: var(--ivory); }
.pill {
  display: inline-block; padding: 9px 20px;
  border: 1px solid rgb(211 190 141 / 32%); border-radius: 999px;
  color: var(--champagne); font-size: .82rem; letter-spacing: .05em;
}

/* Homepage hero */
.hero-home { padding-block: 116px 32px; text-align: center; }
.hero-home .hero-copy { max-width: 640px; margin-inline: auto; }
h1 { font-size: clamp(2.9rem, 5.4vw, 4.7rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.hero-lede { max-width: 33ch; margin: 30px auto 0; color: var(--champagne); font-size: 1.18rem; line-height: 1.68; }
.hero-note { margin-top: 34px; }

/* A single scroll position controls both directions of the unfolding ritual. */
.duo-scroll { margin-bottom: 64px; overflow-anchor: none; }
.duo-stage {
  margin: 0; padding-block: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  top: max(0px, calc((100vh - var(--duo-stage-height, 100vh)) / 2));
  top: max(0px, calc((100svh - var(--duo-stage-height, 100svh)) / 2));
}
/* The waiting cover and decoded video share exactly the same geometry. */
.duo-frame { width: min(920px, 100%, calc((100vh - 164px) * 1.333333)); width: min(920px, 100%, calc((100svh - 164px) * 1.333333)); aspect-ratio: 4 / 3; margin-inline: auto; }
.duo-frame img, .duo-frame video { width: 100%; height: 100%; object-fit: contain; }
.duo-frame video, .duo-frame .duo-cover { display: none; }
.is-pending .duo-still { display: none; }
.is-pending .duo-cover { display: block; }
.duo-stage figcaption { max-width: 42em; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.duo-scroll-tools { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 44px; visibility: hidden; }
.duo-scroll.is-scroll-ready {
  height: calc(220vh + var(--duo-stage-height, 100vh));
  height: calc(220svh + var(--duo-stage-height, 100svh));
  margin-bottom: 0;
}
.is-scroll-ready .duo-stage { position: sticky; }
.is-scroll-ready .duo-frame video { display: block; }
.is-scroll-ready .duo-still { display: none; }
.is-scroll-ready .duo-scroll-tools { visibility: visible; }
.duo-scroll-hint { color: var(--muted); font-size: .8rem; }
.duo-skip { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }

/* Ritual section */
.ritual-section { padding-block: 110px; border-top: 1px solid var(--line); }
.ritual-section h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.15; letter-spacing: -.022em; }
.ritual-statement { margin-top: 44px; font: italic 400 clamp(1.55rem, 2.5vw, 2.1rem)/1.45 var(--serif); color: var(--champagne); letter-spacing: -.005em; }
.ritual-body { margin-top: 24px; max-width: 58ch; color: var(--muted); font-size: 1.01rem; }
.ritual-section .pair { margin-top: 64px; }

/* Reading sections */
.reading-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px 80px; padding-block: 104px; border-top: 1px solid var(--line); }
.reading-section h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.15; letter-spacing: -.022em; max-width: 12ch; text-wrap: balance; }
.prose { max-width: 62ch; color: var(--muted); font-size: 1.01rem; }
.prose h3 { color: var(--ivory); font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; margin: 40px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--ivory); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .65em; }
.lead { color: var(--champagne); font-size: 1.26rem; line-height: 1.62; letter-spacing: -.008em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 46px; }
.pair-item { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.pair-item h3 { margin: 0 0 12px; font-size: 1.22rem; }
.pair-item p { font-size: .95rem; }
.pair-item ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.pair-item ol li { counter-increment: step; position: relative; padding-left: 2.5em; font-size: .95rem; }
.pair-item ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 400 1.02rem/1.6 var(--serif); color: var(--gold); }

/* Subpage hero */
.page-hero { max-width: 660px; margin-inline: auto; padding-block: 108px 96px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero h1 { font-size: clamp(2.55rem, 4.4vw, 3.9rem); }
.page-hero .hero-lede { margin-top: 26px; }

/* Safety / note block */
.note-block { border: 1px solid rgb(211 190 141 / 26%); border-radius: 18px; background: rgb(211 190 141 / 5%); padding: 30px 34px; }
.note-block p + p { margin-top: .9em; }

/* FAQ */
.faq-item + .faq-item { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 12px; font-size: 1.3rem; letter-spacing: -.01em; }
.faq-item p { font-size: .97rem; }

/* Closing contact block */
.closing-section { padding-block: 110px; border-top: 1px solid var(--line); text-align: center; }
.closing-section h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.15; letter-spacing: -.022em; }
.closing-section .prose { margin: 30px auto 0; }
.closing-email { margin-bottom: 36px; }
.closing-email a {
  font: 400 clamp(1.35rem, 2.8vw, 1.95rem)/1.3 var(--serif); letter-spacing: -.01em;
  text-decoration: none; border-bottom: 1px solid rgb(211 190 141 / 45%); padding-bottom: 5px;
  transition: color .25s, border-color .25s;
}
.closing-email a:hover { border-bottom-color: var(--ivory); }

/* Privacy policy */
article#policy { counter-reset: policy; }
.policy-header { padding-top: 8px; text-align: center; max-width: 64ch; margin-inline: auto; }
.policy-header h2 { font-size: clamp(1.95rem, 3vw, 2.55rem); line-height: 1.16; letter-spacing: -.02em; }
.policy-header .updated { margin-top: 16px; color: var(--muted); font-size: .88rem; }
.policy-intro { margin: 28px auto 0; }
.policy-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-block: 36px 72px; max-width: 78ch; margin-inline: auto; }
.policy-nav a { padding-block: 4px; font-size: .87rem; }
.policy-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 80px; padding-block: 48px; border-top: 1px solid var(--line); counter-increment: policy; }
.policy-section h3 { display: flex; align-items: baseline; gap: 18px; font-size: 1.42rem; line-height: 1.25; letter-spacing: -.01em; }
.policy-section h3::before { content: counter(policy, decimal-leading-zero); flex: none; color: var(--gold); font-size: .62em; letter-spacing: .1em; }
.policy-section p { color: var(--muted); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; border-top: 1px solid var(--line); padding-block: 42px 54px; margin-top: 72px; color: var(--muted); font-size: .8rem; }
.footer-brand { font: 1.32rem var(--serif); color: var(--ivory); }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ivory); }

.icp-filing { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 12px; font-size: .8rem; line-height: 1.6; text-align: center; }
.icp-filing a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero-home { padding-block: 88px 32px; }
  .hero-video { margin-top: 60px; }
  .reading-section, .policy-section { gap: 24px 52px; }
  .pair { gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 48px); }
  body::before { height: 640px; }
  .site-header { min-height: 84px; gap: 16px; }
  .brand { gap: 9px; font-size: 1.38rem; }
  .brand img { width: 26px; height: 26px; border-radius: 6px; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: .85rem; }
  .hero-home { padding-block: 56px 32px; }
  h1 { font-size: clamp(2.6rem, 9.2vw, 3.7rem); }
  .hero-lede { margin-top: 24px; font-size: 1.08rem; }
  .hero-note { margin-top: 28px; }
  .reading-section { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 72px; }
  .reading-section h2, .policy-section h3 { max-width: none; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 38px; }
  .page-hero { padding-block: 64px 72px; }
  .note-block { padding: 24px 22px; }
  .faq-item + .faq-item { margin-top: 34px; padding-top: 34px; }
  .closing-section { padding-block: 76px; }
  .policy-nav { margin-block: 30px 48px; gap: 8px 22px; }
  .policy-section { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 38px; }
  .ritual-section { padding-block: 72px; }
  .ritual-statement { margin-top: 34px; }
  .ritual-section .pair { margin-top: 44px; }
  .site-footer { margin-top: 40px; padding-block: 34px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-scroll.is-pending .duo-still { display: block; }
  .duo-scroll.is-pending .duo-cover { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; }
  html, body { color: #000; background: #fff; font-size: 11pt; }
  body::before, .site-nav, .skip-link, .duo-scroll, .eyebrow { display: none !important; }
  .wrap { width: 100%; }
  .hero-home, .reading-section, .policy-section, .page-hero, .closing-section { display: block; min-height: 0; padding-block: 20px; text-align: left; }
  .hero-copy, .prose, .hero-lede { max-width: none; }
  h1 { font-size: 32pt !important; }
  h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  p, a, h1, h2, h3, strong, .footer-brand, .pill { color: #000 !important; }
  .policy-section h3::before { color: #555; }
  .note-block { border-color: #999; background: none; }
  .site-footer { margin-top: 20px; }
}
