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

:root {
  --bg: #fafaf8;
  --paper: #f5f4f0;
  --paper-deep: #ede9dd;
  --accent: #1a3a6b;
  --accent-light: #1d4077;
  --accent-dk: #102545;
  --green: #1a6b3c;
  --green-dot: #2dd478;
  --warm: #b8860b;
  --text-0: #0a0a09;
  --text-1: #333330;
  --text-2: #6b6b65;
  --text-3: #9a9a92;
  --text-4: #c5c5bc;
  --rule: #d9d4c3;
  --pulse: #3b82f6;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

html, body {
  background: var(--bg);
  color: var(--text-0);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100%;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }

/* Layers */
#three-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.bg-veil {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(250,250,248,0.35), transparent 70%),
    linear-gradient(to bottom, rgba(250,250,248,0) 0%, rgba(250,250,248,0.05) 60%, rgba(250,250,248,0.6) 95%, rgba(250,250,248,0.9) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' seed='11'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.2 0'/></filter><rect width='220' height='220' filter='url(%23g)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: rgba(250,250,248,0.65);
  border-bottom: 1px solid rgba(30,58,95,0.08);
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(10,10,10,0.15), inset 0 0 0 1px rgba(255,255,255,0.15);
  position: relative;
}
.nav-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background: radial-gradient(ellipse at top left, rgba(59,130,246,0.25), transparent 60%);
}
.nav-mark svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.nav-brand { font-size: 16px; font-weight: 700; color: var(--text-0); letter-spacing: 0.2px; }
.nav-meta {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 8px var(--pulse);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  text-decoration: none; position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: ""; position: absolute;
  bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25,0.4,0.25,1);
}
.nav-link:hover { color: var(--text-0); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 9px 20px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25,0.4,0.25,1);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 6px 18px rgba(10,10,10,0.1);
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* HERO */
.hero {
  position: relative; z-index: 5;
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-left { padding-right: 20px; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(30,58,95,0.12);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: fade-up 0.8s cubic-bezier(0.25,0.4,0.25,1) both;
}
.hero-kicker .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
  animation: pulse 2s ease-in-out infinite;
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--accent);
  margin-bottom: 12px;
  animation: fade-up 1s cubic-bezier(0.25,0.4,0.25,1) 0.15s both;
}
.hero-h1 .line-1 { display: block; }
.hero-h1 .line-2 {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--text-1);
  max-width: 540px;
  margin: 32px 0 40px;
  animation: fade-up 1s cubic-bezier(0.25,0.4,0.25,1) 0.35s both;
}
.hero-sub em { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.05em; }

.hero-actions {
  display: inline-flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 1s cubic-bezier(0.25,0.4,0.25,1) 0.55s both;
}

@keyframes fade-up { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25,0.4,0.25,1);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 8px 22px rgba(10,10,10,0.15);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(59,130,246,0.3), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 16px 36px rgba(10,10,10,0.25); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg { width: 14px; height: 14px; position: relative; z-index: 1; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  background: rgba(255,255,255,0.6);
  color: var(--text-1);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(30,58,95,0.12);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.btn-ghost:hover { background: #fff; border-color: rgba(30,58,95,0.24); color: var(--accent); transform: translateY(-2px); }

/* Hero right */
.hero-right { position: relative; min-height: 520px; animation: fade-up 1.2s cubic-bezier(0.25,0.4,0.25,1) 0.7s both; }
.hero-stage {
  position: absolute; inset: 0;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, #1a3a6b08, #1a3a6b14);
  box-shadow: 0 40px 80px -20px rgba(10,10,10,0.18), inset 0 0 0 1px rgba(30,58,95,0.08);
}
.hero-stage-empty {
  background:
    radial-gradient(circle at 30% 30%, #1a3a6b14 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, #b8860b14 0%, transparent 50%),
    linear-gradient(135deg, #f5f4f0 0%, #ede9dd 100%);
}
.hero-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.hero-media-static { background-size: cover; background-position: center; }

.callout {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(30,58,95,0.1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(10,10,10,0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-1);
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}
.callout .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 8px var(--pulse); }
.callout .label { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.callout .val { color: var(--accent); font-weight: 700; }
.callout.c1 { top: 8%;  right: -4%;  animation-delay: 0s; }
.callout.c2 { top: 28%; left: -6%;   animation-delay: -1.5s; }
.callout.c3 { top: 58%; right: 2%;   animation-delay: -3s; }
.callout.c4 { top: 78%; left: 4%;    animation-delay: -4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 40px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: fade-in 1s ease 1.3s both;
}
.scroll-cue .l { width: 40px; height: 1px; background: linear-gradient(to right, var(--text-3), transparent); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* MARQUEE */
.marquee {
  position: relative; z-index: 5;
  padding: 24px 0;
  background: rgba(250,250,248,0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(30,58,95,0.08);
  border-bottom: 1px solid rgba(30,58,95,0.08);
  overflow: hidden;
}
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.mq-track {
  display: flex; gap: 48px;
  animation: mq 42s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  color: rgba(30,58,95,0.28);
  padding-left: 48px;
}
.mq-track span { display: inline-flex; align-items: center; gap: 48px; }
.mq-track .d { width: 8px; height: 8px; border-radius: 50%; background: rgba(184,134,11,0.45); flex-shrink: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { position: relative; z-index: 5; padding: 140px 40px; }
.sec-inner { max-width: 1440px; margin: 0 auto; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(30,58,95,0.12);
}
.sec-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }

.sec-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--accent);
  max-width: 640px;
}
.sec-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

.sec-head-side {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 420px;
  justify-self: end;
}
.sec-head-side em { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* VERTICALS */
.verticals {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 16px;
  margin-top: 40px;
}
.vcard {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(30,58,95,0.08);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.25,0.4,0.25,1);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px -10px rgba(10,10,10,0.08);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 420px;
}
.vcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(30,58,95,0.06), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.vcard.green::before { background: radial-gradient(circle at 100% 0%, rgba(45,212,120,0.1), transparent 60%); }
.vcard.warm::before  { background: radial-gradient(circle at 100% 0%, rgba(184,134,11,0.08), transparent 60%); }
.vcard:hover { transform: translateY(-6px); border-color: rgba(30,58,95,0.2); box-shadow: 0 24px 48px -12px rgba(10,10,10,0.14); }
.vcard:hover::before { opacity: 1; }

.vc-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(10,10,10,0.15), inset 0 0 0 1px rgba(255,255,255,0.15);
  position: relative;
}
.vc-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,0.3), transparent 60%);
}
.vc-icon svg { width: 24px; height: 24px; color: #fff; position: relative; z-index: 1; }
.vcard.green .vc-icon { background: linear-gradient(135deg, var(--green), #0f3d22); }
.vcard.warm  .vc-icon { background: linear-gradient(135deg, var(--warm), #8a6408); }

.vc-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin-bottom: 8px;
}
.vcard.green .vc-title { color: var(--green); }
.vcard.warm  .vc-title { color: var(--warm); }
.vc-title em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.vc-desc { font-size: 14px; line-height: 1.6; color: var(--text-2); margin-bottom: 24px; }
.vc-desc em { font-family: var(--serif); font-style: italic; color: var(--accent); }

.vc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 24px; }
.vc-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(30,58,95,0.08);
  color: var(--accent);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.vcard.green .vc-tag { background: rgba(26,107,60,0.08); color: var(--green); }
.vcard.warm  .vc-tag { background: rgba(184,134,11,0.1);  color: var(--warm); }

.vc-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px dashed rgba(30,58,95,0.14);
}
.vc-stat-val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.025em;
}
.vc-stat-val em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.vcard.green .vc-stat-val { color: var(--green); }
.vcard.warm  .vc-stat-val { color: var(--warm); }
.vc-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

/* CLOSING */
.closing { text-align: left; padding-bottom: 160px; }
.closing-inner { max-width: 960px; }
.closing-body { font-size: clamp(17px, 1.5vw, 22px); color: var(--text-1); margin: 20px 0 36px; max-width: 620px; }
.closing-body em { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity 0.9s cubic-bezier(.25,.4,.25,1) var(--d, 0ms), transform 0.9s cubic-bezier(.25,.4,.25,1) var(--d, 0ms), filter 0.9s cubic-bezier(.25,.4,.25,1) var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: none; filter: none; }

/* FOOTER */
footer {
  position: relative; z-index: 5;
  padding: 44px 40px;
  border-top: 1px solid rgba(30,58,95,0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .hero-right { min-height: 360px; }
  .verticals { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .sec-head-side { justify-self: start; }
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .nav-link { display: none; }
  .nav-meta { display: none; }
  .hero { padding: 110px 20px 60px; }
  .section { padding: 90px 20px; }
  .scroll-cue { display: none; }
}
