/* Roadmap page as eight chapters. Layout ideas taken from grail-app.com:
   spread-out type, corner labels, a sheet that slides in tilted and peels off,
   rows that widen into place, a burn-hole reveal, piles that fall into columns. */
.gr { --gr-ink: #0a1f44; --gr-soft: #dfe9fb; --gr-paper: #fbfaf7; }
.gr-col { position: absolute; z-index: 6; top: 26px; left: 32px; right: 32px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .06em; pointer-events: none; }
.gr-col span:last-child { letter-spacing: .16em; }
.gr-dark { background: var(--night); color: #fff; }

/* ---------- opening: giant line + rotating ring of cards ---------- */
.gr-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.gr-hero-tag { position: relative; z-index: 4; padding-top: calc(var(--header-h) + 22px); text-align: center; font-size: 14px; color: rgba(255,255,255,.72); }
.gr-hero h1 { position: relative; z-index: 1; margin-top: 2vh; text-align: center; white-space: nowrap; font-size: min(11.2vw, 190px); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.gr-hero h1 em { font-style: normal; color: var(--accent); }
.gr-stage { position: absolute; z-index: 2; inset: 0; perspective: 1500px; perspective-origin: 50% 30%; pointer-events: none; }
.gr-ring { position: absolute; left: 50%; top: 64%; transform-style: preserve-3d; }
.gr-card { position: absolute; left: -80px; top: -105px; width: 160px; height: 210px; border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.gr-card img { width: 100%; height: 100%; object-fit: cover; }
.gr-card.q { padding: 14px 14px 12px; display: flex; flex-direction: column; }
.gr-card.q i { width: 26px; height: 26px; border-radius: 6px; background: var(--brand) url(/assets/img/logo.svg) center / cover; }
.gr-card.q small { margin-top: 8px; font-size: 9px; color: var(--muted); }
.gr-card.q b { margin-top: 2px; font-size: 15px; line-height: 1.3; font-weight: 900; }
.gr-card.q p { margin-top: 6px; font-size: 9.5px; line-height: 1.5; color: var(--muted); }
.gr-card.q span { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 8.5px; color: var(--muted); }
.gr-card.q.y { background: var(--accent); }
.gr-card.q.b { background: var(--brand); color: #fff; }
.gr-card.q.b small, .gr-card.q.b p, .gr-card.q.b span { color: rgba(255,255,255,.75); }
.gr-hero-sub { position: absolute; z-index: 4; left: 32px; right: 32px; bottom: 30px; display: flex; justify-content: space-between; align-items: end; font-size: 13px; color: rgba(255,255,255,.7); }
.gr-hero-sub b { color: #fff; }

/* ---------- ch01: staggered statement ---------- */
.gr-s1 { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 120px; }
.gr-s1 h2 { width: 100%; font-size: clamp(40px, 6.4vw, 104px); font-weight: 900; line-height: 1.12; }
.gr-s1 h2 > span { display: block; overflow: hidden; }
.gr-s1 h2 > span > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.gr-s1 h2 > span:nth-child(1) { padding-left: 38%; } .gr-s1 h2 > span:nth-child(2) { padding-left: 18%; }
.gr-s1 h2 > span:nth-child(3) { padding-left: 8%; } .gr-s1 h2 > span:nth-child(4) { padding-left: 38%; }
.gr-s1 h2 > span:nth-child(2) > span { transition-delay: .15s; } .gr-s1 h2 > span:nth-child(3) > span { transition-delay: .3s; } .gr-s1 h2 > span:nth-child(4) > span { transition-delay: .45s; }
.gr-s1 h2 em { font-style: normal; color: var(--accent); }
.gr-s1 p { margin: 56px 0 0 38%; max-width: 30em; color: rgba(255,255,255,.72); opacity: 0; transform: translateY(20px); transition: opacity .8s .7s, transform .8s .7s cubic-bezier(.22,1,.36,1); }
.gr-s1.in h2 > span > span { transform: none; }
.gr-s1.in p { opacity: 1; transform: none; }
.gr-side { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); font-size: 13px; color: rgba(255,255,255,.5); writing-mode: vertical-rl; letter-spacing: .3em; }

/* ---------- ch02: burn-hole reveal + giant number ---------- */
.gr-now { position: relative; height: 460vh; }
.gr-now-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gr-now-panel { position: absolute; inset: 0; color: var(--gr-ink); background: radial-gradient(70% 60% at 30% 30%, #f3f7ff, rgba(243,247,255,0) 70%), radial-gradient(60% 70% at 80% 80%, #b9cff5, rgba(185,207,245,0) 70%), var(--gr-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M101 12c18 1 22 16 37 18s30-6 38 8-6 25-2 40 22 21 14 38-27 10-36 22-6 34-24 40-25-12-42-12-29 18-44 8-3-30-12-43-30-13-28-31 21-19 21-36-12-31 3-41 27 6 41-1 18-11 34-11z'/%3E%3C/svg%3E") center / var(--m, 0%) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M101 12c18 1 22 16 37 18s30-6 38 8-6 25-2 40 22 21 14 38-27 10-36 22-6 34-24 40-25-12-42-12-29 18-44 8-3-30-12-43-30-13-28-31 21-19 21-36-12-31 3-41 27 6 41-1 18-11 34-11z'/%3E%3C/svg%3E") center / var(--m, 0%) no-repeat; }
.gr-now-big { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); text-align: center; white-space: nowrap; font-size: min(25vw, 46vh); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: rgba(0,74,173,.13); font-variant-numeric: tabular-nums; }
.gr-now-big small { font-size: .3em; letter-spacing: 0; }
.gr-now-title { position: absolute; top: 9vh; left: 0; right: 0; text-align: center; font-size: clamp(36px, 5.4vw, 84px); font-weight: 900; line-height: 1.05; }
.gr-now-obj { position: absolute; left: 50%; top: 52%; width: min(260px, 54vw); aspect-ratio: 4 / 5; margin: calc(min(260px, 54vw) * -.625) 0 0 calc(min(260px, 54vw) * -.5); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(10,31,68,.28); transform: rotate(var(--tilt, -6deg)); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.gr-now-obj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.gr-now-obj img.on { opacity: 1; }
.gr-now-foot { position: absolute; left: 40px; right: 40px; bottom: 7vh; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 26px; border-top: 1px solid rgba(10,31,68,.25); }
.gr-now-foot b { display: block; font-size: clamp(18px, 1.6vw, 24px); font-weight: 900; line-height: 1.4; }
.gr-now-foot p { font-size: 15px; color: rgba(10,31,68,.72); }
.gr-now-foot .src { display: block; margin-top: 6px; font-size: 12px; color: rgba(10,31,68,.5); }
.gr-now-foot > div:last-child { max-width: 30em; justify-self: end; }
.gr-now-dots { position: absolute; right: 40px; top: 50%; display: grid; gap: 10px; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: rgba(10,31,68,.35); }
.gr-now-dots span.on { color: var(--brand); }
.gr-now .gr-col { color: var(--gr-ink); }

/* ---------- ch03: tilted sheet with rows that widen ---------- */
.gr-sheet { position: relative; z-index: 5; margin-top: -100vh; padding: 120px 0 90px; background: var(--gr-paper); color: var(--ink); border-radius: 28px; transform-origin: 50% 0; transform: rotate(calc(var(--rot, 0) * 6deg)) scale(calc(1 - var(--off, 0) * .14)); will-change: transform; box-shadow: 0 -20px 60px rgba(0,0,0,.18); }
.gr-sheet .gr-col { color: var(--ink); }
.gr-sheet h2 { padding: 0 40px; font-size: clamp(38px, 5.6vw, 92px); font-weight: 900; line-height: 1.1; }
.gr-sheet h2 .stack { display: inline-flex; vertical-align: middle; margin: 0 .12em; }
.gr-sheet h2 .stack img { width: .9em; height: .9em; border-radius: 50%; object-fit: cover; border: 3px solid var(--gr-paper); margin-left: -.28em; }
.gr-sheet h2 .stack img:first-child { margin-left: 0; }
.gr-sheet-sub { padding: 0 40px; margin-top: 22px; color: var(--muted); }
.gr-rows { margin-top: 70px; }
.gr-row { --rp: 1; display: grid; grid-template-columns: 1fr 260px 1fr; gap: 40px; align-items: start; margin: 0 calc(40px + (1 - var(--rp)) * 14%); padding: 18px 0 20px; border-top: 1px solid var(--line); opacity: calc(.15 + var(--rp) * .85); }
.gr-row-l { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; }
.gr-row-l small { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.gr-row-l b { display: block; margin-top: 4px; font-size: 18px; font-weight: 900; }
.gr-row-l i { font-style: normal; font-size: 13px; color: var(--muted); }
.gr-row figure { margin: 0 auto; width: calc(130px + var(--rp) * 130px); aspect-ratio: 3 / 2; overflow: hidden; }
.gr-row figure img { width: 100%; height: 100%; object-fit: cover; }
.gr-row p { font-size: 15px; color: var(--ink); }
.gr-row:last-child { border-bottom: 1px solid var(--line); }

/* ---------- ch04: four corners + phone ---------- */
.gr-plat { position: relative; z-index: 4; height: 230vh; margin-top: -100vh; }
.gr-plat-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--gr-ink); background: radial-gradient(60% 50% at 20% 70%, #f4f8ff, rgba(244,248,255,0)), radial-gradient(50% 60% at 85% 25%, #c3d6f7, rgba(195,214,247,0)), var(--gr-soft); }
.gr-corner { position: absolute; font-size: clamp(48px, 7vw, 116px); font-weight: 900; line-height: 1.05; }
.gr-corner.tl { left: 40px; top: 12vh; } .gr-corner.tr { right: 40px; top: 12vh; text-align: right; }
.gr-corner .lt { display: block; color: rgba(10,31,68,.38); }
.gr-corner .w { display: inline-block; transition: transform 1s cubic-bezier(.22,1,.36,1), opacity 1s; }
.gr-plat:not(.in) .tl .w { transform: translateX(-30%); opacity: 0; } .gr-plat:not(.in) .tr .w { transform: translateX(30%); opacity: 0; }
.gr-phone { position: absolute; left: 50%; top: 50%; width: 236px; height: 486px; margin: -243px 0 0 -118px; border-radius: 42px; background: #fff; border: 7px solid #d7deea; box-shadow: 0 40px 80px rgba(10,31,68,.25); overflow: hidden; }
.gr-phone::before { content: ""; position: absolute; left: 50%; top: 10px; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #0a0f1a; }
.gr-phone-top { padding: 44px 16px 0; text-align: center; font-size: 12px; font-weight: 900; color: var(--brand); }
.gr-phone-card { margin: 14px 12px 0; padding: 12px; border-radius: 12px; background: var(--paper-warm); font-size: 11px; color: var(--muted); }
.gr-phone-card b { display: block; color: var(--ink); font-size: 15px; margin: 4px 0; }
.gr-phone-sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 64%; padding: 18px 14px 14px; border-radius: 30px; background: var(--night); color: #fff; text-align: center; transform: translateY(var(--ps, 100%)); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.gr-plat.in .gr-phone-sheet { --ps: 0%; }
.gr-phone-sheet h4 { font-size: 20px; font-weight: 900; line-height: 1.25; }
.gr-phone-sheet p { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.65); }
.gr-wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 70px; margin-top: 10px; }
.gr-wave i { width: 4px; border-radius: 2px; background: var(--accent); animation: grwave 1s ease-in-out infinite alternate; }
@keyframes grwave { from { height: 8px; } to { height: 46px; } }
.gr-phone-btns { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.gr-phone-btns span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; }
.gr-phone-btns span.on { background: var(--accent); color: var(--accent-ink); }
.gr-plat-txt { position: absolute; bottom: 12vh; width: min(340px, 30vw); font-size: 15px; color: rgba(10,31,68,.8); }
.gr-plat-txt b { display: block; margin-bottom: 6px; color: var(--gr-ink); }
.gr-plat-txt.l { left: 40px; } .gr-plat-txt.r { right: 40px; }
.gr-plat .gr-col { color: var(--gr-ink); }

/* ---------- ch05: dark pinned switcher ---------- */
.gr-model { position: relative; z-index: 6; height: 330vh; margin-top: -10vh; }
.gr-model-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; border-radius: 28px 28px 0 0; background: radial-gradient(55% 60% at 50% 45%, #123a7a, rgba(18,58,122,0) 70%), var(--night); color: #fff; }
.gr-model-note { position: absolute; left: 32px; top: 58px; max-width: 250px; font-size: 16px; font-weight: 700; line-height: 1.45; }
.gr-model-num { position: absolute; right: 32px; top: 50px; font-size: clamp(54px, 6vw, 96px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.gr-model-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.gr-model-name { position: relative; z-index: 1; text-align: center; font-size: min(15vw, 220px); font-weight: 900; line-height: .98; white-space: nowrap; transition: opacity .4s; }
.gr-model-name span { display: block; }
.gr-model-name span + span { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.85); }
.gr-model-photo { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(300px, 46vw); aspect-ratio: 3 / 4; margin: calc(min(300px, 46vw) * -.66) 0 0 calc(min(300px, 46vw) * -.5); border-radius: 160px 160px 18px 18px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.gr-model-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s, transform 1.2s cubic-bezier(.22,1,.36,1); }
.gr-model-photo img.on { opacity: 1; transform: none; }
.gr-model-line { position: absolute; left: 32px; right: 32px; bottom: 210px; height: 1px; background: rgba(255,255,255,.18); }
.gr-model-big { position: absolute; left: 32px; bottom: 34px; font-size: clamp(36px, 4.4vw, 70px); font-weight: 900; line-height: 1.12; }
.gr-model-side { position: absolute; right: 32px; bottom: 34px; width: min(420px, 40vw); }
.gr-model-side p { font-size: 14px; color: rgba(255,255,255,.7); min-height: 4.8em; }
.gr-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gr-pills button { padding: 9px 18px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.gr-pills button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- ch06: columns with falling piles ---------- */
.gr-bench { position: relative; z-index: 6; min-height: 100vh; padding: 110px 32px 0; overflow: hidden; background: var(--night); color: #fff; }
.gr-bench h2 { font-size: clamp(38px, 5.4vw, 88px); font-weight: 900; line-height: 1.08; }
.gr-bench > p { max-width: 30em; margin-top: 26px; color: rgba(255,255,255,.66); font-size: 15px; }
.gr-bench-cols { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); height: 58vh; min-height: 430px; margin: 60px -32px 0; }
.gr-bench-cols > div { position: relative; z-index: 1; padding: 0 32px; border-left: 1px solid rgba(255,255,255,.12); }
.gr-bench-cols > div:first-child { border-left: 0; }
.gr-bench-cols small { display: block; font-size: 15px; color: rgba(255,255,255,.7); }
.gr-bench-cols b { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 900; }
.gr-bench-cols em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: rgba(255,255,255,.45); max-width: 18em; }
.gr-bench-cols canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- ch07: scattered cities + assembling headline ---------- */
.gr-asia { position: relative; z-index: 6; height: 170vh; background: var(--paper-warm); border-radius: 28px 28px 0 0; margin-top: -28px; }
.gr-asia-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gr-city { position: absolute; width: var(--w, 200px); transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg)); will-change: transform; }
.gr-city img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; border-radius: 14px; box-shadow: 0 20px 40px rgba(10,31,68,.18); }
.gr-city figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.gr-asia-mid { position: absolute; left: 50%; top: 50%; width: 92%; transform: translate(-50%, -50%); text-align: center; }
.gr-asia-mid small { display: block; font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.gr-asia-mid h2 { margin-top: 18px; font-size: clamp(42px, 6.4vw, 108px); font-weight: 900; line-height: 1.1; }
.gr-asia-mid h2 .c { display: inline-block; will-change: transform; }
.gr-asia-mid h2 em { font-style: normal; color: var(--brand); }
.gr-asia-mid p { max-width: 34em; margin: 26px auto 0; color: var(--muted); }
.gr-asia .gr-col { color: var(--ink); }

/* ---------- ch08: invitation ---------- */
.gr-end { position: relative; z-index: 6; padding: 120px 32px 90px; text-align: center; overflow: hidden; }
.gr-end-icon { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.gr-end-icon::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; background: repeating-conic-gradient(from 0deg, rgba(143,184,255,.16) 0 3deg, rgba(143,184,255,0) 3deg 14deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent); mask: radial-gradient(closest-side, #000 20%, transparent); animation: grrays 40s linear infinite; }
@keyframes grrays { to { transform: rotate(360deg); } }
.gr-end-icon img { position: relative; width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 0 60px rgba(70,140,255,.55), 0 0 0 1px rgba(255,255,255,.15); }
.gr-end h2 { margin-top: 36px; font-size: 22px; font-weight: 900; }
.gr-end > p { max-width: 30em; margin: 12px auto 0; color: rgba(255,255,255,.66); font-size: 15px; }
.gr-end-big { position: relative; display: block; margin: 9vh auto 0; padding-bottom: 14px; color: #fff; text-decoration: none; font-size: min(10vw, 150px); font-weight: 900; line-height: 1.05; }
.gr-end-big span { color: rgba(255,255,255,.5); transition: color .4s; }
.gr-end-big:hover span { color: #fff; }
.gr-end-big::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.6); transform: scaleX(0); transition: transform 1.1s .3s cubic-bezier(.22,1,.36,1); }
.gr-end.in .gr-end-big::after { transform: scaleX(1); }
.gr-end-links { display: flex; justify-content: center; gap: 28px; margin-top: 22px; font-size: 14px; }
.gr-end-links a { color: rgba(255,255,255,.7); }
.gr-end-links a:hover { color: var(--accent); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .gr-col { left: 18px; right: 18px; top: 18px; font-size: 12px; }
  .gr-hero h1 { font-size: 13.4vw; margin-top: 4vh; }
  .gr-card { transform-origin: center; }
  .gr-hero-sub { left: 18px; right: 18px; flex-direction: column; align-items: start; gap: 6px; }
  .gr-s1 h2 > span:nth-child(n) { padding-left: 0; }
  .gr-s1 h2 > span:nth-child(2), .gr-s1 h2 > span:nth-child(4) { padding-left: 12%; }
  .gr-s1 p { margin-left: 12%; }
  .gr-side { display: none; }
  .gr-now-foot { left: 18px; right: 18px; grid-template-columns: 1fr; gap: 10px; bottom: 4vh; }
  .gr-now-foot > div:last-child { justify-self: start; }
  .gr-now-dots { display: none; }
  .gr-now-title { top: 11vh; }
  .gr-sheet h2, .gr-sheet-sub { padding: 0 18px; }
  .gr-row { grid-template-columns: 1fr; gap: 12px; margin: 0 calc(18px + (1 - var(--rp)) * 6%); }
  .gr-row-l { min-height: 0; flex-direction: row; justify-content: space-between; align-items: start; }
  .gr-row figure { margin: 0; width: 100%; }
  .gr-corner { font-size: 13vw; }
  .gr-corner.tl { left: 18px; top: 10vh; } .gr-corner.tr { right: 18px; top: 10vh; }
  .gr-phone { transform: scale(.78); top: 54%; }
  .gr-plat-txt { width: auto; left: 18px; right: 18px; bottom: 3vh; font-size: 13px; }
  .gr-plat-txt.l { display: none; }
  .gr-model-note { left: 18px; top: 50px; font-size: 14px; max-width: 60%; }
  .gr-model-num { right: 18px; top: 46px; }
  .gr-model-line { display: none; }
  .gr-model-big { left: 18px; bottom: auto; top: 20vh; font-size: 0; }
  .gr-model-side { left: 18px; right: 18px; width: auto; bottom: 22px; }
  .gr-model-side p { min-height: 0; font-size: 13px; }
  .gr-bench { padding: 90px 18px 0; }
  .gr-bench-cols { grid-template-columns: 1fr 1fr; height: 70vh; margin: 40px -18px 0; }
  .gr-bench-cols > div { padding: 0 18px; }
  .gr-bench-cols > div:nth-child(3) { border-left: 0; }
  .gr-city { --w: 120px !important; }
  .gr-end { padding: 90px 18px 70px; }
  .gr-end-big { font-size: 15vw; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-wave i, .gr-end-icon::before { animation: none; }
}
.gr { overflow-x: clip; }
.gr-model-name span:first-child { transform: translateY(-34%); }
.gr-model-name span + span { transform: translateY(30%); }
.gr-model-photo { width: min(230px, 40vw); margin: calc(min(230px, 40vw) * -.66) 0 0 calc(min(230px, 40vw) * -.5); }
.gr-asia-mid { z-index: 2; }
.gr-asia-mid h2, .gr-asia-mid p { text-shadow: 0 0 24px var(--paper-warm), 0 0 8px var(--paper-warm); }
.gr-city img { height: auto; }
@media (max-width: 860px) {
  .gr-hero h1 { font-size: 11vw; }
  .gr-s1 h2 { font-size: 8.4vw; }
  .gr-corner { font-size: 9.6vw; }
  .gr-corner .lt { display: none; }
  .gr-corner.tr { top: calc(10vh + 12vw); }
  .gr-model-name { font-size: 15vw; }
  .gr-model-name span:first-child { transform: translateY(-2.5em); }
  .gr-model-name span + span { transform: translateY(1.9em); }
  .gr-city { --w: 100px !important; }
}
@media (max-width: 860px) { .gr-card { left: -56px; top: -74px; width: 112px; height: 148px; } .gr-card.q b { font-size: 12px; } .gr-card.q p { display: none; } }
.gr-s1 h2 { font-size: clamp(36px, 5.4vw, 84px); }
.gr-s1 h2 > span:nth-child(1) { padding-left: 6%; } .gr-s1 h2 > span:nth-child(2) { padding-left: 26%; }
.gr-s1 p { margin-left: 26%; }
@media (max-width: 860px) {
  .gr-s1 h2 { font-size: 6.6vw; }
  .gr-s1 h2 > span:nth-child(1) { padding-left: 0; } .gr-s1 h2 > span:nth-child(2) { padding-left: 8%; }
  .gr-s1 p { margin-left: 8%; }
  .gr-sheet h2 { font-size: 7.4vw; }
}
@media (min-width: 861px) { .gr-s1 h2 { font-size: clamp(36px, 4.8vw, 76px); } }
/* ---------- round 2 ---------- */
/* opening spiral */
.gr-spiral { position: absolute; z-index: 2; left: 0; right: 0; top: 18vh; bottom: 0; perspective-origin: 50% 45%; pointer-events: none; overflow: hidden; }
.gr-spin { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateZ(var(--rz, 0deg)); }
.gr-slot { position: absolute; width: calc(var(--u, 150px) * 1.5); height: calc(var(--u, 150px) * 1.95); left: calc(var(--u, 150px) * -.75); top: calc(var(--u, 150px) * -.975); will-change: transform; }
.gr-slot .gr-card { position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; }
.gr-slot::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: #050f26; opacity: var(--dim, 0); pointer-events: none; }
.gr-hero { cursor: default; }
/* ch01: two lines, never wrapping */
.gr-s1 h2 { font-size: min(5.1vw, 80px); }
.gr-s1 h2 > span { white-space: nowrap; }
.gr-s1 h2 > span:nth-child(1) { padding-left: 0; }
.gr-s1 h2 > span:nth-child(2) { padding-left: 0; text-align: right; }
.gr-s1 p { margin: 52px 0 0 auto; }
@media (min-width: 861px) { .gr-s1 h2 { font-size: min(5.1vw, 80px); } }
@media (max-width: 860px) { .gr-s1 h2 { font-size: 6.2vw; } .gr-s1 h2 > span:nth-child(2) { padding-left: 0; } .gr-s1 p { margin: 36px 0 0 auto; max-width: 92%; } }
/* ch02: organic blob grows with transform (cheap), content fades in after */
.gr-now-panel { -webkit-mask: none; mask: none; background: none; opacity: 0; }
.gr-now-blob { position: absolute; left: 50%; top: 50%; width: 260vmax; height: 260vmax; border-radius: 43% 57% 52% 48% / 51% 44% 56% 49%; background: radial-gradient(closest-side, #f3f7ff 0%, #e2ecfc 45%, #cddcf7 100%); transform: translate(-50%, -50%) scale(.001); will-change: transform; }
.gr-now-big { left: 4vw; right: auto; text-align: left; font-size: min(16vw, 34vh); }
.gr-now-obj { left: auto; right: 9vw; top: 25%; margin: 0; width: min(240px, 19vw); }
@media (max-width: 860px) { .gr-now-obj { display: none; } .gr-now-big { font-size: 22vw; left: 18px; } }
/* ch06 source line */
.gr-bench-src { position: relative; z-index: 2; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.4); }
/* ch08: translucent tile with light rays that follow the pointer */
.gr-end { padding-top: 110px; }
.gr-rays { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gr-tile { position: relative; z-index: 1; width: clamp(96px, 8.5vw, 132px); aspect-ratio: 1; margin: 4vh auto 0; border-radius: 30px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at var(--lx, 45%) var(--ly, 32%), #ffffff 0%, #dde8fb 55%, #bcd0f4 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.gr-tile-mark { width: 74%; height: 74%; background: var(--brand); -webkit-mask: url(/assets/img/logo-mark.svg) center / contain no-repeat; mask: url(/assets/img/logo-mark.svg) center / contain no-repeat; }
.gr-end h2, .gr-end > p, .gr-end-links { position: relative; z-index: 1; }
.gr-end h2 { margin-top: 40px; }
.gr-end-links { margin-top: 28px; }
@media (max-width: 860px) { .gr-tile { border-radius: 22px; width: 88px; } }
.gr-hero h1 { z-index: 3; text-shadow: 0 6px 30px rgba(5,15,40,.6); } .gr-spiral { top: 14vh; }
body:has(.gr-hero) .site-header:not(.solid) { color: #fff; }
body:has(.gr-hero) .site-header:not(.solid) .nav > a:hover, body:has(.gr-hero) .site-header:not(.solid) .nav a.active { color: var(--accent); }
/* round 3: dome rises from the bottom; bench sheet follows the platform chapter */
.gr-now-blob { width: 240vmax; height: 240vmax; transform: translate(-50%, 12%); }
.gr-bench { margin-top: -10vh; border-radius: 28px 28px 0 0; }
.gr-now-blob { top: 50%; transform: translate(-50%, 50vh); }
/* round 4: opening hands over to chapter 01 like grail — the deck holds still
   while chapter 01 (transparent top fading to navy) slides over it */
.gr { background: var(--night); }
.gr-hero { z-index: 1; overflow-x: clip; overflow-y: visible; }
.gr-s1 { z-index: 3; background: linear-gradient(rgba(10,31,68,0) 0, var(--night) 30%); }
.gr-now { z-index: 3; }
/* Japanese: longer lines */
html[lang="ja"] .gr-s1 h2 { font-size: min(4vw, 62px); }
html[lang="ja"] .gr-sheet h2 { font-size: min(4.2vw, 68px); }
@media (max-width: 860px) { html[lang="ja"] .gr-s1 h2 { font-size: 4.5vw; } html[lang="ja"] .gr-sheet h2 { font-size: 5.4vw; } }
