/* ═══════════════════════════════════════════════════════════════
   JASMANI × AINNA — Living Digital Ecosystem Proposal
   Premium corporate presentation · JASMANI brand identity
   ═══════════════════════════════════════════════════════════════ */
:root {
  --j-bg: #fffdf8;
  --j-bg2: #faf3e8;
  --j-ink: #2d2418;
  --j-muted: #7a6a52;
  --j-faint: #a99a82;
  --j-line: #eee2cf;
  --j-primary: #c0392b;
  --j-primary-dark: #a02c20;
  --j-accent: #e8a33d;
  --j-green: #2e7d32;
  --j-card: #ffffff;
  --j-deep: #1a120b;
  --j-deep2: #241a10;
  --j-gold: #f0b45a;
  --j-cream: #fdf6ea;
  --j-shadow: 0 10px 40px rgba(45, 36, 24, 0.08);
  --j-shadow-lg: 0 24px 80px rgba(45, 36, 24, 0.14);
  --j-radius: 16px;
  --j-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --j-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-offset: 76px;
}
html[data-theme="light"] {
  --j-bg: #fffdf8;
  --j-bg2: #faf3e8;
  --j-ink: #2d2418;
  --j-muted: #7a6a52;
  --j-faint: #a99a82;
  --j-line: #eee2cf;
  --j-card: #ffffff;
  --j-deep: #1a120b;
  --j-deep2: #241a10;
  --j-shadow: 0 10px 40px rgba(45, 36, 24, 0.08);
}
html[data-theme="dark"] {
  --j-bg: #14100c;
  --j-bg2: #1b1510;
  --j-ink: #f5ede0;
  --j-muted: #b8a88e;
  --j-faint: #8a7a62;
  --j-line: #3a2f22;
  --j-card: #1d1610;
  --j-deep: #0d0906;
  --j-deep2: #16100a;
  --j-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --j-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-offset); }
body {
  font-family: var(--j-font);
  background: var(--j-bg);
  color: var(--j-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--j-primary); text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─── Scroll progress ─── */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--j-primary), var(--j-accent)); z-index: 1000; box-shadow: 0 0 14px var(--j-accent); }

/* ─── Nav ─── */
.p-nav {
  position: fixed; inset: 0 0 auto; z-index: 900;
  background: color-mix(in srgb, var(--j-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--j-line);
}
.p-nav-inner { display: flex; align-items: center; gap: 14px; height: 66px; }
.p-brand { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; color: var(--j-ink); display: flex; align-items: center; gap: 9px; margin-right: auto; white-space: nowrap; }
.p-brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--j-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.p-brand small { display: block; font-size: 9px; color: var(--j-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.p-links { position: relative; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--j-primary) transparent; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.p-links::-webkit-scrollbar { height: 4px; }
.p-links::-webkit-scrollbar-thumb { background: var(--j-primary); border-radius: 4px; }
.p-links::-webkit-scrollbar-track { background: transparent; }
.p-links:active { cursor: grabbing; }
.p-links-track { display: flex; gap: 1px; align-items: center; width: max-content; }
.p-links-track a { font-size: 11.5px; font-weight: 600; color: var(--j-muted); padding: 6px 9px; border-radius: 8px; white-space: nowrap; }
.p-links-track a:hover, .p-links-track a.active { color: var(--j-primary); background: rgba(192, 57, 43, 0.08); }
.p-nav-controls { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.p-nav-controls .ainna-nav-controls { gap: 6px; }
.p-nav-controls button.ainna-theme-switch.theme-toggle,
.p-nav-controls .ainna-boost-toggle { position: static !important; top: auto !important; right: auto !important; }
@media (max-width: 1080px) { .p-links-track a { font-size: 10.5px; padding: 5px 7px; } }
@media (max-width: 900px) { .p-links { flex: 0 1 40%; } .p-links-track a { font-size: 9.5px; padding: 4px 6px; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 24px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--j-primary); color: #fff; box-shadow: 0 8px 24px rgba(192, 57, 43, 0.2); }
.btn-primary:hover { background: var(--j-primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--j-ink); border-color: var(--j-line); }
.btn-ghost:hover { border-color: var(--j-primary); color: var(--j-primary); }
.btn-accent { background: var(--j-accent); color: #2d2418; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ─── Hero ─── */
.hero { position: relative; padding: 0; overflow: hidden; background: var(--j-deep); color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-video-frame { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-frame iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 100vh; min-width: 100vw; min-height: 100vh;
  border: 0; pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,10,8,0.6) 0%, rgba(12,10,8,0.3) 45%, rgba(12,10,8,0.88) 100%);
  pointer-events: none;
}
.hero .hero-grid { position: relative; z-index: 2; }
.hero .hero-kicker, .hero h1, .hero .hero-lead, .hero .hero-sub, .hero .hero-actions, .hero .hero-metrics, .hero .hero-side { position: relative; z-index: 2; }
.hero h1, .hero .hero-lead, .hero .hero-sub, .hero .hero-side { text-shadow: 0 2px 24px rgba(0,0,0,0.7); }
.hero .hero-side { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.15); }
.hero .hero-metric { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.12); }
body[data-theme="light"] .hero .hero-side { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.08); }
body[data-theme="light"] .hero .hero-metric { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(192, 57, 43, 0.4), transparent 60%),
    radial-gradient(700px 480px at 8% 20%, rgba(232, 163, 61, 0.18), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; padding: 90px 0 50px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { min-height: auto; } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--j-gold); padding: 5px 12px; border: 1px solid rgba(240, 180, 90, 0.3);
  border-radius: 999px; background: rgba(192, 57, 43, 0.18); margin-bottom: 14px;
}
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--j-gold); box-shadow: 0 0 12px var(--j-gold); }
.hero h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; font-weight: 850; letter-spacing: -0.03em; margin-bottom: 10px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--j-gold), #f7c97a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: 15px; line-height: 1.5; color: #e8d9c2; max-width: 520px; margin-bottom: 6px; }
.hero-sub { font-size: 13px; color: #b8a88e; max-width: 500px; margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-actions .btn-primary { background: #fff; color: var(--j-deep); box-shadow: none; min-height: 38px; padding: 0 18px; font-size: 13px; }
.hero-actions .btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: #fff; min-height: 38px; padding: 0 18px; font-size: 13px; }
.hero-actions .btn-ghost:hover { border-color: var(--j-gold); color: var(--j-gold); }
.hero-actions .btn-accent { min-height: 38px; padding: 0 18px; font-size: 13px; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hero-metric { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.hero-metric b { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.hero-metric b em { font-style: normal; color: var(--j-gold); }
.hero-metric span { font-size: 10.5px; color: #b8a88e; line-height: 1.35; }
.hero-side { position: relative; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); }
.hero-side-tag { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--j-gold); margin-bottom: 8px; font-weight: 700; }
.thesis { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 8px; }
.thesis-detail { font-size: 12.5px; color: #e8d9c2; line-height: 1.5; margin-bottom: 10px; }
.hero-side-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; }
.hero-side-row .k { color: #b8a88e; }
.hero-side-row .v { color: #fff; font-weight: 600; }
.hero-side-row .v.tag { color: var(--j-gold); }

/* Hero light mode */
body[data-theme="light"] .hero { background: #f7efe2; color: var(--j-ink); }
body[data-theme="light"] .hero::before {
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(192, 57, 43, 0.12), transparent 60%),
    radial-gradient(700px 480px at 8% 20%, rgba(232, 163, 61, 0.1), transparent 55%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}
body[data-theme="light"] .hero h1 { color: var(--j-ink); }
body[data-theme="light"] .hero h1 em { -webkit-text-fill-color: transparent; }
body[data-theme="light"] .hero-lead { color: #4a3a28; }
body[data-theme="light"] .hero-sub { color: #7a6a52; }
body[data-theme="light"] .hero-actions .btn-primary { background: var(--j-primary); color: #fff; }
body[data-theme="light"] .hero-actions .btn-ghost { border-color: var(--j-line); color: var(--j-ink); }
body[data-theme="light"] .hero-actions .btn-ghost:hover { border-color: var(--j-primary); color: var(--j-primary); }
body[data-theme="light"] .hero-metric { background: rgba(255, 255, 255, 0.7); border-color: rgba(0, 0, 0, 0.08); }
body[data-theme="light"] .hero-metric b { color: var(--j-ink); }
body[data-theme="light"] .hero-metric span { color: #7a6a52; }
body[data-theme="light"] .hero-side { background: rgba(255, 255, 255, 0.6); border-color: rgba(0, 0, 0, 0.08); }
body[data-theme="light"] .hero-side-tag { color: var(--j-primary); }
body[data-theme="light"] .thesis { color: var(--j-ink); }
body[data-theme="light"] .thesis-detail { color: #4a3a28; }
body[data-theme="light"] .hero-side-row { border-top-color: rgba(0, 0, 0, 0.08); }
body[data-theme="light"] .hero-side-row .k { color: #7a6a52; }
body[data-theme="light"] .hero-side-row .v { color: var(--j-ink); }

/* ─── Sections ─── */
section.block { padding: 88px 0; }
section.block--soft { background: var(--j-bg2); }
section.block--deep { background: var(--j-deep); color: #fff; }
section.block--deep2 { background: var(--j-deep2); color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--j-primary); font-weight: 700; margin-bottom: 12px; display: block; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
section.block--deep .sec-kicker, section.block--deep2 .sec-kicker { color: var(--j-gold); }
.sec-head p { color: var(--j-muted); font-size: 16px; }
section.block--deep .sec-head p, section.block--deep2 .sec-head p { color: #b8a88e; }

.card { background: var(--j-card); border: 1px solid var(--j-line); border-radius: var(--j-radius); padding: 26px; box-shadow: var(--j-shadow); }
section.block--deep .card, section.block--deep2 .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.card p, .card li { font-size: 14px; color: var(--j-muted); line-height: 1.65; }
section.block--deep .card p, section.block--deep .card li, section.block--deep2 .card p, section.block--deep2 .card li { color: #b8a88e; }
.card ul { list-style: none; padding: 0; }
.card ul li { padding: 5px 0; }
.card ul li::before { content: "•"; color: var(--j-primary); font-weight: 800; margin-right: 8px; }
.sym { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(192, 57, 43, 0.1); color: var(--j-primary); font-size: 22px; font-weight: 800; margin-bottom: 16px; }
section.block--deep .sym, section.block--deep2 .sym { background: rgba(240, 180, 90, 0.14); color: var(--j-gold); }

/* ─── Big statement sections ─── */
.statement { text-align: center; }
.statement h2 { font-size: clamp(34px, 6vw, 64px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.statement h2 em { font-style: normal; color: var(--j-primary); }
section.block--deep .statement h2 em, section.block--deep2 .statement h2 em { color: var(--j-gold); }
.statement p { color: var(--j-muted); max-width: 640px; margin: 20px auto 0; font-size: 16px; }
section.block--deep .statement p, section.block--deep2 .statement p { color: #b8a88e; }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ─── Metric ticker ─── */
.metric-ticker { overflow: hidden; position: relative; padding: 16px 0; }
.metric-track { display: flex; gap: 14px; width: max-content; animation: ticker 36s linear infinite; }
.metric-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mt-chip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; background: var(--j-card); border: 1px solid var(--j-line); box-shadow: var(--j-shadow); white-space: nowrap; }
.mt-chip b { font-size: 18px; font-weight: 800; color: var(--j-primary); }
.mt-chip span { font-size: 13px; color: var(--j-muted); }
section.block--deep .mt-chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
section.block--deep .mt-chip b { color: var(--j-gold); }
section.block--deep .mt-chip span { color: #b8a88e; }

/* ─── Digital footprint orbit ─── */
.orbit-wrap { position: relative; height: 560px; max-width: 900px; margin: 0 auto; }
.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 3; }
.orbit-center .oc-badge { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--j-primary); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.orbit-center h3 { font-size: 22px; font-weight: 800; }
.orbit-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; padding: 8px 14px; border-radius: 999px; background: var(--j-card); border: 1px solid var(--j-line); box-shadow: var(--j-shadow); font-size: 12.5px; font-weight: 700; color: var(--j-ink); white-space: nowrap; transition: border-color 0.3s, color 0.3s; }
.orbit-node.linked { border-color: var(--j-primary); color: var(--j-primary); }
section.block--deep .orbit-node { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #e8d9c2; }
section.block--deep .orbit-node.linked { border-color: var(--j-gold); color: var(--j-gold); }
.orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
@media (max-width: 700px) { .orbit-wrap { height: 480px; } .orbit-node { font-size: 10px; padding: 6px 10px; } }

/* ─── Architecture layers ─── */
.arch-stack { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.arch-layer { border: 1px solid var(--j-line); border-radius: 14px; padding: 22px; background: var(--j-card); }
.arch-layer + .arch-layer { margin-top: -1px; }
.arch-layer h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--j-primary); margin-bottom: 12px; }
.arch-layer .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-layer .chip { padding: 6px 12px; border-radius: 8px; background: var(--j-bg2); border: 1px solid var(--j-line); font-size: 12.5px; font-weight: 600; color: var(--j-ink); }
section.block--deep .arch-layer { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
section.block--deep .arch-layer h4 { color: var(--j-gold); }
section.block--deep .arch-layer .chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #e8d9c2; }
.arch-arrow { text-align: center; padding: 6px 0; color: var(--j-faint); font-size: 18px; }

/* ─── Workflow / flow ─── */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.flow .node { padding: 10px 16px; border-radius: 10px; background: var(--j-card); border: 1px solid var(--j-line); font-size: 13px; font-weight: 700; color: var(--j-ink); box-shadow: var(--j-shadow); }
.flow .node.hl { border-color: var(--j-primary); color: var(--j-primary); }
.flow .node.good { border-color: var(--j-green); color: var(--j-green); }
.flow .arrow { color: var(--j-faint); font-size: 16px; font-weight: 800; }
section.block--deep .flow .node { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #e8d9c2; }
section.block--deep .flow .node.hl { border-color: var(--j-gold); color: var(--j-gold); }
section.block--deep .flow .node.good { border-color: #4ade80; color: #4ade80; }
section.block--deep .flow .arrow { color: #8a7a62; }

/* ─── Vertical flow (AI → Human) ─── */
.vflow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 860px; margin: 0 auto; }
.vflow .vf-col { display: flex; flex-direction: column; gap: 8px; }
.vflow .vf-col h4 { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.vflow .vf-col.ai h4 { color: var(--j-primary); }
.vflow .vf-col.human h4 { color: var(--j-green); }
.vflow .vf-chip { padding: 9px 14px; border-radius: 10px; background: var(--j-card); border: 1px solid var(--j-line); font-size: 13px; font-weight: 600; text-align: center; color: var(--j-ink); }
.vflow .vf-col.ai .vf-chip { border-color: rgba(192, 57, 43, 0.3); }
.vflow .vf-col.human .vf-chip { border-color: rgba(46, 125, 50, 0.3); }
.vflow .vf-divider { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--j-faint); font-weight: 800; }
@media (max-width: 700px) { .vflow { grid-template-columns: 1fr; } .vflow .vf-divider { flex-direction: row; } }
section.block--deep .vf-chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #e8d9c2; }

/* ─── Timeline ─── */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--j-primary), var(--j-accent)); }
.tl-item { position: relative; padding: 18px 0 18px 24px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--j-primary); border: 3px solid var(--j-bg); }
.tl-item .tl-year { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--j-primary); font-weight: 800; }
.tl-item h3 { font-size: 18px; font-weight: 800; margin: 4px 0; }
.tl-item p { color: var(--j-muted); font-size: 14px; }
section.block--deep .tl-item::before { border-color: var(--j-deep); }
section.block--deep .tl-item .tl-year { color: var(--j-gold); }
section.block--deep .tl-item p { color: #b8a88e; }

/* ─── Big number ─── */
.big-num { text-align: center; }
.big-num .num { font-size: clamp(80px, 16vw, 160px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--j-primary), var(--j-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.big-num .label { font-size: 18px; font-weight: 700; color: var(--j-muted); margin-top: 8px; }
.big-num .sub { font-size: 14px; color: var(--j-faint); margin-top: 4px; }

/* ─── Product intelligence hub ─── */
.hub-wrap { position: relative; height: 520px; max-width: 900px; margin: 0 auto; }
.hub-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; text-align: center; }
.hub-center .hc-box { padding: 18px 26px; border-radius: 16px; background: var(--j-primary); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 12px 40px rgba(192, 57, 43, 0.3); }
.hub-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; padding: 8px 14px; border-radius: 999px; background: var(--j-card); border: 1px solid var(--j-line); box-shadow: var(--j-shadow); font-size: 12.5px; font-weight: 700; color: var(--j-ink); white-space: nowrap; }
.hub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
@media (max-width: 700px) { .hub-wrap { height: 460px; } .hub-node { font-size: 10px; padding: 6px 10px; } }

/* ─── Living modules ─── */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.live-card { padding: 20px; border-radius: 14px; background: var(--j-card); border: 1px solid var(--j-line); box-shadow: var(--j-shadow); }
.live-card .lc-tag { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--j-primary); font-weight: 800; margin-bottom: 8px; display: block; }
.live-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.live-card p { font-size: 13px; color: var(--j-muted); }
.live-card .lc-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--j-green); }
.live-card .lc-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--j-green); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── Media intelligence pipeline ─── */
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pipeline .step { padding: 10px 16px; border-radius: 10px; background: var(--j-card); border: 1px solid var(--j-line); font-size: 13px; font-weight: 700; color: var(--j-ink); }
.pipeline .step.hl { border-color: var(--j-primary); color: var(--j-primary); }
.pipeline .arrow { color: var(--j-faint); font-weight: 800; }
section.block--deep .pipeline .step { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #e8d9c2; }
section.block--deep .pipeline .step.hl { border-color: var(--j-gold); color: var(--j-gold); }

/* ─── Monitor list ─── */
.monitor-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.monitor-list .mon { padding: 10px 18px; border-radius: 999px; background: var(--j-card); border: 1px solid var(--j-line); font-size: 13px; font-weight: 700; color: var(--j-ink); box-shadow: var(--j-shadow); }
section.block--deep .monitor-list .mon { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #e8d9c2; }

/* ─── CTA ─── */
.cta { text-align: center; padding: 96px 0; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 850; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta p { color: var(--j-muted); max-width: 620px; margin: 0 auto 32px; }
section.block--deep .cta p { color: #b8a88e; }

/* ─── Investor kit link card ─── */
.ik-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 16px; background: var(--j-card); border: 1px solid var(--j-line); box-shadow: var(--j-shadow); }
.ik-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ik-card p { color: var(--j-muted); font-size: 14px; }
@media (max-width: 700px) { .ik-card { flex-direction: column; text-align: center; } }

/* ─── Footer strip spacing (leave room for globe) ─── */
body { padding-bottom: 0; }
.ainna-page-footer-strip { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .metric-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE ARCHITECTURE (≤767px)
   Header: brand · theme toggle · burger → slide-down panel
   Hero: cinematic dark, controlled headline, one lead,
         CTA hierarchy, 2×2 stats, layered gradients (no video)
   Desktop ≥768px untouched.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Burger + panel foot: hidden on desktop ─── */
.p-burger { display: none; }
.p-menu-foot { display: none; }

/* Responsive lead variant */
.hero-lead .hero-lead-short { display: none; }

/* Poster layer (mobile-only cinematic backdrop, replaces video) */
.hero-poster {
  display: none;
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 88% -12%, rgba(192, 57, 43, 0.5), transparent 55%),
    radial-gradient(95% 70% at -12% 22%, rgba(232, 163, 61, 0.22), transparent 55%),
    radial-gradient(150% 110% at 50% 125%, rgba(20, 14, 8, 0.92), transparent 62%),
    linear-gradient(162deg, #1c130a 0%, #261b10 46%, #120c07 100%);
}
.hero-poster::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.04) 50%, transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
}

@media (max-width: 767px) {

  /* ─── Container & rhythm ─── */
  :root { --nav-offset: 70px; }
  html { scroll-padding-top: calc(var(--nav-offset) + 6px); }
  .wrap { width: 100%; padding-inline: 20px; }
  section.block { padding: 64px 0; }

  /* ─── Header: brand left · theme toggle + burger right ─── */
  .p-nav-inner { height: 62px; gap: 10px; }
  .p-brand { font-size: 13.5px; gap: 8px; min-width: 0; }
  .p-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .p-brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; flex-shrink: 0; }
  .p-brand small { display: none; }
  .p-links { display: none; } /* replaced by panel below — re-declared as fixed panel */

  /* Compact theme toggle (icon-pill only) */
  .p-nav-controls { gap: 6px; }
  .p-nav-controls .ainna-theme-switch-label { display: none; }
  .p-nav-controls button.ainna-theme-switch.theme-toggle { padding: 5px; gap: 0; }
  .p-nav-controls .ainna-boost-toggle { display: none; } /* boost lives inside the menu panel */

  /* Burger */
  .p-burger {
    display: inline-flex; flex-direction: column; align-items: stretch; justify-content: center;
    gap: 4.5px; width: 42px; height: 42px; padding: 0 11px; flex-shrink: 0;
    background: rgba(127, 127, 127, 0.1); border: 1px solid var(--j-line);
    border-radius: 11px; cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .p-burger-line {
    display: block; height: 2px; border-radius: 2px; background: var(--j-ink);
    transition: transform 0.3s cubic-bezier(0.2, 0.65, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
  }
  html.p-menu-open .p-burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  html.p-menu-open .p-burger-line:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
  html.p-menu-open .p-burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Slide-down navigation panel */
  .p-links {
    display: block;
    position: fixed; top: 62px; left: 0; right: 0; z-index: 880;
    max-height: 0; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    overflow-y: auto; overflow-x: hidden; cursor: default;
    background: color-mix(in srgb, var(--j-bg) 96%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--j-line);
    box-shadow: var(--j-shadow-lg);
    mask-image: none; -webkit-mask-image: none;
    scrollbar-width: thin;
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0s linear 0.26s;
  }
  html.p-menu-open .p-links {
    max-height: calc(100vh - 62px);
    max-height: calc(100dvh - 62px);
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity 0.26s ease, transform 0.26s ease;
  }
  html.p-menu-open, html.p-menu-open body { overflow: hidden; }

  .p-links-track {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
    width: auto; padding: 12px 16px 4px;
  }
  .p-links-track a {
    font-size: 15px; font-weight: 600; color: var(--j-ink);
    padding: 13px 14px; border-radius: 10px; white-space: normal;
    display: flex; align-items: center; line-height: 1.25;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .p-links-track a:hover, .p-links-track a.active {
    color: var(--j-primary); background: rgba(192, 57, 43, 0.08);
  }

  .p-menu-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--j-line);
  }
  .p-menu-boost {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(127, 127, 127, 0.1); border: 1px solid var(--j-line);
    color: var(--j-muted); cursor: pointer;
  }
  .p-menu-note {
    font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--j-faint); white-space: nowrap;
  }

  /* ─── Mobile hero: video full-cover, cropped to fill (ESG-style) ─── */
  .hero, body[data-theme="light"] .hero { background: #14100b; color: #fff; }
  .hero-poster { display: none; } /* poster only when reduced-motion removed the video */
  .hero-video-frame { display: block; }
  /* Fill the entire hero frame (however tall it is): height:100% of the
     absolutely-positioned frame, width auto-derived from a 16:9 ratio so the
     landscape video is cropped (not letterboxed) edge-to-edge. */
  .hero-video-frame iframe {
    position: absolute; top: 50%; left: 50%;
    height: 100%;
    width: auto;
    aspect-ratio: 16 / 9;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
  }
  .hero::before, body[data-theme="light"] .hero::before {
    background:
      radial-gradient(700px 420px at 85% -8%, rgba(192, 57, 43, 0.32), transparent 60%),
      radial-gradient(520px 380px at 4% 16%, rgba(232, 163, 61, 0.13), transparent 55%);
    background-size: 100% 100%, 100% 100%;
  }
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(10, 8, 6, 0.72) 0%, rgba(10, 8, 6, 0.5) 28%, rgba(10, 8, 6, 0.55) 55%, rgba(10, 8, 6, 0.95) 100%),
      radial-gradient(90% 70% at 50% 118%, rgba(10, 8, 6, 0.75), transparent 70%),
      linear-gradient(90deg, rgba(10, 8, 6, 0.4), transparent 30%, transparent 70%, rgba(10, 8, 6, 0.4)),
      radial-gradient(40% 120% at 50% 50%, rgba(10, 8, 6, 0.3), transparent 70%);
  }

  .hero { min-height: 100vh; min-height: 100svh; align-items: center; }
  .hero-grid {
    grid-template-columns: 1fr; gap: 28px;
    padding-top: calc(62px + 38px);
    padding-bottom: 42px;
  }

  /* Eyebrow */
  .hero-kicker {
    gap: 7px; font-size: 10.5px; letter-spacing: 0.13em;
    padding: 6px 12px; border-radius: 12px; margin-bottom: 18px;
  }
  .hk-sep { opacity: 0.55; }

  /* Headline — dominant, controlled wrapping */
  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
    line-height: 0.98; letter-spacing: -0.04em;
    max-width: 12ch; margin-bottom: 6px;
    text-wrap: balance;
  }
  .hero h1 + h1 { margin-bottom: 0; }

  /* One concise supporting paragraph above CTA */
  .hero-lead { margin-top: 18px; margin-bottom: 24px; }
  .hero-lead .hero-lead-full { display: none; }
  .hero-lead .hero-lead-short { display: inline; font-size: 15.5px; line-height: 1.6; max-width: 36ch; }
  .hero-sub { display: none; } /* secondary explanation lives further down the page */

  /* CTA hierarchy: primary full-width · secondary full-width · quiet text link */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 30px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-accent {
    width: 100%; min-height: 48px; font-size: 15px; padding: 0 18px;
  }
  .hero-actions .btn-primary { order: 1; }
  .hero-actions .btn-accent { order: 2; }
  .hero-actions .btn-ghost.hero-link-quiet, body[data-theme="light"] .hero-actions .btn-ghost.hero-link-quiet {
    order: 3; width: 100%; min-height: 42px; padding: 8px 12px;
    background: transparent !important; border: 0 !important; box-shadow: none;
    color: rgba(232, 217, 194, 0.78); font-size: 13.5px; font-weight: 600;
    text-decoration: underline; text-decoration-color: rgba(240, 180, 90, 0.35);
    text-underline-offset: 4px;
  }

  /* Statistics: compact 2×2 grid */
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-metric, body[data-theme="light"] .hero-metric {
    padding: 13px 13px 11px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: none;
  }
  .hero-metric b, body[data-theme="light"] .hero-metric b { font-size: 26px; letter-spacing: -0.02em; }
  .hero-metric span, body[data-theme="light"] .hero-metric span { font-size: 11px; line-height: 1.4; color: #b8a88e; }

  /* Side thesis card: de-emphasised, below stats */
  .hero-side, body[data-theme="light"] .hero-side {
    padding: 15px 16px; border-radius: 14px;
    background: rgba(0, 0, 0, 0.32); border-color: rgba(255, 255, 255, 0.12);
  }
  .thesis-detail { display: none; }
  .hero-side-row { font-size: 12.5px; padding: 7px 0; }

  /* Light-theme hero children forced onto the dark stage for contrast */
  body[data-theme="light"] .hero h1 { color: #fff; }
  body[data-theme="light"] .hero-lead { color: #e8d9c2; }
  body[data-theme="light"] .hero-actions .btn-primary { background: #fff; color: #1a120b; }
  body[data-theme="light"] .hero-actions .btn-accent { background: var(--j-accent); color: #2d2418; }
  body[data-theme="light"] .thesis { color: #fff; }
  body[data-theme="light"] .hero-side-tag { color: var(--j-gold); }
  body[data-theme="light"] .hero-side-row { border-top-color: rgba(255, 255, 255, 0.08); }
  body[data-theme="light"] .hero-side-row .k { color: #b8a88e; }
  body[data-theme="light"] .hero-side-row .v { color: #fff; }
  body[data-theme="light"] .hero-side-row .v.tag { color: var(--j-gold); }

  /* ─── Section typography system (mobile scale) ─── */
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.14; }
  .sec-head p { font-size: 15px; }
  .statement h2 { font-size: clamp(1.9rem, 8vw, 2.75rem); line-height: 1.08; }
  .cta { padding: 72px 0; }
  .card { padding: 20px; border-radius: 14px; }

  /* Flow diagrams wrap tighter */
  .flow { gap: 8px; }
  .flow .node { padding: 9px 13px; font-size: 12.5px; }
}

/* ─── Large phones (480–767): slightly more air ─── */
@media (min-width: 480px) and (max-width: 767px) {
  .wrap { padding-inline: 22px; }
  .hero-lead .hero-lead-short { font-size: 16px; }
  .hero-metrics { gap: 12px; }
}

/* ─── Short screens (e.g. 320×568): tighten vertical rhythm so the
       primary CTA lands within the first viewport ─── */
@media (max-width: 767px) and (max-height: 660px) {
  .hero-grid { padding-top: calc(62px + 24px); padding-bottom: 30px; gap: 22px; }
  .hero-kicker { margin-bottom: 14px; }
  .hero h1 { line-height: 0.96; margin-bottom: 4px; }
  .hero-lead { margin-top: 14px; margin-bottom: 18px; }
  .hero-lead .hero-lead-short { font-size: 15px; line-height: 1.5; max-width: 40ch; }
  .hero-actions { gap: 9px; margin-bottom: 22px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-accent { min-height: 46px; }
}

/* ─── Very small phones (≤359): tighten ─── */
@media (max-width: 359px) {
  .wrap { padding-inline: 16px; }
  .hero-kicker { font-size: 9.5px; padding: 5px 10px; }
  .p-brand { font-size: 12.5px; }
}

/* ─── Reduced motion: kill decorative motion everywhere ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-card .dot, .metric-track, .ainna-theme-switch-thumb { animation: none !important; transition: none !important; }
}
