/* Clouds For All · site styles
   Self-hosted fonts, no inline styles (the CSP forbids them). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper: #ffffff;
  --linen: #f3f5fa;
  --linen-2: #e8ecf5;
  --line: #dce2ec;
  --line-strong: #c3cbdb;
  --ink: #0a1430;
  --ink-2: #4a5571;
  --ink-3: #66708b;

  --blue: #1626d9;
  --blue-deep: #0d1896;
  --mark-red: #ff1a0a;
  --mark-yellow: #f7ec00;
  --mark-blue: #0717f2;

  --ok: #0b7a4b;
  --ok-bg: #e6f4ed;
  --err: #b3261e;
  --err-bg: #fbeceb;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-label: 0.75rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(2rem, 3.8vw, 3.375rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 5.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;
  --radius: 6px;
  --section: clamp(56px, 6vw, 88px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-stretch: 104%; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--mark-yellow); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Brand mark & eyebrow ---------- */
.m-red { fill: var(--mark-red); }
.m-yellow { fill: var(--mark-yellow); }
.m-blue { fill: var(--mark-blue); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .stack {
  display: inline-grid;
  gap: 2px;
  width: 22px;
}
.eyebrow .stack i {
  display: block;
  height: 3px;
  transform: skewX(-58deg);
}
.eyebrow .stack i:nth-child(1) { background: var(--mark-red); margin-left: 4px; }
.eyebrow .stack i:nth-child(2) { background: var(--mark-yellow); margin-left: 2px; margin-right: 2px; }
.eyebrow .stack i:nth-child(3) { background: var(--mark-blue); margin-right: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { --btn-bg: var(--blue); --btn-border: var(--blue); }
.btn-primary:hover { --btn-bg: var(--ink); --btn-border: var(--ink); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn-ghost:hover { --btn-border: var(--ink); --btn-fg: var(--ink); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--sans);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-mark { width: 44px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.site-nav ul a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--ink); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink); }

@media (max-width: 980px) {
  .site-nav ul { gap: 16px; }
  .site-nav ul li:nth-child(1) { display: none; }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(10, 20, 48, 0.25);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav ul li:nth-child(1) { display: block; }
  .js .site-nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    color: var(--ink);
  }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav .btn { width: 100%; }

  /* Without JS the links simply wrap under the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 104px) 0;
}
.hero::before {
  /* fine linen weave */
  content: "";
  position: absolute;
  inset: 0 0 0 38%;
  background-image:
    repeating-linear-gradient(0deg, rgba(10, 20, 48, 0.05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(10, 20, 48, 0.05) 0 1px, transparent 1px 5px);
  -webkit-mask-image: radial-gradient(70% 65% at 62% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(70% 65% at 62% 45%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy { display: grid; gap: 28px; }

.hero h1 {
  font-size: var(--fs-h1);
  font-stretch: 118%;
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .soft { color: var(--blue); }

.hero-lead {
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.06;
  max-width: 100%;
}
/* 3D folded-linen mark: three slabs at different depths */
.hero-visual { perspective: 1100px; perspective-origin: 50% 32%; }
.mark3d {
  position: absolute;
  inset: 0 -6% auto 0;
  aspect-ratio: 100 / 54;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--ease);
}
.slab { position: absolute; inset: 0; transition: transform 0.15s linear; }
.slab-red { transform: translateZ(-60px) translate(calc(var(--s, 0) * 26px), calc(var(--s, 0) * -42px)); }
.slab-yellow { transform: translateZ(0); }
.slab-blue { transform: translateZ(60px) translate(calc(var(--s, 0) * -26px), calc(var(--s, 0) * 42px)); }
.slab-inner { position: absolute; inset: 0; }
.slab svg {
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  filter: drop-shadow(0 14px 12px rgba(10, 20, 48, 0.2)) drop-shadow(0 2px 2px rgba(10, 20, 48, 0.12));
}
.slab-edge { fill: none; stroke: #fff; stroke-opacity: 0.5; stroke-width: 0.28; stroke-linejoin: round; }

.slab-inner { animation: stack-in 1.1s var(--ease) both, slab-float 7s ease-in-out infinite; }
.slab-red .slab-inner { animation-delay: 0.45s, 1.6s; }
.slab-yellow .slab-inner { animation-delay: 0.3s, 2.2s; }
.slab-blue .slab-inner { animation-delay: 0.15s, 2.8s; }
@keyframes stack-in {
  from { transform: translateX(64px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes slab-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sheen { animation: sheen 9s var(--ease) infinite; }
.slab-red .sheen { animation-delay: 1.7s; }
.slab-yellow .sheen { animation-delay: 1.85s; }
.slab-blue .sheen { animation-delay: 2s; }
@keyframes sheen {
  0% { transform: translateX(0); }
  20%, 100% { transform: translateX(130px); }
}

.mark-floor {
  position: absolute;
  left: 2%;
  width: 66%;
  top: 92%;
  height: 16%;
  background: radial-gradient(closest-side, rgba(10, 20, 48, 0.24), rgba(10, 20, 48, 0.08) 60%, transparent);
  transform: translateZ(60px);
  animation: floor-breathe 7s ease-in-out 2.8s infinite;
}
@keyframes floor-breathe {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.7; scale: 0.92; }
}

.ticket {
  position: absolute;
  left: 6%;
  bottom: 0;
  width: min(300px, 80%);
  margin: 0;
  padding: 16px 18px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 50px -28px rgba(10, 20, 48, 0.35), 0 2px 6px rgba(10, 20, 48, 0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-2);
  animation: ticket-in 0.9s var(--ease) 0.9s both;
}
@keyframes ticket-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticket-head span:last-child { color: var(--ink-3); }
.ticket dl { margin: 0; display: grid; gap: 4px; }
.ticket dl div { display: flex; justify-content: space-between; gap: 12px; }
.ticket dt { color: var(--ink-3); }
.ticket dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ticket .ticket-pass dd { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; }
.ticket .ticket-pass dd::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------- Ribbon ---------- */
.ribbon {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.ribbon-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ribbon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}
.ribbon-list li:first-child { border-left: 0; padding-left: 0; }
.ribbon-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--blue);
  transform: skewX(-30deg);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 20px; max-width: 46rem; }
.section-head h2 { font-size: var(--fs-h2); font-stretch: 112%; }
.section-head .lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; }

/* ---------- On site ---------- */
.onsite-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.onsite-copy { display: grid; gap: 22px; }
.onsite-copy h2 { font-size: clamp(1.875rem, 3.1vw, 2.875rem); font-stretch: 112%; }
.onsite-copy p:not(.eyebrow) { color: var(--ink-2); max-width: 34em; }
.onsite-copy p.lead { font-size: var(--fs-lead); color: var(--ink); }

.drawing {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.drawing-scroll { overflow-x: auto; padding: clamp(14px, 2vw, 24px); }
.plan { width: 100%; min-width: 540px; height: auto; }
.plan text {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  fill: var(--ink-2);
}
.plan .t-zone { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.plan .t-zone.soiled { fill: #c0170c; }
.plan .t-zone.clean { fill: var(--blue); }
.plan .t-in { fill: var(--ink); font-weight: 500; }
.plan .zone-soiled { fill: rgba(255, 26, 10, 0.045); }
.plan .zone-clean { fill: rgba(22, 38, 217, 0.035); }
.plan .hatch line { stroke: rgba(255, 26, 10, 0.12); stroke-width: 1; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; }
.plan .barrier { stroke: var(--ink); stroke-width: 6; }
.plan .kit { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.plan .kit-soft { fill: var(--linen); stroke: var(--ink-3); stroke-width: 1; }
.plan .kit-door { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.plan .store { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 4 3; }
.plan .flow {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.25;
  stroke-dasharray: 7 6;
  animation: flow 1.6s linear infinite;
}
.plan .arrowhead { fill: var(--blue); }
@keyframes flow { to { stroke-dashoffset: -26; } }

.title-block {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: var(--fs-label);
}
.title-block div { padding: 12px 16px; border-left: 1px solid var(--line-strong); }
.title-block div:first-child { border-left: 0; }
.title-block span {
  display: block;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
.title-block strong { display: block; color: var(--ink); font-weight: 500; }

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 4.5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.points li { display: grid; gap: 10px; align-content: start; }
.points p { color: var(--ink-2); }

/* ---------- Services ---------- */
.services { background: var(--linen); }
.services .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}
.service:hover { background: #fbfcff; }
.service .ico {
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--linen);
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service:hover .ico { background: var(--blue); color: #fff; }
.service p { color: var(--ink-2); font-size: var(--fs-sm); }
.service ul {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.service li { display: flex; gap: 10px; color: var(--ink); }
.service li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.62em;
  background: var(--blue);
  transform: skewX(-30deg);
}

/* ---------- Quality ---------- */
.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: start;
}

.sheet {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sheet-head span:last-child { color: #aeb7d3; }
.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.sheet th, .sheet td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.sheet thead th {
  border-top: 0;
  background: var(--linen);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sheet tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.sheet td { color: var(--ink-2); }
.sheet td.freq {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sheet tbody tr { transition: background-color 0.2s; }
.sheet tbody tr:hover { background: #fafbfe; }

.kpis {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--linen);
  border-radius: var(--radius);
}
.kpis h3 { font-size: 1.125rem; }
.kpis p { color: var(--ink-2); font-size: var(--fs-sm); }
.kpi-list { display: grid; gap: 0; }
.kpi-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.kpi-list li span {
  flex: none;
  width: 2.2em;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-copy { display: grid; gap: 22px; }
.contact-copy h2 { font-size: var(--fs-h2); font-stretch: 112%; }
.contact-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }

.contact-details {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.contact-details div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.contact-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.contact-details a { color: var(--ink); font-weight: 500; }
.contact-details a:hover { color: var(--blue); }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 40px 80px -60px rgba(10, 20, 48, 0.45);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230a1430' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 38, 217, 0.18);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: var(--err); }

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.consent input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .note { font-size: 0.8125rem; color: var(--ink-3); }

.form-status {
  font-size: 0.9375rem;
  border-radius: var(--radius);
}
.form-status:empty { display: none; }
.form-status[data-state] { padding: 14px 16px; }
.form-status[data-state="success"] { background: var(--ok-bg); color: var(--ok); }
.form-status[data-state="error"] { background: var(--err-bg); color: var(--err); }
.form-status[data-state="sending"] { background: var(--linen); color: var(--ink-2); }

.notice {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.notice:target { display: block; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-err { background: var(--err-bg); color: var(--err); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9d0e3;
  padding-block: clamp(56px, 7vw, 88px) 32px;
  font-size: var(--fs-sm);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mark-yellow); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--mark-yellow); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 22rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; text-decoration: none; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f9abb;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: #8f9abb;
}
.footer-tribar { display: flex; gap: 0; height: 4px; }
.footer-tribar i { flex: 1; }
.footer-tribar i:nth-child(1) { background: var(--mark-red); }
.footer-tribar i:nth-child(2) { background: var(--mark-yellow); }
.footer-tribar i:nth-child(3) { background: var(--mark-blue); }

.site-footer .linklike {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-footer .linklike:hover { color: var(--mark-yellow); text-decoration: underline; }

/* ---------- Cookie consent ---------- */
.cc-banner {
  position: fixed;
  z-index: 80;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100% - 32px));
  display: grid;
  gap: 16px;
  padding: 24px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(10, 20, 48, 0.35), 0 2px 6px rgba(10, 20, 48, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.cc-banner.is-visible { opacity: 1; transform: none; }
.cc-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mark-red) 0 33.4%, var(--mark-yellow) 33.4% 66.7%, var(--mark-blue) 66.7%);
}
.cc-title {
  font-size: 1.1875rem;
  font-stretch: 108%;
  line-height: 1.2;
}
.cc-banner p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }
.cc-banner-body { display: grid; gap: 8px; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-actions .btn { flex: 1 1 auto; }
.cc-link {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--blue);
  font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.cc-link:hover { color: var(--blue-deep); }

.cc-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(7, 15, 42, 0.6);
  overflow: auto;
}
.cc-dialog::backdrop {
  background: rgba(7, 15, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cc-panel { display: grid; gap: 20px; padding: clamp(22px, 4vw, 34px); }
.cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cc-head h2 { font-size: 1.5rem; font-stretch: 110%; }
.cc-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.cc-close:hover { border-color: var(--ink); }
.cc-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cc-intro { color: var(--ink-2); font-size: 0.9375rem; }
.cc-cats { border-top: 1px solid var(--line); }
.cc-cat { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat-title { font-weight: 600; color: var(--ink); cursor: pointer; }
.cc-cat p { font-size: 0.875rem; color: var(--ink-2); max-width: 40em; }
.cc-always {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cc-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 46px; height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.cc-switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 20, 48, 0.3);
  transition: transform 0.25s var(--ease);
}
.cc-switch:checked { background: var(--blue); }
.cc-switch:checked::before { transform: translateX(20px); }
.cc-switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cc-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-dialog-actions .btn { flex: 1 1 auto; }
.cc-foot { font-size: 0.8125rem; color: var(--ink-3); }

@media (max-width: 640px) {
  .cc-banner {
    left: 12px; right: 12px;
    width: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cc-actions .btn, .cc-dialog-actions .btn { width: 100%; }
}

/* ---------- Reveal ---------- */
.js .reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--linen);
}
.legal-hero .wrap { display: grid; gap: 18px; }
.legal-hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-stretch: 114%; }
.legal-hero p { color: var(--ink-2); max-width: 40rem; }
.legal-meta {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 46rem);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 6vw, 80px) var(--section);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  display: grid;
  gap: 12px;
}
.toc h2 {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.4;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  padding-top: 1px;
}
.toc a:hover { color: var(--blue); }

.prose { display: grid; gap: 18px; color: var(--ink-2); }
.prose h2 {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
  font-stretch: 108%;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.0625rem; font-stretch: 100%; color: var(--ink); margin-top: 6px; }
.prose ul { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.66em;
  width: 7px; height: 7px;
  background: var(--blue);
  transform: skewX(-30deg);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout {
  padding: 18px 20px;
  background: var(--linen);
  border-radius: var(--radius);
  color: var(--ink);
}
.prose dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.prose dl div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.prose dt { color: var(--ink); font-weight: 500; }
.prose dd { margin: 0; overflow-wrap: anywhere; }

/* Placeholders the owner must complete before launch */
.fill {
  background: #fff7c2;
  color: var(--ink);
  padding: 0 4px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding-block: clamp(80px, 14vw, 180px);
}
.notfound .code {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.notfound h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-stretch: 116%; max-width: 16ch; }
.notfound p { color: var(--ink-2); max-width: 32rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ribbon-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ribbon-list li:nth-child(4) { border-left: 0; padding-left: 0; }
  .ribbon-list li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; aspect-ratio: 1 / 1; }
  .hero::before { inset: 40% 0 0 0; }
  .onsite-grid, .contact-grid, .quality-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding: 20px; background: var(--linen); border-radius: var(--radius); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 1.125rem; }
  .brand-mark { width: 36px; }
  .ribbon-list { grid-template-columns: 1fr; }
  .ribbon-list li { border-left: 0; padding-left: 0; }
  .ribbon-list li + li { border-top: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .title-block { grid-template-columns: 1fr; }
  .title-block div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .title-block div:first-child { border-top: 0; }
  .hero-actions .btn { width: 100%; }
  .contact-details div, .prose dl div { grid-template-columns: 1fr; gap: 4px; }

  /* The control sheet becomes stacked records */
  .sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet table, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: 100%; }
  .sheet tbody tr { padding: 16px 20px; border-top: 1px solid var(--line); }
  .sheet tbody tr:first-child { border-top: 0; }
  .sheet th, .sheet td { padding: 0; border: 0; }
  .sheet tbody th { width: 100%; margin-bottom: 4px; }
  .sheet td.freq { margin-top: 8px; white-space: normal; }
  .sheet td.freq::before {
    content: "Frequency  ";
    color: var(--ink-3);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .mark3d { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-visual, .form, .footer-tribar, .cc-banner { display: none !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}
