/* ==========================================================================
   AHE — Artificial Human Experience
   Plain CSS, no build step. Edit the tokens below to change the look.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #090218;
  --fg: #ffffff;
  --surface: #221b39;
  --purple: #453874;
  --purple-light: #8f7fd6;
  --lime: #e4fe52;
  --lime-fg: #090218;
  --soft: #c8c4d2;
  --muted: #918ca0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --error: #ff8a7a;
  --radius: 8px;
  --radius-sm: 5px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1280px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--lime); color: var(--lime-fg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--lime-fg);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.text-soft { color: var(--soft); }
.text-lime { color: var(--lime); }
.text-strong { color: var(--fg); font-weight: 500; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--lime);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: rgba(228, 254, 82, 0.7); }
.h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
}
.eyebrow + .h2 { margin-top: 24px; }
.h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.h3-sm { font-size: 20px; }
.lead { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, color .3s, filter .3s;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--lime-fg); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(0.96); box-shadow: 0 10px 30px -8px rgba(228, 254, 82, 0.5); }
.btn-secondary { border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.03); }
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(228, 254, 82, 0.6); color: var(--lime); }
.btn .arrow, .link-arrow .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .card:hover .link-arrow .arrow, .row:hover .link-arrow .arrow, .panel:hover .link-arrow .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; align-items: center; gap: 16px; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  transition: color .3s;
}
.link-arrow:hover { color: var(--lime); }

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color .3s, color .3s;
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:hover { border-color: rgba(228, 254, 82, 0.6); color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(9, 2, 24, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; border-radius: 4px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; transition: opacity .3s; }
.logo:hover img { opacity: .88; }
@media (min-width: 640px) { .logo img { height: 46px; } }
.logo-footer img { height: 56px; }

.primary-nav, .header-cta { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 32px; }
.primary-nav a { position: relative; font-size: 14px; font-weight: 500; color: var(--soft); transition: color .3s; padding: 6px 0; }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav a:hover { color: var(--lime); }
.primary-nav a.active { color: var(--fg); }
.primary-nav a.active::after { transform: scaleX(1); }
@media (min-width: 860px) {
  .primary-nav, .header-cta { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 50; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(9, 2, 24, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s ease both; }
.mobile-panel {
  position: absolute; inset: 0 0 auto 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 20px var(--gutter) 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: drop .35s var(--ease) both;
}
.mobile-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.mobile-links { margin: 24px 0 32px; }
.mobile-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.mobile-links a { display: block; padding: 16px 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; transition: color .3s; }
.mobile-links a:hover { color: var(--lime); }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section-tight { padding: 32px 0; }
@media (min-width: 768px) { .section-tight { padding: 48px 0; } }
.section-last { padding-bottom: 96px; }
.section-head { max-width: 768px; margin-bottom: 56px; }

.grid-3, .grid-2 { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 112px 0 64px; }
@media (min-width: 768px) { .hero { padding: 144px 0 96px; } }
@media (min-width: 1024px) { .hero { padding-top: 160px; min-height: 92vh; min-height: 92svh; } }
.hero-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 60% at 75% 20%, rgba(69, 56, 116, 0.5), transparent 70%); }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 32px; } }
.hero-copy { position: relative; z-index: 2; max-width: 672px; }
.hero-title {
  margin-top: 24px;
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
}
.hero-title .line { display: block; }
.hero-lead { margin-top: 28px; max-width: 576px; font-size: 18px; line-height: 1.65; color: var(--soft); }
@media (min-width: 640px) { .hero-lead { font-size: 20px; } }

/* Hero entrance */
.js .hero-copy > *, .js .hero-title .line { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero-title { opacity: 1; transform: none; animation: none; }
.js .hero-copy > .eyebrow { animation-delay: .05s; }
.js .hero-title .line:nth-child(1) { animation-delay: .15s; }
.js .hero-title .line:nth-child(2) { animation-delay: .27s; }
.js .hero-title .line:nth-child(3) { animation-delay: .39s; }
.js .hero-copy > .hero-lead { animation-delay: .5s; }
.js .hero-copy > .btn-row { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; min-height: 280px; overflow: hidden; }
@media (min-width: 640px) { .hero-visual { min-height: 380px; } }
@media (min-width: 1024px) { .hero-visual { min-height: 520px; } }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .hero-visual { opacity: 0; animation: fade-in 1.4s .3s ease forwards; }
@keyframes fade-in { to { opacity: 1; } }
.chip {
  position: absolute; z-index: 2;
  padding: 4px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(9, 2, 24, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.chip-ai { top: 8px; left: 8px; color: var(--lime); }
.chip-hx { bottom: 8px; right: 8px; color: var(--lime); }
.chip-cursor {
  top: 0; left: 0; color: var(--lime-fg); background: var(--lime); border-color: var(--lime);
  pointer-events: none; opacity: 0; will-change: transform;
  box-shadow: 0 8px 24px -8px rgba(228, 254, 82, 0.6);
  transition: opacity .35s ease;
}
.chip-cursor.on { opacity: 1; }
@media (pointer: fine) { .hero-visual { cursor: none; } }

/* ---------- Cards ---------- */
.card {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: rgba(228, 254, 82, 0.4); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7); }
.card .h3 { margin-top: 24px; }
.card p { margin-top: 12px; color: var(--soft); line-height: 1.65; }
.card-service { background: rgba(34, 27, 57, 0.7); }
.card-service p { flex: 1; }
.card-service .link-arrow { margin-top: 24px; }
.card:hover .link-arrow { color: var(--lime); }

.card-icon { width: 48px; height: 48px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--lime); transition: background-color .3s, color .3s; }
.card-icon-fill { background: rgba(69, 56, 116, 0.6); }
.card:hover .card-icon-fill { background: var(--lime); color: var(--lime-fg); }
.card-icon-line { border: 1px solid rgba(228, 254, 82, 0.3); }

/* ---------- Approach panels ---------- */
.panel {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius); border: 1px solid;
  transition: border-color .3s, transform .4s var(--ease);
}
@media (min-width: 640px) { .panel { padding: 40px; } }
.panel:hover { transform: translateY(-4px); }
.panel { border-color: rgba(255, 255, 255, 0.1); background: var(--surface); }
.panel:hover { border-color: rgba(228, 254, 82, 0.45); }
.panel-texture { position: absolute; z-index: -1; pointer-events: none; opacity: 0.5; transition: transform .8s var(--ease), opacity .4s; }
.panel:hover .panel-texture { opacity: .8; }
.panel-ai .panel-texture {
  right: -40px; top: -40px; width: 160px; height: 160px; border-radius: var(--radius);
  border: 1px solid rgba(228, 254, 82, 0.2);
  background-image: linear-gradient(rgba(228, 254, 82, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(228, 254, 82, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}
.panel-hx .panel-texture { right: -64px; top: -64px; width: 192px; height: 192px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 28px rgba(255,255,255,0.015), 0 0 0 56px rgba(255,255,255,0.01); }
.panel-ai:hover .panel-texture { transform: rotate(12deg) scale(1.08); }
.panel-hx:hover .panel-texture { transform: scale(1.15); }
.panel-code { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; color: var(--fg); transition: color .3s; }
.panel-name { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.panel-text { margin-top: 24px; max-width: 448px; font-size: 18px; line-height: 1.65; color: var(--soft); flex: 1; }
.panel .link-arrow { margin-top: 32px; }

/* ---------- AI grid background ---------- */
.section-grid-bg { overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent);
}
.section-grid-bg .container { position: relative; }

/* ---------- Human experience rows ---------- */
.rows { display: flex; flex-direction: column; gap: 16px; }
.row {
  display: grid; gap: 20px; align-items: center;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease);
}
.row:hover { border-color: rgba(228, 254, 82, 0.4); }
.row:hover .link-arrow { color: var(--lime); }
.row-num { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--lime); }
.row-tag { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.row-body p { margin-top: 12px; max-width: 576px; color: var(--soft); line-height: 1.65; }
.row .link-arrow { justify-self: start; }
@media (min-width: 640px) { .row { padding: 40px; } }
@media (min-width: 900px) {
  .row { grid-template-columns: 64px 1fr auto; gap: 24px; }
  .row-body { display: flex; align-items: baseline; gap: 32px; }
  .row-body .h3 { width: 288px; flex-shrink: 0; }
  .row-body p { margin-top: 0; }
  .row .link-arrow { justify-self: end; }
}

/* ---------- Methodology ---------- */
.steps-wrap { position: relative; }
.steps { display: grid; gap: 32px; position: relative; }
.steps-line { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps-line {
    display: block; position: absolute; left: 0; right: 0; top: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
  }
  .steps-progress {
    position: absolute; left: 0; top: 0; height: 1px; width: 100%;
    background: linear-gradient(90deg, transparent, var(--lime) 60%, transparent);
    transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s;
  }
  .steps-wrap.in-view .steps-progress { transform: scaleX(1); }
}
/* Mobile: vertical timeline */
@media (max-width: 899px) {
  .steps { padding-left: 0; }
  .step { position: relative; padding-left: 68px; min-height: 48px; }
  .step .step-num { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::before {
    content: ''; position: absolute; left: 24px; top: 56px; bottom: -28px; width: 1px;
    background: linear-gradient(var(--purple), transparent);
  }
  .step h3 { margin-top: 12px !important; }
}
.step-num {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(228, 254, 82, 0.4); background: var(--bg);
  font-size: 14px; font-weight: 700; color: var(--lime);
  transition: background-color .3s, color .3s;
}
.step:hover .step-num { background: var(--lime); color: var(--lime-fg); }
.step h3 { margin-top: 20px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.step p { margin-top: 8px; color: var(--soft); line-height: 1.65; }

/* ---------- Results ---------- */
.stats-box { padding: 56px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.1); background: var(--surface); }
@media (min-width: 640px) { .stats-box { padding: 56px 48px; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 16px; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.stat { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; }
@media (min-width: 1024px) { .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.08); } }
.stat-value {
  display: inline-flex; align-items: flex-start; justify-content: center;
  font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-plus { font-size: 0.5em; line-height: 1; margin-left: 0.06em; margin-top: 0.08em; color: var(--lime); letter-spacing: 0; }
.stat-value { color: var(--fg); transition: color .3s; cursor: default; }
.stat:hover .stat-value { color: var(--lime); }
.stat dt { margin-top: 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
/* count-up finish: a short pop and glow */
.stat-value.counting { text-shadow: 0 0 0 transparent; }
.stat-value.done { animation: stat-pop .6s var(--ease); }
@keyframes stat-pop {
  0% { transform: scale(1); text-shadow: 0 0 0 rgba(228, 254, 82, 0); }
  40% { transform: scale(1.08); text-shadow: 0 0 28px rgba(228, 254, 82, 0.55); }
  100% { transform: scale(1); text-shadow: 0 0 0 rgba(228, 254, 82, 0); }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.about-copy { display: flex; flex-direction: column; gap: 24px; padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, 0.1); font-size: 18px; line-height: 1.7; color: var(--soft); }

/* ---------- Contact / CTA ---------- */
.cta-box {
  position: relative; overflow: hidden;
  padding: 48px 24px; border-radius: var(--radius);
  border: 1px solid rgba(228, 254, 82, 0.25); background: rgba(69, 56, 116, 0.4);
}
@media (min-width: 640px) { .cta-box { padding: 64px 48px; } }
@media (min-width: 1024px) { .cta-box { padding: 80px 64px; } }
.cta-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } }
.mail-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 18px; font-weight: 600; color: var(--fg); transition: color .3s; word-break: break-all; }
.mail-link .icon { color: var(--lime); width: 20px; height: 20px; }
.mail-link:hover { color: var(--lime); }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Form */
.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px; border-radius: var(--radius);
  background: rgba(9, 2, 24, 0.55); border: 1px solid var(--line-strong);
}
@media (min-width: 640px) { .contact-form { padding: 32px; } }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--soft); }
.field label span { color: var(--lime); }
.field label .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8c4d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option, .field select optgroup { background: var(--surface); color: var(--fg); }
.field textarea { resize: vertical; min-height: 128px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 3px rgba(228, 254, 82, 0.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { align-self: flex-start; }
.btn-submit[disabled] { opacity: 0.6; pointer-events: none; }
.btn-submit.loading .arrow { animation: nudge 0.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.form-status { font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--lime); }
.form-status.err { color: var(--error); }
.form-status a { text-decoration: underline; }

.form-success { text-align: left; padding: 8px 0; }
.form-success .icon { width: 48px; height: 48px; color: var(--lime); }
.form-success h3 { margin-top: 20px; font-size: 24px; font-weight: 700; }
.form-success p { margin-top: 8px; color: var(--soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.footer-sub { margin-top: 4px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.footer-tag { margin-top: 20px; color: var(--soft); line-height: 1.6; }
.footer-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--lime); }
.site-footer ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.site-footer ul a { color: var(--soft); transition: color .3s; }
.site-footer ul a:hover { color: var(--fg); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .3s; }
.to-top:hover { color: var(--lime); }

/* ---------- Simple pages (404, thanks) ---------- */
.simple-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; }
.simple-page .h2 { margin-top: 24px; }
.simple-page .big { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--lime); }

/* ---------- Lime is the single accent colour ---------- */
.card-problem:hover .card-icon-fill { background: var(--lime); color: var(--lime-fg); }
.brand-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--lime) 15%, var(--lime) 85%, transparent); opacity: .85; }

/* Whole card is clickable when it has a .stretched link */
.card, .row, .panel { position: relative; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.panel .stretched::after { border-radius: var(--radius); }

/* ---------- Every card behaves the same ---------- */
.card .h3, .row .h3 { transition: color .3s; }
.card:hover .h3, .row:hover .h3, .panel:hover .panel-code { color: var(--lime); }
.row:hover .card-icon-fill { background: var(--lime); color: var(--lime-fg); }
.card-icon-fill { background: rgba(69, 56, 116, 0.6); color: var(--lime); }
.row { border-radius: var(--radius); }

/* ---------- Call-to-action boxes: flat background, faint moving dot pattern ---------- */
.cta-box { isolation: isolate; background: #100a20; }
.cta-box::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 20px 20px;
  animation: cta-dots 30s linear infinite;
}
@keyframes cta-dots { to { background-position: 40px 20px; } }

/* ---------- Inner-page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 136px 0 48px; }
@media (min-width: 768px) { .page-hero { padding: 176px 0 72px; } }
.page-hero-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 85% 15%, rgba(69, 56, 116, 0.55), transparent 72%); }
.page-hero-wash::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
.page-hero-inner { position: relative; max-width: 896px; }
.page-title { margin-top: 24px; font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.js .page-hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .page-hero-inner > .page-title { animation-delay: .1s; }
.js .page-hero-inner > .hero-lead { animation-delay: .22s; }
.section-after-hero { padding-top: 64px; }
@media (min-width: 1024px) { .section-after-hero { padding-top: 96px; } }
.section-tint { background: rgba(34, 27, 57, 0.3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.split { display: grid; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; } }

/* Service detail cards */
.card-detail { scroll-margin-top: 110px; }
.card-detail .card-num { margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.card-detail .h3 { margin-top: 10px; }
.card-detail p:not(.card-num) { flex: 1; }
.card-detail .link-arrow { margin-top: 24px; }
.card-detail:target, .row-detail:target { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 24px 60px -30px rgba(228,254,82,.45); }

/* Mini step grid */
.mini-steps { display: grid; gap: 12px; }
@media (min-width: 640px) { .mini-steps { grid-template-columns: 1fr 1fr; } .mini-step:last-child { grid-column: 1 / -1; } }
.mini-step { padding: 24px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); background: rgba(9, 2, 24, 0.4); transition: border-color .3s; }
.mini-step:hover { border-color: rgba(228,254,82,.35); }
.mini-num { font-size: 14px; font-weight: 700; color: var(--lime); }
.mini-step h3 { margin-top: 10px; font-size: 20px; font-weight: 700; }
.mini-step p { margin-top: 6px; font-size: 15px; color: var(--soft); line-height: 1.6; }

/* H eX detail rows */
.row-detail { scroll-margin-top: 110px; align-items: start; }
.row-detail .row-tag { margin-top: 8px; }
.row-desc p { color: var(--soft); line-height: 1.65; max-width: 620px; }
.row-desc .link-arrow { margin-top: 20px; }
@media (min-width: 900px) { .row-detail { grid-template-columns: 96px 0.75fr 1.25fr; gap: 32px; } }

/* Principles */
.principle { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); background: rgba(9,2,24,0.35); transition: border-color .3s, transform .4s var(--ease); }
.principle::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); opacity: .9; }
.principle:hover { border-color: rgba(228, 254, 82, 0.45); }
.principle-num { font-size: 14px; font-weight: 700; color: var(--lime); }
.principle .h3 { margin-top: 14px; }
.principle p { margin-top: 10px; color: var(--soft); line-height: 1.65; }

/* CTA variants */
.cta-band-inner { position: relative; display: flex; flex-direction: column; gap: 32px; }
.cta-band-inner .h2 { max-width: 680px; }
@media (min-width: 1024px) { .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-center { text-align: center; }
.cta-center-inner { position: relative; max-width: 672px; margin: 0 auto; }
.cta-center-inner .lead { margin-left: auto; margin-right: auto; max-width: 576px; }
.btn-row-center { justify-content: center; align-items: center; }
.mail-link-inline { margin-top: 0; font-size: 16px; font-weight: 500; color: var(--soft); }

/* Contact page */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.75fr 1.25fr; gap: 72px; align-items: start; } }
.contact-grid .contact-form { background: var(--surface); scroll-margin-top: 110px; }
@media (min-width: 1024px) { .contact-grid .contact-form { padding: 40px; } }
.locations { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.locations li { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.loc-country { font-weight: 600; }
.loc-cities { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.form-foot { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-privacy { font-size: 13px; color: var(--muted); max-width: 320px; }

/* Footer extras */
.footer-loc { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 260px; }
.footer-brand .footer-tag { margin-top: 20px; }

/* Simple pages */
.simple-inner { position: relative; }
.simple-inner .eyebrow { margin-top: 24px; }
.simple-inner .lead { max-width: 560px; }
.simple-icon .icon { width: 56px; height: 56px; color: var(--lime); }

/* Mobile menu logo row */
.mobile-top .logo img { height: 40px; }
.mobile-links a[aria-current="page"] { color: var(--lime); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s, box-shadow .4s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.visible:hover { transition-delay: 0ms; }
.js .card.reveal.visible:hover, .js .panel.reveal.visible:hover { transform: translateY(-4px); }

@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; transition-delay: 0ms !important; }
  .js .reveal, .js .hero-copy > *, .js .hero-title .line, .js .hero-visual { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-menu, .hero-visual, .contact-form, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
