:root {
  --ink: #0e0d0c;
  --ink-2: #171513;
  --walnut: #5e402c;
  --brass: #c8a46b;
  --concrete: #b8b2a8;
  --paper: #ebe7e0;
  --paper-ink: #1c1a17;
  --muted: #8d877e;
  --ember: #d4573c;
  --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; }

/* 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); }

/* 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; }
.note { margin-top: 40px; font-size: 13px; color: #6d675e; max-width: 760px; }

/* flow */
.flow { padding: 26vh 0 20vh; background: var(--ink); }

/* 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; }
  .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); }
}

/* ===== v2: shattering cards ===== */
.problem { overflow-x: clip; }
.pain { perspective: 1400px; }
.sc { display: grid; position: relative; }
.sc > div { grid-area: 1 / 1; padding: 30px 32px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.sc-front { position: relative; border: 1px solid rgba(235,231,224,.22); }
.sc-front, .sc-shard { background: linear-gradient(135deg, #25211d, #171513); }
.sc-front b, .sc-back b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.5; }
.sc-tag { font-size: 12px; color: var(--brass); text-transform: uppercase; margin-bottom: 8px; }
.sc-hint { margin-top: 10px; font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.sc-back { border: 1px solid rgba(212,87,60,.55); background: radial-gradient(ellipse at 20% 0%, rgba(212,87,60,.22), rgba(14,13,12,.95) 70%); box-shadow: 0 0 60px rgba(212,87,60,.18), inset 0 0 40px rgba(212,87,60,.08); backface-visibility: hidden; }
.sc-back .sc-tag { color: var(--ember); }
.sc-back b { color: #fff3ea; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; }
.sc-shards { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.sc-shard { position: absolute; inset: 0; padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(235,231,224,.22); will-change: transform, opacity; }
.sc-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.sc-crack path { fill: none; stroke: #fff6e8; stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(255,220,180,.9)); }
.js .sc-back { opacity: 0; }

/* ===== v2: zoom into the decision / zoom out to the overview ===== */
.strengths-stage { position: relative; overflow: hidden; }
.panel-intro { overflow: hidden; }
.zoom-title { position: relative; z-index: 2; will-change: transform; }
.zoom-core { display: inline-block; }
.zoom-glow { position: absolute; left: 50%; top: 50%; width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,180,.55), rgba(200,164,107,.18) 40%, rgba(200,164,107,0) 70%); opacity: 0; pointer-events: none; z-index: 1; }
.panel { background: var(--ink-2); }

/* ===== v2: numbers ===== */
.stat-v { white-space: nowrap; }
.stat .unit { font-size: clamp(22px, 2.6vw, 36px); }
.stat-k { margin-top: 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); color: var(--paper); letter-spacing: .08em; line-height: 1.5; }
.stat-s { margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.limit { margin: 16vh auto 0; max-width: 980px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 18px; padding: 34px 28px; border-top: 1px solid rgba(200,164,107,.45); border-bottom: 1px solid rgba(200,164,107,.45); text-align: center; }
.limit-k { font-family: var(--serif); font-size: clamp(16px, 1.8vw, 22px); color: var(--concrete); }
.limit-v { white-space: nowrap; }
.limit .count { font-family: var(--latin); font-size: clamp(64px, 8vw, 120px); line-height: 1; color: var(--brass); }
.limit .unit { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 32px); color: var(--paper); margin-left: 6px; }
.limit-t { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: .2em; color: var(--paper); border: 1px solid var(--brass); padding: 2px 16px; }

/* ===== v2: pricing ===== */
.card-v .price { font-family: var(--latin); font-size: 1em; margin-left: 0; opacity: 1; font-variant-numeric: tabular-nums; }
.stat-k, .type-d, .limit-k, .o-cd, .types-h { word-break: auto-phrase; }
.more { margin-top: 18px; font-size: 14px; color: #5b554d; }
.types-h { margin-top: 14vh; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 40px); line-height: 1.5; letter-spacing: .06em; }
.types-h span { display: block; margin-top: 8px; font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--walnut); letter-spacing: .08em; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.type { position: relative; padding: 70px 30px 32px; border: 1px solid rgba(28,26,23,.2); background: #fff; }
.type-mid { border: 2px solid var(--brass); }
.type-top { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.type-zero { position: absolute; top: 0; left: 0; right: 0; padding: 10px 0; text-align: center; background: var(--brass); color: var(--paper-ink); font-weight: 500; font-size: 15px; letter-spacing: .14em; }
.type-zero b { font-size: 28px; line-height: 1; margin: 0 2px; font-weight: 500; }
.type h4 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .1em; }
.type-d { margin-top: 6px; font-size: 14px; color: #5b554d; }
.type-top .type-d { color: var(--concrete); }
.type dl { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border-top: 1px solid rgba(28,26,23,.14); }
.type-top dl { border-color: rgba(235,231,224,.18); }
.type dl > div { padding-top: 14px; }
.type dt { font-size: 12px; letter-spacing: .14em; color: #6d675e; }
.type-top dt { color: var(--muted); }
.type dd { font-family: var(--latin); font-size: 40px; line-height: 1.2; }
.type dd small { font-family: var(--sans); font-size: 13px; margin-left: 3px; }
.type dd small.pre { margin: 0 3px 0 0; }

/* ===== v2: process orbit ===== */
.orbit { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 10vh auto 0; }
.orbit-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.o-base { fill: none; stroke: rgba(200,164,107,.18); stroke-width: 1; }
.o-flow { fill: none; stroke: rgba(200,164,107,.6); stroke-width: 1.4; stroke-dasharray: 1.5 9; stroke-linecap: round; animation: oflow 3s linear infinite; }
@keyframes oflow { to { stroke-dashoffset: -105; } }
.o-draw { fill: none; stroke: var(--brass); stroke-width: 1; stroke-dasharray: 100 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 200px 200px; }
.o-trail { fill: none; stroke: url(#trail); stroke-width: 3; stroke-linecap: round; }
.o-head { fill: #fff8ec; }
.o-steps { list-style: none; position: absolute; inset: 0; }
.o-step { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; background: var(--ink); border: 1px solid rgba(200,164,107,.35); text-align: center; cursor: pointer; transition: border-color .5s, background .5s, box-shadow .5s; outline: none; }
.o-step:nth-child(1) { left: 50%; top: 10%; }
.o-step:nth-child(2) { left: 90%; top: 50%; }
.o-step:nth-child(3) { left: 50%; top: 90%; }
.o-step:nth-child(4) { left: 10%; top: 50%; }
.o-n { font-size: 14px; color: var(--brass); line-height: 1; }
.o-t { font-family: var(--serif); font-weight: 500; font-size: 16px; white-space: nowrap; line-height: 1.4; }
.o-step.on, .o-step:focus-visible { border-color: var(--brass); background: #2a2117; box-shadow: 0 0 28px rgba(200,164,107,.45); }
.o-step.on .o-n { color: #fff3dc; }
.o-center { position: absolute; left: 50%; top: 50%; width: 50%; transform: translate(-50%, -50%); text-align: center; }
.o-cn { font-size: clamp(44px, 7vw, 72px); color: transparent; -webkit-text-stroke: 1px rgba(200,164,107,.7); line-height: 1; display: block; }
.o-ct { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); }
.o-cd { margin-top: 8px; font-size: 14px; color: var(--concrete); line-height: 1.8; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .sc > div, .sc-shard { padding: 24px 22px; min-height: 132px; }
  .limit { gap: 2px 12px; padding: 26px 8px; }
  .types { grid-template-columns: 1fr; }
  .orbit { width: 100%; }
  .orbit-svg { left: 6%; top: 6%; width: 88%; height: 88%; }
  .o-step { padding: 7px 8px; }
  .o-step:nth-child(1) { top: 14.8%; }
  .o-step:nth-child(2) { left: 85.2%; }
  .o-step:nth-child(3) { top: 85.2%; }
  .o-step:nth-child(4) { left: 14.8%; }
  .o-t { font-size: 13px; }
  .o-n { font-size: 12px; }
  .o-center { width: 40%; }
  .o-cn { font-size: 34px; }
  .o-ct { font-size: 16px; margin-top: 4px; }
  .o-cd { font-size: 12px; line-height: 1.65; }
  .panel-intro { min-height: 100vh; min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  .o-flow { animation: none; }
  .sc > div { grid-area: auto; }
  .js .sc-back { opacity: 1; }
}
