/* =========================================================================
   Sarson & Steel — architectural steelwork, The Hague
   Palette is taken from cold night steel: deep indigo, temper blue, straw.
   ========================================================================= */

:root {
  --ink:        #0e0f1e;   /* page */
  --ink-2:      #131529;   /* raised panels */
  --ink-3:      #191c33;   /* hover fills */
  --haze:       #e9eaf0;   /* primary text */
  --muted:      #8c92a8;   /* secondary text */
  --temper:     #7fa8cf;   /* heat-tinted steel — links, drawing, accents */
  --straw:      #d8b45c;   /* straw temper — used once, for status */
  --line:       rgba(233, 234, 240, 0.13);
  --line-soft:  rgba(233, 234, 240, 0.07);
  --copy:       rgba(233, 234, 240, 0.66);
  --panel:      rgba(19, 21, 41, 0.55);
  --panel-strong: rgba(19, 21, 41, 0.72);
  --header-stuck: rgba(14, 15, 30, 0.86);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1560px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light palette sampled from the BGS reference supplied by the client. */
html[data-theme="light"] {
  --ink:        #ffffff;
  --ink-2:      #f3f7f9;
  --ink-3:      #eef4f7;
  --haze:       #141414;
  --muted:      #6e6e6e;
  --temper:     #161833;
  --straw:      #a3d2e2;
  --line:       rgba(20, 20, 20, 0.09);
  --line-soft:  rgba(20, 20, 20, 0.055);
  --copy:       rgba(20, 20, 20, 0.68);
  --panel:      rgba(243, 247, 249, 0.82);
  --panel-strong: #f3f7f9;
  --header-stuck: rgba(255, 255, 255, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--haze);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 260ms ease, color 260ms ease;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--temper);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  transform: translateY(-250%);
}
.skip-link:focus { transform: translateY(0); }

/* ── scroll progress ─────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--temper);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ── header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  background: rgba(14, 15, 30, 0);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease;
}
.site-header.is-stuck {
  background: var(--header-stuck);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.is-hidden { transform: translateY(-101%); }

.brand { display: grid; gap: 0.35rem; width: max-content; }

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand-top { grid-column: 1; }
.brand-rule {
  grid-column: 2;
  height: 1px;
  min-width: 2.5rem;
  background: currentColor;
  opacity: 0.6;
}
.brand-bottom { grid-column: 1 / -1; }

.brand-sub {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.2rem);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.desktop-nav a { position: relative; padding: 0.4rem 0; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--temper);
  transition: right 0.45s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a.is-current::after { right: 0; }

.header-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  --toggle-w: 2.65rem;
  width: auto;
  min-width: 5.25rem;
  height: auto;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-toggle-label {
  min-width: 2.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.78;
}
.theme-toggle-track {
  position: relative;
  display: block;
  flex: 0 0 var(--toggle-w);
  width: var(--toggle-w);
  height: 1.55rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-3) 86%, transparent);
  transition: background-color 240ms ease, border-color 240ms ease;
}
.theme-toggle-track::before,
.theme-toggle-track::after {
  position: absolute;
  top: 50%;
  z-index: 0;
  transform: translateY(-50%);
  font-size: 0.55rem;
  line-height: 1;
  opacity: 0.72;
}
.theme-toggle-track::before { content: "☼"; left: 0.35rem; }
.theme-toggle-track::after { content: "◐"; right: 0.34rem; }
.theme-toggle-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  z-index: 1;
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 50%;
  background: var(--haze);
  transition: transform 260ms var(--ease), background-color 240ms ease;
}
html[data-theme="light"] .theme-toggle-thumb { transform: translateX(1.1rem); background: #161833; }
.theme-toggle:hover .theme-toggle-track { border-color: var(--temper); }
.theme-toggle:active .theme-toggle-thumb { scale: 0.9; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 0.3rem 0.1rem;
  cursor: pointer;
  color: var(--muted);
  letter-spacing: inherit;
  transition: color 0.3s ease;
}
.lang-switch button:hover { color: var(--haze); }
.lang-switch button.is-active { color: var(--haze); }

.menu-button {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-icon {
  position: relative;
  display: block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-button[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-90deg); }

/* ── mobile menu panel ───────────────────────────────────────────────── */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink-2);
  transform: translateY(-101%);
  transition: transform 0.7s var(--ease);
  overflow-y: auto;
}
.menu-panel.is-open { transform: translateY(0); }

.menu-panel-inner {
  min-height: 100%;
  padding: 7rem var(--gutter) 3rem;
  display: grid;
  align-content: space-between;
  gap: 4rem;
}

.menu-links { display: grid; }
.menu-links a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}
.menu-links a:last-child { border-bottom: 1px solid var(--line); }
.menu-links a:hover { color: var(--temper); }
.menu-links i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.menu-contact { display: grid; gap: 0.4rem; }
.menu-contact p { margin: 0; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 5rem);
  margin-top: -5rem;
  padding: 9rem var(--gutter) 2.5rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.025);
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero-backdrop::after {
  /* keeps type legible over whatever sits behind it */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 15% 90%, rgba(14, 15, 30, 0.95) 0%, rgba(14, 15, 30, 0.35) 60%, transparent 100%),
    linear-gradient(180deg, rgba(14, 15, 30, 0.9) 0%, rgba(14, 15, 30, 0.15) 35%, rgba(14, 15, 30, 0.85) 100%);
}

/* Fixed-camera Hague sequence, inspired by a traditional architectural
   time-lapse. Crossfading stills keeps the effect light enough for hosting. */
.hero-timelapse {
  position: absolute;
  inset: -6% 0 0 0;
  overflow: hidden;
  filter: grayscale(0.5) contrast(1.05) brightness(0.48) saturate(0.75);
  opacity: 0.9;
  animation: timelapse-push 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.timelapse-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  animation: timelapse-crossfade 24s linear infinite;
  will-change: opacity;
}

.frame-day { animation-name: timelapse-day; }
.frame-sunset { animation-name: timelapse-sunset; }
.frame-night { animation-name: timelapse-night; }

@keyframes timelapse-push {
  from { transform: scale(1.015); }
  to { transform: scale(1.055); }
}

@keyframes timelapse-day {
  0%, 25% { opacity: 1; }
  39%, 80% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

@keyframes timelapse-sunset {
  0%, 24% { opacity: 0; }
  38%, 57% { opacity: 1; }
  71%, 100% { opacity: 0; }
}

@keyframes timelapse-night {
  0%, 56% { opacity: 0; }
  70%, 81% { opacity: 1; }
  93%, 100% { opacity: 0; }
}

/* With a photograph behind it the drawing steps back to a trace. */
.has-photo .draw-sky use { opacity: 0.28; }
.has-photo .draw-water use { opacity: 0.16; }

.hero-drawing {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: min(72%, 640px);
  will-change: transform;
}
.hero-drawing g { fill: none; stroke-linecap: square; }
.draw-sky use { stroke: var(--temper); stroke-width: 1; opacity: 0.55; }
.draw-water use { stroke: var(--temper); stroke-width: 1; opacity: 0.3; }
.draw-rules path { stroke: var(--haze); stroke-width: 1; opacity: 0.12; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-eyebrow { margin-bottom: 1.8rem; }

.hero-title {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(2.9rem, 8.2vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}
.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title.is-visible .line > span { transform: translateY(0); }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2.5rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero-lead {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  color: rgba(233, 234, 240, 0.78);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.6rem;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--haze);
  border-radius: 0;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.button:hover { background: var(--temper); border-color: var(--temper); color: var(--ink); transform: translateY(-4px); }

.button-ghost {
  background: transparent;
  color: var(--haze);
  border-color: var(--line);
}
.button-ghost:hover { background: transparent; border-color: var(--haze); color: var(--haze); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status .status-hours { color: var(--muted); letter-spacing: 0.1em; }
.status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--straw);
  box-shadow: 0 0 0 0 rgba(216, 180, 92, 0.55);
  animation: pulse 3s infinite;
}
.status.is-closed .dot { background: var(--muted); animation: none; box-shadow: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 180, 92, 0.45); }
  70%  { box-shadow: 0 0 0 0.55rem rgba(216, 180, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 180, 92, 0); }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.scroll-cue:hover { color: var(--haze); }
.scroll-cue span:last-child { animation: nudge 2.4s var(--ease) infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.35rem); }
}

/* ── generic section grid ────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 9rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 3.4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.section-label { display: flex; align-items: flex-start; gap: 1rem; }
.section-label .rule {
  width: 2.2rem;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--temper);
  flex: none;
}
.section-label .eyebrow { margin: 0; }

.lead {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 3.5vw, 3.5rem);
}
.copy-grid p {
  margin: 0;
  color: var(--copy);
  font-size: 0.97rem;
  line-height: 1.8;
}
.copy-grid p:nth-child(2) { transition-delay: 0.08s; }
.copy-grid p:nth-child(3) { transition-delay: 0.16s; }
.copy-grid-single { grid-template-columns: minmax(0, 1fr); }
.copy-grid-single p { max-width: 68ch; }

/* ── expertise stages ────────────────────────────────────────────────── */
.stages { list-style: none; margin: 0; padding: 0; }

.stage {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 3vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.stage:last-child { border-bottom: 1px solid var(--line); }

.stage-no {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--temper);
  padding-top: 0.5rem;
}
.stage h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.stage p {
  margin: 0;
  max-width: 52ch;
  color: var(--copy);
}

/* ── industries ─────────────────────────────────────────────────────── */
.section-copy {
  max-width: 62ch;
  margin: -1.6rem 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--copy);
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.industry-list li {
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.industry-list li:nth-child(odd) { padding-left: 0; }
.industry-list h2,
.solution-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.industry-list p,
.solution-card p:last-child {
  margin: 0;
  color: var(--copy);
}

/* ── industry solutions ─────────────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.solution-card {
  min-height: 17rem;
  padding: clamp(1.6rem, 3vw, 2.7rem);
  background: var(--ink);
  transition: background 0.35s ease;
}
.solution-card:hover { background: var(--ink-2); }
.solution-card .eyebrow { color: var(--temper); }

/* ── interactive demos ──────────────────────────────────────────────── */
.demo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.demo-item { border-bottom: 1px solid var(--line); }
.demo-item a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 3.4vw, 2.8rem) 0;
  transition: padding 0.45s var(--ease), background 0.35s ease;
}
.demo-item a:hover { padding-left: 1.2rem; padding-right: 1.2rem; background: var(--ink-2); }
.demo-no {
  align-self: start;
  padding-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--temper);
}
.demo-content { display: grid; grid-template-columns: minmax(10rem, 0.7fr) minmax(14rem, 1fr); align-items: start; column-gap: clamp(1.5rem, 4vw, 4rem); }
.demo-content .eyebrow { grid-column: 1 / -1; margin-bottom: 0.8rem; color: var(--muted); }
.demo-content h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.demo-content > p:last-child { margin: 0; max-width: 46ch; color: var(--copy); }
.demo-action {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease, transform 0.45s var(--ease);
}
.demo-item a:hover .demo-action { color: var(--temper); transform: translateX(0.35rem); }

/* ── compact homepage + internal pages ──────────────────────────────── */
.impact-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.impact-item {
  min-height: 11rem;
  padding: 2.2rem clamp(1rem, 2.5vw, 2.4rem);
  display: grid;
  align-content: center;
  gap: 0.5rem;
  border-left: 1px solid var(--line);
}
.impact-item:last-child { border-right: 1px solid var(--line); }
.impact-item:nth-child(1) { grid-column: span 4; }
.impact-item:nth-child(2) { grid-column: span 3; }
.impact-item:nth-child(3) { grid-column: span 2; }
.impact-item:nth-child(4) { grid-column: span 3; }
.impact-item strong {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--temper);
}
.impact-item strong small { font-size: 0.4em; letter-spacing: -0.02em; }
.impact-item > span:last-child {
  max-width: 18ch;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.path-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(15rem, auto));
  gap: 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  border: 1px solid var(--line);
}
.path-card,
.trust-card,
.insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.path-card {
  isolation: isolate;
  contain: paint;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  color: #f3f4f7;
  background: #131529;
}
.path-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 15, 30, 0.25), rgba(14, 15, 30, 0.9)),
    linear-gradient(90deg, rgba(14, 15, 30, 0.68), rgba(14, 15, 30, 0.12));
}
.path-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03);
  transition: transform 700ms var(--ease), filter 400ms ease;
}
.path-card:hover .path-media { transform: scale(1.035); filter: saturate(0.95) contrast(1.02); }
.path-card:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 31rem; }
.path-card:nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
.path-card:nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }
.path-card:hover,
.trust-card:hover,
.insight-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(127, 168, 207, 0.55);
  background: var(--ink-2);
}
.path-card:hover { background: #131529; }
.path-no {
  margin-bottom: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--temper);
}
.path-card h2 { margin: 3.5rem 0 0.8rem; font-size: clamp(1.7rem, 2.7vw, 2.5rem); }
.path-card p { margin: 0 0 1.8rem; max-width: 48ch; color: rgba(243, 244, 247, 0.76); }
.path-link,
.card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--temper);
}

.founder-preview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: center; }
.founder-mark {
  grid-column: 1 / span 5;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 168, 207, 0.35);
  border-radius: 0;
  background:
    radial-gradient(circle at 65% 25%, rgba(127, 168, 207, 0.32), transparent 35%),
    linear-gradient(145deg, var(--ink-3), var(--ink));
  transform: translate3d(0, calc(var(--parallax-y, 0) * 0.35), 0);
  will-change: transform;
}
.founder-preview > div:last-child { grid-column: 6 / -1; min-width: 0; padding: clamp(1.75rem, 3vw, 3rem); border: 1px solid var(--line); border-left: 0; }
.founder-mark span { font-family: var(--display); font-size: clamp(4rem, 10vw, 8rem); font-weight: 300; letter-spacing: -0.08em; color: color-mix(in srgb, var(--haze) 78%, transparent); }
.founder-lead { max-width: 18ch; margin-bottom: 1.5rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.founder-copy { max-width: 58ch; margin: 0; color: var(--muted); }
.founder-actions { margin-top: 2rem; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: var(--max);
  min-height: min(72svh, 48rem);
  margin: 0 auto;
  padding: clamp(8rem, 15vh, 11rem) var(--gutter) clamp(4.5rem, 8vw, 7rem);
  display: grid;
  align-content: end;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(60vw, 50rem);
  aspect-ratio: 1;
  right: -8vw;
  top: -16rem;
  border: 1px solid rgba(127, 168, 207, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(127, 168, 207, 0.025), 0 0 0 10rem rgba(127, 168, 207, 0.018);
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, transparent, #000);
}
.page-hero-inner { max-width: 70rem; }
.page-title { max-width: 15ch; font-size: clamp(3.2rem, 8vw, 7.8rem); line-height: 0.94; }
.page-lead { max-width: 55ch; margin: 2rem 0 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--copy); }
.page-actions { margin-top: 2.2rem; }

.solution-showcase {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(13rem, auto);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.solution-demo {
  position: relative;
  contain: paint;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-height: 14rem;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--panel-strong);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.solution-demo:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 38rem; z-index: 2; }
.solution-demo:nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
.solution-demo:nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }
.solution-demo:nth-child(4) { grid-column: 1 / span 5; grid-row: 3; }
.solution-demo:nth-child(5) { grid-column: 6 / span 7; grid-row: 3; }
.solution-demo:hover { z-index: 4; transform: translateY(-4px); border-color: rgba(127, 168, 207, 0.5); background: var(--ink-2); }
.solution-demo .demo-no { padding: 0; align-self: center; }
.solution-demo h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.solution-demo .demo-no { align-self: flex-start; }
.solution-demo-copy p { margin: 0; color: var(--muted); }
.solution-demo-copy .eyebrow { margin-bottom: 0.7rem; color: var(--temper); }
.solution-demo-copy { max-width: 42ch; }
.solution-demo .button { margin-top: auto; white-space: nowrap; }
.solution-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--ink);
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.solution-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.solution-demo:hover .solution-media img { transform: scale(1.025); }
.solution-media-portrait { aspect-ratio: 16 / 10; height: auto; margin: 0; }
.solution-media-landscape { aspect-ratio: 16 / 9; height: auto; margin: 0; }

.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; counter-reset: process; }
.process-card {
  counter-increment: process;
  min-height: 17rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.process-card:nth-child(1) { grid-column: 1 / span 4; }
.process-card:nth-child(2) { grid-column: 5 / span 8; }
.process-card:nth-child(3) { grid-column: 1 / span 6; }
.process-card:nth-child(4) { grid-column: 7 / span 6; }
.process-card:nth-child(5) { grid-column: 1 / span 8; }
.process-card:nth-child(6) { grid-column: 9 / span 4; }
.process-card:hover { z-index: 2; transform: translateY(-4px); border-color: rgba(127, 168, 207, 0.5); background: var(--ink-2); }
.process-icon { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--temper) 42%, transparent); border-radius: 50%; font-family: var(--mono); font-size: 0.7rem; color: var(--temper); }
.card-visual {
  position: absolute;
  z-index: -1;
  top: 1.25rem;
  right: 1.25rem;
  width: clamp(5.5rem, 9vw, 8.5rem);
  height: clamp(5.5rem, 9vw, 8.5rem);
  color: var(--temper);
  opacity: 0.15;
  transition: opacity 240ms ease, transform 420ms var(--ease);
}
.card-visual svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.process-card:hover .card-visual,
.trust-card:hover .card-visual { opacity: 0.32; transform: translateY(-4px) rotate(-2deg); }
.process-card h2 { margin: auto 0 0.8rem; font-size: clamp(1.45rem, 2vw, 2rem); }
.process-card p { margin: 0; color: var(--muted); }

.trust-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
.trust-card { isolation: isolate; min-height: 13rem; padding: 2rem; }
.trust-card:nth-child(1) { grid-column: span 7; }
.trust-card:nth-child(2) { grid-column: span 5; }
.trust-card:nth-child(3) { grid-column: span 5; }
.trust-card:nth-child(4) { grid-column: span 7; }
.trust-card:nth-child(5) { grid-column: span 8; }
.trust-card:nth-child(6) { grid-column: span 4; }
.trust-card h2 { margin: 2.5rem 0 0.7rem; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.trust-card p { margin: 0; color: var(--muted); }

.tech-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tech-badge {
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.tech-badge:hover { color: var(--haze); border-color: var(--temper); transform: translateY(-4px); }

.insight-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(16rem, auto)); gap: 0; }
.insight-card { min-height: 21rem; padding: clamp(1.6rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.insight-card:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 34rem; }
.insight-card:nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
.insight-card:nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }
.insight-card:nth-child(4) { grid-column: 3 / span 10; min-height: 18rem; margin-top: 3rem; }
.insight-card h2 { max-width: 18ch; margin: 4rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.insight-card p { margin: 0 0 2rem; max-width: 48ch; color: var(--muted); }
.insight-card .eyebrow { color: var(--temper); }

.case-flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; background: transparent; border: 1px solid var(--line); border-radius: 0; overflow: visible; }
.case-step { min-height: 14rem; padding: 2rem; background: var(--ink); }
.case-step:nth-child(1) { grid-column: span 3; }
.case-step:nth-child(2) { grid-column: span 5; margin-top: -2rem; margin-bottom: 2rem; border: 1px solid var(--temper); z-index: 2; }
.case-step:nth-child(3) { grid-column: span 4; }
.case-step h2 { margin: 2.5rem 0 0.8rem; font-size: 1.7rem; }
.case-step p { margin: 0; color: var(--muted); }

.final-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 100%, rgba(127, 168, 207, 0.15), transparent 45%);
}
.final-cta h2 { max-width: 15ch; margin: 0 auto; font-size: clamp(2.5rem, 6vw, 5.7rem); }
.final-cta p { max-width: 58ch; margin: 1.5rem auto 0; color: var(--muted); }
.final-cta .hero-actions { justify-content: center; margin-top: 2.2rem; }

/* ── selected work ───────────────────────────────────────────────────── */
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { border-top: 1px solid var(--line); }
.work-list li:last-child { border-bottom: 1px solid var(--line); }

.work-list a {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) 4.5rem 2rem;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.3rem, 2.4vw, 2rem) 0;
  transition: padding 0.45s var(--ease), color 0.35s ease;
}
.work-list a:hover { padding-left: 1.2rem; color: var(--temper); }

.work-name {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  letter-spacing: -0.04em;
}
.work-type, .work-place, .work-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-arrow {
  justify-self: end;
  opacity: 0;
  transform: translateX(-0.6rem);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.work-list a:hover .work-arrow { opacity: 1; transform: translateX(0); }

/* ── contact ─────────────────────────────────────────────────────────── */
.section-contact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  border-bottom: 0;
}

.contact-details { display: grid; gap: clamp(2.2rem, 4vw, 3.4rem); align-content: start; }
.detail-block .eyebrow { margin-bottom: 0.9rem; }

.detail-big {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}
.detail-big a { transition: color 0.3s ease; }
.detail-big a:hover { color: var(--temper); }
.contact-heading {
  margin: 0 0 1rem;
  max-width: 11ch;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
}
.contact-copy {
  max-width: 42ch;
  margin: 0;
  color: var(--copy);
}

.inline-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.inline-link:hover { color: var(--haze); border-color: var(--haze); }

/* ── form ────────────────────────────────────────────────────────────── */
.contact-form-wrap { position: relative; }
.contact-form { display: grid; gap: 2.2rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.5rem 0 0.8rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  transition: border-color 0.35s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 0.55rem top 2.1rem, right 0.2rem top 2.1rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.field select option { background: var(--ink-2); color: var(--haze); }

.field label {
  position: absolute;
  left: 0;
  top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.35s var(--ease), font-size 0.35s var(--ease), color 0.3s ease;
  transform-origin: 0 0;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field-select label {
  transform: translateY(-1.35rem);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label { color: var(--temper); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--temper);
}
.field.has-error input,
.field.has-error textarea { border-bottom-color: #d9807a; }

.field-error {
  margin: 0.55rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #d9807a;
  min-height: 0;
}

.field-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.field-consent input {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.field-consent input:checked {
  background: var(--temper);
  border-color: var(--temper);
}
.field-consent label {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.field-consent .field-error { grid-column: 2; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}
.submit {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.8rem;
  background: var(--haze);
  color: var(--ink);
  border: 1px solid var(--haze);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}
.submit:hover { background: var(--temper); border-color: var(--temper); }
.submit[disabled] { opacity: 0.5; cursor: progress; }

.form-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.form-status.is-ok { color: var(--temper); }
.form-status.is-bad { color: #d9807a; }

/* ── footer ──────────────────────────────────────────────────────────── */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.footer-intro { display: grid; align-content: start; gap: 1.8rem; }
.footer-tagline {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.footer-column { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-column p { margin: 0; color: var(--muted); }
.footer-column .eyebrow { margin: 0 0 0.6rem; color: var(--haze); }
.footer-column .footer-gap { margin-top: 2rem; }
.footer-column a {
  width: max-content;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-column a:hover { color: var(--haze); border-bottom-color: var(--line); }

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-legal a,
.footer-legal button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.3s ease;
}
.footer-legal a:hover,
.footer-legal button:hover { color: var(--haze); }

/* ── cookie bar ──────────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0 var(--gutter) clamp(1rem, 2vw, 1.6rem);
  transform: translateY(130%);
  transition: transform 0.7s var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.cookie-inner .eyebrow { margin-bottom: 0.6rem; }
.cookie-text {
  margin: 0;
  max-width: 68ch;
  font-size: 0.92rem;
  color: var(--muted);
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie-actions .button { padding: 0.8rem 1.3rem; }

/* ── reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── light-mode refinements ─────────────────────────────────────────── */
html[data-theme="light"] .site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04);
}
html[data-theme="light"] body:not(.inner-page) .site-header:not(.is-stuck) {
  color: #e9eaf0;
}
html[data-theme="light"] body:not(.inner-page) .site-header:not(.is-stuck) .brand-sub,
html[data-theme="light"] body:not(.inner-page) .site-header:not(.is-stuck) .lang-switch,
html[data-theme="light"] body:not(.inner-page) .site-header:not(.is-stuck) .lang-switch button {
  color: rgba(233, 234, 240, 0.72);
}
html[data-theme="light"] .hero {
  --ink: #0e0f1e;
  --haze: #e9eaf0;
  --muted: #aeb3c3;
  --temper: #a3d2e2;
  --line: rgba(233, 234, 240, 0.16);
  color: #e9eaf0;
}
html[data-theme="light"] .hero-lead { color: rgba(233, 234, 240, 0.8); }
html[data-theme="light"] .path-card .path-no,
html[data-theme="light"] .path-card .path-link { color: #a3d2e2; }
html[data-theme="light"] .founder-mark {
  border-color: rgba(22, 24, 51, 0.18);
  background:
    radial-gradient(circle at 65% 25%, rgba(163, 210, 226, 0.75), transparent 38%),
    linear-gradient(145deg, #f3f7f9, #ffffff);
}
html[data-theme="light"] .page-hero::before {
  border-color: rgba(22, 24, 51, 0.12);
  box-shadow: 0 0 0 5rem rgba(163, 210, 226, 0.12), 0 0 0 10rem rgba(163, 210, 226, 0.07);
}
html[data-theme="light"] .field select option { background: #ffffff; color: #141414; }
html[data-theme="light"] .cookie-inner { box-shadow: none; }

/* ── breakpoints ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .site-header { grid-template-columns: auto 1fr; }
  .header-end { justify-self: end; }

  .section { grid-template-columns: 1fr; }
  .section-contact { grid-template-columns: 1fr; }
  .contact-form-wrap { margin-top: 1rem; }

  .copy-grid { grid-template-columns: 1fr; max-width: 46rem; }
  .industry-list { max-width: 46rem; }
  .work-list a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.5rem; }
  .demo-content { grid-template-columns: 1fr; row-gap: 0.7rem; }
  .impact-strip { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .path-grid,
  .process-grid,
  .trust-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work-name { grid-column: 1 / -1; }
  .work-arrow { grid-row: 1; grid-column: 2; opacity: 1; transform: none; }

  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { gap: 1rem; }
  .header-end { gap: 0.8rem; }
  .brand-sub { display: none; }
  .hero { padding-top: 8rem; }
  .hero-foot { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 auto; justify-content: center; }
  .hero-meta { justify-content: flex-start; }
  .scroll-cue { display: none; }

  .stage { grid-template-columns: 1fr; gap: 0.8rem; }
  .stage-no { padding-top: 0; }
  .industry-list,
  .solution-grid { grid-template-columns: 1fr; }
  .industry-list li,
  .industry-list li:nth-child(odd) { padding-left: 0; padding-right: 0; }
  .demo-item a { grid-template-columns: 2rem minmax(0, 1fr); align-items: start; }
  .demo-action { grid-column: 2; margin-top: 0.3rem; }
  .impact-strip { grid-template-columns: 1fr 1fr; }
  .impact-item { min-height: 9rem; padding: 1.5rem 1rem; }
  .impact-item strong { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .path-grid,
  .process-grid,
  .trust-grid,
  .insight-grid,
  .case-flow,
  .solution-showcase { grid-template-columns: 1fr; grid-template-rows: none; }
  .path-card:nth-child(n),
  .solution-demo:nth-child(n),
  .process-card:nth-child(n),
  .trust-card:nth-child(n),
  .insight-card:nth-child(n),
  .case-step:nth-child(n) { grid-column: 1; grid-row: auto; min-height: 0; margin: 0; }
  .path-card:nth-child(odd),
  .process-card:nth-child(odd),
  .trust-card:nth-child(odd),
  .insight-card:nth-child(odd) { margin-right: 1.25rem; }
  .path-card:nth-child(even),
  .process-card:nth-child(even),
  .trust-card:nth-child(even),
  .insight-card:nth-child(even) { margin-left: 1.25rem; }
  .path-card { min-height: 18rem; }
  .founder-preview { grid-template-columns: 1fr; }
  .founder-mark { grid-column: 1; min-height: 15rem; aspect-ratio: 16 / 10; margin: 0; }
  .founder-preview > div:last-child { grid-column: 1; padding: 2rem 1.5rem; border: 1px solid var(--line); border-top: 0; }
  .page-hero { min-height: 65svh; }
  .page-title { font-size: clamp(3rem, 15vw, 5rem); }
  .solution-media-portrait,
  .solution-media-landscape { width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 0; }

  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions .button { flex: 1 1 auto; justify-content: center; }

  .site-footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .hero-timelapse { animation: none; transform: none; }
  .timelapse-frame { display: none; animation: none; }
  .timelapse-frame.frame-day { display: block; opacity: 1; }
}

/* ── 404 ─────────────────────────────────────────────────────────────── */
.notfound {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 12rem) var(--gutter) 6rem;
  min-height: 70svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.5rem;
}
.notfound .hero-title { margin: 0; }
.notfound-lead {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.1rem;
}
.notfound .button { margin-top: 1rem; }
