/* ==========================================================================
   Meriwise Labs — site styles (v4, hand-built)
   Navy #081321 · Gold #F2C14E · Ivory #FAF6EE · Urbanist + Source Sans 3
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --navy: var(--mw-navy, #081321);
  --navy-2: #0d1b2e;
  --navy-3: #13253d;
  --gold: var(--mw-gold, #F2C14E);
  --gold-deep: #8a6410;          /* gold-family text on light (AA on ivory) */
  --ivory: var(--mw-ivory, #FAF6EE);
  --champagne: var(--mw-champagne, #F7E8C1);
  --slate: var(--mw-slate, #3A4550);
  --white: #fff;
  --ink-soft: #b9c3cf;           /* secondary text on navy */
  --rule-dark: rgba(255, 255, 255, 0.12);
  --rule-light: rgba(8, 19, 33, 0.12);
  --display: var(--mw-font-display, "Urbanist", "Helvetica Neue", Arial, sans-serif);
  --body: var(--mw-font-body, "Source Sans 3", "Helvetica Neue", Arial, sans-serif);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 30px 80px -30px rgba(8, 19, 33, 0.45);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--navy);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--navy);
  font: 400 1.0625rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.light :focus-visible, .surface-light :focus-visible { outline-color: var(--navy); }

::selection { background: var(--gold); color: var(--navy); }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem; left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font: 600 0.8125rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.dark .eyebrow { color: var(--gold); }

.display-1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; }
.display-2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 300; letter-spacing: -0.03em; }
.display-3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; }
.lede { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.6; color: var(--slate); max-width: 58ch; }
.dark .lede { color: var(--ink-soft); }
.muted { color: var(--slate); }
.dark .muted { color: var(--ink-soft); }
.gold-text { color: var(--gold); }
.light .gold-text { color: var(--gold-deep); }
.serif-accent { font-style: italic; font-weight: 300; }

/* Shimmering gold underline for key words in headlines (on dark only) */
.hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--gold) 0%, #ffe39b 45%, var(--gold) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections and surfaces ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }

.dark {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}
.light { background: var(--ivory); color: var(--navy); }
.champagne { background: linear-gradient(180deg, var(--ivory), var(--champagne)); color: var(--navy); }
.white { background: var(--white); color: var(--navy); }

/* Grain over dark surfaces */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* Blueprint grid, masked to fade out */
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line, rgba(255,255,255,0.055)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line, rgba(255,255,255,0.055)) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.light.grid-bg::before, .champagne.grid-bg::before { --grid-line: rgba(8, 19, 33, 0.06); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .lede { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.6; }
.section-head--center .lede { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
}
@media (min-width: 60rem) { .section-head--split { grid-template-columns: 1.1fr 1fr; } }

/* Visible placeholder for facts Ahmed still needs to confirm */
.placeholder {
  display: inline-block;
  padding: 0.15em 0.55em;
  border: 1px dashed currentColor;
  border-radius: 6px;
  font: 600 0.8125rem/1.5 var(--body);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.light .placeholder, .champagne .placeholder, .white .placeholder { color: #7a4e00; background: rgba(242,193,78,0.14); }
.dark .placeholder { color: var(--gold); background: rgba(242,193,78,0.08); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), background-color 200ms ease, box-shadow 220ms ease, border-color 200ms ease, color 200ms ease;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --bg: var(--gold); --fg: var(--navy); box-shadow: 0 10px 30px -12px rgba(242, 193, 78, 0.65); }
.btn--gold:hover { --bg: #f7cf6d; box-shadow: 0 16px 40px -14px rgba(242, 193, 78, 0.8); transform: translateY(-1px); }
.btn--navy:hover { --bg: var(--navy-3); transform: translateY(-1px); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: var(--rule-light); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.24); }
.dark .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { min-height: 2.5rem; padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link svg { width: 1em; height: 1em; transition: transform 200ms var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.dark .text-link { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 300ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 19, 33, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--rule-dark), 0 10px 30px -18px rgba(0,0,0,0.6);
}
.site-header.is-scrolled .header-inner { height: 4rem; }
.brand { position: relative; z-index: 2; display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.brand img { width: auto; height: 2.75rem; transition: height 300ms var(--ease); }
.site-header.is-scrolled .brand img { height: 2.35rem; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 0.25rem; list-style: none; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}
.nav-list a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0.15rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--gold);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  position: absolute;
  left: 50%;
  width: 1.1rem; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 200ms ease;
}
.menu-toggle .bars { top: 50%; transform: translate(-50%, -50%); }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; transform: translateX(-50%); }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translate(-50%, 6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translate(-50%, -6px) rotate(-45deg); }

@media (max-width: 52rem) {
  .menu-toggle { display: inline-block; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding: 6rem var(--gutter) 3rem;
    background: radial-gradient(ellipse at 80% 0%, rgba(242,193,78,0.12), transparent 50%), var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 0s linear 280ms;
  }
  .has-js .site-nav { display: flex; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity 280ms ease; }
  .nav-list { flex-direction: column; gap: 0.25rem; }
  .nav-list a { display: block; padding: 0.6rem 0; font: 300 2.25rem/1.2 var(--display); color: var(--white); border-radius: 0; }
  .nav-list a:hover { background: none; color: var(--gold); }
  .nav-list a[aria-current="page"] { color: var(--gold); }
  .nav-list a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); }
  .site-nav .btn { align-self: flex-start; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
}
/* Without JS the nav simply stays visible as a wrapped row */
@media (max-width: 52rem) {
  html:not(.has-js) .menu-toggle { display: none; }
  html:not(.has-js) .site-nav { position: static; opacity: 1; visibility: visible; padding: 0; background: none; flex-direction: row; }
}

/* ---------- Hero (shared) ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 85% 10%, rgba(242,193,78,0.16), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(60, 110, 190, 0.18), transparent 60%);
}
.pointer-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(28rem 28rem at var(--px, 70%) var(--py, 30%), rgba(242,193,78,0.10), transparent 60%);
  transition: opacity 400ms ease;
}

.page-hero { padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.page-hero .display-1 { max-width: 16ch; margin-top: 0.25rem; }
.page-hero .lede { margin-top: 1.5rem; }
.breadcrumbs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; color: var(--ink-soft); font-size: 0.9rem; list-style: none; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* ---------- Home hero ---------- */
.home-hero { min-height: min(100svh, 62rem); display: flex; align-items: center; }
.home-hero .container { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .home-hero .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.home-hero .display-1 { max-width: 13ch; }
.home-hero .lede { margin-top: 1.6rem; max-width: 50ch; }
.home-hero .btn-row { margin-top: 2.25rem; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-pill b {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(242,193,78,0.14);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  list-style: none;
}
.hero-services li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-services li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Ops constellation ---------- */
.ops {
  --size: min(100%, 34rem);
  position: relative;
  justify-self: center;
  width: var(--size);
  aspect-ratio: 1;
  container-type: inline-size;
  user-select: none;
}
.ops-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ops-ring { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.ops-ring--dash { stroke-dasharray: 2 7; stroke: rgba(242,193,78,0.35); }
.ops-ring--spin { transform-origin: 250px 250px; }
.ops-spoke {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0.18;
  transition: opacity 300ms ease, stroke-width 300ms ease;
}
.ops-orbiter { fill: var(--gold); }
.ops-core-glow { fill: url(#coreGlow); }

.ops-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font: 700 clamp(3.5rem, 27cqi, 9.5rem)/1 var(--display);
  letter-spacing: -0.06em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(242,193,78,0.25);
  pointer-events: none;
}
.ops-core span { color: var(--gold); }

.ops-node {
  position: absolute;
  left: var(--x); top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(4rem, 20cqi, 6.75rem);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--white);
  font: 500 clamp(1.1rem, 6cqi, 1.75rem)/1 var(--display);
  cursor: pointer;
  translate: -50% -50%;
  -webkit-tap-highlight-color: transparent;
}
.ops-node .face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.10), rgba(8,19,33,0.9) 70%), var(--navy);
  box-shadow: inset 0 0 0 6px rgba(8,19,33,0.6), 0 20px 40px -20px rgba(0,0,0,0.8);
  transition: transform 450ms var(--ease), border-color 300ms ease, color 300ms ease, font-weight 300ms ease, box-shadow 400ms ease;
}
.ops-node .face::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--gold) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms ease;
}
.ops-node--ai { --x: 50%; --y: 13%; }
.ops-node--ml { --x: 13%; --y: 70%; }
.ops-node--dev { --x: 87%; --y: 70%; }

.ops-node.is-active .face, .ops-node:focus-visible .face {
  color: var(--gold);
  font-weight: 800;
  border-color: rgba(242,193,78,0.6);
  transform: scale(1.18);
  box-shadow: inset 0 0 0 6px rgba(8,19,33,0.6), 0 0 0 10px rgba(242,193,78,0.06), 0 0 50px rgba(242,193,78,0.35);
}
.ops-node.is-active .face::before { opacity: 1; animation: spin-angle 2.4s linear infinite; }
.ops-node:focus-visible { outline: none; }
.ops-node:focus-visible .face { outline: 2px solid var(--gold); outline-offset: 4px; }

.ops[data-active="ai"] .ops-spoke--ai,
.ops[data-active="ml"] .ops-spoke--ml,
.ops[data-active="dev"] .ops-spoke--dev { opacity: 1; stroke-width: 2; }
.ops[data-active] .ops-core { color: var(--white); }

.ops-caption {
  position: absolute;
  left: 50%; bottom: -0.5rem;
  width: min(100%, 24rem);
  transform: translateX(-50%);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  min-height: 3em;
}
.ops-caption strong { color: var(--gold); font-weight: 600; }
.ops-hint { opacity: 0.7; }

@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4px,-8px); } }
@keyframes float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-7px,-4px); } }
@keyframes float-c { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,5px); } }
@keyframes dash-flow { to { stroke-dashoffset: -40; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ---------- Cards with spotlight + animated border ---------- */
.spot {
  --mx: 50%; --my: 50%;
  position: relative;
  isolation: isolate;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(22rem circle at var(--mx) var(--my), var(--spot-color, rgba(242,193,78,0.10)), transparent 45%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 55%, rgba(242,193,78,0.0) 60%, var(--gold) 80%, rgba(242,193,78,0) 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}
.glow-border:hover::before, .glow-border:focus-within::before { opacity: 1; animation: spin-angle 3s linear infinite; }

/* ---------- Service cards (home) ---------- */
.service-grid { display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(8,19,33,0.04);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 300ms ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .icon-tile { margin-bottom: 1.75rem; }
.service-card h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 0.7rem; }
.service-card p { color: var(--slate); font-size: 1rem; }
.service-card .num { position: absolute; top: 1.5rem; right: 1.6rem; font: 500 0.8125rem/1 var(--display); color: var(--slate); letter-spacing: 0.1em; }
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.service-card .more svg { width: 1em; height: 1em; transition: transform 250ms var(--ease); }
.service-card:hover .more svg { transform: translateX(4px); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(242,193,78,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-3), var(--navy));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 14px 30px -16px rgba(8,19,33,0.7);
}
.icon-tile svg { width: 2.6rem; height: 2.6rem; }
.icon-tile--lg { width: 6rem; height: 6rem; border-radius: 22px; }
.icon-tile--lg svg { width: 3.4rem; height: 3.4rem; }
.ico { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-soft { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: var(--gold); }
.ico-pulse { transform-box: fill-box; transform-origin: center; }

/* ---------- Statement band (home) ---------- */
.statement { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .statement { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
.statement .display-2 em { font-style: normal; color: var(--gold); }
.pillars { display: grid; gap: 1rem; list-style: none; }
.pillar {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.pillar h3 { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.25rem; font-weight: 500; margin-bottom: 0.35rem; }
.pillar h3 small { font: 600 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.pillar p { color: var(--ink-soft); }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 1rem; list-style: none; counter-reset: step; }
@media (min-width: 64rem) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 2rem; right: 2rem; top: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(242,193,78,0.15));
    transform-origin: left;
  }
}
.step { position: relative; padding: 0 0 0 4.5rem; }
@media (min-width: 64rem) { .step { padding: 5rem 0 0; } }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  border: 1px solid rgba(242,193,78,0.5);
  background: var(--navy);
  color: var(--gold);
  font: 500 1rem/1 var(--display);
  box-shadow: 0 0 0 6px var(--navy);
}
.step h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 63.99rem) {
  .timeline::before { content: ""; position: absolute; left: 1.75rem; top: 1rem; bottom: 1rem; width: 1px; background: linear-gradient(var(--gold), rgba(242,193,78,0.1)); }
  .step { padding-bottom: 1.75rem; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  gap: 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; flex-shrink: 0; gap: 0.85rem; padding-right: 0.85rem; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--rule-light);
  border-radius: 999px;
  background: var(--white);
  font: 500 1.0625rem/1 var(--display);
  white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,0.2); }
.dark .chip { background: rgba(255,255,255,0.04); border-color: var(--rule-dark); color: var(--white); }
.marquee + .marquee { margin-top: 0.85rem; }
@keyframes marquee { to { transform: translateX(-100%); } }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tag {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--rule-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}
.dark .tag { background: rgba(255,255,255,0.04); border-color: var(--rule-dark); color: var(--ink-soft); }

/* ---------- Engagement / pricing teaser ---------- */
.engage { display: grid; gap: 1.25rem; }
@media (min-width: 60rem) { .engage { grid-template-columns: 1.1fr 1fr; } }
.panel {
  position: relative;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border: 1px solid var(--rule-light);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
}
.panel--navy { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: var(--white); border-color: transparent; overflow: hidden; }
.panel--navy .muted { color: var(--ink-soft); }
.panel h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: 0.8rem; }
.check-list { display: grid; gap: 0.8rem; margin-top: 1.5rem; list-style: none; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: rgba(242,193,78,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a6410' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.panel--navy .check-list li::before, .dark .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F2C14E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E");
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } .faq-layout .section-head { position: sticky; top: 7rem; align-self: start; } }
.faq { border-top: 1px solid var(--rule-light); }
.faq details { border-bottom: 1px solid var(--rule-light); }
.faq summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font: 500 1.2rem/1.35 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--rule-light);
  border-radius: 50%;
  transition: background-color 250ms ease, border-color 250ms ease, transform 400ms var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.8rem; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 400ms var(--ease);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { background: var(--navy); border-color: var(--navy); color: var(--gold); transform: rotate(180deg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .plus { border-color: var(--navy); }
.faq .answer { padding: 0 3.5rem 1.6rem 0; color: var(--slate); }
.faq .answer p + p { margin-top: 0.75rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(242,193,78,0.22), transparent 60%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(60,110,190,0.25), transparent 60%),
    var(--navy);
  color: var(--white);
  isolation: isolate;
}
.cta .display-2 { max-width: 18ch; }
.cta .lede { margin-top: 1.2rem; color: var(--ink-soft); }
.cta .btn-row { margin-top: 2rem; }
.cta-mark {
  position: absolute;
  right: -3rem; bottom: -3rem;
  z-index: -1;
  width: clamp(12rem, 30vw, 22rem);
  opacity: 0.12;
  transform: rotate(-8deg);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0 2rem;
  background: var(--navy);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-dark);
}
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 3.25rem; width: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; }
.site-footer .muted { color: var(--ink-soft); }
.footer-col h2 { margin-bottom: 1rem; font: 600 0.8rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); }
.footer-col ul { display: grid; gap: 0.55rem; list-style: none; }
.footer-col a { color: var(--ink-soft); text-decoration: none; transition: color 200ms ease; }
.footer-col a:hover { color: var(--gold); }
.footer-email { font: 400 clamp(1.4rem, 1rem + 1.5vw, 2rem)/1.2 var(--display); color: var(--white) !important; text-decoration: none; border-bottom: 1px solid rgba(242,193,78,0.5); }
.footer-email:hover { color: var(--gold) !important; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.9rem;
}
.footer-giant {
  margin-top: 3rem;
  font: 200 clamp(4rem, 17vw, 15rem)/0.8 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.09);
  white-space: nowrap;
  user-select: none;
  text-align: center;
}
.to-top { color: var(--ink-soft); text-decoration: none; }
.to-top:hover { color: var(--gold); }

/* ---------- Services page ---------- */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
  list-style: none;
}
.service-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.service-nav a:hover { border-color: var(--gold); background: rgba(242,193,78,0.08); }
.service-nav a span { color: var(--gold); font-family: var(--display); }

.svc { border-top: 1px solid var(--rule-light); }
.svc-layout { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) {
  .svc-layout { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; }
  .svc-aside { position: sticky; top: 7rem; align-self: start; }
}
.svc-aside .num { display: block; margin: 1.5rem 0 0.75rem; font: 500 0.875rem/1 var(--display); letter-spacing: 0.14em; color: var(--slate); }
.svc-aside h2 { margin-bottom: 1rem; }
.svc-aside .lede { font-size: 1.125rem; }
.svc-aside .btn-row { margin-top: 1.75rem; }
.svc-visual {
  position: relative;
  margin-top: 2rem;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.svc-visual svg { width: 100%; height: 100%; }
.svc-blocks { display: grid; gap: 1.25rem; }
.svc-block {
  padding: 1.75rem;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--white);
}
.svc-block h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }
.svc-block h3::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,193,78,0.2); }
.svc-block p { color: var(--slate); }
.svc-block p + p { margin-top: 0.75rem; }
.bullets { display: grid; gap: 0.7rem; list-style: none; }
.bullets li { position: relative; padding-left: 1.6rem; color: var(--slate); }
.bullets li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 0.8rem; height: 1.5px; background: var(--navy); }
.bullets--cols { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.7rem 1.5rem; }
.note { font-size: 0.875rem; color: var(--slate); margin-top: 1rem; }
.svc:nth-of-type(even) { background: var(--white); }
.svc:nth-of-type(even) .svc-block { background: var(--ivory); }

/* ---------- Work page ---------- */
.empty-state {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border: 1px dashed rgba(8,19,33,0.25);
  border-radius: calc(var(--radius) + 6px);
  background:
    repeating-linear-gradient(135deg, rgba(8,19,33,0.025) 0 12px, transparent 12px 24px),
    var(--white);
}
@media (min-width: 56rem) { .empty-state { grid-template-columns: 1.3fr 1fr; } }
.empty-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, rgba(8,19,33,0.05) 30%, rgba(8,19,33,0.1) 50%, rgba(8,19,33,0.05) 70%);
  background-size: 250% 100%;
  display: grid;
  place-items: center;
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
@keyframes shimmer { to { background-position: -150% 0; } }

.example-list { display: grid; gap: 1.5rem; }
.example {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border: 1px solid var(--rule-dark);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
@media (min-width: 62rem) { .example { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.example-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.example-top .example-label { margin-bottom: 0; }
.example-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px dashed rgba(242,193,78,0.6);
  border-radius: 999px;
  color: var(--gold);
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.example h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; margin-bottom: 0.8rem; }
.example .muted { margin-bottom: 1.25rem; }
.phases { display: grid; gap: 0; list-style: none; counter-reset: ph; }
.phases li { position: relative; padding: 0 0 1.25rem 2.75rem; }
.phases li::before {
  counter-increment: ph;
  content: counter(ph);
  position: absolute;
  left: 0; top: 0;
  display: grid; place-items: center;
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  background: rgba(242,193,78,0.14);
  color: var(--gold);
  font: 600 0.85rem/1 var(--display);
}
.phases li::after { content: ""; position: absolute; left: 0.92rem; top: 2.1rem; bottom: 0.2rem; width: 1px; background: var(--rule-dark); }
.phases li:last-child::after { display: none; }
.phases li:last-child { padding-bottom: 0; }
.phases strong { display: block; color: var(--white); font-weight: 600; }
.phases span { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- About page ---------- */
.name-split { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .name-split { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.name-part {
  padding: 2.25rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--rule-light);
  background: var(--white);
}
.name-part .word { font: 300 clamp(3rem, 2rem + 4vw, 5rem)/1 var(--display); letter-spacing: -0.04em; }
.name-part .word b { font-weight: 300; color: var(--gold-deep); }
.name-part .gloss { margin-top: 0.75rem; font-weight: 600; }
.name-part p { margin-top: 0.75rem; color: var(--slate); }
.name-plus { display: grid; place-items: center; font: 200 3rem/1 var(--display); color: var(--slate); }
.name-result {
  margin-top: 1.25rem;
  padding: 2rem 2.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.name-result .word { font: 300 clamp(2.4rem, 1.8rem + 3vw, 4rem)/1 var(--display); letter-spacing: -0.03em; }
.name-result .say { color: var(--ink-soft); }
.name-result .say b { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }

.logo-anatomy { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .logo-anatomy { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(ellipse at 50% 0%, rgba(242,193,78,0.14), transparent 60%), var(--navy-2);
  border: 1px solid var(--rule-dark);
}
.logo-stage img { width: min(100%, 30rem); }
.anatomy-list { display: grid; gap: 1.25rem; list-style: none; counter-reset: an; }
.anatomy-list li { position: relative; padding-left: 3.25rem; }
.anatomy-list li::before {
  counter-increment: an;
  content: counter(an);
  position: absolute;
  left: 0; top: 0;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(242,193,78,0.5);
  color: var(--gold);
  font: 500 0.9rem/1 var(--display);
}
.anatomy-list strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 0.2rem; }
.anatomy-list span { color: var(--ink-soft); }

.founder {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--white);
  border: 1px solid var(--rule-light);
}
@media (min-width: 52rem) { .founder { grid-template-columns: auto 1fr; gap: 3rem; } }
.founder-avatar {
  display: grid;
  place-items: center;
  width: clamp(8rem, 6rem + 6vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px var(--rule-light);
}
.founder-avatar img { width: 100%; }
.founder h3 { font-size: 1.9rem; font-weight: 400; }
.founder .role { margin-top: 0.25rem; color: var(--slate); font-weight: 600; }
.founder p.bio { margin-top: 1rem; color: var(--slate); max-width: 60ch; }

.two-col { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; } }
.value-card { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--rule-dark); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); }
.value-card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.75rem; }
.value-card h3 span { color: var(--gold); }
.value-card .bullets li { color: var(--ink-soft); }
.value-card .bullets li::before { background: var(--gold); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .contact-layout { grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: start; } }
.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--white);
  border: 1px solid var(--rule-light);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; margin-bottom: 0.45rem; font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(8,19,33,0.22);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--navy);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(242,193,78,0.35); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { display: block; margin-top: 0.35rem; color: #b3261e; font-size: 0.875rem; font-weight: 600; }
.field .error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(8,19,33,0.22);
  border-radius: 999px;
  background: var(--ivory);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 200ms ease;
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.form-foot small { color: var(--slate); max-width: 36ch; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 10px; background: var(--champagne); font-weight: 600; }
.form-status:empty { display: none; }

.contact-aside { display: grid; gap: 1.25rem; }
.info-card { padding: 1.75rem; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.info-card h2 { font: 600 0.8rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.info-card a.big { font: 400 1.35rem/1.3 var(--display); color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(242,193,78,0.5); word-break: break-all; }
.info-card a.big:hover { color: var(--gold); }
.info-card p { color: var(--ink-soft); }
.info-card p + p { margin-top: 0.6rem; }
.info-card--light { background: var(--white); color: var(--navy); border: 1px solid var(--rule-light); }
.info-card--light h2 { color: var(--slate); }
.info-card--light p { color: var(--slate); }

.next-steps { display: grid; gap: 1.25rem; list-style: none; counter-reset: ns; }
@media (min-width: 52rem) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-steps li { position: relative; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--rule-dark); background: rgba(255,255,255,0.03); }
.next-steps li::before {
  counter-increment: ns;
  content: "0" counter(ns);
  display: block;
  margin-bottom: 1.25rem;
  font: 300 2.5rem/1 var(--display);
  color: var(--gold);
}
.next-steps h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
.next-steps p { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 8rem 0 4rem; }
.nf .code { font: 200 clamp(7rem, 25vw, 16rem)/0.9 var(--display); letter-spacing: -0.06em; }
.nf .code span { color: var(--gold); }
.nf .lede { margin: 1.25rem auto 2rem; }
.nf .btn-row { justify-content: center; }

/* ---------- Reveal + motion (only when motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .has-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .has-js [data-reveal].is-in { opacity: 1; transform: none; }

  .has-js .timeline::before { transform: scaleX(0); transition: transform 1600ms var(--ease) 200ms; }
  .has-js .timeline.is-in::before { transform: scaleX(1); }

  main { animation: page-in 600ms ease both; }
  @keyframes page-in { from { opacity: 0; } }

  .hl { animation: shine 6s ease-in-out infinite; }
  @keyframes shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

  .ops-node--ai .face { animation: float-a 6.5s ease-in-out infinite; }
  .ops-node--ml .face { animation: float-b 7.4s ease-in-out infinite; }
  .ops-node--dev .face { animation: float-c 6.9s ease-in-out infinite; }
  .ops-node.is-active .face, .ops-node:focus-visible .face { animation-play-state: paused; }
  .ops[data-active] .ops-spoke { animation: dash-flow 1.2s linear infinite; }
  .ops-ring--spin { animation: ring-spin 60s linear infinite; }
  .ops-ring--spin-rev { animation-direction: reverse; animation-duration: 90s; }
  .ops.is-paused .face, .ops.is-paused .ops-ring--spin, .ops.is-paused .ops-orbit-group { animation-play-state: paused; }
  .ops-orbit-group { transform-origin: 250px 250px; animation: ring-spin 24s linear infinite; }

  .marquee-track { animation: marquee var(--speed, 40s) linear infinite; }
  .marquee--rev .marquee-track { animation-direction: reverse; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  .slot { animation: shimmer 2.8s ease-in-out infinite; }
  .ico-pulse { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
  .scan { animation: scan 3.2s ease-in-out infinite; }
  @keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--scan, 120px)); } }
  .blink { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .ops-pause { display: none; }
}

.ops-pause {
  position: absolute;
  right: 0; top: 0;
  z-index: 3;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  background: rgba(8,19,33,0.6);
  color: var(--ink-soft);
  font: 600 0.8rem/1 var(--body);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 200ms ease, color 200ms ease, border-color 200ms ease;
}
.ops-pause:hover, .ops-pause:focus-visible { opacity: 1; color: var(--gold); border-color: var(--gold); }

@media (max-width: 40rem) {
  .faq .answer { padding-right: 0; }
  .home-hero { min-height: 0; }
  .ops-caption { bottom: -1.5rem; }
}

/* Decorative rings on inner-page heroes */
.hero-rings {
  position: absolute;
  right: -8rem; top: 50%;
  z-index: -1;
  width: min(44rem, 60vw);
  transform: translateY(-45%);
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
  pointer-events: none;
}
.hero-rings .dash { stroke: rgba(242,193,78,0.25); stroke-dasharray: 2 8; }
.hero-rings .dot { fill: var(--gold); stroke: none; }
.hero-rings-orbit { transform-origin: 300px 300px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-rings-orbit { animation: ring-spin 40s linear infinite; }
  .hero-rings-orbit.rev { animation-direction: reverse; animation-duration: 55s; }
}
@media (max-width: 52rem) { .hero-rings { opacity: 0.5; right: -14rem; width: 30rem; } }


/* Brand intro: plays once per session on Home. Kept from v3, polished. */
.brand-intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .intro-active .brand-intro {
    --intro-time: 2.9s;
    --intro-exit-time: 3.5s;
    --intro-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--mw-navy);
  }

  .intro-playing .brand-intro {
    animation: intro-exit var(--intro-exit-time) ease both;
  }

  .intro-logo {
    display: block;
    inline-size: min(82%, 38rem);
    block-size: auto;
    overflow: visible;
    font-family: var(--mw-font-display);
    font-weight: 200;
  }

  .intro-type {
    fill: var(--mw-white);
    font-size: 166px;
  }

  .intro-gold {
    fill: var(--mw-gold);
  }

  .intro-rays,
  .intro-rule {
    stroke: var(--mw-gold);
  }

  /* Resting pose is the opening frame, so the finished lockup never flashes first. */
  .intro-w {
    font-size: 205px;
    font-weight: 800;
    transform: translate(-66.5px, 16px);
  }

  .intro-letter,
  .intro-sun,
  .intro-dot,
  .intro-rays line,
  .intro-labs {
    opacity: 0;
  }

  .intro-rule-mask {
    width: 0;
  }

  .intro-playing .intro-rays line {
    animation: intro-ray 140ms ease-out var(--ray-delay) both;
  }

  .intro-playing .intro-w {
    animation: intro-w var(--intro-time) var(--intro-ease) both;
  }

  .intro-playing .intro-letter {
    animation: intro-letter var(--intro-time) var(--intro-ease) both;
  }

  .intro-playing .intro-sun {
    animation: intro-sun var(--intro-time) var(--intro-ease) both;
  }

  .intro-playing .intro-dot {
    animation: intro-dot var(--intro-time) var(--intro-ease) both;
  }

  .intro-playing .intro-rule-mask {
    animation: intro-rule-draw var(--intro-time) ease-out both;
  }

  .intro-labs {
    font-size: 33.4px;
    letter-spacing: 0.875em;
  }

  .intro-playing .intro-labs {
    animation: intro-labs var(--intro-time) ease-out both;
  }

  @keyframes intro-exit {
    0%, 86% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
  }

  @keyframes intro-w {
    0% {
      opacity: 0;
      font-size: 205px;
      font-weight: 800;
      transform: translate(-66.5px, 32px);
    }
    14%, 40% {
      opacity: 1;
      font-size: 205px;
      font-weight: 800;
      transform: translate(-66.5px, 16px);
    }
    70%, 100% {
      opacity: 1;
      font-size: 166px;
      font-weight: 200;
      transform: translate(0, 0);
    }
  }

  @keyframes intro-letter {
    0%, 41% { opacity: 0; transform: translate(var(--from-x), 18px); }
    70%, 100% { opacity: 1; transform: translate(0, 0); }
  }

  @keyframes intro-sun {
    0%, 16% { opacity: 0; transform: translate(-50px, 20px); }
    21%, 40% { opacity: 1; transform: translate(-50px, 10px); }
    70%, 100% { opacity: 1; transform: translate(0, 0); }
  }

  @keyframes intro-ray {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes intro-dot {
    0%, 31% { opacity: 0; transform: translate(-77px, 20px); }
    36%, 40% { opacity: 1; transform: translate(-77px, 12px); }
    70%, 100% { opacity: 1; transform: translate(0, 0); }
  }

  @keyframes intro-rule-draw {
    0%, 70% { width: 0; }
    81%, 100% { width: 137px; }
  }

  @keyframes intro-labs {
    0%, 71% { opacity: 0; }
    82%, 100% { opacity: 1; }
  }
}
