/* A5O1 — colour grading: every chapter of the page has its own grade */
/* self-hosted subsets (SIL OFL 1.1) — rebuild with tools/subset-fonts.py after editing copy */
@font-face { font-family: "A5 Mincho"; src: url("/assets/fonts/shippori-b1-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "A5 Mincho"; src: url("/assets/fonts/shippori-b1-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "A5 Gothic"; src: url("/assets/fonts/zen-kaku-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "A5 Gothic"; src: url("/assets/fonts/zen-kaku-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "A5 Gothic"; src: url("/assets/fonts/zen-kaku-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* grades */
  --g-ink: #14110F;
  --g-paper: #E7E3DA;
  --g-stone: #D7D0C2;
  --g-oxblood: #2A0C11;
  --g-fog: #C9CAC5;
  --g-cobalt: #060B1C;

  /* accents */
  --crimson: #B3202E;
  --amber: #E2A23B;
  --ice: #8FB4FF;
  --electric: #3D6BFF;

  --serif: "A5 Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "A5 Gothic", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --w: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --sec: clamp(110px, 15vw, 220px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* default tone (sub pages, anything outside a chapter) */
  --fg: #EEEAE2; --dim: #A9A396; --line: rgba(238,234,226,.18); --acc: var(--amber); --btn-ink: #14110F;
}

/* Japanese line breaking: break between phrases, keep headings balanced */
h1, h2, h3, .manifesto-text, .panel-head, .lead, .hero-lead, .offer p, .faq summary, .timeline span, .uses dd { word-break: auto-phrase; text-wrap: balance; }

[data-grade="ink"] { --g: var(--g-ink); }
[data-grade="paper"] { --g: var(--g-paper); }
[data-grade="stone"] { --g: var(--g-stone); }
[data-grade="oxblood"] { --g: var(--g-oxblood); }
[data-grade="fog"] { --g: var(--g-fog); }
[data-grade="cobalt"] { --g: var(--g-cobalt); }

[data-tone="dark"] { --fg: #EEEAE2; --dim: #A9A396; --line: rgba(238,234,226,.18); --acc: var(--amber); --btn-ink: #14110F; }
/* the AI chapter: blue-black with an ice-blue light */
[data-grade="cobalt"] { --dim: #AFBAD6; --line: rgba(170,195,255,.2); --acc: var(--ice); }
[data-grade="cobalt"] .tag, [data-grade="cobalt"] .new { color: var(--ice); }
/* a faint electric light deep in the blue, so the chapter reads as forward rather than flat */
.ai.grade { background: radial-gradient(55% 35% at 88% 38%, rgba(61,107,255,.16), transparent 70%), radial-gradient(45% 30% at 6% 78%, rgba(61,107,255,.1), transparent 70%), var(--g); }
[data-tone="light"] { --fg: #14110F; --dim: #4F493F; --line: rgba(20,17,15,.18); --acc: var(--crimson); --btn-ink: #EEEAE2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--g-ink); color: #EEEAE2;
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.95; letter-spacing: .03em;
  overflow-x: clip; transition: background-color 1.1s var(--ease-out);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .26em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #EEEAE2; color: #14110F; padding: 8px 14px; z-index: 400; }
.skip:focus { left: 8px; }

/* every chapter carries its own grade; the seam to the previous chapter is a soft dissolve */
.grade { position: relative; background: var(--g); color: var(--fg); isolation: isolate; }
.grade[style*="--prev"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(64px, 11vh, 120px); background: linear-gradient(var(--prev), transparent); pointer-events: none; z-index: -1; }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 14px; pointer-events: none; z-index: 60; mix-blend-mode: difference; color: #fff; }
.hud-c { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(255,255,255,.7); }
.hud-c.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-c.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-c.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-c.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud-rec, .hud-tc, .hud-scene { position: absolute; bottom: 8px; font: 500 11px/1 var(--sans); letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.hud-rec { left: 32px; display: flex; align-items: center; gap: 8px; }
.hud-rec i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, start) infinite; }
.hud-scene { left: 92px; opacity: .8; }
.hud-scene b { font-weight: 500; }
.hud-prog { position: absolute; left: 300px; right: 150px; bottom: 12px; height: 1px; background: rgba(255,255,255,.14); }
.hud-prog i { position: absolute; inset: 0; background: rgba(255,255,255,.7); transform: scaleX(0); transform-origin: left; }
.hud-tc { right: 32px; }
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 700px) { .hud-rec, .hud-scene, .hud-tc, .hud-prog { display: none; } .hud { inset: 8px; } }
@media (prefers-reduced-motion: reduce) { .hud-rec i { animation: none; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding: 0 clamp(30px, 4.2vw, 60px);
  mix-blend-mode: difference; color: #fff;
}
.site-header { transition: transform .6s var(--ease), background-color .4s; }
.site-header.away { transform: translateY(-100%); }
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; text-decoration: none; }
.brand-mark-t { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .08em; }
.brand-kana { font-size: .6rem; font-weight: 500; letter-spacing: .32em; margin-top: 6px; }
.nav { display: flex; gap: 34px; align-items: center; font-size: .86rem; font-weight: 500; letter-spacing: .12em; }
.nav a { color: #fff; text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { border: 1px solid #fff; border-radius: 999px; padding: 8px 20px; }
.nav .nav-cta::after { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; padding: 0 10px; }
.menu-btn span { display: block; height: 1px; background: #fff; transition: transform .3s; }
@media (max-width: 900px) {
  .site-header { height: 68px; padding: 0 22px; }
  .menu-btn { display: flex; }
  .nav { display: none; }
  .site-header.menu-open, .site-header.scrolled { mix-blend-mode: normal; background: rgba(20,17,15,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--g-ink); padding: 24px 22px;
  }
  .nav.open a { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .08em; padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(238,234,226,.14); }
  .nav.open .nav-cta { border: 0; border-radius: 0; padding: 14px 0; color: var(--amber); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- hero: a title card in cinemascope ---------- */
.hero { --bar: clamp(44px, 9vh, 96px); position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--g-ink); color: #EEEAE2; }
.fluid { position: absolute; inset: 0; width: 100%; height: 100%; }
.fluid.fallback {
  background: radial-gradient(40% 50% at 70% 40%, #8E1B24, transparent 70%), radial-gradient(50% 60% at 30% 60%, #0F1E46, transparent 70%), radial-gradient(30% 40% at 60% 75%, #E2A23B, transparent 70%), var(--g-ink);
  filter: blur(30px);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(20,17,15,.85), rgba(20,17,15,0)); pointer-events: none; }

/* the letterbox: both bars start closed (continuing the leader's cut) and open */
.bar { position: absolute; left: 0; right: 0; z-index: 3; height: calc(var(--bar) + var(--bar-x, 0px)); background: var(--g-ink); pointer-events: none; animation: bar-open 1.5s var(--ease) 1.25s both; }
.bar-t { top: 0; }
.bar-b { bottom: 0; }
@keyframes bar-open { from { height: 50%; } }

.hero-brand { position: absolute; z-index: 2; left: clamp(30px, 5vw, 80px); top: calc(var(--bar) + clamp(24px, 6vh, 72px)); transform: scale(var(--mk-s, 1)); transform-origin: 0 0; opacity: var(--mk-o, 1); filter: var(--mk-f, none); }
.hero-mark {
  font-family: var(--serif); font-weight: 500; font-size: min(19vw, 33vh); line-height: .8; letter-spacing: -.01em; margin-left: -.04em;
  /* the glyphs are taller than the tight line box; pad it so the blur-in never crops their tops and feet */
  padding: .12em 0 .16em; margin-top: -.12em; margin-bottom: -.16em;
  color: #fff; mix-blend-mode: difference; white-space: nowrap; user-select: none;
  animation: markin 2s var(--ease-out) 1.6s both;
}
.hero-kana { margin: clamp(16px, 2.4vh, 28px) 0 0; font-weight: 500; font-size: clamp(.72rem, .95vw, .9rem); letter-spacing: 1.1em; color: #EEEAE2; animation: in 1.4s var(--ease-out) 1.9s both; }

/* the line itself is set vertically, the way a Japanese film title is */
.hero-title {
  position: absolute; z-index: 2; right: clamp(34px, 7vw, 120px); top: calc(var(--bar) + clamp(28px, 6vh, 72px));
  writing-mode: vertical-rl; font-family: var(--serif); font-weight: 500;
  font-size: min(3.5vw, 5.5vh); line-height: 1.6; letter-spacing: .18em;
  transform: translateY(var(--cp-y, 0)); opacity: var(--cp-o, 1);
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .14em; }
.hero-title .line > span { display: inline-block; animation: down 1.5s var(--ease-out) 2s both; }
.hero-title .line + .line > span { animation-delay: 1.8s; }
.hero-copy { position: absolute; z-index: 2; left: clamp(30px, 5vw, 80px); bottom: calc(var(--bar) + clamp(28px, 6vh, 64px)); max-width: min(34em, 46vw); transform: translateY(var(--cp-y, 0)); opacity: var(--cp-o, 1); }
.hero-lead { color: #EEEAE2; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.9; animation: in 1.2s var(--ease-out) 2.3s both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: 26px; animation: in 1.2s var(--ease-out) 2.45s both; }
@keyframes in { from { opacity: 0; transform: translateY(18px); } }
@keyframes up { from { transform: translateY(110%); } }
@keyframes down { from { transform: translateY(-105%); } }
@keyframes markin { from { opacity: 0; letter-spacing: .12em; filter: blur(24px); } }
.no-leader .bar { animation-delay: 0s; }
.no-leader .hero-mark { animation-delay: .35s; }
.no-leader .hero-kana { animation-delay: .6s; }
.no-leader .hero-title .line > span { animation-delay: .75s; }
.no-leader .hero-title .line + .line > span { animation-delay: .55s; }
.no-leader .hero-lead { animation-delay: 1s; }
.no-leader .hero-actions { animation-delay: 1.15s; }
@media (max-width: 700px) {
  .hero { --bar: 7vh; }
  .hero-brand { left: 22px; top: calc(var(--bar) + 40px); }
  .hero-mark { font-size: 21vw; }
  .hero-kana { letter-spacing: .6em; font-size: .7rem; }
  .hero-title { right: 14px; top: calc(var(--bar) + 36px); font-size: min(7.6vw, 4.4vh); letter-spacing: .12em; }
  .hero-copy { left: 22px; right: 22px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bar, .hero-mark, .hero-kana, .hero-title .line > span, .hero-lead, .hero-actions { animation: none; }
}

.text-link { display: inline-block; font-weight: 500; letter-spacing: .14em; text-decoration: none; padding-bottom: 6px; position: relative; color: inherit; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.text-link:hover::after { transform: scaleX(.3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 36px;
  border-radius: 999px; border: 0; background: var(--fg, #EEEAE2); color: var(--btn-ink, #14110F); text-decoration: none;
  font: 500 .95rem/1 var(--sans); letter-spacing: .14em; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), color .4s;
}
.hero .btn { background: #EEEAE2; color: #14110F; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acc, var(--amber)); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }

/* ---------- manifesto ---------- */
/* wide screens: the question in a reading measure, the answer across the frame */
.manifesto { padding: clamp(140px, 22vh, 260px) 0 clamp(120px, 18vh, 220px); }
.manifesto-wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.manifesto-text {
  grid-column: 2; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 2; letter-spacing: .1em; margin: 0;
}
.manifesto-text br.sp { display: none; }
.manifesto-text em { display: block; font-style: normal; font-size: min(3.1em, 6.2vw); line-height: 1.3; letter-spacing: .06em; margin-top: .55em; margin-left: -.06em; white-space: nowrap; }
.manifesto-text .ch { color: rgba(20,17,15,.14); transition: color .5s linear; }
.manifesto-text .ch.on { color: var(--fg); }
.manifesto-text .ch.em.on { color: var(--crimson); }
.manifesto-sign { grid-column: 1; grid-row: 1; margin: .9em 0 0; font-size: .9rem; line-height: 2.1; letter-spacing: .24em; color: var(--dim); }
/* phones: written vertically, right to left, like a Japanese shooting script */
@media (max-width: 700px) {
  .manifesto { padding: 110px 0 90px; }
  .manifesto-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 40px; }
  /* the breaks are set by hand so every phone reads the same lines; the type shrinks to fit the longest (19 characters) */
  .manifesto-text { writing-mode: vertical-rl; white-space: nowrap; height: auto; font-size: min(1.3rem, calc(70svh / 21.5)); line-height: 2.05; letter-spacing: .1em; margin: 0 auto; }
  .manifesto-text br.sp { display: inline; }
  .manifesto-text em { font-size: 1.2em; margin: 0 1em 0 0; letter-spacing: .1em; }
  .manifesto-sign { align-self: flex-start; margin: 0; }
}

/* ---------- services: pinned, graded per panel ---------- */
.services { position: relative; height: 320vh; }
.services-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.services-track { display: flex; height: 100%; width: 300vw; transform: translate3d(calc(var(--sx, 0) * -200vw), 0, 0); }
/* each panel is a frame: the photograph bleeds to the edge, the copy sits beside it */
.panel { position: relative; width: 100vw; height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 110px); padding: 0 clamp(30px, 7vw, 130px) 0 0; overflow: hidden; }
.panel-art { position: relative; height: 100%; display: grid; place-items: center; }
.pimg { position: relative; width: 100%; height: 100%; overflow: hidden; clip-path: inset(calc((1 - var(--lr, 1)) * 100%) 0 0 0); }
.pimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--lr, 1) * .25)) translateX(var(--lx, 0)); }
.panel-body { position: relative; max-width: 34em; }
.panel-index { font-size: .78rem; font-weight: 500; letter-spacing: .3em; color: var(--dim); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-kind { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: 1.15; letter-spacing: .06em; margin: 0 0 32px; }
.panel-head { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.7; letter-spacing: .08em; margin-bottom: 18px; }
.panel-body > p:not(.panel-index):not(.panel-head) { color: var(--dim); font-size: 1.06rem; }
.new { font-size: .76rem; letter-spacing: .14em; color: var(--amber); border: 1px solid currentColor; padding: 3px 12px; border-radius: 999px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 15px; font-size: .82rem; letter-spacing: .08em; }

/* design: construction lines drawn over the photograph */
.grid-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ga-guide { stroke: rgba(20,17,15,.22); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.ga-circle, .ga-bezier { fill: none; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p2, 1)); vector-effect: non-scaling-stroke; }
.ga-circle { stroke: #14110F; stroke-width: 1; }
.ga-bezier { stroke: var(--crimson); stroke-width: 2; }

/* ai: the photograph sits behind the demo card */
.panel-ai .panel-art { width: 100%; }
.panel-ai .panel-kind { white-space: nowrap; }
.panel-link { margin: 28px 32px 0 0; }
/* "AI" is set in full-width letters, stacked one per square like the kana around it */
.zen { text-orientation: upright; }


@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .services { height: auto; }
  .services-pin { position: static; height: auto; overflow: visible; }
  .services-track { width: auto; flex-direction: column; transform: none; }
  .panel { width: auto; height: auto; grid-template-columns: 1fr; padding: 96px var(--gutter); align-items: start; }
  .panel-art { height: auto; order: 0; margin-bottom: 8px; }
  .panel { gap: 24px; }
  .panel-kind { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: 18px; }
  .panel-index { margin-bottom: 14px; }
  .grid-art { display: none; }
  .pimg { height: min(46vh, 340px); width: 100%; aspect-ratio: auto; }
  .ga-circle, .ga-bezier { stroke-dashoffset: 0; }
}

/* AI demo: shared pieces */
.demo-spec { margin: 0; }
.demo-spec > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(238,234,226,.14); font-size: 1rem; }
.demo-spec dt { color: var(--dim); }
.demo-spec dd { margin: 0; }
.demo-script { list-style: none; margin: 0; padding: 0; }
.demo-script li { padding: 12px 0; border-bottom: 1px solid rgba(238,234,226,.14); font-size: 1.04rem; line-height: 1.8; }
.demo-script span { display: block; font-size: .8rem; letter-spacing: .14em; color: var(--dim); font-variant-numeric: tabular-nums; }
mark { color: inherit; padding: 1px 3px; border-radius: 2px; }
mark.flag { background: rgba(226,72,106,.32); text-decoration: line-through; text-decoration-color: #F06A86; text-decoration-thickness: 2px; }
mark.fix { background: rgba(61,107,255,.38); }
.demo-legend { font-size: .78rem; color: var(--dim); margin: 12px 0 0; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.sw-flag { background: rgba(226,72,106,.6); }
.sw-fix { background: rgba(61,107,255,.6); }
.demo-note { font-size: .86rem; color: var(--dim); margin: 14px 0 0; text-align: right; }

/* scrub: an edit timeline that is also the chapter nav */
.scrub { position: absolute; left: clamp(30px, 7vw, 130px); right: clamp(30px, 7vw, 130px); bottom: 40px; z-index: 3; mix-blend-mode: difference; color: #fff; }
.scrub-bar { position: relative; height: 1px; background: rgba(255,255,255,.3); }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--sx, 0) * 100%); background: #fff; }
.scrub-head { position: absolute; top: -8px; left: calc(var(--sx, 0) * 100%); width: 1px; height: 17px; background: #fff; }
.scrub-labels { list-style: none; margin: 12px 0 0; padding: 0; display: flex; justify-content: space-between; font-size: .76rem; letter-spacing: .2em; }
.scrub-labels li:nth-child(2) { text-align: center; }
.scrub-labels button { font: inherit; letter-spacing: inherit; color: rgba(255,255,255,.55); background: none; border: 0; padding: 6px 0; cursor: pointer; transition: color .3s; }
.scrub-labels li.on button, .scrub-labels button:hover { color: #fff; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) { .scrub { display: none; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; }
.marquee-row { display: flex; gap: .5em; width: max-content; font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 9vw, 8.4rem); line-height: 1.15; letter-spacing: .06em; white-space: nowrap; transform: translate3d(var(--mx, 0), 0, 0) skewX(var(--msk, 0deg)); }
.marquee-row .mq-o { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee-row span::after { content: ""; display: inline-block; width: .9em; height: 1px; background: var(--fg); vertical-align: middle; margin-left: .5em; opacity: .5; }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; position: relative; }
.big-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 4.1rem); line-height: 1.45; letter-spacing: .08em; }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 130px); align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.col-head { position: sticky; top: 130px; }
@media (max-width: 900px) { .col-head { position: static; } }
.lead { color: var(--dim); margin-top: 28px; max-width: 33em; }
.lead.strong { color: var(--fg); font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.9; letter-spacing: .06em; }
.narrow { max-width: 40em; }
.note { font-size: .92rem; color: var(--dim); line-height: 1.9; margin-top: 28px; max-width: 60em; }
.sub { font-weight: 500; font-size: .86rem; letter-spacing: .3em; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
* + .sub { margin-top: 80px; }

/* flow */
.flow-img { margin-top: 48px; overflow: hidden; aspect-ratio: 3 / 2; }
.flow-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateY(var(--fy, 0)); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 48px; position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 7px; top: 10px; width: 1px; height: calc((100% - 20px) * var(--tp, 0)); background: var(--crimson); }
.timeline li { counter-increment: s; position: relative; padding: 0 0 64px; }
.timeline li::before { content: ""; position: absolute; left: -46px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--g-paper); border: 1px solid var(--dim); transition: border-color .4s, background .4s, transform .4s var(--ease-out); }
.timeline li.on::before { border-color: var(--crimson); background: var(--crimson); transform: scale(1.3); }
.timeline b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: .08em; line-height: 1.4; margin-bottom: 10px; }
.timeline b::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-size: .42em; letter-spacing: .2em; color: var(--crimson); margin-right: 1.2em; vertical-align: middle; }
.timeline span { color: var(--dim); }

/* price */
.price-hero { display: grid; grid-template-columns: 1fr 1fr; margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-hero > div { padding: 36px 0; }
.price-hero > div + div { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 64px); }
.ph-label { font-size: .82rem; letter-spacing: .3em; color: var(--dim); margin: 0 0 10px; }
.ph-num { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1; letter-spacing: .02em; margin: 0; font-variant-numeric: lining-nums; }
.ph-num small { font-size: .26em; letter-spacing: .1em; margin-left: .3em; }
.ph-note { margin: 14px 0 0; font-size: .95rem; color: var(--dim); }
@media (max-width: 640px) { .price-hero { grid-template-columns: 1fr; } .price-hero > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 80px; margin-top: 72px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-block h3 { font-size: .86rem; letter-spacing: .3em; color: var(--dim); margin-bottom: 8px; }
.price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price th, .price td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price th { text-align: left; font-weight: 400; padding-right: 16px; }
.price td { text-align: right; white-space: nowrap; font-family: var(--serif); font-weight: 600; letter-spacing: .04em; }
.price td small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--dim); font-weight: 400; }

/* ai */
.ai { overflow: hidden; }
/* the chapter opens on a full-width still; the title rises out of its shadow */
.ai-band { position: relative; height: 82vh; min-height: 480px; overflow: hidden; margin-bottom: -22vh; }
.ai-band + .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { .ai-band { height: 58svh; min-height: 0; margin-bottom: -10svh; } }
.ai-band img { width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--ay, 0)); }
.ai-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,11,28,0) 35%, var(--g-cobalt)); }
.ai.section { padding-top: 0; }
.tag { display: inline-block; font-size: .78rem; letter-spacing: .2em; color: var(--amber); border: 1px solid currentColor; border-radius: 999px; padding: 3px 14px; margin-bottom: 32px; }
.ai-intro { margin-top: 32px; }
.ai-body { margin-top: 56px; }
.ai-body .sub { margin-top: 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.65em; width: 14px; height: 1px; background: var(--amber); }
.uses { margin: 0; }
.uses > div { display: grid; grid-template-columns: 10em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.uses dt { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; }
.uses dd { margin: 0; color: var(--dim); }
@media (max-width: 560px) { .uses > div { grid-template-columns: 1fr; gap: 4px; } }
.flow4 { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.flow4 li { counter-increment: s; padding: 8px 0; }
.flow4 li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin-bottom: 18px; color: var(--amber); }
.flow4 b { display: block; margin-bottom: 8px; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; }
.flow4 span { color: var(--dim); }
@media (max-width: 900px) { .flow4 { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .flow4 { grid-template-columns: 1fr; } }
.offer { margin-top: 88px; padding: clamp(30px, 4.5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; border: 1px solid var(--line); background: rgba(238,234,226,.04); }
.offer h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.9rem); letter-spacing: .06em; margin-bottom: 12px; }
.offer p { margin: 0; color: var(--dim); max-width: 34em; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; letter-spacing: .05em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 15px; height: 1px; background: var(--fg); transition: transform .4s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--dim); padding: 0 0 26px; margin: 0; max-width: 36em; }

/* company */
.company { padding-top: 0; }
.profile { margin: 0; }
.profile > div { display: grid; grid-template-columns: 7em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile > div:first-child { border-top: 1px solid var(--line); }
.profile dt { color: var(--dim); }
.profile dd { margin: 0; }

/* contact */
.contact { overflow: hidden; color: #EEEAE2; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,17,15,.94) 25%, rgba(20,17,15,.7) 60%, rgba(20,17,15,.88)); }
.contact .wrap { position: relative; }
.contact-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.7vw, 2.7rem); line-height: 1.6; letter-spacing: .08em; }
.contact-title .nb { white-space: nowrap; }
.contact-mail { margin-top: 36px; }
.contact-mail span { display: block; font-size: .9rem; letter-spacing: .14em; color: var(--dim); margin-bottom: 6px; }
.contact-mail a { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.contact-mail a:hover { border-color: currentColor; }
.form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 44px); background: rgba(20,17,15,.82); border: 1px solid rgba(238,234,226,.14); }
.form-howto { margin: 0; font-size: .94rem; color: var(--dim); padding: 12px 16px; border-left: 1px solid var(--amber); background: rgba(226,162,59,.07); }
.topic { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.topic legend { font-size: .94rem; letter-spacing: .14em; color: #EEEAE2; margin-bottom: 10px; padding: 0; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic label { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; font-size: .88rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.topic label:has(input:checked) { background: #EEEAE2; color: #14110F; border-color: #EEEAE2; }
.topic label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .94rem; letter-spacing: .1em; color: #EEEAE2; }
.field em { font-style: normal; font-size: .76rem; margin-left: 8px; }
.field input, .field textarea { font: inherit; color: #EEEAE2; background: rgba(238,234,226,.08); border: 0; border-bottom: 1px solid rgba(238,234,226,.55); border-radius: 2px 2px 0 0; padding: 13px 14px; width: 100%; transition: border-color .3s, background .3s; }
.field input:hover, .field textarea:hover { background: rgba(238,234,226,.09); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--amber); }
.field textarea { border: 1px solid rgba(238,234,226,.3); }
.field textarea:focus { border-color: var(--amber); }
.field textarea::placeholder { color: #7D776C; }
input[type="checkbox"] { accent-color: var(--amber); width: 18px; height: 18px; }
.agree { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.form-msg { min-height: 1.5em; margin: 0; font-size: .9rem; color: #F2A58E; }
.form-msg.ok { color: var(--amber); }
.form .btn { justify-self: start; }

/* footer */
.site-footer { padding: 72px var(--gutter) 36px; overflow: hidden; border-top: 1px solid rgba(238,234,226,.12); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: .12em; margin: 0 0 56px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--amber); }
.footer-mark { font-family: var(--serif); font-weight: 500; font-size: 17vw; line-height: .95; letter-spacing: .02em; margin: 0; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(238,234,226,.32); user-select: none; transition: color 1s var(--ease-out); }
.footer-mark:hover { color: rgba(238,234,226,.92); }
.footer-kana { text-align: center; margin: 14px 0 56px; font-weight: 500; font-size: .82rem; letter-spacing: 1.2em; padding-left: 1.2em; color: var(--dim); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; font-size: .8rem; letter-spacing: .08em; color: var(--dim); max-width: var(--w); margin: 0 auto; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--dim); }

/* sub pages */
.doc { padding: 150px 0 var(--sec); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: .08em; margin-bottom: 36px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; margin: 52px 0 12px; }
.doc p, .doc li { color: var(--dim); }
.doc ul { padding-left: 1.3em; }
.nav-cta-solo { border: 1px solid #fff; border-radius: 999px; padding: 8px 20px; color: #fff; text-decoration: none; font-size: .86rem; letter-spacing: .12em; }

/* =========================================================
   Motion layer
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* film leader: 3, 2, 1, cut */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.leader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--g-paper); color: var(--g-ink);
  animation: leader-in .15s ease-out both, leader-out .45s var(--ease) 1.2s forwards;
}
.leader-frame { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.leader-sweep { position: absolute; inset: -40%; background: conic-gradient(from 0deg, rgba(20,17,15,.22) var(--sweep), transparent var(--sweep)); animation: sweep .4s linear 3 both; }
.leader-ring { position: absolute; width: 74vmin; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--g-ink); box-shadow: 0 0 0 clamp(10px, 1.8vmin, 20px) var(--g-paper), 0 0 0 calc(clamp(10px, 1.8vmin, 20px) + 1px) var(--g-ink); }
.leader-cross { position: absolute; inset: 0; background: linear-gradient(var(--g-ink), var(--g-ink)) center / 1px 100% no-repeat, linear-gradient(var(--g-ink), var(--g-ink)) center / 100% 1px no-repeat; opacity: .7; }
.leader-num { position: relative; font-family: var(--serif); font-weight: 500; font-size: 48vmin; line-height: 1; width: 1ch; height: 1em; }
.leader-num i { position: absolute; inset: 0; font-style: normal; text-align: center; opacity: 0; animation: num .4s linear forwards; }
.leader-num i:nth-child(2) { animation-delay: .4s; }
.leader-num i:nth-child(3) { animation-delay: .8s; }
.leader::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,.035) 3px 4px); }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes num { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes leader-in { from { opacity: 0; } }
@keyframes leader-out { to { clip-path: inset(50% 0 50% 0); visibility: hidden; } }
.no-leader .leader { display: none; }
@media (prefers-reduced-motion: reduce) { .leader { display: none; } }

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-4%); } 75% { transform: translate(-1%,3%); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* headings are cut in from below */
.js .big-title, .js .contact-title, .js .panel-kind { clip-path: inset(0 0 100% 0); transform: translateY(36px); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.js .big-title.in, .js .contact-title.in, .js .panel-kind.in { clip-path: inset(-10% -5% -20% -5%); transform: none; }
@media (prefers-reduced-motion: reduce) { .js .big-title, .js .contact-title, .js .panel-kind { clip-path: none; transform: none; transition: none; } }

/* viewfinder cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; width: 36px; height: 36px; margin: -18px 0 0 -18px; transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out); mix-blend-mode: difference; }
.cursor::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(#fff,#fff) top left / 9px 1px no-repeat, linear-gradient(#fff,#fff) top left / 1px 9px no-repeat,
    linear-gradient(#fff,#fff) top right / 9px 1px no-repeat, linear-gradient(#fff,#fff) top right / 1px 9px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 9px 1px no-repeat, linear-gradient(#fff,#fff) bottom left / 1px 9px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 9px 1px no-repeat, linear-gradient(#fff,#fff) bottom right / 1px 9px no-repeat; }
.cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #fff; transition: transform .3s; }
.cursor-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); font: 500 11px/1 var(--sans); letter-spacing: .2em; color: #fff; opacity: 0; transition: opacity .25s, transform .4s var(--ease-out); white-space: nowrap; }
.cursor.is-link { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-link::after { transform: scale(0); }
.cursor.is-link .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }




/* ---------- AI comparison ---------- */
.ai-def { margin-top: 36px; max-width: 46em; }
.compare { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cmp-col { padding: 26px 28px 30px; }
.cmp-col + .cmp-col { border-left: 1px solid var(--line); }
.cmp-col:first-child { padding-left: 0; }
.cmp-col:last-child { padding-right: 0; }
.cmp-label { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.cmp-label b { font-family: var(--sans); font-weight: 500; font-size: .8rem; color: var(--amber); }
.why { display: block; margin-top: 6px; font-style: normal; font-size: .86rem; letter-spacing: .06em; color: #F2A0B2; }
.why::before { content: "— "; }
.why.fix { color: var(--ice); }
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .cmp-col, .cmp-col:first-child, .cmp-col:last-child { padding: 24px 0; }
  .cmp-col + .cmp-col { border-left: 0; border-top: 1px solid var(--line); }
}
.deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.deliver li { border-top: 1px solid var(--line); padding: 22px 0 8px; }
.deliver b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; margin-bottom: 10px; }
.deliver span { color: var(--dim); }
@media (max-width: 900px) { .deliver { grid-template-columns: 1fr; } }

/* ---------- price: equipment folded ---------- */
.equip { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.equip summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: .9rem; letter-spacing: .14em; }
.equip summary::-webkit-details-marker { display: none; }
.equip summary::before, .equip summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 15px; height: 1px; background: var(--fg); transition: transform .4s var(--ease); }
.equip summary::after { transform: rotate(90deg); }
.equip[open] summary::after { transform: rotate(0); }
.equip .price { max-width: 640px; margin-bottom: 24px; }

/* horizontal panels change grade by wiping, not by dissolving */
@media (min-width: 861px) { .panel::before { display: none; } }
.sub + .compare { border-top: 0; }
.sub + .deliver li { border-top: 0; padding-top: 6px; }

.lab-note { margin: 0; font-size: .9rem; color: var(--dim); }

/* mobile: compare by time code instead of by column */
.cmp-rows { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) {
  .compare .cmp-col + .cmp-col { display: none; }
  .cmp-rows { display: block; }
  .cmp-rows li { border-top: 1px solid var(--line); padding: 18px 0; }
  .cmp-rows .t { display: block; font-size: .72rem; letter-spacing: .16em; color: var(--dim); margin-bottom: 8px; }
  .cmp-rows p { margin: 0 0 8px; font-size: .95rem; line-height: 1.8; }
  .cmp-rows b { display: inline-block; min-width: 4.2em; font-weight: 500; font-size: .76rem; letter-spacing: .1em; color: var(--dim); }
}

/* model estimate */
.estimate { margin-top: 72px; padding: clamp(28px, 4vw, 48px); background: rgba(20,17,15,.05); border: 1px solid var(--line); }
.estimate h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .06em; margin-bottom: 10px; }
.est-lead { color: var(--dim); }
.est-table { max-width: 720px; margin-top: 20px; }
.est-table tfoot th, .est-table tfoot td { border-bottom: 0; padding-top: 20px; font-size: 1.2rem; }
.est-table tfoot td { font-size: 1.6rem; }



/* ---------- AI x video: how one video is made ---------- */
.line-up { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.line-up::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--line); }
.line-up li { position: relative; padding: 44px 22px 0 0; }
.line-up .who { position: absolute; top: 0; left: 0; display: grid; place-items: center; min-width: 31px; height: 31px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; background: var(--g); border: 1px solid rgba(143,180,255,.6); color: var(--ice); }
.line-up .by-hu .who { border-color: var(--amber); background: var(--amber); color: #14110F; }
.line-up b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: .08em; margin-bottom: 8px; }
.line-up span:not(.who) { display: block; color: var(--dim); font-size: .98rem; line-height: 1.85; }
.line-up .by-hu b { color: var(--amber); }
.line-note { margin: 28px 0 0; color: var(--fg); font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.2rem); letter-spacing: .06em; }
@media (max-width: 900px) {
  .line-up { grid-template-columns: 1fr; }
  .line-up::before { left: 15px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .line-up li { padding: 0 0 26px 52px; }
}
.uses-4 > div { grid-template-columns: 14em 1fr; }
@media (max-width: 760px) { .uses-4 > div { grid-template-columns: 1fr; gap: 4px; } }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.way { padding: 30px clamp(20px, 3vw, 44px) 26px 0; }
.way + .way { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 44px); padding-right: 0; }
.way-k { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: .08em; margin-bottom: 12px; }
.way p:not(.way-k) { color: var(--dim); margin: 0; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } .way + .way { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }
.sub + .ways, .sub + .line-up { margin-top: 8px; }
.flow4-v { grid-template-columns: 1fr; gap: 0; }
.flow4-v li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow4-v li::before { grid-row: span 2; font-size: 1.7rem; margin: 0; }
.flow4-v b { margin-bottom: 4px; }

/* the real thing: AI-made shorts, published, shown as phone screens */
.works { margin-top: 72px; }
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 28px; }
.works-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: .08em; }
.work-wide { margin: 0 0 clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 3fr 1fr; gap: 24px clamp(24px, 3vw, 48px); align-items: end; }
.work-wide-screen { aspect-ratio: 1280 / 536; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(170,195,255,.14), 0 40px 80px -40px rgba(0,0,0,.9); }
.work-wide-screen video { width: 100%; height: 100%; object-fit: cover; }
.work-wide .work-k { margin-top: 0; }
@media (max-width: 900px) { .work-wide { grid-template-columns: 1fr; } }
.works-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.work-screen { position: relative; aspect-ratio: 9 / 16; border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; background: #03060f; box-shadow: 0 0 0 1px rgba(170,195,255,.16), 0 0 0 6px #03060f, 0 0 0 7px rgba(170,195,255,.12), 0 30px 60px -30px rgba(0,0,0,.8); }
.work-screen video { width: 100%; height: 100%; object-fit: cover; }
.work-k { margin: 22px 0 4px; font-size: .84rem; letter-spacing: .14em; color: var(--amber); }
.work-t { margin: 0; color: var(--dim); font-size: .95rem; line-height: 1.8; }
@media (max-width: 900px) { .works-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- AI x video: cinematography, said in words ---------- */
.craft { margin-top: clamp(72px, 9vw, 120px); }
.craft-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.5; letter-spacing: .08em; }
.craft-lead { margin: 20px 0 0; max-width: 40em; color: var(--dim); }
.craft-list { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 2.6vw, 40px); }
.craft-list > div { border-top: 1px solid var(--line); padding-top: 22px; }
.craft-list dt { font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.45rem); letter-spacing: .08em; margin-bottom: 14px; }
.craft-list dd { margin: 0; color: var(--dim); font-size: .98rem; line-height: 1.9; }
.craft-list q { display: block; quotes: "「" "」"; margin-bottom: 10px; color: var(--ice); font-family: var(--serif); font-size: 1rem; line-height: 1.8; }
@media (max-width: 1000px) { .craft-list { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
@media (max-width: 560px) { .craft-list { grid-template-columns: 1fr; } }
