/* ==========================================================================
   Albek Marketing Ltd — main.css
   Single shared stylesheet. No preprocessor, no build step, no imports.

   Design system: warm paper, near-black ink, one ultramarine accent.
   Signature device: the triangle taken from the logo's "A". It appears as
   (a) a small apex mark on the top-right of panels, (b) the marker sitting
   on every section rule, (c) list bullets, (d) an oversized gradient
   watermark behind page headers. Nothing else is allowed to be decorative —
   the dot grid behind headers is texture, not a motif, and stays under 5%.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted latin-subset variable WOFF2, same origin.
   Two families, two files: each carries its whole weight range, so there
   are fewer requests than the old four static files at the same total size.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Two typefaces only: labels are the body face at 600 with wide tracking,
   not a third (monospace) family — a third voice read as clutter. */

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --accent: #2b40e8;      /* brand ultramarine. 6.6:1 on paper — AA for text
                             and buttons; white on it is 7.0:1               */
  --accent-dk: #2233cc;   /* 8.3:1 on paper — inline links in body copy      */
  --accent-lt: #96a5ff;   /* 8.2:1 on ink — accents on dark bands            */
  --accent-wash: #eef0fe;
  --accent-line: #d6dcfa;

  --ink: #101015;
  --ink-2: #17171d;       /* raised surfaces on dark bands                   */
  --line-dk: #2a2a34;     /* hairlines on dark bands                         */

  --g70: #4d4d55;         /* 8.0:1 on paper — leads                          */
  --g60: #55555e;         /* 7.0:1 on paper — standard body copy             */
  --g45: #6b6b75;         /* 5.0:1 — labels, captions                        */
  --g25: #cfccc3;         /* borders, outlined numerals — decorative only    */
  --line: #e8e5de;        /* hairlines on paper                              */
  --wash: #f1efe9;        /* recessed sections, chips                        */
  --paper: #faf9f6;       /* page background — warm, not clinical white      */
  --card: #ffffff;        /* panels sit a step brighter than the page        */

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --label: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 60px);
  --sect: clamp(60px, 9vw, 118px);
  --r: 16px;              /* cards and panels                                */
  --r-s: 10px;            /* chips, callouts, small furniture                */
  --r-btn: 6px;           /* every button, nav CTA and the burger — keep
                             these in step, a stray pill reads as a mistake  */

  --shadow-card: 0 1px 2px rgba(16, 16, 21, 0.03),
                 0 14px 34px -22px rgba(16, 16, 21, 0.12);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 6.2vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); line-height: 1.05; }
h3 { font-family: var(--body); font-size: clamp(1.14rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }

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

a { color: var(--accent-dk); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--r-s) 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
/* NB: .wrap owns padding-inline only. Never put a `padding` shorthand on an
   element that also carries .wrap — equal specificity, source order wins,
   and the horizontal padding silently dies. */

.sect { padding-block: var(--sect); }
.sect--wash {
  background: var(--wash);
  border-block: 1px solid var(--line);
}
/* Two washed/banded sections meeting would double the hairline */
.sect--wash + .sect--wash, .band + .sect--wash { border-top: 0; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: start;
}

.measure { max-width: 62ch; }

@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   5. Signature device — apex mark, rule marker, watermark
   -------------------------------------------------------------------------- */

/* the section rule: hairline with the triangle sitting on it */
.rule {
  position: relative;
  height: 9px;
  margin-bottom: clamp(26px, 3.6vw, 44px);
}
.rule::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  border-top: 1px solid var(--line);
}
.rule::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--accent);
}
.on-ink .rule::before { border-top-color: var(--line-dk); }
.on-ink .rule::after { border-bottom-color: var(--accent-lt); }

/* the apex mark: a small solid triangle in the top-right of every panel —
   the tip of the logo's "A", sitting quietly where the old corner tab was */
.tab { position: relative; }
.tab::after {
  content: "";
  position: absolute;
  top: 22px; right: 22px;
  width: 11px; height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.tab--lg::after { width: 15px; height: 13px; }
.tab--lt::after { background: var(--accent-lt); }

/* Oversized watermark triangle behind page headers. The gradient must reach
   full transparency well before the shape's own base, or the section's
   overflow:hidden cuts it off as a visible straight edge. */
.mark-bg {
  position: absolute;
  right: calc(var(--gut) * -0.6);
  bottom: -8%;
  width: min(46vw, 460px);
  aspect-ratio: 1 / 0.9;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(43, 64, 232, 0) 62%);
  opacity: 0.13;
  pointer-events: none;
}
.on-ink .mark-bg {
  opacity: 0.2;
  background: linear-gradient(180deg, var(--accent-lt) 0%, rgba(150, 165, 255, 0) 62%);
}

/* --------------------------------------------------------------------------
   6. Eyebrows, labels
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g45);
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75em;
}
.eyebrow .idx { font-family: var(--display); font-weight: 600; color: var(--accent); letter-spacing: 0.05em; }
.on-ink .eyebrow { color: #a8a8b3; }
.on-ink .eyebrow .idx { color: var(--accent-lt); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--g70);
}
.on-ink .lead { color: #c9c9d1; }

.small { font-size: 0.9rem; line-height: 1.55; color: var(--g60); }
.on-ink .small { color: #a8a8b3; }

/* Literal strings to look for or type — a web address, a menu path, the
   words in a browser warning. A chip rather than a third typeface. */
.mono {
  font-weight: 600;
  font-size: 0.94em;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.45em;
  /* long subdomains have no break opportunity and would overflow at 360px */
  overflow-wrap: anywhere;
}
.on-ink .mono {
  background: #23232c;
  border-color: #35353f;
  color: #fff;
}
.panel--blue .mono { background: #fff; border-color: var(--accent-line); }

/* --------------------------------------------------------------------------
   7. Buttons — one filled and one outlined, both on --r-btn
   -------------------------------------------------------------------------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3vw, 36px); }

.btn {
  --bg: var(--accent);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.99rem;
  line-height: 1;
  padding: 1em 1.55em;
  border: 1px solid var(--bg);
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  --bg: var(--accent-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(43, 64, 232, 0.55);
}
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--g25); }
.btn--ghost:hover {
  --bg: var(--card);
  --fg: var(--ink);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(16, 16, 21, 0.35);
}

.on-ink .btn--ghost { --fg: #fff; border-color: #3a3a45; }
.on-ink .btn--ghost:hover { --bg: var(--ink-2); --fg: #fff; color: #fff; border-color: #6a6a78; box-shadow: none; }

/* --------------------------------------------------------------------------
   8. Header + navigation
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  /* above the mobile nav panel (80) and its scrim (70), so the burger stays
     reachable as the close control while the panel is open */
  z-index: 100;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { width: 36px; height: 36px; }
.brand__t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 28px);
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  display: block;
  color: var(--g60);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 0;
  /* Seven items: without this they break inside themselves ("Mobile /
     rebuilds") long before the row itself runs out of width. */
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav .nav__cta a {
  background: var(--accent);
  color: #fff;
  padding: 0.7em 1.3em;
  border-radius: var(--r-btn);
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav .nav__cta a:hover { background: var(--accent-dk); color: #fff; }
.nav .nav__cta a[aria-current="page"]::after { display: none; }

.burger { display: none; }
.nav__foot { display: none; }
.nav-scrim { display: none; }

/* --------------------------------------------------------------------------
   8b. Mobile navigation — two separate behaviours. Switches at 1100px, not
   940: seven nav items plus the wordmark stop fitting on one row below that.

   NO JS: a plain stacked list in normal flow. Unprefixed rules, nothing
   hidden, no button needed. WITH JS: <html> carries .js and the same markup
   becomes a panel sliding in from the right, driven by .nav-open on <html>.

   The panel hangs below the header rather than covering it, so the close
   control stays put — hence the measured --hdr-h from nav.js.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  /* No backdrop-filter here. A filtered element becomes the containing block
     for its fixed-position descendants, and the nav panel lives inside the
     header — with the blur on, the panel collapsed to the header's own height
     instead of running to the bottom of the viewport. Solid background
     instead. */
  .hdr {
    backdrop-filter: none;
    background: var(--paper);
  }

  .hdr__in { flex-wrap: wrap; }
  .nav { width: 100%; order: 3; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-block: 6px 14px;
  }
  .nav a { padding: 12px 0; font-size: 1.02rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-dk); }
  .nav .nav__cta { margin-top: 10px; }
  .nav .nav__cta a { display: inline-block; }

  /* ---- the trigger ---- */
  .js .hdr__in { flex-wrap: nowrap; }
  .js .burger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 1px solid var(--g25);
    border-radius: var(--r-btn);
    padding: 9px 15px;
    font: 600 0.86rem/1 var(--body);
    letter-spacing: 0.02em;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .js .burger:hover { border-color: var(--ink); }
  .js.nav-open .burger { border-color: var(--ink); background: var(--wash); }

  /* Three bars, each 2px and offset by exactly 6px so the gaps are equal
     (borders on a fixed-height box put the middle bar off-centre). */
  .js .burger span {
    display: block;
    position: relative;
    width: 17px;
    height: 2px;
    background: currentColor;
    transition: background 0.2s ease;
  }
  .js .burger span::before,
  .js .burger span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), top 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .js .burger span::before { top: -6px; }
  .js .burger span::after { top: 6px; }
  .js.nav-open .burger span { background: transparent; }
  .js.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
  .js.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

  /* ---- the dimmed page behind ---- */
  .js .nav-scrim {
    display: none;
    position: fixed;
    inset: var(--hdr-h, 72px) 0 0 0;
    z-index: 70;
    background: rgba(16, 16, 21, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .js.nav-visible .nav-scrim { display: block; }
  .js.nav-open .nav-scrim { opacity: 1; }

  /* ---- the panel ----
     Closed it is display:none, not merely translated away: a fixed element
     parked past the right edge still counts toward documentElement
     .scrollWidth, which added 313px of phantom width to every page. nav.js
     adds .nav-visible, flushes style, then .nav-open, so it still animates. */
  .js .nav {
    position: fixed;
    top: var(--hdr-h, 72px);
    right: 0;
    bottom: 0;
    width: min(86vw, 350px);
    order: 0;
    z-index: 80;
    display: none;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(420px 300px at 100% 0%, rgba(150, 165, 255, 0.1), transparent 65%),
      var(--ink);
    border-left: 1px solid var(--line-dk);
    box-shadow: -26px 0 64px rgba(16, 16, 21, 0.3);
    padding: clamp(16px, 4vw, 24px) clamp(20px, 6vw, 30px) 30px;
    transform: translateX(101%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .js.nav-visible .nav { display: flex; }
  .js.nav-open .nav { transform: none; }

  /* the signature triangle, oversized and very faint, bottom-left */
  .js .nav::after {
    content: "";
    position: absolute;
    left: -34px;
    bottom: 10px;
    width: 210px;
    aspect-ratio: 1 / 0.9;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, var(--accent-lt) 0%, rgba(150, 165, 255, 0) 62%);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
  }

  .js .nav ul {
    counter-reset: navi;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 0;
    padding: 0;
    margin: 0;
  }
  .js .nav li {
    counter-increment: navi;
    border-bottom: 1px solid #202028;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .js.nav-open .nav li { opacity: 1; transform: none; }
  .js.nav-open .nav li:nth-child(1) { transition-delay: 0.07s; }
  .js.nav-open .nav li:nth-child(2) { transition-delay: 0.11s; }
  .js.nav-open .nav li:nth-child(3) { transition-delay: 0.15s; }
  .js.nav-open .nav li:nth-child(4) { transition-delay: 0.19s; }
  .js.nav-open .nav li:nth-child(5) { transition-delay: 0.23s; }
  .js.nav-open .nav li:nth-child(6) { transition-delay: 0.27s; }
  .js.nav-open .nav li:nth-child(7) { transition-delay: 0.31s; }

  /* Font is smaller than the display sizing elsewhere; padding is scaled up to
     compensate so each row stays a comfortable touch target. */
  .js .nav a {
    display: block;
    padding: 0.72em 0 0.8em;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.02rem, 4vw, 1.2rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    transition: color 0.15s ease;
  }
  .js .nav a::before {
    content: counter(navi, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--accent-lt);
    margin-bottom: 0.4rem;
  }
  .js .nav a:hover { color: var(--accent-lt); }
  .js .nav a[aria-current="page"] { color: var(--accent-lt); }

  /* Contact is the one call to action, so it stops being a list row */
  .js .nav .nav__cta {
    border-bottom: 0;
    margin-top: 26px;
  }
  .js .nav .nav__cta a {
    display: block;
    background: var(--accent);
    color: #fff;
    text-align: center;
    border-radius: var(--r-btn);
    padding: 0.9em 1em;
    font-family: var(--body);
    font-size: 1.02rem;
    letter-spacing: 0;
  }
  .js .nav .nav__cta a::before { display: none; }
  .js .nav .nav__cta a:hover { background: var(--accent-dk); color: #fff; }

  .js .nav__foot {
    display: block;
    margin: auto 0 0;
    padding-top: 28px;
    font-size: 0.76rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: #8a8a96;
  }
  .js .nav__foot strong { display: block; color: #c9c9d1; font-weight: 600; }
}

/* Page must not scroll behind an open panel. */
.js.nav-open { overflow: hidden; }

/* On the narrowest phones the enlarged wordmark and the Menu button no longer
   fit on one row, and the button drops to a line of its own. Step both down
   rather than let the header grow to 150px tall. */
@media (max-width: 460px) {
  .brand { gap: 9px; }
  .brand img { width: 32px; height: 32px; }
  .brand__t { font-size: 1rem; }
  .js .burger { padding: 8px 13px; font-size: 0.82rem; }
}

/* --------------------------------------------------------------------------
   9. Hero + page headers
   Shared treatment: a faint dot grid for texture and one soft ultramarine
   glow in the top corner. Both sit under 8% opacity — atmosphere, not decor.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8.5vw, 112px) clamp(60px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(1100px 520px at 88% -12%, rgba(43, 64, 232, 0.08), transparent 62%),
    radial-gradient(rgba(16, 16, 21, 0.05) 1px, transparent 1.4px);
  background-size: auto, 24px 24px;
}
.hero__grid {
  display: grid;
  gap: clamp(34px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { margin-bottom: 0.42em; }
.hero .lead { max-width: 46ch; }

/* The index hero card flips dark: one ink panel against the paper page is
   the loudest thing above the fold, so the guarantees list reads first. */
.hero__grid .panel {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-color: var(--ink);
  color: #c9c9d1;
  box-shadow: 0 30px 70px -32px rgba(16, 16, 21, 0.55);
}
.hero__grid .panel .eyebrow { color: #a8a8b3; }
.hero__grid .panel .eyebrow .idx { color: var(--accent-lt); }
.hero__grid .panel.tab::after { background: var(--accent-lt); }
.hero__grid .panel .rows > div { border-top-color: var(--line-dk); }
.hero__grid .panel .rows dt { color: #a8a8b3; }
.hero__grid .panel .rows dd { color: #c9c9d1; }
.hero__grid .panel .rows dd strong { color: #fff; }

.phdr {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(50px, 6.5vw, 92px);
  background-image:
    radial-gradient(900px 420px at 90% -14%, rgba(43, 64, 232, 0.07), transparent 62%),
    radial-gradient(rgba(16, 16, 21, 0.05) 1px, transparent 1.4px);
  background-size: auto, 24px 24px;
}
.phdr h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-bottom: 0.4em; }
.phdr .lead { max-width: 54ch; }
.phdr__in { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   10. Panels / cards
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
}
.panel--wash { background: var(--wash); border-color: var(--line); box-shadow: none; }
.panel--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel--blue { background: var(--accent-wash); border-color: var(--accent-line); box-shadow: none; }
.panel h3 { margin-bottom: 0.55em; }
.panel > :last-child { margin-bottom: 0; }

.card__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.1rem;
}

/* display:flex is load-bearing: .ico is a <span>, and width/height are
   ignored on an inline box, letting the SVG render at full size. */
.ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-wash);
  color: var(--accent-dk);
  margin-bottom: 1.2rem;
}
.ico svg { width: 26px; height: 26px; display: block; }

.on-ink .card__n { color: var(--accent-lt); }

/* --------------------------------------------------------------------------
   11. Lists
   -------------------------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.65em;
  margin-bottom: 0.66em;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--accent);
}
.on-ink .ticks li::before { border-bottom-color: var(--accent-lt); }
.ticks li:last-child { margin-bottom: 0; }

.nots { list-style: none; margin: 0; padding: 0; }
.nots li {
  position: relative;
  padding-left: 1.65em;
  margin-bottom: 0.66em;
  color: var(--g70);
}
.nots li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 10px; height: 2px;
  border-radius: 1px;
  background: var(--g25);
}
.on-ink .nots li { color: #c9c9d1; }
.on-ink .nots li strong { color: #fff; }

/* definition rows — used for specs and company details */
.rows { margin: 0; }
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 8px 20px;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows dt {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--g45);
  padding-top: 0.38em;
}
.rows dd { margin: 0; font-weight: 400; }
.rows dd strong { font-weight: 600; }
.on-ink .rows > div { border-top-color: var(--line-dk); }
.on-ink .rows dt { color: #a8a8b3; }
@media (max-width: 520px) {
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rows dt { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   12. Steps (How I work) — outlined numerals where the browser can draw
   them, solid grey where it cannot
   -------------------------------------------------------------------------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding-block: clamp(28px, 3.6vw, 44px);
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.9;
  color: var(--g25);
  letter-spacing: -0.03em;
}
@supports (-webkit-text-stroke: 1px #000) {
  .step__n { color: transparent; -webkit-text-stroke: 1.3px var(--g25); }
}
.step h3 { margin-bottom: 0.6em; }
.step__meta {
  margin-top: 1.35rem;
  display: grid;
  gap: 14px 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.step__meta > div {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.step__meta h4 {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g45);
  margin: 0 0 0.35rem;
}
.step__meta p { font-size: 0.95rem; margin: 0; color: var(--g70); }
@media (max-width: 760px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step__meta { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */
.price {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 34px);
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.price--lead {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow-card);
}
.price__amt {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.15rem;
}
.price__per {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--g45);
  margin-bottom: 1.15rem;
}
.price h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
/* Own class, not a bare `.price p`: that descendant selector scores (0,1,1)
   and silently outranks .price__amt (0,1,0), flattening the price. */
.price__note { color: var(--g70); font-size: 0.97rem; margin: 0; }

/* On a dark band the grey label and body colours fall under 4.5:1, so they
   are lifted rather than left to inherit. */
.on-ink .price__amt { color: #fff; }
.on-ink .price__per { color: #a8a8b3; }
.on-ink .price h3 { color: var(--accent-lt); }
.on-ink .price__note { color: #c9c9d1; }
.on-ink .price--lead {
  border-color: var(--accent-lt);
  box-shadow: 0 0 0 4px rgba(150, 165, 255, 0.14);
}

/* --------------------------------------------------------------------------
   14. Dark band
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 90% -10%, rgba(150, 165, 255, 0.1), transparent 62%),
    var(--ink);
  color: #fff;
}
.band h2, .band h3, .band h4 { color: #fff; }
.band a:not(.btn) { color: var(--accent-lt); }
.band a:not(.btn):hover { color: #fff; }
.band .panel--ink { background: var(--ink-2); border-color: var(--line-dk); box-shadow: none; }

/* --------------------------------------------------------------------------
   15. Phone diagram (mobile-rebuilds page) — pure CSS/SVG, no photographs
   -------------------------------------------------------------------------- */
.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.phone__cap {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g45);
  margin: 0 0 0.85rem;
}
.phone__cap b { color: var(--ink); font-weight: 600; }
.phone {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  padding: 10px;
  max-width: 260px;
  overflow: hidden;
  box-shadow: 0 22px 44px -28px rgba(16, 16, 21, 0.4);
}
.phone__scr {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--wash);
  aspect-ratio: 9 / 17;
}
.phone__scr > * { position: absolute; }

/* left phone: a desktop-width page crammed into a 360px viewport */
.bad .phone__scr { background: #fff; }
.bad .row { background: #d6d3ca; height: 4px; border-radius: 2px; }
.bad .blk { background: var(--wash); }
.bad .tinytext { background: #d6d3ca; height: 2px; border-radius: 1px; }

.good .phone__scr { background: #fff; }
.good .row { background: #d6d3ca; height: 7px; border-radius: 3px; }
.good .hd { background: var(--ink); }
.good .cta { background: var(--accent); border-radius: 4px; }

@media (max-width: 560px) {
  .phones { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 220px; }
}

/* --------------------------------------------------------------------------
   16. Email component
   -------------------------------------------------------------------------- */
.mail { word-break: break-word; }
.mail a { text-decoration-thickness: 2px; }
/* In a definition row the column is narrow; at body size the address wraps
   mid-domain, which reads as a typo. Shrink it just enough to sit on one line. */
.rows dd.mail { font-size: 0.9rem; }

.mail--hero {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: block;
  margin: 0.15em 0 0;
}
.mail--hero a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.14em; }
.mail--hero a:hover { color: var(--accent); }
.on-ink .mail--hero a { color: #fff; text-decoration-color: var(--accent-lt); }
.on-ink .mail--hero a:hover { color: var(--accent-lt); }
.mail--hero noscript { font-size: 0.55em; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   17. Prose (privacy / terms)
   -------------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-top: 2.6em;
  margin-bottom: 0.55em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 1.4em; }
.prose h3 { margin-top: 2em; margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose > p:first-child { color: var(--g70); }

.toc {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 22px 26px;
  margin-bottom: 2.4rem;
}
.toc h2 {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g45);
  border: 0;
  margin: 0 0 0.9rem;
  padding: 0;
}
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.96rem; }
.toc li { margin-bottom: 0.34em; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.ftr {
  background:
    radial-gradient(720px 320px at 10% 0%, rgba(150, 165, 255, 0.07), transparent 62%),
    var(--ink);
  color: #c9c9d1;
  padding-block: clamp(48px, 6vw, 76px) 34px;
  font-size: 0.95rem;
}
.ftr a { color: #c9c9d1; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .small { color: #a8a8b3; }
/* h3, not h2: these are column labels inside the footer, and at h2 they sat at
   the same outline level as real page sections. line-height is pinned because
   the base h3 rule uses 1.25 where h2 used 1.05 — the look must not change. */
.ftr h3 {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1.02;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9494a0;
  margin: 0 0 1.1rem;
}
.ftr__top {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 0.6em; }
/* No logo: the mark sits on white and would punch a white square out of the
   near-black footer. The name is set in the display face instead. */
.ftr__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1rem;
}
.ftr address { font-style: normal; line-height: 1.6; }

/* Companies Act 2006 s.82 disclosure — required on every page */
.legal {
  border-top: 1px solid var(--line-dk);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #a3a3af;
}
.legal p { margin: 0; max-width: 78ch; }
.legal__links { display: flex; flex-wrap: wrap; gap: 10px 20px; }

@media (max-width: 860px) {
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   19. Odds and ends
   -------------------------------------------------------------------------- */
.callout {
  position: relative;
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.4vw, 28px);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}
.callout > :last-child { margin-bottom: 0; }

.lockup { max-width: 190px; border: 1px solid var(--line); border-radius: var(--r-s); }

.stack > * + * { margin-top: clamp(18px, 2.2vw, 26px); }
.mt-l { margin-top: clamp(30px, 4vw, 52px); }
.mt-s { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   20. Motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    /* also zero the delays, or the nav panel's staggered entrance and its
       delayed visibility flip would still be felt as lag */
    transition-delay: 0s !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

@media print {
  .hdr, .skip, .btns, .mark-bg { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .ftr { background: none; color: #000; }
  .ftr a, .ftr h3, .legal { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
