/* ============================================================
   ARC Site Kit — base framework, monochrome "Titanium Noir"
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --fg: #f5f1e8;
  --muted: #8a8a8a;
  --surface: #141414;
  --border: rgba(245, 241, 232, 0.14);
  --radius: 14px;
  --accent: #f5f1e8;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.85rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.muted { color: var(--muted); }

/* ---- Layout ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 2.5rem); padding-right: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.grid { display: grid; gap: 2rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.cluster { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.divider { height: 1px; background: var(--border); }

/* ---- Nav ---- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 10, 0.72); transition: background 0.35s ease, backdrop-filter 0.35s ease; }
.site-nav.is-scrolled { background: rgba(10, 10, 10, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav--bordered { border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.1em; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.88rem; }
.nav-links a { color: var(--muted); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn { color: inherit; }
.nav-links a.btn-primary { color: var(--bg); }
.nav-links a.btn-primary:hover { color: var(--fg); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--fg); border-radius: 8px; padding: 0.35rem 0.7rem; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem); gap: 1.4rem; font-size: 1rem; }
  .site-nav.nav-open .nav-links { display: flex; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 9rem) 0; }
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero--aurora::before,
.hero--aurora::after {
  content: '';
  position: absolute;
  width: 55vw; height: 55vw;
  min-width: 420px; min-height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}
.hero--aurora::before {
  top: -25%; right: -12%;
  background: radial-gradient(circle, rgba(245, 241, 232, 0.09), transparent 62%);
  animation: aurora-a 16s ease-in-out infinite alternate;
}
.hero--aurora::after {
  bottom: -35%; left: -18%;
  background: radial-gradient(circle, rgba(138, 138, 138, 0.10), transparent 60%);
  animation: aurora-b 20s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-9%, 8%) scale(1.18); } }
@keyframes aurora-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(10%, -7%) scale(0.95); } }
.hero .wrap { position: relative; z-index: 1; }

.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--fg);
  font-size: 0.9rem; letter-spacing: 0.02em; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  will-change: transform;
}
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* ---- Features / cards / media ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.feature .ico { display: inline-flex; padding: 0.9rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1.2rem; color: var(--fg); }
.media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 5; background: var(--surface); }
.media img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }

/* ---- Stats ---- */
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; }
.stat .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ---- Forms ---- */
.field label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.5rem; }
.input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.9rem 1.1rem; color: var(--fg); font: inherit;
  transition: border-color 0.25s ease;
}
.input::placeholder { color: rgba(138, 138, 138, 0.6); }
.input:focus { outline: none; border-color: var(--fg); }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.4rem 0; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; animation: kit-marquee 30s linear infinite; will-change: transform; }
@keyframes kit-marquee { to { transform: translateX(-50%); } }

/* ---- Typographic accents ---- */
.text-stroke { -webkit-text-stroke: 1px var(--fg); color: transparent; }

/* ---- Index list ---- */
.index-list { border-top: 1px solid var(--border); }
.index-row {
  display: grid; grid-template-columns: 3rem 9rem 1fr; gap: 1.25rem; align-items: baseline;
  padding: 1.3rem 0.25rem; border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
}
.index-row .no { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--muted); transition: color 0.3s ease; }
.index-row h3 { font-size: 1.25rem; margin: 0; }
.index-row p { margin: 0; color: var(--muted); font-size: 0.95rem; transition: color 0.3s ease; }
.index-row:hover { background: var(--fg); color: var(--bg); padding-left: 1rem; padding-right: 1rem; }
.index-row:hover .no,
.index-row:hover p { color: rgba(10, 10, 10, 0.65); }
@media (max-width: 640px) {
  .index-row { grid-template-columns: 2.5rem 1fr; }
  .index-row p { grid-column: 2; }
}

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 0.6rem; font-size: 0.92rem; transition: color 0.25s ease; }
.footer-grid a:hover { color: var(--fg); }
.footer .brand { margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; color: var(--muted); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Motion: scroll reveals ---- */
[data-anim] { opacity: 0; transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
[data-anim="up"] { transform: translateY(28px); }
[data-anim="left"] { transform: translateX(-32px); }
[data-anim="right"] { transform: translateX(32px); }
[data-anim="scale"] { transform: scale(0.95); }
[data-anim].in-view { opacity: 1; transform: none; }

/* ---- Motion: split text ---- */
.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-i { display: inline-block; transform: translateY(115%); transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
[data-split].split-go .split-i { transform: none; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero--aurora::before, .hero--aurora::after { animation: none; }
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .split-i { transform: none !important; transition: none !important; }
}
.reduce [data-anim] { opacity: 1 !important; transform: none !important; }
.reduce .split-i { transform: none !important; }
.reduce .marquee-track { animation: none; }
