/* Expert Software Systems — site styles.
   One ground (warm black), one ink (white), one accent (EXS yellow), one field colour (EXS orange). */

/* Fonts: Cabinet Grotesk and Satoshi by Indian Type Foundry (Fontshare, free licence), served from this site. */
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0a08;
  --surface: #171411;
  --surface-2: #221e1a;
  --ink: #ffffff;
  --soft: #a7a097;
  --accent: #ffd324;
  --accent-2: #f7941d;
  --accent-ink: #0c0a08;
  --charcoal: #3a3a3d;

  --font-display: "Cabinet Grotesk", "Arial Black", system-ui, sans-serif;
  --font-text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five sizes do all the work. */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1vw, 2.125rem);
  --step-head: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem);
  --step-display: clamp(4.5rem, 1rem + 15vw, 15rem);

  --margin: clamp(16px, 2.8vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(112px, 14vw, 216px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: var(--margin); top: 12px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 700;
  transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus { transform: none; }

main { overflow-x: clip; }

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-display);
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-head);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-lead);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.small { font-size: var(--step-small); line-height: 1.5; }
.prose-lg { font-size: var(--step-body); line-height: 1.6; max-width: 52ch; }
.intro .prose-lg { grid-column: 7 / span 6; }
.soft { color: var(--soft); }
.ink-accent { color: var(--accent); }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1em; }

/* Masked lines (signature move) */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines .line > span { display: block; }

/* Layout */
.wrap { padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.field-surface { background: var(--surface); }
.field-accent { background: var(--accent); color: var(--accent-ink); }
.field-accent ::selection { background: var(--accent-ink); color: var(--accent); }
.field-accent :focus-visible { outline-color: var(--accent-ink); }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: var(--step-small);
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
  will-change: transform;
}
.button:active { transform: scale(0.97); }
.button svg { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-out); }
.field-accent .button { background: var(--accent-ink); color: var(--accent); }
.link {
  text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--accent-ink); }
  .button:hover svg { transform: translateX(4px); }
  .field-accent .button:hover { background: var(--ink); color: var(--accent-ink); }
  .link:hover { text-decoration-color: currentColor; }
}

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding: 18px var(--margin);
  background: var(--bg);
  transition: transform 420ms var(--ease-out), background-color var(--t-ui) ease;
}
.bar.is-hidden { transform: translateY(-100%); }
.bar.is-top { background: transparent; }
body[data-page="home"] .bar.is-top { background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand .mark { width: 38px; height: 38px; }
.bar nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.bar nav a { font-size: var(--step-small); font-weight: 500; }
.bar nav a[aria-current="page"] { color: var(--accent); }
.bar .button { min-height: 44px; padding: 0 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px 0; font-weight: 700; font-size: 1rem; cursor: pointer; }

/* Phone menu: a full yellow field */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px var(--margin) 32px;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 620ms var(--ease-in-out), visibility 0s linear 620ms;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 620ms var(--ease-in-out); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__close { background: none; border: 0; font-weight: 700; font-size: 1rem; padding: 10px 0; cursor: pointer; color: var(--accent-ink); }
.menu ul a {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 15vw, 6rem); line-height: 0.95; letter-spacing: -0.04em;
}
.menu__foot { display: grid; gap: 4px; font-weight: 500; }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(112px, 15vh, 160px) var(--margin) clamp(28px, 5vh, 48px);
}
.hero__title { position: relative; z-index: 1; }
.hero__title .line:nth-child(2) { color: var(--accent); }
.hero__mark { width: clamp(120px, 17vw, 280px); aspect-ratio: 1; flex: 0 0 auto; }
.hero__mark svg, .lost .mark { width: 100%; height: 100%; }
.story__title .prose-lg { margin-top: 28px; }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap);
  margin-top: clamp(40px, 8vh, 96px);
}
.hero__foot .lead { max-width: 32ch; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; text-align: right; }
.hero__scroll { font-size: var(--step-small); color: var(--soft); }
.hero--page .display { font-size: clamp(3.75rem, 1rem + 11vw, 11.5rem); }
.hero--page { min-height: 92svh; }

/* The EXS mark */
.mark { overflow: visible; }
.mark rect { transform-box: view-box; }

/* Work reel: pinned horizontal scroll */
.reel { position: relative; }
.reel__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap);
  padding-inline: var(--margin); margin-bottom: clamp(40px, 6vw, 80px);
}
.reel__track {
  display: flex; gap: clamp(20px, 3vw, 48px);
  padding-inline: var(--margin);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.js-reel .reel__track { overflow: visible; }
.reel__item { flex: 0 0 auto; width: min(70vw, 540px); scroll-snap-align: start; }
.reel__item--end { display: flex; align-items: flex-end; width: min(70vw, 420px); }
.shot {
  position: relative; overflow: hidden; background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 1100ms var(--ease-soft), object-position 2600ms var(--ease-in-out);
}
.shot--tall img { object-position: center top; }
@media (hover: hover) and (pointer: fine) {
  a:hover .shot img { transform: scale(1.05); }
  a:hover .shot--tall img { object-position: center bottom; transform: none; }
}
.reel__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.reel__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; }
.reel__what { color: var(--soft); font-size: var(--step-small); text-align: right; }
.reel__all { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.035em; }
.reel__all span { display: block; color: var(--accent); }

/* Service finder: the command list (live thing) */
.finder { padding-inline: var(--margin); }
.finder__search { display: block; max-width: 1180px; }
.finder__input {
  width: 100%; height: 1.9em;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); letter-spacing: -0.02em;
  background: var(--surface-2); border: 0; border-radius: 0;
  padding: 0 0.55em; color: var(--ink);
}
.finder__input::placeholder { color: var(--soft); opacity: 1; }
.finder__input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--accent); } /* taste-skill-ignore: focus ring, not at rest */
.finder__list { margin-top: clamp(24px, 3vw, 40px); }
.finder__row { display: block; }
.finder__row[hidden] { display: none; }
.finder__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0.14em 0.25em; margin-inline: -0.25em; width: calc(100% + 0.5em);
  background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 0.8rem + 4.6vw, 4.75rem); line-height: 1.1; letter-spacing: -0.04em;
  color: var(--ink);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.finder__keys { display: inline-flex; gap: 6px; font-family: var(--font-text); font-weight: 700; font-size: 1rem; letter-spacing: 0; }
.finder__keys kbd {
  display: inline-grid; place-items: center; width: 2em; height: 2em;
  background: var(--surface-2); color: var(--soft); font-family: var(--font-text);
}
.finder__detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease-out);
}
.finder__detail > div { overflow: hidden; }
.finder__detail p { max-width: 52ch; padding: 4px 0.25em 22px; }
.finder__detail a { font-weight: 700; }
.finder__row.is-active .finder__btn { background: var(--accent); color: var(--accent-ink); }
.finder__row.is-active .finder__keys kbd { background: var(--accent-ink); color: var(--accent); }
.finder__row.is-active .finder__detail { grid-template-rows: 1fr; background: var(--accent); color: var(--accent-ink); margin-inline: -0.25em; padding-inline: 0.25em; }
.finder__empty { padding: 24px 0; color: var(--soft); }
.finder__hint { margin-top: 28px; }

/* Statement with scrubbed words */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-inline: var(--margin); }
.intro .statement { grid-column: 5 / span 8; max-width: 42ch; }
.intro__aside { grid-column: 1 / span 4; align-self: end; }
.intro .word { display: inline-block; }

/* Process: stages as one bar */
.stages { padding-inline: var(--margin); }
.stages .head { margin-bottom: 64px; }
.stages__bar { display: flex; gap: 6px; height: 24vh; min-height: 180px; }
.stages__seg {
  position: relative; min-width: 12%;
  padding: 20px; transform-origin: left center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.25rem, 0.9rem + 1.1vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.05;
}
.stages__seg:nth-child(1) { background: var(--accent-ink); color: var(--accent); }
.stages__seg:nth-child(2) { background: var(--accent-2); color: var(--accent-ink); }
.stages__seg:nth-child(3) { background: var(--charcoal); color: var(--ink); }
.stages__notes { display: flex; gap: 6px; margin-top: 22px; }
.stages__notes p { min-width: 12%; max-width: none; padding-right: 24px; }
.stages__notes strong { font-weight: 700; }

/* Steps (DevOps): four filled blocks */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { background: var(--surface-2); padding: clamp(20px, 2.4vw, 32px); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.steps li:nth-child(4) { background: var(--accent); color: var(--accent-ink); }
.steps h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1; }

/* Poster list: technologies */
.poster { padding-block: 80px; overflow: hidden; }
.poster__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-inline: var(--margin);
}
.poster__word {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.25rem, 0.5rem + 10vw, 9.5rem); line-height: 0.92; letter-spacing: -0.045em;
  white-space: nowrap; transition: color var(--t-hover) ease;
}
.poster__detail { font-size: var(--step-body); font-variant-numeric: tabular-nums; color: var(--soft); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .poster__row:hover .poster__word { color: var(--accent); }
}

/* Offers: pinned title, rows passing */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); padding-inline: var(--margin); align-items: start; }
.story__title { position: sticky; top: 18vh; }
.story__items > li { padding-block: clamp(28px, 4vw, 56px); }
.story__items > li:first-child { padding-top: 0; }
.story__items h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 16px; }
.story__items p { max-width: 52ch; }

/* Lists of capabilities */
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(32px, 4vw, 64px) var(--gap); padding-inline: var(--margin); }
.lists h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 14px; color: var(--accent); }
.lists li { font-size: var(--step-body); padding-block: 3px; }

/* Technology: horizontal accordion */
.accordion { display: flex; gap: 6px; height: min(70vh, 620px); padding-inline: var(--margin); }
.accordion__item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  background: var(--surface-2); padding: clamp(18px, 2vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: flex-grow 700ms var(--ease-in-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
  cursor: default;
}
.accordion__item h3 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
.accordion__item p { opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 500ms var(--ease-out); max-width: 34ch; }
.accordion__item.is-open { flex-grow: 4; background: var(--accent); color: var(--accent-ink); }
.accordion__item.is-open h3 { writing-mode: horizontal-tb; transform: none; white-space: normal; }
.accordion__item.is-open p { opacity: 1; transform: none; transition-delay: 260ms; }

/* Related work strip */
.section .reel__head + .related { margin-top: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); padding-inline: var(--margin); }
.related a { display: block; }
.related .reel__meta { margin-top: 14px; }

/* Contact: one field at a time */
.contact { padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.contact__col { grid-column: 1 / span 6; max-width: 620px; }
.contact__details { grid-column: 9 / span 4; align-self: end; display: grid; gap: 22px; }
.contact__details dt { color: var(--soft); font-size: var(--step-small); }
.contact__details dd { margin: 2px 0 0; font-size: var(--step-body); }
.ask { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 28px; }
.ask span { display: block; color: var(--soft); }
.steps-form fieldset { border: 0; margin: 0; padding: 0; }
.steps-form label { display: block; font-weight: 500; margin-bottom: 10px; }
.field-row { position: relative; }
.field-input {
  width: 100%; min-height: 64px; padding: 18px 76px 18px 20px;
  background: #f4f1ec; color: var(--accent-ink); border: 0; border-radius: 0;
  font-size: 1.125rem;
}
.field-input--plain { margin-top: 8px; padding-right: 20px; }
.field-legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
textarea.field-input { min-height: 160px; resize: vertical; padding-right: 20px; }
.field-input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--accent); } /* taste-skill-ignore: focus ring, not at rest */
.field-go {
  position: absolute; right: 10px; top: 10px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 0;
  background: var(--accent-ink); color: var(--accent); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.field-go:active { transform: scale(0.94); }
.field-go svg { width: 20px; height: 20px; }
.field-note { margin-top: 14px; color: var(--soft); font-size: var(--step-small); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--surface-2); font-weight: 500; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.chips span:active { transform: scale(0.96); }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.form-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.form-progress i { flex: 1; height: 6px; background: var(--surface-2); transition: background-color var(--t-ui) ease; }
.form-progress i.is-done { background: var(--accent); }
.form-message { margin-bottom: 22px; padding: 18px 20px; font-weight: 500; white-space: pre-line; }
.form-message.is-ok { background: var(--accent); color: var(--accent-ink); }
.form-message.is-error { background: var(--surface-2); color: var(--ink); }
.recaptcha { margin-top: 22px; min-height: 78px; }
.back { background: none; border: 0; padding: 0; cursor: pointer; color: var(--soft); font-weight: 500; }

/* With script: one question at a time */
.js .steps-form[data-steps] fieldset:not(.is-current) { display: none; }
.js .steps-form[data-steps] .step-submit-all { display: none; }
.steps-form:not([data-steps]) fieldset + fieldset, .no-steps fieldset + fieldset { margin-top: 26px; }

/* Footer */
.foot { background: var(--surface); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-inline: var(--margin); }
.foot__places { grid-column: 1 / span 6; display: grid; gap: 6px; }
.foot__places a, .foot__places p {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.15; color: var(--accent);
}
.foot__places p { color: var(--ink); }
.foot__cols { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.foot__cols h3 { font-size: var(--step-small); color: var(--soft); font-weight: 500; margin-bottom: 10px; }
.foot__cols li { font-size: var(--step-small); padding-block: 4px; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; padding: 96px var(--margin) 22px; color: var(--soft); font-size: var(--step-small); }
.foot__word {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 33vw; line-height: 0.74; letter-spacing: -0.06em;
  margin: 0 0 -0.12em; padding-inline: calc(var(--margin) - 0.04em);
  color: var(--ink); white-space: nowrap; display: flex;
}
.foot__word span { display: inline-block; }
.foot__word span:nth-child(2) { color: var(--accent); }

/* Page transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  display: grid; place-items: center;
}
.curtain .mark { width: 96px; height: 96px; }

/* Cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); mix-blend-mode: difference;
  display: grid; place-items: center; opacity: 0;
}
.cursor span { font-size: 4px; font-weight: 700; color: var(--accent-ink); opacity: 0; white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Entrance states (only with script and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .anim [data-reveal] { opacity: 0; transform: translateY(24px); }
  .anim .lines .line > span { transform: translateY(105%); }
  .anim [data-hero-foot] { opacity: 0; }
  .anim [data-hero-mark] rect { opacity: 0; }
  .arriving .curtain { transform: scaleY(1); }
}

/* 404 */
.lost { min-height: 100svh; display: grid; align-content: center; gap: 32px; padding: 120px var(--margin) 60px; }
.lost .mark { width: clamp(140px, 22vw, 280px); }

/* Tablet */
@media (max-width: 1000px) {
  .intro .statement { grid-column: 1 / -1; }
  .intro__aside { grid-column: 1 / -1; order: 2; }
  .story { grid-template-columns: 1fr; }
  .story__title { position: static; margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact__col, .contact__details { grid-column: 1 / -1; }
  .foot__places, .foot__cols { grid-column: 1 / -1; }
  .foot__cols { margin-top: 48px; }
  .accordion { flex-direction: column; height: auto; }
  .accordion__item { min-height: 76px; flex: 0 0 auto; }
  .accordion__item h3 { writing-mode: horizontal-tb; transform: none; white-space: normal; }
  .accordion__item p { opacity: 1; transform: none; margin-top: 14px; }
  .accordion__item.is-open { flex-grow: 0; }
}

/* Phone */
@media (max-width: 760px) {
  .bar nav, .bar > .button { display: none; }
  .menu-toggle { display: block; }
  .hero { padding-top: 18svh; }
  .hero .display { font-size: 17.5vw; }
  .hero--page .display { font-size: 17vw; }
  .hero__mark { width: 30vw; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 36px; }
  .hero__actions { align-items: flex-start; text-align: left; }
  .reel__head { flex-direction: column; align-items: flex-start; }
  .reel__track { flex-direction: column; overflow: visible; gap: 48px; }
  .reel__item { width: 100%; }
  .reel__item--end { display: none; }
  .finder__btn { font-size: 8.5vw; }
  .finder__keys { display: none; }
  .finder__input { height: 56px; font-size: 1.25rem; }
  .stages__bar { flex-direction: column; height: 70svh; }
  .stages__seg { min-height: 72px; }
  .stages__notes { flex-direction: column; gap: 14px; }
  .poster__row { gap: 12px; }
  .poster__word { font-size: 10vw; }
  .poster__detail { font-size: var(--step-small); }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__legal { padding-top: 64px; }
}

/* ===== Homepage star scene =====
   Static by default (no script, or reduced motion): a hero, the star as a logo, and a list of services.
   .scene--live (added by script) turns the stage into one pinned screen. */
.scene__stage { position: relative; min-height: 100svh; padding: clamp(112px, 15vh, 160px) var(--margin) 0; }
.star {
  --S: min(46vw, 560px);
  --u: calc(var(--S) / 340);
  --len: calc(236 * var(--u));
  position: absolute; right: var(--margin); top: clamp(120px, 18vh, 200px);
  width: var(--S); height: var(--S); z-index: 0;
}
.rib {
  position: absolute; left: 50%; top: 50%;
  width: var(--len); height: calc(46 * var(--u));
  margin-left: calc(var(--len) / -2); margin-top: calc(-23 * var(--u));
  transform: rotate(calc(var(--i) * 45deg)) translate(calc(-32 * var(--u)), calc(81 * var(--u)));
}
.rib__band { width: 100%; height: 100%; background: var(--band); color: var(--band-ink); overflow: hidden; display: flex; align-items: center; }
.rib__flip { display: flex; }
.rib:nth-child(4) .rib__flip, .rib:nth-child(5) .rib__flip, .rib:nth-child(6) .rib__flip { transform: rotate(180deg); }
.rib__track {
  display: flex; white-space: nowrap; opacity: 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: calc(26 * var(--u)); line-height: 1; letter-spacing: -0.02em;
}
.rib__track span { padding-right: 0.4em; }
.rib__track i { font-style: normal; opacity: 0.45; padding: 0 0.3em; }

.scene__intro { position: relative; z-index: 2; }
.scene__title .line > span { display: inline-block; background: var(--bg); padding: 0 0.06em 0.02em; margin-left: -0.06em; }
.scene__title { font-size: clamp(3.5rem, 0.5rem + 9.2vw, 10rem); }
.scene__title .line:nth-child(3) { color: var(--accent); }
@media (min-width: 761px) {
  /* Desktop: "Expert Software" on one line, "Systems" on the next. */
  .scene__title .line:nth-child(1), .scene__title .line:nth-child(2) { display: inline-block; vertical-align: top; }
  .scene__title .line:nth-child(1) { margin-right: 0.22em; }
}
.scene__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--gap) clamp(24px, 4vw, 64px); }
.scene__show { position: relative; z-index: 2; }
.scene__frame { display: block; background: var(--bg); padding: clamp(10px, 1.2vw, 18px); }
.licon.licon--show { aspect-ratio: 600 / 440; width: min(36vw, 560px, calc((100svh - 450px) * 1.3)); min-width: 260px; }
.scene__lead .lead { max-width: 26ch; }
.scene__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: clamp(32px, 6vh, 64px); max-width: 34ch; }
.scene__lead .lead { background: var(--bg); }

.scene__services { position: relative; z-index: 2; padding-block: var(--section) 0; }
.scene__label { font-family: var(--font-display); font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.015em; color: var(--soft); margin-bottom: 32px; }
.scene__services ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px var(--gap); }
.scene__services h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 12px; }
.scene__services li p { max-width: 40ch; margin-bottom: 12px; }
.scene__services li .link { font-weight: 700; }
.scene__end { padding-block: 64px var(--section); display: flex; flex-wrap: wrap; align-items: center; gap: 28px; position: relative; z-index: 2; }
.scene__meter { display: none; }

/* Live: one pinned screen */
.scene--live .scene__stage { height: 100svh; min-height: 0; padding: 0; overflow: hidden; }
.scene--live .star { left: 50%; top: 50%; right: auto; margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2); --S: min(66vmin, 600px); }
.scene--live .scene__intro { position: absolute; inset: 0; padding: clamp(112px, 15vh, 160px) var(--margin) clamp(28px, 5vh, 48px); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.scene--live .scene__intro a { pointer-events: auto; }
.scene--live .scene__lead { margin-top: 0; }
.scene--live .scene__services { position: absolute; left: var(--margin); top: 0; bottom: 0; width: min(44vw, 560px); padding: 0; display: flex; flex-direction: column; justify-content: center; }
.scene--live .scene__label { opacity: 0; }
.scene--live .scene__services ol { display: block; position: relative; min-height: 40vh; }
.scene--live .scene__services li { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; }
.scene--live .scene__services h3 { font-size: clamp(2.75rem, 1rem + 4vw, 5.25rem); }
.scene--live .scene__end { position: absolute; left: var(--margin); top: 50%; transform: translateY(-50%); padding: 0; flex-direction: column; align-items: flex-start; opacity: 0; visibility: hidden; max-width: 44vw; }
.scene--live .scene__meter { display: block; position: absolute; left: var(--margin); right: var(--margin); bottom: 22px; height: 4px; background: var(--surface-2); z-index: 3; }
.scene--live .scene__meter i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

@media (max-width: 760px) {
  .star { --S: 70vw; position: relative; right: auto; top: auto; margin: 40px 0 0 auto; }
  .scene--live .star { --S: 74vw; }
  .scene--live .scene__services { width: auto; right: var(--margin); top: 46svh; bottom: 64px; justify-content: flex-start; }
  .scene--live .scene__services h3 { font-size: 11vw; }
  .scene--live .scene__end { max-width: none; right: var(--margin); top: auto; bottom: 18svh; transform: none; }
  .scene--live .scene__lead { align-self: flex-start; align-items: flex-start; text-align: left; }
  .scene__title { font-size: 17.5vw; }
  .scene__row { flex-direction: column-reverse; align-items: flex-start; }
  .licon.licon--show { width: 78vw; min-width: 0; }
  .scene--live .scene__intro { padding-top: 96px; }
}

/* Client logo marquee */
.marquee { display: grid; gap: 6px; overflow: hidden; padding-inline: var(--margin); }
.marquee__row, .marquee__set { display: flex; flex-wrap: wrap; gap: 6px; }
.marquee__set[aria-hidden="true"] { display: none; }
.marquee--live { padding-inline: 0; }
.marquee--live .marquee__row { flex-wrap: nowrap; width: max-content; gap: 0; }
.marquee--live .marquee__set { flex-wrap: nowrap; padding-right: 6px; }
.marquee--live .marquee__set[aria-hidden="true"] { display: flex; }
.marquee__set li a {
  display: grid; place-items: center; width: clamp(180px, 18vw, 260px); aspect-ratio: 3 / 2;
  background: #ffffff; padding: 24px;
}
.marquee__set img { max-height: 82px; width: auto; object-fit: contain; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .marquee__set li a:hover img { transform: scale(1.08); }
}

/* ===== Client logos: each tile opens the client's site ===== */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding-inline: var(--margin); }
.tile { position: relative; display: block; overflow: hidden; transition: transform var(--t-press) var(--ease-out); }
.tile:active { transform: scale(0.98); }
.tile__face { display: grid; place-items: center; aspect-ratio: 3 / 2; background: #ffffff; padding: 28px; }
.tile--dark .tile__face { background: var(--accent-ink); }
.tile__face img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; transition: transform 700ms var(--ease-out); }
.tile__visit {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: var(--step-small);
  transform: translateY(101%); transition: transform 320ms var(--ease-out);
}
.tile:focus-visible .tile__visit { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__face img { transform: scale(1.07); }
  .tile:hover .tile__visit { transform: none; }
}
@media (hover: none) {
  .tile__visit { position: static; transform: none; background: var(--surface-2); color: var(--ink); }
}
.marquee__set li a.is-dark { background: var(--accent-ink); }

/* ===== Animated icons (Lottie, drawn as SVG) ===== */
.licon { display: block; aspect-ratio: 1; flex: 0 0 auto; }
.licon svg { display: block; width: 100% !important; height: 100% !important; }
.licon--hero { width: clamp(120px, 17vw, 280px); }
.hero__icon { flex: 0 0 auto; }
.finder__body { display: flex; align-items: flex-start; gap: 20px; }
.finder__icon { width: 92px; background: var(--accent-ink); margin: 4px 0 22px 0.25em; }
.with-icon { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.story__icon { width: 96px; background: var(--surface-2); }
.scene__icon { width: clamp(72px, 7vw, 112px); margin-bottom: 18px; }
@media (max-width: 760px) {
  .with-icon { grid-template-columns: 64px 1fr; gap: 16px; }
  .story__icon { width: 64px; }
  .finder__icon { width: 64px; }
  .scene--live .scene__icon { display: none; }
}

/* ===== FAQ ===== */
.faq { padding-inline: var(--margin); max-width: 1100px; }
.faq__item { background: var(--surface-2); }
.faq__item + .faq__item { margin-top: 6px; }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 24px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: 0 0 auto; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1;
  color: var(--accent); transition: transform var(--t-ui) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.faq__a { padding: 0 24px 24px; max-width: 64ch; }
@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover .faq__q { color: var(--accent); }
}

/* ===== Pricing ===== */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; padding-inline: var(--margin); }
.price__item { background: var(--surface-2); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.price__item:first-child { background: var(--accent); color: var(--accent-ink); }
.price__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); line-height: 1; letter-spacing: -0.03em; }
.price__from { font-family: var(--font-display); font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.015em; }
.price__list li { padding-block: 4px; }
.price__list li::before { content: "\2014\00a0"; }
.price__notes { margin-top: 32px; display: grid; gap: 6px; }

/* ===== Insights ===== */
.guides { padding-inline: var(--margin); }
.guides__row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; transition: color var(--t-hover) ease;
}
.guides li + li .guides__row { padding-top: clamp(24px, 3vw, 40px); }
.guides__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 22ch; }
.guides__short { grid-column: 1; color: var(--soft); max-width: 60ch; }
.guides__go { grid-column: 2; grid-row: 1 / span 2; width: 56px; height: 56px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform var(--t-ui) var(--ease-out); }
.guides__go svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) {
  .guides__row:hover .guides__title { color: var(--accent); }
  .guides__row:hover .guides__go { transform: translateX(6px); }
}

/* ===== Articles (guides, privacy) ===== */
.article { padding: clamp(132px, 18vh, 200px) var(--margin) var(--section); display: grid; gap: 56px; }
.article__head { display: grid; gap: 18px; max-width: 900px; }
.article__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 1rem + 3.4vw, 4.25rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 24ch; }
.article__cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; }
.article__lead { max-width: 40ch; }
.article__body { max-width: 62ch; display: grid; gap: 36px; }
.article__body h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 12px; }
.article__body p { font-size: var(--step-body); }
.article__cta { padding: clamp(28px, 4vw, 48px); max-width: 900px; display: grid; gap: 14px; }
.article__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.article__more { display: grid; gap: 8px; max-width: 900px; }

/* Homepage extras */
.scene__skip { position: absolute; left: var(--margin); bottom: 40px; z-index: 4; font-size: var(--step-small); font-weight: 700; display: none; }
.scene--live .scene__skip { display: inline-block; }
.offer { padding-inline: var(--margin); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.offer .head { max-width: 20ch; }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
