/* ============================================================
   TOTONOU — thermal ritual landing
   Aesthetic: editorial Japanese minimalism, washi paper canvas,
   sumi-ink text, hot-ember ↔ cold-plunge color tension.
   ============================================================ */

:root {
  /* base — warm washi paper */
  --paper:      #f3ede1;
  --paper-2:    #ece4d4;
  --ink:        #211c17;
  --ink-soft:   #5f574c;
  --line:       #d8cdb8;

  /* the thermal tension */
  --hot:        #c0452a;   /* ember / sauna */
  --hot-soft:   #e08a5f;
  --cold:       #2f5d6b;   /* plunge / steel */
  --cold-soft:  #6f9aa6;
  --rest:       #6c7a52;   /* sage / stillness */

  /* brand accent — totonou/sage is the primary identity; ember is reserved for heat */
  --brand:      #5f6e45;   /* sage, slightly deepened for text contrast */
  --brand-soft: #9aa77d;   /* soft sage for accents on dark */

  --dark:       #1b1814;   /* founder block */
  --on-dark:    #efe7d8;

  --maxw: 1180px;

  /* ---- spacing scale (one rhythm across every section) ---- */
  --pad-x:         clamp(1.4rem, 5vw, 4rem);   /* horizontal content gutter */
  --space-section: clamp(4.5rem, 10vw, 8rem);  /* vertical padding per section */
  --gap-head:      clamp(2.6rem, 5vw, 3.6rem); /* section heading → its content */
  --gap-grid:      clamp(1.4rem, 2.2vw, 1.9rem); /* between cards in a grid */

  /* nav gutter = content gutter PLUS the centering margin once past --maxw,
     so the nav logo stays aligned with the hero headline at any width. */
  --gutter: calc(var(--pad-x) + max(0px, (100% - var(--maxw)) / 2));
  --ease: cubic-bezier(.22,.61,.36,1);

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--paper); }

a { color: inherit; text-decoration: none; }

/* ambient thermal field — a faint, fixed color wash behind all content whose
   temperature (--temp) is driven by whole-document scroll: ember → steel → sage.
   z-index:-1 keeps it above the paper canvas but behind every section. */
.thermal {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 72% calc(18% + var(--tdrift, 0) * 60%), var(--temp, transparent), transparent 70%),
    radial-gradient(70% 55% at 24% calc(82% - var(--tdrift, 0) * 55%), var(--temp, transparent), transparent 72%);
}

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  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='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow--light { color: var(--brand-soft); }

.section-title {
  font-family: var(--f-display);
  font-weight: 340;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-top: .35em;
}

.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section-head--center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .9em 1.6em; border-radius: 100px;
  transition: transform .4s var(--ease), background .35s, color .35s, box-shadow .35s;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--solid {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
}
.btn--solid:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--brand); }
.btn--ghost { border-color: var(--ink); color: var(--ink); padding: .6em 1.2em; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--text { padding: .9em .4em; }
.btn--text:hover { color: var(--brand); }
.btn--text span { transition: transform .4s var(--ease); }
.btn--text:hover span { transform: translateY(3px); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(243,237,225,.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
}
.nav__mark { display: flex; align-items: baseline; gap: .5em; }
.nav__word { font-weight: 700; letter-spacing: .22em; font-size: .92rem; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--brand); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
/* scroll-spy: the link for the section currently in view */
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: safe center;
  /* full-bleed: atmosphere spans the viewport, text aligns to the content
     column via --gutter (which includes the centering offset past --maxw) */
  padding: clamp(6.5rem,15vh,9rem) var(--gutter) clamp(2.5rem,6vh,3.5rem);
  overflow: hidden;
}
.hero__atmos {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* the whole atmosphere settles + dims as you scroll out of the hero */
  opacity: calc(1 - var(--hp, 0) * 0.85);
}
/* once the WebGL field is live it leads; the orbs drop to a faint colour bed
   beneath it so the flow has warmth to sit on */
.hero[data-field-ready] .hero__atmos { opacity: calc((1 - var(--hp, 0) * 0.85) * 0.45); }
.hero[data-field-ready] .orb { filter: blur(90px); }

/* the living thermal field — a flowing aurora/caustic canvas reacting to the
   pointer. Sits above the orb bed, below the text. */
.hero__field {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
  /* settles + fades as you scroll past the hero, like the orbs */
}
.hero[data-field-ready] .hero__field { opacity: calc(1 - var(--hp, 0) * 0.8); }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: float 16s ease-in-out infinite;
}
/* sage is the dominant hero wash — totonou (rest) leads; heat + cold are the
   smaller tension poles that resolve into it */
.orb--rest {
  width: clamp(560px, 66vw, 1500px); aspect-ratio: 1;
  top: -16%; left: 50%; opacity: .55;
  background: radial-gradient(circle at 50% 45%, var(--brand-soft), transparent 70%);
  animation-delay: -4s;
  /* centered horizontally (-50%) plus a gentle drift as you scroll out */
  translate: calc(-50% + var(--hp, 0) * 6%) calc(var(--hp, 0) * -18%);
}
.orb--hot {
  width: clamp(340px, 38vw, 980px); aspect-ratio: 1;
  top: -14%; right: -8%; opacity: .3;
  background: radial-gradient(circle at 40% 40%, var(--hot-soft), transparent 70%);
  /* parallax: drifts up + right as you scroll out of the hero. `translate`
     is a separate property from the float `transform`, so the two compose. */
  translate: calc(var(--hp, 0) * 16%) calc(var(--hp, 0) * -30%);
}
.orb--cold {
  width: clamp(360px, 42vw, 1100px); aspect-ratio: 1;
  bottom: -14%; left: -6%;
  background: radial-gradient(circle at 50% 50%, var(--cold-soft), transparent 70%);
  animation-delay: -8s;
  /* drifts down + left — the thermal tension pulling apart */
  translate: calc(var(--hp, 0) * -16%) calc(var(--hp, 0) * 26%);
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(2%, -3%) scale(1.06); }
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__title {
  font-family: var(--f-display); font-weight: 330;
  font-size: clamp(2.7rem, min(10.5vw, 14vh), 8.2rem); line-height: .96;
  letter-spacing: -.025em; margin: .3em 0 .5em;
}
.hero__title span { display: block; }
.hero__em { font-style: italic; color: var(--brand); font-weight: 360; }
.hero__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55;
  max-width: 30em; color: var(--ink-soft);
}
.hero__lede em { font-style: italic; color: var(--ink); }
.hero__actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__meta {
  position: relative; z-index: 2; margin-top: clamp(2rem,5vh,3.5rem);
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__meta span:first-child { color: var(--brand); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper-2); overflow: hidden; padding: 1.1rem 0;
}
.ticker__track {
  display: flex; width: max-content;
  font-family: var(--f-display); font-style: italic; font-weight: 340;
  font-size: 1.5rem; color: var(--ink);
  animation: marquee 24s linear infinite;
}
.ticker__group {
  display: flex; gap: 2.5rem; padding-right: 2.5rem; flex-shrink: 0;
}
.ticker__track .dot { color: var(--brand); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   CYCLE
   ============================================================ */
/* top padding only — the pinned scroller provides its own trailing space, so
   bottom padding here would just stack with the next section into a dead gap */
.cycle { padding: var(--space-section) 0 0; }
.cycle__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  margin-top: 2.6rem; max-width: 56em;
}
.cycle__intro p { color: var(--ink-soft); }
.cycle__intro strong { color: var(--ink); font-weight: 600; }

.steps {
  list-style: none;
  max-width: var(--maxw); margin: var(--gap-head) auto 0; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid);
}
.step {
  position: relative; padding: 2.2rem 1.8rem 2.4rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(180deg, var(--paper-2), transparent);
  overflow: hidden; transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -30px var(--accent); }
.step:hover::before { transform: scaleX(1); }
.step--hot  { --accent: var(--hot); }
.step--cold { --accent: var(--cold); }
.step--rest { --accent: var(--rest); }

.step__num {
  font-family: var(--f-display); font-size: 2.6rem; font-weight: 300;
  color: var(--accent); display: block; line-height: 1;
}
.step__icon { display: block; color: var(--accent); margin: 1.6rem 0 1.4rem; }
.step__icon svg { width: 56px; height: 56px; }
.step__name { font-family: var(--f-display); font-weight: 380; font-size: 1.9rem; letter-spacing: -.01em; }
.step__tag {
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin: .3rem 0 1rem; font-weight: 600;
}
.step__body { color: var(--ink-soft); font-size: .98rem; }

/* ---------- pinned cycle scrubber (all widths, motion-safe only) ----------
   Activated by JS adding [data-cycle-ready]; without it the section is a
   plain stacked grid (reduced-motion + no-JS fallback). Sizing is fluid so
   the same pinned scrub works on phones and desktops alike. */
.cycle__bg, .cycle__rail, .cycle__ghost { display: none; }

.cycle__scroll[data-cycle-ready] {
  /* extra scroll distance = how long the section stays pinned (3 beats) */
  height: 320vh;
}
.cycle__scroll[data-cycle-ready] .cycle__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  margin-top: 0;
}

/* full-bleed color wash behind the active beat */
.cycle__scroll[data-cycle-ready] .cycle__bg {
  display: block; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 50% 50%, var(--wash, transparent), transparent 70%);
  transition: background 1.1s var(--ease);
}

/* single pinned beat: a huge number beside its content, a ghost word behind */
.cycle__scroll[data-cycle-ready] .steps {
  position: relative; z-index: 1;
  display: block;
  max-width: 900px; margin: 0 auto; padding: 0 clamp(1.4rem, 6vw, 2.5rem);
}
.cycle__scroll[data-cycle-ready] .step {
  position: absolute; left: 50%; top: 50%;
  width: min(840px, 86vw);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(1.3rem, 4vw, 3.4rem); text-align: left;
  border: none; background: none; padding: 0; border-radius: 0;
  opacity: 0; transform: translate(-50%, -46%);
  pointer-events: none;
}
.cycle__scroll[data-cycle-ready] .step::before { display: none; }
.cycle__scroll[data-cycle-ready] .step:hover { box-shadow: none; }
.cycle__scroll[data-cycle-ready] .step.is-active {
  opacity: 1; pointer-events: auto;
  animation: beatIn .9s var(--ease);
}
@keyframes beatIn {
  from { opacity: 0; transform: translate(-50%, -38%); }
  to   { opacity: 1; transform: translate(-50%, -46%); }
}

/* giant ghost word behind the active beat */
.cycle__scroll[data-cycle-ready] .cycle__ghost {
  display: block; position: absolute; z-index: 0; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 320; font-style: italic;
  font-size: clamp(7rem, 33vw, 26rem); line-height: .8; letter-spacing: -.04em;
  color: rgba(33, 28, 23, .05); white-space: nowrap; pointer-events: none; user-select: none;
}

/* scaled-up presentation for the single pinned card (fluid) */
.cycle__scroll[data-cycle-ready] .step .step__num { font-size: clamp(4.5rem, 17vw, 12.5rem); line-height: .78; opacity: .92; }
.cycle__scroll[data-cycle-ready] .step .step__content { min-width: 0; }
.cycle__scroll[data-cycle-ready] .step .step__icon { margin: 0 0 1rem; }
.cycle__scroll[data-cycle-ready] .step .step__icon svg { width: clamp(54px, 8vw, 76px); height: clamp(54px, 8vw, 76px); }
.cycle__scroll[data-cycle-ready] .step .step__name { font-size: clamp(2.1rem, 7vw, 3.6rem); }
.cycle__scroll[data-cycle-ready] .step .step__body { font-size: clamp(1rem, 1.7vw, 1.15rem); max-width: 26em; }

/* progress rail */
.cycle__scroll[data-cycle-ready] .cycle__rail {
  display: flex; gap: .9rem; list-style: none;
  position: absolute; left: 50%; translate: -50% 0; bottom: clamp(2.2rem, 7vh, 5rem);
  z-index: 2;
}
.cycle__scroll[data-cycle-ready] .cycle__rail li {
  font-family: var(--f-display); font-size: .8rem; letter-spacing: .12em;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: color .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.cycle__scroll[data-cycle-ready] .cycle__rail li.is-active {
  color: var(--paper); background: var(--ink); border-color: var(--ink);
}

/* stroke-draw: each beat's icon draws itself when it becomes active.
   pathLength="1" normalizes every path so dash math is uniform. */
.cycle__scroll[data-cycle-ready] .step__icon path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.cycle__scroll[data-cycle-ready] .step.is-active .step__icon path {
  stroke-dashoffset: 0;
}
.cycle__scroll[data-cycle-ready] .step.is-active .step__icon path:nth-child(2) {
  transition-delay: .35s; /* leaf's second stroke trails the first */
}

/* breathing guide — the Rest/Totonou leaf is the breath pacer: it visibly
   expands and contracts (~3s in / 3s out) with a synchronized halo ring.
   The leaf SVG scales (not its container) so the halo stays independent. */
.cycle__scroll[data-cycle-ready] .step--rest .step__icon { position: relative; overflow: visible; }
.cycle__scroll[data-cycle-ready] .step--rest .step__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 260%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--rest);
  box-shadow: 0 0 60px 2px rgba(108,122,82,.2);
  translate: -50% -50%; transform: scale(.8); opacity: 0;
  pointer-events: none;
}
.cycle__scroll[data-cycle-ready] .step--rest.is-active .step__icon svg {
  transform-origin: center;
  animation: breathe-leaf 6s ease-in-out infinite;
}
.cycle__scroll[data-cycle-ready] .step--rest.is-active .step__icon::after {
  animation: breathe-halo 6s ease-in-out infinite;
}
@keyframes breathe-leaf {
  0%, 100% { transform: scale(.9); }
  50%      { transform: scale(1.16); }
}
@keyframes breathe-halo {
  0%, 100% { transform: scale(.82); opacity: .12; }
  50%      { transform: scale(1.08); opacity: .4; }
}

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.principles__grid {
  max-width: var(--maxw); margin: var(--gap-head) auto 0; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(2rem, 3vw, 2.6rem);
}
.principle { text-align: center; }
.principle__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--cold);
  margin-bottom: 1.4rem; transition: transform .5s var(--ease), border-color .5s, color .5s;
}
.principle__icon svg { width: 38px; height: 38px; }
.principle:hover .principle__icon { transform: rotate(-6deg) scale(1.06); border-color: var(--cold); color: var(--brand); }
.principle h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin-bottom: .5rem; }
.principle p { color: var(--ink-soft); font-size: .98rem; max-width: 22em; margin: 0 auto; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { padding: var(--space-section) var(--pad-x); border-top: 1px solid var(--line); }
.founder__card {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--dark); color: var(--on-dark);
  border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr;
  position: relative;
}
.founder__card::after {
  content: "整"; position: absolute; right: -2rem; bottom: -5rem;
  font-family: var(--f-display); font-size: 22rem; line-height: 1;
  color: var(--brand); opacity: .12; pointer-events: none;
  /* slow drift + settle as the section scrolls through view (--fp: -1..1) */
  translate: calc(var(--fp, 0) * -70px) calc(var(--fp, 0) * -52px);
  rotate: calc(var(--fp, 0) * -6deg);
  transition: translate .2s linear, rotate .2s linear;
}
.founder__left { padding: clamp(2.4rem,4vw,3.6rem); position: relative; z-index: 1; }
.founder__title {
  font-family: var(--f-display); font-weight: 340;
  font-size: clamp(2rem,3.6vw,3rem); line-height: 1.05; letter-spacing: -.015em;
  margin: .4em 0 .7em;
}
.founder__lede { color: rgba(239,231,216,.72); max-width: 32em; }
.founder__list { list-style: none; margin-top: 1.8rem; display: grid; gap: .85rem; }
.founder__list li { display: flex; gap: .7rem; align-items: baseline; font-weight: 500; }
.founder__list span { color: var(--brand-soft); font-weight: 700; }

.founder__right {
  background: linear-gradient(160deg, #221e19, #161310);
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; padding: clamp(2rem,3.5vw,3rem); position: relative; z-index: 1;
}
.deposit { width: 100%; text-align: center; }
.deposit__label { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cold-soft); }
.deposit__amount { font-family: var(--f-display); font-weight: 300; font-size: 5rem; line-height: 1; margin: .2rem 0; }
.deposit__note { color: var(--brand-soft); font-weight: 600; font-size: .9rem; margin-bottom: 1.6rem; }
.deposit__fine { font-size: .76rem; color: rgba(239,231,216,.5); margin-top: 1rem; line-height: 1.4; }
.founder__right .btn--solid { background: var(--paper); color: var(--ink); }
.founder__right .btn--solid:hover { background: var(--brand); color: var(--paper); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.accordion { max-width: var(--maxw); margin: var(--gap-head) auto 0; padding: 0 var(--pad-x); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.5rem 0;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.15rem,2vw,1.45rem);
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand); }
.qa__plus { position: relative; flex: 0 0 22px; height: 22px; transition: transform .45s var(--ease); }
.qa__plus::before, .qa__plus::after {
  content: ""; position: absolute; background: var(--brand); border-radius: 2px;
  transition: transform .4s var(--ease);
}
.qa__plus::before { top: 10px; left: 0; width: 22px; height: 2px; }
.qa__plus::after  { left: 10px; top: 0; width: 2px; height: 22px; }
/* the plus rotates a quarter-turn as its vertical stroke collapses into a minus */
.qa[open] .qa__plus { transform: rotate(90deg); }
.qa[open] .qa__plus::after { transform: scaleY(0); }
/* height is animated inline by JS for a smooth two-way open/close; the rules
   here are the resting + no-JS fallback states */
.qa__body { overflow: hidden; height: 0; opacity: 0; transition: height .45s var(--ease), opacity .35s var(--ease); }
.qa[open] .qa__body { height: auto; opacity: 1; }
.qa__body p {
  color: var(--ink-soft); padding-bottom: 1.6rem; max-width: 56em;
  transform: translateY(-8px); transition: transform .55s var(--ease);
}
.qa[open] .qa__body p { transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark); padding: clamp(3.5rem,7vw,5.5rem) var(--pad-x); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__brand { display: flex; align-items: baseline; gap: .6em; }
.footer__word { font-weight: 700; letter-spacing: .24em; font-size: 1.3rem; }
.footer__kanji { font-family: var(--f-display); color: var(--brand-soft); font-size: 1.6rem; }
.footer__line { color: rgba(239,231,216,.6); margin: 1rem 0 2.4rem; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; }
.footer__bottom {
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
  padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: rgba(239,231,216,.6);
}
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: var(--brand-soft); }

/* ============================================================
   THE SPACE — concept sketches
   ============================================================ */
.space { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.space__intro {
  max-width: 40em; margin: 1.4rem auto 0; text-align: center; color: var(--ink-soft);
}
.space__intro em { font-style: italic; color: var(--ink); }
.space__grid {
  max-width: var(--maxw); margin: var(--gap-head) auto 0; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap-grid);
}
.sketch { --accent: var(--cold); margin: 0; }
.sketch--hot  { --accent: var(--hot); }
.sketch--cold { --accent: var(--cold); }
.sketch--rest { --accent: var(--rest); }

.sketch__frame {
  position: relative; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(180deg, var(--paper-2), transparent);
  color: var(--accent);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.sketch:hover .sketch__frame {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 24px 50px -30px var(--accent);
}
/* faint blueprint grid behind the line art */
.sketch__frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .4;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(72% 72% at 50% 50%, #000, transparent);
}
.sketch__frame svg { position: relative; width: 80%; height: 80%; }
.sketch__tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft); background: rgba(243,237,225,.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid var(--line); border-radius: 100px; padding: .35em .8em;
}
.sketch figcaption { margin-top: 1.3rem; }
.sketch__label {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .35rem;
}
.sketch figcaption h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; }
.sketch figcaption p { color: var(--ink-soft); font-size: .96rem; margin-top: .35rem; }
.space__note {
  max-width: 46em; margin: 2.8rem auto 0; padding: 0 var(--pad-x);
  text-align: center; font-size: .85rem; color: var(--ink-soft); font-style: italic;
}

/* ============================================================
   THE VISION — founder
   ============================================================ */
.vision { padding: var(--space-section) var(--pad-x); border-top: 1px solid var(--line); }
.vision__card {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: var(--gap-head) auto 0;
  display: grid; grid-template-columns: minmax(220px, .85fr) 1.55fr;
  gap: clamp(2rem,5vw,4.5rem); align-items: center;
  background: linear-gradient(165deg, var(--paper-2), #e7ddca);
  border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(2.2rem,4.5vw,4rem);
}
.vision__person { position: relative; z-index: 1; margin: 0; text-align: center; }
.vision__avatar {
  display: grid; place-items: end center; overflow: hidden;
  width: 100%; max-width: 248px; aspect-ratio: 4 / 5; margin: 0 auto;
  border-radius: 160px 160px 14px 14px;
  border: 1px solid var(--line);
  background: radial-gradient(120% 85% at 50% 18%, #f3ecdc, #dccfb8);
  color: var(--cold-soft);
}
.vision__avatar svg { width: 84%; height: 90%; }
.vision__photo {
  width: 100%; max-width: 248px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 160px 160px 14px 14px; border: 1px solid var(--line);
}
.vision__name { font-family: var(--f-display); font-size: 1.5rem; margin-top: 1.3rem; }
.vision__role {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-top: .4rem;
}
.vision__facts {
  list-style: none; margin: 1.5rem auto 0; max-width: 16em;
  display: grid; gap: .6rem; font-size: .88rem; color: var(--ink-soft);
  text-align: left;
}
.vision__facts li { display: flex; gap: .6rem; align-items: baseline; }
.vision__facts li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-soft); transform: translateY(-2px); }

.vision__note { position: relative; z-index: 1; }
.vision__note .eyebrow { display: block; margin-bottom: 1.1rem; }
.vision__note blockquote { margin: 0; }
.vision__lead {
  font-family: var(--f-display); font-weight: 360;
  font-size: clamp(1.45rem,2.5vw,2rem); line-height: 1.28;
  letter-spacing: -.01em; color: var(--ink);
  text-indent: -.04em;
}
.vision__lead::before { content: "\201C"; color: var(--brand); }
.vision__lead::after { content: "\201D"; color: var(--brand); }
.vision__note blockquote p + p {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(1rem,1.4vw,1.1rem); line-height: 1.6;
  color: var(--ink-soft); margin-top: 1.2rem;
}
.vision__signoff { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.vision__sign {
  font-family: var(--f-display); font-style: italic; font-size: 2.1rem;
  color: var(--brand); line-height: 1;
}
.vision__signname {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: .55rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* founder card: a heavier, slower entrance for the conversion moment */
.founder .reveal { transform: translateY(70px) scale(.965); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.founder .reveal.is-in { transform: none; }

/* line-mask reveal for the big serif headings — the type wipes up from behind
   the clip edge as it enters. JS wraps the text in .mask-reveal__i; the outer
   box keeps full height (overflow-clipped) so IntersectionObserver can still
   detect it — a self-clipped element reads as zero-area and never fires.
   padding/negative-margin give descenders room without shifting layout. */
.mask-reveal { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.mask-reveal__i {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}
.mask-reveal.is-in .mask-reveal__i { transform: translateY(0); }

/* hero staggered load — .reveal lines delay themselves; mask lines pass the
   delay to their inner wrapper via --rd */
.hero [data-d="1"].is-in { transition-delay: .05s; }
.hero [data-d="2"] { --rd: .15s; }
.hero [data-d="3"] { --rd: .28s; }
.hero [data-d="4"].is-in { transition-delay: .42s; }
.hero [data-d="5"].is-in { transition-delay: .54s; }
.hero [data-d="6"].is-in { transition-delay: .66s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mask-reveal { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .mask-reveal__i { transform: none; transition: none; }
  .orb, .ticker__track { animation: none; }
  .step--rest .step__icon svg, .step--rest .step__icon::after { animation: none; }
  .orb--hot, .orb--cold { translate: 0 0; }
  .orb--rest { translate: -50% 0; }
  .founder__card::after { translate: 0 0; rotate: 0; }
  .step__icon path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .qa__plus, .qa__body, .qa__body p { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .cycle__intro { grid-template-columns: 1fr; gap: 1.4rem; }
  .steps { grid-template-columns: 1fr; gap: .85rem; margin-top: 2.6rem; }
  .step { padding: 1.6rem 1.4rem 1.7rem; }
  .step__icon { margin: 1.1rem 0 .9rem; }
  .step__icon svg { width: 44px; height: 44px; }
  .step__num { font-size: 2.1rem; }
  .cycle__scroll[data-cycle-ready] .step { grid-template-columns: 1fr; text-align: center; gap: .5rem; }
  .cycle__scroll[data-cycle-ready] .step .step__num { font-size: clamp(3.5rem, 22vw, 7rem); }
  .cycle__scroll[data-cycle-ready] .step .step__icon { margin-inline: auto; }
  .cycle__scroll[data-cycle-ready] .step .step__body { margin-inline: auto; }
  .principles__grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .space__grid { grid-template-columns: 1fr; gap: 1.6rem; max-width: 30rem; }
  .vision__card { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .vision__note .eyebrow { margin-top: .5rem; }
  .vision__lead { text-align: left; }
  .vision__note blockquote p + p { text-align: left; }
  .vision__signoff { text-align: center; }
  .founder__card { grid-template-columns: 1fr; }
  .founder__right { border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .hero__meta { gap: 1.2rem; }
}
