/* ── Arisara Corporation shared page theme (matches arisara.html) ── */
:root {
  --bg: #050505; --surface: rgba(255,255,255,0.035);
  --rouge: #8b2d1f; --rouge-hi: #c4302b; --cobalt: #4a6fc4; --gold: #c9a84c;
  --text: #f0ece6; --muted: #7a736c;
  --border: rgba(240,236,230,0.09); --border-r: rgba(196,48,43,0.4);
  --mono: 'JetBrains Mono', monospace; --serif: 'Fraunces', serif;
  --nav-h: 52px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--mono); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: var(--text); }
a:hover { color: #ffffff; }

/* atmosphere */
#veil-gl { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }
#vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 20%, transparent 55%, rgba(0,0,0,0.55) 100%); }
#grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; width: 200%; height: 200%; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain-shift 0.9s steps(4) infinite; }
@keyframes grain-shift { 0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); } 50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,2%); } 100% { transform: translate(2%,-1%); } }
@media (prefers-reduced-motion: reduce) { #grain { animation: none; } }
main { position: relative; z-index: 3; }
#scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; background: linear-gradient(90deg, var(--rouge-hi), var(--cobalt)); transform-origin: 0 50%; transform: scaleX(0); }

/* nav */
#nav { position: fixed; top: 14px; left: 24px; right: 24px; z-index: 200; height: var(--nav-h); display: flex; align-items: center; padding: 0 24px; background: rgba(8,8,8,0.55); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); border: 1px solid var(--border); border-radius: 16px; transition: background 0.3s, border-color 0.3s; }
#nav.scrolled { background: rgba(8,8,8,0.82); border-color: rgba(240,236,230,0.15); }
.nav-logo img { height: 24px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0 auto; }
.nav-links a { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,236,230,0.75); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.current { color: var(--rouge-hi); }
.nav-tag { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--rouge-hi); border: 1px solid var(--border-r); padding: 4px 10px; white-space: nowrap; }

/* shared layout */
.section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; padding: calc(var(--nav-h) + 56px) 48px 72px; }
.section.auto { min-height: 0; }
.wrap { max-width: 1500px; width: 100%; margin: 0 auto; }
.eyebrow { font-size: 10px; letter-spacing: 0.45em; text-transform: uppercase; color: var(--rouge-hi); }
.ghost-num { position: absolute; top: 9vh; right: 4vw; font-family: var(--serif); font-weight: 200; font-size: clamp(120px, 18vw, 300px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(240,236,230,0.07); pointer-events: none; user-select: none; }
.sec-title { font-family: var(--serif); font-weight: 200; font-size: clamp(48px, 7.5vw, 130px); letter-spacing: -0.045em; line-height: 0.94; }
.sec-title em { font-style: italic; color: var(--rouge-hi); }
.sec-title .hollow { color: transparent; -webkit-text-stroke: 1.5px rgba(240,236,230,0.8); }
.lede { font-size: 12px; line-height: 1.9; letter-spacing: 0.03em; color: rgba(240,236,230,0.68); max-width: 620px; }
.lede p + p { margin-top: 12px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.38s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.btn { display: inline-block; padding: 14px 30px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; border: 1px solid var(--border); color: var(--text); transition: all 0.25s; }
.btn:hover { border-color: rgba(240,236,230,0.4); color: #fff; }
.btn-rouge { background: var(--rouge); border-color: var(--rouge); color: #f5ede8; }
.btn-rouge:hover { background: var(--rouge-hi); border-color: var(--rouge-hi); color: #fff; }
.glass { background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 18px; }

/* hero */
.hero-eyebrow { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(240,236,230,0.6); margin-bottom: 3vh; }
.hero-eyebrow em { font-style: normal; color: var(--rouge-hi); }
.hero-title { font-family: var(--serif); font-weight: 200; font-size: clamp(56px, 10vw, 170px); letter-spacing: -0.045em; line-height: 0.9; margin-bottom: 4vh; }
.hero-title .kline { display: block; overflow: hidden; }
.hero-title .kline > span { display: block; transform: translateY(110%); animation: krise 1.1s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-title .kline:nth-child(2) > span { animation-delay: 0.14s; }
.hero-title .kline:nth-child(3) > span { animation-delay: 0.28s; }
@keyframes krise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-title .kline > span { transform: none; animation: none; } }
.hero-title em { font-style: italic; color: var(--rouge-hi); }
.hero-title .hollow { color: transparent; -webkit-text-stroke: 1.5px rgba(240,236,230,0.85); }
.hero-lower { display: flex; gap: 48px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 6vh; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.hstat { padding: 22px 20px 26px 4px; border-right: 1px solid var(--border); }
.hstat:last-child { border-right: none; }
.hstat .n { font-family: var(--serif); font-weight: 200; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.02em; margin-bottom: 6px; }
.hstat .l { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ticker */
#ticker { position: relative; z-index: 3; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(5,5,5,0.6); padding: 13px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker-run 46s linear infinite; }
#ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex-shrink: 0; }
.ticker-set span { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(240,236,230,0.55); white-space: nowrap; padding: 0 28px; }
.ticker-set span::after { content: '◆'; color: var(--rouge-hi); margin-left: 56px; font-size: 7px; vertical-align: 2px; }
@keyframes ticker-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* timeline rows */
.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.tl-row:first-child { border-top: 1px solid var(--border); }
.tl-year { font-family: var(--serif); font-weight: 200; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.02em; color: var(--rouge-hi); line-height: 1; }
.tl-head { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 8px; }
.tl-body { font-size: 11px; line-height: 1.8; color: rgba(240,236,230,0.6); }
.tl-status { display: inline-block; font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase; padding: 3px 9px; margin-left: 10px; vertical-align: 2px; border: 1px solid var(--border); color: var(--muted); }
.tl-status.ok { border-color: var(--border-r); color: var(--rouge-hi); }

/* two-col copy grid */
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }
.copy-grid p { font-size: 12px; line-height: 1.95; color: rgba(240,236,230,0.72); margin-bottom: 14px; max-width: 560px; }
.copy-grid strong { color: var(--text); font-weight: 500; }

/* quote */
.big-quote { font-family: var(--serif); font-weight: 200; font-style: italic; font-size: clamp(24px, 3vw, 46px); letter-spacing: -0.02em; line-height: 1.3; max-width: 900px; margin: 40px 0 12px; }
.quote-attr { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }

/* footer */
footer { position: relative; z-index: 3; border-top: 1px solid var(--border); background: rgba(5,5,5,0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 44px 48px 28px; }
.ft-bottom { max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft-copy, .ft-class { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ft-home { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240,236,230,0.6); }
.ft-home:hover { color: var(--text); }

@media (max-width: 1000px) {
  .section { padding: calc(var(--nav-h) + 44px) 28px 56px; }
  .copy-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  #nav { padding: 0 18px; }
  .nav-links { display: none; }
}
