/* Northbound Studio — fidelity build to 14islands DNA (taste/14islands)
   Monochrome editorial gallery: pure white, near-black ink, one mid-gray.
   No chromatic color. Scale IS the hierarchy. Photography carries the weight. */

/* ---------- tokens (transplanted from taste/14islands/tokens.json) ---------- */
:root {
  --ground: #ffffff;      /* Paper */
  --ink: #070707;         /* Ink */
  --fog: #f2f2f2;         /* Fog — quiet surface separation */
  --stone: #a2a2a9;       /* Stone — the entire "chromatic" hierarchy is this one gray */
  --graphite: #797979;    /* Graphite — deeper muted text */
  --accent: none;         /* monochrome DNA — there is no accent */

  --font-display: 'Archivo', 'Archivo Expanded', system-ui, sans-serif; /* grotesque, NOT serif */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --maxw: 1400px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--ground); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.80;
  letter-spacing: -0.04em;
  font-size: clamp(3.4rem, 12.5vw, 180px);
  color: var(--ink);
}
.heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 7vw, 100px);
}
.heading--stone { color: var(--stone); }
.subheading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.6vw, 27px);
}
.stone { color: var(--stone); }
.graphite { color: var(--graphite); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 46ch; color: var(--ink); }
.muted { color: var(--graphite); }

/* ---------- top navigation (3-zone, no fill, no border) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  mix-blend-mode: normal;
}
.nav__mark { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; font-size: 19px; }
.nav__mark b { font-weight: 400; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 34px); justify-self: center; }
.nav__links a, .nav__cta { font-size: 15px; color: var(--ink); transition: color .4s var(--ease); }
.nav__links a:hover { color: var(--stone); }
.nav__cta { justify-self: end; }
.nav__cta a { display: inline-flex; align-items: center; gap: 8px; transition: color .4s var(--ease); }
.nav__cta a:hover { color: var(--stone); }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 9vh, 120px); padding-bottom: clamp(60px, 10vh, 140px); }
.hero__eyebrow { margin-bottom: 36px; }
.hero__lead { margin-top: 48px; }
.hero__meta {
  margin-top: 64px; display: flex; flex-wrap: wrap; gap: 8px 40px;
  border-top: 1px solid var(--fog); padding-top: 24px;
  font-size: 13px; color: var(--graphite);
}
.hero__meta span { color: var(--ink); }

/* connecting word / ampersand device in Stone */
.tint { color: var(--stone); }

/* ---------- section rhythm ---------- */
section { padding-block: clamp(72px, 12vh, 160px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vh, 80px); }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head__intro { max-width: 40ch; color: var(--graphite); }

/* ---------- selected work — case study grid ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 24px; }
.case { display: block; }
.case__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--fog); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); will-change: transform; }
.case:hover .case__media img { transform: scale(1.045); }
.case__caption { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.case__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1; }
.case__cat { font-size: 15px; color: var(--stone); }
.case__cat::before { content: "— "; }

/* ---------- full-bleed media block (Ink) ---------- */
.media-block { width: 100%; background: var(--ink); border-radius: 0; overflow: hidden; }
.media-block__inner { position: relative; aspect-ratio: 16 / 7; }
.media-block img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; }
.media-block__label { position: absolute; left: var(--pad); bottom: 28px; color: var(--ground); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: .8; }

/* ---------- services (typographic list, no cards) ---------- */
.svc-list { border-top: 1px solid var(--fog); }
.svc {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--fog);
}
.svc__num { font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; }
.svc__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1; }
.svc__note { font-size: 14px; color: var(--graphite); max-width: 34ch; text-align: right; }

/* ---------- philosophy (lighter section heading) ---------- */
.philo { }
.philo p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.025em; max-width: 22ch; }
.philo p .tint { color: var(--stone); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; border-top: 1px solid var(--fog); padding-top: 40px; }
.member__name { font-size: 20px; letter-spacing: -0.01em; }
.member__role { font-size: 14px; color: var(--stone); margin-top: 4px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 27px); line-height: 1.12; letter-spacing: -0.02em; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: var(--stone); }

/* ---------- recognition (quiet text row, NOT a stat-counter) ---------- */
.recog { display: flex; flex-wrap: wrap; gap: 10px 40px; border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); padding: 28px 0; }
.recog span { font-size: 15px; }
.recog .stone { font-size: 15px; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--ink);
  border-radius: 0; padding: 10px 0; transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--stone); }
.field textarea { resize: vertical; min-height: 90px; }
.btn {
  font-family: var(--font-sans); font-size: 15px; color: var(--ground); background: var(--ink);
  border: none; border-radius: var(--radius); padding: 16px 30px; cursor: pointer;
  transition: opacity .3s var(--ease);
}
.btn:hover { opacity: 0.82; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-msg { font-size: 14px; color: var(--graphite); margin-top: 12px; min-height: 1em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ground); }
.footer .wrap { padding-block: clamp(56px, 8vh, 100px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__mark { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 88px); line-height: 0.9; letter-spacing: -0.03em; }
.footer a { color: var(--ground); transition: color .35s var(--ease); }
.footer a:hover { color: var(--stone); }
.footer__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); margin-bottom: 16px; font-weight: 400; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 12px; color: var(--stone); }

/* ---------- cursor paint canvas (14islands' global-canvas signature) ---------- */
/* soft colored fluid trail following the pointer over the white sections.
   The type stays monochrome; the paint is the one expressive, playful layer. */
.paint-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav, main { position: relative; z-index: 1; }
/* transparent section backgrounds so the paint shows through behind the type;
   the Ink media block + footer keep their solid dark fill and cover the paint. */
.hero, section { background: transparent; }

/* ---------- motion — masked line-rise reveal (clip, not fade) ----------
   Hidden states are gated behind html.js so no-JS / IO-failure never hides
   content, and a JS failsafe (main.js) force-reveals anything left after load. */
.rise { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
html.js .rise > * { display: block; transform: translateY(112%); transition: transform 1.0s var(--ease); transition-delay: var(--d, 0s); will-change: transform; }
.rise.in > * { transform: translateY(0) !important; }

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1 !important; transform: none !important; }

/* reveal transition MUST keep transform too, or it clobbers the hover-scale transition
   on case images → the image jumps instead of easing (lesson: northbound rev-2). */
html.js .img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), transform .9s var(--ease); }
.img-reveal.in { clip-path: inset(0 0 0 0) !important; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .rise > *, .reveal, .img-reveal { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; justify-self: end; background: none; border: none; font-size: 15px; letter-spacing: 0.06em; color: var(--ink); cursor: pointer; }
  .work-grid { grid-template-columns: 1fr; gap: 44px; }
  .team-grid, .quotes { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid, .footer__top { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 40px 1fr; }
  .svc__note { grid-column: 2; text-align: left; margin-top: 8px; }
  .media-block__inner { aspect-ratio: 4 / 3; }
}
