/* ==========================================================================
   KM Telecom — design system
   Motif: the logo's ascending path through a grid of rounded squares.
   Navy is the field, green is the signal. Green is never decoration —
   it only ever marks a channel, a result, or a next step.
   ========================================================================== */

:root {
  /* Colour ---------------------------------------------------------------- */
  --ink:        #0B1526;   /* deepest navy-black, hero + footer field        */
  --navy:       #16294D;   /* section navy                                    */
  --brand:      #335192;   /* logo navy                                       */
  --brand-tint: #4A6AAE;
  --signal:     #3BBF00;   /* logo green                                      */
  --signal-dk:  #2E9600;
  --paper:      #FFFFFF;
  --mist:       #F2F5FA;
  --line:       #E1E7F0;
  --line-dk:    #24365C;
  --text:       #101B30;
  --muted:      #5D6B85;
  --muted-dk:   #93A5C6;

  /* Type ------------------------------------------------------------------ */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Space & shape --------------------------------------------------------- */
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --shadow: 0 1px 2px rgba(11, 21, 38, .04), 0 12px 32px -12px rgba(11, 21, 38, .14);
  --shadow-lg: 0 2px 4px rgba(11, 21, 38, .05), 0 30px 70px -30px rgba(11, 21, 38, .28);

  /* The grid motif, as a reusable background ------------------------------ */
  --grid-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='68'%3E%3Crect x='14' y='14' width='40' height='40' rx='11' fill='%23335192' fill-opacity='0.16'/%3E%3C/svg%3E");
  --grid-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='68'%3E%3Crect x='14' y='14' width='40' height='40' rx='11' fill='%23335192' fill-opacity='0.05'/%3E%3C/svg%3E");
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* A long email address, URL or cookie name must break rather than widen the page. */
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--signal); color: #071B00; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--signal); color: #071B00; padding: 12px 18px;
  font: 600 14px/1 var(--mono); border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* Layout ------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(52px, 6vw, 80px); }

.section--mist { background: var(--mist); }
.section--navy {
  background: var(--ink);
  background-image: var(--grid-navy);
  color: #E8EDF7;
}
.section--navy h2, .section--navy h3 { color: #FFF; }
.section--navy p { color: var(--muted-dk); }

/* Typography --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;              /* light by default — see .heavy               */
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}

/* The wordmark logic: KM heavy / Telecom light. Every heading carries it. */
.heavy { font-weight: 800; letter-spacing: -0.045em; }

h1 { font-size: clamp(2.7rem, 6.4vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); line-height: 1.6; max-width: 60ch; }
.section--navy .lead { color: var(--muted-dk); }

.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 6px; border-radius: 2px;
  background: var(--signal); flex: none;
}
.section--navy .eyebrow { color: var(--muted-dk); }

.sec-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lead { margin-inline: auto; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font: 600 15px/1 var(--body);
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--signal); color: #071B00; }
.btn--primary:hover { background: #47D806; }

.btn--dark { background: var(--ink); color: #FFF; }
.btn--dark:hover { background: var(--brand); }

.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.section--navy .btn--ghost,
.hero .btn--ghost,
.cta .btn--ghost { border-color: rgba(255,255,255,.22); color: #FFF; }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta .btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn--sm { padding: 11px 20px; font-size: 14px; }

/* Text link with the green underline that grows on hover */
.tlink {
  font: 600 15px/1.4 var(--body);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .3s ease;
}
.tlink:hover { background-size: 100% 2px; }
.tlink .arw { transition: transform .25s ease; }
.tlink:hover .arw { transform: translateX(4px); }
.section--navy .tlink { color: #FFF; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,21,38,.5); }

.hdr__in { display: flex; align-items: center; gap: 28px; height: 78px; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 9px 14px; border-radius: 999px;
  color: var(--text);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--mist); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* The nav carries its own CTA for the mobile drawer only. */
.nav > .btn { display: none; }

.hdr__cta { flex: none; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: 12px; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 26px;
    margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .nav > .btn { display: inline-flex; margin-top: 20px; border-bottom: 0; align-self: flex-start; }
  .hdr__cta { display: none; }
  .burger { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--ink);
  background-image:
    radial-gradient(900px 520px at 78% 18%, rgba(59,191,0,.14), transparent 62%),
    radial-gradient(700px 500px at 8% 92%, rgba(51,81,146,.42), transparent 66%),
    var(--grid-navy);
  color: #FFF;
  overflow: hidden;
  position: relative;
}
.hero__in {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 112px);
}
.hero h1 { color: #FFF; }
.hero .lead { color: #B6C4DE; margin-top: 22px; }
.hero .eyebrow { color: #93A5C6; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__note {
  margin-top: 30px;
  font: 500 13px/1.5 var(--mono);
  letter-spacing: .04em;
  color: #7E90B3;
  display: flex; align-items: center; gap: 10px;
}
.hero__note .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none;
  box-shadow: 0 0 0 0 rgba(59,191,0,.6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,191,0,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(59,191,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,191,0,0); }
}

/* --- the signature: the growth path ------------------------------------- */
.growth { width: 100%; height: auto; overflow: visible; }
.growth .g-sq { fill: var(--brand-tint); }
.growth .g-path {
  stroke: var(--signal); stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(59,191,0,.45));
}
.growth .g-halo { fill: var(--signal); opacity: .18; }
.growth .g-dot  { fill: var(--signal); }
.growth .g-label {
  font: 500 11px var(--mono);
  letter-spacing: .14em;
  fill: #A9BAD8;
}

/* Draw-on: the path traces itself, then the channels light up in order. */
.growth .g-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.5s cubic-bezier(.65,.02,.3,1) .2s forwards; }
.growth .g-node { opacity: 0; animation: popIn .5s cubic-bezier(.2,.9,.3,1.3) var(--d) forwards; }
.growth .g-sq   { opacity: 0; animation: fadeSq .7s ease var(--d) forwards; }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes popIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeSq { to { opacity: var(--o, 1); } }
.growth .g-node { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .growth .g-path { stroke-dashoffset: 0; animation: none; }
  .growth .g-node, .growth .g-sq { opacity: 1; animation: none; }
  .hero__note .pulse { animation: none; }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: 2; margin-top: 8px; }
}

/* ==========================================================================
   Channel strip
   ========================================================================== */
.chanbar { border-block: 1px solid var(--line); background: var(--paper); }
.chanbar__in { display: flex; align-items: center; gap: clamp(20px, 4vw, 52px); padding-block: 26px; flex-wrap: wrap; }
.chanbar__label {
  font: 500 12px/1.5 var(--mono); letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); flex: none; max-width: 15ch;
}
.chanbar__list { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: center; }
.chanbar__list span {
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.24rem);
  letter-spacing: -.02em; color: var(--text); opacity: .58;
  transition: opacity .2s ease, color .2s ease;
}
.chanbar__list span:hover { opacity: 1; color: var(--brand); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD6E8; }
.card p { color: var(--muted); font-size: 16px; }
.card .tlink { margin-top: auto; padding-top: 20px; }

.section--mist .card { background: var(--paper); }
.section--navy .card {
  background: rgba(255,255,255,.035);
  border-color: var(--line-dk);
}
.section--navy .card:hover { border-color: var(--brand); box-shadow: none; }

/* The mark: a mini version of the logo lattice, one square lit green */
.mark {
  width: 44px; height: 44px; flex: none; margin-bottom: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px;
}
.mark i { background: var(--brand); opacity: .22; border-radius: 3px; display: block; }
.mark i.on { background: var(--signal); opacity: 1; }
.section--navy .mark i { background: var(--brand-tint); opacity: .35; }
.section--navy .mark i.on { background: var(--signal); opacity: 1; }

/* Numbered / labelled list rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 190px 1fr 1fr;
  gap: 28px; padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.row__when {
  font: 500 12px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--signal-dk); padding-top: 4px;
}
.row h3 { margin-bottom: 0; }
.row p { color: var(--muted); font-size: 16px; margin: 0; }
.section--navy .rows, .section--navy .row { border-color: var(--line-dk); }
.section--navy .row__when { color: var(--signal); }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
}

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--ink); padding: 34px 28px; }
.stat__n {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em;
  font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: #FFF;
}
.stat__n em { font-style: normal; color: var(--signal); }
.stat__l {
  font: 500 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dk); margin-top: 12px; display: block;
}
/* Column count must match the item count exactly: the 1px gaps show the border
   colour, so any leftover empty cell renders as a stray dark block. */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats--3 { grid-template-columns: 1fr; }
}

/* Split feature block ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split--flip .split__media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--signal);
}
.checks li strong { color: var(--text); font-weight: 600; }
.section--navy .checks li { color: var(--muted-dk); }
.section--navy .checks li strong { color: #FFF; }

/* ==========================================================================
   Phone mockups (cases)
   ========================================================================== */
/* Frame is 9px of bezel around the screen, so the frame ratio is set such that
   the SCREEN lands on 9:19.5 — the native ratio of a modern phone screenshot. */
.phone {
  --pw: 268px;
  width: var(--pw);
  aspect-ratio: 268 / 560;
  background: #0B1526;
  border-radius: 38px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.09);
  position: relative;
  flex: none;
  margin-inline: auto;
}
.phone::after { /* speaker slot */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; background: #0B1526; border-radius: 999px; z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: var(--mist);
  position: relative;
}
.phone__screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
/* Empty slot: shows where to drop a screenshot */
.phone__screen--empty {
  display: grid; place-content: center; text-align: center; gap: 8px;
  border: 1px dashed #C3D0E4;
  font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 20px;
}
.phone--sm { --pw: 210px; }

.case {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.case:first-child { padding-top: 0; }
.case:last-child { border-bottom: 0; }
/* Media sits first in the source, so flipping means pushing it last — and the
   narrow column has to move with it, or the copy ends up in the 300px track. */
.case--flip { grid-template-columns: 1fr 300px; }
.case--flip .case__media { order: 2; }
@media (max-width: 820px) {
  .case,
  .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding: 0; list-style: none; }
.tag {
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px;
  background: var(--mist); color: var(--brand); border: 1px solid var(--line);
}
.section--navy .tag { background: rgba(255,255,255,.05); border-color: var(--line-dk); color: var(--muted-dk); }

.kpis { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 28px; }
.kpi__n {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; color: var(--brand);
}
.kpi__n em { font-style: normal; color: var(--signal-dk); }
.kpi__l { font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: block; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper); text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD6E8; }
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.thumbpath { width: 100%; height: 100%; display: block; }
.thumbpath .t-grid rect { fill: var(--brand-tint); opacity: .16; }
.thumbpath .t-path {
  stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-width .22s ease;
}
.thumbpath .t-dots circle { fill: var(--signal); }
.post-card:hover .thumbpath .t-path { stroke-width: 6; }
.post-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.meta {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
}
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--signal); }

/* Article body ------------------------------------------------------------- */
.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; margin-top: 2em; }
.article h3 { margin-top: 1.8em; }
.article p, .article li { font-size: 17.5px; line-height: 1.75; color: #2C3A54; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.article li { margin-bottom: .5em; }
.article blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--signal);
  font-family: var(--display); font-weight: 300; font-size: 1.35rem; line-height: 1.35;
  letter-spacing: -.02em; color: var(--text);
}
.article hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.article figure { margin: 2.4em 0; }

.pagehead { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); background: var(--mist); background-image: var(--grid-light); border-bottom: 1px solid var(--line); }
.pagehead .lead { margin-top: 20px; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
/* Grid items default to min-width:auto, which lets a wide child (the cookie table)
   push the track past the viewport. Without this the page scrolls sideways and
   .table-wrap never gets to do its job. */
.legal > * { min-width: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 100px; }
.toc__t { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: block; padding: 7px 0; font-size: 14.5px; text-decoration: none; color: var(--muted);
  border-bottom: 1px solid var(--line); transition: color .18s ease;
}
.toc a::before { content: counter(t) ". "; font-family: var(--mono); font-size: 12px; color: var(--signal-dk); }
.toc a:hover { color: var(--brand); }
@media (max-width: 900px) { .toc { position: static; } }

.legal__body { max-width: 760px; }
.legal__body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; margin-top: 2.2em; scroll-margin-top: 110px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin-top: 1.6em; font-size: 1.1rem; }
.legal__body p, .legal__body li { font-size: 16.5px; line-height: 1.72; color: #2C3A54; }
.legal__body ul, .legal__body ol { padding-left: 1.2em; }
.legal__body li { margin-bottom: .45em; }

.updated {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--mist); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; margin-bottom: 34px;
}

.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r); }

/* The table scrolls inside its own box. Say so, but only where it actually clips. */
.table-hint {
  display: none;
  font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: -1.2em 0 1.8em;
}
.table-hint::before { content: "\2194\00a0\00a0"; color: var(--signal-dk); }
@media (max-width: 720px) { .table-hint { display: block; } }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--mist); }
tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; background: var(--paper); font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(51,81,146,.12);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: 13.5px; color: var(--muted); }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.contact-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  background: var(--mist); display: grid; gap: 24px; align-content: start;
}
.contact-item__l { font: 500 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.contact-item a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  background: var(--ink);
  background-image: radial-gradient(700px 400px at 82% 30%, rgba(59,191,0,.16), transparent 62%), var(--grid-navy);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 76px);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center;
  color: #FFF;
}
.cta h2 { color: #FFF; margin-bottom: 14px; }
.cta p { color: var(--muted-dk); margin: 0; }
.cta__act { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__act { justify-content: flex-start; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr {
  background: var(--ink);
  background-image: var(--grid-navy);
  color: #B6C4DE;
  padding-top: clamp(60px, 7vw, 92px);
  font-size: 15px;
}
.ftr__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3.6vw, 52px);
  padding-bottom: 56px;
}
.ftr__brand img { height: 32px; width: auto; margin-bottom: 22px; }
.ftr__brand p { color: #93A5C6; font-size: 15px; max-width: 34ch; }

.ftr h4 {
  color: #FFF; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; margin: 0 0 20px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr a { color: #B6C4DE; text-decoration: none; transition: color .18s ease; }
.ftr a:hover { color: var(--signal); }

.ftr__addr { font-style: normal; color: #93A5C6; display: grid; gap: 14px; }
.ftr__addr strong { color: #FFF; font-weight: 600; display: block; margin-bottom: 3px; }

.ftr__social { display: flex; gap: 10px; margin-top: 26px; }
.ftr__social a {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line-dk);
  display: grid; place-items: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ftr__social a:hover { border-color: var(--signal); background: rgba(59,191,0,.1); transform: translateY(-2px); }
.ftr__social svg { width: 17px; height: 17px; fill: currentColor; }

.ftr__legal {
  border-top: 1px solid var(--line-dk);
  padding-block: 26px 34px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  font: 500 12.5px/1.6 var(--mono); letter-spacing: .03em; color: #7E90B3;
}
.ftr__legal .sep { color: var(--line-dk); }
.ftr__legal nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }

@media (max-width: 1080px) { .ftr__top { grid-template-columns: 1fr 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 680px)  { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__legal nav { margin-left: 0; } }

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookiebar {
  position: fixed; z-index: 150; left: var(--gut); right: var(--gut); bottom: 20px;
  max-width: 640px; margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  display: none;
}
.cookiebar.is-open { display: block; animation: slideUp .4s cubic-bezier(.2,.8,.3,1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookiebar p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.cookiebar strong { color: var(--text); }
.cookiebar__act { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .cookiebar.is-open { animation: none; } }

/* ==========================================================================
   Scroll reveal (progressive enhancement — content is visible without JS)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* Utilities ---------------------------------------------------------------- */
.center { text-align: center; }
.mt-l { margin-top: 44px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
