/* ===================================================
   TOKENS — CSS custom properties
=================================================== */
:root {
  /* Brand colours — mapped from doc/color_schemes.json */
  --c-primary:      #1a3a6b;
  --c-primary-dark: #0f2347;
  --c-primary-mid:  #1e4480;
  --c-gold:         #c8a951;
  --c-gold-light:   #d9c07e;
  --c-gold-dark:    #a8893a;
  --c-gold-accessible: #7a6320; /* WCAG 4.5:1 on white + surface */
  --c-accent:       #8b1a1a;
  --c-bg:           #ffffff;
  --c-surface:      #f8f6f1;
  --c-surface-alt:  #f0ece3;
  --c-text:         #1a1a1a;
  --c-text-muted:   #5a5a5a;
  --c-border:       #d8d0c0;

  /* Dark-section text */
  --c-dark-text:       rgba(255,255,255,.92);
  --c-dark-text-muted: rgba(255,255,255,.62);
  --c-dark-border:     rgba(255,255,255,.12);

  /* Radius scale */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  /* Shadow scale (cool navy tint) */
  --shadow-sm: 0 1px 2px rgba(15,35,71,.06), 0 2px 8px rgba(15,35,71,.04);
  --shadow-md: 0 4px 12px rgba(15,35,71,.08), 0 12px 32px rgba(15,35,71,.06);
  --shadow-lg: 0 8px 24px rgba(15,35,71,.10), 0 24px 64px rgba(15,35,71,.10);

  /* Transition */
  --t-fast:   .15s ease;
  --t-normal: .25s ease;
  --t-slow:   .4s ease;

  /* Spacing (8-pt grid) */
  --sp-1: .5rem;   /* 8px  */
  --sp-2: 1rem;    /* 16px */
  --sp-3: 1.5rem;  /* 24px */
  --sp-4: 2rem;    /* 32px */
  --sp-6: 3rem;    /* 48px */
  --sp-8: 4rem;    /* 64px */
  --sp-12: 6rem;   /* 96px */

  /* Layout */
  --shell: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);

  /* Section padding */
  --section-py: clamp(4rem, 8vw, 8rem);

  /* Type scale */
  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.75rem, 2.5vw, 2.25rem);
  --text-4xl:  clamp(2.25rem, 3.5vw, 3rem);
  --text-hero: clamp(2.75rem, 6.5vw, 5.25rem);

  /* Font */
  --font: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI",
          Roboto, Inter, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* ===================================================
   BASE — reset, typography, layout primitives
=================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.05; }
p { margin: 0; }
input, textarea, select { font: inherit; }

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

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.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: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--c-gold);
  color: var(--c-primary-dark);
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold-accessible);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: var(--c-gold);
}
.eyebrow.light {
  color: var(--c-gold-light);
}
.eyebrow.light::before { background: var(--c-gold-light); }

h1 { font-size: var(--text-hero); letter-spacing: -.025em; }
h2 { font-size: var(--text-4xl); letter-spacing: -.02em; }
h3 { font-size: var(--text-2xl); letter-spacing: -.015em; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--c-text-muted);
}
.lead.on-dark { color: var(--c-dark-text-muted); }

section { padding-block: var(--section-py); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================================================
   SITE HEADER
=================================================== */
header.site {
  position: sticky; top: 0; z-index: 100;
  transition: background var(--t-normal), box-shadow var(--t-normal);
}
header.site.scrolled {
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 0 rgba(216,208,192,.5), var(--shadow-sm);
}
header.site.dark-hero {
  background: var(--c-primary-dark);
}
header.site.dark-hero.scrolled {
  background: rgba(15,35,71,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
}
.logo-name {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--c-primary);
  line-height: 1.2;
}
.logo-name span { display: block; font-weight: 400; font-size: .75rem; color: var(--c-text-muted); letter-spacing: .04em; }
.dark-hero .logo-name { color: #fff; }
.dark-hero .logo-name span { color: rgba(255,255,255,.55); }
.scrolled.dark-hero .logo-name { color: #fff; }

nav.primary {
  display: flex;
  align-items: center;
  gap: .25rem;
}
nav.primary a {
  padding: .45rem .8rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
nav.primary a:hover { color: var(--c-primary); background: var(--c-surface); }
.dark-hero nav.primary a { color: rgba(255,255,255,.7); }
.dark-hero nav.primary a:hover { color: #fff; background: rgba(255,255,255,.08); }
.dark-hero.scrolled nav.primary a { color: rgba(255,255,255,.72); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: .25rem .3rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.lang-switch a {
  padding: .2rem .55rem;
  border-radius: 999px;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.lang-switch a.active {
  background: var(--c-primary);
  color: #fff;
}
.dark-hero .lang-switch {
  border-color: rgba(255,255,255,.2);
}
.dark-hero .lang-switch a { color: rgba(255,255,255,.6); }
.dark-hero .lang-switch a.active { background: rgba(255,255,255,.18); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform var(--t-normal), opacity var(--t-fast);
}
.dark-hero .menu-toggle span { background: #fff; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--c-primary-dark);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.mobile-menu a:hover, .mobile-menu a:focus { color: var(--c-gold-light); border-color: rgba(200,169,81,.3); background: rgba(200,169,81,.05); }
.mobile-menu .lang-row { margin-top: 1.5rem; display: flex; gap: 1rem; }
.mobile-menu .lang-row a { font-size: 1rem; }

@media (max-width: 768px) {
  nav.primary, .lang-switch { display: none; }
  .menu-toggle { display: flex; }
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--c-gold);
  color: var(--c-primary-dark);
  box-shadow: 0 6px 20px -8px rgba(200,169,81,.6);
}
.btn-primary:hover {
  background: var(--c-gold-light);
  box-shadow: 0 10px 28px -8px rgba(200,169,81,.75);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-ghost-dark:hover {
  background: var(--c-surface);
  border-color: var(--c-primary);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===================================================
   AURORA HERO
=================================================== */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--c-primary-dark);
  padding-top: 0;
}
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    conic-gradient(from 200deg at 30% 40%, #0f2347 0deg, #1a3a6b 90deg, #1e4480 140deg, #0a1c38 200deg, #0f2347 260deg, #16325e 320deg, #0f2347 360deg);
  animation: aurora-hue 30s linear infinite;
}
@keyframes aurora-hue {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(12deg); }
  100% { filter: hue-rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora { animation: none; }
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse at 50% 30%, rgba(200,169,81,.12) 0%, rgba(30,68,128,.18) 40%, transparent 70%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 10;
  padding-block: clamp(5rem, 10vw, 10rem) clamp(3rem, 5vw, 5rem);
}
.hero-display-num {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-55%);
  font-size: clamp(14rem, 30vw, 28rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, rgba(200,169,81,.18) 0%, rgba(200,169,81,.06) 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}
.hero-eyebrow { margin-bottom: 1.75rem; }
.hero-headline {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.02;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero-headline .gold {
  background: linear-gradient(90deg, var(--c-gold-light) 0%, var(--c-gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--c-dark-text-muted);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 3rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
  margin-top: 1.5rem;
}
.trust-item {
  flex: 1 1 120px;
  padding: .5rem 1.5rem .5rem 0;
  border-right: 1px solid rgba(255,255,255,.1);
}
.trust-item:last-child { border-right: none; padding-right: 0; }
.trust-num {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--c-gold-light);
  line-height: 1;
  display: block;
}
.trust-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: .25rem;
  display: block;
}
@media (max-width: 640px) {
  .trust-item { flex-basis: 50%; border-right: none; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); padding-right: 1rem; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ===================================================
   MARQUEE
=================================================== */
.marquee-strip {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(10,28,56,.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  gap: 3rem;
  padding: 1.25rem 0;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-track img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity var(--t-fast);
  flex-shrink: 0;
}
.marquee-track img:hover { opacity: .85; }
.marquee-large .marquee-track img {
  height: 64px;
  filter: none;
  opacity: .9;
}
.marquee-large .marquee-track img:hover { opacity: 1; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===================================================
   ABOUT SECTION
=================================================== */
.section-about {
  background: var(--c-bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-copy { max-width: 54ch; }
.about-copy .eyebrow { margin-bottom: 1.25rem; }
.about-copy h2 { margin-bottom: 1.25rem; color: var(--c-primary); }
.about-copy .lead { margin-bottom: 1.5rem; }
.about-copy p { color: var(--c-text-muted); line-height: 1.75; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--c-primary);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  background-image: radial-gradient(circle at 100% 0%, rgba(200,169,81,.16), transparent 60%);
  box-shadow: var(--shadow-md);
}
.stat-card .num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--c-gold-light);
  display: block;
}
.stat-card .lbl {
  font-size: .85rem;
  color: rgba(255,255,255,.58);
  margin-top: .4rem;
  display: block;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ===================================================
   SERVICES — dark glass bento
=================================================== */
.section-services {
  background: var(--c-primary-dark);
  position: relative;
  overflow: hidden;
}
.section-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 160deg at 70% 80%, #0f2347 0deg, #1a3a6b 80deg, #0a1c38 160deg, #0f2347 360deg);
  opacity: .6;
  z-index: 0;
}
.services-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.services-header h2 { color: #fff; }
.services-header .lead { max-width: 40ch; }
.services-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), background var(--t-normal);
  grid-column: span 4;
}
.service-card:first-child { grid-column: span 6; }
.service-card:nth-child(2),
.service-card:nth-child(3) { grid-column: span 3; }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; right: -100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c-gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t-normal), left var(--t-slow);
}
.service-card:hover::before { opacity: 1; left: 0; right: 0; }
.service-card:hover {
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(200,169,81,.12);
  border: 1px solid rgba(200,169,81,.2);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--c-gold-light);
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .5rem;
  font-weight: 700;
}
.service-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  color: var(--c-gold);
  font-size: .85rem;
  font-weight: 600;
  transition: gap var(--t-fast);
}
.service-card:hover .more { gap: .65rem; }
@media (max-width: 900px) {
  .service-card,
  .service-card:first-child,
  .service-card:nth-child(2),
  .service-card:nth-child(3) { grid-column: span 6; }
}
@media (max-width: 600px) {
  .service-card,
  .service-card:first-child,
  .service-card:nth-child(2),
  .service-card:nth-child(3) { grid-column: span 12; }
}
@media (max-width: 768px) {
  .services-header { flex-direction: column; align-items: flex-start; }
}

/* ===================================================
   WEBAPPS — alternating left/right
=================================================== */
.section-webapps {
  background: var(--c-surface);
}
.webapps-header {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.webapps-header h2 { color: var(--c-primary); margin-bottom: 1rem; }
.webapp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--c-border);
}
.webapp-row:first-of-type { border-top: none; }
.webapp-row.reverse .webapp-mockup { order: -1; }
.webapp-mockup {
  aspect-ratio: 4/3;
  background: var(--c-surface-alt);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.webapp-mockup svg { max-height: 100%; }
.webapp-copy .eyebrow { margin-bottom: 1rem; }
.webapp-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--c-primary);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.webapp-copy p { color: var(--c-text-muted); margin-bottom: 1.25rem; line-height: 1.75; }
.webapp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-primary);
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .webapp-row { grid-template-columns: 1fr; }
  .webapp-row.reverse .webapp-mockup { order: 0; }
}

/* ===================================================
   REFERENCES
=================================================== */
.section-references {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.references-header {
  text-align: center;
  margin-bottom: 3rem;
}
.references-header h2 { color: var(--c-primary); margin-bottom: .75rem; }
.references-header .lead { margin-inline: auto; max-width: 52ch; }
.marquee-large {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-large .marquee-track img {
  height: 64px;
  max-width: 160px;
  object-fit: contain;
  filter: none;
  opacity: .85;
  padding-inline: .5rem;
}
.marquee-large:hover .marquee-track { animation-play-state: paused; }

/* ===================================================
   CONTACT — dark aurora bookend
=================================================== */
.section-contact {
  position: relative;
  overflow: hidden;
  background: var(--c-primary-dark);
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 220deg at 20% 60%, #0f2347 0deg, #1a3a6b 100deg, #0a1c38 200deg, #0f2347 360deg);
  opacity: .7;
  z-index: 0;
}
.section-contact .hero-grain { z-index: 1; }
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-inner h2 { color: #fff; margin-bottom: .75rem; }

.contact-form { }
.contact-form .eyebrow { margin-bottom: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-field.full { grid-column: span 2; }
.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}
.form-field label .req { color: var(--c-gold); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .95rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.3); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(200,169,81,.6);
  background: rgba(255,255,255,.1);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field .error-msg {
  font-size: .8rem;
  color: #f28b82;
  display: none;
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #f28b82; }
.form-field.has-error .error-msg { display: block; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--c-gold);
  cursor: pointer;
}
.form-check label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.form-check label a { color: var(--c-gold-light); text-decoration: underline; text-underline-offset: 2px; }
.honeypot { display: none !important; visibility: hidden; }
.form-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  display: none;
}
.form-status.success { background: rgba(52,199,89,.15); border: 1px solid rgba(52,199,89,.3); color: #4ade80; display: block; }
.form-status.error { background: rgba(242,139,130,.1); border: 1px solid rgba(242,139,130,.3); color: #f28b82; display: block; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn-submit .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(15,35,71,.3);
  border-top-color: var(--c-primary-dark);
  border-radius: 50%;
  display: none;
  animation: spin .6s linear infinite;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 2rem;
  color: #fff;
}
.contact-card h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.25rem; }
.contact-email-link {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--c-gold-light);
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  margin-bottom: .6rem;
  word-break: break-all;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  padding: .35rem .7rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  background: transparent;
}
.copy-btn:hover { color: var(--c-gold-light); border-color: rgba(200,169,81,.4); }
.copy-btn.copied { color: #4ade80; border-color: rgba(74,222,128,.4); }
.contact-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact-meta p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
  line-height: 1.6;
}
.contact-meta a { color: var(--c-gold-light); }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
}

/* ===================================================
   FOOTER
=================================================== */
footer.site {
  background: var(--c-primary-dark);
  color: #a9b5cc;
  padding: 3.5rem 0 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: #a9b5cc; line-height: 1.7; max-width: 36ch; }
.footer-col h3 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: #a9b5cc;
  padding: .3rem 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--c-gold-light); }
.footer-legal {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  color: #a9b5cc;
  font-size: .8rem;
}
.footer-legal a { color: #a9b5cc; }
.footer-legal a:hover { color: var(--c-gold-light); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ===================================================
   SECTION NUMBERS
=================================================== */
.section-num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--c-gold-dark);
}
.section-num.light { color: rgba(200,169,81,.6); }

/* ===================================================
   CARDS (shared)
=================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7bda5; }

/* ===================================================
   UTILITY
=================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

#contact-sent {
  scroll-margin-top: 80px;
}

/* ===================================================
   PAGES — webapp subpage tweaks
=================================================== */
.page-hero {
  background: var(--c-primary-dark);
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem) clamp(3rem, 6vw, 6rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 200deg at 30% 40%, #0f2347 0deg, #1a3a6b 90deg, #0a1c38 180deg, #0f2347 360deg);
  opacity: .8;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.page-hero-copy .back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  margin-bottom: 1.5rem;
  transition: color var(--t-fast);
}
.page-hero-copy .back-link:hover { color: var(--c-gold-light); }
.page-hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: .75rem;
}
.page-hero-copy .tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  max-width: 50ch;
}
.page-hero-copy .ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.page-hero-mockup {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.05);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 768px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-mockup { display: none; }
}

.cross-links {
  background: var(--c-surface-alt);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.cross-links span { color: var(--c-text-muted); font-size: .9rem; }
.cross-links-apps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cross-link-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-primary);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.cross-link-pill:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .features-bento { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1000px) { .features-bento { grid-template-columns: 1fr 1fr; } }

.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.scenario-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.scenario-card .who {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  margin-bottom: .75rem;
  display: block;
}
.scenario-card h3 { font-size: 1.1rem; color: var(--c-primary); margin-bottom: .5rem; }
.scenario-card p { font-size: .9rem; color: var(--c-text-muted); line-height: 1.7; }
@media (max-width: 768px) { .scenarios { grid-template-columns: 1fr; } }

.mockup-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.mockup-strip-item {
  flex: 0 0 calc(60% - .75rem);
  scroll-snap-align: start;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 640px) { .mockup-strip-item { flex: 0 0 85%; } }

.app-cta-band {
  background: var(--c-primary);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  background-image: radial-gradient(circle at 90% 50%, rgba(200,169,81,.15), transparent 60%);
}
.app-cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.app-cta-band p { color: rgba(255,255,255,.65); margin-top: .5rem; }

.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.page-404 .num-404 {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--c-border);
}
.page-404 h1 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--c-primary); margin-bottom: .75rem; }
.page-404 p { color: var(--c-text-muted); margin-bottom: 2rem; }

.prose {
  max-width: 72ch;
  margin-inline: auto;
  padding-block: 4rem;
}
.prose h1 { color: var(--c-primary); margin-bottom: 1.5rem; font-size: var(--text-3xl); }
.prose h2 { color: var(--c-primary); font-size: var(--text-xl); margin-top: 2rem; margin-bottom: .75rem; }
.prose p { color: var(--c-text-muted); margin-bottom: 1rem; line-height: 1.8; }
.prose ul { padding-left: 1.25rem; list-style: disc; color: var(--c-text-muted); }
.prose ul li { margin-bottom: .4rem; line-height: 1.7; }
.prose a { color: var(--c-primary); text-decoration: underline; }
