/* MAKTECH CONSULTING: one stylesheet for every page.
   Order: fonts, tokens, base, components, sections (in page order), legal pages. */

/* ---------- Fonts (self-hosted; files are copied by build.mjs) ---------- */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  /* The page follows the system theme. The header toggle overrides it by changing the
     <meta name="color-scheme"> element, which the two :has() rules below map back to
     this property. */
  color-scheme: light dark;

  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;

  --blue: #3b82f6;
  --indigo: #6366f1;
  /* Deeper steps of the same two, dark enough to carry white text. */
  --blue-deep: #2563eb;
  --indigo-deep: #4f46e5;
  --gradient: linear-gradient(135deg, var(--blue-deep), var(--indigo-deep));
  --gradient-bright: linear-gradient(135deg, var(--blue), var(--indigo));

  /* Light values. */
  --l-bg: #f8fafc;
  --l-bg-alt: #ffffff;
  --l-surface: rgb(255 255 255 / 0.72);
  --l-surface-solid: #ffffff;
  --l-header: rgb(248 250 252 / 0.78);
  --l-text: #0f172a;
  --l-muted: #475569;
  --l-border: rgb(15 23 42 / 0.1);
  --l-border-strong: rgb(15 23 42 / 0.2);
  --l-link: var(--blue-deep);
  --l-chip: color-mix(in srgb, var(--blue) 10%, transparent);
  --l-grid: rgb(15 23 42 / 0.06);
  --l-glow-a: color-mix(in srgb, var(--blue) 20%, transparent);
  --l-glow-b: color-mix(in srgb, var(--indigo) 18%, transparent);
  --l-shadow: rgb(15 23 42 / 0.16);
  --l-field: #ffffff;
  --l-danger: #b91c1c;
  --l-ok: #15803d;

  /* Dark values. */
  --d-bg: #0f172a;
  --d-bg-alt: #0b1120;
  --d-surface: rgb(30 41 59 / 0.55);
  --d-surface-solid: #1e293b;
  --d-header: rgb(15 23 42 / 0.78);
  --d-text: #f1f5f9;
  --d-muted: #94a3b8;
  --d-border: rgb(148 163 184 / 0.16);
  --d-border-strong: rgb(148 163 184 / 0.32);
  --d-link: #60a5fa;
  --d-chip: color-mix(in srgb, var(--d-link) 14%, transparent);
  --d-grid: rgb(148 163 184 / 0.07);
  --d-glow-a: color-mix(in srgb, var(--blue) 26%, transparent);
  --d-glow-b: color-mix(in srgb, var(--indigo) 24%, transparent);
  --d-shadow: rgb(0 0 0 / 0.5);
  --d-field: rgb(15 23 42 / 0.6);
  --d-danger: #fca5a5;
  --d-ok: #4ade80;

  /* Working tokens: light by default, dark by media query where light-dark() is not
     supported, and light-dark() where it is (which is what lets the toggle work). */
  --bg: var(--l-bg);
  --bg-alt: var(--l-bg-alt);
  --surface: var(--l-surface);
  --surface-solid: var(--l-surface-solid);
  --header: var(--l-header);
  --text: var(--l-text);
  --muted: var(--l-muted);
  --border: var(--l-border);
  --border-strong: var(--l-border-strong);
  --link: var(--l-link);
  --chip: var(--l-chip);
  --grid: var(--l-grid);
  --glow-a: var(--l-glow-a);
  --glow-b: var(--l-glow-b);
  --shadow: var(--l-shadow);
  --field: var(--l-field);
  --danger: var(--l-danger);
  --ok: var(--l-ok);

  @media (prefers-color-scheme: dark) {
    --bg: var(--d-bg);
    --bg-alt: var(--d-bg-alt);
    --surface: var(--d-surface);
    --surface-solid: var(--d-surface-solid);
    --header: var(--d-header);
    --text: var(--d-text);
    --muted: var(--d-muted);
    --border: var(--d-border);
    --border-strong: var(--d-border-strong);
    --link: var(--d-link);
    --chip: var(--d-chip);
    --grid: var(--d-grid);
    --glow-a: var(--d-glow-a);
    --glow-b: var(--d-glow-b);
    --shadow: var(--d-shadow);
    --field: var(--d-field);
    --danger: var(--d-danger);
    --ok: var(--d-ok);
  }

  @supports (color: light-dark(white, black)) {
    --bg: light-dark(var(--l-bg), var(--d-bg));
    --bg-alt: light-dark(var(--l-bg-alt), var(--d-bg-alt));
    --surface: light-dark(var(--l-surface), var(--d-surface));
    --surface-solid: light-dark(var(--l-surface-solid), var(--d-surface-solid));
    --header: light-dark(var(--l-header), var(--d-header));
    --text: light-dark(var(--l-text), var(--d-text));
    --muted: light-dark(var(--l-muted), var(--d-muted));
    --border: light-dark(var(--l-border), var(--d-border));
    --border-strong: light-dark(var(--l-border-strong), var(--d-border-strong));
    --link: light-dark(var(--l-link), var(--d-link));
    --chip: light-dark(var(--l-chip), var(--d-chip));
    --grid: light-dark(var(--l-grid), var(--d-grid));
    --glow-a: light-dark(var(--l-glow-a), var(--d-glow-a));
    --glow-b: light-dark(var(--l-glow-b), var(--d-glow-b));
    --shadow: light-dark(var(--l-shadow), var(--d-shadow));
    --field: light-dark(var(--l-field), var(--d-field));
    --danger: light-dark(var(--l-danger), var(--d-danger));
    --ok: light-dark(var(--l-ok), var(--d-ok));
  }

  accent-color: var(--link);
}

:root:has(> head > meta[name='color-scheme'][content='dark']) {
  color-scheme: dark;
}
:root:has(> head > meta[name='color-scheme'][content='light']) {
  color-scheme: light;
}

/* The contact band and the footer are navy in both themes. */
.band-navy {
  color-scheme: dark;
  --bg: var(--d-bg);
  --bg-alt: var(--d-bg-alt);
  --surface: var(--d-surface);
  --surface-solid: var(--d-surface-solid);
  --text: var(--d-text);
  --muted: var(--d-muted);
  --border: var(--d-border);
  --border-strong: var(--d-border-strong);
  --link: var(--d-link);
  --chip: var(--d-chip);
  --shadow: var(--d-shadow);
  --field: var(--d-field);
  --danger: var(--d-danger);
  --ok: var(--d-ok);
  color: var(--text);
  accent-color: var(--link);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }
}

/* The page behind an open service dialog does not scroll. */
html:has(dialog[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.icon {
  flex: none;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* Hides content visually but keeps it in the accessibility tree. */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* A fact that is still missing from src/company.mjs. */
.todo {
  padding: 0 0.25em;
  border-radius: 0.25rem;
  outline: 1px dashed #f59e0b;
  background: rgb(245 158 11 / 0.18);
  color: inherit;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 10px 24px -10px color-mix(in srgb, var(--blue-deep) 70%, transparent);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 14px 28px -10px color-mix(in srgb, var(--blue-deep) 85%, transparent);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--link);
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.icon-btn:hover,
.site-nav li a:hover {
  background: var(--chip);
  color: var(--text);
}
.icon-btn .icon {
  display: block;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.mark-a {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.mark-b {
  fill: var(--blue);
}

.site-nav {
  margin-inline: auto;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem;
}
.site-nav li a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.header-cta {
  margin-left: 0.5rem;
}

.lang-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

/* The theme toggle carries both states; the one that does not apply is hidden, so the
   control stays correct when the system theme changes without any script. */
.theme-toggle .to-light {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name='color-scheme'][content='light'])) .theme-toggle {
    .to-dark {
      display: none;
    }
    .to-light {
      display: contents;
    }
  }
}
:root:has(> head > meta[name='color-scheme'][content='dark']) .theme-toggle {
  .to-dark {
    display: none;
  }
  .to-light {
    display: contents;
  }
}

.menu-toggle {
  display: none;
}
.menu-toggle .when-open,
.menu-toggle[aria-expanded='true'] .when-closed {
  display: none;
}
.menu-toggle[aria-expanded='true'] .when-open {
  display: contents;
}

@media (width < 60rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 1rem;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-cta {
    display: none;
  }
  /* Without script the links simply wrap under the bar. */
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    padding-bottom: 0.5rem;
  }
  .site-nav ul {
    flex-wrap: wrap;
  }
  /* With script they collapse behind the menu button. */
  .js .menu-toggle {
    display: inline-grid;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav[data-open] {
    display: grid;
    gap: 1rem;
    padding-block: 0.5rem 1.25rem;
  }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .js .site-nav li a {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 1.0625rem;
  }
  .js .nav-cta {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(3rem, 1.75rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
/* An architectural grid that fades out, over two soft glows. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(ellipse 85% 75% at 65% 25%, #000 25%, transparent 75%);
}
.hero::after {
  z-index: -2;
  background:
    radial-gradient(42rem 26rem at 80% 15%, var(--glow-a), transparent 65%),
    radial-gradient(34rem 24rem at 5% 95%, var(--glow-b), transparent 65%);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;

  @media (width >= 60rem) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3.5rem;
  }
}

.hero h1 {
  font-size: clamp(2.125rem, 1.45rem + 2.9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* The zones-and-conduits diagram. */
.diagram {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
  padding: clamp(0.75rem, 0.5rem + 1.5vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 32px 64px -32px var(--shadow);
}
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

.zone {
  stroke: var(--border-strong);
  stroke-dasharray: 5 5;
}
.zone-it {
  fill: color-mix(in srgb, var(--blue) 7%, transparent);
}
.zone-ot {
  fill: color-mix(in srgb, var(--indigo) 9%, transparent);
}
.zone-dmz {
  fill: color-mix(in srgb, var(--blue) 14%, transparent);
  stroke: color-mix(in srgb, var(--blue) 55%, transparent);
  stroke-dasharray: none;
}
.zone-label {
  fill: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.node {
  color: var(--blue);
}
.node.ot {
  color: var(--indigo);
}
.node.siem {
  color: var(--link);
}
.node rect {
  fill: var(--surface-solid);
  stroke: var(--border-strong);
}
.node.fw rect {
  stroke: var(--blue);
  stroke-width: 1.5;
}
.node text {
  fill: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}

.conduit,
.packet,
.telemetry {
  fill: none;
}
.conduit {
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
/* A packet is one short dash of the conduit's own path. Still by default. */
.packet {
  opacity: 0;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  stroke-dashoffset: 100;
}
.packet.ot {
  stroke: var(--indigo);
}
.telemetry {
  stroke: var(--link);
  stroke-width: 1.25;
  stroke-dasharray: 2 5;
  opacity: 0.75;
}

/* Motion starts only when the script has added the pause button, and never for
   visitors who asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] .packet {
    opacity: 1;
    animation: travel 3.4s linear infinite;
  }
  [data-animate] .p2 {
    animation-delay: -1.2s;
  }
  [data-animate] .p3 {
    animation-delay: -2.3s;
  }
  [data-animate] .p4 {
    animation-delay: -0.6s;
    animation-direction: reverse;
  }
  [data-animate] .p5 {
    animation-delay: -1.8s;
  }
  [data-animate] .p6 {
    animation-delay: -2.9s;
    animation-direction: reverse;
  }
  [data-animate] .telemetry {
    animation: drift 1.4s linear infinite;
  }
  :is([data-paused], [data-offscreen], html:has(dialog[open]) [data-diagram]) :is(.packet, .telemetry) {
    animation-play-state: paused;
  }
}
@keyframes travel {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes drift {
  to {
    stroke-dashoffset: -7;
  }
}

.diagram-toggle {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;

  @media (prefers-reduced-motion: reduce) {
    display: none;
  }
}
.diagram-toggle:hover {
  color: var(--text);
}
.diagram-toggle .icon {
  width: 1rem;
  height: 1rem;
}
.diagram-toggle > span {
  display: contents;
}
.diagram-toggle .when-paused,
[data-paused] .diagram-toggle .when-playing {
  display: none;
}
[data-paused] .diagram-toggle .when-paused {
  display: contents;
}

/* ---------- Technologies strip ---------- */

.trust {
  padding-block: 1.75rem;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
}
.trust h2 {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}
.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.trust li {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
}
.section-alt {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.section h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  letter-spacing: -0.03em;
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head p,
.section-intro {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Services ---------- */

.services {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
/* Colour behind the cards, so their glass has something to blur. */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(30rem 22rem at 12% 35%, var(--glow-a), transparent 70%),
    radial-gradient(34rem 24rem at 88% 75%, var(--glow-b), transparent 70%);
}

/* Three cards across, then two, then one: the services and the scenarios. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px -24px var(--shadow);
  transition:
    translate 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.service-card:hover,
.service-card:focus-within {
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  box-shadow: 0 28px 48px -28px color-mix(in srgb, var(--blue-deep) 55%, transparent);

  @media (prefers-reduced-motion: no-preference) {
    translate: 0 -4px;
  }
}
.service-card h3 {
  font-size: 1.1875rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.9688rem;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: var(--gradient-bright);
  color: #fff;
  box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--blue) 80%, transparent);
}

.more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.25rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.more .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: translate 0.2s;
}
.more:hover .icon {
  translate: 3px 0;
}

.service-dialog {
  width: min(100% - 2rem, 44rem);
  max-height: min(100dvh - 2rem, 46rem);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 1.5rem;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.55);
  overflow: hidden;
}
.service-dialog[open] {
  display: flex;
  flex-direction: column;
}
.service-dialog::backdrop {
  background: rgb(2 6 23 / 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.service-dialog header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.service-dialog h3 {
  flex: 1;
  font-size: 1.25rem;
}
.dialog-body {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-body .scope {
  color: var(--muted);
  font-size: 0.875rem;
}
.dialog-body h4 {
  margin-top: 0.5rem;
  font-size: 1rem;
}
.dialog-body dl {
  display: grid;
  gap: 0.875rem;
}
.dialog-body dt {
  font-weight: 600;
}
.dialog-body dd {
  color: var(--muted);
  font-size: 0.9375rem;
}
.dialog-body .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

.check-list {
  display: grid;
  gap: 0.5rem;
}
.check-list li {
  display: flex;
  gap: 0.625rem;
}
.check-list .icon {
  margin-top: 0.2em;
  color: var(--ok);
}

/* ---------- Solutions ---------- */

.matrix {
  display: grid;
  gap: 0.875rem;
}
.matrix > li {
  display: grid;
  gap: 1rem 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background: var(--bg);

  @media (width >= 56rem) {
    grid-template-columns: minmax(0, 15rem) minmax(0, 17rem) minmax(0, 1fr);
    align-items: start;
  }
}
.matrix h3 {
  font-size: 1.125rem;
}
.matrix-label {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.matrix-label + p {
  font-size: 0.9688rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.chips li {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 3rem;

  @media (width >= 60rem) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.points {
  display: grid;
  gap: 1.375rem;
  margin-top: 2rem;
}
.points li {
  display: flex;
  gap: 0.875rem;
}
.points .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--gradient-bright);
  color: #fff;
  stroke-width: 3;
}
.points h3 {
  font-size: 1.0625rem;
}
.points p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.process {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 24px 48px -32px var(--shadow);
}
.process h3 {
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
}
.process ol {
  counter-reset: phase;
}
.process li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  counter-increment: phase;
}
.process li:last-child {
  padding-bottom: 0;
}
.process li::before {
  content: counter(phase);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--link);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}
/* The line that joins one phase to the next. */
.process li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.25rem;
  bottom: 0;
  left: 1.125rem;
  width: 1px;
  background: var(--border-strong);
}
.process h4 {
  padding-top: 0.35rem;
  font-size: 1.0625rem;
}
.process p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ---------- Illustrative scenarios ---------- */

.case-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--bg);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.badge {
  padding: 0.2rem 0.625rem;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
}
.case-card h3 {
  margin-top: 1rem;
  font-size: 1.1875rem;
}
.case-card h4 {
  margin-top: 1.125rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}
.case-card p {
  margin-top: 0.25rem;
  font-size: 0.9688rem;
}
.facts {
  display: grid;
  margin-top: auto;
  padding-top: 1.5rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.75rem;
  border-top: 1px solid var(--border);
}
.facts dt {
  color: var(--link);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.facts dd {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Questions ---------- */

.faq-grid {
  display: grid;
  gap: 2rem;

  @media (width >= 60rem) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }
}
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list details:first-child {
  border-top: 1px solid var(--border);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .icon {
  margin-top: 0.15rem;
  color: var(--muted);
  transition: rotate 0.2s;
}
.faq-list details[open] summary .icon {
  rotate: 45deg;
}
.faq-list details p {
  padding: 0 2.25rem 1.5rem 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(40rem 24rem at 90% 0%, var(--d-glow-a), transparent 65%),
    radial-gradient(34rem 22rem at 0% 100%, var(--d-glow-b), transparent 65%),
    var(--d-bg);
}
.contact-grid {
  display: grid;
  gap: 3rem;

  @media (width >= 60rem) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-list .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface);
  color: var(--link);
}
.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.contact-list a,
.contact-list p {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 1.125rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.field-row {
  display: grid;
  gap: 1.125rem;

  @media (width >= 40rem) {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  align-content: start;
  gap: 0.375rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 600;
}
.field :is(input, select, textarea) {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background-color: var(--field);
  color: var(--text);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field :is(input, select, textarea):focus-visible {
  outline-offset: 1px;
}
/* An error shows only after the visitor has used the field or tried to send. */
.field .error {
  display: none;
  color: var(--danger);
  font-size: 0.875rem;
}
.field :is(input, select, textarea):user-invalid {
  border-color: var(--danger);
}
.field :is(input, select, textarea):user-invalid ~ .error {
  display: block;
}
.contact-form .btn {
  justify-self: start;
}
.form-hint {
  color: var(--muted);
  font-size: 0.8125rem;
}
.form-done {
  padding: 0.875rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  font-size: 0.9375rem;
}
.form-done:empty {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--d-bg-alt);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 2.5rem;

  @media (width >= 60rem) {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  }
}
.footer-brand p {
  max-width: 20rem;
  margin-top: 1rem;
}
.site-footer h2 {
  margin-bottom: 0.875rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer ul {
  display: grid;
  gap: 0.5rem;
}
.site-footer li a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer li a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-legal {
  display: grid;
  gap: 0.375rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

/* ---------- Legal and not-found pages ---------- */

.legal-inner {
  max-width: 44rem;
}
.legal h1,
.not-found h1 {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.legal .updated {
  margin-top: 0.75rem;
  color: var(--muted);
}
.legal section {
  margin-top: 2.5rem;
}
.legal h2 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.legal section p {
  margin-top: 0.875rem;
}
.not-found p {
  margin-block: 1rem 2rem;
  color: var(--muted);
  font-size: 1.125rem;
}
