/* ==========================================================================
   Stillshrine — styles
   Washi paper, sumi ink, a single vermilion accent.
   ========================================================================== */
:root {
  --ink: #15191d;
  --ink-2: #4a5157;
  --ink-3: #848a8f;
  --washi: #f3f0e8;
  --washi-2: #e9e4d8;
  --mist: #e9ebed;
  --vermilion: #c2412b;
  --gold: #b8954f;
  --water: #3c5b8f;
  --line: rgba(21, 25, 29, .14);
  --line-strong: rgba(21, 25, 29, .3);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kanji: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', 'Songti SC', serif;
  --gutter: clamp(16px, 5vw, 88px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--vermilion); color: var(--washi); }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--washi); padding: 10px 16px; transition: top .3s; }
.skip:focus { top: 16px; }
.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.i { width: 1em; height: 1em; flex: none; }
.kanji { font-family: var(--kanji); font-style: normal; font-weight: 400; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6.6vw, 112px); line-height: .98; letter-spacing: -.015em; }
.display em, .hero-title em { font-weight: 300; color: var(--vermilion); }
.ln { display: block; }
.fine { font-size: 14px; color: var(--ink-3); }

/* Vertical section label — reads top to bottom along the left edge */
.v-label { position: absolute; left: calc(var(--gutter) * .32); top: clamp(96px, 12vw, 180px); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.v-label .kanji { font-size: 22px; letter-spacing: 0; color: var(--vermilion); }

/* ---------- Canvas / fallback ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-webgl #gl { display: none; }
.no-webgl body { background: radial-gradient(60% 50% at 80% 10%, rgba(143, 169, 207, .55), transparent 70%), linear-gradient(#eef0f2 0%, #e4e8ec 46%, #a9b8cc 47%, #6d86ad 70%, #3c5b8f 100%) fixed; }
main { position: relative; z-index: 1; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--washi); display: grid; place-items: center; }
.loader-mark { width: 56px; height: 56px; fill: var(--vermilion); animation: breathe 2.6s var(--ease) infinite; }
.loader-meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 46px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 54px); line-height: 1; }
.loader-count { font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 1px; background: var(--line); }
.loader-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@keyframes breathe { 50% { opacity: .4; transform: translateY(-4px); } }
html:not(.js) .loader { display: none; }

/* ---------- Cursor (ring + click ripples) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1px solid var(--ink); transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .3s, border-color .3s, opacity .3s; }
.has-cursor .cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--vermilion); }
.has-cursor .cursor.is-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--ink); border-color: var(--ink); }
.cursor.is-light { border-color: var(--washi); }
.cursor-label { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--washi); opacity: 0; transition: opacity .25s; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.ripple { position: fixed; z-index: 149; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1px solid var(--vermilion); animation: ripple 1.1s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(9); opacity: 0; } }

/* ---------- Buttons: ink spreads from the pointer ---------- */
.btn { --x: 50%; --y: 50%; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .7em; padding: 1em 1.6em; border-radius: 2px; font-size: 14px; font-weight: 500; letter-spacing: .06em; line-height: 1; white-space: nowrap; transition: color .5s var(--ease), border-color .5s; }
.btn::before { content: ''; position: absolute; left: var(--x); top: var(--y); width: 260%; aspect-ratio: 1; border-radius: 50%; z-index: -1; transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--washi); }
.btn-ink::before { background: var(--vermilion); }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(243, 240, 232, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--washi); border-color: var(--ink); }
.btn-lg { font-size: 15px; padding: 1.15em 1.8em; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 20px var(--gutter); transition: transform .8s var(--ease), color .4s, background .4s; }
.nav::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .4s; }
.nav.is-scrolled::after { opacity: .12; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-light { color: var(--washi); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .02em; line-height: 1; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; fill: var(--vermilion); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--vermilion); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.is-light .nav-cta { background: var(--washi); color: var(--ink); }
.menu-toggle { display: none; width: 46px; height: 46px; position: relative; border: 1px solid currentColor; border-radius: 50%; opacity: .9; }
.menu-toggle i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-toggle i:nth-of-type(1) { top: 19px; }
.menu-toggle i:nth-of-type(2) { top: 25px; }
.menu-open .menu-toggle i:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle i:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--washi); display: flex; flex-direction: column; justify-content: flex-end; padding: 100px var(--gutter) 32px; clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden; transition: clip-path .9s var(--ease), visibility 0s .9s; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .9s var(--ease); }
.menu-open .nav { color: var(--ink); transform: none; }
.menu nav { display: grid; }
.menu nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 76px); line-height: 1.1; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.menu nav .kanji { font-size: .45em; color: var(--vermilion); width: 1.2em; }
.menu-foot { margin-top: 28px; color: var(--ink-2); font-size: 14px; }

/* ---------- Ink-reveal lines ---------- */
.has-gsap [data-ink] { clip-path: inset(-10% 100% -20% 0); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(236, 238, 240, .66) 0%, rgba(236, 238, 240, .25) 46%, transparent 66%); }
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; width: 100%; }
.hero-inner .label { margin-bottom: 28px; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 10vw, 184px); line-height: .9; letter-spacing: -.02em; margin-left: -.04em; }
.hero-title .ln:last-child { padding-left: .9em; }
.hero-lede { max-width: 31rem; margin-top: clamp(28px, 3vw, 42px); font-size: clamp(17px, 1.25vw, 20px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 84px; width: 100%; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 48px); flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.hero-facts li { padding-left: 14px; border-left: 1px solid var(--vermilion); }
.hero-facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); line-height: 1.1; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); writing-mode: vertical-rl; }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--vermilion); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.motion-off .scroll-cue i::after { animation-play-state: paused; }

/* ---------- Washi sections ---------- */
.washi { position: relative; background: var(--washi); }
.washi::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.shore { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; fill: var(--washi); }
.section { position: relative; padding-block: clamp(100px, 13vw, 200px); }

/* Intro */
.statement { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.1vw, 68px); line-height: 1.12; letter-spacing: -.01em; max-width: 22ch; }
.statement .wd { opacity: .14; transition: opacity .3s; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 6vw; margin-top: clamp(56px, 7vw, 100px); margin-left: auto; max-width: 900px; }
.intro-cols p { color: var(--ink-2); }
.intro-cols b { color: var(--ink); font-weight: 600; }

/* Restoration: the tide */
.tide { position: relative; height: 280vh; }
.tide-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.tide-pin .v-label { top: 120px; }
.tide-grid { position: relative; width: 100%; display: grid; grid-template-columns: .8fr 1.4fr; gap: 40px 5vw; align-items: center; }
.tide-text { margin: 26px 0 34px; color: var(--ink-2); max-width: 24rem; }
.tide-meter { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.tide-meter i { position: relative; flex: 1; max-width: 220px; height: 1px; background: var(--line-strong); }
.tide-meter b { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--tide) * 100%); background: var(--vermilion); }
.caption { margin-top: 18px; font-size: 13px; color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 17px; }
.window { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 50px 120px -50px rgba(21, 25, 29, .45), 0 0 0 1px var(--line); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 12px; color: #8b9298; background: #fafafa; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dedede; }
.window-bar span { margin-left: 12px; }
.window-body { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; }
.then, .now { position: absolute; inset: 0; }
.then { background: #000033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='5' cy='5' r='1' fill='%23ffffff55'/%3E%3Ccircle cx='25' cy='22' r='.8' fill='%23ffffff44'/%3E%3C/svg%3E"); color: #fff; font-family: 'Times New Roman', serif; text-align: center; padding: 3cqi 4cqi; display: flex; flex-direction: column; align-items: center; gap: 2.4cqi; }
.then-title { font-family: Impact, 'Arial Black', sans-serif; font-size: clamp(16px, 3.6cqi, 42px); color: #ffcc00; text-shadow: 3px 3px 0 #ff0066; letter-spacing: .02em; }
.then-blink { font-family: Arial, sans-serif; font-weight: 700; font-size: clamp(10px, 1.5cqi, 16px); color: #00ff66; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.then-table { border-collapse: separate; border-spacing: 4px; border: 2px outset #c0c0c0; background: #c0c0c0; }
.then-table td { border: 2px outset #e0e0e0; padding: .3em .7em; color: #000080; font-family: Arial, sans-serif; font-size: clamp(9px, 1.2cqi, 13px); font-weight: 700; }
.then-body { font-size: clamp(12px, 1.8cqi, 19px); max-width: 60ch; color: #ddd; }
.then-gif { font-family: Arial, sans-serif; font-size: clamp(10px, 1.2cqi, 13px); border: 1px dashed #888; padding: 1.4cqi 3cqi; color: #aaa; }
.then-foot { margin-top: auto; font-size: clamp(9px, 1.1cqi, 12px); color: #999; }
.now { background: #f2ede4; color: #23201c; padding: 3cqi 5cqi; display: flex; flex-direction: column; clip-path: inset(calc(100% - var(--tide) * 100%) 0 0 0); }
.now-nav { display: flex; justify-content: space-between; align-items: center; gap: 2cqi; font-size: clamp(10px, 1.25cqi, 14px); }
.now-nav b { font-family: var(--serif); font-weight: 500; font-size: clamp(15px, 2.2cqi, 26px); }
.now-call { background: #23201c; color: #f2ede4; padding: .55em 1.3em; }
.now-hero { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4cqi; }
.now-eyebrow { font-size: clamp(8px, 1cqi, 12px); letter-spacing: .22em; text-transform: uppercase; color: #8a6d45; margin-bottom: 1.8cqi; }
.now-hero h4 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 5.6cqi, 76px); line-height: .98; margin-bottom: 2.6cqi; }
.now-hero h4 em { color: #8a3a2a; }
.now-btns { display: flex; gap: 1cqi; flex-wrap: wrap; margin-bottom: 2cqi; }
.now-btns span { background: #23201c; color: #f2ede4; padding: .8em 1.4em; font-size: clamp(10px, 1.2cqi, 14px); }
.now-btns .ghost { background: transparent; color: #23201c; box-shadow: inset 0 0 0 1px rgba(35, 32, 28, .3); }
.now-small { font-size: clamp(10px, 1.15cqi, 13px); color: #6c645a; }
.now-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqi; height: 78%; }
.now-swatches i { border-radius: 2px; }
.now-swatches i:nth-child(1) { background: repeating-linear-gradient(45deg, #39465a 0 6px, #2f3a4c 6px 12px); }
.now-swatches i:nth-child(2) { background: radial-gradient(circle at 30% 30%, #c8b18d, #a48a63); }
.now-swatches i:nth-child(3) { background: repeating-linear-gradient(90deg, #8a3a2a 0 3px, #7a3123 3px 9px); }
.now-swatches i:nth-child(4) { background: linear-gradient(160deg, #e7dfd1, #cfc3ae); }
.tide-line { position: absolute; left: -5%; right: -5%; height: 28px; bottom: calc(var(--tide) * 100% - 14px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath d='M0 14 Q15 4 30 14 T60 14 T90 14 T120 14' fill='none' stroke='%23c2412b' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x center / 120px 28px; animation: wave 3s linear infinite; opacity: calc(1 - var(--tide) * var(--tide) * var(--tide)); }
@keyframes wave { to { background-position: 120px center; } }

/* The offering */
.offering-title { margin-bottom: clamp(56px, 7vw, 110px); }
.offering-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 56px 6vw; align-items: start; }
.ema { position: sticky; top: 110px; filter: drop-shadow(0 40px 60px rgba(21, 25, 29, .18)); }
.ema-inner { position: relative; padding: 72px clamp(28px, 3vw, 44px) 44px; background: linear-gradient(170deg, #f8f2e2, #eadfc4); color: var(--ink); clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); text-align: center; }
.ema-inner::before { content: ''; position: absolute; inset: 14px; clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); border: 1px solid rgba(184, 149, 79, .6); pointer-events: none; }
.ema-inner::after { content: ''; position: absolute; left: 50%; top: 40px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--washi); box-shadow: inset 0 0 0 2px var(--gold); }
.ema .label { margin-top: 14px; }
.ema-price { font-family: var(--serif); font-weight: 300; font-size: clamp(96px, 10vw, 168px); line-height: .9; margin: 18px 0 16px; letter-spacing: -.03em; }
.ema-price span { font-size: .4em; vertical-align: .9em; margin-right: .05em; }
.ema-terms { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--ink-2); }
.seal { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-top: 28px; background: var(--vermilion); color: var(--washi); font-family: var(--kanji); font-size: 30px; border-radius: 4px; transform: rotate(-4deg); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .15); }
.ledger-head { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--vermilion); padding-bottom: 14px; }
.ledger-head:not(:first-child) { margin-top: 64px; }
.ledger-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger-list li > span:first-child, .ledger-list label > span { display: grid; gap: 2px; font-size: clamp(17px, 1.3vw, 20px); }
.ledger-list label { cursor: pointer; }
.ledger-list small { font-size: 13px; color: var(--ink-3); max-width: 34rem; }
.ledger-list li > i { align-self: center; height: 1px; min-width: 24px; background: radial-gradient(circle, var(--ink-3) 1px, transparent 1.4px) repeat-x left center / 7px 3px; height: 3px; transform-origin: left; }
.ledger-list li > b { font-family: var(--serif); font-weight: 500; font-size: 21px; white-space: nowrap; }
.ledger-list li > b:not(:only-of-type) { color: var(--ink); }
.row-copy.is-off { opacity: .4; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; line-height: 1; transition: background .3s, color .3s; }
.stepper button:hover { background: var(--ink); color: var(--washi); }
.stepper output { font-family: var(--serif); font-size: 28px; min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.toggle { position: relative; display: inline-block; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle input:disabled { cursor: not-allowed; }
.toggle span { display: block; width: 50px; height: 28px; border-radius: 99px; border: 1px solid var(--line-strong); position: relative; transition: background .4s, border-color .4s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .5s var(--ease), background .4s; }
.toggle input:checked + span { background: var(--vermilion); border-color: var(--vermilion); }
.toggle input:checked + span::after { transform: translateX(22px); background: var(--washi); }
.toggle input:focus-visible + span { outline: 2px solid var(--vermilion); outline-offset: 3px; }
.tally { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 30px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); }
.tally-total { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 5.4vw, 92px); line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tally-total small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); letter-spacing: 0; }
.tally-monthly { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.offering-grid .fine { margin-top: 24px; max-width: 42rem; }

/* Questions */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 5vw; margin-top: clamp(48px, 6vw, 90px); }
.qa details { border-top: 1px solid var(--line-strong); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 24px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.2; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--vermilion); }
.q-num { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--vermilion); }
.qa details[open] summary { color: var(--vermilion); }
.qa details p { padding: 0 0 28px 44px; color: var(--ink-2); max-width: 36rem; }

/* ---------- The path ---------- */
.path { position: relative; height: 620vh; }
.path-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.path-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(236, 238, 240, .72) 0%, rgba(236, 238, 240, .3) 38%, transparent 58%); }
.stations { position: relative; height: 100%; display: grid; align-items: end; padding-bottom: clamp(48px, 9vh, 110px); }
.station { grid-area: 1 / 1; max-width: 34rem; opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease); pointer-events: none; }
.path[data-stage="0"] .station:nth-child(1), .path[data-stage="1"] .station:nth-child(2), .path[data-stage="2"] .station:nth-child(3), .path[data-stage="3"] .station:nth-child(4), .path[data-stage="4"] .station:nth-child(5) { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.station h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 6.6vw, 112px); line-height: .95; letter-spacing: -.015em; margin: 14px 0 18px; }
.station h2 em { color: var(--vermilion); }
.station p:not(.label) { color: var(--ink); max-width: 30rem; }
.station-k { display: block; font-size: clamp(48px, 5vw, 80px); line-height: 1; color: var(--vermilion); margin-bottom: 10px; }
.station-end { justify-self: center; text-align: center; align-self: center; }
.station-end h2 { font-size: clamp(64px, 9vw, 160px); }
.rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.rail::before { content: ''; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.rail-fill { position: absolute; right: 5px; top: 6px; width: 1px; height: calc((100% - 12px) * var(--p, 0)); background: var(--vermilion); }
.rail li { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-family: var(--kanji); font-size: 15px; color: var(--ink-3); transition: color .4s; }
.rail li:first-child { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.rail li::after { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--mist); position: relative; z-index: 1; transition: background .4s, border-color .4s; }
.rail li.on { color: var(--ink); }
.rail li.on::after { background: var(--vermilion); border-color: var(--vermilion); }
.path-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 46%, #fffdf8 0%, var(--washi) 60%); opacity: var(--light, 0); }

/* ---------- Begin (contact) ---------- */
.begin { position: relative; background: var(--washi); padding-block: clamp(120px, 13vw, 200px) clamp(90px, 10vw, 150px); }
.begin .v-label { top: clamp(120px, 13vw, 200px); }
.begin-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px 7vw; align-items: start; }
.paths { display: grid; gap: 18px; margin: 40px 0 26px; max-width: 28rem; }
.paths p { color: var(--ink-2); padding-left: 18px; border-left: 1px solid var(--vermilion); }
.paths b { color: var(--ink); font-weight: 600; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field small { text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.field input, .field textarea { width: 100%; font: inherit; font-family: var(--serif); font-size: 24px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 6px 0 10px; border-radius: 0; resize: vertical; transition: border-color .4s; }
.field textarea { font-size: 21px; line-height: 1.4; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--vermilion); }
.field.has-error input, .field.has-error textarea { border-color: var(--vermilion); }
.err { font-size: 13px; color: var(--vermilion); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--ink-2); }
.form-status.ok { color: #2f6b45; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--ink); color: var(--washi); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 18px; align-items: center; }
.footer-brand p { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.footer-brand p span { font-family: var(--sans); font-size: 13px; color: rgba(243, 240, 232, .55); }
.seal-lg { margin: 0; width: 60px; height: 60px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-top: 8px; }
.footer-links a { opacity: .7; transition: opacity .3s, color .3s; }
.footer-links a:hover { opacity: 1; color: #e7836f; }
.footer-meta { display: grid; justify-items: end; gap: 12px; font-size: 13px; color: rgba(243, 240, 232, .55); }
.motion-toggle { padding: 7px 14px; border: 1px solid rgba(243, 240, 232, .2); border-radius: 99px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 240, 232, .8); }
.motion-toggle:hover { border-color: rgba(243, 240, 232, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .offering-grid { grid-template-columns: 1fr; }
  .ema { position: relative; top: 0; max-width: 420px; margin: 0 auto 20px; }
  .tide-grid { grid-template-columns: 1fr; gap: 28px; }
  .tide-pin { align-items: flex-start; padding-top: 96px; }
  .tide-text { margin: 16px 0 18px; }
  .caption { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .v-label { position: static; writing-mode: horizontal-tb; margin-bottom: 22px; }
  .v-label .kanji { font-size: 18px; }
  .hero::before { background: linear-gradient(0deg, rgba(236, 238, 240, .75) 0%, rgba(236, 238, 240, .3) 55%, transparent 80%); }
  .hero-inner { justify-content: flex-end; padding-bottom: 20px; }
  .hero-title .ln:last-child { padding-left: .4em; }
  .scroll-cue { display: none; }
  .intro-cols, .qa, .begin-grid, .brief { grid-template-columns: 1fr; }
  .tide-pin .v-label { display: none; }
  .now-hero { grid-template-columns: 1fr; }
  .now-swatches { height: 60px; grid-template-columns: repeat(4, 1fr); }
  .path-veil { background: linear-gradient(0deg, rgba(236, 238, 240, .85) 0%, rgba(236, 238, 240, .4) 45%, transparent 70%); }
  .rail { top: 96px; transform: none; gap: 18px; }
  .rail li { font-size: 13px; }
  .rail li:first-child { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-items: start; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-facts b { font-size: 20px; }
  .window-body { aspect-ratio: 4 / 5; }
  .then-table td { padding: .2em .35em; }
  .now-nav span:nth-child(2) { display: none; }
  .ledger-list li { grid-template-columns: 1fr auto; }
  .ledger-list li > i { display: none; }
  .tally .btn { width: 100%; justify-content: center; }
  .station h2 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
