/* ---------- Tokens ---------- */
:root {
  --navy: #101827;
  --navy-2: #0a111e;
  --navy-3: #1a2236;
  --mist: #F7F4EE;
  --mist-2: #efeae0;
  --purple: #5B4BFF;
  --coral: #FF7A59;
  --gold: #FFC857;
  --ink: #0a0f1a;

  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--navy); color: var(--mist); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Reusable ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.h-display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(56px, 9vw, 132px);
}
.h-display .serif-italic,
.h-display em.serif-italic { font-weight: 400; letter-spacing: -0.02em; font-style: italic; }

.h-section {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-size: clamp(40px, 5.5vw, 76px);
}
.h-section em.serif-italic { font-style: italic; }

.body-lg {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 56ch;
  opacity: 0.85;
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 10vh, 140px) 0; position: relative; }
.section-light { background: var(--mist); color: var(--ink); }
.section-dark { background: var(--navy); color: var(--mist); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--navy) 75%, transparent);
  border-bottom: 1px solid rgba(247, 244, 238, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; font-size: 17px; }
.nav-brand .wordmark { font-size: 18px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0.85;
  transition: all 0.2s ease;
}
.nav-links a:hover { background: rgba(247,244,238,0.06); opacity: 1; }
.nav-links a.nav-mail {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-left: 8px;
}
.nav-links a.nav-mail:hover { background: rgba(247,244,238,0.08); color: var(--gold); opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 0; position: relative; overflow: hidden; }
.hero-inner { padding: clamp(40px, 8vh, 80px) 0 0; }

.hero-title { margin-bottom: 40px; max-width: 16ch; }
.hero-sub { margin-bottom: 48px; }

.hero-contact {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.hero-contact a {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.hero-contact a:hover { opacity: 0.7; }

.hero-horizon {
  position: relative;
  height: clamp(220px, 32vh, 360px);
  margin-top: clamp(80px, 10vh, 140px);
}
.horizon-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(247,244,238,0.4) 20%, rgba(247,244,238,0.4) 80%, transparent 100%);
}
.horizon-sun {
  position: absolute;
  left: 50%;
  bottom: 40%;
  transform: translate(-50%, 50%);
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%,
    var(--gold) 0%,
    var(--coral) 30%,
    rgba(255,122,89,0.4) 50%,
    rgba(91,75,255,0.15) 70%,
    transparent 85%);
  filter: blur(2px);
  opacity: 0.95;
  animation: rise 6s ease-out;
}
@keyframes rise {
  0% { transform: translate(-50%, 80%); opacity: 0; }
  100% { transform: translate(-50%, 50%); opacity: 0.95; }
}
.horizon-glow {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(0deg,
    rgba(91, 75, 255, 0.18) 0%,
    rgba(255, 122, 89, 0.10) 30%,
    transparent 80%);
  pointer-events: none;
}

/* ---------- Positioning ---------- */
.positioning {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.positioning-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.positioning-body p { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -0.02em; max-width: 22ch; }
.positioning-body p + p { margin-top: 24px; }

@media (max-width: 720px) {
  .positioning { grid-template-columns: 1fr; }
}

/* ---------- Section header ---------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(40px, 6vh, 64px);
  flex-wrap: wrap;
}
.section-header .h-section { max-width: 14ch; }

/* ---------- Pillars (What we do) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(10,15,26,0.12);
  border-top: 1px solid rgba(10,15,26,0.12);
  border-bottom: 1px solid rgba(10,15,26,0.12);
}
.pillar {
  background: var(--mist);
  padding: 48px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
}
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.5;
}
.pillar-name {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.pillar-desc {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.7;
  max-width: 36ch;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ---------- Steps (How it works) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  padding: 32px 0;
  border-top: 1px solid rgba(247,244,238,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.6;
}
.step-name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.step-desc {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.75;
  max-width: 38ch;
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Work 3-up ---------- */
.work-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: rgba(247,244,238,0.04);
  border: 1px solid rgba(247,244,238,0.1);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}
.work-card:hover { background: rgba(247,244,238,0.06); border-color: rgba(247,244,238,0.2); transform: translateY(-2px); }
.work-preview {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(247,244,238,0.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(247,244,238,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.work-card.featured .work-preview {
  background:
    radial-gradient(ellipse at 30% 80%, rgba(255,122,89,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(91,75,255,0.5) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-3), var(--navy-2));
  opacity: 1;
}
.work-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.work-name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }
.work-blurb { font-size: 14px; line-height: 1.5; opacity: 0.7; max-width: 40ch; margin-top: 8px; }

@media (max-width: 900px) {
  .work-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Testimonial ---------- */
.testimonial {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.testimonial-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: end;
}
.testimonial-attr {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6;
}
.testimonial-attr strong { font-weight: 500; font-family: var(--sans); font-size: 15px; letter-spacing: -0.005em; text-transform: none; opacity: 1; color: var(--gold); display: block; }
@media (max-width: 720px) { .testimonial-row { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(247,244,238,0.08);
}
.cta-inner { text-align: center; position: relative; z-index: 2; }
.cta-eyebrow { margin-bottom: 24px; justify-content: center; }
.cta-eyebrow::before { display: none; }
.cta h2 { margin-bottom: 36px; }
.cta-glow {
  position: absolute;
  left: 50%; bottom: -200px;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at 50% 100%, var(--coral) 0%, var(--purple) 30%, transparent 60%);
  opacity: 0.35;
  filter: blur(40px);
  pointer-events: none;
}
.cta-email {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  display: inline-block;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.cta-email:hover { opacity: 0.75; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(247,244,238,0.08);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { opacity: 0.85; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: -0.01em; max-width: 24ch; opacity: 0.9; margin-top: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(247,244,238,0.08);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55;
  flex-wrap: wrap; gap: 16px;
}
.footer-socials { display: inline-flex; gap: 14px; opacity: 1; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(247,244,238,0.18); transition: all 0.2s ease; }
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-mail) { display: none; }
}

/* ---------- Pulse dot ---------- */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.6);
  animation: pulse 2.4s ease-out infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 200, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 200, 87, 0); }
}
