:root {
  --ink: #0e0d0c;
  --ink-2: #171513;
  --walnut: #5e402c;
  --brass: #c8a46b;
  --concrete: #b8b2a8;
  --paper: #ebe7e0;
  --paper-ink: #1c1a17;
  --muted: #8d877e;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --latin: "Cormorant Garamond", serif;
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.en { font-family: var(--latin); letter-spacing: .12em; }
.serif { font-family: var(--serif); }
.wrap { padding: 0 var(--gutter); max-width: 1280px; margin: 0 auto; }
.narrow { max-width: 860px; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); mix-blend-mode: difference;
}
.brand { font-family: var(--latin); font-size: 18px; letter-spacing: .32em; font-weight: 500; }
.brand span { opacity: .6; }
.nav-cta { font-size: 13px; letter-spacing: .2em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* hero */
.hero { height: 420vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; z-index: 3; }
.bar-top { top: 0; } .bar-bottom { bottom: 0; }
.hero-copy {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; padding: 0 var(--gutter);
}
.eyebrow { font-size: 13px; color: var(--brass); text-transform: uppercase; margin-bottom: 28px; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 8.4vw, 132px); line-height: 1.25; letter-spacing: .08em; }
.hero-sub { margin-top: 32px; font-size: clamp(14px, 1.4vw, 18px); color: var(--concrete); letter-spacing: .18em; }
.hero-copy-2 { opacity: 0; }
.hero-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 5vw, 72px); line-height: 1.6; letter-spacing: .1em; }
.scroll-hint { position: absolute; bottom: 15vh; left: 50%; transform: translateX(-50%); z-index: 5; font-size: 12px; color: var(--concrete); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--brass), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }

/* line reveal */
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; will-change: transform; }

/* problem */
.problem { padding: 16vh 0 22vh; background: linear-gradient(var(--ink), var(--ink-2)); }
.big { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 6.6vw, 104px); line-height: 1.35; letter-spacing: .06em; }
.pain { list-style: none; margin-top: 12vh; display: grid; gap: 28px; max-width: 760px; margin-left: auto; }
.pain li { border-top: 1px solid rgba(235,231,224,.18); padding-top: 22px; color: var(--concrete); font-size: 15px; }
.pain b { display: block; font-family: var(--serif); font-weight: 500; color: var(--paper); font-size: clamp(18px, 2vw, 24px); margin-bottom: 6px; }

/* strengths (horizontal) */
.strengths { position: relative; overflow: hidden; background: var(--ink-2); }
.strengths-track { display: flex; width: max-content; height: 100vh; height: 100svh; }
.panel {
  width: min(86vw, 1100px); height: 100%; flex-shrink: 0; padding: 18vh var(--gutter) 14vh;
  display: flex; flex-direction: column; justify-content: center; position: relative;
  border-left: 1px solid rgba(235,231,224,.08);
}
.panel-intro { width: 100vw; border-left: 0; }
.panel .num { font-size: clamp(80px, 14vw, 200px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(200,164,107,.55); }
.panel h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.4; margin: 3vh 0 2.4vh; letter-spacing: .06em; }
.panel h3 em { font-style: normal; color: var(--brass); }
.panel p { max-width: 520px; color: var(--concrete); font-size: 15px; }

/* numbers */
.numbers { padding: 24vh 0; background: radial-gradient(ellipse at 50% 40%, #2a1f17 0%, var(--ink) 65%); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.stat .count { font-family: var(--latin); font-size: clamp(88px, 13vw, 200px); line-height: 1; color: var(--paper); }
.stat .unit { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 32px); margin-left: 6px; color: var(--brass); }
.stat p { margin-top: 18px; color: var(--muted); font-size: 14px; letter-spacing: .16em; }

/* pricing (light chapter) */
.pricing { background: var(--paper); color: var(--paper-ink); padding: 26vh 0 22vh; }
.pricing .eyebrow { color: var(--walnut); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10vh; }
.card { border: 1px solid rgba(28,26,23,.18); padding: 40px 32px; background: rgba(255,255,255,.35); transition: transform .5s cubic-bezier(.2,.7,.2,1), background .5s; }
.card:hover { transform: translateY(-6px); background: #fff; }
.card.featured { background: var(--paper-ink); color: var(--paper); }
.card-k { font-size: 14px; letter-spacing: .2em; opacity: .7; }
.card-v { font-family: var(--latin); font-size: clamp(48px, 5vw, 72px); line-height: 1.2; margin-top: 14px; }
.card-v span { font-family: var(--sans); font-size: 14px; margin-left: 6px; opacity: .7; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid rgba(28,26,23,.18); }
.types > div { padding: 28px 24px 0 0; }
.types h4 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.types p { font-size: 14px; color: #5b554d; }
.types .t { margin-top: 8px; color: var(--walnut); font-weight: 400; }
.note { margin-top: 40px; font-size: 13px; color: #6d675e; max-width: 760px; }

/* flow */
.flow { padding: 26vh 0 20vh; background: var(--ink); }
.steps { list-style: none; position: relative; margin-top: 10vh; padding-left: 64px; display: grid; gap: 9vh; max-width: 760px; }
.steps-line { position: absolute; left: 18px; top: 0; width: 2px; height: 100%; overflow: visible; }
.steps-line line { stroke: var(--brass); stroke-width: 2; vector-effect: non-scaling-stroke; }
.steps li span { font-size: 15px; color: var(--brass); }
.steps h4 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); margin: 6px 0; }
.steps p { color: var(--concrete); font-size: 15px; }

/* faq */
.faq { padding: 22vh 0; background: var(--ink-2); }
.faq h2 { font-size: clamp(32px, 4.6vw, 64px); margin-bottom: 7vh; }
details { border-top: 1px solid rgba(235,231,224,.16); }
details:last-of-type { border-bottom: 1px solid rgba(235,231,224,.16); }
summary { cursor: pointer; list-style: none; padding: 26px 40px 26px 0; position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 1.8vw, 20px); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--latin); font-size: 28px; color: var(--brass); transition: transform .4s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 28px; color: var(--concrete); font-size: 15px; }

/* contact */
.contact { min-height: 100vh; display: flex; align-items: center; text-align: center; background: radial-gradient(ellipse at 50% 100%, #3a2a1d 0%, var(--ink) 60%); }
.contact .wrap { width: 100%; }
.closing { font-weight: 300; font-size: clamp(40px, 7.6vw, 120px); line-height: 1.3; letter-spacing: .06em; }
.cta { display: inline-flex; gap: 18px; align-items: center; margin-top: 8vh; padding: 22px 44px; border: 1px solid var(--brass); color: var(--paper); font-size: 15px; letter-spacing: .2em; position: relative; overflow: hidden; transition: color .5s; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.7,0,.2,1); z-index: -1; }
.cta:hover { color: var(--ink); }
.cta:hover::before { transform: scaleX(1); }
.contact-note { margin-top: 22px; color: var(--muted); font-size: 13px; }

.footer { padding: 48px var(--gutter); display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid rgba(235,231,224,.08); }

/* mobile */
@media (max-width: 760px) {
  .bar { height: 8vh; }
  .hero { height: 360vh; }
  .strengths { overflow: visible; }
  .strengths-track { flex-direction: column; width: 100%; height: auto; }
  .panel, .panel-intro { width: 100%; height: auto; min-height: 80vh; padding: 14vh var(--gutter); border-left: 0; border-top: 1px solid rgba(235,231,224,.08); }
  .grid3, .cards, .types { grid-template-columns: 1fr; }
  .grid3 { gap: 9vh; }
  .steps { padding-left: 48px; }
  .steps-line { left: 10px; }
  .footer { flex-direction: column; gap: 6px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint span { animation: none; }
  .hero { height: 100vh; }
  .hero-copy-2 { display: none; }
}

/* Japanese line breaking by phrase */
h1, h2, h3, .hero-quote, .closing { word-break: auto-phrase; }
@media (max-width: 760px) {
  .brand { font-size: 13px; letter-spacing: .24em; }
  .nav-cta { font-size: 12px; }
  .big { font-size: clamp(30px, 8.6vw, 44px); }
  .closing { font-size: clamp(26px, 8.6vw, 40px); }
}
