/* Samelis Integrated Limited: shared styles. No build step. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see fonts/) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand constants (same in both themes) */
  --night: #0C1411;
  --night-2: #0F1D18;
  --lime: #B8F23A;
  --amber: #FFB020;
  --cyan: #45C4E8;
  --coral: #FF7A59;

  /* Light theme roles */
  --bg: #F3F5EF;
  --surface: #FFFFFF;
  --surface-2: #E7ECE2;
  --text: #0C1411;
  --muted: #4B5751;
  --line: #D3DACD;
  --line-strong: #8C998F;
  --link: #2E6A0B;
  --focus: #2E6A0B;

  /* Pillar colours used as text on light surfaces */
  --tech-ink: #2E6A0B;
  --logi-ink: #8A6100;
  --cons-ink: #0E6E8C;
  --real-ink: #B23A1C;
  --tech-tint: #E9F8C9;
  --logi-tint: #FFF0CF;
  --cons-tint: #DDF3FA;
  --real-tint: #FFE5DD;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(12 20 17 / 6%), 0 12px 32px -12px rgb(12 20 17 / 18%);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A100D;
    --surface: #111A16;
    --surface-2: #17231E;
    --text: #EEF2EA;
    --muted: #A7B3AB;
    --line: #22312A;
    --line-strong: #4D5F56;
    --link: #C8F55A;
    --focus: #C8F55A;

    --tech-ink: #C8F55A;
    --logi-ink: #FFC14D;
    --cons-ink: #6ED3F0;
    --real-ink: #FF9479;
    --tech-tint: #1D2A12;
    --logi-tint: #2A2112;
    --cons-tint: #102630;
    --real-tint: #2E1813;

    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--night); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--night); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: 16px; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
}
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  min-height: 44px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-light { font-weight: 600; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-panel { display: flex; align-items: center; gap: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav-list a:hover { background: var(--surface-2); }
.nav-list a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav-cta { margin-left: 8px; }
.menu-button {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.menu-icon { width: 18px; height: 12px; position: relative; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 9px; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .js .menu-button { display: inline-flex; }
  .js .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
  }
  .js .nav-panel.is-open { display: block; }
  .nav-panel .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-panel .nav-list a { padding: 0 16px; font-size: 1.05rem; }
  .nav-panel .nav-cta { margin: 12px 0 0; width: 100%; }
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--line-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-border);
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-primary { --btn-bg: var(--lime); --btn-fg: var(--night); --btn-border: var(--lime); }
.btn-primary:focus-visible { outline-color: var(--focus); }
.on-night .btn-primary:focus-visible, .hero .btn-primary:focus-visible { outline-color: var(--lime); }
.btn-ghost-night {
  --btn-bg: rgb(255 255 255 / 6%); --btn-fg: #EEF2EA; --btn-border: rgb(255 255 255 / 28%);
}
.btn-ghost-night:hover { --btn-bg: rgb(255 255 255 / 12%); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shimmer: a soft sheen that crosses the primary button. */
.shimmer::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 70%) 50%, transparent 65%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .shimmer::after { animation: shimmer 4.2s ease-in-out 1.2s infinite; }
  .shimmer:hover::after { animation-duration: 1.4s; }
}
@keyframes shimmer {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  font: 700 0.8rem/1.1 var(--font-body); letter-spacing: 0.02em;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.chip-live { background: var(--tech-tint); color: var(--tech-ink); border-color: color-mix(in srgb, var(--tech-ink) 30%, transparent); }
.chip-live::before { background: var(--tech-ink); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tech-ink) 50%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .chip-live::before { animation: pulse 2.4s ease-out infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tech-ink) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}
.chip-soon::before { background: transparent; border: 2px dashed var(--line-strong); width: 10px; height: 10px; }
.chip-night { background: rgb(255 255 255 / 8%); color: #DCE4DB; border-color: rgb(255 255 255 / 16%); }
.chip-night::before { background: var(--lime); }

/* ---------- Hero ---------- */
.hero-wrap { padding: 12px var(--gutter) 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1320px; margin-inline: auto;
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--night);
  color: #EEF2EA;
  border: 1px solid #1C2A24;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px);
}
.hero h1 { color: #F4F7F0; }
.hero .lead { color: #B9C4BC; max-width: 34ch; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-note { color: #93A198; font-size: 0.95rem; }
.page-hero .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.25rem); max-width: 16ch; }
.page-hero .lead { max-width: 46ch; }

/* Aurora: slow drifting colour fields behind the hero. */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: 0.3; mix-blend-mode: screen;
}
.aurora .a1 { background: radial-gradient(closest-side, rgb(184 242 58 / 34%), transparent); top: -44vmax; left: -22vmax; }
.aurora .a2 { background: radial-gradient(closest-side, rgb(69 196 232 / 40%), transparent); top: -30vmax; right: -30vmax; }
.aurora .a3 { background: radial-gradient(closest-side, rgb(255 176 32 / 32%), transparent); bottom: -48vmax; left: 18%; }
.aurora .a4 { background: radial-gradient(closest-side, rgb(255 122 89 / 30%), transparent); bottom: -44vmax; right: -16vmax; }
@media (prefers-reduced-motion: no-preference) {
  .aurora .a1 { animation: drift1 22s ease-in-out infinite alternate; }
  .aurora .a2 { animation: drift2 26s ease-in-out infinite alternate; }
  .aurora .a3 { animation: drift3 30s ease-in-out infinite alternate; }
  .aurora .a4 { animation: drift2 24s ease-in-out -8s infinite alternate-reverse; }
}
@keyframes drift1 { to { transform: translate(14vmax, 8vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-12vmax, 10vmax) scale(0.92); } }
@keyframes drift3 { to { transform: translate(10vmax, -8vmax) scale(1.15); } }

/* Dot grid, fading towards the edges. */
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgb(238 242 234 / 16%) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, #000 30%, transparent 80%);
}

/* Text reveal: the highlight sweeps in; the words are always visible. */
.hl { position: relative; white-space: nowrap; color: var(--night); padding: 0 0.12em; margin: 0 -0.04em; }
.hl::before {
  content: ""; position: absolute; z-index: -1; inset: 0.08em 0 0.02em;
  background: var(--lime); border-radius: 0.14em;
  transform-origin: left center;
}
.hero .hl { color: var(--night); }
@media (prefers-reduced-motion: no-preference) {
  .hl::before { animation: sweep 0.9s cubic-bezier(.2,.8,.2,1) 0.35s both; }
  .reveal-words .w { display: inline-block; animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; }
  .reveal-words .w:nth-child(2) { animation-delay: 0.06s; }
  .reveal-words .w:nth-child(3) { animation-delay: 0.12s; }
  .reveal-words .w:nth-child(4) { animation-delay: 0.18s; }
  .reveal-words .w:nth-child(5) { animation-delay: 0.24s; }
}
/* Starts at 60% opacity so the headline is readable from the first frame. */
@keyframes rise { from { opacity: 0.6; transform: translateY(0.18em); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }

/* ---------- Integration diagram ---------- */
.diagram { width: 100%; max-width: 520px; justify-self: center; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram .link { fill: none; stroke-width: 2; stroke-linecap: round; }
.diagram .link-base { stroke: rgb(238 242 234 / 14%); }
.diagram .link-live { stroke: var(--lime); stroke-dasharray: 6 10; }
.diagram .link-soon { stroke-dasharray: 2 9; opacity: 0.75; }
.diagram .mesh { stroke: rgb(238 242 234 / 10%); stroke-width: 1.5; stroke-dasharray: 3 7; fill: none; }
.diagram .ring { fill: none; stroke: rgb(238 242 234 / 10%); stroke-width: 1.5; }
.diagram .node-bg { fill: #121D19; stroke-width: 2; }
.diagram .node-label { font: 700 15px var(--font-display); fill: #EEF2EA; letter-spacing: -0.01em; }
.diagram .node-status { font: 600 11.5px var(--font-body); fill: #9FAEA5; letter-spacing: 0.06em; text-transform: uppercase; }
.diagram .core-halo { fill: rgb(184 242 58 / 12%); }
.diagram .pulse-dot { fill: var(--lime); }
.diagram .node { transition: transform 0.3s ease; transform-box: fill-box; transform-origin: center; }
.diagram .node:hover { transform: scale(1.05); }
@media (prefers-reduced-motion: no-preference) {
  .diagram .link-live { animation: flow 1.2s linear infinite; }
  .diagram .link-soon { animation: flow 3.6s linear infinite; }
  .diagram .mesh { animation: flow 6s linear infinite reverse; }
  .diagram .core-halo { animation: halo 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .diagram .spin { animation: spin 40s linear infinite; transform-box: view-box; transform-origin: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { .diagram .pulse-dot { display: none; } }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes halo { 50% { transform: scale(1.18); opacity: 0.55; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); margin-top: clamp(16px, 3vw, 28px);
  background: var(--surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-list {
  display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 18px 0;
}
.marquee-list li {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font: 700 clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem)/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
}
.marquee-list li::after {
  content: ""; width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px;
  background: var(--lime); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent);
}
.marquee-list li.soon { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 10px; padding-inline: var(--gutter); }
  .marquee-list[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards and spotlight ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--spot, var(--lime)) 22%, transparent), transparent 60%);
  transition: opacity 0.3s ease;
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--spot, var(--lime)) 90%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .spot:hover::before, .spot:hover::after { opacity: 1; }
}
.spot:focus-within::before { opacity: 1; }

.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--icon-bg, var(--tech-tint)); color: var(--icon-fg, var(--tech-ink));
}
.icon svg { width: 24px; height: 24px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.feature { display: grid; gap: 14px; align-content: start; }
.feature p { color: var(--muted); }

/* Pillar colour sets */
.p-tech { --spot: var(--lime); --icon-bg: var(--tech-tint); --icon-fg: var(--tech-ink); --pillar: var(--tech-ink); }
.p-logi { --spot: var(--amber); --icon-bg: var(--logi-tint); --icon-fg: var(--logi-ink); --pillar: var(--logi-ink); }
.p-cons { --spot: var(--cyan); --icon-bg: var(--cons-tint); --icon-fg: var(--cons-ink); --pillar: var(--cons-ink); }
.p-real { --spot: var(--coral); --icon-bg: var(--real-tint); --icon-fg: var(--real-ink); --pillar: var(--real-ink); }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "tech tech logi logi"
    "tech tech cons real";
}
.bento > .t-tech { grid-area: tech; }
.bento > .t-logi { grid-area: logi; }
.bento > .t-cons { grid-area: cons; }
.bento > .t-real { grid-area: real; }
.tile { display: grid; gap: 14px; align-content: start; min-height: 220px; }
.tile p { color: var(--muted); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); }
.tile-big {
  background: var(--night); color: #EEF2EA; border-color: #1C2A24; align-content: space-between;
}
.tile-big h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: #F4F7F0; }
.tile-big p { color: #B9C4BC; }
.tile-big .icon { --icon-bg: rgb(184 242 58 / 14%); --icon-fg: var(--lime); }
.tile-big .chip-live { background: rgb(184 242 58 / 14%); color: var(--lime); border-color: rgb(184 242 58 / 30%); }
.tile-big .chip-live::before { background: var(--lime); }
.tile-big .ticks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tile-big .ticks li {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%);
}
.tile-pattern {
  position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; z-index: -1; opacity: 0.5;
  background:
    radial-gradient(circle, rgb(184 242 58 / 50%) 1.5px, transparent 2px) 0 0 / 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(circle at 100% 100%, #000 10%, transparent 70%);
}
.pillar-bar { height: 4px; width: 44px; border-radius: 4px; background: var(--pillar); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "tech tech" "logi logi" "cons real"; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tech" "logi" "cons" "real"; }
  .tile { min-height: 0; }
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-sticky { position: sticky; top: 100px; display: grid; gap: 20px; justify-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split-sticky { position: static; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 800 0.95rem/1 var(--font-display); color: var(--tech-ink); letter-spacing: 0.04em;
}
.step::after {
  content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--tech-ink);
}
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Night panel (vision, CTA) ---------- */
.on-night {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #EEF2EA; border-radius: clamp(20px, 3vw, 32px);
  border: 1px solid #1C2A24;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px);
}
.on-night h2 { color: #F4F7F0; }
.on-night .muted, .on-night .lead { color: #B9C4BC; }
.on-night .eyebrow { color: #A9B7AE; }
.on-night a:not(.btn) { color: var(--lime); }
.on-night .aurora span { opacity: 0.3; }
.vision-quote {
  font: 800 clamp(1.7rem, 1.2rem + 2.4vw, 3.2rem)/1.1 var(--font-display); letter-spacing: -0.025em;
  max-width: 22ch; margin: 18px 0 0; color: #F4F7F0; text-wrap: balance;
}
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 56px); list-style: none; padding: 0; }
.values li {
  padding: 20px; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%);
  display: grid; gap: 6px;
}
.values strong { font: 700 1.15rem/1.2 var(--font-display); color: #F4F7F0; }
.values span { color: #B9C4BC; font-size: 0.98rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }

.cta-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: end; gap: 28px 48px; }
.cta-panel h2 { max-width: 16ch; }
.cta-panel .cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-mail { font-weight: 600; word-break: break-word; }
@media (max-width: 820px) { .cta-panel { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.vision-more { margin-top: 28px; font-weight: 700; }

/* ---------- Products ---------- */
.product-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.product {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr;
  gap: 14px 16px; align-items: start;
}
.product .chip { grid-column: 1 / -1; align-self: end; }
.product-body { display: grid; gap: 6px; }
.product-body p { color: var(--muted); }
.product-link { font-weight: 700; width: fit-content; }
.monogram {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--icon-fg);
  font: 800 1.9rem/1 var(--font-display); letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--icon-fg) 22%, transparent);
}
.product-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: start; }
.product-detail .monogram { width: 72px; height: 72px; border-radius: 20px; font-size: 2.4rem; }
.product-detail h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.product-detail .stack p { color: var(--muted); max-width: 56ch; }
.product-detail .head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
@media (max-width: 480px) { .product-detail { grid-template-columns: minmax(0, 1fr); } }

.product-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-list .stack { justify-items: start; }
@media (max-width: 860px) { .product-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */
.story p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
.story .story-big {
  color: var(--text); font: 800 clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem)/1.12 var(--font-display); letter-spacing: -0.02em;
}
.statement { font: 700 clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem)/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--text) !important; }
.details { display: grid; gap: 0; margin: 0; padding-block: 8px; }
.details > div {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .details > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services ---------- */
.dot-tech { --d: var(--lime); }
.dot-logi { --d: var(--amber); }
.dot-cons { --d: var(--cyan); }
.dot-real { --d: var(--coral); }
.plan-intro { font-weight: 700; }
.privacy-title { margin: 14px 0 12px; }
.privacy-summary { margin-top: 28px; }

/* ---------- Pillar detail (services) ---------- */
.pillar-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pillar-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%); color: #EEF2EA; text-decoration: none; font-weight: 600;
  background: rgb(255 255 255 / 5%);
}
.pillar-nav a:hover { background: rgb(255 255 255 / 12%); }
.pillar-nav .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--d); }
.pillar-section { border-top: 1px solid var(--line); }
.pillar-head { display: grid; gap: 16px; justify-items: start; }
.pillar-head .icon { width: 56px; height: 56px; border-radius: 16px; }
.pillar-head .icon svg { width: 28px; height: 28px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--line-strong);
}
.plan-list li::before {
  content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; border: 2px solid var(--pillar);
}
.plan-list strong { display: block; font-weight: 700; }
.plan-list span { color: var(--muted); }
.note {
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
  border-left: 4px solid var(--pillar, var(--line-strong)); font-size: 0.98rem;
}

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  position: relative; display: grid; gap: 6px; padding: 0 0 32px 36px;
  border-left: 2px dashed var(--line-strong); margin-left: 9px;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -11px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--pillar, var(--line-strong));
}
.timeline .now::before { background: var(--lime); border-color: var(--tech-ink); }
.timeline .now { border-left-style: solid; border-left-color: var(--tech-ink); }
.timeline h3 { font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline p { color: var(--muted); }

/* ---------- Contact ---------- */
.mail-card { display: grid; gap: 20px; }
.mail-big {
  font: 800 clamp(1.25rem, 0.8rem + 2.6vw, 2.6rem)/1.15 var(--font-display); letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; overflow-wrap: anywhere;
}
.mail-big:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; }
.copy-status { min-height: 1.6em; color: var(--tech-ink); font-weight: 600; }
.reason { display: grid; gap: 14px; align-content: space-between; }
.reason p { color: var(--muted); }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 48px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--tech-ink); }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.summary-list svg { width: 22px; height: 22px; flex: none; color: var(--tech-ink); }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 20px; }
.lost-code {
  font: 800 clamp(5rem, 3rem + 12vw, 11rem)/0.9 var(--font-display); letter-spacing: -0.05em;
  background: linear-gradient(100deg, var(--tech-ink), var(--cons-ink) 45%, var(--logi-ink) 70%, var(--real-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: clamp(48px, 8vw, 96px); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-inner p { color: var(--muted); max-width: 34ch; margin-top: 12px; }
.footer-title { font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal {
  display: grid; gap: 4px; margin-top: 36px; color: var(--muted); font-size: 0.92rem;
}
.footer-legal strong { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-inner > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Responsive hero ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .diagram { max-width: 420px; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .js .menu-button { padding: 0 12px; }
  .btn { padding: 0 20px; }
  .hero-copy .btn-row { width: 100%; }
  .hero-copy .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion: stop everything that moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}

/* ---------- Forced colours / high contrast ---------- */
@media (forced-colors: active) {
  .btn, .chip, .card { border: 1px solid CanvasText; }
  .hl::before { background: Highlight; }
}

/* ---------- Dark theme: lift night panels off the page ---------- */
@media (prefers-color-scheme: dark) {
  .hero, .on-night, .tile-big { background: #0F1A16; border-color: #22342B; }
  .diagram .node-bg { fill: #14221C; }
}

/* ---------- Page hero decoration (desktop only) ---------- */
.page-hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  right: clamp(-40px, 2vw, 40px); top: 50%; width: min(400px, 36vw); aspect-ratio: 1;
  translate: 0 -50%;
  background: url("assets/orbit.svg") no-repeat center / contain;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero::after { animation: spin 90s linear infinite; }
}
@media (max-width: 900px) { .page-hero::after { display: none; } }
.copy-status { margin-top: -8px; }
.brand > span { white-space: nowrap; }
.footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 360px) {
  .menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { font-size: 1rem; }
}
.hero :focus-visible, .on-night :focus-visible, .tile-big :focus-visible { outline-color: var(--lime); }
.prose .summary-list { padding-left: 0; margin: 0; }
