/* Dynamic Zen Path · site styles
   Paper, ink, earth. Three shapes: circle, triangle, square. Space to breathe. */

:root {
  --paper: #f5f2f0;
  --paper-2: #ece7e1;
  --stone: #d2cec1;
  --earth: #716856;
  --bark: #534741;
  --moss: #2f3826;
  --ink: #1d1b18;
  --ink-soft: #3a3632;
  --muted: #5c564d;
  --line: rgba(29, 27, 24, .16);
  --accent: var(--earth);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --space-1: clamp(1rem, 2vw, 1.5rem);
  --space-2: clamp(2rem, 4vw, 3.5rem);
  --space-3: clamp(4rem, 9vw, 8rem);
  --space-4: clamp(6rem, 13vw, 12rem);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain over everything, never on top of interaction */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: url(../img/paper.webp) 0 0 / 600px 600px;
  mix-blend-mode: multiply;
  opacity: .32;
  pointer-events: none;
  z-index: 60;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- type ---------- */
.kicker {
  font: 500 .7rem/1.4 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: .9em;
}
.kicker .shp { width: .8em; height: .8em; }
.lead {
  font: 300 clamp(1.6rem, 1.1rem + 1.9vw, 2.75rem)/1.22 var(--serif);
  letter-spacing: -.01em;
  max-width: 22ch;
  margin: 0;
}
.lead em { font-style: italic; color: var(--earth); }
.body { max-width: 34ch; color: var(--ink-soft); margin: 0; }
.body + .body { margin-top: 1em; }
.small { font: 400 .82rem/1.6 var(--sans); color: var(--muted); letter-spacing: .02em; }
.display {
  font: 300 clamp(3rem, 1.5rem + 7vw, 8.5rem)/.92 var(--serif);
  letter-spacing: -.035em;
  margin: 0;
}
.brush { color: var(--ink); }
.brush img, .brush svg { height: 100%; width: auto; }
.brush--xl { height: clamp(4.5rem, 3rem + 7vw, 10rem); }
.brush--l { height: clamp(3.4rem, 2.4rem + 4.4vw, 6.6rem); }
.brush--m { height: clamp(2.6rem, 2rem + 2.6vw, 4.4rem); }
.brush--s { height: clamp(2rem, 1.6rem + 1.4vw, 3rem); }
.center .brush img, .join .brush img { margin-inline: auto; }
.brush.is-light img { filter: invert(1) brightness(1.9) sepia(.12); }   /* on the img: the write animation owns the filter of the title itself */

/* ---------- shapes ---------- */
.shp { width: 1rem; height: 1rem; flex: none; overflow: visible; }
.shp * { vector-effect: non-scaling-stroke; }
.shp--outline * { fill: none; stroke: currentColor; stroke-width: 1; }
.shp--fill * { fill: currentColor; stroke: none; }
.trio { display: flex; gap: 1.1rem; align-items: center; color: var(--ink); }
.trio .shp { width: 1.1rem; height: 1.1rem; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--space-4) 0; overflow-x: clip; overflow-y: visible; }
.section > .wrap { position: relative; }
.section--tight { padding: var(--space-3) 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--space-1); }
.stack > * + * { margin-top: var(--space-1); }
.stack-l > * + * { margin-top: var(--space-2); }
.center { text-align: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .5s var(--ease-out), background-color .4s ease;
}
.site-head.is-scrolled {
  background: rgba(245, 242, 240, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.site-head.is-hidden { transform: translateY(-100%); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 5.25rem; }
.logo { display: flex; align-items: center; gap: .8rem; }
.logo img { width: 2.2rem; height: auto; }
.logo span { font: 500 .78rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; }
.nav a { font: 400 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; position: relative; padding: .4rem 0; }
/* menu: a wet brush line writes itself under the word, soft at its front, then it settles */
.nav a::after {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: -.32rem; height: .45rem;
  background: url(../img/signs/line.svg) left center / 100% 100% no-repeat;
  --p: 0%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p));
  filter: blur(1.4px); opacity: .7;
  transition: --p .6s var(--ease-out), filter .7s ease, opacity .7s ease;
}
.nav a[aria-current="page"]::after { --p: 118%; filter: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { --p: 118%; filter: none; opacity: 1; } }
.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  padding: 1.05rem 1.6rem; border: 1px solid var(--ink); border-radius: 0;
  background: transparent; cursor: pointer;
  transition: background-color .4s ease, color .4s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
/* outline buttons: the same wet ink as the page change spreads from the middle and spills past the frame, the frame turns white */
.btn:not(.btn--solid) { position: relative; isolation: isolate; transition: background-color .4s ease, color .4s ease, border-color .5s ease, transform .16s var(--ease-out); }
.btn:not(.btn--solid)::before {
  content: ''; position: absolute; left: -14%; right: -14%; top: -55%; bottom: -55%; z-index: -1; pointer-events: none;
  border-radius: 50%; background: var(--ink); filter: url(#dz-ink);
  transform: scale(.08); opacity: 0;
  transition: transform .76s cubic-bezier(0.77, 0, 0.175, 1), opacity .3s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn--solid):hover { color: var(--paper); }
  .btn:not(.btn--solid):hover { border-color: transparent; outline: 1px solid var(--paper); outline-offset: -1px; }
  .btn:not(.btn--solid):hover::before { transform: scale(1); opacity: 1; }
  .btn--solid:hover { background: var(--moss); border-color: var(--moss); }
}
.btn .shp { width: .7rem; height: .7rem; }
.nav .btn { padding: .8rem 1.2rem; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.menu-toggle span { display: block; width: 1.6rem; height: 1px; background: var(--ink); margin: .35rem 0; transition: transform .4s var(--ease-out); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2.2rem;
    background: var(--paper); clip-path: circle(0% at calc(100% - 2.6rem) 2.6rem);
    transition: clip-path .7s var(--ease-in-out); z-index: -1;
  }
  .nav a { font-size: 1rem; }
  .site-head.menu-open .nav { clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem); }
  .site-head.menu-open .menu-toggle span:first-child { transform: translateY(.2rem) rotate(45deg); }
  .site-head.menu-open .menu-toggle span:last-child { transform: translateY(-.2rem) rotate(-45deg); }
}

/* ---------- traditions menu under the header (desktop): the six lands in brush, their teachers on recycled paper ---------- */
.mega { display: none; }
@media (min-width: 861px) {
  .site-head.mega-open { background: rgba(245, 242, 240, .9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
  .mega {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 5.25rem); overflow: auto; overscroll-behavior: none;
    padding: clamp(1.5rem, 3vw, 2.8rem) 0 calc(clamp(1.5rem, 3vw, 2.8rem) + 14px);
    border-top: 1px solid rgba(29, 27, 24, .1); filter: drop-shadow(0 18px 22px rgba(29, 27, 24, .16));
    opacity: 0; visibility: hidden; transform: translateY(-.25rem);
    transition: opacity .35s var(--ease-soft), transform .4s var(--ease-soft), visibility 0s linear .4s;
  }
  .mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease-soft), transform .6s var(--ease-out), visibility 0s; }
  .mega [data-st] { opacity: 0; transform: translateY(.3rem); transition: opacity .25s var(--ease-soft), transform .3s var(--ease-soft); }
  .mega.is-open [data-st] { opacity: 1; transform: none; transition: opacity .6s var(--ease-soft) calc(var(--i, 0) * 50ms + 60ms), transform .7s var(--ease-out) calc(var(--i, 0) * 50ms + 60ms); }
}
.recycled {
  background-color: #ede7dd;
  background-image: var(--flecks, none), var(--fibres, none), url(../img/paper.webp);
  background-size: 220px 220px, 520px 520px, 600px 600px;
  background-blend-mode: multiply;
}
.torn {
  -webkit-mask-image: var(--deckle), linear-gradient(#000, #000); mask-image: var(--deckle), linear-gradient(#000, #000);
  -webkit-mask-size: 420px 14px, 100% calc(100% - 13px); mask-size: 420px 14px, 100% calc(100% - 13px);
  -webkit-mask-position: left bottom, top; mask-position: left bottom, top;
  -webkit-mask-repeat: repeat-x, no-repeat; mask-repeat: repeat-x, no-repeat;
}
.mega__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); }
.mega .stack1 { display: grid; }
.mega .peek-txt { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.mega .peek-txt.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease .1s, visibility 0s; }
.mega .lands-brush { display: grid; gap: .7rem; align-content: start; }
.mega .land-b { display: block; width: fit-content; opacity: .42; transition: opacity .8s ease, transform .9s var(--ease-out); }
.mega .land-b img { display: block; height: 2.5rem; width: auto; }
.mega .land-b.is-on { opacity: 1; transform: translateX(.2rem); }
.mega .tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); }
.mega .tgrid:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega .tcard { display: grid; gap: .8rem; align-content: start; }
.mega .tframe { position: relative; display: block; aspect-ratio: 4 / 5; }
.mega .tframe .frame__box { inset: 0 0 6% 6%; }
.mega .tframe .ph { position: absolute; inset: 0 0 6% 6%; overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100' preserveAspectRatio='none'><defs><linearGradient id='g'><stop offset='.45' stop-color='%23000' stop-opacity='0'/><stop offset='.5' stop-color='%23000' stop-opacity='.5'/><stop offset='.55' stop-color='%23000'/></linearGradient><filter id='w' x='-20%25' y='-20%25' width='140%25' height='140%25'><feTurbulence type='fractalNoise' baseFrequency='.018 .055' numOctaves='4' seed='3'/><feDisplacementMap in='SourceGraphic' scale='24' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='1.1'/></filter></defs><rect x='-40' y='-40' width='320' height='180' fill='url%28%23g%29' filter='url%28%23w%29'/></svg>") 100% 0 / 250% 100% no-repeat; mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100' preserveAspectRatio='none'><defs><linearGradient id='g'><stop offset='.45' stop-color='%23000' stop-opacity='0'/><stop offset='.5' stop-color='%23000' stop-opacity='.5'/><stop offset='.55' stop-color='%23000'/></linearGradient><filter id='w' x='-20%25' y='-20%25' width='140%25' height='140%25'><feTurbulence type='fractalNoise' baseFrequency='.018 .055' numOctaves='4' seed='3'/><feDisplacementMap in='SourceGraphic' scale='24' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='1.1'/></filter></defs><rect x='-40' y='-40' width='320' height='180' fill='url%28%23g%29' filter='url%28%23w%29'/></svg>") 100% 0 / 250% 100% no-repeat;
  transition: -webkit-mask-position 1.1s cubic-bezier(.35, .1, .35, 1), mask-position 1.1s cubic-bezier(.35, .1, .35, 1); }
.mega .tframe .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.12) contrast(1.02) brightness(1.02); transition: transform 1.1s cubic-bezier(.35, .1, .35, 1); }
.mega .known { position: absolute; inset: 0 0 6% 6%; display: grid; place-items: center; padding: 1rem; text-align: center; font: 400 italic clamp(1rem, .85rem + .45vw, 1.3rem)/1.35 var(--serif); color: var(--ink); opacity: 0; transition: opacity .4s ease; }
.mega .tn { display: block; font: 400 clamp(1.15rem, 1rem + .4vw, 1.4rem)/1.2 var(--serif); color: var(--ink); }
.mega .tmeta { font: 400 .76rem/1.45 var(--sans); color: var(--muted); letter-spacing: .03em; }
/* a brush line under every brush word: written on hover, kept under the page you are on */
.mega .bl { position: relative; display: block; width: fit-content; }
.mega .bl::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -.4rem; height: .45rem; background: url(../img/signs/line.svg) left center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease-out); }
.mega .bl.is-here::after { clip-path: inset(0 0 0 0); }
@media (hover: hover) and (pointer: fine) {
  .mega .tcard:hover .ph { -webkit-mask-position: 0 0; mask-position: 0 0; }
  .mega .tcard:hover .ph img { transform: scale(1.04); }
  .mega .tcard:hover .known { opacity: 1; transition: opacity .6s ease .35s; }
  .mega .land-b:hover .bl::after, .mega .tcard:hover .bl::after { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .mega [data-st] { transform: none !important; }
  .mega .tframe .ph, .mega .tframe .ph img { transition-duration: .01s; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow-x: clip; overflow-y: visible; padding: 6rem 0 5rem; }
.hero > div:not([class]) { position: relative; z-index: 1; }
.hero__sky {
  position: absolute; inset: -8% 0 auto 0; height: 135%; z-index: 0;
  background: url(../img/ridge-mist.webp) center 30% / cover;
  filter: grayscale(1) contrast(1.12) brightness(.98);
  mix-blend-mode: multiply; opacity: .4;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}
.hero__stage { position: relative; width: min(84vw, 780px, calc((100svh - 21rem) * 1.316)); aspect-ratio: 1000 / 760; }
.hero__layer { position: absolute; will-change: transform; }
.hero__enso { left: 19%; top: 5%; width: 62%; }
.hero__enso img { width: 100%; }
.hero__monk { left: 31%; top: 3%; width: 38%; }
.hero__monk img { width: 100%; height: auto; }
.hero__monk::after {   /* where the feet meet the ground */
  content: ''; position: absolute; left: -20%; right: -20%; bottom: -2.5%; height: 5%;
  background: radial-gradient(closest-side, rgba(29, 27, 24, .38), rgba(29, 27, 24, .12) 60%, transparent);
  z-index: -1;
}
.hero__title { position: relative; margin-top: clamp(1rem, 3vh, 2.5rem); display: grid; justify-items: center; gap: 1.4rem; text-align: center; }
.hero__title .tagline { font: 300 italic clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.4 var(--serif); color: var(--ink-soft); margin: 0; }
.scroll-cue {   /* pinned to the first screen, even when the hero grows taller than it */
  position: absolute; right: var(--gutter); top: calc(100svh - 6.6rem); z-index: 2;
  display: grid; justify-items: center; gap: .6rem;
  font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.scroll-cue span { padding-left: .3em; }
.scroll-cue i { width: 1.5px; height: 2.6rem; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.6s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- statement ---------- */
.statement { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.statement .lead { max-width: 25ch; }

/* ---------- frames that things step out of ---------- */
.frame { position: relative; }
.frame__box { position: absolute; inset: 0; border: 1px solid var(--ink); pointer-events: none; }
.frame__img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.breakout { position: relative; }
.breakout .frame__box { inset: 14% 0 0 0; }
.breakout img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1) brightness(1.08); }
.mono { filter: grayscale(1) sepia(.12) contrast(1.02) brightness(1.02); transition: filter 1.2s var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .reveal-color:hover .mono, .mono.reveal-color:hover { filter: grayscale(.25) sepia(.1); } }

/* ---------- pillars ---------- */
.move__media { grid-column: 1 / span 6; position: relative; aspect-ratio: 4 / 5; }
.move__media .photo { position: absolute; inset: 9% 9% 0 0; overflow: hidden; }
.move__media .photo img { width: 100%; height: 118%; object-fit: cover; }
.move__media .frame__box { inset: 0 0 9% 9%; }
.move__text { grid-column: 8 / span 5; align-self: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.pillar { display: grid; gap: 1rem; align-content: start; }
.pillar__sign { position: relative; width: 3.4rem; aspect-ratio: 1; display: block; }
.pillar__sign .sign { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sign--hover { opacity: 0; transition: opacity .6s ease; }
@media (hover: hover) and (pointer: fine) { .pillar:hover .sign--hover { opacity: 1; } }
.pillar h3 { font: 500 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; margin: .6rem 0 0; }
.pillar p { margin: 0; color: var(--ink-soft); max-width: 26ch; }

/* ---------- five traditions strips ---------- */
.strips { display: flex; height: min(78vh, 720px); gap: 1px; background: var(--line); margin-top: var(--space-3); }
.strip {
  position: relative; flex: 1; overflow: hidden; background: var(--paper);
  transition: flex-grow .9s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 1.6rem;
}
.strip__img { position: absolute; inset: 38% 0 0 0; overflow: hidden; }
.strip__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out), filter 1.2s ease; }
.strip__img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(var(--paper) 0%, rgba(245, 242, 240, 0) 32%);
}
.strip__head { position: relative; z-index: 2; display: grid; gap: .7rem; }
.strip__num { font: 400 .7rem/1 var(--sans); letter-spacing: .28em; color: var(--muted); }
.strip__name { font: 300 clamp(1.4rem, 1rem + 1.2vw, 2.1rem)/1 var(--serif); letter-spacing: -.01em; }
.strip__sub { font: 400 .74rem/1.5 var(--sans); letter-spacing: .08em; color: var(--muted); max-width: 18ch; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .8s var(--ease-out); }
.strip__go { position: relative; z-index: 2; align-self: flex-start; color: var(--paper); font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; display: flex; gap: .7rem; align-items: center; opacity: 0; transition: opacity .6s ease; }
@media (hover: hover) and (pointer: fine) {
  .strips:hover .strip { flex-grow: .8; }
  .strips .strip:hover { flex-grow: 2.4; }
  .strip:hover .strip__img img { transform: scale(1); }
  .strip:hover .strip__sub, .strip:hover .strip__go { opacity: 1; transform: none; }
}
.strip:focus-visible { outline-offset: -6px; }

/* ---------- birth profile teaser ---------- */
.teaser { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--space-1); align-items: center; }
.teaser__signs { grid-column: 1 / span 7; position: relative; aspect-ratio: 1 / .82; }
.teaser__signs > span { position: absolute; display: block; }
.teaser__signs .sign { width: 100%; height: auto; display: block; }
.teaser__c { left: 6%; top: 2%; width: 44%; }
.teaser__t { left: 54%; top: 22%; width: 36%; }
.teaser__s { left: 18%; top: 60%; width: 26%; }
.teaser__text { grid-column: 9 / span 4; }

/* ---------- sand stage (3D) ---------- */
.sand-stage { position: relative; perspective: 1400px; }
.sand-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.sand-canvas { display: block; width: min(100%, calc(76svh * var(--ar, .8))); margin-inline: auto; touch-action: pan-y; }
.sand-canvas.sand--fallback { background: var(--paper-2) url(../img/raked-gravel.webp) center / cover; filter: grayscale(1); }
.sand-hint { margin-top: 1.4rem; display: flex; gap: .8rem; align-items: center; }
.sand-hint .shp { width: .6rem; height: .6rem; }
.sand-label {
  position: absolute; right: -.6rem; bottom: 1.4rem; transform: translateZ(40px);
  writing-mode: vertical-rl; font: 500 .66rem/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--ink);
}

/* ---------- product lines ---------- */
.lines { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: var(--space-1);
  padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line); position: relative;
}
.line .shp { width: 1.2rem; height: 1.2rem; }
.line__name { font: 300 clamp(1.8rem, 1.2rem + 2.4vw, 3.6rem)/1 var(--serif); letter-spacing: -.02em; transition: transform .7s var(--ease-out), color .5s ease; }
.line__meta { font: 400 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (hover: hover) and (pointer: fine) { .line:hover .line__name { transform: translateX(1.2rem); } }
.peek {
  position: fixed; left: 0; top: 0; width: 15rem; aspect-ratio: 4 / 5; z-index: 40; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .35s ease;
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.peek img.is-on { opacity: 1; }
.peek[data-shape="circle"] { clip-path: circle(50% at 50% 50%); aspect-ratio: 1; }
.peek[data-shape="triangle"] { clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ---------- dark section: no mud, no lotus ---------- */
.dark { background: var(--moss); color: var(--paper); overflow: hidden; }
.dark .kicker, .dark .small { color: rgba(245, 242, 240, .78); }
.dark .body { color: rgba(245, 242, 240, .9); }
.lotus { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--space-1); align-items: center; }
.lotus__art { grid-column: 2 / span 5; position: relative; aspect-ratio: 1; }
.lotus__ring { position: absolute; inset: -4%; }
.lotus__ring { filter: invert(.86) sepia(.35); opacity: .75; }
.lotus__ring .sign { width: 100%; height: 100%; display: block; }
.lotus__img { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; }
.lotus__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.92); }
.lotus__bud { position: absolute; width: 34%; right: -10%; top: -6%; border-radius: 50%; overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.lotus__bud img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.7); }
.lotus__text { grid-column: 8 / span 4; }

/* ---------- waitlist ---------- */
.join { display: grid; justify-items: center; text-align: center; gap: var(--space-2); }
.field-row { display: flex; gap: 0; width: min(100%, 34rem); border-bottom: 1px solid var(--ink); }
.field-row input {
  flex: 1; border: 0; background: transparent; padding: 1.1rem .2rem; font: 300 1.3rem/1 var(--serif); outline: none; min-width: 0;
}
.field-row input::placeholder { color: var(--muted); }
.field-row .btn { border: 0; padding-right: .2rem; }
.consent { display: flex; gap: .8rem; align-items: flex-start; max-width: 34rem; text-align: left; font: 400 .84rem/1.6 var(--sans); color: var(--ink-soft); }
.consent input { margin-top: .3rem; accent-color: var(--ink); }
.form-note { min-height: 1.6em; font: 400 .82rem/1.6 var(--sans); color: var(--earth); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form[aria-busy="true"] .btn { opacity: .55; cursor: progress; }
/* saved: one wet brush stroke is laid across, then the words surface in it, soft first, then sharp */
.form-note.is-ok { min-height: 0; margin-top: .4rem; }
.ink-note { position: relative; display: inline-block; padding: 1.05rem 2.4rem 1.15rem; isolation: isolate; }
.ink-note::before {
  content: ''; position: absolute; inset: -.45rem -3.2rem -.55rem -1.4rem; z-index: -1;
  background: url(../img/signs/swash.svg) center / 100% 100% no-repeat;
  --p: 0%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 22%), transparent var(--p));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) - 22%), transparent var(--p));
  filter: blur(2.4px); opacity: .75;
  transition: --p 1.05s var(--ease-soft), filter .9s ease .45s, opacity .9s ease .45s;
}
.ink-note span {
  display: block; font: italic 400 clamp(1.15rem, 2.2vw, 1.4rem)/1.3 var(--serif); color: var(--paper);
  --p: 0%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 16%), transparent var(--p));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) - 16%), transparent var(--p));
  filter: blur(1.6px); opacity: .6;
  transition: --p .9s var(--ease-soft) .5s, filter .7s ease .85s, opacity .7s ease .85s;
}
.is-in .ink-note::before, .is-in .ink-note span { --p: 118%; filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ink-note::before, .ink-note span { -webkit-mask-image: none; mask-image: none; filter: none; transition: opacity .3s ease; opacity: 0; }
  .is-in .ink-note::before, .is-in .ink-note span { opacity: 1; }
}

/* ---------- footer ---------- */
.site-foot { position: relative; padding: var(--space-3) 0 2.5rem; border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2); }
.foot-grid h4 { font: 500 .68rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-grid a { font: 400 1.05rem/1.4 var(--serif); }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { color: var(--earth); } }
.foot-mark { width: 3.4rem; margin-bottom: 1.6rem; }
.foot-base { margin-top: var(--space-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-enso { position: absolute; right: -6rem; bottom: -9rem; width: 26rem; opacity: .06; pointer-events: none; }

/* ---------- tradition pages ---------- */
.t-hero { min-height: 100svh; padding: 8rem 0 var(--space-3); display: grid; align-items: center; position: relative; overflow: hidden; }
.t-hero .grid { align-items: center; row-gap: var(--space-2); }
.t-hero__text { grid-column: 1 / span 5; }
.t-hero__sand { grid-column: 7 / span 6; }
.t-hero__bg-unused {
  position: absolute; left: 0; top: 0; width: 34%; height: 100%;
  background-size: cover; background-position: center;
  filter: grayscale(1) sepia(.15) brightness(1.15) contrast(.95); opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
.t-index { font: 300 clamp(5rem, 3rem + 9vw, 12rem)/.8 var(--serif); color: var(--stone); letter-spacing: -.06em; position: absolute; left: 45%; top: 7rem; pointer-events: none; opacity: .55; }
.count-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.count-rules { margin-top: var(--space-2); }
.count-rules > div { display: grid; gap: .9rem; align-content: start; }
.count-rules h3 { font: 500 .78rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0; }
.count-rules .shp { width: 1.6rem; height: 1.6rem; }
.count-rules p { margin: 0; color: var(--ink-soft); max-width: 28ch; }

.set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: var(--space-3); border: 1px solid var(--line); }
.set--6 { grid-template-columns: repeat(6, 1fr); }
.set--3 { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--paper); padding: clamp(1.6rem, 2.6vw, 2.6rem) clamp(1.2rem, 2vw, 2rem); display: grid; gap: .8rem; align-content: start; min-height: 15rem; position: relative; transition: background-color .5s ease; }
.cell__mark { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(29, 27, 24, .14); }
.cell__mark--sq { border-radius: 0; }
.cell__mark--tri { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cell__k { font: 500 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.cell__t { font: 400 1.45rem/1.15 var(--serif); margin: 0; }
.cell__d { font: 400 .95rem/1.55 var(--serif); color: var(--ink-soft); margin: 0; }
.cell__glyph { font: 300 2.6rem/1 'Noto Serif JP', var(--serif); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cell:hover { background: #fbfaf8; } }

.band { position: relative; height: 92vh; overflow: hidden; }
.band__img { position: absolute; inset: -12% 0; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band__caption { position: absolute; left: var(--gutter); bottom: 2.4rem; color: var(--paper); z-index: 2; margin: 0; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(29, 27, 24, .45)); }
.band--split { display: grid; grid-template-columns: 1fr 1fr; height: auto; overflow: visible; gap: var(--space-1); }
.band--split::after { display: none; }

.duo { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--space-1); align-items: end; }
.duo__a { grid-column: 1 / span 5; aspect-ratio: 3 / 4; overflow: hidden; }
.duo__b { grid-column: 7 / span 4; aspect-ratio: 1; overflow: hidden; margin-bottom: 18%; }
.duo__text { grid-column: 7 / span 5; }
.duo img { width: 100%; height: 115%; object-fit: cover; }

.next-t { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.next-t__name { display: block; margin-top: 1rem; }
.next-t__go { width: clamp(5rem, 9vw, 8rem); aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: background-color .5s ease, color .5s ease, transform .9s var(--ease-out); }
.next-t__go svg { width: 34%; }
@media (hover: hover) and (pointer: fine) { .next-t:hover .next-t__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); } }

/* ---------- profile page ---------- */
.p-form { display: grid; gap: var(--space-2); max-width: 46rem; }
.p-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2); }
.p-field { display: grid; gap: .7rem; }
.p-field label { font: 500 .68rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.p-field input { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: .7rem 0; font: 300 1.7rem/1.2 var(--serif); outline: none; border-radius: 0; }
.p-field input:focus { border-bottom-width: 2px; padding-bottom: calc(.7rem - 1px); }
.p-field small { font: 400 .78rem/1.5 var(--sans); color: var(--muted); }
.p-error { color: #8a3a2a; font: 400 .85rem/1.5 var(--sans); min-height: 1.5em; margin: 0; }

/* ---------- prose pages ---------- */
.prose { max-width: 40rem; }
.prose h2 { font: 500 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: var(--space-2) 0 1rem; }
.prose p { margin: 0 0 1em; color: var(--ink-soft); }
.prose ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--ink-soft); }
.prose li { margin: .35em 0; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- motion: shape apertures (one family for every section change) ---------- */
[data-aperture] { will-change: clip-path; }
.js [data-reveal] { opacity: 0; }
.js [data-brush], .js [data-ink] {
  --p: 0%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 16%), transparent var(--p));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) - 16%), transparent var(--p));
  filter: blur(1.6px); opacity: .72;
}
.js [data-sign] {
  --p: 0%;
  -webkit-mask-image: conic-gradient(from var(--from, 230deg), #000 calc(var(--p) - 12%), transparent var(--p));
  mask-image: conic-gradient(from var(--from, 230deg), #000 calc(var(--p) - 12%), transparent var(--p));
  filter: blur(3px); opacity: .55;
}
.js [data-sign="ccw"] {   /* the hero circle runs the other way, from its lower right */
  -webkit-mask-image: conic-gradient(from 150deg, transparent calc(100% - var(--p)), #000 calc(112% - var(--p)));
  mask-image: conic-gradient(from 150deg, transparent calc(100% - var(--p)), #000 calc(112% - var(--p)));
}
.js [data-sign].is-written, .js [data-brush].is-written, .js [data-ink].is-written { -webkit-mask-image: none; mask-image: none; filter: none; opacity: 1; }
.no-motion [data-reveal] { opacity: 1; }
.no-motion [data-sign], .no-motion [data-brush], .no-motion [data-ink] { -webkit-mask-image: none; mask-image: none; filter: none; opacity: 1; }


/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .set { grid-template-columns: repeat(2, 1fr); }
  .set--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .grid, .teaser, .lotus, .duo { display: block; }
  .move__media { margin-bottom: var(--space-3); }
  .move__text, .teaser__text, .lotus__text, .duo__text, .t-hero__text { margin-top: var(--space-2); }
  .pillars, .count-rules { grid-template-columns: 1fr; }
  .strips { flex-direction: column; height: auto; }
  .strip { min-height: 9rem; }
  .strip__img { inset: 0 0 0 45%; }
  .strip__img::before { background: linear-gradient(90deg, var(--paper) 0%, rgba(245, 242, 240, 0) 45%); }
  .strip__sub { opacity: 1; transform: none; }
  .lotus__art { width: 82%; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .p-fields { grid-template-columns: 1fr; }
  .set--6 { grid-template-columns: repeat(2, 1fr); }
  .duo__a, .duo__b { margin: 0 0 var(--space-1); }
  .duo__b { width: 70%; margin-left: auto; }
  .band { height: 70vh; }
  .t-index { left: auto; right: var(--gutter); bottom: 1rem; }
  .line { grid-template-columns: 2.4rem 1fr; }
  .line__meta { grid-column: 2; text-align: left; }
}
@media (max-width: 520px) {
  .set, .set--3 { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .js [data-reveal] { opacity: 1; }
  .js [data-sign], .js [data-brush], .js [data-ink] { -webkit-mask-image: none; mask-image: none; filter: none; opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-head.is-scrolled { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* ================= second pass ================= */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* numbers where a list needs order; the three signs are kept for breath, movement, stillness */
.num { font: 300 1.9rem/1 var(--serif); color: var(--stone); letter-spacing: -.02em; }
.dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(29, 27, 24, .14); }
.cell--signs { place-content: center; justify-items: center; }
.animals { letter-spacing: .3em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: center; max-width: 52rem; margin-inline: auto; }
.legend { display: inline-flex; align-items: center; gap: .55rem; }
.legend .shp { width: .7rem; height: .7rem; }
.legend i { font-style: normal; margin-right: .9rem; }

/* outline = an invitation, filled = the practice is happening */
.pillar small { font: 400 .76rem/1.5 var(--sans); color: var(--muted); letter-spacing: .02em; }
.pillar .shp *, .line .shp * { transition: fill .5s ease; }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover .shp *, .line:hover .shp * { fill: currentColor; }
}
.line:focus-visible .shp * { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .pillar--breath .pillar__sign { animation: breathe 9s var(--ease-soft) infinite; transform-origin: center; }
}
@keyframes breathe { 0%, 100% { transform: scale(.82); } 45% { transform: scale(1.08); } 55% { transform: scale(1.08); } }

/* landscapes behind sections, as faint as the mountains behind the hero */
.nature {
  position: absolute; inset: -14% 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.1) brightness(1);
  mix-blend-mode: multiply; opacity: .32;
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 34%, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 4%, #000 34%, #000 62%, transparent 96%);
}
.nature--top { inset: -10% 0 auto 0; height: 70%; -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 92%); mask-image: linear-gradient(to bottom, #000 10%, transparent 92%); }
.nature--low { inset: auto 0 -12% 0; height: 80%; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); opacity: .24; }
.nature--right { inset: -8% 0 -8% 45%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%), linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 60%), linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-composite: intersect; }
.nature--hero { inset: -6% 0 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 96%); opacity: .3; }
.t-hero > .wrap { position: relative; }
.section--land { padding: calc(var(--space-4) * 1.15) 0; }

/* a brush line that hands one part over to the next */
.ink-rule { display: block; width: min(16rem, 46vw); height: .5rem; fill: var(--ink); }
.statement .ink-rule { margin-inline: auto; }
.count-rules ~ .ink-rule, .wrap > .ink-rule { margin-top: var(--space-2); }

/* leaving a page */
html.is-leaving, html.is-leaving body { overflow: hidden; }
.go { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); will-change: transform, width, height; }
.go--image { background: var(--paper); overflow: hidden; }
.go--image img { width: 100%; height: 100%; object-fit: cover; }
.go--circle, .go--blot { border-radius: 50%; }

/* the birth date form, right where you land on a tradition */
.p-field label { white-space: nowrap; }
.opt { text-transform: none; letter-spacing: .04em; color: var(--muted); margin-left: .4em; }
.p-form--inline { max-width: 34rem; gap: 1.1rem; padding: 1.6rem 0 0; border-top: 1px solid var(--ink); }
.p-form--inline .p-form__title { color: var(--ink); }
.p-form--inline .p-fields { grid-template-columns: 1.25fr 1fr auto; gap: 1.2rem; align-items: end; }
.p-form--inline .p-field input { font-size: 1.25rem; padding: .45rem 0; }
.p-form--inline .p-field input:focus { padding-bottom: calc(.45rem - 1px); }
.p-form--inline .btn { padding: .95rem 1.2rem; white-space: nowrap; }
.p-form--inline .p-error { min-height: 0; }
.p-form--inline .p-error:empty { display: none; }

/* every page arrives softly after the ink of the last one */
@media (prefers-reduced-motion: no-preference) { main, .site-head { animation: arrive .9s var(--ease-out) both; } }
@keyframes arrive { from { opacity: 0; } }

@media (max-width: 860px) {
  .p-form--inline .p-fields { grid-template-columns: 1fr 1fr; }
  .p-form--inline .btn { grid-column: 1 / -1; justify-content: center; }
  .nature--right { inset: -8% 0; }
  .t-hero__sand { margin-top: var(--space-2); }
}

/* depth: backgrounds that run through two sections, each on its own parallax layer */
.t-hero { overflow-x: clip; overflow-y: visible; }
.nature--span { bottom: -105%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 98%); mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 98%); }
.nature--top.nature--span, .nature--hero.nature--span { height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 96%); }
.nature--right.nature--span { bottom: -105%; }
.nature--span-up { top: -80%; }
.hero__mist {
  position: absolute; left: 0; right: 0; bottom: -30%; height: 60%; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center 70%;
  filter: grayscale(1) contrast(1.1) brightness(1.02); mix-blend-mode: multiply; opacity: .22;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 60%, transparent);
}
.section > .wrap, .t-hero > .wrap, .site-foot > .wrap { z-index: 1; }
.dark { position: relative; z-index: 2; }

/* the walking monk inside a brush circle: join section and footer */
.walker { position: relative; width: clamp(9rem, 16vw, 13rem); aspect-ratio: 929 / 882; margin-inline: auto; }
.walker__enso { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.walker__monk { position: absolute; left: 50%; bottom: -9.7%; height: 118.7%; width: auto; translate: -50% 0; }   /* same proportions as the home hero */
.walker--mark { width: 4.2rem; margin: 0 0 1.8rem; }
.site-foot { background: var(--paper); z-index: 2; }
.nature--low { bottom: 0; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%, #000 55%, transparent 100%); mask-image: linear-gradient(to top, transparent 0%, #000 30%, #000 55%, transparent 100%); }

/* small labels stay readable over the landscapes (checked at 4.5:1 against the darkest tenth of the background) */
.kicker, .p-field label, .line__meta, .foot-grid h4, .small, .pillar small, .p-field small, .cell__k, .strip__sub, .prose h2 { color: var(--ink-soft); }
.dark .kicker, .dark .small { color: rgba(245, 242, 240, .82); }
.t-hero__text, .section > .wrap > .grid > .stack-l[data-lead-text] { position: relative; }
.t-hero__text::before, .lines::before {   /* a breath of paper behind the words, the landscape stays around them */
  content: ''; position: absolute; inset: -14% -18% -14% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 242, 240, .82), rgba(245, 242, 240, .5) 60%, transparent);
}
.lines { position: relative; }
.lines::before { inset: -6% -4%; background: linear-gradient(90deg, transparent, rgba(245, 242, 240, .7) 55%, rgba(245, 242, 240, .78)); }
.band__caption.kicker { color: var(--paper); text-shadow: 0 1px 14px rgba(20, 18, 15, .55); }
.opt { color: var(--ink-soft); font-weight: 400; }
.band::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(20, 18, 15, .66), rgba(20, 18, 15, .25) 55%, transparent); }

/* breath, movement, stillness: three sections, the big sign steps out of each frame */
.sign-out { position: absolute; right: -6%; top: -4%; width: 26%; z-index: 2; }
.sign-out .sign { width: 100%; height: auto; display: block; }
.move--flip .move__media { grid-column: 7 / span 6; grid-row: 1; }
.move--flip .move__text { grid-column: 2 / span 4; grid-row: 1; }
.move--flip .move__media .photo { inset: 9% 0 0 9%; }
.move--flip .move__media .frame__box { inset: 0 9% 9% 0; }
.move--flip .sign-out { right: auto; left: -6%; }
#breath .photo img { height: 118%; }
@media (max-width: 860px) { .move--flip .move__media, .move--flip .move__text { grid-column: auto; grid-row: auto; } }

/* China: Chinese glyphs */
.cell__glyph:lang(zh-Hans) { font-family: 'Noto Serif SC', var(--serif); }

/* tonight's moon */
.moon-glyph { position: relative; display: block; width: 2.6rem; aspect-ratio: 1; flex: none; }
.moon-glyph img, .moon-glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon-glyph img { opacity: 1; }   /* a dark ring, like ink */
.moon-glyph--xl { width: min(72vw, 25rem); margin-inline: auto; }
.moon-mark {
  position: absolute; left: var(--gutter); top: calc(100svh - 6.6rem); z-index: 2;
  display: flex; align-items: center; gap: .9rem; color: var(--ink);
}
.moon-mark .moon-glyph { transition: transform 1.1s var(--ease-out); }
.moon-mark__tip {
  display: grid; gap: .35rem; font: 400 .74rem/1.3 var(--sans); color: var(--ink-soft);
  opacity: 0; transform: translateX(-6px); transition: opacity .45s ease, transform .6s var(--ease-out); pointer-events: none;
}
.moon-mark__tip b { font-weight: 500; letter-spacing: .22em; text-transform: uppercase; font-size: .68rem; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .moon-mark:hover .moon-mark__tip { opacity: 1; transform: none; }
  .moon-mark:hover .moon-glyph { transform: rotate(-18deg) scale(1.06); }
}
.moon-mark:focus-visible .moon-mark__tip { opacity: 1; transform: none; }
@media (hover: none) { .moon-mark__tip { opacity: 1; transform: none; } .moon-mark__tip span { display: none; } }
.moon-hero { grid-column: 7 / span 6; }
.moon-now { border-top: 1px solid var(--ink); padding-top: 1.4rem; max-width: 26rem; display: grid; gap: .5rem; }
.moon-now p { margin: 0; }
.moon-now__name { font: 300 clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem)/1.15 var(--serif); }
.moon-list { list-style: none; padding: 0; margin: var(--space-2) 0 0; border-top: 1px solid var(--line); }
.moon-list__row { display: grid; grid-template-columns: 2.2rem 9rem 1fr auto; align-items: center; gap: var(--space-1); padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.moon-list__row img { width: 1.6rem; height: auto; }
.moon-list__date { font: 300 clamp(1.2rem, 1rem + .8vw, 1.7rem)/1.2 var(--serif); }
@media (max-width: 860px) { .moon-hero { margin-top: var(--space-2); } .moon-list__row { grid-template-columns: 2rem 1fr; } .moon-list__row .small, .moon-list__date { grid-column: 2; } }

/* 404: a quiet detour */
.lost { text-align: center; }
.lost .wrap { justify-items: center; }
.walker--lost { width: clamp(11rem, 22vw, 16rem); margin-bottom: 1rem; }
.lost__go { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* leaving the list: one message at a time, the farewell only after the server confirms */
.unsub__say { display: none; max-width: 36rem; margin-inline: auto; }
.unsub__say .lead { max-width: 26ch; margin-inline: auto; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.unsub__say .body { max-width: 44ch; margin: 1.4rem auto 0; text-align: center; }
.unsub__say .lead + .body { margin-top: 2.2rem; }
[data-unsub][data-state="working"] [data-show="working"], [data-unsub][data-state="done"] [data-show="done"],
[data-unsub][data-state="unknown"] [data-show="unknown"], [data-unsub][data-state="error"] [data-show="error"] { display: block; animation: arrive .9s var(--ease-out); }
[data-unsub][data-state="working"] .lost__go { visibility: hidden; }

/* logo: the mark stays as it is, the name breathes out */
.logo span { transition: letter-spacing .9s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .logo:hover span { letter-spacing: .36em; } }
.moon-glyph svg { overflow: visible; }
.moon-glyph__lit { fill: var(--ink); opacity: .92; }
.moon-glyph--xl .moon-glyph__lit { opacity: .88; }

/* backgrounds that run past the last section never add empty page below the footer */
main { overflow: clip; }


/* ---------- birth profile: six cards, each one an invitation to read on ---------- */
.results { margin-top: var(--space-3); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-1); }
.results[hidden] { display: none; }
.card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: .9rem; min-height: 22rem;
  padding: 1.8rem 1.6rem 1.5rem; background: rgba(245, 242, 240, .82); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(16px);
  transition: background-color .5s ease, transform .8s var(--ease-out), box-shadow .6s ease;
}
.card::before {   /* an ink line draws across the top on hover */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease-out);
}
.results.is-shown .card { opacity: 1; transform: none; transition: opacity .8s ease, transform 1s var(--ease-out), background-color .5s ease, box-shadow .6s ease; }
.results.is-shown .card:nth-child(2) { transition-delay: .06s, .06s, 0s, 0s; }
.results.is-shown .card:nth-child(3) { transition-delay: .12s, .12s, 0s, 0s; }
.results.is-shown .card:nth-child(4) { transition-delay: .18s, .18s, 0s, 0s; }
.results.is-shown .card:nth-child(5) { transition-delay: .24s, .24s, 0s, 0s; }
.results.is-shown .card:nth-child(6) { transition-delay: .3s, .3s, 0s, 0s; }
.card__top { display: flex; align-items: center; gap: .9rem; }
.card__num { font: 300 1.5rem/1 var(--serif); color: var(--ink-soft); }
.card__sign { position: relative; width: 1.9rem; aspect-ratio: 1; margin-left: auto; }
.card__sign .sign { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s ease, transform .9s var(--ease-out); }
.card__sign .sign + .sign { opacity: 0; }
.card__title { font: 300 clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem)/1.08 var(--serif); letter-spacing: -.015em; align-self: end; transition: transform .7s var(--ease-out); }
.card__quality { font: 400 italic 1.08rem/1.5 var(--serif); color: var(--ink-soft); max-width: 28ch; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.card__sw { display: flex; gap: .4rem; }
.card__sw .dot { width: 1.3rem; height: 1.3rem; transition: transform .5s var(--ease-out); }
.card__more { display: inline-flex; align-items: center; gap: .6rem; font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; position: relative; padding-bottom: .35rem; }
.card__more svg { width: .9rem; height: .9rem; transition: transform .5s var(--ease-out); }
.card__more::after {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: -.25rem; height: .4rem;
  background: url(../img/signs/line.svg) left center / 100% 100% no-repeat;
  --p: 0%; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)); mask-image: linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p));
  transition: --p .6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { background: rgba(236, 231, 225, .95); box-shadow: 0 30px 60px -40px rgba(29, 27, 24, .35); }
  .card:hover::before { transform: scaleX(1); }
  .card:hover .card__title { transform: translateX(.4rem); }
  .card:hover .card__sign .sign + .sign { opacity: 1; }
  .card:hover .card__sign .sign { transform: rotate(-12deg); }
  .card:hover .card__more::after { --p: 118%; }
  .card:hover .card__more svg { transform: translateX(.35rem); }
  .card__sw .dot:hover { transform: scale(1.25); }
}
.card:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
@media (max-width: 1080px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .results { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- tradition page: the short answer in the hero, the full reading below ---------- */
.results--one { display: block; margin-top: 0; max-width: 34rem; }
.peek-day { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .4rem 1.4rem; padding-top: 1.4rem; }
.peek-day .kicker { grid-column: 1 / -1; }
.peek-day__title { margin: 0; font: 300 clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem)/1.1 var(--serif); }
.peek-day__go { display: inline-flex; gap: .5rem; align-items: center; font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding-bottom: .5rem; }
.peek-day__go svg { width: .9rem; height: .9rem; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .peek-day__go:hover svg { transform: translateY(.3rem); } }
.results--one.is-shown .peek-day { animation: rise .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.your-day[hidden] { display: none; }
.your-day { padding-top: var(--space-3); }
.day { display: grid; gap: var(--space-2); }
.day__head { display: grid; gap: 1rem; border-top: 1px solid var(--ink); padding-top: var(--space-1); }
.day__title { margin: 0; font: 300 clamp(3rem, 2rem + 4.5vw, 6.4rem)/.98 var(--serif); letter-spacing: -.03em; }
.day__sub { margin: 0; display: flex; align-items: center; gap: 1rem; font: 500 .74rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.day__sw { display: flex; gap: .45rem; }
.day__sw .dot { width: 1.5rem; height: 1.5rem; }
.day__body { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-3); align-items: start; }
.day__story { display: grid; gap: 1.4rem; }
.day__story .lead { margin: 0; max-width: 22ch; }
.day__story .body { max-width: 52ch; font-size: 1.12rem; line-height: 1.75; }
.day__story .note { margin: 0; font: 400 .84rem/1.6 var(--sans); color: var(--earth); max-width: 52ch; }
.day__facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.day__facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: padding-left .6s var(--ease-out), background-color .5s ease; }
.day__facts dt { font: 500 .66rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.day__facts dd { margin: 0; font: 400 1.08rem/1.5 var(--serif); }
@media (hover: hover) and (pointer: fine) { .day__facts > div:hover { padding-left: .6rem; background: rgba(236, 231, 225, .6); } }
.day__practice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1); align-items: center; padding: var(--space-1) var(--space-2); background: rgba(236, 231, 225, .7); max-width: 52rem; }
.day__psign { width: clamp(3.2rem, 6vw, 4.6rem); display: block; }
.day__psign .sign { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .day__practice:hover .day__psign .sign { transform: rotate(-14deg) scale(1.05); } }
.day__practice p { margin: .6rem 0 0; font: 300 clamp(1.25rem, 1rem + .8vw, 1.7rem)/1.4 var(--serif); }
.day__more { margin: 0; }
.your-day.is-shown .day > * { animation: rise 1s var(--ease-out) both; }
.your-day.is-shown .day > *:nth-child(2) { animation-delay: .1s; }
.your-day.is-shown .day > *:nth-child(3) { animation-delay: .2s; }
.your-day.is-shown .day > *:nth-child(4) { animation-delay: .3s; }
@media (max-width: 860px) { .day__body { grid-template-columns: 1fr; gap: var(--space-2); } .day__facts > div { grid-template-columns: 7.5rem 1fr; } }

/* ---------- your path: sign in, profile, week ---------- */
.account { align-items: start; padding-top: 10rem; }
.account__head { margin-bottom: var(--space-2); }
.account__view { display: none; max-width: 40rem; gap: 1.6rem; }
.account[data-view="out"] [data-for="out"], .account[data-view="sent"] [data-for="sent"],
.account[data-view="setup"] [data-for="setup"], .account[data-view="in"] [data-for="in"] { display: grid; animation: rise .9s var(--ease-out) both; }
.account[data-view="in"] [data-for="in"] { max-width: none; }
.account__view .lead { margin: 0; max-width: 28ch; }
.account__preview { margin: 0 0 1.4rem; padding: .8rem 1rem; border-left: 2px solid var(--ink); background: rgba(236, 231, 225, .7); max-width: 40rem; }
.account .p-fields { grid-template-columns: 1.2fr 1fr .8fr; }
.keep { margin-top: var(--space-3); display: grid; gap: 1.2rem; justify-items: start; padding-top: var(--space-1); border-top: 1px solid var(--ink); max-width: 40rem; }
.keep[hidden] { display: none; }
.keep .lead { margin: 0; max-width: 30ch; }
.account__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: var(--space-2); padding-top: var(--space-1); border-top: 1px solid var(--line); }
.account__tools .small { margin-right: auto; }
.link-quiet { background: none; border: 0; padding: 0; font: 400 .8rem/1.4 var(--sans); color: var(--ink-soft); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.link-quiet:hover { color: var(--ink); }

.week-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-1); }
.week-head .lead { margin: 0; }
.week-legend { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; }
.week-legend .shp { width: .75rem; height: .75rem; }
.week { list-style: none; margin: var(--space-2) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.wday {
  display: grid; grid-template-columns: 11rem 3rem 1.25fr 1fr 1.5fr; gap: var(--space-1); align-items: center;
  padding: 1.5rem 1rem; border-bottom: 1px solid var(--line); position: relative;
  transition: background-color .5s ease, padding-left .6s var(--ease-out);
}
.wday p { margin: .25rem 0 .2rem; font: 400 1.12rem/1.35 var(--serif); }
.wday__date { display: grid; gap: .5rem; }
.wday__name { font: 300 1.45rem/1.1 var(--serif); }
.wday__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font: 500 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: .32rem .45rem; border: 1px solid var(--line); color: var(--ink-soft); }
.tag--today { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag--yours { border-color: var(--ink); color: var(--ink); }
.wday__moon { width: 2.4rem; }
.wday__buddha { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.wday__buddha .dot { width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.wday__practice { display: grid; grid-template-columns: 1.8rem 1fr; gap: .9rem; align-items: center; }
.wday__practice p { font: 400 italic 1rem/1.45 var(--serif); color: var(--ink-soft); margin: 0; }
.wday__sign .sign { width: 100%; height: auto; display: block; }
.wday.is-today { background: rgba(236, 231, 225, .75); }
.wday.is-yours::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .wday:hover { background: rgba(236, 231, 225, .9); padding-left: 1.5rem; } }
@media (max-width: 1080px) {
  .wday { grid-template-columns: 9rem 2.4rem 1fr 1fr; }
  .wday__practice { grid-column: 3 / -1; }
}
@media (max-width: 680px) {
  .account .p-fields { grid-template-columns: 1fr; }
  .week-head { grid-template-columns: 1fr; }
  .wday { grid-template-columns: 1fr auto; gap: 1rem; padding: 1.4rem .4rem; }
  .wday__moon { grid-column: 2; grid-row: 1; }
  .wday__buddha, .wday__planet, .wday__practice { grid-column: 1 / -1; }
}
.week { background: rgba(245, 242, 240, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero__title { padding-inline: var(--gutter); }
@media (min-width: 1900px) {   /* very wide screens: the hero grows with the room */
  .hero__stage { width: min(84vw, 980px, calc((100svh - 21rem) * 1.316)); }
}

/* ---------- your path: today, perks, tappable terms ---------- */
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.perks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 1rem; align-items: start; }
.perks .sign { width: 100%; height: auto; margin-top: .15rem; }
.perks b { display: block; font: 500 .7rem/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.perks span { font: 400 1.05rem/1.5 var(--serif); color: var(--ink-soft); }
.account__in { max-width: 58rem; }
.today { display: grid; gap: var(--space-1); padding: var(--space-2); background: rgba(245, 242, 240, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 1px solid var(--ink); }
.today__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; }
.today__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.today__main { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1); align-items: center; }
.today__title { margin: .4rem 0 .8rem; font: 300 clamp(2.2rem, 1.6rem + 2.6vw, 4rem)/1.02 var(--serif); letter-spacing: -.02em; }
.today__line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font: 400 1.05rem/1.4 var(--serif); }
.today__line > span { color: var(--ink-soft); }
.today__line .dot { width: 1.2rem; height: 1.2rem; }
.today__moon { width: clamp(4.5rem, 10vw, 7rem); }
.today__practice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1); align-items: center; padding-top: var(--space-1); border-top: 1px solid var(--line); }
.today__practice p { margin: .5rem 0 0; font: 300 clamp(1.2rem, 1rem + .7vw, 1.6rem)/1.4 var(--serif); }
.account-more[hidden] { display: none; }
.account-more { padding-top: var(--space-3); }

/* a word you can tap: a soft underline, a small plus that turns */
.term { display: inline-flex; align-items: baseline; gap: .35em; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: rgba(29, 27, 24, .3); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color .4s ease; }
.term i { position: relative; width: .55em; height: .55em; flex: none; transition: transform .5s var(--ease-out); }
.term i::before, .term i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.term i::after { transform: rotate(90deg); }
.term[aria-expanded="true"] i { transform: rotate(45deg); }
.term:hover, .term[aria-expanded="true"] { text-decoration-color: var(--ink); }
.term:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.tag.term, .wday__tags .term { font: 500 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: .32rem .45rem; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; }
.wday__tags .term i, .today__tags .term i { display: none; }
.today__tags .term { font: 500 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: .32rem .45rem; border: 1px solid var(--ink); text-decoration: none; }
.explain { grid-column: 1 / -1; margin: 0; padding: 1rem 1.2rem; border-left: 2px solid var(--ink); background: rgba(236, 231, 225, .85);
  font: 400 italic 1.08rem/1.55 var(--serif); color: var(--ink); max-width: 58ch; }
.explain.is-in { animation: rise .6s var(--ease-out) both; }
.day__facts .explain { grid-column: 1 / -1; margin: .4rem 0 0; }

/* ---------- your path: intro on the left, sign in on the right ---------- */
.account[data-view="out"] [data-for="out"] { max-width: none; display: grid; grid-template-columns: 6fr 5fr; gap: var(--space-3); align-items: start; }
.account__intro { display: grid; gap: var(--space-2); padding: var(--space-2); background: rgba(245, 242, 240, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.account__intro .lead { color: var(--ink); max-width: 22ch; }
.perks { gap: 1.8rem; }
.perks span { color: var(--ink); font-size: 1.12rem; line-height: 1.6; }
.perks b { margin-bottom: .35rem; color: var(--ink); }
.account__preview { color: var(--ink); background: rgba(245, 242, 240, .92); }
.account .lead, .account .small, .account .kicker { color: var(--ink); }
.auth { background: var(--paper); padding: var(--space-2); border-top: 1px solid var(--ink); box-shadow: 0 40px 80px -50px rgba(29, 27, 24, .45); display: grid; gap: var(--space-1); }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth__tabs button { background: none; border: 0; padding: .9rem 0; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; position: relative; }
.auth__tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.auth__tabs button[aria-selected="true"] { color: var(--ink); }
.auth__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.auth__form { display: grid; gap: 1.4rem; }
.auth__form p { margin: 0; }
.auth__form .p-field input { font-size: 1.15rem; }
.auth__go { width: 100%; justify-content: center; }
.pass { position: relative; }
.pass input { width: 100%; padding-right: 4rem; }
.pass__show { position: absolute; right: 0; bottom: .5rem; background: none; border: 0; font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.auth__alt { color: var(--ink); }
@media (max-width: 960px) { .account[data-view="out"] [data-for="out"] { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- the path behind a tradition: school, history, teachers ---------- */
.path-of__meaning { margin: 1rem 0 0; font: 300 italic clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.2 var(--serif); color: var(--ink-soft); }
.path-of__lead { margin: var(--space-1) 0 0; max-width: 30ch; }
.path-of__grid { display: grid; grid-template-columns: 6fr 5fr; gap: var(--space-3); margin-top: var(--space-2); align-items: start; }
.path-of__text .body { max-width: 52ch; font-size: 1.1rem; line-height: 1.75; }
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0; border-left: 1px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before { content: ''; position: absolute; left: -.3rem; top: .45rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); transition: background-color .4s ease; }
.timeline li:hover::before { background: var(--ink); }
.timeline__when { font: 500 .68rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.timeline p { margin: .35rem 0 0; font: 400 1.05rem/1.55 var(--serif); color: var(--ink); max-width: 44ch; }
.path-of__kicker { display: block; margin-top: var(--space-3); }
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); margin-top: 1.4rem; }
.teacher { padding: 1.6rem 1.4rem; background: rgba(245, 242, 240, .85); border-top: 1px solid var(--ink); display: grid; gap: .6rem; align-content: start; transition: background-color .5s ease, transform .7s var(--ease-out); }
.teacher h3 { margin: 0; font: 400 1.35rem/1.2 var(--serif); }
.teacher__dates { font: 500 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.teacher p { margin: 0; font: 400 1rem/1.55 var(--serif); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .teacher:hover { background: rgba(236, 231, 225, .95); transform: translateY(-4px); } }
@media (min-width: 1081px) { .teachers:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1080px) { .teachers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .path-of__grid { grid-template-columns: 1fr; gap: var(--space-2); } }
@media (max-width: 560px) { .teachers { grid-template-columns: 1fr; } }
.setup__go { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

/* native writing beside the English */
.cell__glyph:lang(vi-Hani) { font-family: 'Noto Serif JP', var(--serif); }
.cell__glyph:lang(th), .animals__word:lang(th) { font-family: 'Noto Serif Thai', var(--serif); }
.cell__glyph:lang(my) { font-family: 'Noto Serif Myanmar', var(--serif); }
.cell__glyph:lang(bo), .animals__word:lang(bo), .focus__glyph:lang(bo), .focus__glyph-line:lang(bo) { font-family: 'Noto Serif Tibetan', var(--serif); font-weight: 400; }
.cell__glyph--word { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.6; }
.cell__glyph:lang(my) { line-height: 1.9; }
.cell__glyph:lang(bo) { font-size: 3.4rem; line-height: 1.2; }
.cell__k .dot { display: inline-block; width: .8rem; height: .8rem; margin-right: .6rem; vertical-align: -.12rem; }
.cell__note { margin: .2rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font: italic 400 .95rem/1.5 var(--serif); color: var(--ink-soft); }
.set-note { max-width: 62ch; margin: 1.2rem 0 0; color: var(--ink-soft); }
.set-note + .set { margin-top: var(--space-2); }

/* a set and its focus: one option always open beside the others */
.pick { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; background: none; border: 0; padding: 0 0 .15em; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .6s var(--ease-out); }
.pick:hover, .pick:focus-visible, .pick[aria-pressed="true"] { background-size: 100% 1px; }
.cell--pick { cursor: pointer; }
.cell--pick .pick::after { content: ''; position: absolute; inset: 0; }
.cell--pick:hover .pick { background-size: 100% 1px; }
.cell--pick .cell__glyph { transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cell--pick:hover .cell__glyph { transform: translateY(-.2rem); } }
.cell.is-picked { background: #fbfaf8; box-shadow: inset 0 2px 0 var(--ink); }
.animals__one { display: grid; justify-items: center; gap: .3rem; }
.animals__word { font-size: 1.35rem; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--ink-soft); transition: color .4s ease; }
.animals .pick { color: var(--ink-soft); }
.animals__one.is-picked .pick, .animals__one.is-picked .animals__word { color: var(--ink); }

.focus { display: grid; grid-template-columns: 5fr 7fr; margin-top: var(--space-2); background: var(--paper); border: 1px solid var(--line); text-align: left; }
.focus + .set, .animals + .focus { margin-top: var(--space-2); }
.focus__art { background: var(--paper-2); display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.focus__ring { position: relative; width: min(92%, 24rem); aspect-ratio: 929 / 882; }
.focus__enso { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.focus__img { position: absolute; left: 19%; top: 21%; width: 62%; height: 56%; object-fit: contain; }
.focus__glyph { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 18% 4%; text-align: center;
  font: 300 clamp(3.4rem, 2.4rem + 3vw, 5.4rem)/1.2 'Noto Serif SC', var(--serif); color: var(--ink); }
.focus__glyph:lang(ja), .focus__glyph:lang(vi-Hani), .focus__glyph-line:lang(vi-Hani) { font-family: 'Noto Serif JP', var(--serif); }
.focus__glyph:lang(th) { font-family: 'Noto Serif Thai', var(--serif); font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.6; }
.focus__glyph:lang(my) { font-family: 'Noto Serif Myanmar', var(--serif); font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.9; }
.focus__glyph:lang(bo) { font-size: clamp(3.6rem, 2.6rem + 3vw, 5.6rem); }
.focus__text { padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; gap: .9rem; align-content: center; }
.focus__glyph-line { font: 300 2.6rem/1.2 'Noto Serif SC', var(--serif); }
.focus__glyph-line:lang(bo) { font-size: 2.2rem; line-height: 1.6; }
.focus__name { margin: 0; font: 400 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/1.05 var(--serif); }
.focus__sub { margin: 0; font: 400 1.05rem/1.5 var(--serif); color: var(--muted); }
.focus__text .body { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.focus__quality { font-style: italic; }
.focus__small, .focus__hint { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.focus__hint { padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); }
/* changing option: the old one blurs out, the new one settles in */
.focus__img, .focus__glyph, .focus__text > :not(.focus__hint) { transition: opacity .26s ease, filter .26s ease, transform .5s var(--ease-out); }
.focus.is-swapping .focus__img, .focus.is-swapping .focus__glyph, .focus.is-swapping .focus__text > :not(.focus__hint) { opacity: 0; filter: blur(4px); transform: translateY(.4rem); }
@media (max-width: 760px) {
  .focus { grid-template-columns: 1fr; }
  .focus__ring { width: min(70%, 15rem); }
}
@media (prefers-reduced-motion: reduce) {
  .focus.is-swapping .focus__img, .focus.is-swapping .focus__glyph, .focus.is-swapping .focus__text > :not(.focus__hint) { transform: none; filter: none; }
}
.focus [hidden] { display: none !important; }
.made-by { color: inherit; text-decoration: none; white-space: nowrap; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease-out); }
.made-by:hover, .made-by:focus-visible { background-size: 100% 1px; }



/* teacher pages */
.teacher--link { color: inherit; text-decoration: none; }
.teacher__more { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; color: var(--ink); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.teacher__more .shp { width: 1rem; height: 1rem; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .teacher--link:hover .teacher__more .shp { transform: translateX(.3rem); } }

.tch-crumb { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-soft); text-decoration: none; }
.tch-crumb .shp { width: 1rem; height: 1rem; transform: scaleX(-1); transition: transform .5s var(--ease-out); }
.tch-crumb:hover .shp { transform: scaleX(-1) translateX(.3rem); }
.tch-hero .t-hero__text { position: relative; z-index: 2; }
.tch-hero__native { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font: 400 1.1rem/1.5 var(--serif); color: var(--ink-soft); }
.tch-native { font: 300 clamp(2rem, 1.5rem + 1.6vw, 2.8rem)/1.5 'Noto Serif Thai', var(--serif); color: var(--ink); }
.tch-hero__school { letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; color: var(--ink-soft); }
.tch-hero__art { grid-column: 7 / span 6; display: grid; place-items: center; }
.tch-ring { position: relative; width: min(100%, 36rem); aspect-ratio: 929 / 882; }
.tch-ring__enso { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .92; }
.tch-hero__photo { position: absolute; left: 13%; top: 12%; width: 74%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.tch-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.tch-intro { padding-top: 0; }
.tch-answer { max-width: 40ch; }
.tch-h2 { margin: 0; }
.tch-h2 .brush { display: block; }
.tch-sub { margin-top: 1rem; max-width: 52ch; color: var(--ink-soft); }

.tch-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-2); }
.tch-why__one { display: grid; gap: .8rem; align-content: start; }
.tch-why__one h3 { margin: 0; font: 400 1.6rem/1.15 var(--serif); }
.tch-why__one .body { margin: 0; color: var(--ink-soft); }
.tch-why__sign { width: 3.2rem; height: 3.2rem; }

/* the life as a path: a brush line inks itself and the monk walks down it */
.tch-path { position: relative; margin-top: var(--space-2); }
.tch-path__line { position: absolute; left: 50%; top: 0; width: 40px; height: 100%; translate: -50% 0; overflow: visible; }
.tch-path__line path { fill: none; stroke-linecap: round; }
.tch-path__ghost { stroke: var(--line); stroke-width: 2; }
.tch-path__ink { stroke: var(--ink); stroke-width: 3; }
.tch-still .tch-path__ink { stroke-dasharray: none; }
.tch-path__monk { position: absolute; left: 50%; top: 0; height: 4.4rem; width: auto; translate: -50% -50%; z-index: 2; filter: drop-shadow(0 0 .6rem var(--paper)); }
.tch-still .tch-path__monk { display: none; }
.tch-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--space-3) + 40px); }
.tch-step { padding: 1.2rem 0 1.6rem; max-width: 30rem; }
.tch-step:nth-child(odd) { grid-column: 1; justify-self: end; text-align: right; }
.tch-step:nth-child(even) { grid-column: 2; margin-top: 4.5rem; }
.tch-step + .tch-step:nth-child(odd) { margin-top: -2.5rem; }
.tch-step__when { display: block; font: 300 2rem/1 var(--serif); color: var(--ink); margin-bottom: .5rem; }
.tch-step p { margin: 0; font: 400 1.05rem/1.6 var(--serif); color: var(--ink-soft); }

/* teachings told at length, like the sections of the home page */
.tch-feature__title { margin: 0; }
.tch-feature__title .brush { display: block; }
.tch-quote { margin: .6rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--ink); }
.tch-quote p { margin: 0; font: italic 400 clamp(1.25rem, 1.1rem + .5vw, 1.55rem)/1.45 var(--serif); color: var(--ink); }
.tch-quote footer { margin-top: .6rem; color: var(--ink-soft); }
.tch-teachings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--space-1); }
.tch-teach { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.8rem); display: grid; gap: .9rem; align-content: start; transition: background-color .5s ease; }
@media (hover: hover) and (pointer: fine) { .tch-teach:hover { background: #fbfaf8; } }
.tch-teach__num { font: 500 .7rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.tch-teach h3 { margin: 0; font: 400 1.7rem/1.15 var(--serif); }
.tch-teach .body { margin: 0; color: var(--ink-soft); }
.tch-teach .tch-quote p { font-size: 1.2rem; }
.tch-teach__src { margin: 0; color: var(--ink-soft); }

/* the dark band: one sentence, lit word by word */
.tch-band__wrap { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; }
.tch-band__walker { width: clamp(9rem, 16vw, 13rem); filter: invert(1); }
.tch-band__quote { margin: 0; }
.tch-band__quote blockquote { margin: 0; }
.tch-words { margin: 0; font: 300 clamp(2rem, 1.2rem + 3vw, 4rem)/1.15 var(--serif); color: var(--paper); }
.tch-word { opacity: .18; }
.tch-still .tch-word, .no-motion .tch-word { opacity: 1; }
.tch-band__quote figcaption { margin-top: 1.6rem; color: rgba(245, 242, 240, .78); }

/* a forest day */
.tch-dayblock { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-3); align-items: start; }
.tch-src { color: var(--ink-soft); }
.tch-day { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tch-day li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); transition: background-color .5s ease; }
@media (hover: hover) and (pointer: fine) { .tch-day li:hover { background: rgba(236, 231, 225, .5); } }
.tch-day__time { font: 300 1.6rem/1.1 var(--serif); color: var(--ink); }
.tch-day p { margin: 0; font: 400 1.05rem/1.6 var(--serif); color: var(--ink-soft); }

.tch-practice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: center; max-width: 60rem; }
.tch-practice__sign { width: clamp(4.5rem, 8vw, 7rem); height: auto; }
.tch-hisday__set { margin-top: var(--space-2); }
.tch-hisday__cta { margin: var(--space-2) 0 0; }
.tch-places__list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tch-places__list li { background: var(--paper); padding: 1.4rem 1.2rem; display: grid; gap: .5rem; align-content: start; }
.tch-places__list b { font: 400 1.15rem/1.3 var(--serif); color: var(--ink); }
.tch-places__list span { font: 400 .98rem/1.5 var(--serif); color: var(--ink-soft); }
.tch-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.tch-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.tch-list li { font: 400 1.1rem/1.45 var(--serif); }
.tch-list li span { display: block; font-size: .95rem; color: var(--ink-soft); }
.tch-list a, .tch-list b { color: var(--ink); font-weight: 400; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease-out); }
.tch-list b { background-size: 0 1px; }
.tch-list a:hover { background-size: 0 1px; }
.tch-list--small li { font-size: .98rem; }
.tch-next { display: grid; }
@media (max-width: 1080px) { .tch-places__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .tch-hero__art { grid-column: 1 / -1; }
  .tch-why, .tch-more, .tch-teachings, .tch-dayblock { grid-template-columns: 1fr; }
  .tch-band__wrap { grid-template-columns: 1fr; justify-items: start; gap: var(--space-2); }
  .tch-path__line { left: 1.2rem; }
  .tch-path__monk { left: 1.2rem; height: 3.4rem; }
  .tch-steps { grid-template-columns: 1fr; padding-left: 3.4rem; }
  .tch-step:nth-child(odd), .tch-step:nth-child(even), .tch-step + .tch-step:nth-child(odd) { grid-column: 1; justify-self: start; text-align: left; margin-top: 0; }
}
@media (max-width: 560px) { .tch-places__list { grid-template-columns: 1fr; } .tch-day li { grid-template-columns: 5rem 1fr; } }
/* the teacher page is long: a little less air between its parts */
body[data-page="teacher"] .section { padding-block: var(--space-3); }
body[data-page="teacher"] .section--tight { padding-block: var(--space-2); }
body[data-page="teacher"] .tch-hero { min-height: 92svh; }
.tch-hisday__two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .tch-hisday__two { grid-template-columns: 1fr; } }
.tch-native:lang(my) { font-family: 'Noto Serif Myanmar', var(--serif); line-height: 1.8; }
.tch-native:lang(bo) { font-family: 'Noto Serif Tibetan', var(--serif); font-weight: 400; }
.tch-native:lang(ja) { font-family: 'Noto Serif JP', var(--serif); }
.tch-native:lang(zh-Hans) { font-family: 'Noto Serif SC', var(--serif); }
.tch-native:lang(zh-Hant) { font-family: 'Noto Serif TC', var(--serif); }
.tch-native:lang(vi) { font-family: var(--serif); }
