/* ============ layer ix · site v2 ============ */

:root {
  --ink: #14140f;
  --ink-soft: #2a2a24;
  --gray: #55554b;
  --muted: #6e6e63;
  --muted-2: #9c9c90;
  --cream: #f4f2ec;
  --cream-2: #eceae2;
  --sage: #d9dec8;
  --sage-bright: #b7c2a0;
  --sage-deep: #4a5238;
  --line: rgba(20, 20, 15, 0.13);
  --line-strong: rgba(20, 20, 15, 0.22);
  --line-dark: rgba(244, 242, 236, 0.14);
  --line-dark-strong: rgba(244, 242, 236, 0.24);
  --invert: #f4f2ec;
  --invert-soft: rgba(244, 242, 236, 0.62);
  --invert-dim: #b3b3a8;
  --font-display: "Funnel Display", "Inter", -apple-system, sans-serif;  /* brand face */
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-swift: cubic-bezier(0.3, 0.85, 0.25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.theme-dark { background: var(--ink); color: var(--invert); }

::selection { background: var(--sage-bright); color: var(--ink); }

/* ---------- premium section transitions: overlapping panels ---------- */
/* Each panel slides over the previous section with rounded shoulders,
   so colors stay crisp and boundaries read as layered sheets. */
.panel {
  position: relative;
  border-radius: 44px 44px 0 0;
  margin-top: -44px;
  box-shadow: 0 -24px 48px -32px rgba(20, 20, 15, 0.35);
}
#what-we-do.panel { padding-top: 96px; background: var(--cream); }
#infrastructure.panel { padding-top: 88px; }
#security.panel { padding-top: 96px; background: var(--cream); }
.footer.panel { padding-top: 84px; }

/* film grain on dark surfaces */
.hero.theme-dark,
.section.theme-dark,
.footer.theme-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}


/* ---------- primitives ---------- */

.sq {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--sage-bright);
  flex: none;
}
.sq--ink { background: var(--ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--dark { color: var(--invert-soft); }
.eyebrow--sage { color: var(--sage-deep); }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mono-tag--dim { color: var(--muted-2); }
.mono-tag--muted { color: var(--muted-2); }
.mono-tag--sage { color: var(--sage-deep); }
.mono-tag--sage-deep { color: var(--sage-deep); }

.display {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.h2--invert { color: var(--invert); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
}
.lead--invert { color: var(--invert-soft); }

.section__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray);
  max-width: 640px;
}
.section__sub--invert { color: var(--invert-dim); }

.statement {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.statement--invert { color: var(--invert); font-size: clamp(20px, 2.2vw, 26px); }
.statement__soft { color: var(--invert-dim); font-weight: 400; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pill--lg { padding: 14px 30px; font-size: 16px; }
.pill--sage { background: var(--sage); color: var(--ink); }
.pill--sage:hover { background: var(--sage-bright); }
.pill--cream { background: var(--cream); color: var(--ink); }
.pill--cream:hover { background: #fff; }
.pill--dark { background: var(--ink); color: var(--cream); }
.pill--dark:hover { background: var(--ink-soft); }
.pill--ghost-dark { border: 1px solid var(--line-dark-strong); color: var(--invert); }
.pill--ghost-dark:hover { border-color: var(--invert); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(20, 20, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line-dark); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; }
/* brand lockup: the wordmark and glyph ship as one asset (assets/logo.svg).
   Its artwork is black, and every surface it sits on here is dark, so it is
   inverted the same way the old glyph was. */
.brand__logo { height: 40px; width: auto; display: block; }
.brand__logo--invert { filter: invert(1); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--invert-soft);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--invert); }
.nav__links .pill { color: var(--ink); }

/* language switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav__links .lang__opt { color: var(--invert-soft); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav__links .lang__opt:hover { color: var(--invert); }
.nav__links .lang__opt.is-active { color: var(--invert); border-bottom-color: var(--sage-bright); }
.lang__sep { color: rgba(244, 242, 236, 0.3); font-size: 11px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

/* desktop: hero fits exactly in the first viewport */
@media (min-width: 1025px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 92px 0 48px;
  }
  .hero > .container { width: 100%; }
}
@media (min-width: 1025px) and (max-height: 780px) {
  .display { font-size: clamp(30px, 3.5vw, 46px); }
  .hero__copy { gap: 20px; }
  .lead { font-size: 17px; }
}

/* abstract animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-orb--1 {
  width: 56vw; height: 56vw;
  max-width: 860px; max-height: 860px;
  top: -28%; right: -14%;
  background: radial-gradient(circle at 42% 42%, rgba(183, 194, 160, 0.17) 0%, rgba(183, 194, 160, 0.06) 38%, transparent 68%);
  animation: heroDrift1 44s ease-in-out infinite alternate;
}
.hero-orb--2 {
  width: 64vw; height: 64vw;
  max-width: 980px; max-height: 980px;
  bottom: -46%; left: -18%;
  background: radial-gradient(circle at 55% 45%, rgba(74, 82, 56, 0.32) 0%, rgba(74, 82, 56, 0.1) 42%, transparent 70%);
  animation: heroDrift2 56s ease-in-out infinite alternate;
}
.hero-orb--3 {
  width: 30vw; height: 30vw;
  max-width: 460px; max-height: 460px;
  top: 24%; left: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(244, 242, 236, 0.07) 0%, rgba(244, 242, 236, 0.025) 45%, transparent 70%);
  animation: heroDrift3 36s ease-in-out infinite alternate;
}
@keyframes heroDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-9vw, 7vw) scale(1.18); }
}
@keyframes heroDrift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(7vw, -6vw) scale(0.94); }
}
@keyframes heroDrift3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 5vw) scale(1.25); }
}
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 242, 236, 0.055) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(110% 100% at 68% 36%, #000 30%, transparent 78%);
  mask-image: radial-gradient(110% 100% at 68% 36%, #000 30%, transparent 78%);
}
.hero-bg__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 15, 0.55) 0%, transparent 26%, transparent 68%, #14140f 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* hero diagram: abstract infrastructure network */
.net {
  position: relative;
  aspect-ratio: 560 / 620;
  max-width: 560px;
  margin: 0 auto;
}

.net__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.net__lines path {
  stroke: rgba(244, 242, 236, 0.3);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  vector-effect: non-scaling-stroke;
  animation: netDash 9s linear infinite, netFadeIn 0.7s ease backwards;
  animation-delay: 0s, var(--d, 0s);
}
/* line tiers: human->tools, tools->hub, hub->systems */
.net__lines path:nth-child(1) { --d: 0.42s; }
.net__lines path:nth-child(2) { --d: 0.48s; }
.net__lines path:nth-child(3) { --d: 0.54s; }
.net__lines path:nth-child(4) { --d: 0.6s; }
.net__lines path:nth-child(5) { --d: 1s; }
.net__lines path:nth-child(6) { --d: 1.06s; }
.net__lines path:nth-child(7) { --d: 1.12s; }
.net__lines path:nth-child(8) { --d: 1.18s; }
.net__lines path:nth-child(9) { --d: 1.42s; }
.net__lines path:nth-child(10) { --d: 1.48s; }
.net__lines path:nth-child(11) { --d: 1.54s; }
.net__lines path:nth-child(12) { --d: 1.6s; }
.net__lines path:nth-child(13) { --d: 1.66s; }
.net__lines path:nth-child(14) { --d: 1.72s; }

@keyframes netPop {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes netFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes netDash {
  to { stroke-dashoffset: -63; }
}


/* category indicators */
.net-lbl {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  animation: netFadeIn 0.7s ease backwards;
  animation-delay: var(--d, 0s);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.38);
  white-space: nowrap;
}

/* node component: --x/--y set the center; variants below */
.net-node {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  animation: netPop 0.6s var(--ease-swift) backwards;
  animation-delay: var(--d, 0s);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: rgba(29, 29, 21, 0.85);
  border: 1px solid rgba(244, 242, 236, 0.16);
  color: var(--invert);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-swift), border-color 0.35s ease;
}
.net-node:hover {
  transform: translate(-50%, calc(-50% - 3px));
  border-color: rgba(244, 242, 236, 0.34);
}

.net-node__ic {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(244, 242, 236, 0.08);
  flex: none;
  transition: background 0.35s ease;
}
.net-node:hover .net-node__ic { background: rgba(183, 194, 160, 0.22); }
.net-node__ic svg { width: 16px; height: 16px; display: block; }
.net-node__ic img { width: 15px; height: 15px; object-fit: contain; display: block; }
.net-node__ic--ink { background: rgba(20, 20, 15, 0.85); }
.net-node__ic--cream { background: var(--cream); }

.net-node--light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6);
}
.net-node--light:hover { border-color: var(--cream); }

.net-node--sage {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--ink);
}
.net-node--sage:hover { border-color: var(--sage-bright); }

.net-node--hub {
  padding: 9px 20px 9px 9px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 70px 6px rgba(183, 194, 160, 0.16), 0 20px 40px -22px rgba(0, 0, 0, 0.6);
  animation: netPop 0.7s var(--ease-swift) backwards, hubPulse 4.5s ease-out infinite;
  animation-delay: var(--d, 0s), 2s;
}
@keyframes hubPulse {
  0% { box-shadow: 0 0 70px 6px rgba(183, 194, 160, 0.16), 0 20px 40px -22px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(183, 194, 160, 0.35); }
  55% { box-shadow: 0 0 70px 6px rgba(183, 194, 160, 0.16), 0 20px 40px -22px rgba(0, 0, 0, 0.6), 0 0 0 14px rgba(183, 194, 160, 0); }
  100% { box-shadow: 0 0 70px 6px rgba(183, 194, 160, 0.16), 0 20px 40px -22px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(183, 194, 160, 0); }
}

/* narrow desktops: compact pills so the network stays collision-free */
@media (min-width: 1025px) and (max-width: 1280px) {
  .net-node { font-size: 12px; gap: 8px; padding: 6px 13px 6px 6px; }
  .net-node--hub { font-size: 13px; padding: 8px 16px 8px 8px; }
  .net-node__ic { width: 24px; height: 24px; }
  .net-node__ic svg { width: 14px; height: 14px; }
}


/* ---------- sections ---------- */

.section { padding: 110px 0; }
.section--tint { background: var(--cream-2); }
.section--sage { background: var(--sage); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 760px;
}

/* ---------- what we do (fits one viewport on desktop) ---------- */

#what-we-do { padding: 64px 0 72px; }
#what-we-do .section__head { margin-bottom: 30px; gap: 12px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-card {
  position: relative;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.35s var(--ease-swift), box-shadow 0.35s ease, border-color 0.35s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 48px -32px rgba(20, 20, 15, 0.3);
}
.svc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.svc-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.svc-card .sq { opacity: 0; transform: scale(0.6); transition: opacity 0.35s ease, transform 0.35s var(--ease-swift); }
.svc-card:hover .sq { opacity: 1; transform: none; }
.svc-card__title { font-size: 18.5px; font-weight: 600; letter-spacing: -0.015em; }
.svc-card__desc { font-size: 14.5px; line-height: 1.55; color: var(--gray); }

/* card mini-illustrations (same language as the diagrams) */
.svc-ill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  height: 106px;
  margin: 0 0 12px;
  border-radius: 12px;
  background-image: radial-gradient(rgba(20, 20, 15, 0.07) 1px, transparent 1.5px);
  background-size: 18px 18px;
  background-position: 4px 4px;
}
.svc-ill--col { flex-direction: column; gap: 7px; }

.mini-stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.mini-tile {
  display: block;
  height: 16px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 3px 0 #d6d2c4,
    0 8px 14px -10px rgba(20, 20, 15, 0.35);
}

.mini-core {
  width: 58px;
  height: 40px;
  position: relative;
  background: linear-gradient(172deg, #26261d 0%, #14140f 60%);
  border-radius: 10px;
  box-shadow: 0 4px 0 #3b3b31, 0 12px 20px -12px rgba(20, 20, 15, 0.5);
}
.mini-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 5px; height: 5px;
  border-radius: 1.5px;
  background: var(--sage-bright);
}

.mini-sage,
.mini-bar--sage {
  display: block;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #b4bb9c,
    0 10px 16px -12px rgba(74, 82, 56, 0.55);
}

.mini-bar { width: 88px; height: 18px; position: relative; border-radius: 7px; }
.mini-bar--ink {
  display: block;
  background: linear-gradient(172deg, #26261d 0%, #14140f 60%);
  box-shadow: 0 3px 0 #3b3b31, 0 10px 16px -12px rgba(20, 20, 15, 0.5);
}
.mini-bar--ink .mini-dot { top: 6px; left: 8px; right: auto; }

.mini-circle {
  display: block;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 3px 0 #d6d2c4,
    0 8px 14px -10px rgba(20, 20, 15, 0.35);
}
.mini-circle--ink {
  width: 38px; height: 38px;
  background: linear-gradient(172deg, #26261d 0%, #14140f 60%);
  border-color: #14140f;
  box-shadow: 0 3px 0 #3b3b31, 0 10px 16px -12px rgba(20, 20, 15, 0.5);
}
.mini-circle--sage {
  background: var(--sage);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #b4bb9c,
    0 8px 14px -10px rgba(74, 82, 56, 0.55);
}

.mini-row { display: flex; align-items: center; }
.mini-row .mini-circle:not(:first-child) { margin-left: -9px; }
.mini-row--gap { gap: 8px; }
.mini-row--gap .mini-tile { margin: 0; }

.mini-arrow {
  position: relative;
  width: 30px;
  height: 1px;
  background: var(--ink);
  flex: none;
}
.mini-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1.25px solid var(--ink);
  border-right: 1.25px solid var(--ink);
  transform: rotate(45deg);
  border-radius: 1px;
}

.mini-vline { width: 1px; height: 11px; background: var(--line-strong); }

/* strategy: prioritised list */
.ill-list { display: flex; flex-direction: column; gap: 8px; }
.ill-li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 3px 0 #d6d2c4,
    0 8px 14px -10px rgba(20, 20, 15, 0.35);
}
.ill-li em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.ill-li__bar { display: block; width: 54px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.ill-li .mini-dot { position: static; }
.ill-li--active {
  background: linear-gradient(172deg, #26261d 0%, #14140f 60%);
  border-color: #14140f;
  box-shadow: 0 3px 0 #3b3b31, 0 10px 16px -12px rgba(20, 20, 15, 0.5);
}
.ill-li--active em { color: var(--invert-dim); }
.ill-li--active .ill-li__bar { background: rgba(244, 242, 236, 0.4); }
.ill-li--faded { opacity: 0.55; }

/* implementation: labeled agent block */
.mini-core--label {
  width: 66px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-core--label em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--invert);
}

/* team enablement: coach + badges */
.mini-circle--ink { display: flex; align-items: center; justify-content: center; }
.mini-l9 { width: 14px; height: 14px; object-fit: contain; filter: invert(1); }
.mini-circle--badge { position: relative; }
.mini-circle--badge::after {
  content: "";
  position: absolute;
  top: -2px; right: -1px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--sage-bright);
  border: 1.5px solid #faf9f5;
}

/* infrastructure: labeled bars */
.mini-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  height: 20px;
}
.mini-bar em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mini-bar--ink em { color: var(--invert-dim); }
.mini-bar--sage em { color: var(--sage-deep); }
.mini-bar--ink .mini-dot { position: static; }

/* ---------- the path: pinned scrollytelling ---------- */

.h2--compact { font-size: clamp(26px, 2.6vw, 36px); }

.scrolly { position: relative; height: 460vh; }

.scrolly__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px; /* clear fixed nav */
  box-sizing: border-box;
}
.scrolly__pin .container { width: 100%; }

.scrolly__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.scrolly__rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  height: 11px;
}
.scrolly__rail-line {
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: var(--line-strong);
}
.scrolly__rail-fill {
  display: block;
  height: 1px;
  width: 0%;
  background: var(--ink);
  transition: width 0.15s linear;
}
.sq-step {
  position: relative;
  z-index: 1;
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--cream-2);
  border: 1px solid var(--ink);
  transition: background 0.4s ease;
}
.sq-step.is-on { background: var(--sage-bright); }

.scrolly__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 56px;
  align-items: center;
}

.scrolly__text { position: relative; min-height: 340px; }
.scrolly__stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.scrolly__stage.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrolly__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.scrolly__desc { font-size: 16.5px; color: var(--gray); }
.scrolly__note {
  font-size: 15px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* --- the visualisation --- */

.viz-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 34px 0;
  box-shadow: 0 40px 80px -60px rgba(20, 20, 15, 0.35);
}

.viz-scene {
  container-type: inline-size;
}
.viz-canvas {
  position: relative;
  aspect-ratio: 660 / 460;
  background-image: radial-gradient(rgba(20, 20, 15, 0.075) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: 2px 2px;
}

/* ghost stage numeral */
.viz-num { position: absolute; bottom: 2px; right: 0; height: 84px; width: 140px; }
.vn {
  position: absolute;
  bottom: 0; right: 0;
  font-family: var(--font-mono);
  font-size: 92px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: rgba(20, 20, 15, 0.05);
  opacity: 0;
  transition: opacity 0.6s ease;
}
[data-stage="0"] .vn-0, [data-stage="1"] .vn-1,
[data-stage="2"] .vn-2, [data-stage="3"] .vn-3 { opacity: 1; }

/* connector layer */
.viz-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--ink);
}
.viz-svg path {
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.viz-svg marker path { stroke: var(--ink); vector-effect: none; }
.ps { opacity: 0; transition: opacity 0.3s ease; }
.ps .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease-swift);
}
.ps .dashed { stroke-dasharray: 4 6; }
[data-stage="0"] .ps-0, [data-stage="1"] .ps-1,
[data-stage="2"] .ps-2, [data-stage="3"] .ps-3 {
  opacity: 1;
  transition-delay: 0.3s;
}
[data-stage="0"] .ps-0 .draw, [data-stage="1"] .ps-1 .draw,
[data-stage="2"] .ps-2 .draw, [data-stage="3"] .ps-3 .draw {
  stroke-dashoffset: 0;
  transition-delay: 0.4s;
  transition-duration: 0.9s;
}

/* nodes */
.viz-node {
  position: absolute;
  transition:
    left 0.7s var(--ease-swift),
    top 0.7s var(--ease-swift),
    width 0.7s var(--ease-swift),
    transform 0.7s var(--ease-swift),
    opacity 0.4s ease;
}

.viz-node__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.viz-node__tag--dim { color: var(--muted-2); }
.viz-node__tag--sage { color: var(--sage-deep); }

.viz-chip {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    0 4px 0 #d6d2c4,
    0 14px 22px -16px rgba(20, 20, 15, 0.35);
}

/* systems column */
.viz-systems {
  left: 0; top: 12%;
  width: 21.2%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.viz-systems .viz-node__tag { margin-bottom: 4px; }
[data-stage="3"] .viz-systems { opacity: 0; transform: translateX(-14px); }

/* human */
.viz-human {
  left: 45.45%; top: 30.4%;
  transform: translateX(-50%);
}
.viz-human__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  width: 15.15cqw;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    0 5px 0 #d6d2c4,
    0 20px 32px -18px rgba(20, 20, 15, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: width 0.7s var(--ease-swift);
}
[data-stage="1"] .viz-human { left: 89.7%; }
[data-stage="2"] .viz-human { left: 50%; top: 68.5%; }
[data-stage="2"] .viz-human__circle { width: 80px; width: 12.1cqw; font-size: 10px; }
[data-stage="3"] .viz-human { opacity: 0; transform: translateX(-50%) scale(0.9); }

/* core box */
.viz-core {
  left: 65.15%; top: 26.95%;
  width: 200px;
  width: 30.3cqw;
  height: 140px;
  height: 21.2cqw;
  background: linear-gradient(172deg, #26261d 0%, #14140f 60%);
  border-radius: 16px;
  box-shadow: 0 6px 0 #3b3b31, 0 32px 52px -26px rgba(20, 20, 15, 0.5);
}
.viz-core__dot {
  position: absolute;
  top: 18px; right: 18px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--sage-bright);
  animation: vizPulse 3.2s ease-out infinite;
}
@keyframes vizPulse {
  0% { box-shadow: 0 0 0 0 rgba(183, 194, 160, 0.4); }
  60% { box-shadow: 0 0 0 8px rgba(183, 194, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 194, 160, 0); }
}
.viz-core__c {
  position: absolute;
  inset: 0;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.viz-core__c strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--invert);
  line-height: 1.25;
}
.viz-core__sub { font-size: 12.5px; line-height: 1.4; color: var(--invert-dim); }
[data-stage="0"] .viz-core .c0 { opacity: 1; }
[data-stage="1"] .viz-core, [data-stage="2"] .viz-core { left: 36.36%; }
[data-stage="1"] .viz-core .c1 { opacity: 1; }
[data-stage="2"] .viz-core .c2 { opacity: 1; }
[data-stage="3"] .viz-core { opacity: 0; transform: scale(0.96); }

/* context / playbook cards */
.viz-cards {
  left: 72.7%; top: 20.5%;
  width: 27.3%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
}
.viz-scard {
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #b4bb9c,
    0 20px 34px -24px rgba(74, 82, 56, 0.55);
}
[data-stage="2"] .viz-cards { opacity: 1; transform: none; }

/* stage 3: orchestrated platform */
.viz-orch, .viz-knowledge {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
[data-stage="3"] .viz-orch,
[data-stage="3"] .viz-knowledge { opacity: 1; transform: none; }

.viz-orch {
  left: 4.5%; right: 4.5%; top: 1%;
  background: linear-gradient(172deg, #26261d 0%, #14140f 60%);
  border-radius: 14px;
  box-shadow: 0 6px 0 #3b3b31, 0 28px 50px -26px rgba(20, 20, 15, 0.5);
  padding: 15px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.viz-orch .viz-core__dot { position: static; align-self: center; flex: none; }
.viz-orch__sub { font-size: 13.5px; color: var(--invert); letter-spacing: -0.005em; }

.viz-agents {
  left: 4.5%; right: 4.5%; top: 32%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  pointer-events: none;
}
.viz-agent {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    0 4px 0 #d6d2c4,
    0 14px 22px -16px rgba(20, 20, 15, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-swift);
}
.viz-agent em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.viz-agent em::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--sage-bright);
  margin-right: 7px;
}
[data-stage="3"] .viz-agent { opacity: 1; transform: none; }
[data-stage="3"] .viz-agent:nth-child(1) { transition-delay: 0.4s; }
[data-stage="3"] .viz-agent:nth-child(2) { transition-delay: 0.5s; }
[data-stage="3"] .viz-agent:nth-child(3) { transition-delay: 0.6s; }
[data-stage="3"] .viz-agent:nth-child(4) { transition-delay: 0.7s; }

.viz-knowledge {
  left: 4.5%; right: 4.5%; top: 66.5%;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #b4bb9c,
    0 20px 34px -24px rgba(74, 82, 56, 0.55);
}
.viz-knowledge__sub { font-size: 13.5px; color: var(--ink); letter-spacing: -0.005em; }

/* connector labels */
.viz-labels { position: absolute; inset: 0; pointer-events: none; }
.lb {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  background: var(--cream);
  padding: 3px 11px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--cream);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lb--left { transform: none; }
.lb--right { transform: translateX(-100%); }
[data-stage="0"] .ls-0, [data-stage="1"] .ls-1,
[data-stage="2"] .ls-2, [data-stage="3"] .ls-3 {
  opacity: 1;
  transition-delay: 0.55s;
}

/* footer: caption + counter */
.viz-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding: 16px 2px 18px;
}
.viz-captions { position: relative; flex: 1; height: 21px; }
.vc {
  position: absolute;
  left: 0; right: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-stage="0"] .vc-0, [data-stage="1"] .vc-1,
[data-stage="2"] .vc-2, [data-stage="3"] .vc-3 {
  opacity: 1;
  transition-delay: 0.3s;
}
.viz-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  flex: none;
}
.viz-count__cur { position: relative; display: inline-block; width: 2ch; height: 1em; color: var(--ink); }
.vn2 {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
[data-stage="0"] .vn2-0, [data-stage="1"] .vn2-1,
[data-stage="2"] .vn2-2, [data-stage="3"] .vn2-3 { opacity: 1; }

/* fallback visibility */
.scrolly-fallback { display: none; }

@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
  .scrolly { display: none; }
  .scrolly-fallback { display: block; padding: 76px 0; }
}
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .scrolly-fallback { display: none; }
}

/* short viewports: tighten the pinned layout */
@media (min-width: 1025px) and (max-height: 760px) {
  .scrolly__head { margin-bottom: 16px; }
  .scrolly__rail { margin-bottom: 22px; }
  .scrolly__grid { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); }
  .viz-card { padding: 22px 26px 0; }
  .viz-footer { margin-top: 12px; padding: 13px 2px 14px; }
}

/* ---------- path (static fallback) ---------- */

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.path-stage { display: flex; flex-direction: column; gap: 12px; }
.path-stage__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.path-stage__desc { font-size: 15.5px; color: var(--gray); }
.path-stage__note {
  font-size: 14.5px;
  color: var(--muted);
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

/* ---------- approach: pinned scrollable steps ---------- */

.ap-scrolly { position: relative; height: 320vh; }
.ap-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 34px; /* clear fixed nav visually */
  box-sizing: border-box;
}
.ap-pin .container { width: 100%; }
.split--pin { align-items: center; }
.split--pin .split__side { position: static; }

.step-list--scrolly .step {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-swift);
}
.step-list--scrolly .step.is-on { opacity: 1; transform: none; }
.step-list--scrolly .step__marker {
  background: var(--cream-2);
  transition: background 0.45s ease;
}
.step-list--scrolly .step.is-on .step__marker { background: var(--sage-bright); }

.ap-fallback { display: none; }

@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
  .ap-scrolly { display: none; }
  .ap-fallback { display: block; padding: 76px 0; }
}
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .ap-fallback { display: none; }
}
@media (min-width: 1025px) and (max-height: 760px) {
  .step-list--scrolly .step { padding-bottom: 30px; }
  .step-list--scrolly .step__desc { font-size: 15px; }
}

/* ---------- approach (split + steps) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}
.split__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 108px;
}
.split__side .statement { margin-top: 10px; }

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 24px;
  padding-bottom: 44px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 11px; top: 26px; bottom: 6px;
  width: 1px;
  background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step__marker {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--sage-bright);
  border: 1px solid var(--ink);
  margin-top: 5px;
  margin-left: 6px;
}
.step > div { display: flex; flex-direction: column; gap: 8px; }
.step__title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.step__desc { font-size: 16px; color: var(--gray); max-width: 520px; }

/* ---------- infrastructure (fits one viewport on desktop) ---------- */

#infrastructure { padding: 54px 0 58px; }
#infrastructure .section__head { margin-bottom: 28px; gap: 10px; }
#infrastructure .h2 { font-size: clamp(26px, 2.7vw, 34px); }

.infra-diagram {
  display: grid;
  grid-template-columns: 220px 1fr 340px 1fr 220px;
  gap: 20px;
  align-items: center;
}
.infra-col { display: flex; flex-direction: column; gap: 9px; }
.infra-col .mono-tag { margin-bottom: 4px; }

.infra-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line-dark-strong);
  background: rgba(244, 242, 236, 0.04);
  border-radius: 10px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--invert);
}
.infra-chip__icon { width: 20px; height: 20px; object-fit: contain; flex: none; display: block; }
.infra-chip__icon--invert { filter: invert(1); }

.infra-arrows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.infra-arrow {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark-strong) 15%, var(--line-dark-strong) 85%, transparent);
}
.infra-arrow::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-top: 1.25px solid var(--invert-dim);
  border-right: 1.25px solid var(--invert-dim);
}
.infra-arrow--right::after { right: 1px; top: -3.5px; transform: rotate(45deg); }
.infra-arrow--left::after { left: 1px; top: -3.5px; transform: rotate(-135deg); }
.infra-arrow-label { font-size: 12.5px; color: var(--muted-2); text-align: center; }

.infra-core {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 36px 70px -40px rgba(0, 0, 0, 0.8);
}
.infra-core__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.infra-core__icon { width: 24px; height: 24px; object-fit: contain; }
.infra-core__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.infra-core__grid span {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

#infrastructure .statement { margin-top: 26px; font-size: 19px; }

/* ---------- security (fits one viewport on desktop) ---------- */

#security { padding: 64px 0 72px; }
#security .section__head { margin-bottom: 32px; gap: 12px; }
#security .h2 { font-size: clamp(28px, 2.9vw, 38px); }

.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sec-card {
  border: 1px solid var(--line);
  background: #faf9f5;
  border-radius: 16px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sec-card__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.sec-card__title { font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }
.sec-card__desc { font-size: 14.5px; color: var(--gray); }

/* ---------- contact ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 720px;
}
.cta__title { max-width: 620px; }
.cta__sub { color: var(--ink-soft); }
.cta__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.cta__mail {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.cta__mail:hover { border-bottom-color: var(--ink); }

/* contact form */
.form {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.form__label em { font-style: normal; color: var(--ink); }
.form__label span { text-transform: none; letter-spacing: 0.02em; color: var(--muted); }
.form__input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__input::placeholder { color: var(--muted-2); }
.form__input:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(74, 82, 56, 0.15);
}
.form__input--area { resize: vertical; min-height: 96px; }
.form__input.is-invalid { border-color: #a04b3c; box-shadow: 0 0 0 3px rgba(160, 75, 60, 0.14); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .cta__actions { margin-top: 4px; }
.form__status { font-size: 15px; font-weight: 500; color: var(--sage-deep); min-height: 1.4em; margin: 0; }
.form__status.is-error { color: #a04b3c; }
.form.is-sent .form__row,
.form.is-sent .form__field,
.form.is-sent .form__hp,
.form.is-sent .cta__actions { display: none; }
.form.is-sent .form__status { font-size: 18px; }

@media (max-width: 680px) {
  .form__row { grid-template-columns: 1fr; }
}

/* confirmation modal */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 15, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 44px));
  background: var(--cream);
  border-radius: 20px;
  padding: 38px 36px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s var(--ease-swift);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--sage);
  margin-bottom: 6px;
}
.modal__title { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.modal__text { font-size: 16px; line-height: 1.55; color: var(--gray); }
.modal__card .pill { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .modal__card { animation: none; }
}

/* ---------- footer ---------- */

.footer { padding: 56px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__tag { font-size: 14.5px; color: var(--invert-dim); }
.footer__meta { display: flex; align-items: center; gap: 12px; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-swift), filter 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .viz-core__dot { animation: none; }
  .hero-orb { animation: none; }
  .net__lines path { animation: none; }
  .net-node--hub { animation: none; }
  .net-node, .net-node__ic { transition: none; }
  .net-node, .net-lbl { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; }
  .infra-diagram { grid-template-columns: 1fr; gap: 28px; }
  .infra-arrows { flex-direction: row; align-items: center; gap: 14px; }
  .infra-arrow { flex: 1; }
  .infra-col { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .infra-col .mono-tag { width: 100%; margin-bottom: 0; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split__side { position: static; }
  .path-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .section { padding: 76px 0; }
  .hero { padding: 130px 0 76px; }
  .nav__links a:not(.pill):not(.lang__opt) { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }

  /* simplified network: static pill cloud, no connectors */
  .net {
    aspect-ratio: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
  }
  .net__lines, .net-lbl { display: none; }
  .net-node { position: static; transform: none; animation: netFadeIn 0.6s ease backwards; }
  .net-node:hover { transform: none; }
  .net-node--hub { order: -2; }
  .net-node--light { order: -1; }
}
