/* ==========================================================================
   Harez Labs — one-page site
   Colors come only from the logo (navy + cream) plus one accent (blue).
   ========================================================================== */

:root {
  --navy: #092F4E;
  --surface: #0E3A5F;
  --cream: #FDF6EC;
  --cream-60: rgba(253, 246, 236, 0.6);
  --cream-80: rgba(253, 246, 236, 0.82);
  --cream-15: rgba(253, 246, 236, 0.15);
  --accent: #2FA4F5;          /* site accent (user decision 2026-12-01); navy on accent = 5.07:1 */
  --hero-dot: var(--accent);  /* hero ribbon dots */
  --error: #FF9E8F;           /* form errors only (proposal); ~7:1 on navy and surface */

  --font-head: "Philosopher", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Lexend", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --radius-lg: 10px;           /* cards and panels */
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.08; }

a { color: inherit; }
/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-label);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-60);
}
.label--accent { color: var(--accent); }

.h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--cream-60);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: var(--cream); }
.btn--outline { border-color: var(--cream-60); color: var(--cream); }
.btn--outline:hover { border-color: var(--cream); background: var(--cream-15); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 47, 78, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex: none; color: var(--cream); padding: 4px 0; }
.brand__logo { width: 136px; height: auto; }

.nav__menu { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 40px); }

.nav__links { display: flex; gap: clamp(18px, 2.2vw, 32px); white-space: nowrap; }
.nav__links a {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-60);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--cream); }

.nav__actions { display: flex; align-items: center; gap: 20px; }

/* Language toggle: one button, labelled with the other language (same URL, text swaps). */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 4px;
  background: none;
  border: 0;
  color: var(--cream-60);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease;
}
.lang-toggle:hover { color: var(--cream); }
.lang-toggle__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--cream-15);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 8px 14px;
  min-height: 40px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) { /* 5 nav links + EN|ES + button need ~1100px */
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--navy);
    border-bottom: 1px solid var(--cream-15);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--cream-15); font-size: 13px; }
  .nav__actions { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.02;
  max-width: 12ch;
  letter-spacing: -0.02em;
}

.hero__intro {
  margin-top: 28px;
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  color: var(--cream-80);
  max-width: 54ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__visual { position: relative; }
.hero__canvas { width: 100%; aspect-ratio: 3 / 2; }
@media (min-width: 1100px) {
  /* Let the visual run slightly past its column toward the page edge. */
  .hero__canvas { width: calc(100% + 64px); max-width: none; margin-left: -24px; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Sections ---------- */
/* One rule owns section spacing; modifiers only change colors. */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h2 { max-width: 22ch; }
.section-head__lead { margin-top: 20px; }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
}

/* ---------- Proof strip: 4 large, scannable facts ---------- */
.proof {
  border-block: 1px solid var(--cream-15);
  padding-block: clamp(32px, 4.5vw, 56px);
  background: linear-gradient(180deg, rgba(14, 58, 95, 0) 0%, rgba(14, 58, 95, 0.55) 100%);
}
.proof__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px clamp(16px, 2.2vw, 32px);
  border-left: 1px solid var(--cream-15);
}
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__figure {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.proof__text { font-size: 15px; line-height: 1.5; color: var(--cream-80); max-width: 30ch; }

/* ---------- What we do: pillars (one card per what.<id>; any count) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-lg);
  background: var(--navy);
  overflow: hidden;
}
.pillar__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pillar__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.pillar__tag {
  padding: 4px 10px;
  border: 1px solid var(--cream-15);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-60);
}
.pillar__title { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
.pillar__text { font-size: 15.5px; color: var(--cream-80); }
.pillar__proof { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cream-15); }
.pillar__proof .label { font-size: 11px; letter-spacing: 0.22em; }
.pillar__proof p + p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--cream-60); }
/* Research & next-gen: the forward-looking pillar gets the accent treatment and a dot field */
.pillar--research {
  border-color: rgba(47, 164, 245, 0.5);
  background:
    radial-gradient(circle, rgba(47, 164, 245, 0.35) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(160deg, rgba(47, 164, 245, 0.18) 0%, rgba(9, 47, 78, 0) 60%),
    var(--navy);
  background-blend-mode: normal;
}
.pillar--research::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 47, 78, 0) 0%, rgba(9, 47, 78, 0.92) 45%);
  pointer-events: none;
}
.pillar--research > * { position: relative; z-index: 1; }
.pillar--research .pillar__tag { border-color: var(--accent); color: var(--accent); }

/* ---------- Games ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.game {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease;
}
.game:hover { border-color: rgba(253, 246, 236, 0.32); }
.game:target { border-color: var(--accent); }

.game__media {
  position: relative;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: var(--navy);
  border-bottom: 1px solid var(--cream-15);
}
.game__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__status { z-index: 1; }
/* Square artwork shown whole on a soft spotlight */
.game__media--contain { background: radial-gradient(ellipse at 50% 55%, #134A77 0%, var(--navy) 70%); }
.game__media--contain .game__cover { object-fit: contain; padding: 14px; }

.game__status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(9, 47, 78, 0.88);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--accent);
}
.game__status--live { background: var(--accent); color: var(--navy); }

.game__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 36px);
}

.game__head { display: flex; align-items: center; gap: 16px; }
.game__icon {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--cream-15);
}
.game__heading { min-width: 0; }
.game__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.game__genre { margin-top: 6px; font-size: 11px; letter-spacing: 0.22em; }

.game__hook { font-size: 17px; line-height: 1.55; color: var(--cream); }

.game__features { display: grid; gap: 8px; }
.game__features li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--cream-80);
}
.game__features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.game__hood {
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(47, 164, 245, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.game__hood-label { font-size: 11px; letter-spacing: 0.22em; }
.game__hood p + p { margin-top: 6px; font-size: 15px; color: var(--cream-80); }

.game__ads { font-size: 13.5px; color: var(--cream-60); }

.game__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--cream-15);
}
.game__store { display: inline-block; line-height: 0; }
/* Official Google Play badge: unmodified, fixed height */
.game__badge { display: block; height: 52px; width: auto; }
.game__privacy {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-60);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-block: 8px;
}
.game__privacy:hover { color: var(--accent); }

/* ---------- Lab: problem -> approach -> 4 technology tiles -> contribution -> status ---------- */
.lab__title { max-width: 20ch; }
.lab__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 8px 16px;
  border: 1px solid var(--cream-15);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.lab__pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(47, 164, 245, 0.55);
  animation: lab-pulse 2.4s ease-out infinite;
}
@keyframes lab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 164, 245, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(47, 164, 245, 0); }
}

.lab__story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}
.lab__block { padding-top: 22px; border-top: 1px solid var(--cream-15); }
.lab__block-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.lab__block .lead { margin-top: 14px; color: var(--cream-80); font-size: clamp(16.5px, 1.35vw, 18px); }

.lab__tech-label { margin-top: clamp(48px, 6vw, 80px); }
.lab__tech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: 18px;
}
.tech {
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-lg);
  background: var(--navy);
}
.tech__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.tech__title { margin-top: 14px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.15; }
.tech p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--cream-80); }

.lab__panel {
  position: relative;
  overflow: hidden;
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: clamp(26px, 3.6vw, 48px);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 100% 0%, rgba(47, 164, 245, 0.14) 0%, rgba(47, 164, 245, 0) 55%), var(--navy);
}
.lab__panel > :not(.lab__mark) { position: relative; }
.lab__mark {
  position: absolute;
  right: -48px;
  bottom: -36px;
  width: 280px;
  height: 204px;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
}
.lab__contribution { margin-top: 14px; max-width: 62ch; font-family: var(--font-head); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; color: var(--cream); }
.lab__note { margin-top: 22px; padding-top: 18px; max-width: 70ch; border-top: 1px solid var(--cream-15); font-size: 14.5px; color: var(--cream-60); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.service {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.services--4 .service { grid-column: span 3; }
.services--5 .service--lead { grid-column: span 3; }
.service--lead {
  background: linear-gradient(160deg, rgba(47, 164, 245, 0.16) 0%, rgba(47, 164, 245, 0) 55%), var(--surface);
  border-top: 2px solid var(--accent);
}
.service__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.service__title { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.service__text { margin-top: 12px; margin-bottom: 26px; color: var(--cream-80); }
.service__proof {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--cream-15);
}
.service__proof .label { font-size: 11px; letter-spacing: 0.22em; }
.service__proof p + p { margin-top: 8px; font-size: 15px; color: var(--cream-60); }

/* Process: a real sequence, a line with a dot per step */
.process__title {
  margin-top: clamp(64px, 8vw, 104px);
  font-size: clamp(26px, 2.8vw, 36px);
  max-width: 24ch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 32px;
}
.step { position: relative; border-top: 1px solid var(--cream-15); padding-top: 24px; }
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.step__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.step__title { margin-top: 12px; font-size: 22px; }
.step p { margin-top: 10px; color: var(--cream-60); }

.textlink {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  padding-block: 10px;
}
.textlink:hover { color: var(--cream); }
.consulting__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(40px, 5vw, 56px);
}

/* ---------- Approach: Think. Build. Evolve. ---------- */
.approach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.approach__item { border-top: 1px solid var(--cream-15); padding-top: 24px; }
.approach__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.approach__title { margin-top: 16px; font-size: clamp(30px, 3vw, 40px); }
.approach__item p { margin-top: 12px; color: var(--cream-80); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__punch {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
  max-width: 14ch;
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 46px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  color: var(--accent);
}
.about__body {
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--cream-15);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--cream-80);
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__mark { width: 120px; height: 88px; margin-top: 40px; color: var(--cream-15); }

.faq__list { border-top: 1px solid var(--cream-15); }
.faq__item { border-bottom: 1px solid var(--cream-15); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.3;
  color: var(--cream);
  transition: color .2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { outline-offset: 4px; }
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cream-15);
  border-radius: 50%;
  transition: transform .25s ease, border-color .2s ease, background-color .2s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q:hover .faq__icon { border-color: var(--accent); }
.faq__item[open] .faq__icon { transform: rotate(45deg); border-color: var(--accent); background: var(--accent); color: var(--navy); }
.faq__a { padding: 0 56px 26px 0; }
.faq__a p { color: var(--cream-80); }

/* ---------- Contact ---------- */
.cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 88px) clamp(20px, 6vw, 88px);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% -10%, rgba(47, 164, 245, 0.2) 0%, rgba(47, 164, 245, 0) 60%), var(--surface);
}
.cta__grid {
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cta__grid--form { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.cta__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta__grid--form .cta__intro { align-items: flex-start; text-align: left; }
.cta__intro .btn { margin-top: 8px; }
.cta__mark { width: 64px; height: 47px; color: var(--cream); }
.cta__title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.02em; max-width: 18ch; }
.cta__mail { color: var(--cream-60); }
.cta__mail a { color: var(--cream); text-underline-offset: 3px; overflow-wrap: anywhere; }
.cta__mail a:hover { color: var(--accent); }

/* Form */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.field__opt { color: var(--cream-60); letter-spacing: 0.1em; text-transform: none; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--cream-15);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  transition: border-color .2s ease;
}
.field__input::placeholder { color: var(--cream-60); opacity: 0.7; }
.field__input:hover { border-color: var(--cream-60); }
.field__input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field__select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(-45deg, transparent 50%, var(--cream) 50%);
  background-position: right 20px center, right 15px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field__error { font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }

/* Honeypot: off-screen for people, still in the DOM for bots */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__submit { cursor: pointer; }
.form__submit:disabled { cursor: progress; opacity: 0.7; }
.form__status { flex: 1 1 220px; font-size: 15px; }
.form__status[data-state="success"] { color: var(--accent); }
.form__status[data-state="error"] { color: var(--error); }
.form__note { font-size: 14px; color: var(--cream-60); }
.form__note a { color: var(--cream); text-underline-offset: 3px; }
.form__note a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--cream-15); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 6vw, 96px);
}
.footer__brand { display: flex; align-items: flex-start; gap: 16px; }
.footer__mark { flex: none; width: 44px; height: 32px; margin-top: 2px; color: var(--cream); }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.2; }
.footer__tagline { margin-top: 6px; max-width: 40ch; font-size: 14.5px; color: var(--cream-60); }
.footer__email { margin-top: 14px; font-size: 15px; }
.footer__email a { color: var(--cream); text-underline-offset: 3px; }
.footer__email a:hover { color: var(--accent); }

.footer__cols { display: flex; gap: clamp(40px, 6vw, 96px); }
.footer__heading { font-size: 11px; color: var(--cream); }
.footer__entity { margin-top: 4px; font-size: 14px; color: var(--cream-60); }
.footer__links { display: grid; gap: 8px; margin-top: 16px; }
.footer__links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--cream-60);
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--cream); }

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-15);
  font-size: 13.5px;
  color: var(--cream-60);
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .service,
  .services--4 .service,
  .services--5 .service--lead { grid-column: span 1; }
  .services--3 .service:last-child,
  .services--5 .service:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .lab__tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 860px) {
  .section-head--split,
  .lab__story,
  .about__grid,
  .faq__grid,
  .cta__grid--form { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__mark { display: none; }
  .about__body { padding-left: 0; border-left: 0; }
  .approach { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services,
  .steps,
  .lab__tech,
  .form__row { grid-template-columns: 1fr; }
  .services--3 .service:last-child,
  .services--5 .service:last-child { grid-column: auto; }
  .hero__actions .btn { flex: 1 1 auto; }
  .game__icon { width: 52px; height: 52px; border-radius: 12px; }
  .game__badge { height: 46px; }
  .faq__a { padding-right: 0; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  /* Facts become rows: figure left, sentence right */
  .proof__list { grid-template-columns: 1fr; row-gap: 0; }
  .proof__item,
  .proof__item:nth-child(3) {
    gap: 6px;
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--cream-15);
  }
  .proof__item:first-child { border-top: 0; padding-top: 0; }
  .proof__item:last-child { padding-bottom: 0; }
  .proof__figure { font-size: 32px; }
  .proof__text { max-width: none; }
}

@media (max-width: 400px) {
  .btn { padding-inline: 18px; letter-spacing: 0.12em; }
  .nav__actions .btn--sm { padding-inline: 14px; }
  .proof__figure { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hidden SVG sprite container (no inline style, CSP-safe) */
.svg-sprite { position: absolute; }
