/* ═══════════════════════════════════════════════════
   STRATEGENICS — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

:root {
  --ink: #0E0E0C;
  --ink-2: #1a1a18;
  --paper: #F4F1EA;
  --paper-2: #EAE6DC;
  --paper-3: #DFD9CB;
  --muted: #6b6a66;
  --rule: #201f1c;
  --accent: #C0522B;
  --accent-2: #E8A87C;
  --accent-soft: #F2D9C9;
  --dot: #0E0E0C;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

/* ─────────── NAV ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(244, 241, 234, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  padding: 14px 0;
  border-bottom-color: rgba(14, 14, 12, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 38px; height: 38px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a.current { color: var(--accent); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.current::after { background: var(--accent); width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-light:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0;
  transition: transform 0.3s;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 30px 40px;
    gap: 22px;
    border-bottom: 1px solid rgba(14,14,12,0.08);
  }
}

/* ─────────── PAGE HEADER ─────────── */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(14,14,12,0.1);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .page-header-inner { grid-template-columns: 1fr; gap: 30px; }
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.page-header h1 em { font-style: italic; color: var(--accent); font-weight: 300; }

.page-header-desc {
  font-size: 17px;
  color: #3a3a36;
  line-height: 1.6;
  max-width: 460px;
  margin-left: auto;
}
@media (max-width: 860px) { .page-header-desc { margin-left: 0; } }

.page-header-dots {
  position: absolute;
  top: 0; right: -100px;
  width: 400px; height: 400px;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black, transparent 65%);
  pointer-events: none;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--muted);
}

/* ─────────── COMMON ─────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--muted);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 80px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 70px;
  align-items: end;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 50px; }
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label .num { color: var(--accent); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  max-width: 900px;
}
.section-title em { font-style: italic; color: var(--accent); font-weight: 300; }

/* ─────────── DOT PATTERNS ─────────── */
.dot-pattern {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.13;
}

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,241,234,0.4) 1px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: 0.08;
  mask-image: radial-gradient(ellipse at 100% 0%, black, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black, transparent 65%);
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .brand-name { color: var(--paper); }
.footer-brand p {
  margin-top: 20px;
  color: rgba(244,241,234,0.6);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(244,241,234,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid rgba(244,241,234,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.5);
  position: relative;
  z-index: 2;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-2); }

/* ─────────── REVEAL ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─────────── CTA BAND ─────────── */
.cta-band {
  padding: 100px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,241,234,0.35) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.08;
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}
.cta-band h2 em { font-style: italic; color: var(--accent-2); font-weight: 300; }
.cta-band p {
  color: rgba(244,241,234,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
  position: relative; z-index: 2;
}
.cta-band .btn { position: relative; z-index: 2; }
