/* ============================================================
   Northbound — growth marketing agency
   Dark, bold, one electric accent. Editorial rhythm.
   ============================================================ */

:root {
  --ink: #0b0c0e;
  --ink-2: #141619;
  --panel: #171a1f;
  --panel-2: #1d2128;
  --line: rgba(244, 243, 236, 0.10);
  --line-2: rgba(244, 243, 236, 0.18);
  --paper: #f4f3ec;
  --muted: #9a9ca3;
  --muted-2: #6f7178;
  --accent: #c8f135;
  --accent-dim: rgba(200, 241, 53, 0.16);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --r: 16px;

  --display: "Syne", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--ink); padding: 10px 16px;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--paper); }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a:not(.nav-cta) {
  font-size: 15px; color: var(--muted); font-weight: 500;
  position: relative; padding-block: 6px;
  transition: color .2s;
}
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px;
  width: 0; background: var(--accent); transition: width .25s ease;
}
.primary-nav a:not(.nav-cta):hover { color: var(--paper); }
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--accent); color: var(--ink) !important;
  font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-dim); }

.menu-toggle { display: none; }

/* ============================== HERO ============================== */
.hero { position: relative; padding: clamp(90px, 13vh, 150px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 520px; height: 520px; background: var(--accent); opacity: .12; top: -140px; right: -80px; }
.glow-b { width: 420px; height: 420px; background: #2a6cf6; opacity: .10; bottom: -160px; left: -120px; }
.grain {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; max-width: 980px; }

.availability {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--muted); letter-spacing: .02em;
  border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 30px; background: rgba(255,255,255,0.02);
}
.availability .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,241,53,.5); }
  70% { box-shadow: 0 0 0 10px rgba(200,241,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,241,53,0); }
}

h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 8vw, 96px); line-height: 0.98;
  letter-spacing: -0.03em; margin-bottom: 26px;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-lede {
  font-size: clamp(18px, 2.1vw, 22px); color: var(--muted);
  max-width: 620px; line-height: 1.55; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  padding: 15px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.04); }
.btn-lg { padding: 18px 30px; font-size: 17.5px; }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px);
  padding-top: 34px; border-top: 1px solid var(--line);
}
.hero-proof > div { display: flex; flex-direction: column; gap: 4px; }
.hero-proof b {
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px);
  color: var(--paper); letter-spacing: -0.02em; line-height: 1;
}
.hero-proof span { font-size: 14px; color: var(--muted); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue span { width: 3px; height: 8px; background: var(--accent); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(-4px)} 50%{opacity:1} 100%{opacity:0;transform:translateY(8px)} }

/* ============================== MARQUEE ============================== */
.marquee-section { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--ink-2); }
.marquee { display: flex; overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 44px; flex-shrink: 0;
  padding-right: 44px; animation: scroll 38s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--muted-2); letter-spacing: .02em; white-space: nowrap;
}
.marquee-track .sep { color: var(--accent); font-size: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================== SECTION HEAD ============================== */
section { position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.025em;
}
h2 em { font-style: normal; color: var(--accent); }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 560px; }

/* ============================== PROOF ============================== */
.proof { padding: clamp(80px, 11vh, 130px) 0; }
.proof-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.proof-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .3s;
}
.proof-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.proof-card.big { grid-column: span 8; background: linear-gradient(150deg, var(--panel), var(--ink-2)); }
.proof-card:not(.big):not(.wide) { grid-column: span 4; }
.proof-card.wide { grid-column: span 8; }
.proof-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6vw, 72px); line-height: 1; color: var(--paper);
  letter-spacing: -0.03em;
}
.proof-card.big .proof-num { font-size: clamp(64px, 10vw, 120px); }
.proof-label { font-size: 16.5px; color: var(--paper); max-width: 42ch; }
.proof-foot { font-size: 13.5px; color: var(--muted-2); margin-top: auto; }

/* ============================== SERVICES ============================== */
.services { padding: clamp(80px, 11vh, 130px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 90px 1fr 280px; gap: 30px;
  align-items: start; padding: 36px 8px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .3s;
}
.service-row:hover { background: rgba(200,241,53,0.03); padding-inline: 20px; }
.svc-num {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--accent); letter-spacing: .02em;
}
.svc-main h3 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin-bottom: 10px; }
.svc-main p { color: var(--muted); font-size: 17px; max-width: 54ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.svc-tags li {
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2);
  padding: 5px 11px; border-radius: 999px; letter-spacing: .02em;
}

/* ============================== WORK ============================== */
.work { padding: clamp(80px, 11vh, 130px) 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.case-visual {
  position: relative; height: 190px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.case-helio { background: radial-gradient(120% 120% at 0% 0%, #1d3a2a, #0f1f17 60%); }
.case-northwind { background: radial-gradient(120% 120% at 100% 0%, #2a2f4a, #14151c 60%); }
.case-atlas { background: radial-gradient(120% 120% at 0% 100%, #3a2a14, #1c140d 60%); }
.case-tag {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper);
  background: rgba(0,0,0,.3); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px;
  align-self: flex-start; backdrop-filter: blur(4px);
}
.case-bar { display: flex; gap: 8px; align-items: flex-end; height: 70px; }
.case-bar i {
  width: 34px; background: var(--accent); border-radius: 4px 4px 0 0;
  height: calc(var(--v) * 1%); opacity: .85;
}
.case-bar i:nth-child(2) { background: var(--paper); }
.case-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-body h3 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.case-result { color: var(--accent); font-weight: 600; font-size: 17px; }
.case-body p:not(.case-result) { color: var(--muted); font-size: 15.5px; flex: 1; }
.case-link {
  font-size: 14.5px; font-weight: 600; color: var(--paper);
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
}
.case-link span { transition: transform .2s; }
.case-link:hover span { transform: translateX(5px); }

/* ============================== APPROACH ============================== */
.approach { padding: clamp(90px, 13vh, 150px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.approach-inner { max-width: 980px; }
.manifesto {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3.6vw, 42px); line-height: 1.22; letter-spacing: -0.02em;
  margin: 22px 0 48px; color: var(--paper);
}
.manifesto::before { content: "“"; color: var(--accent); }
.manifesto::after { content: "”"; color: var(--accent); }
.approach-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.approach-meta div { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.approach-meta strong { font-family: var(--display); font-size: 19px; }
.approach-meta span { color: var(--muted); font-size: 15px; }

/* ============================== TESTIMONIAL ============================== */
.testimonial { padding: clamp(90px, 13vh, 150px) 0; }
.testimonial-inner { max-width: 900px; text-align: center; position: relative; }
.quote-mark {
  font-family: var(--display); font-size: 120px; line-height: .5; color: var(--accent);
  margin-bottom: 20px; height: 60px;
}
.testimonial blockquote {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.32; letter-spacing: -0.015em;
  margin-bottom: 36px;
}
.cite { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); text-align: left; }
.cite strong { color: var(--paper); }
.cite-ava {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #7fa820); color: var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px;
}

/* ============================== CTA ============================== */
.cta { padding: clamp(90px, 13vh, 150px) 0; }
.cta-inner {
  text-align: center; max-width: 760px; margin: 0 auto;
  background: linear-gradient(160deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 60%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 18px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 50ch; margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--muted-2); font-size: 14.5px; margin-top: 16px; line-height: 1.7; }
.footer-nav { display: flex; gap: 80px; }
.footer-nav h4 { font-family: var(--display); font-size: 14px; color: var(--paper); margin-bottom: 14px; letter-spacing: .02em; }
.footer-nav a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; color: var(--muted-2); }

/* ============================== REVEAL ANIMATION ============================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 980px) {
  .proof-card.big { grid-column: span 12; }
  .proof-card:not(.big):not(.wide) { grid-column: span 6; }
  .proof-card.wide { grid-column: span 12; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 64px 1fr; }
  .svc-tags { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .approach-meta { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column;
    background: var(--ink); border-bottom: 1px solid var(--line-2);
    padding: 22px var(--gut) 30px; gap: 6px; align-items: stretch;
    transform: translateY(-130%); transition: transform .4s cubic-bezier(.2,.7,.2,1); z-index: 90;
  }
  .primary-nav[data-open="true"] { transform: translateY(0); }
  .primary-nav a:not(.nav-cta) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-2); border-radius: 12px;
    cursor: pointer; align-items: center; justify-content: center;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--paper); transition: transform .3s, opacity .3s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }
  .case-grid { grid-template-columns: 1fr; }
  .proof-card:not(.big):not(.wide) { grid-column: span 12; }
  .hero-proof { gap: 26px 40px; }
  .footer-nav { gap: 40px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
