/* ================= home ================= */
body { background: var(--paper-warm); }
.site-header:not(.solid) { color: var(--ink); }
.site-header:not(.solid) .nav > a:hover, .site-header:not(.solid) .nav-group > button:hover, .site-header:not(.solid) .nav a.active { color: var(--brand); }

/* hero */
.h-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 70px; overflow: hidden; }
.h-hero::before { content: ""; position: absolute; right: 0; top: var(--header-h); bottom: 0; width: 38%; background: var(--brand); clip-path: inset(0 0 0 100%); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); }
.hero-in .h-hero::before { clip-path: inset(0 0 0 0); }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.h-kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--brand); padding: 6px 12px; border: 1.5px solid var(--brand); border-radius: 999px; }
.h-title { margin-top: 28px; font-size: clamp(42px, 6.2vw, 100px); line-height: 1.08; letter-spacing: -.01em; font-weight: 900; color: var(--ink); }
.h-line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.h-line > * , .h-line { }
.h-title .h-line { transform: translateY(0); }
.h-hero .h-line { clip-path: inset(0 0 0 0); }
.h-hero .h-title .h-line { animation: none; }
html:not(.hero-in) .h-title .h-line { transform: translateY(40px); opacity: 0; }
.h-title .h-line { transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.h-title .h-line:nth-child(2) { transition-delay: .12s; }
.slot { position: relative; display: inline-block; vertical-align: bottom; height: 1.1em; transition: width .45s cubic-bezier(.7,0,.2,1); margin-left: .12em; }
.slot::before { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .42em; background: var(--accent); z-index: -1; transform-origin: left; transition: transform .42s cubic-bezier(.7,0,.2,1); }
.slot.wipe::before { transform: scaleX(0); transform-origin: right; }
.slot-word { position: absolute; left: 0; bottom: 0; white-space: nowrap; color: var(--brand); opacity: 0; transform: translateY(.3em); transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1); }
.slot-word.on { position: relative; opacity: 1; transform: none; }
.slot.wipe .slot-word.on { opacity: 0; transform: translateY(-.3em); }
.h-sub { margin-top: 30px; font-size: clamp(16px, 1.4vw, 19px); color: #33434e; max-width: 30em; }
html:not(.hero-in) .h-sub, html:not(.hero-in) .h-actions, html:not(.hero-in) .h-kicker { opacity: 0; transform: translateY(20px); }
.h-sub, .h-actions, .h-kicker { transition: opacity .8s .3s, transform .8s .3s cubic-bezier(.2,.8,.2,1); }
.h-actions { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.h-actions .btn { height: 58px; padding: 0 34px; font-size: 16px; }
.h-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.h-more svg { width: 16px; transition: transform .2s; }
.h-more:hover svg { transform: translateX(4px); }

.h-visual { position: relative; height: min(76vh, 680px); }
.h-photo { position: absolute; margin: 0; overflow: hidden; background: #ddd; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; }
.h-photo-main { right: 6%; top: 2%; width: 66%; height: 84%; overflow: visible; }
.h-photo-main img { position: relative; }
.h-photo-main > img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.2s .1s cubic-bezier(.7,0,.2,1), transform 1.8s .1s cubic-bezier(.2,.7,.2,1); }
.hero-in .h-photo-main > img { clip-path: inset(0 0 0 0); transform: scale(1); }
.h-photo-main.bracket::before, .h-photo-main.bracket::after { border-color: var(--accent); width: 26%; height: 18%; }
.h-photo-sub { left: 0; bottom: 4%; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--paper-warm); clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s .8s cubic-bezier(.7,0,.2,1); }
.hero-in .h-photo-sub { clip-path: circle(50% at 50% 50%); }
.h-chat { position: absolute; right: 0; bottom: 6%; width: min(300px, 70%); background: #fff; border-radius: 18px 18px 4px 18px; padding: 16px 18px; box-shadow: 0 24px 50px rgba(16,32,43,.18); opacity: 0; transform: translateY(20px); transition: opacity .6s 1.3s, transform .6s 1.3s cubic-bezier(.2,.8,.2,1); }
.hero-in .h-chat { opacity: 1; transform: none; }
.h-chat-who { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 4px; }
.h-chat p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.h-quote { position: absolute; font-size: clamp(120px, 14vw, 220px); font-weight: 900; color: var(--accent); line-height: 1; pointer-events: none; opacity: 0; transition: opacity .8s 1s; }
.hero-in .h-quote { opacity: 1; }
.h-quote-l { left: 8%; top: -6%; }
.h-quote-r { right: -2%; bottom: -14%; color: #fff; }
@media (max-width: 960px) {
  .h-hero::before { width: 100%; top: auto; height: 34%; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .h-visual { height: 120vw; max-height: 560px; }
  .h-photo-main { width: 74%; right: 4%; }
}

/* marquee */
.marquee { background: var(--accent); color: var(--ink); overflow: hidden; padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; white-space: nowrap; font-size: clamp(44px, 7vw, 104px); font-weight: 900; line-height: 1; will-change: transform; }
.marquee-track .o { color: transparent; -webkit-text-stroke: 2px var(--brand); }
.marquee-track i { font-style: normal; color: var(--brand); font-size: .5em; }

/* business: stacking cards */
.h-biz { padding-bottom: 60px; }
.stack { display: grid; gap: 40px; }
.stack-card { position: sticky; top: calc(var(--header-h) + 10px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: min(78vh, 640px); padding: 56px; border-radius: 28px; transform-origin: center top; will-change: transform; }
.stack-card:nth-child(2) { top: calc(var(--header-h) + 30px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 50px); }
.c-white { background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(16,32,43,.08); }
.c-blue { background: var(--brand); color: #fff; }
.c-yellow { background: var(--accent); color: var(--accent-ink); }
.stack-no { font-size: 15px; font-weight: 900; letter-spacing: .1em; padding: 4px 12px; border: 2px solid currentColor; border-radius: 999px; }
.stack-text h3 { margin-top: 28px; font-size: clamp(36px, 4.6vw, 64px); font-weight: 900; letter-spacing: -.01em; }
.stack-for { margin-top: 8px; font-size: 16px; opacity: .75; }
.stack-text ul { margin: 30px 0 36px; display: grid; gap: 14px; font-size: 17px; }
.stack-text li { padding-left: 26px; position: relative; }
.stack-text li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
.stack-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; transition: gap .25s; }
.c-blue .stack-link { background: var(--accent); color: var(--accent-ink); }
.stack-link svg { width: 16px; }
.stack-link:hover { gap: 16px; }
.stack-photo { position: relative; margin: 0; height: 100%; min-height: 380px; }
.stack-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.c-blue .stack-photo.bracket::before, .c-blue .stack-photo.bracket::after { border-color: var(--accent); }
.c-yellow .stack-photo.bracket::before, .c-yellow .stack-photo.bracket::after { border-color: var(--ink); }
.stack-char { position: absolute; left: -28px; bottom: -36px; font-size: clamp(110px, 12vw, 190px); font-weight: 900; line-height: 1; color: var(--accent); text-shadow: 0 10px 30px rgba(0,0,0,.15); }
.c-blue .stack-char { color: #fff; }
.c-yellow .stack-char { color: var(--brand); }
@media (max-width: 900px) {
  .stack-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 30px; position: relative; top: auto !important; }
  .stack-photo { min-height: 260px; height: 300px; }
  .stack-char { left: auto; right: 10px; bottom: -30px; }
}

/* market */
.h-market { background: var(--brand-deep); color: #fff; }
.h-market-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 70px; }
.h-market-head .kicker { color: var(--accent); }
.h-market-head h2 { font-size: clamp(44px, 6vw, 88px); font-weight: 900; }
.h-market-head p { color: rgba(255,255,255,.72); font-size: 17px; }
.big-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.15); }
.big-stat { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 44px 40px 44px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.big-stat:nth-child(even) { padding-left: 40px; border-left: 1px solid rgba(255,255,255,.15); }
.big-num { font-size: clamp(52px, 6vw, 92px); font-weight: 900; line-height: .95; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 3.4em; }
.big-num small { display: block; font-size: .24em; color: #fff; margin-top: 10px; letter-spacing: .04em; }
.big-label { font-size: 18px; font-weight: 700; }
.big-desc { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.7); }
.big-src { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); }
.h-market .trend { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.h-market .trend b { background: var(--accent); color: var(--accent-ink); }
.h-market .trend p { color: #fff; }
.h-market .trend p span { color: rgba(255,255,255,.55); }
@media (max-width: 900px) {
  .h-market-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .big-stats { grid-template-columns: 1fr; }
  .big-stat, .big-stat:nth-child(even) { padding: 32px 0; border-left: 0; grid-template-columns: 1fr; gap: 14px; }
}

/* approach: compare */
.h-approach { background: #fff; }
.h-approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.compare { position: relative; aspect-ratio: 10 / 11; border-radius: 24px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-tag { position: absolute; top: 20px; z-index: 2; font-size: 13px; font-weight: 900; padding: 8px 14px; border-radius: 999px; }
.cmp-tag-a { left: 20px; background: var(--accent); color: var(--accent-ink); }
.cmp-tag-b { right: 20px; background: var(--brand); color: #fff; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; border: 0; padding: 0; z-index: 3; pointer-events: none; }
.cmp-handle span { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cmp-handle span::before, .cmp-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; margin-top: -7px; }
.cmp-handle span::before { left: 10px; border-right-color: var(--ink); }
.cmp-handle span::after { right: 10px; border-left-color: var(--ink); }
.cmp-range { position: absolute; inset: auto 0 0 0; width: 100%; opacity: 0; height: 1px; }
.h-points { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.h-points li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.h-points b { font-size: 22px; font-weight: 900; color: var(--brand); }
.h-points h3 { font-size: 19px; }
.h-points p { margin-top: 6px; font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .h-approach-grid { grid-template-columns: 1fr; gap: 48px; } }

/* roadmap: horizontal */
.h-road { position: relative; background: var(--brand); color: #fff; }
.h-road-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.h-road-track { display: flex; align-items: stretch; gap: 32px; padding: 0 6vw; height: min(70vh, 620px); will-change: transform; }
.road-panel { flex-shrink: 0; border-radius: 24px; }
.road-intro { width: min(560px, 80vw); display: flex; flex-direction: column; justify-content: center; }
.road-intro .kicker { color: var(--accent); }
.road-intro h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 900; line-height: 1.2; }
.road-intro p { margin-top: 22px; color: rgba(255,255,255,.8); font-size: 17px; max-width: 26em; }
.road-hint { margin-top: 34px; display: inline-flex; gap: 10px; align-items: center; font-weight: 700; color: var(--accent); }
.road-hint svg { width: 18px; transform: rotate(90deg); }
.road-photo { width: min(720px, 70vw); margin: 0; position: relative; overflow: hidden; }
.road-photo img { width: 100%; height: 100%; object-fit: cover; }
.road-photo figcaption { position: absolute; left: 20px; bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .2em; background: rgba(16,32,43,.7); padding: 6px 12px; border-radius: 4px; }
.road-phase { position: relative; width: min(460px, 80vw); padding: 48px 40px; background: #fff; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.road-phase:nth-of-type(4) { background: var(--accent); color: var(--accent-ink); }
.road-phase:nth-of-type(5) { background: var(--ink); color: #fff; }
.road-big { position: absolute; right: 18px; top: -10px; font-size: 200px; font-weight: 900; line-height: 1; color: currentColor; opacity: .08; }
.road-phase small { font-size: 13px; font-weight: 900; letter-spacing: .16em; color: var(--brand); }
.road-phase:nth-of-type(5) small { color: var(--accent); }
.road-phase h3 { margin-top: 12px; font-size: 34px; font-weight: 900; }
.road-phase ul { margin-top: 26px; display: grid; gap: 14px; font-size: 16px; }
.road-phase li { padding-left: 24px; position: relative; }
.road-phase li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
.road-phase .btn { margin-top: auto; align-self: flex-start; }
.road-bar { position: absolute; left: 6vw; right: 6vw; bottom: 6vh; height: 4px; background: rgba(255,255,255,.2); }
.road-bar span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .h-road-sticky { position: static; height: auto; padding: 80px 0; }
  .h-road-track { flex-direction: column; height: auto; padding: 0 16px; gap: 20px; will-change: auto; transform: none !important; }
  .road-panel { width: 100% !important; }
  .road-photo { height: 240px; }
  .road-bar { display: none; }
}

/* posts on warm paper */
#posts { background: var(--paper-warm); }
.post-cover { background: var(--brand); }

/* cta */
.h-cta { padding-top: 110px; }
.h-cta-big { position: relative; font-size: clamp(44px, 7vw, 110px); font-weight: 900; line-height: 1.15; margin-bottom: 64px; }
.h-cta .cta-box { background: rgba(255,255,255,.06); }
.h-cta .btn-ghost { border-color: rgba(255,255,255,.5); }
.road-intro h2 { font-size: clamp(30px, 2.8vw, 40px); }
@media (max-width: 860px) { .road-intro h2 { font-size: 24px; } }
@media (max-width: 760px) { .h-cta-big { font-size: 8.6vw; } }
