:root {
  --yellow: #f5b400;
  --yellow-soft: #ffd24a;
  --yellow-dim: #b98600;
  --charcoal: #121317;
  --charcoal-2: #1b1d23;
  --slate: #23262f;
  --surface: #ffffff;
  --bg: #f6f6f7;
  --ink: #1b1d23;
  --muted: #5c6068;
  --line: #e4e5e8;
  --emerald: #1f8a4c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(18, 19, 23, .08);
  --shadow-lg: 0 24px 60px rgba(18, 19, 23, .16);
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);

  /* Scroll-linked theme: JS interpolates these between dark and light */
  --bg-cur: #121317;
  --ink-cur: #ffffff;
  --ink-muted-cur: #c9ccd2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-cur);
  background: var(--bg-cur);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .12s linear;
}

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

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 .75rem;
}
.micro {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--yellow-dim);
  margin: 0 0 .4rem;
}
.muted { color: var(--ink-muted-cur); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { color: var(--ink-cur); margin-bottom: 0; }
.section-sub { color: var(--ink-muted-cur); margin: 0; font-size: 1.02rem; }

/* ---------- Status chip ---------- */
.status-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  padding: .5rem 1rem; border-radius: 999px; margin: 0 0 1.4rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); flex: none;
  animation: pulse 2.2s ease-out infinite;
}
.status-dot.green { background: var(--emerald); animation-name: pulse-green; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,180,0,.55); }
  100% { box-shadow: 0 0 0 9px rgba(245,180,0,0); }
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(31,138,76,.55); }
  100% { box-shadow: 0 0 0 9px rgba(31,138,76,0); }
}
.status-line { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-muted-cur); margin: 1.25rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--yellow); color: var(--charcoal);
  font-weight: 700; font-family: var(--display);
  border: 1px solid var(--yellow); cursor: pointer;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--yellow-soft); box-shadow: 0 12px 26px rgba(245,180,0,.35); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(245,180,0,.1); border-color: var(--yellow); color: var(--yellow); box-shadow: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18,19,23,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(18,19,23,.94); box-shadow: 0 8px 30px rgba(0,0,0,.32); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; transition: padding .25s ease; }
.site-header.compact .header-inner { padding: .45rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; transition: width .25s ease, height .25s ease; }
.site-header.compact .brand-logo { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: -.02em; }
.primary-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; transition: color .2s ease; }
.primary-nav a:hover { color: var(--yellow); }
.primary-nav a.active { color: var(--yellow); }
.primary-nav a.btn { color: var(--charcoal); }
.primary-nav a.btn:hover { color: var(--charcoal); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-glow {
  position: absolute; width: 620px; height: 620px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(245,180,0,.32), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { color: #fff; }
.hero h1 .grad,
.hero .lead .grad {
  color: transparent;
  background: linear-gradient(100deg, var(--yellow) 10%, var(--yellow-soft) 55%, #fff 110%);
  -webkit-background-clip: text; background-clip: text;
}
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.78); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 2.6rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.stat-row dt { font-family: var(--display); font-size: 1.55rem; font-weight: 800; color: var(--yellow); }
.stat-row dd { margin: .15rem 0 0; font-size: .85rem; color: rgba(255,255,255,.7); }

/* ---------- Sections (transparent: body backdrop shows through) ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; background: transparent; }
.section-alt { background: rgba(255,255,255,.5); }

/* ---------- Cards / tiles ---------- */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card, .tile, .service-card, .partner-grid li, .info-cards li, .contact-form {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card, .tile { padding: 1.8rem; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.card h3, .tile h3 { color: var(--ink); }
.card p, .tile p { color: var(--muted); font-size: .95rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--charcoal); color: var(--yellow); font-size: 1.3rem; margin-bottom: 1rem;
}
.card-icon.sm { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 0; border-radius: 10px; }
.card-foot { margin: 1rem 0 0; font-size: .8rem; font-weight: 700; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow-dim); }
.value-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.value-list li { position: relative; font-size: .8rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; color: var(--ink); }

.chip {
  display: inline-block; font-family: var(--display); font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow-dim); background: rgba(245,180,0,.12);
  border: 1px solid rgba(245,180,0,.35);
  padding: .3rem .75rem; border-radius: 999px; white-space: nowrap;
}

/* Bento products */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.bento .span-7 { grid-column: span 7; }
.bento .span-5 { grid-column: span 5; }
.bento .span-4 { grid-column: span 4; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .4rem; }
.tile-top .card-icon { margin-bottom: 0; width: 44px; height: 44px; }
.tile h3 { position: relative; padding-left: 1.1rem; margin-top: .9rem; }
.tile h3::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 4px; background: var(--yellow); }

/* Services */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card { background: var(--charcoal); color: #fff; border-color: var(--charcoal-2); padding: 1.8rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.service-top .card-icon { margin-bottom: 0; }
.tier { font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .16em; color: var(--yellow); }
.service-card h3 { color: var(--yellow); margin-top: .9rem; }
.service-card p { color: rgba(255,255,255,.72); font-size: .95rem; }
.check-list { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-left: 1.7rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: .05em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(245,180,0,.15); color: var(--yellow); font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.card-link { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--yellow); }
.card-link:hover { color: var(--yellow-soft); }

/* Partners */
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.partner-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  min-height: 150px; padding: 1.2rem .8rem; text-align: center;
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner-grid li:hover { border-color: var(--yellow); transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--charcoal); color: var(--yellow); font-size: 1.25rem; margin-bottom: .5rem; }
.partner-grid strong { font-family: var(--display); color: var(--ink); }
.partner-grid em { font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.partner-grid li.highlight { border-color: var(--yellow); }
.partner-grid li.highlight strong { color: var(--yellow-dim); }
.partner-logo { width: 40px; height: 40px; object-fit: contain; margin-bottom: .4rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
.contact-grid h2 { color: var(--ink-cur); }
.info-cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.info-cards li { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.info-cards .micro { display: block; }
.info-cards a { font-weight: 600; color: var(--yellow-dim); }
.info-cards a:hover { color: var(--yellow); }

.contact-form { padding: 1.8rem; box-shadow: var(--shadow); display: grid; gap: 1rem; position: relative; }
.contact-form h3 { margin: 0; color: var(--ink); }
.form-sub { margin: 0; font-size: .88rem; color: var(--muted); }
.contact-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - .95rem) 55%;
  background-size: .35rem .35rem; background-repeat: no-repeat;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,180,0,.25);
}
.contact-form textarea { resize: vertical; }
.form-note { margin: 0; font-size: .85rem; color: var(--emerald); min-height: 1.2em; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 2rem; align-items: start; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.65); margin: 1rem 0 0; max-width: 34ch; }
.footer-brand .status-line { color: rgba(255,255,255,.6); font-size: .75rem; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col .micro { color: var(--yellow); }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-col span { font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.copyright { margin: 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* Reveal animation (staggered via --rd set in JS) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--rd, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .bento .span-7, .bento .span-5, .bento .span-4 { grid-column: span 6; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mission-grid, .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { gap: 2rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .section-head.split { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 460px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { display: block; padding: 1rem 0; }
  .primary-nav li:last-child { border-bottom: 0; padding-top: .75rem; }
  .primary-nav a.btn { display: inline-flex; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mission-grid, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .bento .span-7, .bento .span-5, .bento .span-4 { grid-column: span 12; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Ambient scroll-lag blobs (subtle; driven by rAF lerp in JS) ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-amber {
  width: 44rem; height: 44rem; right: -14rem; top: -12rem;
  background: radial-gradient(circle, rgba(245,180,0,.16), rgba(245,180,0,0) 62%);
}
.blob-slate {
  width: 52rem; height: 52rem; left: -18rem; top: 34%;
  background: radial-gradient(circle, rgba(120,128,140,.14), rgba(120,128,140,0) 62%);
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Word-cascade reveals ---------- */
[data-word-stagger] .w-mask {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .08em; margin-bottom: -.08em;
}
[data-word-stagger] .w {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .5s ease;
  transition-delay: var(--wd, 0ms);
  will-change: transform;
}
[data-word-stagger].words-in .w { transform: translateY(0); opacity: 1; will-change: auto; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
  .btn:hover, .card:hover, .tile:hover, .service-card:hover { transform: none; }
  .ambient { display: none; }
  [data-word-stagger] .w { transform: none; opacity: 1; transition: none; }
  [data-parallax] { transform: none !important; }
}
