/* AYSS Tech v3. One stylesheet for index, privacy and terms. Tokens first; everything below uses tokens only.
   Type (round 16): Instrument Sans for text and interface, Newsreader for headings. Both SIL Open Font License, self-hosted. */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/instrument-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/newsreader-500.woff2') format('woff2'); }

:root {
  --bg: #0b0c0e;
  --surface: #121417;
  --surface-2: #1a1d21;
  --ink: #f2f1ed;
  --muted: #a4a8ae;
  --accent: #ff5436;
  --accent-ink: #0b0c0e;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --step-big: clamp(1.875rem, 1.05rem + 3vw, 4rem);
  --step-head: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem);

  --m: clamp(20px, 4vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(88px, 11vw, 200px);
  --bar: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-title); letter-spacing: -0.025em; line-height: 1.06; }
h4 { font-size: var(--step-body); letter-spacing: -0.005em; line-height: 1.3; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: var(--m); top: -80px; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 50; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.lead { font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.012em; }
.muted { color: var(--muted); }
.tlink { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; transition: color 160ms var(--ease); }
.tlink:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; font-size: var(--step-body); letter-spacing: -0.01em;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 1.0625rem; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--m);
  background: var(--bg);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span span { font-weight: 400; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 40px); }
.nav a:not(.btn) { font-size: 1.0625rem; font-weight: 500; padding: 12px 0; transition: color 160ms var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="true"] { color: var(--accent); }
/* floating bar (wide screens): past the hero the bar's ground fades out and the links gather into a dark rounded bar in
   the middle; a light mark slides to the section being read. Transform and opacity for the motion, a solid surface, no blur. */
.bar { transition: background-color 320ms var(--ease); }
.nav-links { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 40px); border-radius: 999px; transition: background-color 320ms var(--ease), padding 320ms var(--ease), gap 320ms var(--ease), transform 320ms var(--ease); }
.nav-links a { position: relative; z-index: 1; }
.nav-ind { position: absolute; left: 0; top: 6px; bottom: 6px; z-index: 0; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease; pointer-events: none; }
.nav .nav-links a:not(.btn) { transition: color 180ms ease, padding 320ms var(--ease); }
/* on the page with a hero the bar sits over the hero picture, no band of its own */
.bar:has(~ main > .hero:first-child):not(.is-floating) { background-color: transparent; }
main > .hero:first-child { margin-top: calc(-1 * var(--bar)); padding-top: calc(var(--bar) + clamp(40px, 7vh, 96px)); min-height: 92svh; }
@media (min-width: 1101px) {
  /* links sit in the middle of the bar from the start, so the floating bar forms around them in place */
  .nav-links { position: absolute; left: 50%; transform: translate(-50%, 0); padding: 6px; background-color: rgba(26, 29, 34, 0); }
  .bar.is-floating { background-color: transparent; }
  .bar.is-floating .nav-links { gap: 2px; background-color: #1a1d22; transform: translate(-50%, 4px); }
  /* the mark floats on its own, no backing, centred on the link bar (Citadel pattern) */
  .bar.is-floating .brand { transform: translateY(4px); }
  .brand { transition: transform 320ms var(--ease); }
  .bar .brand svg.brand-logo { height: 28px; }
  .bar.is-floating .nav-links a { padding: 10px 18px; }
  @media (prefers-reduced-motion: reduce) { .nav-links, .nav-ind { transition: none; } }
  .bar.is-floating .nav-links a[aria-current="true"] { color: var(--bg); }
  .bar.is-floating .nav-ind.on { opacity: 0.95; }
}
.menu-btn { display: none; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; font-size: 1.0625rem; min-height: 44px; padding: 0 0 0 16px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(92svh - var(--bar));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vh, 96px) var(--m) clamp(32px, 6vh, 72px);
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* neutral scrim so the words stay readable over the photograph */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(11, 12, 14, 0.92) 0%, rgba(11, 12, 14, 0.76) 48%, rgba(11, 12, 14, 0.34) 100%),
    linear-gradient(to top, rgba(11, 12, 14, 0.86) 0%, rgba(11, 12, 14, 0) 42%);
}
.hero > :not(.hero-bg) { position: relative; z-index: 2; }
/* hero headline: always two lines, broken after "can"; sized to the column, capped so wide screens do not blow it up */
.hero h1 { font-size: min(8.4vw, 6rem); line-height: 0.94; letter-spacing: -0.045em; white-space: nowrap; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 40px; }
.hero-foot .lead { max-width: 34em; text-wrap: balance; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex: none; }



/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head h2 { grid-column: 1 / span 7; }
.section-head p { grid-column: 9 / span 4; }
.tone { background: var(--surface); }


/* service block */

/* technologies: one slow line of names. CSS only, pauses on hover, a still wrapped row under reduced motion. */
.tech { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--section) * 1.25); padding-bottom: calc(var(--section) * 0.9); background: var(--bg); }
/* silver light from the top-left corner: black when the band arrives, rising with the scroll position (named view
   timeline, transform and opacity only); stays black where scroll timelines are missing or motion is reduced */
.tech::before { content: ''; position: absolute; left: 0; top: 0; z-index: -1; width: 72vw; height: 130%; pointer-events: none; transform-origin: 0 0;
  /* silver light with fine grain, shaped by an eased mask: the grain breaks up the steps a plain gradient shows on black */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.86 0 0 0 0 0.89 0 0 0 0 0.94 0 0 0 0.38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px, rgba(200, 212, 228, 0.3);
  -webkit-mask-image: radial-gradient(ellipse 52% 52% at 0 0, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.88) 8%, rgba(0, 0, 0, 0.74) 16%, rgba(0, 0, 0, 0.6) 24%, rgba(0, 0, 0, 0.47) 32%, rgba(0, 0, 0, 0.36) 40%, rgba(0, 0, 0, 0.26) 48%, rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0.12) 64%, rgba(0, 0, 0, 0.07) 72%, rgba(0, 0, 0, 0.04) 80%, rgba(0, 0, 0, 0.02) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 52% 52% at 0 0, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.88) 8%, rgba(0, 0, 0, 0.74) 16%, rgba(0, 0, 0, 0.6) 24%, rgba(0, 0, 0, 0.47) 32%, rgba(0, 0, 0, 0.36) 40%, rgba(0, 0, 0, 0.26) 48%, rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0.12) 64%, rgba(0, 0, 0, 0.07) 72%, rgba(0, 0, 0, 0.04) 80%, rgba(0, 0, 0, 0.02) 88%, rgba(0, 0, 0, 0) 100%); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* a named timeline on the band itself: view() on the ::before would watch .tech (overflow hidden makes it the scroller) */
    .tech { view-timeline: --tech-band block; }
    .tech::before { animation: tech-glow linear both; animation-timeline: --tech-band; animation-range: contain 0% contain 100%; }
  }
}
/* black by default (Citadel pattern): the band arrives black and the silver corner rises with the scroll position as the
   band moves up the screen, so it is smooth and holds still when scrolling stops */
@keyframes tech-glow { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: scale(1.1); } }
.tech::before { opacity: 0; }
.tech-h { text-align: center; margin: 0 auto clamp(56px, 6vw, 112px); font-size: var(--step-big); line-height: 1.12; text-wrap: balance; }
.tech-run { position: relative; display: flex; overflow: hidden; padding-block: 8px; }
/* the line fades out at both edges: two still overlays, cheaper than a mask on a moving row */
.tech-run { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tech-track { display: flex; flex: none; align-items: center; animation: tech-run 160s linear infinite; will-change: transform; }
.tech-run:hover .tech-track { animation-play-state: paused; }
.tech-track li { display: flex; align-items: center; gap: 0.42em; white-space: nowrap; margin-right: clamp(44px, 5vw, 96px); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); opacity: 0.58; transition: opacity 180ms var(--ease); }
.tech-track li:hover { opacity: 1; }
@keyframes tech-run { to { transform: translateX(-100%); } }

/* industries */

/* approach */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.pr { background: #0e1013; padding: 0 clamp(18px, 1.8vw, 28px) clamp(22px, 2.2vw, 32px); }
.pr img { width: 100%; aspect-ratio: 1 / 0.8; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.pr h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.pr p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }

/* method staircase */

/* engagement models: comparison set as text */

/* starting point finder */

/* work */
.status { margin-top: 14px; font-weight: 600; color: var(--accent); }

/* company */
.company { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.details { grid-column: 8 / span 5; }
.details div { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gap); padding: 16px clamp(12px, 1.4vw, 20px); }
.details div:nth-child(odd) { background: var(--surface-2); }
.details dt { color: var(--muted); font-size: 1.0625rem; }
.details dd { font-weight: 500; font-size: 1.0625rem; overflow-wrap: anywhere; }
[data-placeholder] { color: var(--accent); font-weight: 500; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.contact form { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap); }
.contact .full { grid-column: 1 / -1; }
.field-row label { display: block; font-weight: 500; font-size: 1.0625rem; margin-bottom: 8px; }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: #20242a; color: var(--ink);
  border: 2px solid #3a3f46; border-radius: 0;
  font: inherit; font-size: 1.0625rem;
  transition: border-color 160ms var(--ease);
}
.field-row textarea { min-height: 150px; resize: vertical; }
.field-row input:hover, .field-row select:hover, .field-row textarea:hover { border-color: var(--muted); }
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { outline: none; border-color: var(--accent); }
.field-row [aria-invalid="true"] { border-color: var(--accent); }
.err { display: block; min-height: 1.3em; margin-top: 6px; font-size: var(--step-small); color: var(--accent); }
.form-note { font-size: 1.0625rem; color: var(--muted); }
.next li { padding: 18px clamp(12px, 1.4vw, 20px); }
.next li:nth-child(odd) { background: var(--surface-2); }

/* footer */
.foot { background: var(--bg); padding: clamp(64px, 8vw, 128px) var(--m) 40px; }
.foot h2 { font-size: 1.0625rem; letter-spacing: 0; font-weight: 600; margin-bottom: 14px; line-height: 1.3; }
.foot li a, .foot-cols p { font-size: 1.0625rem; }
.foot li a { display: inline-block; padding: 4px 0; color: var(--muted); transition: color 160ms var(--ease); }
.foot li a:hover { color: var(--ink); }
.foot .two { columns: 2; column-gap: var(--gap); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 64px; font-size: var(--step-small); color: var(--muted); }
.foot-legal a:hover { color: var(--ink); }

/* legal pages */
.legal { padding-block: clamp(56px, 7vw, 120px) var(--section); }
.legal h1 { font-size: var(--step-head); letter-spacing: -0.04em; }
.legal .intro { grid-column: 1 / span 8; margin-top: 28px; }
.legal-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(56px, 6vw, 96px); }
.legal-toc { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--bar) + 32px); }
.legal-toc a { display: block; padding: 6px 0; font-size: 1.0625rem; color: var(--muted); transition: color 160ms var(--ease); }
.legal-toc a:hover { color: var(--accent); }
.legal-text { grid-column: 5 / span 7; }
.legal-text section + section { margin-top: 56px; }
.legal-text h2 { font-size: var(--step-title); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 18px; }
.legal-text p + p, .legal-text ul + p, .legal-text p + ul { margin-top: 14px; }
.legal-text li { position: relative; padding-left: 20px; margin-top: 8px; }
.legal-text li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--muted); }

/* ---------- animated illustrations: CSS only (transform, opacity, stroke-dashoffset). They run while on screen
   (site.js adds .live) and are finished stills under reduced motion. The scenes are drawn as product interface:
   glass panels with hairline edges, chips, avatars and tool marks. Glow is a still layer whose opacity changes,
   so no filter or shadow is recomputed per frame. Every base style is the finished state; keyframes start hidden. ---------- */
.js .anim:not(.live), .js .anim:not(.live) *, .js .anim:not(.live) *::before, .js .anim:not(.live) *::after { animation-play-state: paused !important; }
:root { --light: #cfe0ff; --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-io: cubic-bezier(0.77, 0, 0.175, 1); --hair: rgba(255, 255, 255, 0.1); }

/* hero: pulses of light over the lattice */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.8; }
.hero-fx .tr.h { stroke-dasharray: 90 1600; animation: fx-run 7s linear infinite; }
.hero-fx .tr-w { stroke-width: 9; opacity: 0.2; }
.hero-fx .tr-n { stroke-width: 2.2; }
.h-node { fill: #fff; animation: fx-node 4.5s var(--ease-io) infinite; }
@keyframes fx-run { from { stroke-dashoffset: 1690; } to { stroke-dashoffset: 0; } }
@keyframes fx-node { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

/* ----- interface kit shared by the scenes ----- */
.glass, .pane { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--hair); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.pane { padding: 16px; }
.pane-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.chip { flex: none; padding: 3px 9px; border: 1px solid var(--hair); border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.chip.good { color: #bfe8cf; border-color: rgba(140, 220, 170, 0.4); background: rgba(140, 220, 170, 0.1); }
.chip.no { color: #ffd2c9; border-color: rgba(255, 84, 54, 0.7); background: rgba(255, 84, 54, 0.2); }
.ava { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #2b313a; font-size: 0.75rem; font-weight: 700; color: var(--light); }
.ava.person { border-radius: 50%; background: var(--ink); color: var(--accent-ink); }
.ti { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: #2b313a; fill: var(--ink); }
.row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.row + .row { margin-top: 6px; }
.row-t { min-width: 0; flex: 1; display: grid; }
.row-t b, .fld b, .rev b { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.row-t small, .fld small, .req small { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.tickbox { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(140, 220, 170, 0.18); }
.ok { display: block; width: 9px; height: 5px; border-left: 2px solid #9fe0b8; border-bottom: 2px solid #9fe0b8; transform: rotate(-45deg) translate(1px, -1px); }
/* a row lights when its turn comes and stays lit to the end of the loop; the frame around it glows briefly */
.lit { animation: ui-on 12s linear infinite both; animation-delay: var(--t); }
.lit::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(207, 224, 255, 0.8); box-shadow: 0 0 22px rgba(207, 224, 255, 0.28); opacity: 0; pointer-events: none;
  animation: ui-glow 12s linear infinite both; animation-delay: var(--t); }
.lit .chip, .tickbox, .mini.go { animation: ui-in 12s var(--ease-out) infinite both; animation-delay: var(--t); }
@keyframes ui-on { 0% { opacity: 0.36; } 4%, 90% { opacity: 1; } 97%, 100% { opacity: 0.36; } }
@keyframes ui-glow { 0% { opacity: 0; } 4%, 16% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes ui-in { 0% { opacity: 0; transform: scale(0.92); } 4%, 90% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(1); } }

/* ----- operations console ----- */
.ops { position: relative; overflow: hidden; padding: clamp(18px, 2.2vw, 36px); border: 1px solid var(--hair); border-radius: 18px;
  background-color: #101216;
  background-image: radial-gradient(90% 60% at 50% 0%, rgba(207, 224, 255, 0.12), rgba(207, 224, 255, 0) 70%), linear-gradient(rgba(207, 224, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(207, 224, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px; }
.ops-top { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 1.8vw, 26px); }
.ops-title { flex: 1; font-size: 0.9375rem; font-weight: 600; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #333941; }
.ops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); align-items: start; }
.ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-b { stroke: #333941; }
.ring-f { stroke: var(--light); stroke-linecap: round; stroke-dasharray: 94.3; animation: ring-fill 12s linear infinite both; }
.btns { display: flex; gap: 8px; margin: 10px 0; }
.mini { padding: 7px 14px; border: 1px solid var(--hair); border-radius: 9px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.mini.go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.row.done { background: rgba(140, 220, 170, 0.08); }
.ops-log { margin-top: clamp(12px, 1.2vw, 18px); padding: 0 14px; height: calc(5.4em + 20px); box-sizing: border-box; border-block: 10px solid #0b0d10; border-radius: 12px; overflow: hidden; background: #0b0d10;
  font: 500 0.8125rem/1.8 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #9fb2cf; }
.ops-log ol { animation: ops-log 16s steps(8) infinite; }
.ops-log li { position: relative; height: 1.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 18px; }
.ops-log li::before { content: '>'; position: absolute; left: 0; color: #55627a; }
.ops-log li::after { content: ''; position: absolute; left: 18px; right: 0; top: 0; bottom: 0; background: #0b0d10; border-left: 2px solid var(--light); animation: ops-type 16s steps(30, end) infinite both; }
.ops-log li:nth-child(1)::after, .ops-log li:nth-child(2)::after, .ops-log li:nth-child(11)::after { display: none; }
.ops-log li:nth-child(4)::after { animation-delay: 2s; } .ops-log li:nth-child(5)::after { animation-delay: 4s; }
.ops-log li:nth-child(6)::after { animation-delay: 6s; } .ops-log li:nth-child(7)::after { animation-delay: 8s; }
.ops-log li:nth-child(8)::after { animation-delay: 10s; } .ops-log li:nth-child(9)::after { animation-delay: 12s; }
.ops-log li:nth-child(10)::after { animation-delay: 14s; }
.ops-note, .pic-note { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.pic-note { margin: 0; padding: 0 0 12px 14px; }
@keyframes ring-fill { 0%, 16% { stroke-dashoffset: 94.3; } 50%, 92% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 94.3; } }
@keyframes ops-log { to { transform: translateY(-14.4em); } }
@keyframes ops-type { 0% { transform: translateX(0); } 8%, 100% { transform: translateX(101%); } }

/* ----- scenes built from interface parts (document, policy) ----- */
.scene { position: relative; display: grid; align-items: center; gap: 16px; aspect-ratio: 4 / 3; padding: clamp(16px, 2vw, 30px); overflow: hidden; border-radius: 14px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(207, 224, 255, 0.12), rgba(207, 224, 255, 0) 70%), #14171b; }
.sc-doc { grid-template-columns: 1.05fr 1fr; perspective: 900px; }
.page { position: relative; overflow: hidden; padding: 18px 16px 22px; border-radius: 6px; background: linear-gradient(180deg, #f4f2ec, #dcd9d0); color: #1d1f23; transform: rotateY(9deg) rotateX(2deg); transform-origin: right center;
  box-shadow: -18px 22px 40px rgba(0, 0, 0, 0.45); }
.pg-h { margin-bottom: 10px; font-size: 0.875rem; font-weight: 700; letter-spacing: -0.01em; }
.pg-t { margin: 9px 0; font-size: 0.75rem; line-height: 1.5; }
.page .l { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: #b9b5aa; }
.page .l.m { width: 82%; } .page .l.s { width: 58%; }
.page mark { position: relative; z-index: 0; background: none; color: inherit; font-weight: 700; }
.page mark::before { content: ''; position: absolute; z-index: -1; inset: 0 -3px; border-radius: 3px; background: rgba(255, 84, 54, 0.38); transform-origin: left; animation: mark-in 12s var(--ease-out) infinite both; animation-delay: var(--t); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 34px; background: linear-gradient(180deg, rgba(120, 160, 255, 0), rgba(120, 160, 255, 0.34)); border-bottom: 2px solid #6f93e8; animation: scan-y 12s linear infinite; }
.fields { padding: 14px; transform: rotateY(-7deg); transform-origin: left center; }
.fld { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.fld + .fld { margin-top: 6px; }
.fld small { grid-column: 1 / -1; }
.rev { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(140, 220, 170, 0.08); }
.rev b { flex: 1; }
@keyframes mark-in { 0% { transform: scaleX(0); } 4%, 90% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes scan-y { 0% { transform: translateY(-34px); opacity: 1; } 30% { transform: translateY(260px); opacity: 1; } 34%, 100% { transform: translateY(260px); opacity: 0; } }

.sc-gate { grid-template-columns: 1.2fr auto 1fr; }
/* the two interface scenes scale with their card, so the 4:3 frame is filled on wide screens */
.concept-pic { container-type: inline-size; }
.scene { font-size: clamp(16px, 2.5cqi, 23px); gap: 1em; }
.scene .pane-h { font-size: 0.8125em; margin-bottom: 0.75em; }
.scene .chip { font-size: 0.75em; padding: 0.2em 0.75em; }
.scene .ava { width: 2.5em; height: 2.5em; font-size: 0.75em; }
.scene .fld small, .scene .req small { font-size: 0.75em; }
.scene .fld b, .scene .rev b { font-size: 0.875em; }
.scene .pg-h { font-size: 0.875em; } .scene .pg-t { font-size: 0.75em; }
.scene .req code { font-size: 0.75em; } .scene .rule { font-size: 0.8125em; padding: 0.55em 0.6em; }
.scene .fld, .scene .req, .scene .rev { padding: 0.55em 0.65em; }
.scene .rules, .scene .fields { padding: 0.9em; }
.scene .page { padding: 1.1em 1em 1.4em; }
.scene .page .l { height: 0.32em; margin-top: 0.45em; }
.rule .chip { margin-left: auto; }
.scene .tickbox { width: 1.25em; height: 1.25em; }
.scene .shield { width: 6.5em; }
.scene .scanline { height: 100%; background: linear-gradient(180deg, rgba(120, 160, 255, 0), rgba(120, 160, 255, 0) 80%, rgba(120, 160, 255, 0.34)); animation-name: scan-full; }
@keyframes scan-full { 0% { transform: translateY(-100%); opacity: 1; } 30% { transform: translateY(0); opacity: 1; } 34%, 100% { transform: translateY(0); opacity: 0; } }

.req { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.req + .req { margin-top: 6px; }
.req code { font: 600 0.75rem/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req small { grid-column: 1; }
.req .chip { grid-row: 1 / span 2; grid-column: 2; }
.req.bad::after { border-color: var(--accent); box-shadow: 0 0 24px rgba(255, 84, 54, 0.42); }
.shield { width: clamp(64px, 9vw, 104px); }
.sh { fill: url(#g-shield); }
.sh-ring { fill: none; stroke: var(--light); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring-out 3s var(--ease-out) infinite; }
.lock { fill: #1a1f29; } .lock-b { fill: none; stroke: #1a1f29; stroke-width: 4; }
.rules { padding: 14px; }
.rule { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; font-size: 0.8125rem; font-weight: 500; }
@keyframes ring-out { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.22); opacity: 0; } }

/* ----- drawn scenes (SVG) ----- */
.tr { fill: none; stroke: var(--light); stroke-linecap: round; }
.tr-w { stroke-width: 7; opacity: 0.16; }
.tr-n { stroke-width: 1.6; }
.cv { border-radius: 14px; }
.cv text { font: 600 13px var(--font-text); fill: var(--muted); }
.cv .ink { fill: var(--ink); }
.cv .bg { fill: #14171b; }
.cv .ln { stroke: #333941; stroke-width: 1.5; fill: none; }
.cv .acc { fill: var(--accent); }
.cv .scan { fill: var(--light); }
.cv .scan-w { opacity: 0.14; }
.cv .tag rect { fill: rgba(255, 255, 255, 0.05); stroke: var(--hair); }
.cv .tag.on rect { stroke: rgba(207, 224, 255, 0.55); }
.cv .tag.on text { fill: var(--ink); }

/* integration map: tool marks orbit the agents */
.cv-map .ringline { fill: none; stroke: #4a525e; stroke-width: 1.6; stroke-dasharray: 1 8; stroke-linecap: round; }
.cv-map .ringline.far { opacity: 0.5; }
.cv-map .orbit { animation: orbit 70s linear infinite; }
.cv-map .orbit.o2 { animation-duration: 110s; animation-direction: reverse; }
.cv-map .keep { transform-box: fill-box; transform-origin: center; animation: keep 70s linear infinite; }
.cv-map .keep.o2-k { animation-name: keep-rev; animation-duration: 110s; }
.cv-map .tile { fill: #262c35; stroke: rgba(255, 255, 255, 0.16); }
.cv-map .ico { fill: var(--ink); }
.cv-map .core { fill: var(--ink); }
.cv-map .on-core { fill: var(--accent-ink); font-weight: 700; font-size: 15px; }
.cv-map .core-glow { fill: url(#g-pool); }
.cv-map .spokes path { fill: none; stroke: rgba(207, 224, 255, 0.28); stroke-width: 1.2; stroke-dasharray: 3 7; }
@keyframes spoke { to { stroke-dashoffset: -20; } }
.cv-map .pulse { fill: none; stroke: var(--light); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring-out 3.2s var(--ease-out) infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes keep { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes keep-rev { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 + 360deg)); } }


/* ----- concept builds ----- */
.concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 88px) var(--gap); }
.concept-pic { margin-bottom: 24px; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: #14171b; }
.concept-pic img, .concept-pic > svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.concept h4 { font-size: var(--step-title); letter-spacing: -0.03em; line-height: 1.06; }
.concept .status { margin: 10px 0 14px; }

/* ----- how we work: a timeline, and four models as cards ----- */
.tl { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); }
.tl-wrap { position: relative; }
.tl li { position: relative; z-index: 2; }
.tl-node { display: block; width: 28px; height: 28px; margin-bottom: 22px; border-radius: 50%; background: var(--bg); border: 2px solid #4a525e; box-shadow: inset 0 0 0 7px var(--bg), inset 0 0 0 14px var(--ink); }
.tl li:last-child .tl-node { box-shadow: inset 0 0 0 7px var(--bg), inset 0 0 0 14px var(--accent); }
.tl h3 { font-size: var(--step-title); letter-spacing: -0.03em; }
.tl p { margin-top: 8px; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; max-width: 16em; }

/* ----- hero: a tilted stack of glass interface panels over the lattice (wide screens only) ----- */
.hero-copy { display: contents; }
.hero-copy > * { position: relative; z-index: 2; }
.hero-ui { display: none; }
@media (min-width: 1101px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; column-gap: var(--gap); }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(2.75rem, 4.6vw, 5.75rem); line-height: 0.98; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 32px; margin-top: clamp(28px, 3vw, 48px); }
  .hero-foot .lead { max-width: 27em; }
  .hero-ui { display: block; justify-self: end; width: 36em; max-width: 100%; font-size: clamp(11px, 1.02vw, 18px); perspective: 1500px; }
  .stack { position: relative; height: 33em; transform: rotateY(-17deg) rotateX(8deg) rotateZ(1.5deg); animation: hu-float 8s var(--ease-io) infinite alternate; }
  .hu-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .hu-wires .ln { stroke: #3b424d; stroke-width: 1.2; fill: none; }
  .hu-wires .tr { stroke-dasharray: 14 120; animation: hu-wire 2.8s linear infinite; }
  .hu-wires .tr-w { stroke-width: 5; }
  .hu-wires .w2 { animation-delay: -0.9s; } .hu-wires .w3 { animation-delay: -1.8s; }
  .hu { position: absolute; padding: 1.1em; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 1em;
    background: linear-gradient(180deg, rgba(40, 46, 56, 0.94), rgba(20, 23, 28, 0.94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1em 1.8em rgba(0, 0, 0, 0.5);
    animation: hu-in 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 130ms + 200ms); }
  .hu-a { left: 0; top: 2.2em; width: 18.5em; z-index: 2; }
  .hu-b { left: 19.5em; top: 0; width: 15.5em; z-index: 1; }
  .hu-c { left: 14.5em; top: 14.6em; width: 21em; z-index: 4; }
  .hu-d { left: 0.5em; top: 23.4em; width: 23em; z-index: 3; }
  .hu .pane-h { font-size: 0.8125em; margin-bottom: 0.8em; }
  .hu .chip { font-size: 0.72em; padding: 0.2em 0.75em; }
  .hu .row { padding: 0.55em 0.65em; gap: 0.7em; border-radius: 0.7em; }
  .hu .row + .row { margin-top: 0.4em; }
  .hu .row-t b { font-size: 0.875em; }
  .hu .ti { width: 2.1em; height: 2.1em; padding: 0.5em; border-radius: 0.6em; }
  .hu .tickbox { width: 1.3em; height: 1.3em; }
  .hu-prog { height: 0.3em; margin-top: 0.9em; border-radius: 1em; background: #333941; overflow: hidden; }
  .hu-prog i { display: block; height: 100%; border-radius: inherit; background: var(--light); transform-origin: left; animation: hu-prog 12s linear infinite both; }
  .hu-shield { width: 1.9em; height: 2.2em; }
  .hu-line { display: flex; align-items: center; justify-content: space-between; padding: 0.5em 0; font-size: 0.875em; font-weight: 500; }
  .hu-line + .hu-line { box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.07); }
  .hu-line span:first-child { font-size: 1em; }
  .spark { display: block; width: 100%; height: 4.2em; }
  .spark-a { fill: rgba(207, 224, 255, 0.1); }
  .spark-l { fill: none; stroke: var(--light); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 260; animation: hu-spark 9s var(--ease-io) infinite both; }
  .hu-bars { display: flex; align-items: flex-end; gap: 0.45em; height: 2.6em; margin-top: 0.7em; }
  .hu-bars i { flex: 1; border-radius: 0.2em 0.2em 0 0; background: #3a424e; }
  .hu-bars i:last-child { background: var(--light); }
  .stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
  .stages::before { content: ''; position: absolute; left: 0.5em; right: 25%; top: 0.5em; height: 2px; background: #3b424d; }
  .stage { position: relative; font-size: 0.8125em; font-weight: 600; color: var(--muted); }
  .stage i { display: block; width: 1.3em; height: 1.3em; margin-bottom: 0.6em; border-radius: 50%; background: #171a1f; border: 2px solid var(--light); }
  .stage.key { color: var(--ink); }
  .stage.key i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 1.4em rgba(255, 84, 54, 0.55); }
  .stage:last-child i { border-color: #4a525e; }
  .stages .runner { position: absolute; left: 0.25em; top: 0.25em; width: 0.6em; height: 0.6em; border-radius: 50%; background: #fff; z-index: 1; animation: hu-runner 6s var(--ease-io) infinite; }
  .hu-wait { margin-top: 0.9em; font-size: 0.8125em; color: var(--muted); }
  .hu-note { margin-top: 1.2em; text-align: right; font-size: var(--step-small); color: var(--muted); }
}
@keyframes hu-in { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
@keyframes hu-float { from { translate: 0 -8px; } to { translate: 0 8px; } }
@keyframes hu-wire { from { stroke-dashoffset: 134; } to { stroke-dashoffset: 0; } }
@keyframes hu-prog { 0%, 6% { transform: scaleX(0.04); } 44%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0.04); } }
@keyframes hu-spark { 0%, 6% { stroke-dashoffset: 260; } 46%, 100% { stroke-dashoffset: 0; } }
@keyframes hu-runner { 0%, 8% { transform: translateX(0); opacity: 1; } 60%, 88% { transform: translateX(11.4em); opacity: 1; } 96%, 100% { transform: translateX(11.4em); opacity: 0; } }

/* ----- round 10 polish ----- */
/* the picture's subject sits low in the frame */
/* concept visuals share one frame, the note sits inside it */
.concept-pic { position: relative; }
@media (min-width: 701px) {
  .concept-pic > .scene { aspect-ratio: 4 / 3; }
  .concept-pic .pic-note { position: absolute; left: 14px; bottom: 10px; margin: 0; padding: 0; }
}
/* waiting parts of a scene stay readable */
@keyframes ui-on { 0% { opacity: 0.55; } 4%, 90% { opacity: 1; } 97%, 100% { opacity: 0.55; } }

/* ---------- entrance ---------- */
.js [data-r] { opacity: 0; transform: translateY(16px); }
.js [data-r].in { opacity: 1; transform: none; transition: opacity 520ms var(--ease) var(--d, 0ms), transform 520ms var(--ease) var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r], .js [data-r].in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .tech-run { display: block; padding-inline: var(--m); }
  .tech-run::before, .tech-run::after { display: none; }
  .tech-track { animation: none !important; flex-wrap: wrap; row-gap: 20px; }
  .tech-track[aria-hidden] { display: none; }
  .anim, .anim *, .anim *::before, .anim *::after { animation: none !important; }
  .hero-fx, .ops-log li::after, .cv .scan, .cv .tr, .cv-map .pulse, .scanline, .tl::before, .sh-ring { display: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav-links { display: contents; }
  .nav-ind { display: none; }
  .nav { position: fixed; inset: var(--bar) 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--m) 40px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 24px; width: 100%; }
  .menu-btn { display: inline-flex; align-items: center; }
  .section-head h2, .section-head p { grid-column: 1 / -1; }
  .section-head p { max-width: 36em; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal .intro, .legal-toc, .legal-text { grid-column: 1 / -1; }
  .legal-toc { position: static; margin-bottom: 48px; columns: 2; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root { --bar: 64px; }
  .hero { min-height: 0; padding-top: 48px; }
  .hero::after { background: linear-gradient(to bottom, rgba(11, 12, 14, 0.8), rgba(11, 12, 14, 0.7) 55%, rgba(11, 12, 14, 0.9)); }
  .hero h1 { font-size: 10vw; line-height: 1; }
  .hero-foot { margin-top: 32px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-wrap: wrap; gap: 20px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr { padding-inline: 12px; }
  .scene { aspect-ratio: auto; grid-template-columns: 1fr; }
  .sc-gate .shield { width: 64px; justify-self: center; }
  .tl { grid-template-columns: 1fr; row-gap: 22px; }
  .tl::before, .tl::after { display: none; }
  .tl li { padding: 0 0 0 44px; }
  .tl li::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -18px; width: 2px; background: #2a2e34; }
  .tl li:last-child::before { display: none; }
  .tl-node { position: absolute; left: 0; top: 4px; margin: 0; }
  .cv text { font-size: 16px; }
  .hero-fx { display: none; }
  .ops-col li { font-size: 1rem; padding: 11px 12px; }
  .concepts { grid-template-columns: 1fr; }
  .contact form { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; row-gap: 2px; }
  .foot .two { columns: 1; }
  .legal-toc { columns: 1; }
}


/* ================= round 11 ================= */
/* ----- one geometry for the whole site: soft corners, pill controls, glass panels ----- */
:root { --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px; }
.btn, .mini, .chip, .pick, .chips li { border-radius: var(--r-pill); }
.next li { border-radius: var(--r-md); }
.pr, .details, .concept-pic, .ops, .cv, .scene, .ops-log { border-radius: var(--r-lg); }
.work-item figure img { border-radius: var(--r-lg); }
.legal-text li::before, .tech-track li::after { border-radius: 50%; }
.btn { padding-inline: 30px; }
.field-row input, .field-row select, .field-row textarea { border-radius: var(--r-md); border-width: 1px; padding-inline: 18px; }
.details, .pr { overflow: hidden; }
.details div:nth-child(odd) { background: rgba(255, 255, 255, 0.04); }
.ava, .ti { border-radius: 50%; }
.row, .fld, .req, .rev, .rule { border-radius: var(--r-md); }
/* glass: a faint gradient, one hairline, a soft inner highlight; no box inside a box */
.pr, .details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.pr { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
@media (min-width: 1101px) { .hu { border-radius: 1.3em; } }

/* ----- operations console: one run on a connected canvas, with its trace ----- */
.ops { padding: clamp(18px, 2.2vw, 36px); }
.run { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(16px, 1.8vw, 30px); align-items: stretch; }
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: clamp(30px, 3.6vw, 60px) clamp(24px, 2.8vw, 48px);
  padding: clamp(16px, 1.8vw, 30px); border-radius: var(--r-lg);
  background: radial-gradient(circle, rgba(207, 224, 255, 0.11) 1px, transparent 1.4px) 0 0 / 22px 22px, rgba(0, 0, 0, 0.22); }
.node { position: relative; z-index: 1; align-self: center; display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #252a32, #1a1e24); border: 1px solid rgba(255, 255, 255, 0.11); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09); }
.node-h { display: flex; align-items: center; gap: 10px; width: 100%; }
.flow .node.lit { animation: none; }
.flow .node.lit > * { animation: ui-on 12s linear infinite both; animation-delay: var(--t); }
.flow .node.lit > .chip { animation-name: ui-in; animation-timing-function: var(--ease-out); }
.n1 { grid-area: 1 / 1; } .n2 { grid-area: 1 / 2; } .n3 { grid-area: 1 / 3; }
.n4 { grid-area: 2 / 3; } .n5 { grid-area: 2 / 2; } .n6 { grid-area: 2 / 1; }
.call { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 10px 6px 14px; border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.28);
  animation: ui-on 12s linear infinite both; animation-delay: var(--t); }
.call code, .t-name code { font: 500 0.75rem/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #b9c8e2; }
.call .tickbox { width: 16px; height: 16px; }
.node.done { background: linear-gradient(180deg, #223229, #18211c); border-color: rgba(140, 220, 170, 0.35); }
/* the approval is the moment of the scene: larger, lit in vermilion while it waits */
.appr { gap: 12px; padding: 18px; border-radius: var(--r-lg); border-color: rgba(255, 84, 54, 0.55); }
.appr > :not(.appr-glow) { animation: appr-on 12s linear infinite both; }
.appr p { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.appr .btns { margin: 0; }
.appr .mini.go { position: relative; animation: none; }
.appr-glow { position: absolute; inset: -34px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 84, 54, 0.4), rgba(255, 84, 54, 0)); animation: appr-glow 12s linear infinite both; }
.ping { position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--accent); animation: ping 1.5s var(--ease-out) infinite; }
.stamp { margin-left: auto; animation: ui-in 12s var(--ease-out) infinite both; animation-delay: var(--t); }
/* the wire: a rounded U from the first node to the last; the lit copy is drawn in five parts that grow or fade in */
.wire { position: absolute; pointer-events: none; }
.wire-base { left: 16%; right: 15%; top: 25%; bottom: 25%; border: 2px solid #343a44; border-left: 0; border-radius: 0 34px 34px 0; }
.seg { background: var(--light); box-shadow: 0 0 12px rgba(207, 224, 255, 0.55); }
.seg-top { left: 16%; right: calc(15% + 34px); top: 25%; height: 2px; transform-origin: left; animation: seg-top 12s linear infinite both; }
.seg-right { right: 15%; top: calc(25% + 34px); bottom: calc(25% + 34px); width: 2px; transform-origin: top; animation: seg-right 12s linear infinite both; }
.seg-bottom { left: 16%; right: calc(15% + 34px); bottom: 25%; height: 2px; transform-origin: right; animation: seg-bottom 12s linear infinite both; }
.seg-c1, .seg-c2 { right: 15%; width: 34px; height: 34px; background: none; box-shadow: none; border: 2px solid var(--light); border-left: 0; }
.seg-c1 { top: 25%; border-bottom: 0; border-radius: 0 34px 0 0; animation: seg-c1 12s linear infinite both; }
.seg-c2 { bottom: 25%; border-top: 0; border-radius: 0 0 34px 0; animation: seg-c2 12s linear infinite both; }
@keyframes seg-top { 0%, 4% { transform: scaleX(0); opacity: 1; } 12.5% { transform: scaleX(0.5); } 27% { transform: scaleX(1); opacity: 1; } 92% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes seg-c1 { 0%, 27% { opacity: 0; } 29%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes seg-right { 0%, 29% { transform: scaleY(0); opacity: 1; } 41%, 92% { transform: scaleY(1); opacity: 1; } 97%, 100% { transform: scaleY(1); opacity: 0; } }
@keyframes seg-c2 { 0%, 41% { opacity: 0; } 43%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes seg-bottom { 0%, 43% { transform: scaleX(0); opacity: 1; } 58%, 75% { transform: scaleX(0.5); } 80%, 92% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes appr-on { 0%, 55% { opacity: 0.5; } 58%, 92% { opacity: 1; } 97%, 100% { opacity: 0.5; } }
@keyframes appr-glow { 0%, 55% { opacity: 0; } 60%, 74% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(1.22, 1.5); opacity: 0; } }
/* the trace: the same run as a timeline with durations */
.trace { padding: clamp(14px, 1.6vw, 24px); border-radius: var(--r-lg); background: rgba(0, 0, 0, 0.22); }
.trace-list { position: relative; }
.trace-list::before, .rail { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: #343a44; }
.rail { background: var(--light); transform-origin: top; animation: rail 12s linear infinite both; }
.trace-list li { position: relative; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; column-gap: 12px; padding: 8px 0; font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.trace-list li.nest { padding: 5px 0 5px 18px; grid-template-columns: 10px 1fr auto; }
.trace-list li::after { display: none; }
.t-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #14171b; border: 2px solid var(--light); }
.nest .t-dot { width: 8px; height: 8px; border-width: 0; background: #5d6b84; }
.key .t-dot { border-color: var(--accent); background: var(--accent); }
.t-dur { font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--muted); }
@keyframes rail { 0%, 3% { transform: scaleY(0); opacity: 1; } 12.5% { transform: scaleY(0.14); } 21% { transform: scaleY(0.4); } 29% { transform: scaleY(0.56); } 43% { transform: scaleY(0.7); } 58%, 75% { transform: scaleY(0.85); } 80%, 92% { transform: scaleY(1); opacity: 1; } 97%, 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 1100px) {
  .run { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .flow { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 22px; }
  .flow .node { grid-area: auto; }
  .wire { display: none; }
  .flow::before { content: ''; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 2px; background: #343a44; }
  .appr-glow { inset: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ping, .appr-glow { display: none; }
  .appr > *, .call, .flow .node.lit > * { opacity: 1; }
}

/* ================= round 12: services first, pictures over paragraphs ================= */
.section-head { margin-bottom: clamp(36px, 4vw, 64px); }

/* ----- services: nine picture tiles in a bento of 3 columns; three are wide ----- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #181b20, #121417); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 200ms var(--ease); }
.tile:hover { border-color: rgba(255, 255, 255, 0.24); }
.tile-wide { grid-column: span 2; }
.tile-pic { --pic-h: clamp(220px, 21vw, 320px); position: relative; height: var(--pic-h); overflow: hidden; background: #14171b; }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile:hover .tile-pic img { transform: scale(1.04); }
.tile-pic::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(22, 25, 29, 0.95), rgba(22, 25, 29, 0)); pointer-events: none; }
.tile-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 0 clamp(18px, 1.8vw, 28px) clamp(18px, 1.8vw, 26px); margin-top: -30px; }
.tile h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; padding-right: 56px; }
.tile-line { color: var(--muted); font-size: 1.0625rem; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li { padding: 5px 11px; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: #d8dbe0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair); }
.tile-more { margin-top: auto; padding-top: 6px; }
.tile-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.tile-more summary::-webkit-details-marker { display: none; }
.tile-more summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms var(--ease); }
.tile-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.tile-more summary:hover { color: var(--ink); }
.tile-more ul { margin-top: 8px; display: grid; gap: 6px; }
.tile-more li { position: relative; padding-left: 16px; font-size: 0.9375rem; line-height: 1.4; }
.tile-more li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tile-go { position: absolute; z-index: 2; right: clamp(16px, 1.6vw, 24px); top: clamp(16px, 1.6vw, 24px); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); transition: transform 180ms var(--ease), background-color 160ms var(--ease); }
.tile-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile-go:hover { background: var(--ink); transform: translateX(2px); }

/* ----- where we focus: six sector chips with an icon each ----- */
.sectors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sectors li { display: grid; justify-items: start; align-content: space-between; gap: 28px; min-height: 160px; padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)); border: 1px solid var(--hair); }
.sectors svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(255, 84, 54, 0.14); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sectors span { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

/* ----- approach: four icon tiles, a short caption each ----- */
.pr h3 { text-wrap: balance; }

/* ----- how we work: one strip of five steps, then four starting points ----- */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(48px, 5vw, 80px); }
.finder-q { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.finder-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04); transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.pick:hover, .pick:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ----- work: picture cards, then the concept builds ----- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) var(--gap); margin-bottom: clamp(40px, 4vw, 64px); }
.work-item figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-item h3 { margin-top: 24px; font-size: var(--step-title); letter-spacing: -0.03em; }
.work-item .status, .concept .status { margin: 8px 0; }
.work-item p:last-child, .concept > p:last-child { color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
.concepts { gap: clamp(40px, 4vw, 64px) var(--gap); }

/* ----- company: the facts as a grid of glass cells ----- */
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.details div, .details div:nth-child(odd) { display: grid; grid-template-columns: 1fr; align-content: start; row-gap: 6px; padding: 20px 22px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)); border: 1px solid var(--hair); }
.details dd { font-size: var(--step-body); }

/* ----- contact: the next steps as numbered rows ----- */
.contact { align-items: start; }
.next ol { display: grid; gap: 8px; counter-reset: nx; }
.next li { counter-increment: nx; display: flex; align-items: center; gap: 14px; }
.next li::before { content: counter(nx); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .tile:hover .tile-pic img, .tile-go:hover { transform: none; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-pic { --pic-h: clamp(220px, 32vw, 340px); }
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact form { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .tiles, .work-grid { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-pic { height: auto; aspect-ratio: 4 / 3; }
  .tile-pic img { position: absolute; inset: 0; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors li { min-height: 132px; padding: 16px; gap: 20px; }
  .details { grid-template-columns: 1fr; }
  .finder-q { width: 100%; }
}
/* shorter sections now: less ground around them, headings one step smaller */
.section { --section: clamp(72px, 8vw, 136px); }
.section-head h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); }
.next li, .next li:nth-child(odd) { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)); border: 1px solid var(--hair); }
.work-item figure img { aspect-ratio: 16 / 10; }
/* the tile action sits at the foot of the tile, beside Deliverables, so it never covers a picture or a scene label */
.tile-go { top: auto; bottom: clamp(14px, 1.4vw, 20px); }
.tile h3 { padding-right: 0; }
.tile-more { padding-right: 56px; }
/* two columns: only the first tile stays wide, so no row is left half empty */
@media (max-width: 1100px) and (min-width: 701px) { .tile-wide + .tile ~ .tile-wide { grid-column: auto; } }

/* ================= round 13 ================= */
/* ----- status language: dots, monospace micro-labels and hairlines, like a real run trace. No green pills, no ticks in circles.
   Colour carries meaning only: neutral by default, cool blue-white for done, vermilion for the human approval and the denial. ----- */
:root { --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace; --done: #cfe0ff; }
.chip, .chip.good, .chip.no, .scene .chip, .hu .chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; border-radius: 0; background: none;
  font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: #8d939c; }
.chip.good::before, .chip.no::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--done); }
.chip.good { color: #c4ccd8; }
.chip.no { color: #ffb4a6; }
.chip.no::before { background: var(--accent); }
.hu .chip { font-size: 0.78em; }
.scene .chip { font-size: max(12px, 0.72em); }
/* done: a thin check glyph, no container */
.tickbox, .scene .tickbox, .hu .tickbox, .call .tickbox { width: 14px; height: 14px; background: none; border-radius: 0; }
.ok { width: 10px; height: 5px; border-left: 1.5px solid var(--done); border-bottom: 1.5px solid var(--done); transform: translateY(-2px) rotate(-45deg); }
/* finished cards: neutral face, one cool hairline on the left */
.node.done { background: linear-gradient(180deg, #252a32, #1a1e24); border-color: rgba(255, 255, 255, 0.11); box-shadow: inset 2px 0 0 var(--done), inset 0 1px 0 rgba(255, 255, 255, 0.09); }
.row.done { background: none; box-shadow: inset 2px 0 0 var(--done); }
/* the trace: hairline rail, small square markers, monospace durations */
.trace-list::before, .rail { width: 1px; left: 6.5px; }
.t-dot { width: 7px; height: 7px; margin-left: 3.5px; border: 0; border-radius: 1px; background: var(--done); }
.nest .t-dot { width: 5px; height: 5px; margin-left: 4.5px; background: #6b7686; }
.key .t-dot { background: var(--accent); transform: rotate(45deg); }
.t-dur { font-family: var(--mono); letter-spacing: 0.02em; }
.fld small, .req small { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.scene .fld small, .scene .req small { font-size: max(12px, 0.72em); }
/* ----- footer: brand, three link columns, then the legal line with the registration details ----- */
.foot { padding-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--hair); }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr); gap: 40px var(--gap); }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { max-width: 22em; font-size: 1.0625rem; }
.foot-legal { display: grid; gap: 6px; margin-top: clamp(48px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--hair); font-size: var(--step-small); line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-svc { grid-column: 1 / -1; } }

/* ----- approach cards answer the pointer: lift, brighter edge, a glow behind the icon, a gentle tilt, and one small act per object.
   Transform and opacity only. The script sets .on for a real hovering pointer and .tap for one play on touch, so nothing sticks. ----- */
.pr { position: relative; transition: border-color 220ms var(--ease); }
.js .principles .pr[data-r].in { transition: opacity 520ms var(--ease) var(--d, 0ms), transform 520ms var(--ease) var(--d, 0ms), translate 360ms var(--ease-out), border-color 220ms var(--ease); }
.pr-ico { position: relative; display: block; transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 480ms var(--ease-out); }
.pr.moving .pr-ico { transition-duration: 120ms; }
.pr-ico img { position: relative; z-index: 1; translate: 0 0; rotate: 0deg; transition: translate 520ms var(--ease-out), rotate 520ms var(--ease-out); }
.pr-glow { position: absolute; inset: 6% 18%; z-index: 0; border-radius: 50%; opacity: 0; transition: opacity 420ms var(--ease-out);
  background: radial-gradient(closest-side, rgba(207, 224, 255, 0.2), rgba(207, 224, 255, 0.06) 55%, rgba(207, 224, 255, 0)); }
.pr-hi { position: absolute; z-index: 2; left: 52%; top: 48.75%; width: 26%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 110, 80, 0.55), rgba(255, 84, 54, 0)); transition: opacity 360ms var(--ease-out); }
.pr.on, .pr.tap, .pr:focus-within { border-color: rgba(255, 255, 255, 0.26); }
@media (prefers-reduced-motion: no-preference) {
  .pr.on, .pr.tap { translate: 0 -4px; }
  .pr.on .pr-glow, .pr.tap .pr-glow { opacity: 1; }
  /* gear: a quarter turn that settles, then a slow spin while the pointer stays; the spin pauses where it is on leave */
  .pr-gear img { transition: rotate 760ms var(--ease-out); animation: pr-spin 18s linear infinite paused; }
  .pr-gear.on img, .pr-gear.tap img { rotate: 90deg; }
  .pr-gear.on img { animation-play-state: running; }
  /* shield: turns towards the light, the keyhole brightens */
  .pr-shield.on img, .pr-shield.tap img { rotate: -6deg; translate: 0 -2%; }
  .pr-shield.on .pr-hi, .pr-shield.tap .pr-hi { opacity: 1; }
  /* document: picked up */
  .pr-doc.on img, .pr-doc.tap img { translate: 0 -6%; rotate: -5deg; }
  /* key: slides in, then turns; on leave it turns back, then slides out */
  .pr-key img { transition: rotate 380ms var(--ease-out), translate 420ms var(--ease-out) 240ms; }
  .pr-key.on img, .pr-key.tap img { translate: -7% 0; rotate: -24deg; transition: translate 420ms var(--ease-out), rotate 420ms var(--ease-out) 300ms; }
}
@keyframes pr-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* ----- technologies: each company's own colour logo, full opacity, one optical height ----- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tech-track li { position: relative; gap: 0.4em; opacity: 1; font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem); }
.tech-track svg.logo { width: auto; height: var(--h, 1em); flex: none; }
.tech-track svg.logo.mark { height: calc(var(--h, 1em) * 1.15); }

/* ----- How we work: a beam travels the rail, each step lights in turn and its drawing plays; Run is the one vermilion moment.
   One 10 s loop while on screen. Transform, opacity and stroke-dashoffset only. Under reduced motion every step is lit and still. ----- */
.tl-beam { position: absolute; left: 14px; right: 0; top: 13px; height: 2px; background: #2a2e34; z-index: 1; pointer-events: none; }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(207, 224, 255, 0.35), var(--light)); transform-origin: left; transform: scaleX(0.8180); }
.tl-mover { position: absolute; inset: 0; opacity: 0; }
.tl-head { position: absolute; left: -70px; top: -5px; width: 78px; height: 12px; border-radius: 6px; background: radial-gradient(closest-side at 92% 50%, #fff, rgba(207, 224, 255, 0.6) 40%, rgba(207, 224, 255, 0)), linear-gradient(90deg, rgba(207, 224, 255, 0), rgba(207, 224, 255, 0.45)); }
.tl-wrap.live .tl-fill { animation: tl-fill 10s var(--ease-io) infinite; }
.tl-wrap.live .tl-mover { animation: tl-move 10s var(--ease-io) infinite; }
@keyframes tl-fill { 0% { transform: scaleX(0); opacity: 1; } 16% { transform: scaleX(0.2045); } 32% { transform: scaleX(0.4090); } 48% { transform: scaleX(0.6135); } 64% { transform: scaleX(0.8180); } 90% { transform: scaleX(0.8180); opacity: 1; } 97% { transform: scaleX(0.8180); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes tl-move { 0% { transform: translateX(0); opacity: 0; } 2% { opacity: 1; } 16% { transform: translateX(20.45%); } 32% { transform: translateX(40.90%); } 48% { transform: translateX(61.35%); } 64% { transform: translateX(81.80%); } 88% { transform: translateX(81.80%); opacity: 1; } 94%, 100% { transform: translateX(81.80%); opacity: 0; } }
.st { translate: 0 0; transition: translate 360ms var(--ease-out); }
.tl-node { position: relative; z-index: 2; }
.tl-node::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--light); box-shadow: 0 0 16px rgba(207, 224, 255, 0.45); }
.st-run .tl-node::after { border-color: var(--accent); box-shadow: 0 0 22px rgba(255, 84, 54, 0.65); }
.st-vis { display: block; width: 96px; height: 64px; margin: -6px 0 14px; overflow: visible; }
.st-vis .hl { fill: none; stroke: rgba(207, 224, 255, 0.22); stroke-width: 1.2; }
/* Discover: a radar sweep finds two points */
.sweep { fill: rgba(207, 224, 255, 0.2); transform-box: view-box; transform-origin: 48px 32px; }
.sweep-edge { stroke: var(--light); stroke-width: 1.4; transform-box: view-box; transform-origin: 48px 32px; }
.blip { fill: var(--light); }
.tl-wrap.live .sweep, .tl-wrap.live .sweep-edge { animation: st-sweep 3s linear infinite; }
.tl-wrap.live .blip { animation: st-blip 3s linear infinite; }
.tl-wrap.live .blip.b2 { animation-delay: -1.6s; }
@keyframes st-sweep { to { transform: rotate(360deg); } }
@keyframes st-blip { 0%, 8% { opacity: 0.15; } 14% { opacity: 1; } 60%, 100% { opacity: 0.15; } }
/* Design: a plan is drawn over a blueprint grid */
.st-design .grid { fill: none; stroke: rgba(207, 224, 255, 0.09); stroke-width: 1; }
.plan { fill: none; stroke: var(--light); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pin { fill: var(--light); }
.tl-wrap.live .plan { animation: st-draw 10s var(--ease-out) infinite; animation-delay: 1.6s; }
@keyframes st-draw { 0% { stroke-dashoffset: 1; } 14%, 86% { stroke-dashoffset: 0; } 94%, 100% { stroke-dashoffset: 1; } }
/* Build: three blocks land one on the other */
.blk { fill: rgba(207, 224, 255, 0.1); stroke: var(--light); stroke-width: 1.4; }
.blk.k3 { fill: rgba(207, 224, 255, 0.28); }
.tl-wrap.live .blk { animation: st-drop 10s var(--ease-out) infinite both; }
.tl-wrap.live .blk.k1 { animation-delay: 3.2s; }
.tl-wrap.live .blk.k2 { animation-delay: 3.45s; }
.tl-wrap.live .blk.k3 { animation-delay: 3.70s; }
@keyframes st-drop { 0% { transform: translateY(-14px); opacity: 0; } 6%, 86% { transform: translateY(0); opacity: 1; } 94%, 100% { transform: translateY(0); opacity: 0; } }
/* Assure: a scan line passes over a locked shield */
.st-assure .shield { fill: rgba(207, 224, 255, 0.06); stroke: var(--light); stroke-width: 1.4; stroke-linejoin: round; }
.scanbar { fill: var(--light); opacity: 0.7; transform: translateY(30px); }
.st-assure .lock { fill: none; stroke: var(--light); stroke-width: 1.4; }
.st-assure .lockb { fill: none; stroke: var(--light); stroke-width: 1.4; }
.tl-wrap.live .scanbar { animation: st-scan 2.4s var(--ease-io) infinite alternate; }
@keyframes st-scan { from { transform: translateY(6px); } to { transform: translateY(56px); } }
/* Run: a live pulse */
.beat-base { fill: none; stroke: rgba(255, 84, 54, 0.25); stroke-width: 1.4; stroke-linejoin: round; }
.beat { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 0.24 0.76; stroke-dashoffset: 0.6; }
.tl-wrap.live .beat { animation: st-beat 1.8s linear infinite; }
@keyframes st-beat { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.st-hint { margin-top: 10px; max-width: 14em; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; opacity: 0; translate: 0 6px; transition: opacity 260ms var(--ease-out), translate 260ms var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .st:hover { translate: 0 -4px; }
  .tl-wrap .st:hover .st-vis { animation: st-pop 600ms var(--ease-out); }
  .tl-wrap .st:hover h3 { animation: none; opacity: 1; }
  .tl-wrap .st-design:hover .plan { animation: st-redraw 900ms var(--ease-out); }
  .tl-wrap .st-build:hover .blk { animation: st-redrop 600ms var(--ease-out) both; }
  .tl-wrap .st-build:hover .blk.k2 { animation-delay: 120ms; }
  .tl-wrap .st-build:hover .blk.k3 { animation-delay: 240ms; }
  .tl-wrap.live .st-discover:hover :is(.sweep, .sweep-edge) { animation-duration: 1.2s; }
  .tl-wrap.live .st-assure:hover .scanbar { animation-duration: 0.9s; }
  .tl-wrap.live .st-run:hover .beat { animation-duration: 0.9s; }
}
@media (hover: hover) { .st:hover .st-hint { opacity: 1; translate: 0 0; } }
@keyframes st-pop { from { opacity: 0.5; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes st-redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes st-redrop { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes st-on-0 { 0% { opacity: 0.38; } 3%, 90% { opacity: 1; } 96%, 100% { opacity: 0.38; } }
@keyframes st-ring-0 { 0% { opacity: 0; transform: scale(0.6); } 3%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes st-on-1 { 0%, 16% { opacity: 0.38; } 19%, 90% { opacity: 1; } 96%, 100% { opacity: 0.38; } }
@keyframes st-ring-1 { 0%, 16% { opacity: 0; transform: scale(0.6); } 19%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes st-on-2 { 0%, 32% { opacity: 0.38; } 35%, 90% { opacity: 1; } 96%, 100% { opacity: 0.38; } }
@keyframes st-ring-2 { 0%, 32% { opacity: 0; transform: scale(0.6); } 35%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes st-on-3 { 0%, 48% { opacity: 0.38; } 51%, 90% { opacity: 1; } 96%, 100% { opacity: 0.38; } }
@keyframes st-ring-3 { 0%, 48% { opacity: 0; transform: scale(0.6); } 51%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes st-on-4 { 0%, 64% { opacity: 0.38; } 67%, 90% { opacity: 1; } 96%, 100% { opacity: 0.38; } }
@keyframes st-ring-4 { 0%, 64% { opacity: 0; transform: scale(0.6); } 67%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
.tl-wrap.live .st:nth-child(1) :is(h3, .st-vis) { animation: st-on-0 10s linear infinite; }
.tl-wrap.live .st:nth-child(1) .tl-node::after { animation: st-ring-0 10s var(--ease-out) infinite; }
.tl-wrap.live .st:nth-child(2) :is(h3, .st-vis) { animation: st-on-1 10s linear infinite; }
.tl-wrap.live .st:nth-child(2) .tl-node::after { animation: st-ring-1 10s var(--ease-out) infinite; }
.tl-wrap.live .st:nth-child(3) :is(h3, .st-vis) { animation: st-on-2 10s linear infinite; }
.tl-wrap.live .st:nth-child(3) .tl-node::after { animation: st-ring-2 10s var(--ease-out) infinite; }
.tl-wrap.live .st:nth-child(4) :is(h3, .st-vis) { animation: st-on-3 10s linear infinite; }
.tl-wrap.live .st:nth-child(4) .tl-node::after { animation: st-ring-3 10s var(--ease-out) infinite; }
.tl-wrap.live .st:nth-child(5) :is(h3, .st-vis) { animation: st-on-4 10s linear infinite; }
.tl-wrap.live .st:nth-child(5) .tl-node::after { animation: st-ring-4 10s var(--ease-out) infinite; }
/* starting points: a small lift and a light sweep on hover */
.pick { position: relative; overflow: hidden; translate: 0 0; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), translate 240ms var(--ease-out); }
.pick::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%); transform: translateX(-120%); pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pick:hover { translate: 0 -2px; }
  .pick:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
}
@media (max-width: 700px) {
  .tl-beam { display: none; }
  .st-vis { width: 84px; height: 56px; margin: 4px 0 8px; }
  .st-hint { opacity: 1; translate: 0 0; margin-top: 4px; }
  .tl li::before { top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tl-mover { display: none; } .st-hint { opacity: 1; translate: 0 0; } }

/* ----- Agentic engineering: the method as a band, with a lead dispatching to five specialist agents ----- */
.agentic { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.ag-copy .status { margin: 0 0 14px; }
.ag-copy h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); }
.ag-copy .lead { margin-top: 18px; color: var(--muted); }
.ag-points { display: grid; gap: 10px; margin-top: clamp(24px, 2.6vw, 40px); }
.ag-points li { display: flex; align-items: center; gap: 14px; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.ag-points svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(207, 224, 255, 0.05);
  fill: none; stroke: var(--light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-fig { margin: 0; }
.ag-fig svg { display: block; width: 100%; height: auto; border: 1px solid var(--hair); }
.ag-fig figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.cv-ag .ln { stroke: #2f353e; stroke-width: 1.4; fill: none; }
.cv-ag :is(.disp, .lane, .join, .to-appr) { fill: none; stroke: var(--light); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cv-ag .lead { fill: #232830; stroke: rgba(207, 224, 255, 0.5); stroke-width: 1.2; }
.cv-ag .lead-ring { fill: none; stroke: rgba(207, 224, 255, 0.35); stroke-width: 1; opacity: 0; }
.cv-ag .person { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.cv-ag .an { fill: #1d2128; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.cv-ag .agent text { fill: var(--ink); }
.cv-ag .adot { fill: var(--light); }
.cv-ag .gate-d { fill: #232830; stroke: var(--light); stroke-width: 1.4; }
.cv-ag .gate-glow { fill: rgba(207, 224, 255, 0.16); opacity: 0; }
.cv-ag .appr-c { fill: #2a1d1b; stroke: var(--accent); stroke-width: 1.6; }
.cv-ag .appr-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cv-ag .on-appr { stroke: #ffd2c9; }
.cv-ag .appr-t { fill: var(--accent); }
.cv-ag.live .disp { animation: ag-disp 8s var(--ease-out) infinite; animation-delay: calc(var(--k) * 0.14s); }
.cv-ag.live .lead-ring { animation: ag-lead 8s var(--ease-out) infinite; }
.cv-ag.live .agent { animation: ag-agent 8s linear infinite; animation-delay: calc(var(--k) * 0.14s); }
.cv-ag.live .lane { animation: ag-lane 8s var(--ease-io) infinite; animation-delay: calc(var(--k) * 0.22s); }
.cv-ag.live .adot { animation: ag-dot 8s linear infinite; }
.cv-ag.live .agent:nth-of-type(n) .adot { animation-delay: calc(var(--k) * 0.22s); }
.cv-ag.live .join { animation: ag-join 8s var(--ease-out) infinite; }
.cv-ag.live .gate-glow { animation: ag-gate 8s linear infinite; }
.cv-ag.live .to-appr { animation: ag-to 8s var(--ease-out) infinite; }
.cv-ag.live .appr-ring { animation: ag-appr 8s var(--ease-out) infinite; }
.cv-ag.live :is(.appr-c, .appr-t, .on-appr) { animation: ag-appr-on 8s linear infinite; }
@keyframes ag-lead { 0% { opacity: 0.9; } 10%, 100% { opacity: 0; } }
@keyframes ag-disp { 0% { stroke-dashoffset: 1; } 10%, 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ag-agent { 0%, 8% { opacity: 0.45; } 11%, 92% { opacity: 1; } 98%, 100% { opacity: 0.45; } }
@keyframes ag-lane { 0%, 12% { stroke-dashoffset: 1; opacity: 1; } 44% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ag-dot { 0%, 44% { opacity: 0; } 47%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ag-join { 0%, 54% { stroke-dashoffset: 1; opacity: 1; } 64%, 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ag-gate { 0%, 63% { opacity: 0; } 67% { opacity: 1; } 74%, 100% { opacity: 0.3; } }
@keyframes ag-to { 0%, 68% { stroke-dashoffset: 1; opacity: 1; } 74%, 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ag-appr { 0%, 73% { opacity: 0; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 86%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes ag-appr-on { 0%, 72% { opacity: 0.5; } 75%, 94% { opacity: 1; } 99%, 100% { opacity: 0.5; } }
.tone .tl-node { background: var(--surface); box-shadow: inset 0 0 0 7px var(--surface), inset 0 0 0 14px var(--ink); }
.tone .tl li:last-child .tl-node { box-shadow: inset 0 0 0 7px var(--surface), inset 0 0 0 14px var(--accent); }
.st-vis { width: 128px; height: 86px; }
/* the technology line now sits on the page ground */
.tech .tech-run::before { background: linear-gradient(to right, var(--bg), rgba(11, 12, 14, 0)); }
.tech .tech-run::after { background: linear-gradient(to left, var(--bg), rgba(11, 12, 14, 0)); }
@media (max-width: 1100px) { .agentic { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .st-vis { width: 96px; height: 64px; } }

/* ================= round 14: Tierpact as a launch card ================= */
.work-feature { display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--hair); background: #0d1220; }
.work-feature figure { margin: 0; }
.work-feature figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 62% 50%; border-radius: 0; }
.work-feature::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 10, 16, 0.92), rgba(8, 10, 16, 0.35) 45%, rgba(8, 10, 16, 0) 70%), linear-gradient(to right, rgba(8, 10, 16, 0.7), rgba(8, 10, 16, 0) 55%); }
.wf-copy { position: absolute; z-index: 1; left: clamp(20px, 3.4vw, 56px); bottom: clamp(20px, 3.4vw, 52px); max-width: 30em; }
.wf-logo { display: block; width: clamp(180px, 20vw, 300px); height: auto; margin-bottom: 18px; }
.work-feature .status { margin: 0 0 8px; }
.wf-line { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }
.wf-url { margin-top: 12px; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--muted); }
.sub-h { margin: 0 0 clamp(24px, 3vw, 40px); font-size: var(--step-title); letter-spacing: -0.03em; }
@media (max-width: 700px) {
  .work-feature figure img { aspect-ratio: 4 / 5; object-position: 72% 50%; }
  .work-feature::after { background: linear-gradient(to top, rgba(8, 10, 16, 0.95), rgba(8, 10, 16, 0.55) 45%, rgba(8, 10, 16, 0) 72%); }
  .wf-line { font-size: 1.125rem; }
}
.work-grid { grid-template-columns: 1fr; }
@media (max-width: 700px) { .tl .tl-node { position: absolute; left: 0; top: 4px; margin: 0; } .tl li::before { top: 36px; } }

/* ================= round 15 ================= */
/* technologies: two rows moving in opposite directions, CSS only; each pauses on hover */
.tech-run + .tech-run { margin-top: clamp(14px, 1.6vw, 26px); }
.tech-run.tech-rev .tech-track { animation-direction: reverse; animation-duration: 64s; }
/* Perplexity's published mark is a line drawing at 1 unit in a 48 unit box; drawn at its brand weight so it reads at band size */
.tech-track svg.logo path[stroke="#20808d"] { stroke-width: 3; }
/* ----- concept builds: a rendered machine scene with a precise motion layer in the render's own pixel space ----- */
.cx { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c0f14; }
.cx > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-guide { fill: none; stroke: rgba(207, 224, 255, 0.1); stroke-width: 2; }
.fx-pk, .fx-tail, .fx-scan { fill: none; stroke-linecap: round; }
.fx-pk { stroke: #fff; stroke-width: 8; stroke-dasharray: 0.012 1; stroke-dashoffset: 0.012; }
.fx-tail { stroke: var(--light); stroke-width: 12; stroke-opacity: 0.3; stroke-dasharray: 0.09 1; stroke-dashoffset: 0.09; }
.fx-pk.deny { stroke: #ffd2c9; } .fx-tail.deny { stroke: var(--accent); stroke-opacity: 0.55; }
.fx-scan { stroke: var(--light); stroke-width: 5; stroke-dasharray: 0.06 1; stroke-dashoffset: 0.06; }
.fx-scan.ring { stroke-width: 3; stroke-opacity: 0.8; stroke-dasharray: 0.08 1; }
.fx-flash { fill: rgba(207, 224, 255, 0.3); opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx-flash.deny { fill: rgba(255, 84, 54, 0.45); }
.fx-build { fill: rgba(207, 224, 255, 0.05); stroke: var(--light); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fx-tab, .fx-plate, .fx-cell { fill: none; stroke: var(--light); stroke-linecap: round; }
.fx-tab { stroke-width: 6; }
.fx-plate { stroke-width: 3; }
.fx-cell { stroke-width: 3; stroke-opacity: 0.9; }
.cx.live .fx-pk { animation: fx-pk var(--dur) linear var(--dl) infinite; }
.cx.live .fx-tail { animation: fx-tail var(--dur) linear var(--dl) infinite; }
.cx.live .fx-scan { animation: fx-scan var(--dur) linear var(--dl) infinite; }
.cx.live .fx-flash { animation: fx-flash var(--dur) var(--ease-out) var(--dl) infinite; }
.cx.live .fx-build { animation: fx-build 6s var(--ease-out) infinite; }
.cx.live .fx-tab { animation: fx-seq 3s linear var(--dl) infinite; }
.cx.live .fx-plate { animation: fx-seq 2.6s linear var(--dl) infinite; }
.cx.live .fx-cell { animation: fx-seq 1.8s linear var(--dl) infinite; }
@keyframes fx-pk { from { stroke-dashoffset: 0.012; } to { stroke-dashoffset: -1; } }
@keyframes fx-tail { from { stroke-dashoffset: 0.09; } to { stroke-dashoffset: -0.922; } }
@keyframes fx-scan { from { stroke-dashoffset: 0.06; } to { stroke-dashoffset: -1; } }
@keyframes fx-flash { 0% { opacity: 0; transform: scale(0.3); } 8% { opacity: 1; } 30%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fx-build { 0% { stroke-dashoffset: 1; opacity: 1; } 40%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fx-seq { 0% { opacity: 0.12; } 12%, 40% { opacity: 1; } 70%, 100% { opacity: 0.12; } }
.cx-hud { position: absolute; z-index: 2; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
  background: rgba(8, 10, 14, 0.62); border: 1px solid rgba(255, 255, 255, 0.1); font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: #8d939c; }
.cx-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--light); }
.cx-tick { display: inline-block; height: 1.3em; overflow: hidden; color: #e6ebf3; }
.cx-tick span { display: block; }
.cx.live .cx-tick span { animation: cx-tick 8s steps(1, end) infinite; }
@keyframes cx-tick { 0% { transform: translateY(0); } 25% { transform: translateY(-100%); } 50% { transform: translateY(-200%); } 75% { transform: translateY(-300%); } }
.cx .pic-note { position: absolute; z-index: 2; left: 14px; bottom: 10px; margin: 0; padding: 0; color: #c4ccd8; }
.fx-scan.ring { stroke-width: 6; stroke-opacity: 1; stroke-dasharray: 0.1 1; }
.fx-pk { stroke-width: 10; }

/* ================= round 16: numbers from the codebase ================= */
.numbers { margin-top: clamp(72px, 8vw, 128px); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; align-content: space-between; gap: 22px; min-height: 168px; padding: clamp(18px, 1.8vw, 26px); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.stat-n { display: flex; align-items: flex-start; font-size: clamp(2.25rem, 1.4rem + 2vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sd-wrap { display: inline-flex; }
.sd { display: inline-block; height: 1em; overflow: hidden; }
.sd::before { content: '0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9'; display: block; white-space: pre; line-height: 1; transform: translateY(calc(var(--n) * -1em)); }
.sd-sep::before { content: ','; }
.sd-plus::before { content: '+'; color: var(--accent); margin-left: 0.04em; }
.stats.live .sd::before { animation: sd-roll 1400ms var(--ease-out) both; animation-delay: calc(var(--c) * 110ms + var(--i) * 70ms); }
@keyframes sd-roll { from { transform: translateY(0); } }
.stat-l { display: flex; align-items: center; gap: 8px; font: 500 0.75rem/1.35 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: #8d939c; }
.stat-l i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--light); }
.stat:nth-child(5) .stat-l i { background: var(--accent); }
.stats-src { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:last-child { grid-column: 1 / -1; } .stat { min-height: 132px; } }


/* ================= round 16: type system ================= */
/* Newsreader 500 carries the headings, Instrument Sans 400 and 600 everything else. Natural tracking, no uppercase
   letter-spaced labels, monospace only for real code (tool calls, request paths) and the sample IDs inside illustrations. */
:root { --font-text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; --font-head: 'Newsreader', Georgia, 'Times New Roman', serif; }
body { font-size: max(16px, var(--step-body)); line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.012em !important; line-height: 1.06; }
.hero h1 { line-height: 1.02; }
.brand-logo { display: block; width: auto; height: 24px; }
.brand svg.brand-logo { width: auto; height: 24px; }
/* interface parts keep the text face */
.foot h2, .finder-q, .st-hint, .pr h3, .sectors span { font-family: var(--font-text); letter-spacing: 0 !important; }
.foot h2 { font-weight: 600; }
.pr h3 { font-weight: 600; font-size: var(--step-lead); }
.tile h3 { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem); }
.stat-n { font-family: var(--font-text); letter-spacing: -0.02em; }
/* labels: sentence case in the text face */
.chip, .chip.good, .chip.no, .scene .chip, .hu .chip { font: 600 0.8125rem/1.3 var(--font-text); letter-spacing: 0; text-transform: none; }
.stat-l { font: 400 0.9375rem/1.4 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cx-hud { font: 500 0.8125rem/1.3 var(--font-text); letter-spacing: 0; text-transform: none; }
.cx-tick { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.t-dur, .fld small, .req small, .wf-url { font-family: var(--font-text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.wf-url { font-size: 0.9375rem; }
.status { font-weight: 600; }

/* ----- world map (#reach): hex dot grid in three depth tones, a cool daylight band crossing every --sweep,
   vermilion only on the four real locations. Generated by tools/world_map.mjs. Transform, opacity and
   stroke-dashoffset only; the base dots never repaint. ----- */
.reach-h { text-align: center; max-width: 16em; margin: 0 auto clamp(40px, 5vw, 80px); font-size: var(--step-big); line-height: 1.12; }
.wm { position: relative; width: min(100%, 1560px); margin: 0 auto; overflow: hidden; }
.wm svg { display: block; width: 100%; height: auto; }
.wm-base use, .wm-lit use { fill: none; stroke-width: 5.4; stroke-linecap: round; }
.wm-base .wm-t0 { stroke: #3a444f; }
.wm-base .wm-t1 { stroke: #2f3740; }
.wm-base .wm-t2 { stroke: #252b33; }
.wm-lit use { stroke: #a9bccd; }
.wm-win { position: absolute; top: 0; left: 0; height: 100%; width: calc(var(--win) * 100%); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); animation: wm-win var(--sweep) linear infinite; will-change: transform; }
.wm-lit { width: calc(100% / var(--win)) !important; max-width: none; animation: wm-lit var(--sweep) linear infinite; will-change: transform; }
@keyframes wm-win { from { transform: translateX(calc(100% / var(--win))); } to { transform: translateX(-100%); } }
@keyframes wm-lit { from { transform: translateX(-100%); } to { transform: translateX(calc(var(--win) * 100%)); } }
.wm-top { position: absolute; inset: 0; height: 100% !important; }
.wm-arc { fill: none; stroke: #8fa6bb; stroke-opacity: 0.22; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.wm-run { fill: none; stroke: #f2f1ed; stroke-opacity: 0.9; stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 0.08 2; stroke-dashoffset: 0.08; animation: wm-run 10s infinite; animation-delay: var(--k); }
@keyframes wm-run { 0% { stroke-dashoffset: 0.08; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); } 32%, 100% { stroke-dashoffset: -1; } }
.wm-dot { fill: var(--accent); }
.wm-ring, .wm-ping { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.wm-ring { stroke-opacity: 0.9; }
.wm-ping { opacity: 0; transform-box: fill-box; transform-origin: center; animation: wm-ping var(--sweep) infinite; animation-delay: var(--d); }
@keyframes wm-ping { 0% { transform: scale(1); opacity: 0.7; animation-timing-function: var(--ease); } 7.5%, 100% { transform: scale(2.6); opacity: 0; } }
.wm-labels { position: absolute; inset: 0; pointer-events: none; }
.wm-l { position: absolute; font: 600 14px/1 var(--font-text); color: var(--ink); white-space: nowrap; transform: translate(16px, -50%); text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg); }
.wm-sl { transform: translate(calc(-100% - 16px), -50%); }
.wm-sb { transform: translate(-50%, 16px); }
@media (max-width: 700px) {
  .wm-labels { display: none; }
  }
@media (prefers-reduced-motion: reduce) {
  .wm-win, .wm-run, .wm-ping { display: none; }
  .wm-base .wm-t0 { stroke: #56626f; }
  .wm-base .wm-t1 { stroke: #454f5a; }
  .wm-base .wm-t2 { stroke: #363e47; }
  .wm-arc { stroke-opacity: 0.4; }
}

/* ----- end-of-page mark: AYSS TECH on one line as a thin outline that fades from coral to nothing, between the link
   columns and the legal lines (CodeRabbit pattern). A cream spot lights the outline under the pointer. The svg is written
   into index.html by tools/foot_mark.mjs. ----- */
.foot-mark { display: block; width: 100%; height: auto; margin-top: clamp(48px, 6vw, 96px); fill: none; overflow: visible; }
.foot-mark path { stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.foot-mark .fm-spot { opacity: 0; transition: opacity 400ms var(--ease); }
.foot-mark:hover .fm-spot { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .foot-mark .fm-spot { transition: none; } }

/* ----- bottom row: legal links left, company and year right (CodeRabbit pattern); the year is set by site.js ----- */
.foot-brand .foot-addr { margin-top: 10px; font-size: var(--step-small); line-height: 1.6; color: var(--muted); }
.foot .foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 0.9375rem; }
.foot .foot-legal li a { font-size: inherit; padding: 0; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot .foot-legal a { color: var(--muted); text-decoration: none; transition: color 160ms var(--ease); }
.foot .foot-legal a:hover { color: var(--ink); }
.foot .foot-legal { border-top: 0; padding-top: 0; margin-top: clamp(32px, 4vw, 56px); }

/* ----- contact (Mobbin reference: Railway, also Profound, Relume): soft coral and steel light behind the section, the
   promise and next steps centred on the left, a compact form card on the right. Grain over the light stops banding. ----- */
#contact { position: relative; isolation: isolate; overflow: hidden; }
#contact::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.62 0 0 0 0 0.66 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px,
    radial-gradient(38% 52% at 30% 72%, rgba(255, 84, 54, 0.16), rgba(255, 84, 54, 0.06) 45%, rgba(255, 84, 54, 0) 100%),
    radial-gradient(34% 48% at 86% 18%, rgba(150, 172, 205, 0.15), rgba(150, 172, 205, 0.05) 45%, rgba(150, 172, 205, 0) 100%); }
.contact { align-items: center; row-gap: clamp(40px, 5vw, 64px); }
.contact-intro { grid-column: 1 / span 5; }
.contact-intro h2 { font-size: var(--step-big); line-height: 1.08; }
.contact-lead { margin-top: 16px; max-width: 26em; font-size: var(--step-body); color: var(--muted); }
.contact-intro .next { grid-column: auto; margin-top: clamp(28px, 3vw, 40px); }
.contact-intro .next li, .contact-intro .next li:nth-child(odd) { padding: 7px 0; background: none; border: 0; border-radius: 0; color: var(--muted); }
.contact-intro .next li::before { width: 26px; height: 26px; font-size: 0.8125rem; background: rgba(255, 84, 54, 0.16); color: #ff8a70; }
.contact-intro .direct { margin-top: 24px; color: var(--muted); }
.contact form { grid-column: 7 / span 6; justify-self: end; width: 100%; max-width: 560px; gap: 8px 16px; padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; background: rgba(15, 17, 20, 0.72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.contact form .field-row label { font-size: 0.9375rem; color: var(--muted); margin-bottom: 6px; }
.contact form .field-row input, .contact form .field-row select, .contact form .field-row textarea {
  min-height: 46px; padding: 10px 14px; font-size: 1rem; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; }
.contact form .field-row textarea { min-height: 120px; }
.contact form .field-row input:hover, .contact form .field-row select:hover, .contact form .field-row textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.contact form .field-row input:focus, .contact form .field-row select:focus, .contact form .field-row textarea:focus { border-color: var(--accent); }
.contact form .field-row [aria-invalid="true"] { border-color: var(--accent); }
.contact form .btn { width: 100%; min-height: 48px; border-radius: 10px; font-size: 1rem; }
/* one fixed line per field: the button must not move when a message appears on blur (the click would miss it) */
.contact form .err { height: 1.4em; line-height: 1.4; margin-top: 4px; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact form .form-note { margin-top: 4px; text-align: center; font-size: 0.8125rem; }
@media (max-width: 1100px) { .contact-intro, .contact form { grid-column: 1 / -1; justify-self: stretch; max-width: none; } }

/* ----- legal hub (legal.html): documents grouped, one row each with who it is for (CodeRabbit pattern) ----- */
.lh { display: grid; gap: clamp(40px, 5vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.lh-group h2 { font-size: var(--step-lead); margin-bottom: 16px; color: var(--muted); }
.lh-list { display: grid; gap: 12px; }
.lh-doc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; align-items: center; gap: 8px var(--gap); padding: 22px clamp(18px, 2vw, 28px);
  border: 1px solid var(--hair); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.lh-doc:hover { border-color: rgba(255, 255, 255, 0.24); }
.lh-name { font-weight: 600; font-size: var(--step-lead); }
.lh-for { color: var(--muted); }
.lh-go { color: var(--accent); font-weight: 600; }
.foot h2 a { color: inherit; }
@media (max-width: 700px) { .lh-doc { grid-template-columns: 1fr; } }
/* narrow desktops: keep the centred link bar clear of the logo and every link on one line */
.nav .nav-links a { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1280px) {
  .bar .brand svg.brand-logo { height: 24px; }
  .nav-links { gap: clamp(12px, 1.6vw, 24px); }
  .bar.is-floating .nav-links a { padding: 10px 13px; }
}
/* ----- 404 page ----- */
.nf { min-height: 56svh; display: flex; flex-direction: column; justify-content: center; }
.nf-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 3vw, 40px); }
/* pages without the floating link bar (legal pages, 404) keep a solid header when scrolled, so text never runs under the links */
@media (min-width: 1101px) {
  .bar.is-floating:not(:has(.nav-links)) { background-color: var(--bg); }
  .bar.is-floating:not(:has(.nav-links)) .brand { transform: none; }
}
