/* ==========================================================================
   STAYGOLD — Independent Digital Studio
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --paper: #efede7;
  --gray: #8b8a85;
  --gold: #ffcf40;
  --gold-hi: #fff1b8;

  --bg: var(--ink);
  --fg: var(--paper);
  --line: color-mix(in srgb, var(--fg) 14%, transparent);
  --muted: color-mix(in srgb, var(--fg) 58%, transparent);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --jp: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display), var(--jp);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.eyebrow { color: var(--muted); margin-bottom: clamp(24px, 4vw, 48px); }
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .86;
}
em { font-style: normal; color: var(--gold); }
.keep { text-transform: none !important; }
.mono i { font-style: normal; color: var(--gold); margin: 0 .45em; }

.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); margin-right: 9px; vertical-align: .08em;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
}
.nav-logo { font-weight: 800; font-stretch: 110%; letter-spacing: .14em; font-size: 14px; }
.nav-logo span { font-weight: 400; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav-links a, .nav-cta { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { font-size: 14px; padding: 8px 18px; border: 1px solid currentColor; border-radius: 999px; display: inline-block; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ==========================================================================
   CURSOR / PREVIEW  (desktop only — enabled via .is-rich)
   ========================================================================== */
.cursor, .preview { display: none; }
.is-rich, .is-rich a, .is-rich button, .is-rich summary, .is-rich [tabindex] { cursor: none; }
.is-rich .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid color-mix(in srgb, #fff 55%, transparent); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.cursor-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #fff; }
.cursor.is-view .cursor-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--gold); border-color: var(--gold); mix-blend-mode: normal; }
.cursor.is-view .cursor-label { opacity: 1; }
.cursor.is-view .cursor-dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

.is-rich .preview {
  display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 340px; aspect-ratio: 16/10; margin: -110px 0 0 -170px; border-radius: 14px; overflow: hidden;
  opacity: 0; transition: opacity .4s var(--ease);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.is-rich .preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.is-rich .preview.is-on { opacity: 1; }
.is-rich .preview.is-tall { width: 190px; aspect-ratio: 9/16; margin: -170px 0 0 -95px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 88px var(--gutter) 28px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--paper) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--paper) 6%, transparent) 1px, transparent 1px);
  background-size: calc((100vw - 2 * var(--gutter)) / 12) calc((100vw - 2 * var(--gutter)) / 12);
  background-position: var(--gutter) 0;
  mask-image: radial-gradient(ellipse 70% 60% at var(--mx, 60%) var(--my, 40%), #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at var(--mx, 60%) var(--my, 40%), #000 0%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 60vmax; height: 60vmax; left: var(--mx, 62%); top: var(--my, 38%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent) 0%, transparent 60%);
  filter: blur(20px);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}
.hero-top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hero-top-mid { position: absolute; left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) { .hero-top-mid { display: none; } .hero-top > span:last-child { display: none; } }

.hero-title {
  font-family: var(--display); font-weight: 800; font-stretch: 72%;
  font-size: clamp(76px, 16.8vw, 300px); line-height: .82; letter-spacing: -.03em;
  text-transform: uppercase; margin: 6vh 0 4vh;
}
.hero-line { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); will-change: transform; }
.hero-line--indent { padding-left: 24%; }
.hl { display: inline-block; overflow: hidden; padding: .1em .03em .02em; margin: -.1em -.03em -.02em; }
.hl > span { display: inline-block; }
.hero-jp {
  font-family: var(--jp); font-weight: 600; font-stretch: normal; text-transform: none; letter-spacing: .02em;
  font-size: clamp(14px, 1.5vw, 22px); line-height: 1.5; margin-bottom: .6em; color: var(--muted);
}
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-lead { font-family: var(--jp); font-size: clamp(14px, 1.2vw, 17px); color: var(--muted); line-height: 1.8; }
.hero-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.hero-scroll { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: scrolly 2.2s var(--ease-io) infinite; }
@keyframes scrolly { to { top: 100%; } }
@media (max-width: 760px) {
  .hero-title { font-size: 21vw; margin: 4vh 0; }
  .hero-line--indent { padding-left: 10%; gap: 14px; }
  .hero-jp { font-size: 12px; margin-bottom: .9em; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}

/* intro load animation */
.js .hl > span { transform: translateY(108%); animation: rise 1.3s var(--ease) forwards; }
.js .hero-line:nth-child(2) .hl > span { animation-delay: .12s; }
.js .hero-line:nth-child(3) .hl > span { animation-delay: .24s; }
.js .hero-jp, .js .hero-bottom, .js .hero-top { opacity: 0; animation: fade 1.2s var(--ease) .6s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track {
  display: flex; width: max-content; gap: 36px; align-items: center;
  font-weight: 700; font-stretch: 110%; font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; letter-spacing: -.01em;
  animation: marquee 38s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding-block: clamp(120px, 18vw, 260px); }
.intro-text {
  font-family: var(--jp); font-weight: 700;
  font-size: clamp(26px, 4.2vw, 64px); line-height: 1.42; letter-spacing: -.01em;
  max-width: 22em; margin-left: auto;
}
.intro-text .ch { opacity: .16; transition: opacity .35s linear; }
.intro-text .ch.on { opacity: 1; }

/* ==========================================================================
   WORKS INDEX
   ========================================================================== */
.works { padding-bottom: clamp(80px, 12vw, 180px); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.works-title { font-size: clamp(64px, 12vw, 210px); }
.works-title sup { font-size: 13px; vertical-align: top; margin-left: .6em; letter-spacing: .1em; color: var(--gold); position: relative; top: 1.2em; }
.works-note { font-family: var(--jp); color: var(--muted); font-size: 14px; }
.work-index { border-top: 1px solid var(--line); }
.work-index a {
  display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease), color .4s;
}
.wi-name { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(26px, 4.6vw, 72px); line-height: 1; letter-spacing: -.02em; }
.wi-type { color: var(--muted); }
.wi-arrow { justify-self: end; font-size: 22px; transition: transform .5s var(--ease), color .4s; }
@media (hover: hover) {
  .work-index:hover a { color: color-mix(in srgb, var(--fg) 35%, transparent); }
  .work-index a:hover { color: var(--fg); padding-left: 24px; }
  .work-index a:hover .wi-arrow { transform: rotate(-45deg); color: var(--gold); }
}
@media (max-width: 640px) {
  .work-index a { grid-template-columns: 36px 1fr 24px; }
  .wi-type { display: none; }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project { padding-block: clamp(90px, 12vw, 180px); position: relative; }
.project-head {
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 16px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.project-num { grid-column: 1 / -1; color: var(--muted); }
.project-num span { opacity: .5; }
.project-title {
  grid-column: 1 / 9;
  font-family: var(--display); font-weight: 800; font-stretch: 72%;
  font-size: clamp(64px, 12.5vw, 220px); line-height: .84; letter-spacing: -.03em; text-transform: uppercase;
}
.project-title--long { font-size: clamp(52px, 9.6vw, 170px); }
.project-copy {
  grid-column: 9 / -1; justify-self: end; text-align: right;
  font-weight: 500; font-stretch: 100%; font-size: clamp(18px, 2vw, 30px); line-height: 1.2; letter-spacing: -.01em;
  padding-bottom: .4em;
}
.project--flip .project-title { grid-column: 5 / -1; grid-row: 2; text-align: right; }
.project--flip .project-copy { grid-column: 1 / 5; grid-row: 2; justify-self: start; text-align: left; }
@media (max-width: 820px) {
  .project-title, .project--flip .project-title { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .project-copy, .project--flip .project-copy { grid-column: 1 / -1; grid-row: auto; justify-self: start; text-align: left; }
}

/* stage */
.stage {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9.4; border-radius: clamp(16px, 2vw, 32px);
  background: var(--stage, #1a1a1c);
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  will-change: transform;
}
.stage::after { /* soft light */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.08), transparent 40%);
}
.stage--narita { --stage: radial-gradient(120% 120% at 15% 10%, #24575a 0%, #102b2d 55%, #0b1d1f 100%); }
.stage--salog  { --stage: radial-gradient(120% 120% at 70% 20%, #8a3a14 0%, #3a170a 50%, #1c0b05 100%); }
.stage--navi   { --stage: radial-gradient(120% 120% at 30% 80%, #2446a8 0%, #122460 50%, #0a1433 100%); }
.stage--hiyori { --stage: radial-gradient(120% 120% at 60% 30%, #f6f1e7 0%, #d9ceba 60%, #c6b89f 100%); }
.stage--note   { --stage: radial-gradient(120% 120% at 40% 60%, #2b333c 0%, #181c21 60%, #0f1114 100%); }

.stage-word {
  position: absolute; inset: auto 0 -0.12em 0; z-index: 0; text-align: center;
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(120px, 26vw, 460px);
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, #fff 16%, transparent);
  pointer-events: none;
}

.frame-browser, .frame-phone, .app-icon, .stage-badge { position: absolute; z-index: 2; will-change: transform; }
.frame-browser {
  left: 7%; top: 11%; width: 68%;
  border-radius: 12px; overflow: hidden; background: #1c1c20;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}
.frame-browser--wide { left: 9%; width: 82%; top: 10%; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #26262b; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4a4a52; }
.browser-bar b { margin-left: 12px; flex: 1; font: 400 11px/1.6 var(--mono); color: #8f8f98; background: #1a1a1e; border-radius: 6px; padding: 2px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.frame-phone {
  left: 50%; top: 9%; width: 25%; margin-left: -12.5%;
  padding: 1.1%; border-radius: 13% / 6%; background: #0c0c0e;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12);
}
.frame-phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 11% / 5%; }
.frame-phone--overlap { left: auto; right: 7%; top: 30%; width: 19%; margin: 0; }
.app-icon { left: 22%; top: 36%; width: 12%; border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.stage-badge {
  right: 6%; top: 56%; display: grid; gap: 4px; padding: clamp(14px, 1.6vw, 26px) clamp(18px, 2vw, 32px);
  border-radius: 18px; background: var(--gold); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.stage-badge b { font-weight: 800; font-stretch: 75%; font-size: clamp(34px, 5vw, 80px); line-height: .9; letter-spacing: -.03em; }
.stage-badge .mono { font-size: 10.5px; }

@media (max-width: 700px) {
  .stage { aspect-ratio: 4 / 4.4; }
  .stage-word { font-size: 42vw; }
  .frame-browser { left: 6%; width: 88%; top: 8%; }
  .frame-browser--wide { left: 6%; width: 88%; top: 18%; }
  .frame-phone { width: 46%; margin-left: -23%; top: 7%; }
  .frame-phone--overlap { width: 36%; right: 6%; top: 40%; margin: 0; }
  .app-icon { left: 6%; top: 50%; width: 20%; }
  .stage-badge { right: 6%; top: auto; bottom: 8%; }
}

/* facts */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px;
  margin-top: 4px; padding-bottom: 6px;
}
.facts > div { padding-top: 18px; }
.facts dt { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.facts dd { font-family: var(--jp); font-size: 14px; line-height: 1.6; }
.facts > div:nth-child(2) { --d: .06s; } .facts > div:nth-child(3) { --d: .12s; }
.facts > div:nth-child(4) { --d: .18s; } .facts > div:nth-child(5) { --d: .24s; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.project-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(28px, 3vw, 44px);
  padding: 14px 24px; border: 1px solid currentColor; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.project-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ==========================================================================
   HUMAN × AI
   ========================================================================== */
.hxa { padding-block: clamp(110px, 16vw, 240px); overflow: hidden; }
.hxa-title {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: .12em;
  font-size: clamp(90px, 21vw, 380px); font-stretch: 68%; line-height: .8;
}
.hxa-x {
  display: inline-block; color: var(--gold); font-weight: 300; font-stretch: 100%;
  font-size: .72em; transform: rotate(var(--rot, 0deg)); will-change: transform;
}
.hxa-copy { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 90px); }
.hxa-en { grid-column: 1 / 7; font-weight: 600; font-stretch: 100%; font-size: clamp(24px, 3vw, 46px); line-height: 1.12; letter-spacing: -.02em; }
.hxa-jp { grid-column: 8 / -1; font-family: var(--jp); font-size: clamp(16px, 1.5vw, 22px); line-height: 1.8; color: var(--muted); align-self: end; }
@media (max-width: 820px) { .hxa-en, .hxa-jp { grid-column: 1 / -1; } }

.process {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  margin-top: clamp(64px, 9vw, 130px); position: relative; padding-top: 28px;
}
.process::before, .process::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.process::before { right: 0; background: var(--line); }
.process::after { width: calc(var(--pp, 0) * 100%); background: var(--gold); }
.process li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.process li::before { content: ""; position: absolute; top: -32px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.process li:nth-child(2) { --d: .08s; } .process li:nth-child(3) { --d: .16s; }
.process li:nth-child(4) { --d: .24s; } .process li:nth-child(5) { --d: .32s; }
.process h3 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 34px); line-height: 1; letter-spacing: -.01em; }
.process p { font-family: var(--jp); font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.p-num { color: var(--muted); }
.p-who { align-self: flex-start; margin-top: auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; }
.p-who--ai { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.p-who--mix { border-color: var(--gold); color: var(--gold); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-left: 28px; }
  .process::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { left: 0; top: 0; width: 1px; height: calc(var(--pp, 0) * 100%); }
  .process li { padding: 0 0 36px; }
  .process li::before { top: 6px; left: -32px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { padding-block: clamp(110px, 14vw, 220px); }
.services-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.services-kicker { font-family: var(--jp); font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; margin-bottom: clamp(24px, 4vw, 48px); }
.svc { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 70px auto 1fr; align-items: center; gap: 24px;
  padding: clamp(10px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line); outline-offset: -2px;
}
.svc-row::before { /* hover fill */
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.svc { position: relative; z-index: 0; isolation: isolate; }
.svc-num { color: var(--muted); align-self: start; padding-top: 2.2vw; transition: color .5s; }
.svc-word {
  font-weight: 800; font-stretch: 70%; text-transform: uppercase; letter-spacing: -.04em; line-height: .82;
  font-size: clamp(96px, 19vw, 330px);
  transition: transform .8s var(--ease), color .5s;
}
.svc-body {
  justify-self: end; max-width: 380px; font-family: var(--jp); font-size: 14.5px; line-height: 1.8; color: var(--muted);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .5s;
}
.svc-body b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 6px; transition: color .5s; }
/* hover reveal only where a real pointer exists (set by JS) */
.is-rich .svc-body { opacity: 0; transform: translateX(-24px); }
.is-rich .svc-row:hover::before, .is-rich .svc-row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.is-rich .svc-row:hover .svc-word, .is-rich .svc-row:focus-visible .svc-word { transform: translateX(3vw); color: var(--gold); }
.is-rich .svc-row:hover .svc-body, .is-rich .svc-row:focus-visible .svc-body { opacity: 1; transform: none; color: #b9b8b2; }
.is-rich .svc-row:hover .svc-body b, .is-rich .svc-row:focus-visible .svc-body b { color: var(--paper); }
.is-rich .svc-row:hover .svc-num, .is-rich .svc-row:focus-visible .svc-num { color: var(--gold); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .svc-num { padding-top: 0; }
  .svc-word { font-size: 30vw; }
  .svc-body { justify-self: start; }
}

/* ==========================================================================
   NUMBERS
   ========================================================================== */
.numbers { padding-block: clamp(110px, 14vw, 220px); }
.num { display: flex; flex-direction: column; gap: 14px; }
.num-v {
  font-weight: 800; font-stretch: 66%; letter-spacing: -.045em; line-height: .8;
  font-size: clamp(90px, 15vw, 260px); font-variant-numeric: tabular-nums;
}
.num-l { color: var(--muted); line-height: 1.7; }
.num--hero { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: clamp(20px, 3vw, 40px); }
.num--hero .num-v { font-size: clamp(130px, 33vw, 580px); background: linear-gradient(100deg, var(--fg) 30%, var(--gold) 70%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num--hero .num-l { text-align: right; padding-bottom: 2vw; }
.num-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 5vw, 64px); }
.num-row .num { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 28px); }
.num-row .num:nth-child(2) { margin-top: clamp(24px, 6vw, 120px); }
.num-row .num:nth-child(3) { margin-top: clamp(48px, 12vw, 240px); }
@media (max-width: 760px) {
  .num--hero { flex-direction: column; align-items: flex-start; }
  .num--hero .num-l { text-align: left; }
  .num-row { grid-template-columns: 1fr; gap: 40px; }
  .num-row .num:nth-child(n) { margin-top: 0; }
  .num-row .num-v { font-size: 34vw; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding-block: clamp(110px, 14vw, 220px); }
.about-title { display: flex; flex-direction: column; font-size: clamp(48px, 9vw, 170px); }
.about-title span { white-space: nowrap; }
.about-title span:nth-child(2) { padding-left: 12%; --d: .08s; }
.about-title span:nth-child(3) { padding-left: 20%; --d: .16s; }
@media (max-width: 760px) { .about-title { font-size: 12.4vw; } .about-title span:nth-child(n) { padding-left: 0; } }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(64px, 9vw, 140px); }
.about-jp { grid-column: 1 / 6; font-family: var(--jp); font-weight: 700; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.45; letter-spacing: -.01em; }
.about-side { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 40px; }
.about-text { font-family: var(--jp); font-size: 15.5px; color: var(--muted); max-width: 32em; }
.about-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.about-facts > div:first-child { border-top: 1px solid var(--line); }
.about-facts dt { font: 400 11px/2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.about-facts dd { font-family: var(--jp); overflow-wrap: anywhere; }
.about-facts a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.about-facts a:hover { border-color: currentColor; }
@media (max-width: 820px) { .about-jp, .about-side { grid-column: 1 / -1; } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { position: relative; padding-block: clamp(120px, 16vw, 240px) clamp(80px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.cta-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: var(--cx, 70%); top: var(--cy, 60%);
  transform: translate(-50%, -50%) scale(var(--cs, .6)); opacity: var(--co, .5);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 62%);
  transition: transform 1s var(--ease), opacity 1s var(--ease), left 1.4s var(--ease), top 1.4s var(--ease);
  pointer-events: none;
}
.cta:hover { --cs: 1; --co: 1; }
.cta-title { display: flex; flex-direction: column; font-size: clamp(76px, 15.5vw, 290px); font-stretch: 68%; }
.cta-line { transition: transform 1s var(--ease), opacity 1s var(--ease), color .6s; }
.cta-line:nth-child(2) { padding-left: 16%; --d: .08s; }
.cta-line:nth-child(3) { --d: .16s; }
@media (hover: hover) {
  .cta:hover .cta-line.is-in:nth-child(1) { transform: translateX(2vw); }
  .cta:hover .cta-line.is-in:nth-child(2) { transform: translateX(-2vw); }
  .cta:hover .cta-line.is-in:nth-child(3) { transform: translateX(1vw); }
}
.cta-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(48px, 6vw, 90px); flex-wrap: wrap; }
.cta-text { font-family: var(--jp); color: var(--muted); max-width: 30em; }
.cta-jp { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; color: var(--fg); margin-bottom: 10px; }
.cta-mail { display: inline-block; margin-top: 18px; color: var(--fg); font-family: var(--display); font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.cta-mail:hover { color: var(--gold); border-color: var(--gold); }
.cta-circle {
  position: relative; display: grid; place-items: center; flex: none;
  width: clamp(150px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); overflow: hidden; isolation: isolate;
  font-weight: 700; font-stretch: 100%; font-size: clamp(16px, 1.3vw, 19px);
  transition: color .5s var(--ease);
}
.cta-circle-fill { position: absolute; inset: 0; z-index: -1; background: var(--gold); border-radius: 50%; transform: scale(0); transition: transform .7s var(--ease); }
.cta-circle:hover, .cta-circle:focus-visible { color: var(--ink); }
.cta-circle:hover .cta-circle-fill, .cta-circle:focus-visible .cta-circle-fill { transform: scale(1.02); }
.cta-circle-label span { display: inline-block; transition: transform .5s var(--ease); }
.cta-circle:hover .cta-circle-label span { transform: translateX(6px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { overflow: hidden; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--fg); }
.footer-word {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.045em; line-height: .76;
  font-size: 26.5vw; text-align: center; white-space: nowrap; margin-top: 4vw; margin-bottom: -3.4vw;
  background: linear-gradient(180deg, var(--fg) 0%, color-mix(in srgb, var(--fg) 20%, transparent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   SECTION MARK — セクション名を大きく、statement は各セクションのまま
   ========================================================================== */
.sec-head { margin-bottom: clamp(28px, 4.2vw, 64px); }
.sec-head .eyebrow { margin-bottom: clamp(8px, 1.2vw, 16px); }
.sec-mark {
  font-family: var(--display); font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.035em; line-height: .82;
  font-size: clamp(52px, 8.6vw, 148px);
  color: color-mix(in srgb, var(--fg) 20%, transparent);
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .sec-mark { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 30%, transparent); }
}
/* NUMBERS だけ塗りにして、同じ型のまま変化をつける */
.sec-mark--solid { color: var(--fg); -webkit-text-stroke: 0; }

/* ==========================================================================
   PROJECT LEDE + DETAILS — 主要情報だけ出し、残りは開閉
   ========================================================================== */
.project-lede {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 56px); padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}
.project-what { font-family: var(--jp); font-size: clamp(16px, 1.7vw, 22px); line-height: 1.65; max-width: 34em; }
.project-state { color: var(--muted); white-space: nowrap; }

.details { margin-top: clamp(10px, 1.4vw, 18px); }
.details-sum {
  display: inline-flex; align-items: center; gap: 11px; padding: 10px 0;
  color: var(--muted); list-style: none; cursor: pointer; transition: color .4s var(--ease);
}
.details-sum::-webkit-details-marker { display: none; }
.details-sum:hover, .details[open] .details-sum { color: var(--fg); }
.details-ico { position: relative; width: 11px; height: 11px; flex: none; }
.details-ico::before, .details-ico::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1px; background: currentColor;
  transition: transform .45s var(--ease);
}
.details-ico::after { transform: rotate(90deg); }
.details[open] .details-ico::after { transform: rotate(0deg); }
.details[open] .facts { animation: fx .5s var(--ease); }
@keyframes fx { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   ABOUT KEYWORDS
   ========================================================================== */
.kw {
  margin-top: clamp(64px, 9vw, 130px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px);
}
.kw li { display: flex; align-items: baseline; gap: 14px; padding: clamp(18px, 2.2vw, 30px) 0; border-top: 1px solid var(--line); }
.kw-i { color: var(--muted); flex: none; }
.kw-w {
  font-family: var(--display); font-weight: 800; font-stretch: 70%;
  text-transform: uppercase; letter-spacing: -.03em; line-height: .92;
  font-size: clamp(23px, 3.3vw, 52px);
}
.kw li:nth-child(2) { --d: .06s; } .kw li:nth-child(3) { --d: .12s; }
.kw li:nth-child(4) { --d: .18s; } .kw li:nth-child(5) { --d: .24s; }
@media (max-width: 900px) { .kw { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kw { grid-template-columns: 1fr; } .kw-w { font-size: 30px; } }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .hl > span { transform: none; }
  .js .hero-jp, .js .hero-bottom, .js .hero-top { opacity: 1; }
  .intro-text .ch { opacity: 1; }
  .marquee-track { animation: none; }
  .details[open] .facts { animation: none; }
}
.hero-bottom, .hero-top { filter: opacity(var(--hf, 1)); }

/* ==========================================================================
   CONTACT DIALOG — address is assembled in JS and shown only on request
   ========================================================================== */
.contact-dialog {
  margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: clamp(28px, 4vw, 44px); border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); border-radius: 24px;
  background: #121213; color: var(--paper); font-family: var(--jp);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8);
}
.contact-dialog::backdrop { background: rgba(5,5,6,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-dialog[open] { animation: cd-in .5s var(--ease); }
@keyframes cd-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.cd-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); background: none; color: var(--paper);
  font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s;
}
.cd-close:hover { background: var(--paper); color: var(--ink); }
.cd-eyebrow { color: color-mix(in srgb, var(--paper) 55%, transparent); margin-bottom: 14px; }
.cd-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.cd-text { font-size: 14px; color: color-mix(in srgb, var(--paper) 62%, transparent); }
.cd-text { margin-bottom: 28px; }
.cd-note { margin-top: 18px; font-size: 12.5px; color: color-mix(in srgb, var(--paper) 45%, transparent); }
.cd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); background: none; color: var(--paper);
  font: 600 14.5px var(--jp); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.cd-btn:hover { border-color: var(--paper); }
.cd-btn--solid { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cd-btn--solid:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.cd-copy.is-done { border-color: var(--gold); color: var(--gold); }
/* the dialog sits in the top layer, above the custom cursor — use the native one */
.is-rich.dialog-open, .is-rich.dialog-open * { cursor: auto; }
.is-rich.dialog-open a, .is-rich.dialog-open button { cursor: pointer; }
.dialog-open .cursor { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .contact-dialog[open] { animation: none; } }

/* toast — shown when the mail app did not open and the address was copied */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 400;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 14px 20px; border-radius: 16px; background: var(--gold); color: var(--ink);
  font: 600 14px/1.6 var(--jp); text-align: center; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.toast b { display: block; font: 700 17px/1.4 var(--display); overflow-wrap: anywhere; user-select: all; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
