/* =========================================================
   Northern Service Network — site system
   Dark editorial monochrome + deep forest accent.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink:        #131310;
  --ink-1:      #1A1A15;
  --ink-2:      #21211A;
  --ink-3:      #2A2A20;

  --stone:      #F3F1E9;
  --stone-2:    #ECE9DE;
  --stone-3:    #E2DECF;
  --plate:      #D8D3C3;

  --forest:     #3B4124;
  --forest-2:   #474E2C;
  --forest-press: #2B3018;
  --sage:       #9DA37C;
  --sage-2:     #B6BB95;
  --olive:      #383E22;
  --olive-deep: #2B3018;
  --olive-text: #AEB389;
  --rust:       #9DA37C;

  --text:       #15180F;
  --text-2:     #353a30;
  --muted:      #6A6E62;
  --muted-2:    #908F84;

  --on-dark:    rgba(243,241,233,0.95);
  --on-dark-2:  rgba(243,241,233,0.62);
  --on-dark-3:  rgba(243,241,233,0.40);

  --line:       #DCD8CB;
  --line-strong:#C6C1B1;
  --line-dark:  rgba(243,241,233,0.13);
  --line-dark-strong: rgba(243,241,233,0.26);

  --display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-mega:  clamp(2.9rem, 2rem + 4.4vw, 6.25rem);
  --fs-h1:    clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem);
  --fs-h2:    clamp(2rem, 1.5rem + 2.1vw, 3.2rem);
  --fs-h3:    clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --fs-h4:    1.25rem;
  --fs-lead:  clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  --fs-body:  1.0625rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;
  --fs-over:  0.72rem;

  --ls-mega:  -0.035em;
  --ls-tight: -0.025em;
  --ls-snug:  -0.012em;
  --ls-over:  0.22em;

  --max:      1280px;
  --narrow:   860px;
  --pad-x:    clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.5s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: var(--ls-snug); }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: var(--ls-snug); }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--sage); color: var(--ink); }

/* =========================================================
   Layout
   ========================================================= */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding-inline: var(--pad-x); }
section { position: relative; }

.dark  { background: var(--ink); color: var(--on-dark); }
.dark-1{ background: var(--ink-1); color: var(--on-dark); }
.olive { background: var(--olive); color: var(--on-dark); }
.light { background: var(--stone); color: var(--text); }
.light-2 { background: var(--stone-2); color: var(--text); }

.pad-y    { padding-block: clamp(80px, 11vw, 160px); }
.pad-y-sm { padding-block: clamp(56px, 7vw, 96px); }

/* =========================================================
   Overline
   ========================================================= */
.over {
  font-family: var(--body);
  font-size: var(--fs-over);
  font-weight: 600;
  letter-spacing: var(--ls-over);
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.dark .over, .dark-1 .over, .olive .over { color: var(--on-dark-3); }
.over.accent { color: var(--forest); }
.dark .over.accent, .dark-1 .over.accent, .olive .over.accent { color: var(--sage); }

.idx { font-family: var(--mono); font-size: var(--fs-over); letter-spacing: 0.18em; color: var(--on-dark-3); }
.light .idx, .light-2 .idx { color: var(--muted-2); }

/* =========================================================
   Lead / prose
   ========================================================= */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--on-dark-2);
  font-weight: 400;
  max-width: 56ch;
}
.light .lead, .light-2 .lead { color: var(--text-2); }

.prose p { color: var(--on-dark-2); margin-bottom: 1.1em; max-width: 64ch; }
.light .prose p, .light-2 .prose p { color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; stroke-width: 1.8; }

.btn .arw { width: 28px; height: 28px; border-radius: 999px; background: var(--forest); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin: -8px -16px -8px 2px; transition: transform var(--dur) var(--ease); }
.btn .arw svg { width: 14px; height: 14px; }
.btn:hover .arw { transform: translateX(3px); }

.btn-primary { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--line-dark-strong); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(243,241,233,0.05); }

.light .btn-primary, .light-2 .btn-primary { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.light .btn-primary:hover, .light-2 .btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.light .btn-ghost, .light-2 .btn-ghost { color: var(--text); border-color: var(--line-strong); }
.light .btn-ghost:hover, .light-2 .btn-ghost:hover { border-color: var(--text); background: rgba(0,0,0,0.03); }

.btn-lg { padding: 17px 32px; font-size: 0.76rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link svg { width: 16px; height: 16px; stroke-width: 1.8; color: var(--rust); transition: transform var(--dur) var(--ease); }
.link:hover { gap: 13px; color: var(--sage); }
.light .link, .light-2 .link { color: var(--text); }
.light .link:hover, .light-2 .link:hover { color: var(--forest); }

/* =========================================================
   Wordmark
   ========================================================= */
.mark { width: 1em; height: 1em; flex: none; }
.mark path { fill: currentColor; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
.wordmark .mark { color: var(--sage); }
.light .wordmark, .light-2 .wordmark { color: var(--text); }
.light .wordmark .mark, .light-2 .wordmark .mark { color: var(--forest); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 76px;
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,15,13,0.72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav .wordmark { font-size: 1.4rem; }
.nav-links { display: none; align-items: center; gap: 34px; }
.nav-item { position: relative; }
.nav-a {
  font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-2);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 0; white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-a svg { width: 14px; height: 14px; stroke-width: 2; transition: transform var(--dur) var(--ease); }
.nav-a:hover, .nav-a.active { color: var(--on-dark); }
.nav-item:hover .nav-a svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: -24px;
  min-width: 320px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.7);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-link {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 3px;
  transition: background var(--dur) var(--ease);
}
.dd-link:hover { background: var(--ink-3); }
.dd-ico { color: var(--sage); margin-top: 2px; flex: none; }
.dd-ico svg { width: 20px; height: 20px; stroke-width: 1.5; }
.dd-link > span:last-child { display: block; }
.dd-t { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--on-dark); letter-spacing: -0.005em; }
.dd-d { display: block; font-size: var(--fs-xs); color: var(--on-dark-3); line-height: 1.45; margin-top: 4px; }
.dd-sep { height: 1px; background: var(--line-dark); margin: 8px 12px; }
.dd-all { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
.dd-all:hover { color: var(--sage); }
.dd-all svg { width: 14px; height: 14px; stroke-width: 1.6; }

.nav-cta { display: none; }

.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span { width: 24px; height: 1.5px; background: var(--on-dark); transition: transform 0.3s var(--ease), opacity 0.3s; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: var(--ink);
  padding: 32px var(--pad-x) 48px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mm-a { font-family: var(--display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark); padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.mm-item { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.mm-item .mm-a { border-bottom: 0; flex: 1; }
.mm-toggle { background: none; border: 0; cursor: pointer; color: var(--on-dark-2); padding: 10px 4px; display: flex; align-items: center; flex: none; }
.mm-toggle svg { width: 22px; height: 22px; stroke-width: 1.8; transition: transform 0.3s var(--ease); }
.mm-toggle.open svg { transform: rotate(180deg); }
.mm-sub { display: flex; flex-direction: column; overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.mm-sub.open { max-height: 300px; }
.mm-sub .mm-a { font-size: 1.1rem; color: var(--on-dark-2); padding: 13px 0 13px 20px; border-bottom: 1px solid var(--line-dark); }
.mm-cta { margin-top: 28px; }

@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* =========================================================
   Photographic plate
   ========================================================= */
.photo {
  position: relative;
  background: var(--plate);
  overflow: hidden;
}
.photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.97);
}
.photo image-slot {
  display: block; width: 100%; height: 100%;
  filter: grayscale(1) contrast(1.04) brightness(0.97);
}
.photo-cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  font-family: var(--mono); font-size: var(--fs-over); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--on-dark);
  background: rgba(13,15,13,0.55);
  backdrop-filter: blur(6px);
  padding: 6px 11px; border-radius: 2px;
  pointer-events: none;
}
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-3-2 { aspect-ratio: 3/2; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-3-4 { aspect-ratio: 3/4; }

/* =========================================================
   Cards / panels
   ========================================================= */
.panel {
  background: var(--ink-1);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
}
.light .panel, .light-2 .panel { background: var(--stone-2); border-color: var(--line); }

.rule { height: 1px; background: var(--line-dark); border: 0; margin: 0; }
.light .rule, .light-2 .rule { background: var(--line); }

.stat-n { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); letter-spacing: -0.03em; line-height: 0.95; }
.stat-l { font-size: var(--fs-sm); color: var(--on-dark-2); margin-top: 12px; max-width: 26ch; }
.light .stat-l, .light-2 .stat-l { color: var(--muted); }

/* =========================================================
   Footer
   ========================================================= */
.foot { background: var(--ink); border-top: 1px solid var(--line-dark); }
.foot-top { display: grid; gap: 56px; padding-block: clamp(64px, 8vw, 104px); grid-template-columns: 1fr; }
.foot-brand .wordmark { font-size: 1.8rem; }
.foot-tag { color: var(--on-dark-2); margin-top: 20px; max-width: 34ch; font-size: var(--fs-sm); line-height: 1.6; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.foot-col h5 { font-family: var(--mono); font-size: var(--fs-over); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); margin: 0 0 20px; }
.foot-col a { display: block; color: var(--on-dark-2); font-size: var(--fs-sm); padding: 7px 0; transition: color var(--dur) var(--ease); }
.foot-col a:hover { color: var(--sage); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: var(--on-dark-3); }
.foot-bottom .mono { font-family: var(--mono); letter-spacing: 0.08em; }

@media (min-width: 760px) {
  .foot-top { grid-template-columns: 1.4fr 2fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Utilities
   ========================================================= */
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2.align-c { align-items: center; } }
.measure { max-width: 60ch; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* =========================================================
   Shared inner-page components
   ========================================================= */
.phero { padding-top: clamp(124px, 16vw, 188px); padding-bottom: clamp(48px, 6vw, 80px); }
.phero .over { margin-bottom: 28px; }
.phero h1 { font-size: var(--fs-h1); max-width: 18ch; }
.phero .lead { margin-top: 28px; }
.phero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 88px); align-items: end; }
@media (min-width: 900px) { .phero-grid { grid-template-columns: 1.3fr 1fr; } }

.crumb { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-over); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); }
.crumb a:hover { color: var(--sage); }
.light .crumb, .light-2 .crumb { color: var(--muted-2); }
.light .crumb a:hover, .light-2 .crumb a:hover { color: var(--forest); }
.crumb svg { width: 13px; height: 13px; stroke-width: 1.8; }

.spec { list-style: none; margin: 0; padding: 0; }
.spec li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line-dark); align-items: start; }
.light .spec li, .light-2 .spec li { border-color: var(--line); }
.spec li:last-child { border-bottom: 1px solid var(--line-dark); }
.light .spec li:last-child, .light-2 .spec li:last-child { border-color: var(--line); }
.spec .n { font-family: var(--mono); font-size: var(--fs-over); letter-spacing: 0.12em; color: var(--sage); padding-top: 5px; }
.light .spec .n, .light-2 .spec .n { color: var(--forest); }
.spec h4 { margin-bottom: 8px; }
.spec p { color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.6; max-width: 56ch; }
.light .spec p, .light-2 .spec p { color: var(--text-2); }

.feat-grid { display: grid; grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 760px) { .feat-grid.c3 { grid-template-columns: repeat(3,1fr); gap: clamp(28px,4vw,56px); } .feat-grid.c2 { grid-template-columns: repeat(2,1fr); gap: clamp(28px,4vw,56px); } }
.feat { padding: 32px 0; border-top: 1px solid var(--line-dark); }
.light .feat, .light-2 .feat { border-color: var(--line); }
.feat .ico { color: var(--sage); margin-bottom: 20px; }
.light .feat .ico, .light-2 .feat .ico { color: var(--forest); }
.feat .ico svg { width: 26px; height: 26px; stroke-width: 1.4; }
.feat h4 { margin-bottom: 10px; }
.feat p { color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.6; max-width: 40ch; }
.light .feat p, .light-2 .feat p { color: var(--text-2); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .btns { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.sec-head { max-width: 60ch; }
.sec-head h2 { margin-top: 24px; }
.sec-head .lead { margin-top: 24px; }

.num-list { display: flex; flex-direction: column; }
.num-row { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line-dark-strong); align-items: start; }
.num-row:last-child { border-bottom: 1px solid var(--line-dark-strong); }
.num-badge { width: 48px; height: 48px; border-radius: 999px; background: var(--stone); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: var(--fs-sm); font-weight: 500; flex: none; }
.num-row h4 { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--on-dark); }
.num-row h4 svg { width: 16px; height: 16px; color: var(--stone); stroke-width: 2; }
.num-row p { color: var(--olive-text); font-size: var(--fs-sm); line-height: 1.6; max-width: 54ch; }

.col-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .col-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.col-item { display: flex; flex-direction: column; }
.col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.col-head h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; transition: color var(--dur) var(--ease); }
.col-head svg { width: 18px; height: 18px; color: var(--rust); stroke-width: 2; transition: transform var(--dur) var(--ease); }
.col-item > .col-cap { color: var(--on-dark-2); font-size: var(--fs-sm); margin-bottom: 20px; }
.light .col-item > .col-cap, .light-2 .col-item > .col-cap { color: var(--muted); }
.col-item .photo { width: 100%; aspect-ratio: 3 / 4.1; }
.col-item:hover .col-head h3 { color: var(--sage); }
.light .col-item:hover .col-head h3, .light-2 .col-item:hover .col-head h3 { color: var(--forest); }
.col-item:hover .col-head svg { transform: translateX(3px); }
