/* Yurei Studios — 幽霊
   Visual system: ink-black ground, deep velvet crimson, quiet mist, original red spider lily linework.
   No external fonts, scripts, trackers or cookies. */

:root {
  /* Owner-approved Studio paint: preserve these exact stops across all red materials. */
  --brand-crimson: #79080b;
  --brand-crimson-light: #820b10;
  --brand-crimson-dark: #6d0609;
  --brand-crimson-edge: #961b21;
  --brand-crimson-paint: linear-gradient(178deg, #820b10 6%, #79080b 55%, #6d0609 100%);

  --ink: #030101;
  --ink-2: #0c0505;
  --ink-3: #120707;
  --line: rgba(236, 226, 218, .08);
  --line-2: rgba(236, 226, 218, .15);
  --paper: #eeeae2;
  --paper-2: #bdb3ac;
  --paper-3: #8f8580;

  /* Crimson paints keep a dominant red channel with a slight cool bias; highlights never come from
     mixing toward white or blue, which is what reads as pink. */
  --shadow-red: #260102;
  --wine: #3d0204;        /* oxblood */
  --royal: #490305;       /* primary */
  --crimson: #580407;
  --crimson-hi: #840d12;
  --ember: #79080b;       /* lacquer: rules, ornaments, crest */
  --red-ink: var(--brand-crimson); /* red materials; readable links and focus stay ivory */
  --glow: rgba(99, 5, 8, .55);
  --paper-warm: #d9cabb;  /* small labels: ivory, so red stays an accent */

  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jp: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", "Yu Gothic", YuGothic, "Hiragino Sans", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-lux: cubic-bezier(.19, 1, .22, 1);   /* arrivals: long, settling */
  --ease-silk: cubic-bezier(.65, .05, .25, 1); /* line drawing and light: slow in, slow out */
  --asanoha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48.497' viewBox='0 0 28 48.497'%3E%3Cpath d='M-28 0L0 0M-14 -24.25L0 0M-14 -8.08L0 0M-14 8.08L0 0M-14 24.25L0 0M-14 24.25L0 16.17M-14 24.25L0 32.33M-14 24.25L0 48.5M-14 24.25L14 24.25M-14 40.41L0 48.5M0 -16.17L0 0M0 0L0 16.17M0 0L14 -24.25M0 0L14 -8.08M0 0L14 8.08M0 0L14 24.25M0 0L28 0M0 16.17L14 24.25M0 32.33L0 48.5M0 32.33L14 24.25M0 48.5L14 24.25M0 48.5L14 40.41M14 -24.25L28 0M14 -8.08L28 0M14 8.08L14 24.25M14 8.08L28 0M14 24.25L14 40.41M14 24.25L28 0M14 24.25L28 16.17M14 24.25L28 32.33M14 24.25L28 48.5M14 24.25L42 24.25M14 40.41L28 48.5M28 -16.17L28 0M28 0L28 16.17M28 0L42 -24.25M28 0L42 -8.08M28 0L42 8.08M28 0L42 24.25M28 0L56 0M28 16.17L42 24.25M28 32.33L28 48.5M28 32.33L42 24.25M28 48.5L42 24.25M28 48.5L42 40.41' fill='none' stroke='%23961b21' stroke-width='.5'/%3E%3C/svg%3E");
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1400px;
  --nav-h: 76px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Film grain: a single static SVG noise tile. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .012;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }

::selection { background: var(--crimson); color: #fff; }

:focus-visible {
  outline: 2px solid #c4a08b;
  outline-offset: 4px;
  border-radius: 4px;
}

a { color: var(--paper); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .4s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ───────────────────────── Crest ───────────────────────── */

.crest {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Lacquer paint: lit crimson at the crown, oxblood at the stem (gradient lives in the page sprite). */
.crest__ring,
.crest__fil { stroke: url(#crest-lacquer); }
.crest__ring { stroke-width: var(--crest-ring, .9); opacity: .8; }
.crest__ring--outer { stroke-width: var(--crest-ring-o, .45); opacity: .4; }
.crest__fil { stroke-width: var(--crest-fil, .8); }
.crest__anther,
.crest__petals,
.crest__stem,
.crest__finial,
.crest__beads { fill: url(#crest-lacquer); stroke: none; }
.crest__finial { opacity: .8; }
.crest__beads { opacity: .75; }
.crest__heart { fill: var(--ink); }
/* The crest is one shared <symbol>; per-size tuning flows in through custom properties. */
.crest__ring--outer,
.crest__beads { display: var(--crest-outer, inline); }
.brand__mark, .divider .crest { --crest-outer: none; }

/* ───────────────────────── Navigation ───────────────────────── */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .7s var(--ease), border-color .7s var(--ease);
}
.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(150, 27, 33, .55) 50%, transparent 90%);
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-lux);
  pointer-events: none;
}
.site-nav.is-scrolled::after { transform: scaleX(1); }
.site-nav.is-scrolled {
  background: rgba(6, 5, 5, .76);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line);
}
html:not(.js) .site-nav {
  background: rgba(6, 5, 5, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  transition: height .7s var(--ease);
}
.site-nav.is-scrolled .nav__inner { height: 64px; }

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .34em;
  white-space: nowrap;
}
.brand__mark {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--ember);
  --crest-fil: 1.55;
  --crest-ring: 1.4;
  --crest-ring-o: .9;
  transition: filter .9s var(--ease), color .9s var(--ease);
}
.brand:hover .brand__mark { filter: brightness(1.18) drop-shadow(0 0 8px rgba(150, 27, 33, .5)); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.nav__links a {
  position: relative;
  padding: 10px 0;
  color: var(--paper-2);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .5s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .8s var(--ease-lux);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--paper); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.nav__toggle span:not(.sr-only),
.nav__toggle span:not(.sr-only)::before {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .6s var(--ease-lux), top .6s var(--ease-lux), width .6s var(--ease-lux);
}
.nav__toggle span:not(.sr-only) { top: 19px; }
.nav__toggle span:not(.sr-only)::before { content: ""; left: 0; top: 7px; width: 14px; }
.site-nav.is-open .nav__toggle span:not(.sr-only) { top: 22px; transform: rotate(45deg); }
.site-nav.is-open .nav__toggle span:not(.sr-only)::before { top: 0; width: 22px; transform: rotate(-90deg); }

@media (max-width: 819px) {
  .js .nav__toggle { display: block; }

  .js .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gutter) 64px;
    background:
      radial-gradient(ellipse 90% 60% at 85% 8%, rgba(84, 4, 6, .5), transparent 70%),
      radial-gradient(ellipse 70% 50% at 0% 100%, rgba(64, 2, 4, .4), transparent 70%),
      var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--ease), visibility 0s linear .6s;
  }
  .js .site-nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transition: opacity .6s var(--ease);
  }
  /* Menu overlay ornament: lattice glow in the upper corner, outlined 幽霊 below. */
  .js .nav__links::before,
  .js .nav__links::after {
    content: "";
    position: absolute;
    pointer-events: none;
  }
  .js .nav__links::before {
    inset: 0;
    background: var(--asanoha) right top / 28px 48.497px;
    opacity: .22;
    -webkit-mask: radial-gradient(ellipse 70% 45% at 100% 0%, #000, transparent 80%);
    mask: radial-gradient(ellipse 70% 45% at 100% 0%, #000, transparent 80%);
  }
  .js .nav__links::after {
    content: "幽霊" / "";
    right: calc(var(--gutter) - 4px);
    bottom: max(36px, env(safe-area-inset-bottom, 0px));
    writing-mode: vertical-rl;
    font: 400 2.6rem/1 var(--jp);
    letter-spacing: .3em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(150, 27, 33, .45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s var(--ease) .25s, transform 1.4s var(--ease-lux) .25s;
  }
  .js .site-nav.is-open .nav__links::after { opacity: 1; transform: none; }
  /* A fixed overlay must not be trapped by the header's backdrop-filter. */
  .js .site-nav.is-open {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .js .nav__links a {
    font: 400 clamp(2.2rem, 10vw, 3.1rem)/1.15 var(--serif);
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--paper);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .9s var(--ease-lux), transform .9s var(--ease-lux), color .4s;
  }
  .js .nav__links a::after { bottom: 6px; }
  .js .site-nav.is-open .nav__links a { opacity: 1; transform: none; }
  .js .site-nav.is-open .nav__links a:nth-child(2) { transition-delay: .06s; }
  .js .site-nav.is-open .nav__links a:nth-child(3) { transition-delay: .12s; }
  .js .site-nav.is-open .nav__links a:nth-child(4) { transition-delay: .18s; }
  .js .nav__links a[aria-current="page"] { color: var(--red-ink); }

  /* Without JavaScript the links simply wrap under the brand. */
  html:not(.js) .nav__inner { flex-wrap: wrap; height: auto; padding-block: 14px; gap: 6px 24px; }
  html:not(.js) .nav__links { flex-wrap: wrap; gap: 4px 20px; }
}

body.menu-open { overflow: hidden; }

/* ───────────────────────── Shared ornaments ───────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 0 30px;
  color: var(--paper-warm);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.eyebrow__rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
}

/* A refined seal: hairline double border, ink-red character, velvet fill. */
.hanko {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(150, 27, 33, .7);
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(117, 7, 10, .38), rgba(84, 4, 6, .16));
  color: #961b21;
  font: 400 1.2rem/1 var(--jp);
  letter-spacing: 0;
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(150, 27, 33, .35), 0 12px 32px -16px var(--glow);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  overflow: hidden;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .8s var(--ease-lux), box-shadow .8s var(--ease-lux), border-color .6s, background-color .6s, color .6s;
}
.btn__arrow { transition: transform .8s var(--ease-lux); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary {
  border: 1px solid #961b21;
  background: linear-gradient(130deg, #580407 0%, #370204 65%, #260102 100%);
  color: #f6ece6;
  box-shadow: 0 18px 44px -24px rgba(117, 7, 10, .95), inset 0 1px 0 rgba(214, 96, 58, .14);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(232, 128, 84, .14) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.4s var(--ease-lux);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 22px 50px -22px rgba(128, 10, 15, 1), inset 0 1px 0 rgba(214, 96, 58, .2); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  border: 1px solid #510406;
  color: var(--paper);
  background: rgba(12, 2, 2, .25);
}
.btn--ghost:hover { border-color: rgba(150, 27, 33, .6); background: rgba(84, 4, 6, .18); }

.link {
  color: var(--paper);
  text-decoration: none;
  background:
    linear-gradient(var(--ember), var(--ember)) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .9s var(--ease-lux), color .5s;
}
.link:hover { color: #fff; background-size: 100% 1px, 100% 1px; }

/* Lily linework, shared by the hero art and the accent symbol. */
.lily-filaments path,
.lily-stem,
.lily-veins path { fill: none; stroke-linecap: round; }
.lily-filaments path { stroke-width: .95; stroke-opacity: var(--o, 1); }
.lily-stem { stroke: url(#lg-stem); stroke-width: 2.2; }
.lily-anthers ellipse { fill: #961b21; }
.lily-petals path { stroke: rgba(150, 27, 33, .78); stroke-width: .7; }
.lily-veins path { stroke: rgba(150, 27, 33, .55); stroke-width: .6; }
.lily-heart { fill: #170404; }
.lily-bud__body { fill: url(#lg-bud); stroke: rgba(150, 27, 33, .3); stroke-width: .5; }
.lily-bud__seam { fill: none; stroke: rgba(30, 4, 4, .7); stroke-width: .7; }
.lily-bud__bract { fill: none; stroke: #4a0305; stroke-width: 1.1; stroke-linecap: round; }

.bloom--accent .lily-filaments path,
.bloom--edge .lily-filaments path { stroke: currentColor; stroke-width: 1.1; }
.bloom--accent .lily-petals path,
.bloom--edge .lily-petals path { fill: currentColor; fill-opacity: .5; stroke: currentColor; stroke-opacity: .7; }
.bloom--accent .lily-veins path,
.bloom--edge .lily-veins path { stroke: var(--ink); stroke-opacity: .5; }
.bloom--accent .lily-anthers ellipse,
.bloom--edge .lily-anthers ellipse { fill: currentColor; }
.bloom--accent .lily-heart,
.bloom--edge .lily-heart { fill: var(--ink); }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(640px, min(100svh, 1040px));
  padding-block: calc(var(--nav-h) + 40px) 88px;
  overflow: hidden;
}

.hero__sky,
.hero__fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__sky {
  z-index: -4;
  background:
    radial-gradient(ellipse 54% 70% at 72% 34%, rgba(61, 2, 4, .65), transparent 75%),
    radial-gradient(ellipse 64% 32% at 54% 52%, rgba(55, 2, 4, .42), transparent 76%),
    radial-gradient(ellipse 82% 88% at 82% 2%, rgba(30, 0, 0, .6), transparent 80%),
    radial-gradient(ellipse 65% 39% at 69% 76%, rgba(61, 2, 4, .28), transparent 77%),
    linear-gradient(180deg, #060101, #020101);
}
.hero__fog { z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ink) 94%);
}

.mist {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 42%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(87, 4, 7, .11), transparent 72%);
  animation: none;
  will-change: transform;
}
.mist--1 { top: 50%; }
.mist--2 { top: 66%; height: 36%; opacity: .8; animation-duration: 90s; animation-direction: alternate-reverse; }
.mist--3 { top: 14%; height: 30%; opacity: .5; animation-duration: 110s; }
@keyframes drift {
  from { transform: translate3d(-6%, 0, 0); }
  to   { transform: translate3d(6%, -3%, 0); }
}

.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__art {
  position: absolute;
  z-index: -3;
  bottom: -2%;
  right: calc(var(--gutter) * -1 - 3vw);
  height: min(104%, 1080px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--sy, 0) * .16px + var(--py, 0) * -5px), 0);
  animation: fade 2.6s var(--ease) both;
}
.moon {
  position: absolute;
  left: 58.75%;
  top: 36%;
  width: 80%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 40%, rgba(110, 6, 9, .44), rgba(72, 3, 5, .36) 36%, rgba(30, 4, 4, .26) 60%, transparent 70.5%);
  animation: none;
}
.enso {
  position: absolute;
  left: 58.75%;
  top: 36%;
  width: 62%;
  translate: -50% -50%;
  overflow: visible;
  fill: none;
  stroke: rgba(150, 27, 33, .24);
  stroke-width: .3;
  stroke-linecap: round;
}
.enso circle { stroke-dasharray: 1; animation: draw 4.2s var(--ease) .4s both; }
@keyframes breathe {
  from { opacity: .86; }
  to   { opacity: 1; }
}

.lily {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
@media (min-width: 900px) {
  .lily { filter: drop-shadow(0 0 14px rgba(99, 5, 8, .55)); }
}
.plant--far { opacity: .4; }

/* One quiet bloom on load, then stillness. */
.hero .lily-stem { stroke-dasharray: 1; animation: draw-up 2.8s var(--ease) .2s both; }
.hero .lily-filaments path {
  stroke-dasharray: 1;
  animation: draw 3.4s var(--ease) both;
  animation-delay: calc(.6s + var(--i) * 28ms);
}
.hero .lily-petals path,
.hero .lily-heart {
  transform-box: view-box;
  transform-origin: var(--cx) var(--cy);
  animation: bloom-in 2.4s var(--ease-lux) both;
  animation-delay: calc(1.3s + var(--i, 0) * 40ms);
}
.hero .lily-veins,
.hero .lily-anthers { animation: fade 2s var(--ease) 2.4s both; }
.hero .lily-bud { animation: fade 2.4s var(--ease) 1.6s both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes draw-up { from { stroke-dashoffset: -1; } }
@keyframes bloom-in { from { opacity: 0; transform: scale(.88); } }
@keyframes fade { from { opacity: 0; } }

.hero__kanji {
  position: absolute;
  z-index: -1;
  top: calc(var(--nav-h) + 96px);
  left: max(calc(50% + 10px), 640px);
  margin: 0;
  writing-mode: vertical-rl;
  font: 400 clamp(2.4rem, 4vw, 4rem)/1 var(--jp);
  letter-spacing: .3em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 27, 33, .3);
  user-select: none;
  animation: fade 3s var(--ease) 1.6s both;
}

/* As the hero scrolls away its text recedes slightly ahead of the artwork (--sy is only set
   when motion is allowed). */
.hero__inner {
  position: relative;
  width: 100%;
  opacity: calc(1 - var(--sy, 0) / 760);
  transform: translate3d(0, calc(var(--sy, 0) * -.08px), 0);
}

.hero__title {
  margin: 0;
  max-width: 11ch;
  font: 400 clamp(3.1rem, 8.2vw, 7.4rem)/.98 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title br { display: none; }
.hero__title .mask { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.08em; }
.hero__title .line { display: block; animation: rise 1.9s var(--ease-lux) both; }
.hero__title .mask:nth-of-type(1) .line { animation-delay: .25s; }
.hero__title .mask:nth-of-type(2) .line { animation-delay: .45s; }
/* Lacquered crimson: lit from above, falling to oxblood, with a single slow sheen after the
   line rises. Every stop is a warm red; nothing passes through ivory or rose. */
.hero__title em {
  font-style: italic;
  padding-right: .08em;
  color: var(--red-ink);
  background: linear-gradient(178deg, #8c1318 6%, #830c11 55%, #75070a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes sheen { to { background-position: -60% 0, 0 0; } }
@keyframes rise { from { transform: translate3d(0, 104%, 0); } }

.hero .eyebrow { animation: fade-up 1.8s var(--ease-lux) .05s both; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(34px, 4.5vw, 48px);
  animation: fade-up 1.8s var(--ease-lux) .8s both;
}
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ───────────────────────── Sections ───────────────────────── */

.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 9vw, 128px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 clamp(32px, 4.5vw, 56px);
  color: var(--paper-2);
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.kicker__num {
  color: var(--red-ink);
  font: 400 1rem/1 var(--serif);
  letter-spacing: .06em;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 27, 33, .75), var(--line-2) 22%, transparent);
  transform-origin: left;
}
.kicker__jp {
  order: 3;
  color: var(--paper-3);
  font: 400 .8rem/1 var(--jp);
  letter-spacing: .4em;
}

/* Ornament linework (flourishes, frame corners, halo), drawn in the lily's filament language. */
.orn {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.orn-hair { stroke-width: .7; }
.orn-hair--inner { opacity: .45; }
.orn-fil { stroke-width: .9; }
.orn-dot { fill: currentColor; stroke: none; }

/* Section divider: hairlines, then lily-filament flourishes sweeping out of the crest. */
.divider {
  display: flex;
  align-items: center;
  color: var(--ember);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.divider::after { background: linear-gradient(270deg, transparent, var(--line-2)); }
.divider .crest { flex: none; width: 34px; height: 34px; margin-inline: 4px; --crest-fil: 1.5; --crest-ring: 1.3; --crest-ring-o: .9; }
.flourish { flex: none; width: clamp(110px, 17vw, 230px); height: auto; opacity: .9; }
.flourish--l { transform: scaleX(-1); }

/* Studio */
#studio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 100% 30%, rgba(64, 2, 4, .28), transparent 70%);
  pointer-events: none;
}
.studio__grid { display: grid; gap: clamp(48px, 6vw, 72px); }
@media (min-width: 1000px) {
  .studio__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: clamp(56px, 6vw, 104px); }
}
.statement {
  margin: 0;
  max-width: 22ch;
  font: 400 clamp(2rem, 3.7vw, 3.45rem)/1.18 var(--serif);
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--red-ink); text-shadow: 0 0 .6em rgba(99, 5, 8, .55); }
/* Unlit words stay comfortably readable; lighting is an accent, not a gate. */
.js .statement .w { opacity: .78; transition: opacity 1.1s var(--ease); }
.js .statement .w.on { opacity: 1; }

.disciplines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 1000px) { .disciplines { margin-top: .55em; } }
.discipline {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.8ch 1fr auto;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(18px, 2vw, 24px) 4px;
  border-bottom: 1px solid var(--line);
}
.discipline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(84, 4, 6, .22), transparent 75%);
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.discipline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), rgba(150, 27, 33, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-lux);
}
.discipline__num { color: var(--paper-3); font: 400 .9rem/1 var(--serif); transition: color .6s; }
.discipline__name {
  font: 400 clamp(1.7rem, 2.6vw, 2.35rem)/1.1 var(--serif);
  letter-spacing: -.01em;
  transition: transform 1s var(--ease-lux), color .6s;
}
.discipline__jp {
  color: var(--paper-3);
  font: 400 clamp(.82rem, 1.2vw, .95rem)/1 var(--jp);
  letter-spacing: .26em;
  transition: color .6s;
}
@media (hover: hover) {
  .discipline:hover::before { opacity: 1; }
  .discipline:hover::after { transform: scaleX(1); }
  .discipline:hover .discipline__name { transform: translateX(6px); color: #fff; }
  .discipline:hover .discipline__num,
  .discipline:hover .discipline__jp { color: var(--red-ink); }
}

/* Projects */
#projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, rgba(72, 3, 5, .22), transparent 72%);
  pointer-events: none;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
}
.project {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008) 45%, rgba(84, 4, 6, .2)),
    var(--ink-2);
  box-shadow: 0 40px 90px -60px rgba(84, 4, 6, .8), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(620px circle at var(--mx, 72%) var(--my, 28%), rgba(110, 6, 9, .2), transparent 62%);
  opacity: .6;
  transition: opacity 1s var(--ease);
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 72%) var(--my, 28%), rgba(150, 27, 33, .55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.project:hover::before { opacity: 1; }
.project:hover::after { opacity: 1; }

.project__inner {
  display: grid;
  gap: clamp(28px, 4.5cqi, 52px);
  padding: clamp(26px, 5cqi, 60px);
}
@container (min-width: 780px) {
  .project__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: stretch; }
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.project__index { color: var(--red-ink); font: 400 1rem/1 var(--serif); letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--paper-2);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.project__title {
  margin: clamp(20px, 2.6cqi, 26px) 0 20px;
  font: 400 clamp(2.3rem, 5.6cqi, 3.6rem)/1.02 var(--serif);
  letter-spacing: -.02em;
}
.project__title .mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.project__title .line { display: block; }
.project__body p { margin: 0 0 1.05em; max-width: 60ch; color: var(--paper-2); }
.project__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 26px 0 0;
  color: var(--paper-3);
}

.project__art {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 44%, rgba(99, 5, 8, .34), transparent 58%),
    radial-gradient(circle at 50% 125%, rgba(84, 4, 6, .26), transparent 60%),
    var(--ink);
}
/* Inner hairline frame. */
.project__art::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(236, 226, 218, .045);
  border-radius: 10px;
  pointer-events: none;
}
/* Faint asanoha lattice, lit only around the bloom like lacquer catching light. */
.project__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--asanoha) center / 28px 48.497px;
  opacity: .3;
  -webkit-mask: radial-gradient(circle at 50% 44%, #000, transparent 62%);
  mask: radial-gradient(circle at 50% 44%, #000, transparent 62%);
  transition: opacity 1.4s var(--ease);
}
.project:hover .project__art::before { opacity: .5; }
.corner {
  position: absolute;
  z-index: 1;
  width: clamp(48px, 13cqi, 66px);
  color: var(--ember);
  opacity: .8;
}
.corner--tl { left: 16px; top: 16px; }
.corner--br { right: 16px; bottom: 16px; transform: rotate(180deg); }
.project__rings {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 150%;
  translate: -50% -50%;
  fill: none;
  stroke: rgba(236, 226, 218, .05);
  stroke-width: .4;
}
/* On hover the rings breathe outward in a gentle ripple, innermost first. */
.project__rings circle {
  transform-box: view-box;
  transform-origin: 100px 100px;
  transition: transform 1.8s var(--ease-lux), stroke 1.2s var(--ease);
}
.project__rings circle:nth-child(2) { transition-delay: .07s; }
.project__rings circle:nth-child(3) { transition-delay: .14s; }
.project__rings circle:nth-child(4) { transition-delay: .21s; }
.project__rings circle:nth-child(5) { transition-delay: .28s; }
.project:hover .project__rings circle { transform: scale(1.045); stroke: rgba(150, 27, 33, .16); }
.project__bloom {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(90%, 290px);
  aspect-ratio: 1;
  translate: -50% -50%;
  color: #7c090d;
  opacity: .9;
  filter: drop-shadow(0 0 12px rgba(99, 5, 8, .5));
  transition: opacity 1.2s var(--ease), color 1.2s var(--ease), transform 1.6s var(--ease-lux);
}
.project:hover .project__bloom { color: #94191f; opacity: 1; transform: scale(1.025); }
.project__numeral {
  position: absolute;
  right: 22px;
  bottom: -.18em;
  margin: 0;
  color: transparent;
  font: 400 clamp(6rem, 21cqi, 9.5rem)/1 var(--serif);
  -webkit-text-stroke: 1px rgba(236, 226, 218, .1);
  user-select: none;
}

/* Closing */
.outro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(16px, 2vw, 32px) clamp(96px, 11vw, 150px);
  text-align: center;
}
/* Two lilies rising from below the closing section's lower edge, framing the crest. */
.outro__garden {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.edge-bloom {
  position: absolute;
  bottom: 0;
  width: clamp(230px, 30vw, 420px);
  height: auto;
  color: var(--crimson);
  opacity: .42;
}
.bloom--edge .lily-filaments path { stroke-width: .7; }
.bloom--edge .lily-petals path { fill-opacity: .38; }
.edge-bloom--l { left: max(-60px, calc(50% - 760px)); }
.edge-bloom--r { right: max(-60px, calc(50% - 760px)); width: clamp(190px, 24vw, 340px); opacity: .32; }
@media (max-width: 699px) {
  .edge-bloom { width: 64vw; opacity: .3; }
  .edge-bloom--l { left: -30vw; }
  .edge-bloom--r { right: -30vw; width: 56vw; opacity: .24; }
}
.outro__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 60% at 50% 46%, rgba(84, 4, 6, .34), rgba(40, 1, 3, .12) 55%, transparent 75%);
}
.outro__veil .mist { top: 30%; height: 60%; opacity: .7; }
.outro__inner { display: grid; justify-items: center; }
.outro__crest {
  position: relative;
  width: clamp(92px, 10vw, 120px);
  aspect-ratio: 1;
  margin-block: clamp(44px, 5vw, 60px) clamp(48px, 5vw, 62px);
  color: var(--ember);
  filter: blur(0) drop-shadow(0 0 22px rgba(117, 7, 10, .6));
}
.outro__crest .crest { position: relative; width: 100%; height: 100%; --crest-fil: .75; --crest-ring: .7; --crest-ring-o: .4; }
.halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 186%;
  max-width: none;
  translate: -50% -50%;
  opacity: .8;
}
.halo .orn-hair { stroke-width: .5; }
.halo .orn-hair--dots { stroke-width: 1.1; stroke-dasharray: 0 3.2; opacity: .7; }
.outro__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--paper-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.outro__label [lang="ja"] { color: var(--red-ink); font: 400 .9rem/1 var(--jp); letter-spacing: .3em; }
.outro__label [lang="ja"]::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: var(--line-2);
}
.outro__line .line { display: block; }
.outro__line {
  margin: 0;
  max-width: 20ch;
  font: 400 clamp(1.9rem, 3.6vw, 3.1rem)/1.16 var(--serif);
  letter-spacing: -.015em;
  color: var(--paper);
}
.outro__back {
  margin-top: clamp(30px, 4vw, 42px);
  color: var(--paper-2);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ───────────────────────── Footer ───────────────────────── */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(52px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 5, 5, .35), rgba(40, 1, 3, .3));
}
/* A crimson thread across the top edge, and a whisper of lattice beneath it. */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(150, 27, 33, .65) 50%, transparent 92%);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--asanoha) center top / 28px 48.497px;
  opacity: .12;
  -webkit-mask: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 75%);
  mask: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: clamp(44px, 5vw, 64px);
}
.footer__brand .brand { font-size: .76rem; }
.footer__tag {
  margin: 20px 0 0;
  color: var(--paper-3);
  font-size: .68rem;
  letter-spacing: .26em;
  line-height: 1.9;
}
.footer__h {
  margin: 0 0 18px;
  color: var(--paper-3);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.footer__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer__list a { font-size: .95rem; }
.footer__mail { overflow-wrap: anywhere; }
.footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  color: var(--paper-3);
  font-size: .8rem;
}
.footer__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.footer__base [lang="ja"] { font-family: var(--jp); font-size: .95rem; letter-spacing: .3em; color: var(--red-ink); }

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer__grid { gap: 36px 24px; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
}

/* ───────────────────────── Legal pages ───────────────────────── */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--wine), var(--ember));
  pointer-events: none;
}

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(132px, 15vw, 184px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 88% 0%, rgba(84, 4, 6, .42), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(64, 2, 4, .26), transparent 70%);
}
.legal-hero .mist { z-index: -1; top: 40%; height: 70%; }
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--asanoha) right top / 28px 48.497px;
  opacity: .16;
  -webkit-mask: radial-gradient(ellipse 45% 90% at 100% 20%, #000, transparent 75%);
  mask: radial-gradient(ellipse 45% 90% at 100% 20%, #000, transparent 75%);
  pointer-events: none;
}
.legal-hero__orn { display: flex; align-items: center; width: clamp(240px, 34vw, 380px); margin-top: 30px; color: var(--ember); }
.legal-hero__orn .flourish { flex: 1 1 0; width: auto; min-width: 0; }
.legal-hero__orn .crest { flex: none; width: 26px; height: 26px; margin-inline: 2px; --crest-outer: none; --crest-fil: 1.6; --crest-ring: 1.4; }
.legal-hero__bloom {
  position: absolute;
  z-index: -1;
  right: clamp(-120px, -6vw, -40px);
  top: 50%;
  width: clamp(280px, 38vw, 500px);
  aspect-ratio: 1;
  translate: 0 -46%;
  color: #6a0609;
  opacity: .42;
  animation: fade-in-soft 2.6s var(--ease) .2s both;
}
@keyframes fade-in-soft { from { opacity: 0; } }
.legal-hero__kanji {
  position: absolute;
  z-index: -1;
  right: calc(var(--gutter) * .7);
  bottom: 28px;
  margin: 0;
  writing-mode: vertical-rl;
  font: 400 clamp(1.4rem, 3vw, 2.2rem)/1 var(--jp);
  letter-spacing: .3em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 27, 33, .4);
  user-select: none;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--paper-3);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  animation: fade-up 1.6s var(--ease-lux) both;
}
.crumbs a { color: var(--paper-2); text-decoration: none; transition: color .5s; }
.crumbs a:hover { color: var(--paper); }
.crumbs span[aria-hidden] { color: var(--red-ink); }
.legal-hero h1 {
  margin: 0;
  font: 400 clamp(3.4rem, 9vw, 6.8rem)/.95 var(--serif);
  letter-spacing: -.03em;
  animation: fade-up 1.8s var(--ease-lux) .1s both;
}
.legal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--paper-2);
  font-size: .92rem;
  animation: fade-up 1.8s var(--ease-lux) .25s both;
}
.legal-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(150, 27, 33, .14);
}

.legal-layout {
  display: grid;
  gap: 36px;
  padding-block: clamp(44px, 6vw, 76px) clamp(80px, 10vw, 128px);
}
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(56px, 6vw, 96px); }
}

.toc { align-self: start; }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 100px; }
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--paper-2);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--red-ink);
  border-bottom: 1px solid var(--red-ink);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .6s var(--ease-lux);
}
.toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { margin: 14px 0 0; padding: 0; list-style: none; }
.toc a {
  display: block;
  padding: 8px 0 8px 18px;
  border-left: 1px solid var(--line);
  color: var(--paper-3);
  font-size: .88rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color .5s, border-color .5s, padding-left .8s var(--ease-lux);
}
.toc a:hover { color: var(--paper); border-left-color: var(--line-2); }
.toc a.is-active { color: var(--paper); border-left-color: var(--ember); padding-left: 22px; }
@media (min-width: 1000px) {
  .toc summary { padding: 0 0 6px; border: 0; border-radius: 0; cursor: default; pointer-events: none; }
  .toc summary::after { display: none; }
}

.prose {
  max-width: 70ch;
  color: #d8cec8;
  font-size: 1.0625rem;
  line-height: 1.8;
  counter-reset: sec;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 60px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--paper);
  counter-increment: sec;
  font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.2 var(--serif);
  letter-spacing: -.01em;
  scroll-margin-top: 92px;
}
.prose h2::before {
  content: counter(sec, decimal-leading-zero);
  content: counter(sec, decimal-leading-zero) / "";
  flex: none;
  color: var(--red-ink);
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .12em;
  translate: 0 -.25em;
}
.prose aside + h2, .prose > h2:first-child { margin-top: 8px; }
.prose p { margin: 0 0 1.15em; }
.prose a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(150, 27, 33, .75);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .5s, text-decoration-color .5s;
}
.prose a:hover { color: #fff; text-decoration-color: var(--ember); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose code {
  padding: .12em .45em;
  border: 1px solid rgba(150, 27, 33, .26);
  border-radius: 6px;
  background: rgba(84, 4, 6, .26);
  color: #ecd9cc;
  font: 500 .85em/1 var(--mono);
}
.prose ul { display: grid; gap: 12px; margin: 26px 0 30px; padding: 0; list-style: none; }
.prose li {
  position: relative;
  padding: 18px 22px 18px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
  transition: border-color .6s, background-color .6s;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ember), var(--wine));
}
.prose li:hover { border-color: var(--line-2); background: rgba(84, 4, 6, .1); }

.notice {
  position: relative;
  margin: 0 0 44px;
  padding: 22px 24px 22px 66px;
  border: 1px solid rgba(150, 27, 33, .42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 5, 8, .26), rgba(84, 4, 6, .07));
  color: #efe4da;
  box-shadow: 0 30px 70px -44px rgba(117, 7, 10, .7);
}
.notice::before {
  content: "!";
  content: "!" / "";
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  color: #961b21;
  font: 600 .85rem/1 var(--serif);
}

/* ───────────────────────── Reveal on scroll ───────────────────────── */

/* Motion system. Arrivals use --ease-lux (long settle); lines and light use --ease-silk.
   Each kind of element enters in its own way; all of it is gated on .js, so content is
   complete without JavaScript, and main.js marks everything revealed under reduced motion. */

/* Rise: text blocks. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 1.5s var(--ease-lux), transform 1.7s var(--ease-lux);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Kicker: label slides in from the left while its rule draws across. */
.js [data-reveal="kicker"] { transform: translate3d(-12px, 0, 0); }
.js [data-reveal="kicker"]::after { transform: scaleX(0); transition: transform 2.2s var(--ease-silk) .3s; }
.js [data-reveal="kicker"].is-in::after { transform: scaleX(1); }

/* Disciplines: rows glide in from the left; a crimson thread sweeps each rule once. */
.js .discipline[data-reveal]:not(.is-in) { transform: translate3d(-14px, 0, 0); }
.js .discipline.is-in::after { animation: sweep 2.2s var(--ease-silk) calc(var(--d, 0s) + .35s) backwards; }
@keyframes sweep {
  0%   { transform: scaleX(0); opacity: 1; }
  55%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Draw: ornament linework strokes itself in, then anthers and lozenges settle. */
.js [data-reveal="draw"] { opacity: 1; transform: none; }
.js [data-reveal] .orn-hair[pathLength],
.js [data-reveal] .orn-fil,
.js [data-reveal="draw"] .lily-filaments path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-silk);
  transition-delay: calc(var(--d, 0s) + .15s + var(--i, 0) * 70ms);
}
.js [data-reveal] .orn-hair[pathLength] { transition-duration: 2.2s; transition-delay: var(--d, 0s); }
.js [data-reveal="draw"] .lily-filaments path { transition-duration: 3s; transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-reveal].is-in .orn-hair[pathLength],
.js [data-reveal].is-in .orn-fil,
.js [data-reveal="draw"].is-in .lily-filaments path { stroke-dashoffset: 0; }
.js [data-reveal] .orn-dot,
.js [data-reveal] .orn-hair--dots,
.js [data-reveal="draw"] .lily-anthers,
.js [data-reveal="draw"] .lily-petals,
.js [data-reveal="draw"] .lily-veins,
.js [data-reveal="draw"] .lily-heart { opacity: 0; transition: opacity 1.8s var(--ease) 1.4s; }
.js [data-reveal].is-in .orn-dot,
.js [data-reveal].is-in .lily-anthers,
.js [data-reveal].is-in .lily-petals,
.js [data-reveal].is-in .lily-veins,
.js [data-reveal].is-in .lily-heart { opacity: 1; }
.js [data-reveal].is-in .orn-hair--dots { opacity: .7; }

/* Frame: the project card rises; its artwork panel lifts like a curtain; the title rises
   out of its mask; the copy follows. */
.js [data-reveal="frame"] { transform: translate3d(0, 28px, 0); transition-duration: 1.4s, 2s; }
.js [data-reveal="frame"] .project__art {
  clip-path: inset(100% 0 0 0 round 16px);
  transition: clip-path 2s var(--ease-lux) .35s;
}
.js [data-reveal="frame"].is-in .project__art { clip-path: inset(0 0 0 0 round 16px); }
.js [data-reveal="frame"] .project__title .line { transform: translate3d(0, 105%, 0); transition: transform 1.7s var(--ease-lux) .3s; }
.js [data-reveal="frame"].is-in .project__title .line { transform: none; }
.js [data-reveal="frame"] .project__meta,
.js [data-reveal="frame"] .project__body p,
.js [data-reveal="frame"] .project__links {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 1.4s var(--ease) .2s, transform 1.6s var(--ease-lux) .2s;
}
.js [data-reveal="frame"] .project__body p:first-child { transition-delay: .5s; }
.js [data-reveal="frame"] .project__body p:last-child { transition-delay: .62s; }
.js [data-reveal="frame"] .project__links { transition-delay: .76s; }
.js [data-reveal="frame"].is-in .project__meta,
.js [data-reveal="frame"].is-in .project__body p,
.js [data-reveal="frame"].is-in .project__links { opacity: 1; transform: none; }

/* Bloom: the closing crest resolves out of soft focus while its halo draws around it. */
.js [data-reveal="bloom"] {
  transform: scale(.94);
  filter: blur(6px) drop-shadow(0 0 22px rgba(117, 7, 10, .6));
  transition: opacity 1.8s var(--ease), transform 2.4s var(--ease-lux), filter 2s var(--ease);
}
.js [data-reveal="bloom"].is-in { filter: blur(0) drop-shadow(0 0 22px rgba(117, 7, 10, .6)); }

/* Mask: a line of display type rises out of an invisible slot. */
.js [data-reveal="mask"] { opacity: 1; transform: none; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-reveal="mask"] .line { transform: translate3d(0, 104%, 0); transition: transform 1.9s var(--ease-lux) var(--d, 0s); }
.js [data-reveal="mask"].is-in .line { transform: none; }

/* Light: each section's atmosphere warms as the reader arrives, and cools as they leave. */
.js [data-light]::before,
.js [data-light] .outro__veil { opacity: .3; transition: opacity 2.8s var(--ease-silk); }
.js [data-light].is-lit::before,
.js [data-light].is-lit .outro__veil { opacity: 1; }

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 899px) {
  .hero__art { right: -32vw; height: 92%; opacity: .78; }
  .hero__kanji { left: auto; top: auto; right: calc(var(--gutter) * .6); bottom: 96px; font-size: clamp(2.2rem, 8vw, 3rem); }
}
@media (max-width: 599px) {
  :root { --nav-h: 66px; }
  .hero { align-items: flex-end; padding-bottom: 72px; }
  .hero__art { right: -58vw; bottom: 8%; height: 78%; opacity: .62; }
  .hero__kanji { right: 14px; top: calc(var(--nav-h) + 26px); bottom: auto; font-size: 2rem; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero .eyebrow { letter-spacing: .22em; gap: 14px; }
  .discipline { grid-template-columns: 2.6ch 1fr; row-gap: 4px; }
  .discipline__jp { grid-column: 2; font-size: .78rem; }
  .notice { padding: 64px 20px 20px; }
  .notice::before { left: 20px; top: 22px; }
  .legal-hero__bloom { right: -150px; opacity: .3; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="bloom"] { filter: drop-shadow(0 0 22px rgba(117, 7, 10, .6)); }
  .js [data-reveal="frame"] .project__art { clip-path: none; }
  .js [data-reveal] .orn-hair[pathLength],
  .js [data-reveal] .orn-fil,
  .js [data-reveal="draw"] .lily-filaments path { stroke-dashoffset: 0; }
  .js .statement .w { opacity: 1; }
  .hero__art, .hero__inner { transform: none; }
  .hero__inner { opacity: 1; }
  .hero__title em { background-position: -60% 0, 0 0; }
  .embers { display: none; }
}

@media print {
  body::after, .site-nav, .hero__sky, .hero__fog, .hero__art, .embers, .progress, .legal-hero__bloom, .outro__veil { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .notice { color: #000; }
}

/* Reference finish: spacious ink ground, oxblood lacquer and fine botanical contours. */
@media (min-width: 1000px) {
  .hero { min-height: max(800px, 100svh); padding-block: 138px 100px; }
  .hero__title { font-size: clamp(5.6rem, 7.42vw, 7.75rem); max-width: 11ch; line-height: .98; letter-spacing: -.015em; }
  .hero__inner { max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1400px) / 2)); }
  .hero__art { height: 100%; bottom: -3%; right: -5vw; }
  .hero__kanji { left: 48.6%; top: 17.5%; }
  .hero .eyebrow { margin-bottom: 34px; gap: 20px; font-size: .82rem; letter-spacing: .25em; }
  .hero .hanko { width: 52px; height: 52px; }
  .hero__actions { margin-top: 48px; gap: 18px; }
  .hero .btn { min-height: 64px; padding-inline: 34px; font-size: .82rem; }
  .brand { font-size: .82rem; }
  .brand__mark { width: 46px; height: 46px; }
  .nav__links { gap: 50px; }
  .nav__links a { font-size: .82rem; color: var(--paper); }
}
.enso { width: 66%; stroke: rgba(139, 18, 24, .43); stroke-width: .16; }
.moon { width: 85%; background: radial-gradient(circle, rgba(70, 3, 5, .18), transparent 70%); border: 1px solid rgba(119, 8, 11, .16); }
.hero__fog { opacity: .45; }
.hero .lily { filter: none; }
.plant--far { opacity: .5; }
.embers { display: none; }
.project__rings { stroke: rgba(139, 18, 24, .24); }
.project__art { background-color: #0b0303; }
.project__bloom, .legal-hero__bloom { color: #860e13; }
.site-footer { background: linear-gradient(180deg, #0c0303, #080202); }
.prose h2 { border-image: linear-gradient(90deg, #5b0407, transparent) 1; }
@media (max-width: 599px) {
  .hero { min-height: 800px; }
  .hero__title { font-size: clamp(3rem, 12.8vw, 4.5rem); max-width: 11ch; }
  .hero__art { opacity: .5; right: -55vw; bottom: 13%; }
}

@media (min-width: 1000px) { .hero__title .mask:nth-of-type(2) .line { line-height: .9; } }

/* Botanical refinement: ink throat, folded lacquer surfaces and tapered silk filaments. */
.hero__art { --garden-shift: 140px; }
@media (min-width: 1000px) { .hero__art { right: calc(-5vw + var(--garden-shift)); } }
.sculpted-bloom { animation: botanical-arrive 2.6s var(--ease) .35s both; }
@keyframes botanical-arrive { from { opacity: 0; } }
.thread-hair { fill: none; stroke: #7b090c; stroke-width: .35; opacity: .56; }
.botanical-tips { fill: #961b21; stroke: #400204; stroke-width: .4; }
.sculpted-petal { stroke: #860e13; stroke-width: .55; stroke-linejoin: round; }
.sculpted-vein { fill: none; stroke: #961b21; stroke-width: .35; opacity: .25; }
.sculpted-core { fill: #080101; stroke: #4d0306; stroke-width: .65; }
.core-fold { fill: none; stroke: #3c0204; stroke-width: .7; }
.pistil { fill: none; stroke: #590407; stroke-width: .9; }
.pistil-tip { fill: #860e13; }
.plant--far { opacity: .58; }
.lily-bud__body { stroke: #7c090d; stroke-width: .8; }
.lily-bud__seam { stroke: #1b0101; stroke-width: .9; }
.lily-bud__bract { stroke: #3d0204; }
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 58% 44%, transparent 18%, rgba(0,0,0,.58) 100%),
    linear-gradient(90deg, rgba(0,0,0,.58), transparent 58%);
}
.hero__fog { opacity: .7; }
.hero__fog .mist--1 { top: 30%; height: 52%; transform: rotate(-18deg); background: radial-gradient(ellipse, rgba(61, 2, 4,.22), transparent 68%); }
.moon { background: transparent; border-color: rgba(91, 4, 7,.19); }
.enso { stroke: rgba(110, 6, 9,.36); }
.hero__title em { filter: none; }
.btn--primary { background: linear-gradient(125deg, #3d0204, #260102 68%, #180101); border-color: #7d090d; box-shadow: inset 0 1px 0 #6b0609, 0 18px 40px -28px #580407; }
.btn--primary::after { background: linear-gradient(110deg, transparent 35%, rgba(110, 6, 9,.13) 50%, transparent 65%); }
.project__bloom, .legal-hero__bloom { color: #640508; }
.project { background-color: #080202; }
.site-footer { background: linear-gradient(180deg, #090202, #040101); }
.outro__veil { background: radial-gradient(ellipse 65% 58% at 50% 52%, rgba(61, 2, 4,.4), transparent 76%); }
.outro__crest { filter: drop-shadow(0 0 24px rgba(61, 2, 4,.3)); }
.margin-study { position: absolute; pointer-events: none; fill: none; color: #72070a; width: clamp(125px, 14vw, 230px); height: auto; z-index: -1; }
.study-line { stroke: currentColor; stroke-width: .65; stroke-linecap: round; stroke-linejoin: round; }
.study--studio { left: -72px; top: 8%; opacity: .32; transform: rotate(-11deg); }
.study--disciplines { right: -110px; top: 6%; opacity: .24; }
.study--projects { left: -76px; top: 3%; width: 210px; opacity: .28; }
.study--footer { right: -80px; bottom: -255px; width: 320px; opacity: .16; transform: rotate(90deg); }
.legal-layout { position: relative; isolation: isolate; }
.study--legal { right: -45px; top: 80px; opacity: .34; width: 220px; }
.study--terms { top: 250px; right: -74px; opacity: .26; }
.legal-layout::after { content: ""; position: absolute; right: -40px; top: 180px; width: 220px; height: 1000px; background: radial-gradient(ellipse, rgba(61, 2, 4,.18), transparent 72%); pointer-events: none; z-index: -2; }
/* Decorative marks live outside the text columns; keep long-form text on an ink ground. */
@media (max-width: 1399px) {
 .study--studio { left: -140px; opacity: .2; }
 .study--disciplines { right: -160px; }
 .study--projects { left: -135px; opacity: .2; }
 .study--legal { right: -140px; opacity: .18; }
}
@media (max-width: 999px) {
 .margin-study { display: none; }
 .legal-layout::after { display: none; }
 .hero__art { right: -22vw; }
}
@media (max-width: 599px) {
 .hero__art { right: -36vw; opacity: .46; bottom: 13%; }
 .hero__sky { background: radial-gradient(ellipse 105% 58% at 83% 29%, rgba(61, 2, 4,.52), transparent 76%), #030101; }
 .hero__title { text-shadow: 0 2px 18px #020101; }
}
@media (prefers-reduced-motion: reduce) { .sculpted-bloom { animation: none; } }
@media print { .margin-study { display: none; } }

/* Preserve the readable ruby edge of semantic type; ornamental surfaces stay oxblood. */
.js .statement em .w { opacity: 1; }
.hero__title em { color: #961b21; }
@media (max-width: 819px) { .js .nav__links a[aria-current="page"] { color: var(--paper); } }
@media (hover: hover) { .discipline:hover .discipline__jp { color: var(--paper-2); } }
.study--legal-end { right: -90px; bottom: 180px; opacity: .18; width: 220px; }

/* A narrow ruby light on the serif edges preserves the dark lacquer body of the lettering. */
.hero__title em { -webkit-text-stroke: .55px #961b21; paint-order: stroke fill; }
@media (max-width: 599px) { .hero__title em { -webkit-text-stroke-width: .35px; } }
.legal-layout::before { content: ""; position: absolute; right: 72px; top: 130px; bottom: 130px; width: 1px; background: linear-gradient(transparent, rgba(61, 2, 4,.4) 20%, rgba(61, 2, 4,.3) 80%, transparent); z-index: -1; pointer-events: none; }
@media (max-width: 1399px) { .legal-layout::before { right: 22px; opacity: .5; } }
@media (max-width: 999px) { .legal-layout::before { display: none; } }

/* Original curving margin studies. Distinct poses frame the existing content columns. */
.curl-spine, .curl-tendril, .curl-echo, .curl-leaf-vein { fill: none; stroke: currentColor; stroke-linecap: round; }
.curl-spine { stroke-width: 1.8; }
.curl-echo { stroke-width: .5; opacity: .48; }
.curl-tendril { stroke-width: .9; }
.curl-leaf { fill: currentColor; fill-opacity: .24; stroke: currentColor; stroke-width: .55; }
.curl-leaf-vein { stroke-width: .55; opacity: .6; }
.curl-tip { fill: currentColor; stroke: none; }
.study--studio { width: 245px; left: -66px; top: 2%; opacity: .34; transform: rotate(-9deg); }
.study--disciplines { width: 260px; right: -96px; top: -2%; opacity: .26; transform: scaleX(-1) rotate(8deg); }
.study--projects { width: 230px; left: -70px; top: 18%; opacity: .32; transform: rotate(12deg); }
.study--closing { width: 260px; right: -76px; top: 4%; opacity: .26; transform: scaleX(-1) rotate(-16deg); }
/* Shrine plate: fine lacquer architecture, shadowed sanctuary, and quiet lantern light. */
.shrine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Frontal torii gate: broad curved lintel, paired main pillars and support posts. */
.torii-cap { fill: url(#torii-cap); stroke: #72070a; stroke-width: .9; }
.torii-crown { fill: url(#torii-beam); stroke: #850d13; stroke-width: .75; }
.torii-beam { fill: url(#torii-beam); stroke: #75070a; stroke-width: .8; }
.torii-post { fill: url(#torii-post); stroke: #75070a; stroke-width: .8; }
.torii-foot { fill: url(#torii-foot); stroke: #3b0204; stroke-width: .7; }
.torii-edge { fill: none; stroke: #961b21; stroke-width: .75; opacity: .72; }
.torii-shadow { fill: none; stroke: #1b0105; stroke-width: 1.2; }
.torii-grain { fill: none; stroke: #7a080c; stroke-width: .35; opacity: .38; }
.torii-plaque { fill: #0a0203; stroke: #860e13; stroke-width: 1; }
.torii-seal { fill: none; stroke: #961b21; stroke-width: .65; opacity: .7; }
.torii-joints { fill: #490305; stroke: #8d1419; stroke-width: .5; }
.project__art::before { opacity: .06; }
.project:hover .project__art::before { opacity: .09; }
@media (max-width: 1399px) {
 .study--studio { left: -142px; opacity: .24; }
 .study--disciplines { right: -155px; opacity: .2; }
 .study--projects { left: -142px; opacity: .24; }
 .study--closing { right: -136px; opacity: .2; }
}
@media (max-width: 999px) { .hero__art { right: -10vw; } }
@media (max-width: 599px) {
 .hero__art { right: -24vw; opacity: .42; }
 .project__art { min-height: 330px; }
}

/* Studio emphasis uses the hero's oxblood paint, with a slightly darker surface. */
.statement em {
 color: #7d090d;
 background: linear-gradient(178deg, #820b10 6%, #79080b 55%, #6d0609 100%);
 -webkit-background-clip: text; background-clip: text;
 -webkit-text-fill-color: transparent;
 -webkit-text-stroke: .35px #961b21;
 paint-order: stroke fill; text-shadow: none;
}

/* The approved Studio lacquer is now shared with the hero, without a brighter red sheen. */
.hero__title em, .statement em {
 color: var(--brand-crimson);
 background: var(--brand-crimson-paint);
 -webkit-background-clip: text; background-clip: text;
 -webkit-text-fill-color: transparent;
 -webkit-text-stroke-color: var(--brand-crimson-edge);
}
.hero__title em { -webkit-text-stroke-width: .35px; }
.torii-carving { fill: none; stroke: #820b10; stroke-width: .5; opacity: .65; }

/* Original maple framing around the shrine. */
.torii-garden-branch { fill: none; stroke: #4c060c; stroke-width: 1.3; stroke-linecap: round; }
.torii-garden-twig { fill: none; stroke: #67070e; stroke-width: .55; }
.torii-maple { fill: #61070d; stroke: #820b10; stroke-width: .4; stroke-linejoin: round; }
.torii-leaf-vein { fill: none; stroke: #961b21; stroke-width: .35; opacity: .45; }
.torii-leaf-litter { fill: #6d0609; stroke: #820b10; stroke-width: .3; opacity: .75; }



