/* ============================================================
   AKITERA — 合同会社AKITERA
   Corporate site design system
   Palette: Kumo Black #111111 · Sumi Charcoal #282828
            Washi Ivory #F7F6F3 · Kintsugi Gold #C6A66A
   Type:    Cinzel (brand serif) · Inter (EN) · Noto Sans JP (JP)
            Shippori Mincho (JP display accents)
   ============================================================ */

:root {
  --kumo: #111111;
  --kumo-soft: #161616;
  --sumi: #282828;
  --washi: #F7F6F3;
  --white: #FFFFFF;

  --gold: #C6A66A;
  --gold-bright: #E6CC94;
  --gold-mid: #B08D4F;
  --gold-ink: #7E6234;            /* gold for small text on light bg (AA) */
  --gold-line: rgba(198, 166, 106, 0.45);
  --gold-line-soft: rgba(198, 166, 106, 0.22);

  --ink: #191919;                 /* body text on light */
  --ink-2: #45423C;
  --ink-3: #6F6B64;               /* secondary on light */
  --paper-line: rgba(17, 17, 17, 0.12);

  --on-dark: #F3F1EC;             /* body text on dark */
  --on-dark-2: #BDB8AE;
  --on-dark-3: #918C82;
  --dark-line: rgba(247, 246, 243, 0.16);

  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --jp-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(88px, 12vw, 148px);   /* section vertical rhythm */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:lang(ja), .jp { font-family: var(--jp); }

/* Japanese-primary pages (html lang="ja") — CJK-appropriate rhythm */
html[lang="ja"] body { font-family: var(--jp); }
html[lang="ja"] .display { line-height: 1.42; letter-spacing: 0.05em; font-weight: 300; }
html[lang="ja"] .heading { line-height: 1.55; letter-spacing: 0.06em; font-weight: 400; }
html[lang="ja"] .lead { line-height: 2.15; letter-spacing: 0.05em; }
html[lang="ja"] p { line-height: 2.05; letter-spacing: 0.04em; }
html[lang="ja"] .hero__lead { line-height: 2.1; letter-spacing: 0.05em; }
html[lang="ja"] .site-nav a { letter-spacing: 0.14em; font-size: 13px; }
html[lang="ja"] :lang(en) { font-family: var(--sans); }
@supports (word-break: auto-phrase) {
  html[lang="ja"] .display, html[lang="ja"] .heading, html[lang="ja"] .sub-heading { word-break: auto-phrase; }
}

::selection { background: var(--gold); color: var(--kumo); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--kumo); color: var(--on-dark);
  padding: 10px 18px; z-index: 200; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container--narrow { max-width: 880px; }

.section { padding-top: var(--sec); padding-bottom: var(--sec); }
.section--white { background: var(--white); }
.section--washi { background: var(--washi); }
.section--dark { background: var(--kumo); color: var(--on-dark); }
.section--sumi { background: var(--sumi); color: var(--on-dark); }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 28px;
}
.section--dark .eyebrow, .section--sumi .eyebrow, .hero .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-mid); flex: none; }
@media (max-width: 540px) {
  /* long JP+EN eyebrow pairs: stack instead of wrapping mid-phrase side by side */
  .eyebrow { flex-wrap: wrap; row-gap: 5px; }
  .eyebrow .jp-label { flex-basis: 100%; margin-left: 56px; }
}
.eyebrow .jp-label { font-family: var(--jp); font-weight: 500; letter-spacing: 0.28em; color: var(--ink-3); }
.section--dark .eyebrow .jp-label, .section--sumi .eyebrow .jp-label, .hero .eyebrow .jp-label { color: var(--on-dark-3); }

h1, h2, h3 { font-weight: 500; line-height: 1.28; letter-spacing: 0.01em; }
.display {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display strong { font-weight: 500; }
h2.heading, .heading {
  font-family: var(--sans);
  font-weight: 350;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  color: var(--kumo);
  text-wrap: balance;
}
.section--dark .heading, .section--sumi .heading { color: var(--on-dark); }
h3.sub-heading, .sub-heading {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--kumo);
}
.section--dark .sub-heading, .section--sumi .sub-heading { color: var(--on-dark); }

.brand-serif { font-family: var(--serif); font-weight: 500; letter-spacing: 0.22em; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 2.0;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lead, .section--sumi .lead { color: var(--on-dark-2); }

p { color: var(--ink-2); max-width: 68ch; }
.section--dark p, .section--sumi p { color: var(--on-dark-2); }

.jp-text {
  font-family: var(--jp);
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.06em;
}

.muted { color: var(--ink-3); }
.section--dark .muted, .section--sumi .muted { color: var(--on-dark-3); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(17, 17, 17, 0.0);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--dark-line);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  height: 84px;
  display: flex; align-items: center; justify-content: flex-start; gap: 24px;
}
.logo-lockup { order: 1; }
.site-nav { order: 2; margin-left: auto; }
.lang-switch { order: 3; }
.nav-toggle { order: 4; }

/* Language switch (日本語 / EN) */
.lang-switch {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  padding-left: clamp(18px, 2.6vw, 34px);
  border-left: 1px solid var(--dark-line);
  white-space: nowrap;
}
.lang-switch a { display: inline-block; color: var(--on-dark-3); padding: 13px 8px; transition: color .25s ease; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--gold); }
.lang-switch .on { display: inline-block; color: var(--gold); font-weight: 600; padding: 13px 8px; }
.lang-switch span[aria-hidden] { color: var(--on-dark-3); opacity: .5; }
.logo-lockup { display: flex; align-items: center; gap: 14px; }
.logo-lockup svg { height: 40px; width: 34px; flex: none; }
.logo-lockup .logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-lockup .logo-en {
  font-family: var(--serif); font-weight: 500; font-size: 19px;
  letter-spacing: 0.24em; color: var(--on-dark);
}
.logo-lockup .logo-jp {
  font-family: var(--jp); font-weight: 400; font-size: 9px;
  letter-spacing: 0.38em; color: var(--gold); margin-top: 7px;
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a {
  position: relative;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-2);
  padding: 6px 0;
  transition: color .25s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--on-dark); }
.site-nav a:hover::after, .site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--on-dark); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--dark-line); border-radius: 2px;
  width: 48px; height: 44px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--on-dark); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; border-left: 0; padding-left: 0; gap: 14px; }
  /* logo, language switch and close button stay visible above the menu overlay */
  .logo-lockup, .nav-toggle, .lang-switch { position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: #111111;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  }
  .site-header.nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 16px; letter-spacing: 0.28em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--kumo);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::before {
  /* faint radial lift behind content */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 30% 40%, rgba(255,255,255,0.045), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero--compact .hero__inner {
  min-height: 0;
  padding-top: clamp(150px, 22vh, 230px);
  padding-bottom: clamp(70px, 10vh, 120px);
}
.hero .display { color: var(--on-dark); max-width: 26ch; }
.hero .display .gold { color: var(--gold); }
.hero__lead { margin-top: 34px; max-width: 58ch; color: var(--on-dark-2); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 2.0; }
.hero__jp { margin-top: 22px; font-family: var(--jp); font-weight: 300; color: var(--on-dark-3); letter-spacing: 0.14em; font-size: 0.95rem; }
.hero__actions { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }

.hero__watermark {
  position: absolute; right: -4%; bottom: -6%;
  height: 86%; width: auto; opacity: 0.05;
  pointer-events: none; user-select: none;
}
.hero__vertical {
  position: absolute; right: calc(var(--pad) * 0.75); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--jp-serif); font-weight: 500;
  font-size: 15px; letter-spacing: 0.42em;
  color: var(--on-dark-3);
  border-right: 1px solid var(--gold-line-soft);
  padding-right: 22px;
  max-height: 60vh;
}
@media (max-width: 1100px) { .hero__vertical { display: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-dark-3);
}
@media (max-width: 640px) {
  /* on phones the hero content needs the room: no floating hint, guaranteed
     clearance under the fixed header and above the fold line */
  .scroll-hint { display: none; }
  .hero__inner { padding-top: 118px; padding-bottom: 64px; }
  .hero--compact .hero__inner { padding-top: clamp(130px, 20vh, 190px); padding-bottom: clamp(60px, 9vh, 110px); }
}
.scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ---------- Links & buttons ---------- */
.link-line {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color .3s ease, color .3s ease, gap .3s ease;
}
.link-line::after { content: "→"; font-weight: 400; transition: transform .3s ease; }
.link-line:hover, .link-line:focus-visible { border-color: var(--gold-mid); gap: 20px; }
.section--dark .link-line, .section--sumi .link-line, .hero .link-line, .site-footer .link-line { color: var(--gold); }

.btn-solid {
  display: inline-block;
  background: var(--gold); color: var(--kumo);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 18px 42px;
  border: 1px solid var(--gold);
  transition: background .3s ease, color .3s ease;
}
.btn-solid:hover, .btn-solid:focus-visible { background: transparent; color: var(--gold); }
.btn-ghost {
  display: inline-block;
  color: var(--on-dark);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 18px 42px;
  border: 1px solid var(--dark-line);
  transition: border-color .3s ease, color .3s ease;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold); }

/* ---------- Section furniture ---------- */
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head .heading { max-width: 24ch; }
.sec-num {
  font-family: var(--serif); font-weight: 400;
  font-size: 13px; letter-spacing: 0.3em;
  color: var(--gold-ink);
}
.section--dark .sec-num, .section--sumi .sec-num { color: var(--gold); }

.rule-gold { width: 64px; height: 1px; background: var(--gold-mid); border: 0; }

.two-col {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(40px, 7vw, 96px); align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Definition table (company profile) */
.def-table { border-top: 1px solid var(--paper-line); }
.def-table > div {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--paper-line);
}
.def-table dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); padding-top: 3px; }
.def-table dt .en { display: block; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-top: 5px; font-weight: 600; }
.def-table dd { font-size: 15.5px; color: var(--ink); line-height: 1.9; }
.def-table dd .sub { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.def-table dd a { border-bottom: 1px solid var(--gold-line); transition: border-color .3s ease, color .3s ease; }
.def-table dd a:hover, .def-table dd a:focus-visible { color: var(--gold-ink); border-color: var(--gold-mid); }
@media (max-width: 640px) {
  .def-table > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .def-table dt .en { font-size: 11.5px; }
}

/* Numbered capability grid */
.cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
}
.section--dark .cap-grid, .section--sumi .cap-grid { border-color: var(--dark-line); }
.cap-cell {
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: clamp(28px, 4vw, 46px);
}
.section--dark .cap-cell, .section--sumi .cap-cell { border-color: var(--dark-line); }
.cap-cell .num { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--gold-ink); }
.section--dark .cap-cell .num, .section--sumi .cap-cell .num { color: var(--gold); }
.cap-cell h3 { margin-top: 18px; font-size: 1.1rem; font-weight: 500; }
.cap-cell .jp-label { display: block; font-family: var(--jp); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); margin-top: 6px; font-weight: 400; }
.section--dark .cap-cell .jp-label, .section--sumi .cap-cell .jp-label { color: var(--on-dark-3); }
.cap-cell p { margin-top: 14px; font-size: 14.5px; line-height: 1.95; }
@media (max-width: 720px) { .cap-grid { grid-template-columns: 1fr; } }

/* Pillar cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-top: 2px solid var(--gold-mid);
  padding: clamp(28px, 3.6vw, 44px);
}
.section--dark .pillar, .section--sumi .pillar {
  background: rgba(255,255,255,0.025);
  border-color: var(--dark-line);
  border-top-color: var(--gold);
}
.pillar .kanji {
  font-family: var(--jp-serif); font-weight: 600;
  font-size: 30px; color: var(--gold-ink); line-height: 1;
}
.section--dark .pillar .kanji, .section--sumi .pillar .kanji { color: var(--gold); }
.pillar h3 { margin-top: 20px; font-size: 1.06rem; font-weight: 500; }
.pillar p { margin-top: 12px; font-size: 14.5px; line-height: 1.95; }

/* Brand feature panel */
.brand-panel {
  border: 1px solid var(--dark-line);
  padding: clamp(40px, 6vw, 84px);
  position: relative;
  background:
    radial-gradient(ellipse 80% 90% at 85% 10%, rgba(198,166,106,0.07), transparent 55%),
    rgba(255,255,255,0.015);
}
.brand-panel .brand-name {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.34em; margin-right: -0.34em;
  color: var(--on-dark);
}
.brand-panel .brand-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-top: 18px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em;
  color: var(--on-dark-2);
  border: 1px solid var(--dark-line);
  padding: 9px 18px;
}
.tag .jp-label { color: var(--on-dark-3); margin-left: 8px; font-family: var(--jp); }
.section--washi .tag, .section--white .tag { color: var(--ink-2); border-color: var(--paper-line); }
.section--washi .tag .jp-label, .section--white .tag .jp-label { color: var(--ink-3); }
@media (max-width: 480px) {
  .tag { flex-direction: column; align-items: flex-start; gap: 3px; }
  .tag .jp-label { margin-left: 0; }
}

/* Values strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--kumo);
  padding: clamp(32px, 4.5vw, 56px);
  text-align: center;
}
.value .kanji {
  font-family: var(--jp-serif); font-weight: 600;
  font-size: clamp(34px, 4vw, 46px); color: var(--gold);
}
.value .en {
  display: block; margin-top: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Steps / timeline */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--gold-line); padding-top: 26px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 34px; height: 5px; background: var(--gold-mid);
}
.step .label { font-family: var(--serif); font-size: 12px; letter-spacing: 0.3em; color: var(--gold-ink); text-transform: uppercase; }
.section--dark .step .label, .section--sumi .step .label { color: var(--gold); }
.step h3 { margin-top: 14px; font-size: 1.08rem; font-weight: 500; }
.step p { margin-top: 10px; font-size: 14.5px; line-height: 1.95; }
.step .jp-label, .pillar .jp-label {
  display: block; font-family: var(--jp); font-weight: 400;
  font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); margin-top: 6px;
}
.section--dark .step .jp-label, .section--sumi .step .jp-label,
.section--dark .pillar .jp-label, .section--sumi .pillar .jp-label { color: var(--on-dark-3); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--kumo);
  color: var(--on-dark);
  border-top: 1px solid var(--gold-line-soft);
  text-align: center;
}
.cta-band .jp-line {
  font-family: var(--jp-serif); font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: 0.3em;
  color: var(--on-dark-2);
}
.cta-band .heading { margin-top: 22px; font-weight: 300; color: var(--on-dark); }
.cta-band p { color: var(--on-dark-2); }
.cta-band .eyebrow { color: var(--gold); }
.cta-band .actions { margin-top: 44px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--kumo);
  color: var(--on-dark-2);
  border-top: 1px solid var(--dark-line);
  padding: clamp(60px, 8vw, 96px) 0 0;
  font-size: 14px;
}
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .logo-lockup svg { height: 46px; }
.site-footer .foot-tag { margin-top: 22px; font-size: 13.5px; color: var(--on-dark-3); line-height: 2; max-width: 34ch; }
.site-footer .foot-jp { margin-top: 10px; font-family: var(--jp); font-size: 12.5px; letter-spacing: 0.1em; color: var(--on-dark-3); }
.site-footer h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.site-footer li { margin-bottom: 2px; }
.site-footer a { display: inline-block; padding: 8px 0; color: var(--on-dark-2); transition: color .25s ease; font-size: 13.5px; letter-spacing: 0.06em; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 2.1; font-size: 13.5px; color: var(--on-dark-2); }
.site-footer__bar {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--dark-line);
  padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: 0.08em; color: var(--on-dark-3);
}
.site-footer__bar p { color: inherit; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .12s; }
html.js .reveal[data-delay="2"] { transition-delay: .24s; }
html.js .reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Motion system ---------- */
/* Staggered child reveals — the .stagger class is attached by main.js to
   cap-grids, pillars, values, steps, def-tables and tag rows. */
html.js .stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1);
}
html.js .stagger.in > * { opacity: 1; transform: none; }
html.js .stagger.in > *:nth-child(1)  { transition-delay: .05s; }
html.js .stagger.in > *:nth-child(2)  { transition-delay: .13s; }
html.js .stagger.in > *:nth-child(3)  { transition-delay: .21s; }
html.js .stagger.in > *:nth-child(4)  { transition-delay: .29s; }
html.js .stagger.in > *:nth-child(5)  { transition-delay: .37s; }
html.js .stagger.in > *:nth-child(6)  { transition-delay: .45s; }
html.js .stagger.in > *:nth-child(7)  { transition-delay: .53s; }
html.js .stagger.in > *:nth-child(8)  { transition-delay: .61s; }
html.js .stagger.in > *:nth-child(9)  { transition-delay: .69s; }
html.js .stagger.in > *:nth-child(n+10) { transition-delay: .77s; }

/* Hero entrance — the mark's bars rise like the chart they depict */
@keyframes bar-rise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
html.js .hero__watermark g polygon {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: bar-rise 1.3s cubic-bezier(.22,.61,.36,1) backwards;
}
html.js .hero__watermark g polygon:nth-of-type(1) { animation-delay: .15s; }
html.js .hero__watermark g polygon:nth-of-type(2) { animation-delay: .32s; }
html.js .hero__watermark g polygon:nth-of-type(3) { animation-delay: .49s; }

@keyframes track-in {
  from { letter-spacing: .06em; }
  to   { letter-spacing: .005em; }
}
html.js .hero .display { animation: track-in 1.7s cubic-bezier(.22,.61,.36,1) both; }

@keyframes grow-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
html.js .hero .eyebrow::before { transform-origin: left; animation: grow-x 1s .25s cubic-bezier(.22,.61,.36,1) backwards; }

@keyframes fade-soft { from { opacity: 0; } to { opacity: 1; } }
html.js .hero__vertical { animation: fade-soft 1.8s .9s both; }
html.js .hero__watermark { will-change: transform; }

@keyframes hint-pulse {
  0%, 100% { opacity: .3; transform: scaleY(.55); }
  50%      { opacity: 1;  transform: scaleY(1); }
}
.scroll-hint::after { transform-origin: top; animation: hint-pulse 2.8s ease-in-out infinite; }

/* Scroll progress — a gold hairline across the very top (injected by main.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 130;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-bright));
  pointer-events: none;
}

/* Grain — a whisper of paper texture on the dark surfaces */
.section--dark, .section--sumi, .cta-band { position: relative; }
.hero::after, .section--dark::before, .section--sumi::before, .cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .032;
}

/* Hover micro-interactions */
.pillar, .cap-cell, .value, .step {
  transition: transform .5s cubic-bezier(.22,.61,.36,1), border-color .5s ease,
              box-shadow .5s ease, background-color .5s ease;
}
.pillar:hover {
  transform: translateY(-5px);
  border-top-color: var(--gold);
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.09);
}
.section--dark .pillar:hover, .section--sumi .pillar:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); }
.cap-cell:hover { background-color: rgba(198, 166, 106, 0.05); }
.value:hover { background: #151513; }
.value .kanji { display: inline-block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.value:hover .kanji { transform: translateY(-4px); }
.def-table > div { transition: background-color .4s ease; }
.def-table > div:hover { background-color: rgba(198, 166, 106, 0.06); }
.tag { transition: border-color .35s ease, color .35s ease, transform .35s ease; }
.tag:hover { border-color: var(--gold-mid); transform: translateY(-2px); }
.brand-panel { transition: border-color .6s ease; }
.brand-panel:hover { border-color: var(--gold-line); }
.logo-lockup svg g { transition: opacity .3s ease; }
.logo-lockup:hover svg g { opacity: .82; }

/* Mobile menu — links cascade in */
/* Compact header on phones: keep the mark at full quality, scale the type */
@media (max-width: 560px) {
  .site-header__inner { gap: 14px; }
  .logo-lockup { gap: 10px; }
  .logo-lockup svg { height: 34px; width: 29px; }
  .logo-lockup .logo-en { font-size: 15.5px; letter-spacing: 0.2em; }
  .logo-lockup .logo-jp { font-size: 8px; letter-spacing: 0.3em; margin-top: 5px; }
  .lang-switch { gap: 8px; }
  .lang-switch a, .lang-switch .on { padding: 13px 5px; }
}
@media (max-width: 374px) {
  .logo-lockup .logo-jp { display: none; }
  .logo-lockup svg { height: 30px; width: 26px; }
  .site-header__inner { gap: 10px; }
  .lang-switch a, .lang-switch .on { padding: 13px 3px; }
}

@media (max-width: 920px) {
  .site-header.nav-open .site-nav a { animation: fade-soft .45s both; }
  .site-header.nav-open .site-nav a:nth-child(1) { animation-delay: .08s; }
  .site-header.nav-open .site-nav a:nth-child(2) { animation-delay: .14s; }
  .site-header.nav-open .site-nav a:nth-child(3) { animation-delay: .20s; }
  .site-header.nav-open .site-nav a:nth-child(4) { animation-delay: .26s; }
  .site-header.nav-open .site-nav a:nth-child(5) { animation-delay: .32s; }
  .site-header.nav-open .site-nav a:nth-child(6) { animation-delay: .38s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .stagger > * { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
