/* NMAP — nmap.in */

:root {
  --ink: #121519;
  --ink-2: #1D2228;
  --ink-3: #2C333B;
  --paper: #F5F3EE;
  --paper-2: #ECE8DF;
  --white: #FFFFFF;
  --line: #D8D2C6;
  --line-dark: #363E47;
  --muted: #5B626B;
  --muted-dark: #A3AAB2;
  --accent: #B42A1F;       /* lacquer red */
  --accent-deep: #8E1F17;

  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 12px; }

.eyebrow {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }

/* Draft highlighting — remove body.draft before launch */
body.draft .tbd {
  background: rgba(255, 196, 0, .22);
  box-shadow: inset 0 -1px 0 rgba(200, 140, 0, .6);
}
body.draft .section-dark .tbd { background: rgba(255, 196, 0, .16); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 15px/1 var(--f-body);
  padding: 15px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-word { font: 800 22px/1 var(--f-head); font-stretch: 118%; letter-spacing: 0.02em; }
.logo-mark {
  display: block; width: 52px; aspect-ratio: 683 / 456;
  background: currentColor;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
          mask: url("../img/logo.png") center / contain no-repeat;
}
.brand-light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-3); }
.nav a:hover { color: var(--accent); }
.nav .nav-cta { background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.nav .nav-cta:hover { background: var(--accent); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-stretch: 85%;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 17ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Colour-card fan */
.fan { position: relative; height: 420px; }
.chip {
  position: absolute; left: 12%; bottom: 8%;
  width: 62%; height: 78%;
  border-radius: 6px;
  transform-origin: 18% 94%;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 40px -18px rgba(18,21,25,.45);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.chip::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,.12) 100%);
}
.chip span {
  position: relative; width: 100%;
  background: var(--white);
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 14px; color: var(--ink-3);
}
.c1 { background: #EDEDEA; transform: rotate(-24deg); }
.c2 { background: linear-gradient(160deg, #D5D9DD, #9BA2A9 60%, #C4C9CE); transform: rotate(-14deg); }
.c3 { background: linear-gradient(160deg, #6A7077, #3F454B); transform: rotate(-4deg); }
.c4 { background: linear-gradient(160deg, #D23A2C, #8E1F17); transform: rotate(6deg); }
.c5 { background: linear-gradient(160deg, #26395C, #121C30); transform: rotate(16deg); }
.c6 {
  background: repeating-linear-gradient(45deg, rgba(18,21,25,.06) 0 1px, transparent 1px 9px), #F9F8F5;
  border: 1px solid var(--line);
  transform: rotate(26deg);
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 7vw, 88px) 0 0;
  border-top: 1px solid var(--line);
}
.stats > div { padding: 28px 24px 32px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); order: 2; }
.stats dd { margin: 0 0 6px; font: 700 clamp(36px, 4.4vw, 56px)/1 var(--f-head); font-stretch: 90%; letter-spacing: -0.02em; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lede, .section-dark .muted { color: var(--muted-dark); }
.section-dark .eyebrow { color: #E0685C; }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  font-stretch: 92%;
  margin-bottom: 20px;
  max-width: 20ch;
}
.section-head.narrow { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.two-col > .section-head { position: sticky; top: 108px; }

.prose p { font-size: 18px; max-width: 62ch; }
.prose p:first-child::first-letter { }

/* Timeline */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline b { font: 500 15px/1.6 var(--f-mono); color: var(--accent); }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.brand-card { padding: 32px 28px 8px 0; }
.brand-card + .brand-card { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.brand-logo {
  height: 72px; display: flex; align-items: center;
  font: 700 22px/1.1 var(--f-head); letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.brand-role { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #E0685C; }
.brand-card p:last-child { color: var(--muted-dark); font-size: 15px; }

/* Product range table */
.range { width: 100%; border-collapse: collapse; font-size: 15px; }
.range thead th {
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 0 12px 12px 0;
  border-bottom: 2px solid var(--ink);
}
.range tbody th { text-align: left; font: 600 16px/1.35 var(--f-body); padding: 18px 16px 18px 0; vertical-align: top; width: 34%; }
.range td { padding: 18px 16px 18px 0; color: var(--muted); vertical-align: top; }
.range tbody tr { border-bottom: 1px solid var(--line); }
.range tbody tr:hover { background: rgba(18,21,25,.025); }
.range .num { text-align: right; font-family: var(--f-mono); color: var(--ink); padding-right: 0; white-space: nowrap; }

/* Customers */
.networks { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 24px 0 28px; margin-bottom: 56px; }
.networks-label { font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.networks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 44px; }
.networks li { font: 700 clamp(22px, 2.6vw, 32px)/1.2 var(--f-head); font-stretch: 95%; letter-spacing: -0.01em; }

.customer-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.customer-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.customer-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.quote { margin: 0; padding-left: 28px; border-left: 3px solid var(--accent); }
.quote blockquote { margin: 0 0 20px; font: 500 clamp(20px, 2.1vw, 26px)/1.4 var(--f-head); letter-spacing: -0.01em; }
.quote figcaption { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-no { display: block; font: 500 13px/1 var(--f-mono); color: var(--accent); margin-bottom: 40px; }
.steps h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Coverage */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.region { padding: 32px 32px 8px 0; }
.region + .region { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.region h3 { font-size: clamp(28px, 3vw, 40px); font-stretch: 92%; margin-bottom: 8px; }
.region-hub { font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #E0685C; margin-bottom: 20px; }
.region p:last-child { color: var(--muted-dark); line-height: 1.9; }

/* Contact */
.contact-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: 500 12px/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.form { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 56px 0 40px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px; align-items: end; }
.footer-legal { margin: 20px 0 0; line-height: 1.7; }
.footer-note { margin: 0; max-width: 52ch; }
.footer-copy { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .brand-card:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 32px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border: 0; }

  .hero-grid, .two-col, .customer-split { grid-template-columns: 1fr; }
  .two-col > .section-head { position: static; }
  .fan { height: 300px; max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .regions { grid-template-columns: 1fr; }
  .region + .region { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-grid, .steps { grid-template-columns: 1fr; }
  .brand-card + .brand-card, .steps li + li { padding-left: 0; border-left: 0; }
  .brand-card + .brand-card { border-top: 1px solid var(--line-dark); }
  .steps li + li { margin-top: 0; border-top: 1px solid var(--line); }
  .steps li { padding-bottom: 24px; }
  .step-no { margin-bottom: 16px; }
  .range thead { display: none; }
  .range tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; }
  .range tbody th { width: auto; padding: 0; }
  .range td { padding: 4px 0 0; grid-column: 1 / -1; }
  .range td.num { grid-column: 2; grid-row: 1; padding: 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 64px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
