/* Digital Kaizen — website shared styles (aligned to explainer video) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Explainer-aligned palette */
  --navy:        #0F2848;
  --navy-2:      #122F52;
  --navy-3:      #1A3D66;
  --navy-deep:   #0A1A30;
  --ivory:       #F5F0E6;
  --ivory-dim:   #E8E1D1;
  --ivory-mute:  #C9C2B2;
  --rule:        rgba(245,240,230,0.18);
  --rule-strong: rgba(245,240,230,0.42);
  --amber:       #EA7A1E;   /* primary orange from explainer */
  --amber-hot:   #F39524;   /* orange-light */
  --amber-deep:  #C25E0A;   /* orange-deep */
  /* back-compat tokens */
  --red:         #C25E0A;
  --green:       #7FB484;

  --serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --sans:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --page-max: 1360px;
  --gutter:   clamp(24px, 4vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* ── カイゼン watermark — sits behind everything, fixed to viewport ── */
body::before {
  content: 'カイゼン';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
  font-weight: 500;
  font-size: clamp(280px, 38vw, 640px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ivory);
  opacity: 0.11;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  text-shadow: 0 0 80px rgba(234,122,30,0.22);
}

/* Ensure all content sits above the watermark */
.nav, .footer, section, .container, [data-slot] {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1.display { font-size: clamp(56px, 8vw, 132px); line-height: 1.04; font-weight: 500; }
h2.display { font-size: clamp(44px, 5.5vw, 88px); line-height: 1.05; font-weight: 500; }
h3.display { font-size: clamp(28px, 3vw, 48px); font-weight: 400; line-height: 1.1; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ivory-dim);
  display: inline-flex; align-items: center; gap: 14px;
}
.kicker::before {
  content: ''; width: 28px; height: 1px; background: var(--amber);
}
.kicker--amber { color: var(--amber); }
.mono { font-family: var(--mono); letter-spacing: 0.1em; }

.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ivory-dim); max-width: 62ch; line-height: 1.55; }

/* ── Page shell ──────────────────────── */
.page { min-height: 100vh; }
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 7vh, 96px) 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
@media (max-width: 720px) {
  section { padding: 48px 0; }
}

/* ── Top nav ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,40,72,0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  max-width: var(--page-max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ivory);
  text-transform: none;
  flex-shrink: 0;
}
.brand .dot {
  width: 36px; height: 36px; border-radius: 0;
  background: url('dk-mark-transparent.png') center/contain no-repeat;
  box-shadow: none;
  flex-shrink: 0;
}
.footer .brand .dot {
  background-image: url('dk-mark-ivory.png');
}
.brand em { font-style: italic; color: var(--amber); font-weight: 500; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ivory-dim);
  padding: 8px 0; position: relative;
  transition: color 150ms;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a.is-active { color: var(--amber); }
.nav-links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--amber);
}
.nav-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--navy);
  background: var(--amber); padding: 10px 18px;
  white-space: nowrap;
  transition: background 150ms;
}
.nav-cta:hover { background: var(--amber-hot); }
@media (max-width: 1500px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 9.5px; letter-spacing: 0.14em; }
  .nav-cta { padding: 9px 14px; font-size: 10px; letter-spacing: 0.16em; white-space: nowrap; }
  .brand { font-size: 18px; }
  .brand .dot { width: 30px; height: 30px; }
}
@media (max-width: 1300px) {
  .nav-links { gap: 11px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.1em; }
  .nav-cta { padding: 8px 12px; font-size: 9.5px; }
  .brand span:last-child { display: none; }
}
@media (max-width: 1100px) {
  .nav-links a:nth-child(n+9) { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .brand span:last-child { display: inline; }
  .nav-cta { padding: 8px 12px; font-size: 10px; }
}

/* ── Footer ──────────────────────────── */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory-dim);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--amber); margin: 0 0 20px; text-transform: uppercase; font-weight: 500;
}
.footer a { display: block; padding: 6px 0; color: var(--ivory-dim); transition: color 150ms; }
.footer a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 10px; letter-spacing: 0.24em;
}
.footer-blurb {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
  font-size: 14px; line-height: 1.6; color: var(--ivory-dim);
  max-width: 36ch;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--amber); color: var(--amber);
  transition: all 150ms;
}
.btn:hover { background: var(--amber); color: var(--navy); }
.btn--solid { background: var(--amber); color: var(--navy); }
.btn--solid:hover { background: var(--amber-hot); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: transparent; }
.btn .arrow { display: inline-block; transition: transform 180ms; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Page header band ────────────────── */
.page-header {
  padding: 110px 0 72px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--navy-2), var(--navy)),
    radial-gradient(800px 400px at 80% 0%, rgba(234,122,30,0.14), transparent);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3; pointer-events: none;
}
.page-header .kicker { margin-bottom: 28px; }

/* ── Grids ───────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 88px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Cards ───────────────────────────── */
.card {
  background: var(--navy-2);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--amber);
  padding: 40px 36px;
  transition: transform 200ms, border-color 200ms;
}
.card:hover { transform: translateY(-4px); border-color: var(--rule-strong); }
.card .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em;
  color: var(--amber); margin-bottom: 20px;
}
.card h4 {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 14px;
}
.card p { color: var(--ivory-dim); font-size: 15px; line-height: 1.6; margin: 0; }

/* ── Stat block ──────────────────────── */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ivory-dim);
  margin-bottom: 14px;
}
.stat .val {
  font-family: var(--serif); font-size: 64px; font-weight: 400;
  color: var(--amber); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .unit { font-size: 28px; color: var(--ivory-dim); margin-left: 4px; }
.stat .sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory-dim); margin-top: 10px;
}
@media (max-width: 820px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
}

/* ── Utility ─────────────────────────── */
.hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.amber { color: var(--amber); }
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--amber);
}
.blueprint {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    linear-gradient(var(--ivory-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivory-dim) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Programme head (section header pattern) ─ */
.programme-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.programme-head .lede { max-width: 50ch; }
@media (max-width: 820px) { .programme-head { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 32px; } }

/* ── Standard CTA band ──────────────────────── */
.cta-band {
  background: linear-gradient(90deg, var(--navy-2), var(--navy-3));
  border-top: 1px solid var(--rule);
  padding: 64px 0;
}
.cta-band .container, .cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 18ch; margin: 0; }
@media (max-width: 720px) {
  .cta-band { padding: 48px 0; }
}

/* ── Crumbs / hero shared (ap-hero) ─────────── */
.ap-hero { padding: 96px 0 56px; position: relative; overflow: hidden; }
.ap-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.22; pointer-events: none;
}
.ap-hero .container { position: relative; }
.ap-hero h1 { margin: 20px 0 28px; }
.ap-hero h1 em { font-style: italic; color: var(--amber); font-weight: 400; }
@media (max-width: 720px) {
  .ap-hero { padding: 56px 0 36px; }
  .ap-hero h1 { margin: 14px 0 18px; }
}

/* ── Scroll reveal ───────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms, transform 800ms; }
.reveal.in { opacity: 1; transform: none; }

/* ── Breadcrumb ───────────────────────── */
.crumbs {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ivory-dim);
  margin-bottom: 36px;
}
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { margin: 0 12px; opacity: 0.4; }
