/* Global styles live in src/styles/site.css */
html, body, #root { min-height: 100%; }

/* ===== Architech — light, calm, fast =====
   Themes: limestone (default), blueprint, plaster, dusk.
   Type: Archivo, using its width axis — expanded for headings, normal for text. */

:root, [data-theme="limestone"] {
  --bg: #ECEFEA; --surface: #F7F8F5; --ink: #1D2422; --muted: #56625E;
  --line: #D3D9D3; --accent: #2E6A5C; --accent-ink: #FFFFFF; --tint: #DCE6E0; --second: #3E9FBF; --card: #FFFFFF;
  color-scheme: light;
}
[data-theme="blueprint"] {
  --bg: #E8ECF4; --surface: #F6F8FC; --ink: #1A2033; --muted: #535C75;
  --line: #CDD4E4; --accent: #3549A8; --accent-ink: #FFFFFF; --tint: #D9E0F2; --second: #0EA5E9; --card: #FFFFFF;
}
[data-theme="plaster"] {
  --bg: #EAE7E3; --surface: #F6F5F3; --ink: #26231F; --muted: #625C55;
  --line: #D8D2CB; --accent: #8A5A12; --accent-ink: #FFFFFF; --tint: #E7DDCC; --second: #6E8FA8; --card: #FFFFFF;
}
[data-theme="dusk"] {
  --bg: #262C32; --surface: #2E353C; --ink: #E3E7EA; --muted: #A6B0B8;
  --line: #3E474F; --accent: #8FC7B6; --accent-ink: #15211D; --tint: #32403F; --second: #6F9FD0; --card: #30383F;
  color-scheme: dark;
}

:root {
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: auto;
  --radius-s: 6px; --radius-m: 12px; --radius-l: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #ECEFEA; background: var(--bg); color: #1D2422; color: var(--ink);
  font: 400 17px/1.6 "Archivo", "Segoe UI", system-ui, sans-serif;
  font: 400 17px/1.6 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-stretch: 125%; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 6.2vw, 80px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 19px; font-stretch: 110%; letter-spacing: -.005em; }
p { margin: 0; }
::selection { background: #2E6A5C; background: var(--accent); color: #FFFFFF; color: var(--accent-ink); }
:focus-visible { outline: 2px solid #2E6A5C; outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: auto; max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); padding-inline: var(--gutter); }
.muted { color: #56625E; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #56625E; color: var(--muted); max-width: 58ch; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #1D2422; background: var(--ink); color: #ECEFEA; color: var(--bg); padding: 10px 14px; border-radius: 6px; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

/* ----- Buttons & links ----- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #2E6A5C; border: 1px solid var(--accent);
  background: #2E6A5C;
  background: var(--accent); color: #FFFFFF; color: var(--accent-ink); font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: none; }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button-quiet { background: transparent; color: #1D2422; color: var(--ink); border-color: #D3D9D3; border-color: var(--line); }
.button-quiet:hover { border-color: #1D2422; border-color: var(--ink); }
.button-invert { background: #ECEFEA; background: var(--bg); color: #1D2422; color: var(--ink); border-color: #ECEFEA; border-color: var(--bg); }
.text-link {
  font-weight: 600; text-decoration: underline; -webkit-text-decoration-color: #2E6A5C; text-decoration-color: #2E6A5C; -webkit-text-decoration-color: var(--accent); text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .2s;
}
.text-link:hover { text-underline-offset: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ----- Nav ----- */
.nav { position: -webkit-sticky; position: sticky; top: 0; z-index: 40; background: #ECEFEA; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .3s; }
.nav.is-scrolled { border-bottom-color: #D3D9D3; border-bottom-color: var(--line); }
.nav-inner { max-width: auto; max-width: var(--max); margin: auto; padding: 0 clamp(16px, 4vw, 48px); padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: 125%; font-size: 18px; letter-spacing: -.01em; margin-right: auto; }
.brand b { color: #2E6A5C; color: var(--accent); font-weight: inherit; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: #56625E; color: var(--muted); font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #1D2422; color: var(--ink); }
.nav-links a.active { color: #1D2422; color: var(--ink); background: #DCE6E0; background: var(--tint); }
.nav-links .nav-cta { margin-left: 8px; background: #1D2422; background: var(--ink); color: #ECEFEA; color: var(--bg); }
.nav-links .nav-cta:hover, .nav-links .nav-cta.active { color: #ECEFEA; color: var(--bg); background: #2E6A5C; background: var(--accent); }
.menu { display: none; width: 44px; height: 44px; border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.menu i { position: absolute; left: 13px; right: 13px; height: 2px; background: #1D2422; background: var(--ink); border-radius: 2px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); transition: transform .25s var(--ease); }
.menu i:first-child { top: 17px; } .menu i:last-child { top: 24px; }
.is-open .menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
.is-open .menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Theme swatches */
.theme-picker { display: flex; gap: 6px; padding: 4px; border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 999px; }
.theme-picker button {
  width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid color-mix(in srgb, #1D2422 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: linear-gradient(135deg, var(--sw-bg) 50%, var(--sw-ac) 50%);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
  transition: transform .2s var(--ease);
}
.theme-picker button:hover { transform: scale(1.12); }
.theme-picker button[aria-checked="true"] { box-shadow: 0 0 0 2px #ECEFEA, 0 0 0 4px #1D2422; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* ----- Page ----- */
.page { animation: page-in .35s cubic-bezier(.2, .8, .2, 1) both; animation: page-in .35s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.intro { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(24px, 3vw, 40px); }
.intro h1 { max-width: 16ch; margin-bottom: 20px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-top: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

/* ----- Hero ----- */
/* Hero card: soft washes in the corners, same recipe as the PlatformFE landing */
.hero-shell { padding-top: clamp(12px, 2vw, 24px); }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; grid-gap: clamp(28px, 5vw, 64px); gap: clamp(28px, 5vw, 64px);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, #3E9FBF 18%, transparent), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, #2E6A5C 15%, transparent), transparent 70%),
    #FFFFFF;
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--second) 18%, transparent), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    var(--card);
  box-shadow: 0 1px 2px color-mix(in srgb, #1D2422 5%, transparent), 0 10px 30px color-mix(in srgb, #1D2422 7%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 10px 30px color-mix(in srgb, var(--ink) 7%, transparent);
}
/* faint drafting grid, masked so it fades toward the copy */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, #1D2422 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, #1D2422 6%, transparent) 1px, transparent 1px);
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(60% 70% at 85% 45%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 85% 45%, #000, transparent 75%);
}
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 700; line-height: 1.02; margin-bottom: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ----- Swarm rebuild: agent cursors assemble the hero ----- */
.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; }
.swarm-ghost { visibility: hidden; }
.swarm-caret { display: inline-block; width: 2px; height: 1em; margin: 0 -1px; vertical-align: -.12em; background: var(--c); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.swarm-sel { position: relative; outline: 1.5px solid var(--c); outline-offset: 5px; border-radius: 2px; }
.swarm-sel::after {
  content: attr(data-agent); position: absolute; left: -6px; top: -27px; z-index: 2;
  font: 600 11px/1 "Archivo", "Segoe UI", system-ui, sans-serif;
  font: 600 11px/1 var(--font); letter-spacing: .02em; color: #fff; background: var(--c);
  padding: 4px 7px; border-radius: 4px 4px 4px 0; pointer-events: none; white-space: nowrap;
}
.hero .button { transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .35s, color .2s, border-color .35s; transition: transform .2s var(--ease), background-color .35s, color .2s, border-color .35s; }
.hero .button.is-wire { background: transparent; color: #1D2422; color: var(--ink); border: 1.5px dashed #D3D9D3; border: 1.5px dashed var(--line); }
.swarm { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.swarm-cursor {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform;
  transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45, .05, .25, 1), ease;
}
.swarm-cursor.is-on { opacity: 1; }
.swarm-glyph { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.swarm-glyph.is-click { animation: swarm-click .22s ease; }
@keyframes swarm-click { 50% { transform: scale(.78); } }
.swarm-tag {
  position: absolute; left: 15px; top: 18px; font: 600 11px/1 "Archivo", "Segoe UI", system-ui, sans-serif; font: 600 11px/1 var(--font); color: #fff; background: var(--c);
  padding: 4px 7px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.swarm-replay {
  position: absolute; right: 18px; bottom: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid #D3D9D3; border: 1px solid var(--line); background: color-mix(in srgb, #FFFFFF 85%, transparent); background: color-mix(in srgb, var(--card) 85%, transparent);
  font-size: 13px; font-weight: 600; color: #56625E; color: var(--muted); cursor: pointer; animation: fade-in .5s ease both;
  transition: color .2s, border-color .2s;
}
.swarm-replay:hover { color: #1D2422; color: var(--ink); border-color: #1D2422; border-color: var(--ink); }
@keyframes fade-in { from { opacity: 0; } }

/* The floor plan: every room is one of our products */
.plan { width: 100%; height: auto; overflow: visible; }
.plan-walls path { fill: none; stroke: #1D2422; stroke: var(--ink); stroke-width: 5; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan-walls path.is-built { stroke-dashoffset: 0; transition: stroke-dashoffset .6s linear; transition: stroke-dashoffset var(--t, .6s) linear; }
.plan-furn, .plan-hot { opacity: 0; transform: scale(.85); transform-box: fill-box; transform-origin: center; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transition: opacity .45s ease, transform .55s var(--ease); }
.plan-hot { transition-delay: .25s; }
.is-built > .plan-furn, .is-built > .plan-hot { opacity: 1; transform: none; }
.plan-furn * { fill: none; stroke: #56625E; stroke: var(--muted); stroke-width: 1.5; }
.plan-furn .plan-route { stroke: #2E6A5C; stroke: var(--accent); stroke-dasharray: 4 5; animation: flow 1.4s linear infinite; }
.plan-hot * { fill: #2E6A5C; fill: var(--accent); fill-opacity: .16; stroke: #2E6A5C; stroke: var(--accent); stroke-width: 2; }
.plan-label { font: 600 13px "Archivo", "Segoe UI", system-ui, sans-serif; font: 600 13px var(--font); font-stretch: 112%; fill: #1D2422; fill: var(--ink); text-anchor: middle; }
.plan-sel { fill: color-mix(in srgb, var(--c) 6%, transparent); stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 5 4; }
.plan-net path { fill: none; stroke: #2E6A5C; stroke: var(--accent); stroke-width: 1.2; }
.plan-net .net-draw { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .35; }
.plan-net .is-built .net-draw { stroke-dashoffset: 0; transition: stroke-dashoffset .45s linear; }
.plan-net .net-flow { stroke-dasharray: 3 9; opacity: 0; transition: opacity .6s ease .5s; animation: flow 1.2s linear infinite; }
.plan-net .is-built .net-flow { opacity: .8; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.plan-dim path { fill: none; stroke: #2E6A5C; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan-dim.is-built path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s linear; }
.plan-dim text { font: 500 12px "Archivo", "Segoe UI", system-ui, sans-serif; font: 500 12px var(--font); fill: #56625E; fill: var(--muted); text-anchor: middle; }

/* ----- Projects ----- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; gap: 20px; }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px; gap: 20px; }
.project { height: 100%; display: flex; flex-direction: column; background: #F7F8F5; background: var(--surface); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 20px; border-radius: var(--radius-l); overflow: hidden; }
.project .thumb { transition: transform .5s cubic-bezier(.2, .8, .2, 1); transition: transform .5s var(--ease); }
.project:hover .thumb { transform: scale(1.025); }
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1 1; }
.project-body > p:not(.project-type) { color: #56625E; color: var(--muted); }
.project-type { font-size: 14px; font-weight: 600; color: var(--p); }
[data-theme="dusk"] .project-type { color: color-mix(in srgb, var(--p) 55%, white); }
.project-points { margin: 4px 0 0; padding-left: 18px; display: grid; grid-gap: 4px; gap: 4px; font-size: 16px; }
.project-points li::marker { color: var(--p); }
.project .text-link { margin-top: auto; padding-top: 6px; -webkit-text-decoration-color: var(--p); text-decoration-color: var(--p); align-self: flex-start; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #DCE6E0; background: var(--tint); color: #1D2422; color: var(--ink); }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #D3D9D3; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.filter button span { color: #56625E; color: var(--muted); margin-left: 4px; }
.filter button:hover { border-color: #1D2422; border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: #1D2422; background: var(--ink); color: #ECEFEA; color: var(--bg); border-color: #1D2422; border-color: var(--ink); }
.filter button[aria-pressed="true"] span { color: inherit; opacity: .7; }

/* Thumbnails — pure CSS illustrations tinted by the project colour */
.thumb { --soft: color-mix(in srgb, var(--p) 14%, var(--surface)); --mid: color-mix(in srgb, var(--p) 35%, var(--surface));
  aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; padding: 8% 9%; }
.thumb > * { width: 100%; height: 100%; }
.th-browser { background: #F7F8F5; background: var(--surface); border-radius: 10px; box-shadow: 0 1px 0 #D3D9D3, 0 12px 28px -18px color-mix(in srgb, var(--p) 60%, transparent); box-shadow: 0 1px 0 var(--line), 0 12px 28px -18px color-mix(in srgb, var(--p) 60%, transparent); overflow: hidden; display: flex; flex-direction: column; }
.th-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid #D3D9D3; border-bottom: 1px solid var(--line); }
.th-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D3D9D3; background: var(--line); }
.th-site, .th-menu, .th-shop { flex: 1 1; padding: 6% 7%; }
.th-hero { height: 52%; border-radius: 6px; background: var(--p); padding: 7%; display: flex; flex-direction: column; gap: 6px; }
.th-hero i { height: 8px; width: 60%; border-radius: 4px; background: rgba(255,255,255,.85); }
.th-hero i.short { width: 38%; opacity: .6; }
.th-hero em { margin-top: auto; width: 26%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.9); }
.th-cols { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; margin-top: 8%; }
.th-cols i { height: 28px; border-radius: 4px; background: var(--soft); }
.th-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8%; }
.th-menu-head i { width: 40%; height: 10px; border-radius: 4px; background: #1D2422; background: var(--ink); opacity: .8; }
.th-menu-head em { width: 22%; height: 16px; border-radius: 8px; background: var(--p); }
.th-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #D3D9D3; border-bottom: 1px dashed var(--line); }
.th-line i { flex: 1 1; height: 6px; border-radius: 3px; background: var(--mid); }
.th-line b { width: 14%; height: 6px; border-radius: 3px; background: var(--p); }
.th-shop { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.th-shop div { border-radius: 6px; background: var(--soft); padding: 10%; display: flex; flex-direction: column; gap: 6px; }
.th-shop span { flex: 1 1; border-radius: 50% 50% 8px 8px; background: var(--mid); }
.th-shop i { height: 5px; width: 70%; border-radius: 3px; background: #56625E; background: var(--muted); opacity: .5; }
.th-shop b { height: 12px; border-radius: 6px; background: var(--p); }
.th-pos { display: grid; grid-template-columns: 1fr 34%; grid-gap: 10px; gap: 10px; }
.th-tables { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; gap: 8px; align-content: center; }
.th-tables b { aspect-ratio: 1; border-radius: 8px; background: #F7F8F5; background: var(--surface); border: 1px solid #D3D9D3; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #56625E; color: var(--muted); }
.th-tables b.on { background: var(--p); border-color: var(--p); color: #fff; }
.th-ticket { background: #F7F8F5; background: var(--surface); border-radius: 8px; padding: 12%; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 1px 0 #D3D9D3; box-shadow: 0 1px 0 var(--line); }
.th-ticket i { height: 5px; border-radius: 3px; background: var(--mid); }
.th-ticket i.short { width: 60%; }
.th-ticket em { margin-top: auto; height: 14px; border-radius: 7px; background: var(--p); }
.th-rx { display: grid; grid-template-rows: auto 1fr; grid-gap: 10px; gap: 10px; }
.th-scan { display: flex; gap: 3px; height: 34px; padding: 6px 10px; background: #F7F8F5; background: var(--surface); border-radius: 8px; align-items: stretch; box-shadow: 0 1px 0 #D3D9D3; box-shadow: 0 1px 0 var(--line); }
.th-scan i { background: #1D2422; background: var(--ink); opacity: .75; }
.th-rows { background: #F7F8F5; background: var(--surface); border-radius: 8px; padding: 4% 6%; display: flex; flex-direction: column; justify-content: space-around; }
.th-rows div { display: grid; grid-template-columns: 1fr 22% 14px; grid-gap: 10px; gap: 10px; align-items: center; }
.th-rows i { height: 6px; border-radius: 3px; background: var(--mid); }
.th-rows b { width: 10px; height: 10px; border-radius: 50%; background: var(--p); }
.th-rows b.warn { background: #D08A1C; }
.th-board { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; gap: 8px; }
.th-board div { background: color-mix(in srgb, #F7F8F5 70%, transparent); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.th-board i { height: 26px; border-radius: 5px; background: #F7F8F5; background: var(--surface); border-left: 3px solid var(--mid); }
.th-board i.on { border-left-color: var(--p); background: color-mix(in srgb, var(--p) 18%, #F7F8F5); background: color-mix(in srgb, var(--p) 18%, var(--surface)); }

/* ----- Services / lists ----- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 0 clamp(24px, 5vw, 64px); gap: 0 clamp(24px, 5vw, 64px); }
.service-list li { padding: 22px 0; border-top: 1px solid #D3D9D3; border-top: 1px solid var(--line); display: grid; grid-gap: 6px; gap: 6px; }
.service-list p { color: #56625E; color: var(--muted); max-width: 52ch; }
.service-list-full { grid-template-columns: repeat(3, 1fr); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 20px; gap: 20px; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid #2E6A5C; border-top: 3px solid var(--accent); display: grid; grid-gap: 6px; gap: 6px; }
.steps li::before { content: "Step " counter(step); font-size: 14px; font-weight: 600; color: #2E6A5C; color: var(--accent); }
.steps p { color: #56625E; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; grid-gap: clamp(32px, 6vw, 96px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose { display: grid; grid-gap: 16px; gap: 16px; font-size: 19px; max-width: 60ch; }
.facts { margin: 0; display: grid; grid-gap: 0; gap: 0; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid #D3D9D3; border-top: 1px solid var(--line); }
.facts dt { color: #56625E; color: var(--muted); }
.facts dd { margin: 0; font-size: 40px; font-weight: 700; font-stretch: 125%; line-height: 1; }

/* ----- Team ----- */
.avatar { aspect-ratio: 4 / 5; border-radius: 12px; border-radius: var(--radius-m); background: #DCE6E0; background: var(--tint); overflow: hidden; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mono { font-size: clamp(28px, 4vw, 44px); font-weight: 700; font-stretch: 125%; color: #2E6A5C; color: var(--accent); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; gap: 20px; }
.member { text-align: left; padding: 0; border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 20px; border-radius: var(--radius-l); background: #F7F8F5; background: var(--surface); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); transition: border-color .2s, transform .25s var(--ease); }
.member:hover { border-color: #2E6A5C; border-color: var(--accent); transform: translateY(-3px); }
.member .avatar { border-radius: 0; aspect-ratio: 16 / 11; }
.member-body { padding: 18px 20px 22px; display: grid; grid-gap: 4px; gap: 4px; }
.member-body strong { font-size: 19px; font-stretch: 110%; }
.member-bio { margin-top: 6px; color: #56625E; color: var(--muted); font-size: 16px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, #1D2422 40%, transparent); background: color-mix(in srgb, var(--ink) 40%, transparent); display: grid; place-items: center; padding: 16px; }
.sheet { position: relative; width: min(720px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; background: #F7F8F5; background: var(--surface); border-radius: 20px; border-radius: var(--radius-l); padding: clamp(22px, 4vw, 40px); display: grid; grid-gap: 14px; gap: 14px; }
.sheet h3 { margin-top: 10px; font-size: 16px; color: #56625E; color: var(--muted); }
.sheet-head { display: grid; grid-template-columns: 140px 1fr; grid-gap: 24px; gap: 24px; align-items: start; }
.sheet-head > div { display: grid; grid-gap: 8px; gap: 8px; }
.sheet-head .text-link { justify-self: start; }
.sheet-photo { aspect-ratio: 1; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D3D9D3; border: 1px solid var(--line); background: #F7F8F5; background: var(--surface); font-size: 24px; line-height: 1; cursor: pointer; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 14px; gap: 14px; }
.timeline li { display: grid; grid-gap: 2px; gap: 2px; padding-left: 16px; border-left: 2px solid #2E6A5C; border-left: 2px solid var(--accent); }
.timeline .muted { font-size: 14px; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-gap: clamp(32px, 6vw, 80px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-gap: 18px; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 18px; gap: 18px; }
.field { display: grid; grid-gap: 6px; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; font: inherit; color: #1D2422; color: var(--ink); background: #F7F8F5; background: var(--surface); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 6px; border-radius: var(--radius-s); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: #2E6A5C; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, #2E6A5C 22%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form .button { justify-self: start; }
.form-feedback { padding: 12px 14px; border-radius: 6px; border-radius: var(--radius-s); background: #DCE6E0; background: var(--tint); }
.form-feedback.error { background: color-mix(in srgb, #C0392B 14%, #F7F8F5); background: color-mix(in srgb, #C0392B 14%, var(--surface)); }
.contact-facts { margin: 0; display: grid; }
.contact-facts div { padding: 16px 0; border-top: 1px solid #D3D9D3; border-top: 1px solid var(--line); }
.contact-facts dt { color: #56625E; color: var(--muted); font-size: 15px; }
.contact-facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; }

/* ----- CTA band & footer ----- */
.cta-band { background: #2E6A5C; background: var(--accent); color: #FFFFFF; color: var(--accent-ink); padding-block: clamp(48px, 7vw, 88px); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { max-width: 20ch; }
.footer { border-top: 1px solid #D3D9D3; border-top: 1px solid var(--line); padding-block: 40px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-gap: 24px; gap: 24px; }
.footer-inner > div { display: grid; grid-gap: 6px; gap: 6px; align-content: start; }
.footer-brand { font-weight: 700; font-stretch: 125%; font-size: 18px; }
.footer-brand span { color: #2E6A5C; color: var(--accent); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ----- Services dropdown ----- */
.nav-drop { position: relative; }
.nav-drop > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: #56625E; color: var(--muted); font-weight: 500; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-drop > button:hover, .nav-drop.is-open > button { color: #1D2422; color: var(--ink); }
.nav-drop > button.active { color: #1D2422; color: var(--ink); background: #DCE6E0; background: var(--tint); }
.nav-drop > button svg { transition: transform .2s cubic-bezier(.2, .8, .2, 1); transition: transform .2s var(--ease); }
.nav-drop.is-open > button svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(640px, 92vw); z-index: 50;
  background: #FFFFFF;
  background: var(--card); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 20px; border-radius: var(--radius-l);
  box-shadow: 0 18px 44px color-mix(in srgb, #1D2422 14%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 14%, transparent); padding: 10px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s cubic-bezier(.2, .8, .2, 1), visibility .18s; transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav-drop.is-open .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 2px; gap: 2px; }
.drop-panel li a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border-radius: var(--radius-m); text-decoration: none; color: #1D2422; color: var(--ink); transition: background-color .15s; }
.drop-panel li a:hover { background: #DCE6E0; background: var(--tint); }
.drop-panel strong { display: block; font-size: 15px; }
.drop-panel small { display: block; color: #56625E; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.drop-icon, .service-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, #2E6A5C 12%, #FFFFFF); background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: #2E6A5C; color: var(--accent); font-size: 18px; }
.drop-all { display: inline-block; margin: 8px 12px 6px; }

/* ----- Stats ----- */
.stats { display: grid; grid-gap: 20px; gap: 20px; }
.stat-tiles { margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 12px; gap: 12px; }
.stat-tiles div { background: #FFFFFF; background: var(--card); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 12px; border-radius: var(--radius-m); padding: 18px 18px 16px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stat-tiles dd { margin: 0; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; font-stretch: 125%; line-height: 1; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.stat-tiles div:first-child dd { color: #2E6A5C; color: var(--accent); }
.stat-tiles dt { color: #56625E; color: var(--muted); font-size: 15px; }
.stat-charts { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.bars { margin: 0; background: #FFFFFF; background: var(--card); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 12px; border-radius: var(--radius-m); padding: 20px 22px; }
.bars figcaption { font-weight: 650; font-stretch: 110%; margin-bottom: 14px; }
.bars ul { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 4px; gap: 4px; }
.bars li { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 64px; align-items: center; grid-gap: 12px; gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; transition: background-color .15s; outline-offset: 0; }
.bars li:hover, .bars li:focus-visible { background: #DCE6E0; background: var(--tint); }
.bars-label { font-size: 15px; line-height: 1.25; color: #1D2422; color: var(--ink); }
.bars-track { height: 12px; }
.bars-fill { display: block; height: 100%; width: 100%; border-radius: 0 4px 4px 0; background: #2E6A5C; background: var(--accent); transform-origin: left; transform: scaleX(var(--w)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition: transform .9s var(--ease); }
.bars-value { font-weight: 650; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; text-align: right; }
.bars-value small { font-weight: 400; color: #56625E; color: var(--muted); margin-left: 6px; font-size: 13px; opacity: 0; transition: opacity .15s; }
.bars li:hover small, .bars li:focus-visible small { opacity: 1; }

/* ----- Console ----- */
.console-section { display: grid; grid-template-columns: .8fr 1.2fr; grid-gap: clamp(28px, 5vw, 64px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.console-copy h2 { margin-bottom: 14px; }
.console {
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  background: #FFFFFF;
  background: var(--card); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 20px; border-radius: var(--radius-l); overflow: hidden; cursor: text;
  box-shadow: 0 18px 44px -20px color-mix(in srgb, #1D2422 25%, transparent);
  box-shadow: 0 18px 44px -20px color-mix(in srgb, var(--ink) 25%, transparent);
}
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #D3D9D3; border-bottom: 1px solid var(--line); background: color-mix(in srgb, #1D2422 3%, #FFFFFF); background: color-mix(in srgb, var(--ink) 3%, var(--card)); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D9D3; background: var(--line); }
.console-bar i:first-child { background: #E0695F; } .console-bar i:nth-child(2) { background: #E3B341; } .console-bar i:nth-child(3) { background: #5DB46A; }
.console-bar span { margin-left: 8px; font-size: 13px; color: #56625E; color: var(--muted); }
.console-body { height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; font: 14px/1.6 var(--mono); }
.console-out { margin: 0 0 8px; font: inherit; white-space: pre-wrap; color: #1D2422; color: var(--ink); }
.console-in { color: #1D2422; color: var(--ink); }
.console-prompt { color: #2E6A5C; color: var(--accent); font-weight: 600; margin-right: 8px; white-space: nowrap; }
.console-form { display: flex; align-items: center; }
.console-form input { flex: 1 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: #1D2422; color: var(--ink); caret-color: #2E6A5C; caret-color: var(--accent); padding: 0; }
.console-hints { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px dashed #D3D9D3; border-top: 1px dashed var(--line); }
.console-hints button { font: 13px var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid #D3D9D3; border: 1px solid var(--line); background: none; color: #56625E; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.console-hints button:hover { color: #2E6A5C; color: var(--accent); border-color: #2E6A5C; border-color: var(--accent); }

/* ----- Service tiles (home) ----- */
.service-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 12px; gap: 12px; }
.service-tiles a { height: 100%; display: grid; grid-gap: 8px; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; border-radius: var(--radius-l); background: #FFFFFF; background: var(--card); border: 1px solid #D3D9D3; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); transition: border-color .2s, transform .25s var(--ease); }
.service-tiles a:hover { border-color: #2E6A5C; border-color: var(--accent); transform: translateY(-3px); }
.service-tiles h3 { margin-top: 6px; }
.service-tiles p { color: #56625E; color: var(--muted); }

/* ----- Services page ----- */
.service-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.service-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #D3D9D3; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 15px; transition: border-color .2s, color .2s; }
.service-jump a svg { color: #2E6A5C; color: var(--accent); }
.service-jump a:hover { border-color: #2E6A5C; border-color: var(--accent); }
.service-apps { display: grid; grid-gap: 16px; gap: 16px; }
.service-app { scroll-margin-top: 88px; background: #FFFFFF; background: var(--card); border: 1px solid #D3D9D3; border: 1px solid var(--line); border-radius: 20px; border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); display: grid; grid-gap: 22px; gap: 22px; }
.service-app:target { border-color: #2E6A5C; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, #2E6A5C 18%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.service-app-head { display: flex; gap: 16px; align-items: flex-start; }
.service-app-head h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; }
.service-app-head .service-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
.service-app-body { display: grid; grid-template-columns: 1fr 1fr; grid-gap: clamp(20px, 4vw, 48px); gap: clamp(20px, 4vw, 48px); }
.service-app-body h3 { font-size: 15px; color: #56625E; color: var(--muted); margin-bottom: 10px; font-stretch: 100%; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 8px; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, #2E6A5C 14%, #FFFFFF); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid #2E6A5C; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 10px; gap: 10px; }
.proof li { display: grid; grid-template-columns: 120px 1fr; grid-gap: 14px; gap: 14px; align-items: center; }
.proof .thumb { border-radius: 12px; border-radius: var(--radius-m); padding: 7%; }
.proof strong { display: block; }
.proof small { color: #56625E; color: var(--muted); font-size: 14px; }

/* ----- Team coverflow ----- */
.cf { outline-offset: 6px; border-radius: 20px; border-radius: var(--radius-l); overflow-x: clip; padding-block: 4px; }
.cf-stage { position: relative; height: clamp(340px, 38vw, 430px); perspective: 1400px; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.cf-card {
  position: absolute; top: 0; left: 50%; width: clamp(220px, 24vw, 290px); height: 100%; margin-left: calc(clamp(220px, 24vw, 290px) / -2);
  border-radius: 20px;
  border-radius: var(--radius-l); overflow: hidden; cursor: pointer; background: #FFFFFF; background: var(--card);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, #1D2422 40%, transparent);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--ink) 40%, transparent);
  transform: translateX(calc(var(--d) * 64%)) translateZ(calc(var(--abs) * -200px)) rotateY(calc(var(--d) * -28deg)) scale(calc(1 - var(--abs) * .1));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s;
  transition: transform .6s var(--ease), opacity .6s, filter .6s;
  filter: saturate(calc(1 - var(--abs) * .45));
}
.cf-card .avatar { height: 100%; aspect-ratio: auto; border-radius: 0; }
.cf-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; color: #fff; background: linear-gradient(transparent, rgba(10, 16, 14, .72)); }
.cf-label h3 { font-size: 19px; }
.cf-label p { font-size: 14px; opacity: .85; margin-top: 2px; }
.cf-bar { display: grid; grid-template-columns: 1fr auto; grid-gap: 24px; gap: 24px; align-items: center; margin-top: 24px; }
.cf-info { display: grid; grid-gap: 10px; gap: 10px; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation: rise .45s var(--ease) both; }
.cf-info p { color: #56625E; color: var(--muted); max-width: 60ch; }
.cf-controls { display: flex; align-items: center; gap: 10px; }
.cf-controls > button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D3D9D3; border: 1px solid var(--line); background: #FFFFFF; background: var(--card); display: grid; place-items: center; font-size: 20px; cursor: pointer; transition: border-color .2s, color .2s; }
.cf-controls > button:hover { border-color: #2E6A5C; border-color: var(--accent); color: #2E6A5C; color: var(--accent); }
.cf-controls .text-link { margin-left: 8px; white-space: nowrap; }
.cf-dots { display: flex; gap: 2px; }
.cf-dots button { width: 22px; height: 30px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.cf-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #D3D9D3; background: var(--line); transition: width .3s cubic-bezier(.2, .8, .2, 1), background-color .3s; transition: width .3s var(--ease), background-color .3s; }
.cf-dots button[aria-current="true"]::before { width: 20px; background: #2E6A5C; background: var(--accent); }

/* Avatar fallback with a per-person tone */
.avatar { background: linear-gradient(150deg, color-mix(in srgb, #2E6A5C 30%, #FFFFFF), color-mix(in srgb, #2E6A5C 8%, #FFFFFF)); background: linear-gradient(150deg, color-mix(in srgb, var(--tone, var(--accent)) 30%, var(--card)), color-mix(in srgb, var(--tone, var(--accent)) 8%, var(--card))); }
.avatar-mono { color: #2E6A5C; color: var(--tone, var(--accent)); }
.cf-card .avatar-mono { font-size: clamp(56px, 7vw, 88px); }

/* New thumbnails */
.th-fleet { position: relative; background: #F7F8F5; background: var(--surface); border-radius: 10px; overflow: hidden; background-image: linear-gradient(var(--soft) 1px, transparent 1px), linear-gradient(90deg, var(--soft) 1px, transparent 1px); background-size: 18px 18px; }
.th-fleet svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-fleet path { fill: none; stroke: var(--p); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.th-fleet path.alt { stroke: var(--mid); stroke-dasharray: 6 6; }
.th-fleet b { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 25%, transparent); }
.th-api { position: relative; }
.th-node { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 14px; background: var(--p); }
.th-leaf { position: absolute; width: 26%; height: 22%; border-radius: 8px; background: #F7F8F5; background: var(--surface); box-shadow: 0 1px 0 #D3D9D3; box-shadow: 0 1px 0 var(--line); display: grid; place-items: center; }
.th-leaf i { width: 60%; height: 5px; border-radius: 3px; background: var(--mid); }
.th-leaf.l0 { left: 0; top: 0; } .th-leaf.l1 { right: 0; top: 0; } .th-leaf.l2 { left: 0; bottom: 0; } .th-leaf.l3 { right: 0; bottom: 0; }
.th-api::before { content: ""; position: absolute; left: 13%; right: 13%; top: 11%; bottom: 11%; border: 2px dashed var(--mid); border-radius: 6px; }
.th-mobile { display: flex; justify-content: center; gap: 12%; }
.th-phone { width: 30%; height: 100%; border-radius: 14px; background: #F7F8F5; background: var(--surface); box-shadow: 0 1px 0 #D3D9D3, 0 12px 24px -16px var(--p); box-shadow: 0 1px 0 var(--line), 0 12px 24px -16px var(--p); padding: 8% 7%; display: flex; flex-direction: column; gap: 8%; }
.th-phone:nth-child(2) { transform: translateY(8%); }
.th-phone > span { height: 26%; border-radius: 8px; background: var(--mid); }
.th-phone > div { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 6px; gap: 6px; flex: 1 1; }
.th-phone > div i { border-radius: 5px; background: var(--soft); }
.th-phone > b { height: 10%; border-radius: 999px; background: var(--p); }

/* ----- Scroll reveal (see hooks/useReveal.js) ----- */
.page, .footer { overflow-x: clip; }
.reveal-ready [data-reveal] { opacity: 0; transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: 0ms; transition-delay: var(--rd, 0ms); }
.reveal-ready [data-reveal="up"] { transform: translateY(36px); }
.reveal-ready [data-reveal="left"] { transform: translateX(-48px); }
.reveal-ready [data-reveal="right"] { transform: translateX(48px); }
.reveal-ready [data-reveal="zoom"] { transform: translateY(24px) scale(.95); }
.reveal-ready [data-reveal="pop"] { transform: scale(.82); transition-timing-function: ease, cubic-bezier(.34, 1.56, .64, 1); }
.reveal-ready [data-reveal="tilt"] { transform: perspective(1000px) rotateX(14deg) translateY(40px); transform-origin: 50% 100%; }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid > :nth-child(3) { display: none; }
  .service-list-full { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-tiles { grid-template-columns: repeat(3, 1fr); }
  .console-section { grid-template-columns: 1fr; }
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px clamp(16px, 4vw, 48px) 16px; padding: 8px var(--gutter) 16px; background: #ECEFEA; background: var(--bg); border-bottom: 1px solid #D3D9D3; border-bottom: 1px solid var(--line); display: none; }
  .is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 18px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-inner { gap: 12px; }
  .hero { grid-template-columns: 1fr; }
  .plan { max-width: 460px; justify-self: center; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .nav-links { max-height: calc(100svh - 68px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-drop > button { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 18px; }
  .drop-panel { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 6px; background: none; display: none; opacity: 1; visibility: visible; }
  .nav-drop.is-open .drop-panel { display: block; transform: none; }
  .drop-panel ul { grid-template-columns: 1fr; }
  .drop-panel li a { padding: 8px 14px; font-size: 16px; align-items: center; }
  .drop-panel small { display: none; }
  .stat-charts, .service-app-body { grid-template-columns: 1fr; }
  .cf-bar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid > :nth-child(3) { display: flex; }
  .service-list, .service-list-full, .steps, .team-grid, .form-row, .footer-inner { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .service-tiles { grid-template-columns: 1fr; }
  .console-body { height: 280px; font-size: 13px; }
  .cf-card { transform: translateX(calc(var(--d) * 78%)) translateZ(calc(var(--abs) * -200px)) rotateY(calc(var(--d) * -24deg)) scale(calc(1 - var(--abs) * .12)); }
  .cf-controls { flex-wrap: wrap; }
  .proof li { grid-template-columns: 96px 1fr; }
  .bars li { grid-template-columns: 108px 1fr 32px; gap: 10px; }
  .bars-value small { display: none; }
  .sheet-head { grid-template-columns: 96px 1fr; gap: 16px; }
  .theme-picker { gap: 4px; padding: 3px; }
  .theme-picker button { width: 22px; height: 22px; }
  .brand { font-size: 16px; }
  .actions .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .plan-walls path, .plan-dim path, .plan-net .net-draw { stroke-dashoffset: 0; }
  .swarm { display: none; }
}

/* ----- Site-wide swarm rebuild (see swarm/engine.js) ----- */
[data-swarm="wait"] { opacity: 0 !important; }
[data-swarm="draw"] { -webkit-clip-path: inset(0 100% 100% 0); clip-path: inset(0 100% 100% 0); }
[data-swarm="drawing"] { -webkit-clip-path: inset(0); clip-path: inset(0); transition: -webkit-clip-path .45s linear; transition: clip-path .45s linear; transition: clip-path .45s linear, -webkit-clip-path .45s linear; transition: -webkit-clip-path var(--swarm-t, .45s) linear; transition: clip-path var(--swarm-t, .45s) linear; transition: clip-path var(--swarm-t, .45s) linear, -webkit-clip-path var(--swarm-t, .45s) linear; }
::highlight(swarm-hide) { color: transparent; -webkit-text-decoration-color: transparent; text-decoration-color: transparent; }
/* Clipped to the page (height set from JS) so cursors/boxes at the edges never
   resize the document — that resize is what made mobile jump while scrolling. */
.swarm-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 60; pointer-events: none; overflow: hidden; overflow: clip; contain: layout paint style; }
.swarm-layer .swarm-cursor { position: absolute; }
.swarm-box {
  position: absolute; left: 0; top: 0; border: 1.5px solid var(--c); border-radius: 4px; opacity: 0;
  background: color-mix(in srgb, var(--c) 5%, transparent); transition: opacity .15s;
}
.swarm-box.is-on { opacity: 1; }
.swarm-box span {
  position: absolute; left: -1.5px; top: -20px; font: 600 11px/1 "Archivo", "Segoe UI", system-ui, sans-serif; font: 600 11px/1 var(--font); color: #fff; background: var(--c);
  padding: 4px 7px; border-radius: 4px 4px 4px 0; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  [data-swarm] { opacity: 1 !important; -webkit-clip-path: none !important; clip-path: none !important; }
  .swarm-layer { display: none; }
}

