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

:root {
  --night:    #0d1117;
  --night-2:  #141b24;
  --night-3:  #1c2533;
  --blue:     #2563eb;
  --blue-mid: #1d4ed8;
  --blue-pale:#dbeafe;
  --blue-dim: rgba(37,99,235,0.15);
  --paper:    #ffffff;
  --off:      #f8f9fb;
  --ink:      #111827;
  --muted:    #4b5563;
  --faint:    #9ca3af;
  --rule:     #e5e7eb;
  --rule-dark:rgba(255,255,255,0.1);
  --serif:    'Libre Baskerville', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dark);
}

.nav-logo {
    /*
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  */
}

.nav-logo img {
  padding: 20px 0;
  width: 150px; 
}

.nav-logo-mark {
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}

.nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-mid) !important; }

/* ── PAGE SYSTEM ── */
.page { display: none; padding-top: 64px; }
.page.active { display: block; }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 48px; }

/* ── TYPE ── */
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2.on-dark { color: #fff; }

p { color: var(--muted); margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; color: var(--ink); }
em.on-dark { color: #fff; }

.lead {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--muted);
}

.lead.on-dark { color: rgba(255,255,255,0.65); }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.eyebrow.blue { color: var(--blue); }
.eyebrow.on-dark { color: rgba(255,255,255,0.4); }

.rule-line {
  width: 40px; height: 2px;
  background: var(--blue);
  margin: 28px 0;
}

.fine { font-size: 13px; color: var(--faint); }
.fine.on-dark { color: rgba(255,255,255,0.35); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: 6px;
  border: none; transition: all 0.2s;
}

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,99,235,0.4); }

.btn-ghost-white {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn-outline-dark:hover { border-color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); text-decoration: none;
  cursor: pointer; transition: gap 0.2s;
}
.arrow-link:hover { gap: 10px; }
.arrow-link::after { content: '→'; }

/* ════════════ HOMEPAGE ════════════ */

/* HERO — dark */
.hero {
  background: var(--night);
  padding: 100px 0 96px;
  position: relative;
  overflow: hidden;
}

/* subtle grid texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* blue glow */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}

.hero-text h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero-text h1 em {
  color: var(--blue);
  font-style: italic;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 36px;
}

/* quote card */
.hero-card {
  background: var(--night-2);
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}

.hero-card::before {
  content: '"';
  font-family: var(--serif);
  font-size: 72px;
  color: var(--blue);
  opacity: 0.3;
  position: absolute;
  top: 12px; left: 28px;
  line-height: 1;
}

.hero-card blockquote {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-top: 20px;
}

.hero-card cite {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* PROBLEM BAND — dark, stays dark for impact */
.problem-band {
  background: var(--night-2);
  padding: 96px 0;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.problem-band h2 { color: #fff; }
.problem-band p { color: rgba(255,255,255,0.6); font-size: 18px; line-height: 1.75; }
.problem-band em { color: #fff; }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.4;
  color: #fff;
  font-style: italic;
  padding: 32px 0 32px 36px;
  border-left: 3px solid var(--blue);
  margin: 48px 0;
}

/* SHIFT SECTION — light */
.shift-section { padding: 96px 0; background: var(--paper); }

.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 56px;
}

.col-item {}

.col-num {
  font-family: var(--serif);
  font-size: 44px; font-weight: 700;
  color: var(--blue); opacity: 0.2;
  line-height: 1; margin-bottom: 16px;
}

.col-item h4 {
  font-family: var(--sans);
  font-size: 17px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px; line-height: 1.35;
}

.col-item p { font-size: 15px; }

/* WHAT WE DO — off-white */
.what-section { padding: 96px 0; background: var(--off); border-top: 1px solid var(--rule); }

.two-col-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.what-aside {
  background: var(--night);
  border-radius: 12px;
  padding: 40px;
  position: relative; overflow: hidden;
}

.what-aside::before {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.what-aside p {
  font-family: var(--serif);
  font-size: 17px; line-height: 1.65;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  position: relative; z-index: 1;
}

.what-aside .aside-foot {
  margin-top: 28px; padding-top: 28px;
  border-top: 1px solid var(--rule-dark);
  position: relative; z-index: 1;
  font-style: normal;
}

/* PROOF — light */
.proof-section { padding: 0; background: var(--paper); border-top: 1px solid var(--rule); }

.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}

.proof-item {
  padding: 56px 40px;
  border-right: 1px solid var(--rule);
}
.proof-item:last-child { border-right: none; }

.proof-item blockquote {
  font-family: var(--serif);
  font-size: 16px; line-height: 1.65;
  color: var(--ink); font-style: italic;
  margin-bottom: 20px;
}

.proof-item cite {
  font-size: 12px; font-style: normal;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint);
}

/* CTA BAND — dark blue */
.cta-band {
  background: var(--night);
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--rule-dark);
  position: relative; overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.55); font-size: 18px; margin-bottom: 40px; }
.cta-band .fine { margin-top: 20px; color: rgba(255,255,255,0.3); }

/* ════════════ HOW IT WORKS PAGE ════════════ */

.page-hero {
  background: var(--night);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero .lead { position: relative; z-index: 1; }
.page-hero .rule-line { position: relative; z-index: 1; }
.page-hero .eyebrow { position: relative; z-index: 1; }

.content-section { padding: 80px 0; background: var(--paper); border-top: 1px solid var(--rule); }
.content-section-alt { padding: 80px 0; background: var(--off); border-top: 1px solid var(--rule); }

/* STEPS */
.steps { display: flex; flex-direction: column; }

.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 36px;
  padding: 48px 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--serif);
  font-size: 42px; font-weight: 700;
  color: var(--rule); line-height: 1;
  padding-top: 4px;
}

.step-body h4 {
  font-family: var(--sans);
  font-size: 19px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px;
}

/* FOR/NOT FOR */
.for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.for-box {
  border: 1px solid var(--rule);
  border-radius: 8px; padding: 36px;
}

.for-box.yes { border-top: 3px solid var(--blue); }
.for-box.no  { border-top: 3px solid var(--rule); }

.for-box h4 {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 24px;
}

.for-list { list-style: none; }
.for-list li {
  font-size: 15px; color: var(--muted);
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 12px; line-height: 1.5; align-items: flex-start;
}
.for-list li:last-child { border-bottom: none; }
.for-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.for-list.no li::before { content: '×'; color: var(--faint); }

/* ════════════ WORK PAGE ════════════ */

.project {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: start;
}
.project:first-child { padding-top: 0; }
.project:last-child { border-bottom: none; }

.project-meta {}

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  padding: 5px 10px; border-radius: 4px; margin-bottom: 14px;
}

.project-meta h3 {
  font-family: var(--serif);
  font-size: 21px; font-weight: 400;
  color: var(--ink); line-height: 1.35;
  letter-spacing: -0.01em;
}

.project-detail { display: flex; flex-direction: column; gap: 24px; }

.proj-block h5 {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 8px;
}

.proj-block p { font-size: 15px; line-height: 1.65; }

.result {
  background: var(--off);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
}

.result p {
  font-family: var(--serif);
  font-size: 16px; font-style: italic;
  color: var(--ink); margin: 0;
}

/* ════════════ ABOUT PAGE ════════════ */

.about-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: start;
}

.beliefs { display: flex; flex-direction: column; gap: 36px; margin-top: 48px; }

.belief {
  padding-left: 24px;
  border-left: 2px solid var(--rule);
  transition: border-color 0.25s;
}
.belief:hover { border-left-color: var(--blue); }

.belief h4 {
  font-size: 16px; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}

.belief p { font-size: 15px; margin: 0; }

.about-sticky { position: sticky; top: 88px; }

.card {
  background: var(--off);
  border: 1px solid var(--rule);
  border-radius: 8px; padding: 32px;
  margin-bottom: 20px;
}

.card-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px;
}

.cred-list { list-style: none; }
.cred-list li {
  font-size: 14px; color: var(--muted);
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 10px; line-height: 1.45; align-items: flex-start;
}
.cred-list li:last-child { border-bottom: none; }
.cred-list li::before { content: '—'; color: var(--blue); flex-shrink: 0; }

/* ════════════ FOOTER ════════════ */

.site-footer {
  background: var(--night);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule-dark);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 16px; color: rgba(255,255,255,0.7);
  cursor: pointer;
}

.footer-logo img {
    width: 100px;
}

.footer-nav { display: flex; gap: 32px; list-style: none; }
.footer-nav a {
  font-size: 13px; color: rgba(255,255,255,0.4);
  text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.8); }

.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }

/* ════════════ ANIMATIONS ════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page.active .hero-text    { animation: fadeUp 0.5s ease both; }
.page.active .hero-card    { animation: fadeUp 0.5s 0.1s ease both; }
.page.active .page-hero .container-narrow { animation: fadeUp 0.5s ease both; }

/* ════════════ HAMBURGER BUTTON ════════════ */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to ✕ when open */
.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;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════ RESPONSIVE ════════════ */

@media (max-width: 800px) {
  nav.site-nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    align-items: center;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 16px;
    border-top: 1px solid var(--rule-dark);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule-dark);
  }

  .nav-links li:last-child a {
    margin-top: 12px;
    border-bottom: none;
    border-radius: 6px;
    text-align: center;
    padding: 13px;
  }

  .container, .container-narrow { padding: 0 20px; }

  .hero-inner, .two-col-grid, .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .three-col, .for-grid, .proof-grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 24px; }

  .proof-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .about-sticky { position: static; }
  .site-footer { flex-direction: column; gap: 20px; text-align: center; }
  .step { grid-template-columns: 56px 1fr; gap: 20px; }
}

.nav-links a.active { color: #fff; }
