/* ==========================================================================
   Dropora Labs — design system
   One stylesheet for the whole site. No build step, no external requests.

   Contents
     1  Fonts
     2  Tokens
     3  Reset
     4  Base elements and page background
     5  Typography utilities
     6  Layout
     7  Components
     8  Motion
     9  Utilities
    10  Reduced motion
    11  Print
   ========================================================================== */


/* ==========================================================================
   1  Fonts
   Outfit, variable, self-hosted. The scale below is tuned so the site still
   reads correctly on the system fallback stack if the woff2 is missing.
   ========================================================================== */

/* Latin. No unicode-range, so this face is the catch-all. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-variable.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Latin Extended. Declared second so it wins for the codepoints it covers,
   which keeps accented names and the wider currency symbols in Outfit
   instead of dropping them to the fallback stack. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-variable-ext.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   2  Tokens
   ========================================================================== */

:root {
  /* Brand colour — sampled from the styleguide, do not alter */
  --night: #040D1C;         /* page background */
  --abyss: #010812;         /* deepest: footer, inset wells */
  --raised: #0A1930;        /* cards, inputs, raised panels */
  --orange: #FF8A26;        /* PRIMARY ACTION only */
  --orange-bright: #FFA54F; /* hover / highlight on orange */
  --cyan: #39E2FF;          /* interaction and information */
  --cyan-deep: #13B7DC;     /* cyan pressed / secondary */
  --heading: #F4F7FC;       /* headings */
  --body: #A8B5C8;          /* body copy */
  --muted: #70809A;         /* metadata, labels, captions */

  /* Derived */
  --ink-on-orange: #1A0F02;
  --hairline: rgba(168, 181, 200, 0.14);
  --border-card: rgba(168, 181, 200, 0.10);
  --border-card-hover: rgba(57, 226, 255, 0.38);
  --border-field: rgba(168, 181, 200, 0.16);
  --border-btn: rgba(168, 181, 200, 0.26);
  --danger: #FF6B81;
  --success: #3DDC97;
  --cyan-wash: rgba(57, 226, 255, 0.08);
  --cyan-wash-strong: rgba(57, 226, 255, 0.16);
  --orange-wash: rgba(255, 138, 38, 0.10);
  --well: rgba(1, 8, 18, 0.55);

  /* Type */
  --font-sans: "Outfit", "Segoe UI Variable Display", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --fs-display: clamp(2.75rem, 6.2vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 4.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.6vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;
  --fs-eyebrow: 0.75rem;
  --fs-ui: 0.9375rem;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 72px;
  --sp-10: 96px;

  /* Vertical rhythm. One token per band weight, so the whole site retunes
     from here. --section-pad is the default; the hero and the CTA band take
     --section-pad-lg because they earn the extra room, and a list band that
     only carries a strip of metadata takes --section-pad-tight.
     --section-gap is the space between a section header and the body it
     introduces, and between that body and a trailing call to action. */
  --section-pad: clamp(56px, 6.2vw, 88px);
  --section-pad-lg: clamp(68px, 7.2vw, 104px);
  --section-pad-tight: clamp(24px, 2.2vw, 32px);
  --section-gap: clamp(24px, 2.2vw, 32px);
  --gutter: clamp(20px, 5vw, 40px);
  --gap: 24px;

  /* Containers */
  --w-container: 1200px;
  --w-narrow: 760px;
  --w-prose: 68ch;
  --w-heading: 22ch;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadow */
  --sh-card: 0 1px 0 rgba(255, 255, 255, 0.02);
  --sh-edge: 0 0 0 1px rgba(57, 226, 255, 0.18),
             0 18px 50px -28px rgba(57, 226, 255, 0.45);
  --sh-orange: 0 10px 30px -14px rgba(255, 138, 38, 0.65);
  --sh-panel: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 3px rgba(57, 226, 255, 0.16);
  --ring-danger: 0 0 0 3px rgba(255, 107, 129, 0.16);

  /* Motion — these are flattened in the reduced-motion block,
     which is how the whole site opts out without any !important. */
  --t-fast: 160ms;
  --t-base: 200ms;
  --t-slow: 520ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: -2px;
  --lift-sm: -1px;
  --reveal-y: 14px;
  --reveal-delay: 0ms;

  /* Depth */
  --z-bg: -1;
  --z-base: 1;
  --z-sticky: 50;
  --z-panel: 80;
  --z-skip: 100;
}


/* ==========================================================================
   3  Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 2;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, pre {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Doubled on purpose. Components below set `display` with a single class
   (.card, .field, .grid, .stack ...) and, at equal specificity, the later
   rule wins, which would make a `hidden` element render anyway. Repeating
   the attribute lifts this to 0-2-0 so `hidden` always wins, without
   resorting to !important. */
[hidden][hidden] {
  display: none;
}

:target {
  scroll-margin-block-start: 96px;
}


/* ==========================================================================
   4  Base elements and page background

   The two background layers live on body::before (tiled circuit traces) and
   body::after (the cyan and orange glows). html carries the flat colour so
   the fixed pseudo-elements at z-index -1 are never painted over.
   ========================================================================== */

html {
  background-color: var(--night);
}

body {
  position: relative;
  min-block-size: 100vh;
  /* Sticky footer. min-block-size alone stretches the body but leaves the
     footer wherever the content happens to end, so a short page (404,
     thank-you, contact) on a tall screen shows a band of empty background
     below it. A flex column pushes the footer to the bottom instead.
     body::before and body::after are position: fixed, so they stay out of
     flow and never become flex items. */
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--body);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* A long email address or URL must break rather than push a card past the
     viewport at 360px. Only applies when a word would otherwise overflow, so
     normal copy is unaffected. */
  overflow-wrap: break-word;
}

/* The only growing child, so the footer is pushed to the bottom on short
   pages. flex-basis stays auto so tall pages size from their content. */
body > main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  background-image: url("/assets/img/circuit.svg");
  background-repeat: repeat;
  background-size: 360px 360px;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  background-image:
    radial-gradient(60vw 52vw at 88% -6%, rgba(19, 183, 220, 0.16), transparent 68%),
    radial-gradient(58vw 50vw at 6% 104%, rgba(255, 138, 38, 0.10), transparent 70%);
  pointer-events: none;
}

/* Scroll is locked on body while the mobile panel is open. */
body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  text-wrap: balance;
  max-inline-size: var(--w-heading);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-inline-size: 26ch;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

h5,
h6 {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  max-inline-size: var(--w-prose);
  text-wrap: pretty;
}

a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) ease;
}

a:hover {
  color: var(--cyan-deep);
}

ul,
ol {
  padding-inline-start: 1.25em;
}

li {
  margin-block-end: var(--sp-2);
}

strong,
b {
  color: var(--heading);
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: var(--fs-small);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--cyan);
  background-color: var(--well);
  border: 1px solid var(--border-card);
  border-radius: 5px;
  padding: 0.1em 0.38em;
}

pre {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--body);
  background-color: var(--abyss);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  overflow-x: auto;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

blockquote {
  border-inline-start: 2px solid var(--cyan);
  padding-inline-start: var(--sp-5);
  color: var(--heading);
  font-size: 1.0625rem;
  line-height: 1.6;
}

hr {
  border: 0;
  block-size: 1px;
  background-color: var(--hairline);
  margin-block: var(--sp-7);
}

figure img {
  border-radius: var(--r-md);
}

figcaption {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-block-start: var(--sp-3);
}

::selection {
  background-color: rgba(57, 226, 255, 0.26);
  color: var(--heading);
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}


/* ==========================================================================
   5  Typography utilities
   ========================================================================== */

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--heading);
  max-inline-size: 18ch;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  max-inline-size: 56ch;
}

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-block-end: var(--sp-3);
}

.small {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* Long-form copy. Everything inside is styled here so article pages need
   no extra classes on each element. */
.prose {
  max-inline-size: var(--w-prose);
  color: var(--body);
}

.prose > * + * {
  margin-block-start: var(--sp-5);
}

.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.015em;
  margin-block-start: var(--sp-8);
  max-inline-size: 24ch;
}

.prose h3 {
  font-size: 1.125rem;
  margin-block-start: var(--sp-7);
}

.prose h2 + *,
.prose h3 + * {
  margin-block-start: var(--sp-4);
}

.prose p {
  max-inline-size: none;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.35em;
}

.prose ul {
  list-style: none;
  padding-inline-start: 0;
}

.prose ul > li {
  position: relative;
  padding-inline-start: 1.35em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.25em;
  inset-block-start: 0.72em;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background-color: var(--cyan);
}

.prose ol > li::marker {
  color: var(--muted);
}

.prose a {
  color: var(--cyan);
}

.prose strong {
  color: var(--heading);
}

.prose blockquote {
  margin-block: var(--sp-6);
}

.prose img {
  border-radius: var(--r-md);
  margin-block: var(--sp-6);
}

.prose hr {
  margin-block: var(--sp-8);
}


/* ==========================================================================
   6  Layout
   ========================================================================== */

.container {
  inline-size: 100%;
  max-inline-size: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-inline-size: calc(var(--w-narrow) + (var(--gutter) * 2));
}

.section {
  position: relative;
  z-index: var(--z-base);
  padding-block: var(--section-pad);
}

.section--tight {
  padding-block: var(--section-pad-tight);
}

/* Hero: a stronger glow sits over the shared page background. */
.section--hero {
  position: relative;
  z-index: var(--z-base);
  padding-block: var(--section-pad);
  border-block-end: 1px solid var(--hairline);
  isolation: isolate;
}

.section--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(44vw 40vw at 78% 18%, rgba(19, 183, 220, 0.20), transparent 70%),
    radial-gradient(38vw 36vw at 2% 86%, rgba(255, 138, 38, 0.10), transparent 72%);
  pointer-events: none;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Vertical rhythm, owl selector. Override the gap per instance with
   style="--stack-gap: 32px". */
.stack {
  --stack-gap: var(--sp-5);
  display: block;
}

.stack > * + * {
  margin-block-start: var(--stack-gap);
}

/* The standard rhythm inside a section: header, body, trailing CTA.
   Put it on the same element as .stack and leave --stack-gap alone. */
.stack--section {
  --stack-gap: var(--section-gap);
}

/* The trailing CTA belongs to the grid above it, so it sits closer than a
   new block would. */
.stack--section > .section-cta {
  margin-block-start: var(--sp-5);
}

.cluster {
  --cluster-gap: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap);
}

/* Asymmetric two-column band: copy beside art or a panel. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.divider {
  block-size: 1px;
  border: 0;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--hairline) 18%,
    var(--hairline) 82%,
    transparent
  );
  margin-block: 0;
}


/* --- Section header ------------------------------------------------------

   The two-column section introduction. Below 1024px it is a plain stack and
   reads exactly as a bare eyebrow / h2 / lead did. From 1024px the eyebrow
   and heading hold the left column, the lead moves into a second column on
   the right, bottom-aligned with the heading and separated by a hairline, so
   the band uses the whole 1200px container instead of a 554px strip at the
   left edge.

   .section-head--solo is for a section with no lead: the heading takes the
   width rather than leaving the right half empty.
   ------------------------------------------------------------------------- */

.section-head {
  display: grid;
  gap: var(--sp-4);
}

/* A block container, so .eyebrow keeps its own margin and the two children
   sit on the normal text rhythm. */
.section-head__title > :first-child {
  margin-block-start: 0;
}

.section-head__lead {
  margin: 0;
}

.section-head--solo h2,
.section-head--solo h3 {
  max-inline-size: 30ch;
}

@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    column-gap: clamp(32px, 4vw, 56px);
  }

  /* Stretching the column and pushing the text down inside it is what puts
     the lead's baseline near the foot of the heading while still letting the
     hairline run the full height of the header. */
  .section-head__lead {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-inline-start: 1px solid var(--hairline);
    padding-inline-start: clamp(32px, 4vw, 56px);
    max-inline-size: none;
  }

  .section-head--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- Section call to action ----------------------------------------------

   The trailing link under a grid. A row, so an explanatory note sits beside
   the button instead of stacking above it and spending another 60px.
   ------------------------------------------------------------------------- */

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
}

.section-cta__note {
  margin: 0;
  max-inline-size: 58ch;
  flex: 1 1 22ch;
}

/* A hairline running from the button to the container edge, so a lone
   button reads as the end of the section rather than as a stray link.
   Use it only when there is no .section-cta__note to fill the row. */
.section-cta--rule::after {
  content: "";
  flex: 1 1 64px;
  block-size: 1px;
  background-image: linear-gradient(to right, var(--hairline), transparent);
}

/* Four across needs the full 1200px container to stay legible. Below that it
   goes two-up, which is still an even arrangement for 4 cards: no breakpoint
   leaves a single card alone on the last row. */
@media (max-width: 1199px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --gap: 16px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--even {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   7  Components
   ========================================================================== */

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-block-start: var(--sp-2);
  inset-inline-start: var(--sp-2);
  z-index: var(--z-skip);
  transform: translateY(-200%);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background-color: var(--orange);
  color: var(--ink-on-orange);
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--ink-on-orange);
}


/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  background-color: rgba(4, 13, 28, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--hairline);
  transition: background-color var(--t-base) ease,
              border-color var(--t-base) ease;
}

.site-header.is-scrolled {
  background-color: rgba(4, 13, 28, 0.92);
  border-block-end-color: rgba(168, 181, 200, 0.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  block-size: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  flex: 0 0 auto;
}

.brand__mark {
  inline-size: 28px;
  block-size: 28px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.brand__word {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--heading);
}

.brand__word span {
  color: var(--orange);
}

.brand:hover .brand__word {
  color: var(--heading);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-inline: auto;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.nav__link:hover {
  color: var(--heading);
}

.nav__link[aria-current="page"] {
  color: var(--heading);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -6px;
  block-size: 2px;
  border-radius: 2px;
  background-color: var(--cyan);
}

.site-header__cta {
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.nav + .site-header__cta {
  margin-inline-start: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  inline-size: 44px;
  block-size: 44px;
  margin-inline-start: auto;
  border: 1px solid var(--border-btn);
  border-radius: var(--r-sm);
  color: var(--heading);
  transition: border-color var(--t-fast) ease,
              background-color var(--t-fast) ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  inline-size: 18px;
  block-size: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform var(--t-base) var(--ease),
              opacity var(--t-fast) ease;
}

.nav-toggle__bars {
  inset-block-start: 50%;
  inset-inline-start: 50%;
  margin-inline-start: -9px;
  margin-block-start: -1px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  inset-inline-start: 0;
}

.nav-toggle__bars::before {
  inset-block-start: -6px;
}

.nav-toggle__bars::after {
  inset-block-start: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Full-screen mobile panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-9) var(--gutter) var(--sp-8);
  background-color: rgba(4, 13, 28, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility is given a duration, not a delay: a discrete property stays
     at "visible" for the whole duration and flips at the end, so the panel
     fades out and only then leaves the tab order. */
  transition: opacity var(--t-base) ease,
              visibility var(--t-base) step-end;
  /* The slide happens on the children, not on this box. A transform here
     would push the fixed panel past the viewport and give the document a
     horizontal scrollbar while the panel is closed. */
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-base) ease,
              visibility 0s;
}

.mobile-panel__nav,
.mobile-panel__foot {
  transform: translateX(18px);
  transition: transform var(--t-base) var(--ease);
}

.mobile-panel.is-open .mobile-panel__nav,
.mobile-panel.is-open .mobile-panel__foot {
  transform: none;
}

.mobile-panel.is-open .mobile-panel__foot {
  transition-delay: 60ms;
}

/* On phones the blur is replaced with a solid fill. A blurred bar that stays fixed at the top
   has to be blurred again on every frame of a scroll, and that is what makes the page feel
   laggy on small devices. The header fill is a little more opaque than the blur it replaces,
   so the page behind it stays out of the way. The panel already has a near-opaque fill, so it
   only loses its blur. Desktop keeps the blur. This block must come after the rules it
   overrides, because the same selectors with the same specificity would otherwise win. */
@media (max-width: 768px) {
  .site-header {
    background-color: rgba(4, 13, 28, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Scrolled state gets a higher fill than the top of the page, as it does on desktop. */
  .site-header.is-scrolled {
    background-color: rgba(4, 13, 28, 0.97);
  }

  /* The open menu is solid. A see-through panel let the animated hero show faintly behind
     the links, which read as noise, and blurring it would redraw the hero every frame.
     The logo and the close button sit above the panel, so the menu can always be closed. */
  .mobile-panel {
    background-color: var(--night);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header .brand,
  .site-header .nav-toggle {
    position: relative;
    z-index: 90;
  }
}

.mobile-panel__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-inline-size: 420px;
  inline-size: 100%;
  margin-inline: auto;
}

.mobile-panel__link {
  display: block;
  padding-block: var(--sp-3);
  border-block-end: 1px solid var(--hairline);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.mobile-panel__link:hover {
  color: var(--cyan);
}

.mobile-panel__link[aria-current="page"] {
  color: var(--cyan);
}

.mobile-panel__foot {
  max-inline-size: 420px;
  inline-size: 100%;
  margin-inline: auto;
  margin-block-start: var(--sp-7);
}

@media (max-width: 1024px) {
  /* With JavaScript the nav collapses to the hamburger. Without it, the
     links stay visible and wrap, so the site is still navigable. */
  html.js .nav,
  html.js .site-header__cta {
    display: none;
  }

  html.js .nav-toggle {
    display: block;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    block-size: auto;
    padding-block: var(--sp-3);
  }

  html:not(.js) .nav {
    inline-size: 100%;
    margin-inline: 0;
    flex-wrap: wrap;
    gap: var(--sp-4) var(--sp-5);
  }

  html:not(.js) .mobile-panel {
    display: none;
  }
}


/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) ease,
              border-color var(--t-fast) ease,
              color var(--t-fast) ease,
              box-shadow var(--t-base) ease,
              transform var(--t-base) var(--ease);
}

.btn svg {
  inline-size: 18px;
  block-size: 18px;
  flex: 0 0 auto;
}

.btn--primary {
  background-color: var(--orange);
  color: var(--ink-on-orange);
}

.btn--primary:hover {
  background-color: var(--orange-bright);
  color: var(--ink-on-orange);
  transform: translateY(var(--lift-sm));
  box-shadow: var(--sh-orange);
}

.btn--primary:active {
  background-color: var(--orange);
  transform: translateY(0);
  box-shadow: none;
}

.btn--secondary {
  background-color: transparent;
  border-color: var(--border-btn);
  color: var(--heading);
}

.btn--secondary:hover {
  border-color: var(--cyan);
  color: var(--heading);
  transform: translateY(var(--lift-sm));
}

.btn--secondary:active {
  border-color: var(--cyan-deep);
  transform: translateY(0);
}

.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--body);
  padding-inline: 10px;
}

.btn--ghost:hover {
  color: var(--heading);
}

/* Trailing glyph on a "see all" style button. It nudges on hover, which is
   enough affordance to stop these reading as afterthoughts. */
.btn__arrow {
  transition: transform var(--t-base) var(--ease);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(3px);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn--block {
  display: flex;
  inline-size: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}


/* --- Card ---------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background-color: var(--raised);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  transition: border-color var(--t-base) ease,
              box-shadow var(--t-base) ease,
              transform var(--t-base) ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--border-card-hover);
  box-shadow: var(--sh-edge);
  transform: translateY(var(--lift));
}

.card__icon {
  inline-size: 22px;
  block-size: 22px;
  color: var(--cyan);
  margin-block-end: var(--sp-1);
}

.card__icon svg {
  inline-size: 100%;
  block-size: 100%;
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin: 0;
  max-inline-size: 26ch;
}

.card__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-inline-size: none;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-block-start: auto;
  padding-block-start: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.card--feature {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-lg);
  background-image: linear-gradient(
    160deg,
    rgba(57, 226, 255, 0.05),
    transparent 46%
  );
}

/* A card that is itself an anchor. */
.card--link {
  text-decoration: none;
  color: var(--body);
}

.card--link:hover {
  color: var(--body);
}

.card--link .card__title {
  transition: color var(--t-fast) ease;
}

.card--link:hover .card__title {
  color: var(--cyan);
}


/* --- Panel ---------------------------------------------------------------

   One bordered, inset well instead of a row of separate cards. Use it where
   a section is a single argument made in several parts, so it reads as one
   object and breaks the card-grid rhythm. It does not lift or light up on
   hover: nothing inside it is a link target.
   ------------------------------------------------------------------------- */

.panel {
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background-color: var(--well);
  background-image: linear-gradient(
    160deg,
    rgba(57, 226, 255, 0.045),
    transparent 54%
  );
  box-shadow: var(--sh-panel);
}

/* Two columns of points, divided by hairlines rather than by gaps, which is
   what makes it read as one panel and not four cards. */
.panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel__item {
  margin: 0;
}

.panel__item h3,
.panel__item h4 {
  margin: 0 0 var(--sp-2);
}

.panel__item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-inline-size: 52ch;
}

@media (min-width: 769px) {
  .panel__item:nth-child(2n) {
    border-inline-start: 1px solid var(--hairline);
    padding-inline-start: clamp(24px, 2.8vw, 40px);
  }

  .panel__item:nth-child(2n + 1) {
    padding-inline-end: clamp(24px, 2.8vw, 40px);
  }

  .panel__item:nth-child(n + 3) {
    border-block-start: 1px solid var(--hairline);
    margin-block-start: clamp(20px, 2.2vw, 28px);
    padding-block-start: clamp(20px, 2.2vw, 28px);
  }
}

@media (max-width: 768px) {
  .panel__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel__item + .panel__item {
    border-block-start: 1px solid var(--hairline);
    margin-block-start: var(--sp-5);
    padding-block-start: var(--sp-5);
  }
}


/* --- Definition list -----------------------------------------------------

   Term on the left, explanation on the right, one hairline rule per row.
   A compact alternative to a card grid for a list of short pairs. The row
   wrapper <div> is legal inside <dl>.
   ------------------------------------------------------------------------- */

.deflist {
  margin: 0;
  border-block-start: 1px solid var(--hairline);
}

.deflist__row {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: var(--sp-2) clamp(24px, 3vw, 40px);
  align-items: baseline;
  padding-block: var(--sp-3);
  border-block-end: 1px solid var(--hairline);
}

.deflist__term {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin: 0;
  max-inline-size: 26ch;
}

.deflist__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-inline-size: 62ch;
}

@media (max-width: 768px) {
  .deflist__row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- Tags ---------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  background-color: transparent;
  border: 1px solid rgba(168, 181, 200, 0.16);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

a.tag:hover {
  color: var(--cyan);
  border-color: rgba(57, 226, 255, 0.38);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list > li {
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background-color: var(--cyan-wash);
  border: 1px solid rgba(57, 226, 255, 0.22);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}


/* --- Stat ---------------------------------------------------------------- */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.stat__label {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-inline-size: 24ch;
}


/* --- Steps --------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps--row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.step {
  position: relative;
  padding-inline-start: 56px;
  margin: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  background-color: var(--raised);
  border: 1px solid rgba(57, 226, 255, 0.28);
  color: var(--cyan);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
}

/* The connecting rule between numbers. */
.step::after {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  inset-block-start: 44px;
  inline-size: 1px;
  block-size: calc(100% - 44px + var(--sp-6));
  background-image: linear-gradient(
    to bottom,
    rgba(57, 226, 255, 0.28),
    rgba(168, 181, 200, 0.08)
  );
}

.step:last-child::after {
  display: none;
}

.step__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 var(--sp-2);
  max-inline-size: 26ch;
}

.step__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
}

@media (min-width: 769px) {
  .steps--row .step {
    padding-inline-start: 0;
    padding-block-start: 52px;
  }

  .steps--row .step::after {
    inset-inline-start: 44px;
    inset-block-start: 18px;
    inline-size: calc(100% - 44px + var(--gap));
    block-size: 1px;
    background-image: linear-gradient(
      to right,
      rgba(57, 226, 255, 0.28),
      rgba(168, 181, 200, 0.08)
    );
  }
}

@media (max-width: 1024px) {
  .steps--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .steps--row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* .steps--lane: five stages across the full container, joined by one
   horizontal rule through the numbers. Five columns need real width, so the
   lane only engages at 1180px and the list falls back to the default
   vertical stack below that. No breakpoint can leave an orphan, because
   every arrangement is either one row of five or one column. */
@media (min-width: 1180px) {
  .steps--lane {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-5);
  }

  .steps--lane .step {
    padding-inline-start: 0;
    padding-block-start: 52px;
  }

  .steps--lane .step::after {
    inset-inline-start: 44px;
    inset-block-start: 18px;
    inline-size: calc(100% - 44px + var(--sp-5));
    block-size: 1px;
    background-image: linear-gradient(
      to right,
      rgba(57, 226, 255, 0.28),
      rgba(168, 181, 200, 0.08)
    );
  }

  .steps--lane .step__title {
    max-inline-size: none;
  }
}


/* --- Logo strip ---------------------------------------------------------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-strip__label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.logo-strip > li {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t-fast) ease;
}

.logo-strip > li:hover {
  color: var(--body);
}


/* --- Form fields --------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--heading);
}

.field__label span {
  font-weight: 400;
  color: var(--muted);
}

.field__input {
  inline-size: 100%;
  padding: 12px 14px;
  font-size: var(--fs-ui);
  line-height: 1.5;
  color: var(--heading);
  background-color: var(--raised);
  border: 1px solid var(--border-field);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  appearance: none;
}

textarea.field__input {
  min-block-size: 150px;
  resize: vertical;
}

select.field__input {
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2370809A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field__input:hover {
  border-color: rgba(168, 181, 200, 0.26);
}

.field__input:focus,
.field__input:focus-visible {
  border-color: var(--cyan);
  box-shadow: var(--ring);
  outline: none;
}

.field__input[disabled],
.field__input[readonly] {
  opacity: 0.55;
  cursor: not-allowed;
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__input[aria-invalid="true"]:focus,
.field__input[aria-invalid="true"]:focus-visible {
  border-color: var(--danger);
  box-shadow: var(--ring-danger);
}

.field__hint {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
  max-inline-size: none;
}

.field__error {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--danger);
  margin: 0;
  max-inline-size: none;
}

.field__error:empty {
  display: none;
}

/* Checkbox and radio rows */
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-3);
}

.field--check input[type="checkbox"],
.field--check input[type="radio"] {
  inline-size: 18px;
  block-size: 18px;
  margin-block-start: 3px;
  flex: 0 0 auto;
  accent-color: var(--cyan);
  cursor: pointer;
}

.field--check .field__label {
  font-weight: 400;
  color: var(--body);
  cursor: pointer;
}

/* Honeypot wrapper for the contact form. */
.field--trap {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Polite summary region above the form. */
.form-status {
  font-size: 0.9375rem;
  border-radius: var(--r-sm);
  margin: 0;
}

.form-status:empty {
  display: none;
}

.form-status--error {
  color: var(--danger);
  background-color: rgba(255, 107, 129, 0.08);
  border: 1px solid rgba(255, 107, 129, 0.3);
  padding: var(--sp-3) var(--sp-4);
}

.form-status--success {
  color: var(--success);
  background-color: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.3);
  padding: var(--sp-3) var(--sp-4);
}


/* --- Accordion ----------------------------------------------------------- */

.accordion {
  border-block-start: 1px solid var(--hairline);
}

.accordion__item {
  border-block-end: 1px solid var(--hairline);
}

.accordion__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 18px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  transition: color var(--t-fast) ease;
}

.accordion__item > summary::-webkit-details-marker {
  display: none;
}

.accordion__item > summary:hover {
  color: var(--cyan);
}

.accordion__chevron {
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform var(--t-base) var(--ease), color var(--t-fast) ease;
}

.accordion__item[open] > summary .accordion__chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.accordion__panel {
  padding-block-end: 22px;
  max-inline-size: var(--w-prose);
  color: var(--body);
}

.accordion__panel > * + * {
  margin-block-start: var(--sp-4);
}


/* --- Comparison band ----------------------------------------------------- */

.table-compare {
  inline-size: 100%;
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  background-color: var(--raised);
  overflow: hidden;
}

.table-compare caption {
  text-align: start;
  font-size: var(--fs-small);
  color: var(--muted);
  padding: var(--sp-4) var(--sp-5) 0;
}

.table-compare th,
.table-compare td {
  text-align: start;
  vertical-align: top;
  padding: var(--sp-4) var(--sp-5);
  border-block-end: 1px solid var(--border-card);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.table-compare thead th {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
  background-color: rgba(1, 8, 18, 0.4);
}

.table-compare tbody th {
  inline-size: 180px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-compare td {
  color: var(--body);
}

.table-compare tbody tr:last-child th,
.table-compare tbody tr:last-child td {
  border-block-end: 0;
}

@media (max-width: 768px) {
  /* Stacked cards: one card per column of the comparison. */
  .table-compare,
  .table-compare tbody,
  .table-compare tr,
  .table-compare th,
  .table-compare td {
    display: block;
    inline-size: auto;
  }

  .table-compare {
    border: 0;
    background-color: transparent;
    overflow: visible;
  }

  .table-compare thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-compare tbody tr {
    background-color: var(--raised);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    margin-block-end: var(--gap);
  }

  .table-compare tbody th {
    padding: 0 0 var(--sp-2);
    border: 0;
  }

  .table-compare td {
    padding: var(--sp-3) 0 0;
    border-block-end: 0;
  }

  .table-compare td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-block-end: 4px;
  }
}


/* --- Solution card ------------------------------------------------------- */

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(24px, 3vw, 32px);
  background-color: var(--raised);
  background-image: linear-gradient(
    165deg,
    rgba(57, 226, 255, 0.06),
    transparent 42%
  );
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-panel);
  transition: border-color var(--t-base) ease,
              box-shadow var(--t-base) ease,
              transform var(--t-base) ease;
}

.solution-card:hover,
.solution-card:focus-within {
  border-color: var(--border-card-hover);
  box-shadow: var(--sh-edge);
  transform: translateY(var(--lift));
}

.solution-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.solution-card__icon {
  inline-size: 24px;
  block-size: 24px;
  flex: 0 0 auto;
  color: var(--cyan);
  margin-block-start: 2px;
}

.solution-card__name {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin: 0;
  max-inline-size: 22ch;
}

.solution-card__promise {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  max-inline-size: 46ch;
}

.solution-card__section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.solution-card__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.solution-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.solution-card__list > li {
  position: relative;
  margin: 0;
  padding-inline-start: 20px;
  color: var(--body);
}

.solution-card__list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 0.62em;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
}

.solution-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-block-start: auto;
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--border-card);
}

.solution-card__time {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}

.solution-card__cta {
  margin-block-start: var(--sp-1);
}


/* --- Price --------------------------------------------------------------- */

.price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price__from {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.price__value {
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--heading);
}

/* Prices are provisional until the client sets them. The dotted cyan rule
   marks that on screen without shouting about it. */
[data-placeholder-price] {
  border-block-end: 1px dotted rgba(57, 226, 255, 0.45);
  padding-block-end: 2px;
}


/* --- Article ------------------------------------------------------------- */

.article-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-inline-size: var(--w-narrow);
}

.article-head h1 {
  max-inline-size: 18ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.article-meta time {
  color: var(--muted);
}

.article-body {
  max-inline-size: var(--w-prose);
}

.article-body > * + * {
  margin-block-start: var(--sp-5);
}


/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  position: relative;
  z-index: var(--z-base);
  padding-block: var(--section-pad-lg);
  border-block: 1px solid var(--hairline);
  text-align: center;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    52vw 36vw at 50% 110%,
    rgba(255, 138, 38, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.cta-band__title {
  font-size: var(--fs-h2);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-inline-size: 18ch;
  margin-inline: auto;
}

.cta-band__body {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--body);
  max-inline-size: 48ch;
  margin-inline: auto;
  margin-block-start: var(--sp-4);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-7);
}


/* --- Callouts ------------------------------------------------------------ */

.callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border-card);
  border-inline-start: 2px solid var(--muted);
  border-radius: var(--r-sm);
  background-color: var(--well);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  max-inline-size: var(--w-prose);
}

.callout p {
  margin: 0;
  max-inline-size: none;
}

.callout__icon {
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
  margin-block-start: 3px;
  color: currentColor;
}

.callout--info {
  border-inline-start-color: var(--cyan);
  background-color: rgba(57, 226, 255, 0.05);
}

.callout--info .callout__icon {
  color: var(--cyan);
}

.callout--warn {
  border-inline-start-color: var(--orange);
  background-color: rgba(255, 138, 38, 0.06);
}

.callout--warn .callout__icon {
  color: var(--orange);
}


/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb {
  font-size: var(--fs-small);
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(112, 128, 154, 0.6);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb [aria-current="page"] {
  color: var(--body);
}


/* --- Footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: var(--z-base);
  background-color: var(--abyss);
  border-block-start: 1px solid var(--hairline);
  padding-block: clamp(44px, 5.4vw, 68px) var(--sp-6);
  color: var(--body);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

/* Use with .footer__col--split on the long Services column: the split
   column is given the room its two lists need, so the four blocks end up
   with similar visual mass instead of one nine-item tower. */
.site-footer__grid--balanced {
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 1.5fr)
    minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-inline-size: 40ch;
}

.footer__blurb {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-inline-size: none;
}

.footer__col h2,
.footer__col h3 {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 var(--sp-4);
  max-inline-size: none;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li {
  margin: 0;
}

/* A long link list broken into two columns so it stops out-running the
   blocks beside it. Collapses to one column at 560px. */
.footer__col--split ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3) clamp(20px, 2.6vw, 36px);
}

@media (max-width: 560px) {
  .footer__col--split ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--body);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer__col a:hover {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-block-start: clamp(32px, 4.2vw, 48px);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--hairline);
  font-size: var(--fs-small);
  color: var(--muted);
}

.footer__bottom p {
  margin: 0;
  max-inline-size: none;
}

/* The company line takes its own row under the copyright and the legal links. */
.footer__company {
  flex-basis: 100%;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__legal li {
  margin: 0;
}

.footer__legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer__legal a:hover {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
  }

  .footer__bottom {
    justify-content: flex-start;
  }
}


/* ==========================================================================
   8  Motion

   .reveal has NO hidden state here. The hidden state is scoped to html.js,
   which the inline head script sets before paint. If JavaScript never runs,
   every .reveal element stays fully visible.
   ========================================================================== */

html.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity var(--t-slow) var(--ease) var(--reveal-delay),
              transform var(--t-slow) var(--ease) var(--reveal-delay);
  will-change: opacity, transform;
}

html.js .reveal--in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Slow dash pulse for hero circuit art. Apply to a stroked SVG path. */
.trace-pulse {
  stroke-dasharray: 6 10;
  animation: trace-drift 7.5s linear infinite;
}

@keyframes trace-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -32; }
}


/* ==========================================================================
   9  Utilities
   ========================================================================== */

.u-center {
  text-align: center;
  margin-inline: auto;
}

.u-center p,
.u-center .lead {
  margin-inline: auto;
}

.u-muted {
  color: var(--muted);
}

.u-cyan {
  color: var(--cyan);
}

.u-orange {
  color: var(--orange);
}

.u-nowrap {
  white-space: nowrap;
}

.u-hidden {
  display: none;
}

/* Drops an element at the narrow breakpoint. Use it for decoration that is
   costing a small screen its width, never for anything a reader needs. */
@media (max-width: 768px) {
  .u-hide-sm {
    display: none;
  }
}

.u-full {
  max-inline-size: none;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-mt-0 { margin-block-start: 0; }
.u-mt-1 { margin-block-start: var(--sp-2); }
.u-mt-2 { margin-block-start: var(--sp-4); }
.u-mt-3 { margin-block-start: var(--sp-5); }
.u-mt-4 { margin-block-start: var(--sp-7); }
.u-mt-5 { margin-block-start: var(--sp-9); }

.u-mb-0 { margin-block-end: 0; }
.u-mb-1 { margin-block-end: var(--sp-2); }
.u-mb-2 { margin-block-end: var(--sp-4); }
.u-mb-3 { margin-block-end: var(--sp-5); }
.u-mb-4 { margin-block-end: var(--sp-7); }
.u-mb-5 { margin-block-end: var(--sp-9); }


/* ==========================================================================
   10  Reduced motion

   Flattening the motion tokens removes every transition, lift and reveal
   shift in one place, so nothing here needs !important.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms;
    --t-base: 1ms;
    --t-slow: 1ms;
    --lift: 0px;
    --lift-sm: 0px;
    --reveal-y: 0px;
    --reveal-delay: 0ms;
  }

  html {
    scroll-behavior: auto;
  }

  .trace-pulse {
    animation: none;
  }

  .skip-link {
    transition: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before,
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transition: none;
  }

  .mobile-panel__nav,
  .mobile-panel__foot {
    transform: none;
    transition: none;
  }

  .mobile-panel.is-open .mobile-panel__foot {
    transition-delay: 0s;
  }

  .accordion__item[open] > summary .accordion__chevron {
    transition: none;
  }

  .btn:hover .btn__arrow,
  .btn:focus-visible .btn__arrow {
    transform: none;
  }
}


/* ==========================================================================
   11  Print
   ========================================================================== */

@media print {
  html {
    background: #fff;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 11pt;
    line-height: 1.5;
  }

  body::before,
  body::after,
  .section--hero::before,
  .cta-band::before {
    display: none;
  }

  h1, h2, h3, h4, h5, h6,
  strong,
  .card__title,
  .solution-card__name {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .article-body a[href^="http"]::after,
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  .site-header,
  .mobile-panel,
  .nav-toggle,
  .skip-link,
  .cta-band,
  .site-footer,
  .btn {
    display: none;
  }

  .card,
  .solution-card,
  .callout,
  .table-compare {
    background: none;
    border: 1px solid #999;
    box-shadow: none;
    transform: none;
    break-inside: avoid;
  }

  .section,
  .section--hero {
    padding-block: 12pt;
    border: 0;
  }

  .accordion__panel {
    display: block;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Hero illustration
   The artwork is a WebP with its background removed. Two SVG layers sit
   around it, in the artwork's own pixel space, so they stay attached to the
   logo at every size: the connector lines behind it (light travels along
   them) and the node glows in front. The headline sits above the lines.
   ========================================================================== */

.section--hero .split > .stack {
  position: relative;
  z-index: 1;
}

/* One beat of the network, in seconds: a pulse reaches the logo on every beat. make-brand.py
   (PULSE) builds the keyframes to this length, so they must agree. */
.hero-art {
  --pulse: 2s;
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-art img {
  display: block;
  position: relative;
  z-index: 1;
  inline-size: 100%;
  block-size: auto;
}

.hero-art__circuit,
.hero-art__trace,
.hero-art__pulse {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
  pointer-events: none;
}

/* The connector lines run out past the logo and are cut at the page edge and at the section
   border. The clip is measured from the figure's own box: the page edge is 100vw to its left,
   and the border sits one section padding below it, because the figure is aligned to the
   bottom of its row. */
.hero-art__circuit {
  z-index: 0;
  clip-path: polygon(-100vw -100vh, 200vw -100vh, 200vw calc(100% + var(--section-pad)), -100vw calc(100% + var(--section-pad)));
}

/* Light that runs on the traces inside the artwork, so the signal carries into the logo. */
.hero-art__trace { z-index: 2; }

.hero-art__pulse {
  z-index: 3;
}

.trace-light {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: var(--dash, 20) 200;
  stroke-dashoffset: var(--dash, 20);
  opacity: .95;
  animation: var(--kf) var(--pulse, 1s) linear infinite both;
}

.circuit-base {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .32;
}

.circuit-light {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: var(--dash, 9) var(--gap, 90);
  stroke-dashoffset: var(--dash, 9);
  opacity: .95;
  animation: var(--kf) var(--pulse, 1s) linear infinite both;
}

/* A soft halo under each pulse, so the stream reads as light. */
.circuit-halo {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: var(--dash, 9) var(--gap, 90);
  opacity: .2;
  animation: var(--kf) var(--pulse, 1s) linear infinite both;
}

/* The node glows flash on every beat, when the pulses reach the logo, so they move with the lines. */
.hero-art__pulse .pulse {
  opacity: .3;
  animation: node-pulse var(--pulse, 1s) ease-out infinite both;
}

@keyframes node-pulse {
  0%        { opacity: 1; }
  40%, 100% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .circuit-light,
  .circuit-halo,
  .trace-light { animation: none; opacity: 0; }
  .hero-art__pulse .pulse { animation: none; opacity: .5; }
}

/* dropora.js adds .is-idle to the artwork while it is off screen, so the light stops being
   repainted while the reader is further down the page. A paused animation keeps its frame and
   carries on from there when the artwork scrolls back in. The reduced-motion rules above still
   switch these animations off outright, and the script never sets .is-idle for that case. */
.hero-art.is-idle .circuit-light,
.hero-art.is-idle .circuit-halo,
.hero-art.is-idle .trace-light,
.hero-art.is-idle .hero-art__pulse .pulse {
  animation-play-state: paused;
}

/* The illustration is sized and placed the way it is in the walkthrough video:
   about a quarter of the page width, right-aligned to the content column. */
.section--hero .hero-art {
  inline-size: min(405px, 100%);
  justify-self: end;
  align-self: end;
}

/* Phone: the artwork sits under the headline and calls to action, centred and sized to fit.
   The connector lines keep their clip (.hero-art__circuit), so they still run to the page edge
   and stop at the section border. */
@media (max-width: 768px) {
  .section--hero .hero-art {
    inline-size: min(340px, 88vw);
    justify-self: center;
  }

  /* Only the home hero carries the artwork. Less air above its headline lets more of the mark
     show on the first screen. The other pages keep the full section padding. */
  .section--hero:has(.hero-art) {
    padding-block-start: 24px;
  }
}
