/* ORDO institutional site. Tokens, no sticky blur, mobile-light video. */
:root {
  --ink: #070708;
  --ink-2: #111113;
  --ivory: #F3F4F6;
  --ivory-2: #E6E8EB;
  --gold: #C5C9CE;
  --gold-soft: #E8EAED;
  --stone: #8A8F96;
  --muted: #7A7F86;
  --line: rgba(197, 201, 206, 0.3);
  --paper: #F6F6F7;
  --danger-space: 0;
  --jp-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --jp-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --gap: 24px;
  --radius: 6px;
  --accent: #C5C9CE;
  --accent-soft: #E2CFA3;
}

[data-version="food"] { --accent: #C4844A; --accent-soft: #E8B86A; --accent-dim: rgba(196,132,74,.22); }
[data-version="kensetsu"] { --accent: #6E8BA8; --accent-soft: #A8C0D4; --accent-dim: rgba(110,139,168,.22); }
[data-version="ai"] { --accent: #3EC6E0; --accent-soft: #7DE8F5; --accent-dim: rgba(62,198,224,.22); }
[data-version="hub"] { --accent: #C5C9CE; --accent-soft: #E8EAED; --accent-dim: rgba(197,201,206,.18); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--ivory); }
html { scroll-behavior: smooth; scroll-padding-top: 0; max-width: 100%; }
body { font-family: var(--jp-body); font-weight: 400; line-height: 1.75; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--jp-display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.25; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 80;
  background: var(--ivory); color: var(--ink); padding: 8px 16px;
}
.skip:focus { top: 16px; }

/* Nav: fixed, no backdrop blur */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 0.85rem var(--pad);
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.88), rgba(11, 11, 12, 0));
  transition: background 280ms ease, box-shadow 280ms ease;
}
.nav.is-solid {
  background: #070708;
  box-shadow: 0 1px 0 var(--accent-dim);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
}
.brand-logo {
  width: 2.25rem; height: 2.25rem; object-fit: contain; display: block; flex: 0 0 auto;
}
.brand-mark {
  display: none;
}
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--latin); font-size: 1.05rem; letter-spacing: 0.18em; }
.brand-kana { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--gold-soft); opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a, .nav-links button.nav-link {
  padding: 10px 12px; min-height: 44px;
  font-size: 0.82rem; letter-spacing: 0.08em;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 50% 100%;
  transition: background-size 280ms ease, opacity 200ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 70% 1px; }
.nav-switch { display: flex; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.nav-switch a { font-family: var(--jp-display); font-size: 0.8rem; opacity: 0.72; }
.nav-switch a.is-on { opacity: 1; color: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  position: absolute; left: 12px; width: 20px; height: 1px; background: var(--ivory);
  content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span:before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    padding: 8px var(--pad) 24px;
    background: rgba(11, 11, 12, 0.96);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-switch { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: end start;
  color: var(--ivory); overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img, .stage-media video, .stage-media img, .card-media video, .card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-media {
  position: absolute; inset: 0;
  background: #0E0E10;
}
.hero-media video, .scene-media video { transform: scale(1.04); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.28) 0%, rgba(11,11,12,0.15) 40%, rgba(11,11,12,0.78) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.45) 0%, rgba(11,11,12,0.05) 55%);
  pointer-events: none;
}
.hero-copy {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(4.5rem, 12vw, 7rem);
  max-width: 46rem;
}
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--accent-soft); margin-bottom: 16px;
}
.hero-copy:before {
  content: ""; display: block; width: 3.2rem; height: 2px;
  background: var(--accent); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.85rem, 5.4vw, 4.0rem); line-height: 1.22; word-break: keep-all; overflow-wrap: normal; }
.hero h1 .keep { white-space: nowrap; }
.hero .lead .keep { white-space: nowrap; }
.hero .lead { margin-top: 16px; font-size: clamp(0.95rem, 1.6vw, 1.12rem); line-height: 1.85; max-width: 34rem; color: #E8EAED; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; z-index: 2;
  transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.2em; color: var(--gold-soft);
  writing-mode: vertical-rl;
}
.scroll-cue:after {
  content: ""; display: block; width: 1px; height: 48px; margin: 12px auto 0;
  background: linear-gradient(var(--gold), transparent);
}

/* Sections */
.sec { padding: clamp(4.5rem, 10vw, 8rem) var(--pad); background: var(--paper); color: var(--ink); }
.sec-dark { background: var(--ink-2); color: var(--ivory); }
.sec-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head h2, .stage-copy h2, .pillar-main h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
.sec-head p, .stage-copy .body, .pillar-main .body { margin-top: 16px; line-height: 1.85; }
.muted { color: var(--muted); }
.sec-dark .muted { color: #B4B8BE; }

/* Intro */
.intro-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: end;
}
.fact { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--stone); }
.fact + .fact { margin-top: 8px; }
.fact b { display: block; font-weight: 500; color: var(--ink); font-family: var(--jp-body); letter-spacing: 0.04em; margin-top: 4px; font-size: 0.95rem; }

/* Main stage (primary pillar) */
.stage { padding: 0; background: var(--ink); color: var(--ivory); }
.stage-frame { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 86svh; }
.stage-media { position: relative; min-height: 56svh; background: #0E0E10; overflow: hidden; }
.stage-copy { padding: clamp(2.5rem, 6vw, 5.5rem) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.bullet { margin-top: 24px; display: grid; gap: 8px; }
.bullet li {
  padding-left: 16px; position: relative; line-height: 1.7; font-size: 0.95rem;
}
.bullet li:before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--gold);
}

/* Supporting pillars */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar {
  background: #fff; border: 1px solid #E0E3E7; overflow: hidden;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.pillar:hover { transform: translateY(-4px); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ivory-2); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.pillar:hover .card-media img, .pillar:hover .card-media video { transform: scale(1.04); }
.pillar-body { padding: 24px 24px 32px; }
.pillar-body h3 { font-size: 1.35rem; }
.pillar-body p { margin-top: 12px; font-size: 0.95rem; line-height: 1.8; }
.fc {
  margin-top: 40px; padding: 32px 32px 36px; border: 1px solid var(--line);
  background: #fff; display: grid; grid-template-columns: 8rem 1fr; gap: 24px; align-items: start;
}
.fc h3 { font-size: 1.25rem; }

/* Scenes / immersive chapter */
.scenes-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px;
}
.scene { position: relative; overflow: hidden; min-height: 280px; background: #0E0E10; color: var(--ivory); }
.scene-wide { grid-row: span 2; min-height: 600px; }
.scene-media, .scene-media img, .scene-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 24px 24px;
  background: linear-gradient(to top, rgba(11,11,12,0.82), rgba(11,11,12,0));
  font-family: var(--jp-display); font-size: 1.15rem;
}
.scene figcaption small { display: block; margin-top: 6px; font-family: var(--jp-body); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--gold-soft); }

/* Company */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 44rem; }
.table { max-width: 44rem; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--ivory-2); border: 1px solid #E0E3E7;
  display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted);
}
.portrait.has-photo { padding: 0; }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait .ph-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; }
.portrait .ph-name { font-family: var(--jp-display); color: var(--ink); font-size: 1.25rem; margin-top: 12px; }
.table { border-top: 2px solid var(--ink); }
.tr { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #D5D8DC; line-height: 1.7; }
.th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); padding-top: 4px; }

/* Contact placeholders */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 44rem; }
.contact {
  padding: 24px; background: #fff; border: 1px solid #E0E3E7; min-height: 140px;
}
.contact dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--stone); }
.contact dd { margin: 12px 0 0; font-size: 1.05rem; word-break: break-all; }
.contact a { text-decoration: none; background-image: linear-gradient(var(--silver, #C5C9CE), var(--silver, #C5C9CE)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; }
.contact a:hover { background-size: 100% 1px; }
.ph { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.08em; }

/* Footer */
.footer {
  background: var(--ink); color: var(--ivory); padding: 48px var(--pad) 40px;
  display: grid; gap: 16px;
}
.footer-brand { font-family: var(--latin); letter-spacing: 0.22em; font-size: 1.15rem; }
.gift { font-size: 0.88rem; line-height: 1.8; color: #C5C9CE; max-width: 40rem; }
.note { font-size: 0.75rem; color: #8A8F96; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-nav a { color: var(--gold-soft); }

/* Hub */
.hub { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; background: var(--ink); }
.hub-hero { padding: 4.2rem var(--pad) 0.7rem; }
.hub-logo { width: 3.2rem; height: 3.2rem; margin: 0 0 10px; display: block; }
.hub-hero .word {
  font-family: var(--latin); font-size: clamp(3rem, 9vw, 6.2rem);
  letter-spacing: 0.16em; line-height: 0.9; font-weight: 600;
}
.hub-hero .sub { margin-top: 14px; font-size: 1rem; letter-spacing: 0.18em; color: var(--gold-soft); }
.hub-hero .lead { margin-top: 12px; max-width: 36rem; line-height: 1.8; color: #C5C9CE; }
.doors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 0 var(--pad) 1.2rem  ;
  min-height: 0;
}
.door {
  position: relative; min-height: 0; height: 100%; overflow: hidden; color: var(--ivory);
  display: flex; align-items: flex-end;
  border: 1px solid rgba(197,201,206,.2);
  box-shadow: inset 0 3px 0 var(--door-accent, var(--accent));
}
.door-food { --door-accent: #C4844A; }
.door-kensetsu { --door-accent: #6E8BA8; }
.door-ai { --door-accent: #3EC6E0; }
.door .kicker { color: var(--door-accent, var(--accent-soft)); font-size: 1rem; letter-spacing: 0.2em; }
.door-media { position: absolute; inset: 0; }
.door-media img, .door-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(.2,.7,.2,1); }
.door:hover .door-media img, .door:hover .door-media video { transform: scale(1.05); }
.door-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,0.82) 0%, rgba(11,11,12,0.15) 55%, rgba(11,11,12,0.25) 100%);
}
.door-copy { position: relative; z-index: 2; padding: 32px 28px; }
.door-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); word-break: keep-all; }
.door-copy .keep { white-space: nowrap; }
.door-copy p { margin-top: 8px; font-size: 0.92rem; color: #E8EAED; line-height: 1.7; }
.door-copy .go { display: inline-block; margin-top: 16px; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--gold-soft); }

/* Reveals */
.reveal { opacity: 0; transform: translateY(18px); animation: none; }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 700ms ease; }

@media (max-width: 980px) {
  .intro-grid, .stage-frame, .company-grid, .pillars-grid, .contacts, .scenes-grid, .fc {
    grid-template-columns: 1fr;
  }
  .scene-wide { grid-row: auto; min-height: 420px; }
  .stage-frame { min-height: 0; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.8rem); }
  .hub-logo { width: 4.2rem; height: 4.2rem; margin: 0 0 16px; display: block; }
.hub-hero .word { letter-spacing: 0.1em; font-size: clamp(1.8rem, 11vw, 2.6rem); }
  .hub-hero { padding: 1rem var(--pad) 0.4rem; }
  .hub-logo { width: 2.3rem; height: 2.3rem; margin-bottom: 6px; }
  .hub-hero .sub { margin-top: 6px; font-size: 0.82rem; }
  .hub-hero .lead { display: none; }
  .door-copy { padding: 16px 16px 14px; }
  .door-copy h2 { font-size: 1.25rem; }
  .doors { padding-bottom: 0.55rem; }
  .doors {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 8px;
    padding-bottom: 0.8rem;
  }
  .door { min-height: 0; }
}

@media (max-width: 600px) {
  .tr { grid-template-columns: 1fr; gap: 4px; }
  .fc { padding: 24px; }
  .scene { min-height: 240px; }
  .scene-wide { min-height: 320px; }
  .hero-copy { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .pillar, .door-media img, .door-media video, .card-media img, .card-media video, .hero-media video {
    transition: none;
    transform: none;
  }
}

/* ===== Cinema intro: CSS 3D, no backdrop-filter blur ===== */
.intro-cinema {
  position: fixed; inset: 0; z-index: 80; background: #050506;
  display: grid; place-items: center; overflow: hidden;
  perspective: 1100px;
}
.intro-cinema.is-open .intro-skip { opacity: 0; pointer-events: none; visibility: hidden; }
.intro-cinema.is-done { pointer-events: none; opacity: 0; transition: opacity 500ms ease; }
.intro-particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-stage {
  position: relative; z-index: 2; width: min(42vw, 280px); height: min(42vw, 280px);
  transform-style: preserve-3d;
}
.logo-3d { width: 100%; height: 100%; transform-style: preserve-3d; position: relative; }
.logo-3d svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(197,201,206,.28)); }
.logo-3d .ring-piece, .logo-3d .blade-piece {
  transform-origin: 60px 59px;
  transform-box: fill-box;
}
.intro-cinema:not(.is-on) .ring-piece { transform: translate3d(-140px, 20px, -420px) rotateY(-80deg); opacity: 0; }
.intro-cinema:not(.is-on) .blade-piece { transform: translate3d(80px, 180px, -320px) rotateZ(50deg); opacity: 0; }
.intro-cinema.is-on .ring-piece {
  transform: none; opacity: 1;
  transition: transform 0.7s cubic-bezier(.16,.84,.32,1), opacity 400ms ease;
}
.intro-cinema.is-on .blade-piece {
  transform: none; opacity: 1;
  transition: transform 0.7s 70ms cubic-bezier(.16,.84,.32,1), opacity 400ms 70ms ease;
}
.intro-cinema.is-open .intro-stage {
  transform: scale(1.45);
  opacity: 0;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), opacity 600ms 200ms ease;
}
.intro-skip {
  position: absolute; right: var(--pad); bottom: 1.6rem; z-index: 3;
  min-height: 44px; padding: 0 16px;
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--silver);
  border: 1px solid rgba(197,201,206,.35);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.intro-skip:hover { background: var(--silver); color: var(--ink); border-color: var(--silver); }

/* Brushed metal titles */
.metal, .hero h1, .chapter h2, .hub-hero .word, .door-copy h2 {
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 2px, rgba(255,255,255,.08) 2px 3px),
    linear-gradient(180deg, #F7F8FA 0%, #C5C9CE 38%, #8A8F96 48%, #E8EAED 62%, #A8ADB3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero .lead, .chapter .body { -webkit-text-fill-color: unset; background: none; color: #E8EAED; }

/* Chapters */
.chapter {
  position: relative;
  min-height: 140svh;
  color: var(--ivory);
  background: var(--ink);
}
.chapter-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; align-items: end;
}
.chapter-media, .chapter-media video, .chapter-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  background: #0E0E10;
}
.chapter-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,7,8,.3) 0%, rgba(7,7,8,.08) 40%, rgba(7,7,8,.78) 100%),
    linear-gradient(90deg, rgba(7,7,8,.5) 0%, rgba(7,7,8,.05) 55%);
}
.chapter-copy {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(4.8rem, 12vw, 7.2rem);
  max-width: 42rem;
}
.chapter-copy h2 { font-size: clamp(1.7rem, 4.4vw, 3.1rem); line-height: 1.22; word-break: keep-all; }
.chapter-copy .body { margin-top: 16px; line-height: 1.85; max-width: 34rem; }
.chapter.is-light { background: var(--paper); color: var(--ink); min-height: auto; }
.chapter.is-light .chapter-sticky { height: auto; min-height: auto; position: relative; }
.chapter.is-light .metal, .chapter.is-light h2 {
  background-image: linear-gradient(180deg, #3a3d42 0%, #111214 45%, #6a6f76 100%);
}

/* Luxury cursor, desktop only */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 90;
  border-radius: 50%; transform: translate(-50%, -50%);
  display: none;
}
@media (pointer: fine) and (hover: hover) {
  .cursor-dot, .cursor-ring { display: block; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor-dot {
    width: 5px; height: 5px; background: #E8EAED;
    box-shadow: 0 0 10px rgba(232,234,237,.8);
  }
  .cursor-ring {
    width: 28px; height: 28px; border: 1px solid rgba(197,201,206,.7);
    transition: width 200ms ease, height 200ms ease, border-color 200ms ease, background 200ms ease;
  }
  body.is-pointer-on .cursor-ring {
    width: 44px; height: 44px; border-color: #E8EAED;
    background: rgba(197,201,206,.08);
  }
}

/* Sound + micro buttons */
.sound-btn, .intro-skip, .gift-open, .chat-send, .nav-links a, .door .go, .contact a {
  position: relative; overflow: hidden;
}
.sound-btn {
  position: fixed; right: var(--pad); bottom: 1.5rem; z-index: 45;
  min-height: 44px; padding: 0 14px;
  font-size: 0.7rem; letter-spacing: 0.16em; color: var(--silver);
  border: 1px solid rgba(197,201,206,.35); background: rgba(7,7,8,.55);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.sound-btn[aria-pressed="true"] { color: var(--ink); background: var(--silver); border-color: var(--silver); }
.sound-btn:hover, .gift-open:hover, .chat-send:hover { transform: translateY(-1px); }
.sound-btn:active, .gift-open:active, .chat-send:active, .intro-skip:active { transform: translateY(0) scale(.98); }
.shine:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.shine:hover:after { transform: translateX(120%); transition: transform 700ms ease; }

/* Gift card */
.gift-chapter { min-height: 100svh; display: grid; place-items: center; padding: clamp(5rem, 12vw, 8rem) var(--pad); background: #070708; }
.gift-stage { width: min(36rem, 100%); perspective: 1400px; }
.gift-open {
  display: block; margin: 0 auto 24px;
  min-height: 44px; padding: 0 20px;
  font-size: 0.72rem; letter-spacing: 0.22em; color: var(--silver);
  border: 1px solid var(--silver);
  background: transparent;
}
.gift-card {
  position: relative; transform-style: preserve-3d;
  background: linear-gradient(165deg, #1a1b1e 0%, #0b0b0d 55%, #17181b 100%);
  border: 1px solid rgba(197,201,206,.32);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(232,234,237,.12);
  padding: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--ivory);
  transform: rotateX(12deg) scale(.98);
  opacity: .55;
  transition: transform 800ms cubic-bezier(.16,.84,.32,1), opacity 600ms ease;
}
.gift-card.is-open { transform: none; opacity: 1; }
.gift-card .gift-to { font-family: var(--jp-display); font-size: 1.15rem; margin-bottom: 16px; }
.gift-card p { line-height: 1.95; }
.gift-card .gift-from { margin-top: 24px; letter-spacing: 0.08em; color: var(--silver); }
.gift-sheen {
  pointer-events: none; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(232,234,237,.08) 45%, transparent 70%);
}

/* Chat (AI version) */
.chat {
  position: fixed; right: var(--pad); bottom: 5.2rem; z-index: 44;
  width: min(22rem, calc(100vw - 2.5rem));
  color: var(--ivory);
}
.chat-toggle {
  margin-left: auto; display: block;
  min-height: 44px; padding: 0 16px;
  font-size: 0.72rem; letter-spacing: 0.14em;
  border: 1px solid rgba(197,201,206,.4); background: rgba(7,7,8,.7); color: var(--silver);
}
.chat-panel {
  display: none; margin-bottom: 8px;
  background: rgba(10,10,12,.94);
  border: 1px solid rgba(197,201,206,.28);
  max-height: min(60svh, 420px);
  flex-direction: column;
}
.chat.is-open .chat-panel { display: flex; }
.chat-log { overflow: auto; padding: 16px; display: grid; gap: 10px; min-height: 140px; }
.chat-msg { font-size: 0.9rem; line-height: 1.7; }
.chat-msg.bot { color: #E8EAED; }
.chat-msg.user { color: var(--silver); text-align: right; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(197,201,206,.2); }
.chat-form input {
  flex: 1; min-height: 44px; padding: 0 10px; border: 0; background: #151518; color: var(--ivory); font: inherit;
}
.chat-send { min-height: 44px; padding: 0 12px; border: 1px solid var(--silver); color: var(--silver); }

@media (max-width: 820px) {
  .sound-btn { right: 1rem; bottom: 1rem; }
  .chat { right: 1rem; bottom: 4.4rem; }
  .chapter { min-height: 120svh; }
  .intro-stage { width: 56vw; height: 56vw; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-cinema { display: none !important; }
  .logo-3d .ring-piece, .logo-3d .blade-piece, .intro-cinema.is-open .intro-stage, .gift-card, .sound-btn, .shine:after {
    transition: none !important; transform: none !important;
  }
  .gift-card { opacity: 1; }
  .metal, .hero h1, .chapter h2 { background-size: 100% 100%; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.chapter .bullet { color: var(--ivory); }
.chapter .bullet li { color: #E8EAED; }
.chapter.is-light .bullet li { color: var(--ink); }
.chapter .kicker { color: var(--silver); }
#jigyo { background: var(--ink); }
.logo-3d .ring-piece, .logo-3d .blade-piece { transform-box: fill-box; transform-origin: center; }

/* Light surfaces: no silver metal clip (contrast) */
.sec h2,
.sec .metal,
.chapter.is-light h2,
.chapter.is-light .metal {
  background: none !important;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #111113 !important;
  -webkit-text-fill-color: #111113 !important;
}
.portrait { color: #3a3d42; }
.portrait .ph-label { color: #5a5f66; }
.portrait .ph-name { color: #111113; }
#kaisha, #renraku { scroll-margin-top: 5.5rem; }
.gift-chapter { scroll-margin-top: 0; }
@media (max-width: 820px) {
  .scroll-cue { bottom: 5.2rem; }
}

.chapter, .hero, .gift-chapter, #jigyo, #hyoshi { scroll-margin-top: 0; }
#kaisha, #renraku, #hajime { scroll-margin-top: 5.5rem; }
@media (max-width: 820px) {
  .scroll-cue { display: none !important; }
  .chapter-copy { padding-right: 6.2rem; padding-bottom: 6.2rem; }
  .hero-copy { padding-bottom: 5.2rem; }
  body:has(.chat.is-open) .sound-btn { opacity: 0; pointer-events: none; }
}

.chat.is-open { bottom: 1rem; }
.chat.is-open .chat-panel { margin-bottom: 0; border-bottom: 0; }
.chat.is-open .chat-toggle {
  width: 100%;
  background: rgba(10,10,12,.94);
  border: 1px solid rgba(197,201,206,.28);
  border-top: 0;
}

/* Version identity: intro frame, focus chapter, seen-intro */
html.has-seen-intro .intro-cinema { display: none !important; }
.intro-frame { position: absolute; inset: 0; z-index: 0; }
.intro-frame img, .intro-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.intro-frame-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,8,.35) 0%, rgba(7,7,8,.55) 45%, rgba(7,7,8,.82) 100%),
    linear-gradient(90deg, var(--accent-dim), transparent 60%);
}
.intro-cinema .intro-particles { z-index: 1; }
.intro-cinema .intro-stage {
  z-index: 2; display: grid; justify-items: center; align-content: center;
  gap: 18px; width: min(80vw, 440px); height: auto;
}
.intro-cinema .logo-3d { width: min(38vw, 220px); height: min(38vw, 220px); }
.intro-pillar {
  font-family: var(--jp-display);
  font-size: clamp(2.6rem, 10vw, 5.6rem);
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--accent-soft);
  text-shadow: 0 0 28px var(--accent-dim);
  margin: 0;
  text-align: center;
}
.chapter.is-focus { min-height: 170svh; }
.chapter.is-focus h2 { font-size: clamp(2.05rem, 5.2vw, 3.6rem); }
.chapter.is-focus .chapter-copy { max-width: 46rem; }
@media (max-width: 820px) {
  .intro-pillar { font-size: clamp(2.4rem, 16vw, 3.6rem); letter-spacing: 0.14em; }
  .chapter.is-focus { min-height: 140svh; }
}

.footer-nav.is-quiet { opacity: 0.55; font-size: 0.75rem; }
.footer-nav.is-quiet a { color: #8A8F96; }
