:root {
  --ink: #15202e;
  --ink-2: #2a3b4d;
  --navy: #15202e;
  --navy-2: #1b2c3e;
  --blue: #0f3a52;
  --blue-2: #175271;
  --gold: #c79a1e;
  --gold-bright: #dcae2c;
  --paper: #f4f7fb;
  --card: #ffffff;
  --surface: #ffffff;
  --line: rgba(19, 79, 99, 0.14);
  --line-strong: rgba(19, 79, 99, 0.24);
  --line-soft: rgba(19, 79, 99, 0.08);
  --muted: #5d6e7e;
  --accent: #0e93a5;        /* light-blue accent (from test) for subtle labels */
  --accent-soft: #6bb8c4;
  --display: 'Archivo', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --radius: 8px;
  --gold-deep: #7a5a0c; /* AA-safe gold for small text on light backgrounds */
  --container: 1160px;  /* single content width — source of truth (from test) */
  --dark-1: #0c2733;    /* dark-teal surface — header, detail banner (from test ink) */
  --dark-2: #081d26;    /* deepest dark-teal — footer, banner gradient base */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Wider content column on 2K/4K displays so the layout doesn't feel squeezed */
@media (min-width: 2000px) {
  :root { --container: 1360px; }
}
body {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: #f4f7fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
body.home {
  background: #f4f7fb;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container, .wrap { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.center { text-align: center; }

/* Reveal animation */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .06s; }
.rv-d2 { transition-delay: .12s; }
.rv-d3 { transition-delay: .18s; }
.rv-d4 { transition-delay: .24s; }

/* Eyebrow — small caps with a gold dash before the label (test-site pattern) */
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); flex: 0 0 auto; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 37px);
  letter-spacing: -.5px;
  line-height: 1.12;
  color: var(--ink);
}

/* Buttons */
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px -14px rgba(122, 90, 12, 0.65); }
.btn-primary:hover { background: var(--gold-bright); box-shadow: 0 16px 32px -14px rgba(122, 90, 12, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.78); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px -16px rgba(15, 58, 82, 0.55);
}
.btn-gold { background: var(--gold); color: var(--ink); border: none; }
.btn-gold:hover { background: var(--gold-bright); }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 253, 0.88);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { background: rgba(246, 249, 253, 0.95); }
.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
  position: relative;
  /* Header rail rides the same content column as every section (--container),
     so the logo/nav sit exactly at the section edges and everything aligns. */
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* -8px cancels the transparent margin baked into the logo PNG, so the visible
   lion edge sits exactly on the container edge like all section content. */
.brand-logo { height: 4.5rem; width: 4.5rem; object-fit: contain; margin-left: -6px; }

.site-nav {
  display: flex;
  gap: 44px;
  align-items: center;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s, color .2s;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover { opacity: 1; color: var(--ink); }
.site-nav a.nav-cta {
  color: var(--gold-deep);
  font-weight: 700;
  padding: 8px 14px;
  border: 1.5px solid rgba(199, 154, 30, 0.55);
  border-radius: 8px;
}
.site-nav a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s;
}
.site-nav a:hover::after { width: 100%; }
.site-nav a.nav-cta::after { display: none; }

.nav-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav .language-button {
  color: var(--muted);
  border-color: var(--line-strong);
  padding: 5px 9px;
  font-size: 13px;
  line-height: 1;
}
.site-nav .language-button:hover {
  color: var(--ink);
}
.site-nav .language-button.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(199, 154, 30, 0.12);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hamburger-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.hamburger-icon::before, .hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h, 89px));
  padding: clamp(58px, 6vh, 92px) 0 clamp(64px, 6.8vh, 104px);
  display: flex;
  align-items: center;
}
body.home.hero-full .hero {
  min-height: calc(100svh - var(--header-h, 89px));
  padding: 56px 0 64px;
}
.hero-mesh {
  position: absolute;
  inset: -1px 0 -2px;
  z-index: 0;
  background-color: #2b3a47;
  background-image:
    radial-gradient(46% 48% at 50% 45%, rgba(246, 249, 253, 0.18), rgba(246, 249, 253, 0.06) 48%, rgba(246, 249, 253, 0) 76%),
    linear-gradient(rgba(20, 28, 36, 0.30), rgba(20, 28, 36, 0.30)),
    url('hero-cuboid.jpg');
  background-size: cover, cover, cover;
  background-position:
    center calc(50% + var(--hero-parallax, 0px)),
    center calc(50% + var(--hero-parallax, 0px)),
    center calc(50% + var(--hero-parallax, 0px));
  background-repeat: no-repeat;
  transform: scale(1.12);
  filter: brightness(0.87);
  will-change: background-position;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero .rv {
  --hero-reveal-y: 14px;
  --hero-depth-y: 0px;
  transform: translate3d(0, calc(var(--hero-reveal-y) + var(--hero-depth-y)), 0);
}
.hero .rv.in {
  --hero-reveal-y: 0px;
  transform: translate3d(0, var(--hero-depth-y), 0);
}
.hero h1 {
  --hero-depth-y: var(--hero-text-near, 0px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.7vw, 72px);
  line-height: 1.02;
  letter-spacing: -1.4px;
  max-width: 16ch;
  margin: 0 auto;
  color: #f6f9fd;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}
.hero p {
  --hero-depth-y: var(--hero-text-far, 0px);
  margin: 24px auto 34px;
  font-size: 19px;
  color: rgba(246, 249, 253, 0.86);
  max-width: 50ch;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.hero .eyebrow {
  --hero-depth-y: var(--hero-text-far, 0px);
  color: rgba(246, 249, 253, 0.84);
}
.hero .eyebrow::before { display: none; }
body.theme-dark .hero .eyebrow { color: rgba(246, 249, 253, 0.84); }
.hero .btn-row {
  --hero-depth-y: var(--hero-text-mid, 0px);
}
.hero .btn-ghost {
  background: rgba(246, 249, 253, 0.88);
  border-color: rgba(246, 249, 253, 0.28);
  color: var(--ink);
}
.hero .btn-ghost:hover { background: #fff; }
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

section { padding: clamp(72px, 8vh, 100px) 0; position: relative; scroll-margin-top: 88px; }
main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 32, 46, 0.10), transparent);
}
/* Explicit alternation keeps section colors stable as sections are added. */
body.home main > section + section::before { display: none; }
body.home #about,
body.home #services,
body.home #stack {
  background: transparent;
  border-top: none;
  border-bottom: none;
}
body.home #model,
body.home #why {
  background: var(--card);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Kdo jsme */
body.home #about {
  padding-top: clamp(52px, 5.5vh, 74px);
  padding-bottom: clamp(54px, 5.8vh, 78px);
}
.statement {
  max-width: 24ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -.6px;
  color: var(--ink);
}
.statement em { font-style: normal; color: var(--gold); }
.kdo-sup {
  max-width: 54ch;
  margin: 26px 0 0;
  font-size: 17px;
  color: var(--muted);
}
/* About — statement left, facts right (test-site layout) */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
/* Facts grid — bordered 2×2, concrete facts (replaces the old stats trio) */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.fact {
  background: var(--card);
  padding: 24px 22px;
}
.fact .k {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 10px;
}
.fact .v {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--ink);
}
@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
}

/* Operating model */
.section-head {
  max-width: 760px;
  margin: 0 0 52px;
}
.section-head h2 {
  margin-bottom: 16px;
}
.model-copy {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}
.model-chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 56px;
  position: relative;
  text-align: left;
}
.model-node {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 20px 18px 18px;
}
.model-node .idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}
.model-node h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.model-node p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.model-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 2px;
  background: rgba(19, 79, 99, 0.24);
}
.model-closing {
  margin: 34px 0 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--blue);
}
.model-closing::before {
  content: "\2192 ";
  color: var(--gold);
}
@media (max-width: 1020px) {
  .model-chain { grid-template-columns: repeat(2, 1fr); }
  .model-node:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .model-chain { grid-template-columns: 1fr; }
}

/* Reasons */
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  margin: 50px auto 0;
  text-align: left;
}
.reason {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 26px 6px 30px;
}
.reason .tg-tile {
  grid-row: 1 / 3;
  align-self: start;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(15, 58, 82, 0.035);
  border-color: rgba(21, 32, 46, 0.09);
}
.reason .tg-tile svg {
  width: 22px;
  height: 22px;
  stroke: rgba(15, 58, 82, 0.72);
  stroke-width: 1.8;
}
.reason .tg-tile svg .g { stroke: rgba(199, 154, 30, 0.72); }
.reason .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 1.6px;
}
.reason p {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .reasons { grid-template-columns: 1fr; }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px auto 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-item {
  min-width: 0;
  padding: 28px 24px 30px;
}
.why-item + .why-item {
  border-left: 1px solid var(--line);
}
.why-item .k {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 14px;
}
.why-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .why-item:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item + .why-item { border-left: none; border-top: 1px solid var(--line); }
}

/* Services — card rows */
.srv-list {
  margin: 48px auto 0;
  text-align: left;
  border-top: 1.5px solid var(--line-strong);
}
.srvrow {
  display: grid;
  grid-template-columns: 46px minmax(0, 0.95fr) minmax(0, 1.35fr) 46px;
  gap: 26px 30px;
  align-items: start;
  padding: 34px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease;
}
.srvrow:hover {
  background: var(--surface);
}
.srv-icn {
  width: 46px;
  height: 46px;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: border-color 0.18s ease;
}
.srv-icn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.srv-icn svg .g { stroke: var(--gold); }
.srvrow:hover .srv-icn { border-color: var(--line-strong); }
.srvrow h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  align-self: center;
  transition: color 0.15s ease;
}
.srvrow:hover h3 { color: var(--blue); }
.srvrow .d {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.55;
}
.srv-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.srv-tools span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--blue);
  background: rgba(15, 58, 82, 0.06);
  border: 1px solid rgba(15, 58, 82, 0.12);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.srv-go {
  justify-self: end;
  align-self: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-2);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.srv-go svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.srvrow:hover .srv-go {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateX(3px);
}

/* Tech stack — definition rows */
.stack-list {
  margin: 52px auto 0;
  text-align: left;
  border-top: 1px solid var(--line);
}
.stack-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 24px 40px;
  align-items: baseline;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
}
.stack-row-tech {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}
.stack-row-tech .sep {
  color: var(--gold);
  margin: 0 4px;
}
@media (max-width: 860px) {
  .stack-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 2px;
  }
}
.tg-tile {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  background: rgba(15, 58, 82, 0.06);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tg-tile svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-tile svg .g { stroke: var(--gold); }
.stack-row h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}

/* Closing dark band */
.closing {
  background: var(--navy);
  color: #fff;
}
.closing .eyebrow { color: var(--gold-bright); }
.closing h2 {
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.closing h2::after {
  content: "";
  width: 64%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.closing .contact { padding: 100px 0 84px; }
.lead {
  color: #c7d6e3;
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: 17px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 680px;
  margin: 42px auto 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.field input, .field textarea {
  font-family: var(--body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(21, 32, 46, 0.42);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(199, 154, 30, 0.6);
  box-shadow: 0 0 0 3px rgba(199, 154, 30, 0.12);
}
.field textarea { min-height: 150px; resize: vertical; overflow: hidden; }
.submit-wrap { margin-top: 8px; }

/* Consultation — light band in light theme; dark via body.theme-dark */
.consult {
  background: #eef3f8;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.consult .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  text-align: left;
}
.consult .eyebrow { color: var(--accent); }
.consult h2 { color: var(--ink); }
.consult .lead {
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 0;
  font-size: 17px;
}
.consult-points {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
}
.consult-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.62;
}
.consult-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 12px;
  height: 3px;
  background: var(--gold-deep);
  border-radius: 2px;
}
.consult-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 24px 50px -32px rgba(15, 58, 82, 0.35);
}
.consult-card-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.consult-email {
  display: inline-block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(22px, 2.35vw, 32px);
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.consult-email:hover { color: var(--accent); }
.consult-card-copy {
  max-width: 48ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.consult-card .btn-row {
  justify-content: flex-start;
  margin-top: 28px;
}
/* Dark theme: dark band, form melts into it, fields go translucent */
body.theme-dark .consult {
  background: linear-gradient(160deg, var(--dark-2), var(--dark-1) 70%);
  color: #fff;
}
body.theme-dark .consult .eyebrow { color: var(--accent-soft); }
body.theme-dark .consult h2 { color: #fff; }
body.theme-dark .consult .lead { color: #c7d6e3; }
body.theme-dark .consult-points li { color: #eef4f6; }
body.theme-dark .consult-points li::before { background: var(--gold-bright); }
body.theme-dark .consult-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
body.theme-dark .consult-card-label { color: var(--gold-bright); }
body.theme-dark .consult-email { color: #fff; }
body.theme-dark .consult-email:hover { color: var(--gold-bright); }
body.theme-dark .consult-card-copy { color: #c7d6e3; }
@media (max-width: 860px) {
  .consult .container { grid-template-columns: 1fr; gap: 34px; }
  .consult-card { padding: 24px 20px; }
}

.foot-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  max-width: 1140px;
  margin: 0 auto;
}
.foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 26px 0 34px;
  font-size: 15px;
  color: #9fb1c2;
}
.foot strong { color: #dbe6ef; font-weight: 600; }
.foot a {
  color: #9fb1c2;
  text-decoration: none;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.foot a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width .25s;
}
.foot a:hover::after { width: 100%; }
.foot a:hover { color: #dbe6ef; }

/* Consultation form (home page) */
.form-light .field input,
.form-light .field textarea {
  border-color: rgba(21, 32, 46, 0.18);
}
.lead-light {
  color: var(--muted);
  max-width: 46ch;
  margin: 22px auto 0;
  font-size: 17px;
}
.form-light .field label { color: var(--ink); }
.form-light .field input,
.form-light .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.form-light .field input::placeholder,
.form-light .field textarea::placeholder {
  color: rgba(21, 32, 46, 0.42);
}
.form-light .field input:focus,
.form-light .field textarea:focus {
  background: #fff;
  border-color: rgba(199, 154, 30, 0.45);
  box-shadow: 0 0 0 3px rgba(199, 154, 30, 0.12);
}
.input-wrap { position: relative; }
.input-wrap input { padding-left: 40px; }
.field-icn {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.closing .field-icn { stroke: rgba(255, 255, 255, 0.55); }

.language-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9fb1c2;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--body);
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.language-button:hover { color: #dbe6ef; }
.language-button.is-active {
  color: #fff;
  border-color: var(--gold-bright);
  background: rgba(220, 174, 44, 0.15);
}

/* Footer — four columns. Light in light theme; dark via body.theme-dark
   (token redefinition handles text colors, backgrounds set per theme). */
.site-footer {
  background: #e7edf4;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
body.theme-dark .site-footer {
  background: var(--dark-2);
  border-top-color: rgba(255, 255, 255, 0.06);
}
.site-footer .container { padding-top: 30px; padding-bottom: 20px; }
.footer-nav {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.footer-service-links,
.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-service-links {
  gap: 8px 22px;
}
.footer-contact-links {
  gap: 8px 18px;
}
.footer-service-links a,
.footer-contact-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .2s;
}
.footer-contact-links a {
  color: var(--ink-2);
  font-weight: 600;
}
.footer-service-links a:hover,
.footer-contact-links a:hover { color: var(--ink); }
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  font-size: 13.5px;
  text-align: center;
}
.footer-id { display: block; }
@media (max-width: 560px) {
  .footer-service-links,
  .footer-contact-links {
    display: grid;
    gap: 8px;
  }
}

/* ============================================================
   Dark theme — full page. Token redefinition does the heavy
   lifting; explicit overrides below handle hardcoded values.
   ============================================================ */
body.theme-dark {
  --ink: #eef4f6;
  --ink-2: #c7d6e3;
  --muted: #9fb1c2;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.22);
  --card: #0e2e3d;
  --surface: rgba(255, 255, 255, 0.045);
  --paper: rgba(255, 255, 255, 0.04);
  --blue: #7cc0cd;
  --blue-2: #9fd3da;
  --gold-deep: #dcae2c;
  background: linear-gradient(180deg, var(--dark-2) 0%, #0a2836 100%);
  background-attachment: fixed;
  color: var(--ink-2);
}
body.home.theme-dark {
  background: linear-gradient(180deg, var(--dark-2) 0%, #0a2836 100%);
  background-attachment: fixed;
}
body.theme-dark .site-header {
  background: rgba(8, 29, 38, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.theme-dark .site-header.is-scrolled { background: rgba(8, 29, 38, 0.96); }
body.theme-dark .site-nav { color: #cdd9e3; }
body.theme-dark .site-nav a:hover { color: #fff; }
body.theme-dark .site-nav a.nav-cta {
  color: var(--gold-bright);
  border-color: rgba(220, 174, 44, 0.55);
}
body.theme-dark .site-nav a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #15202e;
}
body.theme-dark .nav-toggle { border-color: rgba(255, 255, 255, 0.2); }
body.theme-dark .hamburger-icon,
body.theme-dark .hamburger-icon::before,
body.theme-dark .hamburger-icon::after { background: #eef4f6; }
/* Section alternation on dark — same rhythm as light, subtle lift */
body.theme-dark.home #model,
body.theme-dark.home #why {
  background: rgba(255, 255, 255, 0.03);
}
body.theme-dark main > section + section::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
/* Buttons on dark keep gold; ghost adapts */
body.theme-dark .btn-primary { color: #15202e; }
body.theme-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
}
body.theme-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
/* Accent copy */
body.theme-dark .statement em { color: var(--gold-bright); }
body.theme-dark .eyebrow { color: var(--accent-soft); }
/* Service rows */
body.theme-dark .srvrow:hover { background: rgba(255, 255, 255, 0.035); }
body.theme-dark .srv-icn {
  background: rgba(255, 255, 255, 0.045);
  color: var(--accent-soft);
}
body.theme-dark .srvrow:hover h3 { color: var(--accent-soft); }
body.theme-dark .srv-tools span,
body.theme-dark .svc-includes li {
  color: #a9c6d2;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
body.theme-dark .srvrow:hover .srv-go { color: #15202e; }
/* Tech stack + tiles */
body.theme-dark .tg-tile { background: rgba(255, 255, 255, 0.06); }
body.theme-dark .tg-tile svg { stroke: var(--accent-soft); }
/* Service detail pages */
body.theme-dark .svc-benefit {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
}
body.theme-dark .svc-closing { background: rgba(255, 255, 255, 0.03); }
body.theme-dark .back-link { color: var(--accent-soft); }
body.theme-dark .back-link:hover { color: var(--gold-bright); }
/* Contact page cards */
body.theme-dark .contact-general a { color: var(--accent-soft); }
body.theme-dark .contact-general a:hover { color: var(--gold-bright); }
@media (max-width: 860px) {
  body.theme-dark .site-nav {
    background: var(--dark-1);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

/* Contact page — editorial rows (same language as services/stack) */
.contact-list {
  border-top: 1.5px solid var(--line-strong);
  margin-top: 8px;
}
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
}
.contact-row .role {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  color: var(--accent);
}
.contact-row h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
}
.contact-row .note { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.contact-links {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}
.contact-links a {
  font-size: 16px;
  color: var(--blue-2);
  text-decoration: none;
  transition: color .2s;
}
.contact-links a:hover { color: var(--gold-deep); }
.contact-general {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.contact-general a {
  color: var(--blue-2);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.contact-general a:hover { color: var(--gold-deep); }
/* Company identification block */
.company-id {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.company-id .svc-label {
  margin-bottom: 18px;
  color: var(--muted);
  opacity: 0.9;
}
.id-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  column-gap: 72px;
  row-gap: 18px;
  max-width: none;
}
.id-item:nth-child(2),
.id-item:nth-child(3) { text-align: left; }
.id-item .k {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 9.5px;
  color: var(--muted);
  opacity: 0.8;
  margin-bottom: 6px;
}
.id-item .v {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.id-reg {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: none;
}
@media (max-width: 860px) {
  .contact-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
  .contact-links { justify-items: start; text-align: left; }
  .id-grid { grid-template-columns: 1fr; gap: 18px; }
  .id-item:nth-child(2),
  .id-item:nth-child(3) { text-align: left; }
}
.contact-general a { color: var(--blue-2); text-decoration: none; font-weight: 500; }
.contact-general a:hover { color: var(--gold); }
@media (max-width: 860px) {
}

/* Contact + service-detail intro — a real banner (no repeated photo hero) */
.contact-hero, .detail-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 46px;
  background: linear-gradient(160deg, #eef3f8, #e2ebf3);
  border-bottom: 1px solid var(--line);
}
.contact-hero::before, .detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 58, 82, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 58, 82, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 74% 2%, #000 16%, transparent 66%);
  mask-image: radial-gradient(ellipse 85% 90% at 74% 2%, #000 16%, transparent 66%);
  pointer-events: none;
}
.contact-hero .container, .detail-hero .container { position: relative; z-index: 1; }
.contact-hero h1, .detail-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--ink);
  max-width: 22ch;
}
.contact-hero p, .detail-hero p {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 54ch;
}

/* Contact + service-detail banner — dark in dark theme */
body.theme-dark .detail-hero,
body.theme-dark .contact-hero {
  background: linear-gradient(160deg, var(--dark-2), var(--dark-1) 70%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  padding: 72px 0 44px;
}
body.theme-dark .detail-hero::before,
body.theme-dark .contact-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
body.theme-dark .detail-hero h1,
body.theme-dark .contact-hero h1 { color: #fff; }
body.theme-dark .detail-hero p,
body.theme-dark .contact-hero p { color: #c7d6e3; }
body.theme-dark .detail-hero .eyebrow,
body.theme-dark .contact-hero .eyebrow { color: var(--accent-soft); }

/* Service detail pages */
.svc-body { max-width: 820px; margin: 0; text-align: left; }
.scope-note {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  font-style: italic;
}
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-2);
  text-decoration: none;
}
.back-link::before { content: none; }
.back-link:hover { color: var(--gold-deep); }
.svc-lead,
.svc-intro {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
}
.svc-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.svc-includes li {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--blue);
  background: rgba(15, 58, 82, 0.06);
  border: 1px solid rgba(15, 58, 82, 0.12);
  padding: 5px 12px;
  border-radius: 4px;
}
.svc-block {
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.svc-block:first-of-type { margin-top: 40px; }
.svc-block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -.4px;
  line-height: 1.12;
  color: var(--ink);
}
.svc-block > p { margin-top: 14px; font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.svc-label {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12.5px;
  color: var(--accent);
  margin: 30px 0 14px;
}
.svc-list { list-style: none; display: grid; gap: 11px; }
.svc-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 11px;
  height: 2px;
  background: var(--gold);
}
.svc-benefit {
  margin-top: 22px;
  padding: 18px 22px;
  background: rgba(15, 58, 82, 0.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.svc-closing { text-align: center; background: var(--card); border-top: 1px solid var(--line-soft); }
.svc-closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 12px;
  letter-spacing: -.5px;
}
.svc-closing .lead {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto;
  font-size: 17px;
}
.svc-closing .btn-row {
  margin-top: 26px;
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-shell { justify-content: space-between; gap: 16px; }
  .brand-logo { height: 4rem; width: 4rem; }
  .site-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #f2f6fb;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 22px 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav a.nav-cta { margin-top: 6px; text-align: center; }
  .site-nav a::after { display: none; }
  .nav-language {
    justify-content: center;
    padding-top: 14px;
  }
  .site-nav .language-button {
    padding: 7px 12px;
  }
  .reasons, .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; max-width: 520px; }
  .stat { padding: 0 20px; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); padding-top: 24px; }
  .srvrow {
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
    padding: 24px 6px;
  }
  .srvrow > div { grid-column: 1 / -1; }
  .srv-go { display: none; }
  section { padding: 70px 0; }
  .hero { padding: 70px 0 80px; }
}

/* Mono label voice — eyebrows and small caps labels (test-site pattern) */
.eyebrow,
.fact .k,
.why-item .k,
.model-node .idx,
.svc-label,
.contact-row .role {
  font-family: var(--mono);
  font-weight: 500;
}

/* Focus visibility (keyboard) */
a:focus-visible,
button:focus-visible,
.language-button:focus-visible {
  outline: 2px solid rgba(199, 154, 30, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero .rv,
  .hero .rv.in {
    transform: none;
  }
  .btn,
  .site-nav a, .site-nav a::after, .foot a, .foot a::after,
  .srvrow, .srvrow .go::after, .language-button {
    transition: none;
  }
  .btn:hover { transform: none; }
}
