/* =============================================================
   GenovaIQ — Brand Design System
   Editorial dark-first identity. Copper accent. Fraunces + Inter.
   ============================================================= */

/* ---------- Custom brand font ---------- */
@font-face {
  font-family: 'GenovaIQ';
  src: url('../fonts/GenovaIQ.ttf') format('truetype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Surface — deep navy-ink */
  --ink:        #0A1018;
  --ink-2:      #121826;
  --ink-3:      #1A2333;
  --navy-deep:  #0F2A4A;
  --paper:      #FAFAF7;
  --paper-2:    #DDE2EA;
  --paper-3:    #C8CFDB;
  --paper-4:    #B0B8C6;

  /* Accent — vivid orange + supporting blue */
  --copper:        #E85D2C;
  --copper-bright: #FF6F3D;
  --copper-soft:   rgba(232, 93, 44, 0.12);
  --gold:          #FF8957;
  --blue-accent:   #1E88E5;

  /* Functional */
  --rule:       rgba(250, 248, 243, 0.08);
  --rule-strong: rgba(250, 248, 243, 0.16);
  --shadow-lg:  0 30px 80px -20px rgba(0,0,0,0.6);
  --shadow-md:  0 10px 40px -10px rgba(0,0,0,0.4);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container:  1280px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(3.5rem, 8vw, 7rem);

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Light mode override */
[data-theme="light"] {
  --ink:        #FAFAF7;
  --ink-2:      #F2F2EE;
  --ink-3:      #E8E8E2;
  --paper:      #0A1018;
  --paper-2:    #2A3142;
  --paper-3:    #4A5260;
  --paper-4:    #6A7180;
  --rule:       rgba(10, 16, 24, 0.10);
  --rule-strong: rgba(10, 16, 24, 0.20);
  --copper-soft: rgba(232, 93, 44, 0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Grain texture overlay ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 1;
  mix-blend-mode: overlay;
}
[data-theme="light"] body::before { mix-blend-mode: multiply; opacity: 0.5; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 6.75rem); font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.8vw, 4.25rem); font-weight: 320; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 380; letter-spacing: -0.02em; }
h4 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 450; }

p { color: var(--paper-2); max-width: 62ch; }
.lead { font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.55; color: var(--paper-2); max-width: 56ch; }

em, .italic { font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--copper);
  display: inline-block;
}

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section--hero  { padding-block: clamp(5rem, 11vw, 9rem) clamp(4rem, 7vw, 6rem); }
.section--surface { background: var(--ink-2); }

.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ---------- Top scroll progress ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--copper) 0%, var(--gold) 100%);
  z-index: 100;
  transition: width 80ms linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 1.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease-out), background 400ms var(--ease-out);
}
.nav--scrolled { border-bottom-color: var(--rule); }
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand__mark {
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__mark svg { height: 100%; width: auto; display: block; }
.brand__wordmark { height: 1.4rem; width: auto; display: block; color: var(--paper); }
.brand__iq { color: var(--copper); font-weight: 800; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: 0.9375rem;
  color: var(--paper-2);
  position: relative;
  transition: color 200ms var(--ease-out);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a.is-active { color: var(--paper); }
.nav__links a.is-active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--copper);
}

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.nav__toggle svg { width: 1.125rem; height: 1.125rem; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn--secondary { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  transform: translateY(-100%);
  transition: transform 500ms var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 320;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all 280ms var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn__arrow {
  display: inline-block;
  transition: transform 280ms var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--copper);
  color: #fff;
}
.btn--primary:hover {
  background: var(--copper-bright);
  box-shadow: 0 12px 32px -10px rgba(201,123,71,0.5);
}

.btn--secondary {
  border-color: var(--rule-strong);
  color: var(--paper);
  background: transparent;
}
.btn--secondary:hover {
  border-color: var(--paper-3);
  background: color-mix(in oklab, var(--paper) 5%, transparent);
}

.btn--ghost {
  color: var(--paper);
  padding: 0.5rem 0;
  border-radius: 0;
}
.btn--ghost::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--paper);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}

.theme-toggle {
  width: 2.5rem; height: 2.5rem;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--paper-2);
  transition: all 280ms var(--ease-out);
}
.theme-toggle:hover { color: var(--paper); border-color: var(--rule-strong); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(6rem, 11vw, 9rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.hero__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(60% 40% at 30% 30%, rgba(201,123,71,0.18), transparent 60%),
    radial-gradient(50% 50% at 75% 60%, rgba(212,165,116,0.12), transparent 65%),
    radial-gradient(40% 60% at 50% 100%, rgba(201,123,71,0.08), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: drift 22s var(--ease-in-out) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
.hero__content { position: relative; z-index: 2; max-width: 1100px; }
.hero h1 { margin-block: 1.75rem 1.75rem; }
.hero h1 .hl {
  font-style: italic;
  font-weight: 250;
  color: var(--copper);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero__lede { margin-bottom: 2.5rem; max-width: 60ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }

.hero__meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2.5rem;
}
.hero__meta-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 0.5rem;
}
.hero__meta-item .value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 380;
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section-head h2 { max-width: 18ch; }
.section-head__intro { padding-bottom: 0.5rem; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
  .section-head__intro { padding-bottom: 0; }
}

/* ---------- Pillars (4-up grid for values) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: 2.25rem 1.875rem 2.25rem;
  background: var(--ink);
  position: relative;
  transition: background 400ms var(--ease-out);
  display: flex;
  flex-direction: column;
}
.pillar:hover { background: var(--ink-2); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--paper-4);
  margin-bottom: 1.5rem;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 320;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  min-height: 2lh;
}
.pillar__title em { color: var(--copper); }
.pillar__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-3);
}

/* ---------- Steps (How it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 1rem; } }

.step {
  padding: 2.5rem 2rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  position: relative;
  transition: all 360ms var(--ease-out);
}
.step:hover { border-color: var(--copper-soft); transform: translateY(-3px); }
.step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 250;
  font-variation-settings: 'opsz' 144;
  font-style: italic;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.step h3 { margin-bottom: 0.875rem; min-height: 2lh; }
.step p { color: var(--paper-3); font-size: 0.9375rem; }

/* ---------- Split (Human / Agent) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--ink-2);
}
.split__divider { background: var(--rule); }
.split__col { padding: 3.5rem 2.75rem; transition: background 360ms var(--ease-out); }
.split__col:hover { background: rgba(255, 255, 255, 0.025); }
.split__col--agent:hover { background: rgba(232, 93, 44, 0.05); }
.split__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-4);
  margin-bottom: 1.25rem;
}
.split__col--agent .split__label { color: var(--copper); }
.split__col h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
.split__col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.split__col li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.875rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--paper-2);
}
.split__col li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--paper-4);
  margin-top: 0.5rem;
  justify-self: start;
}
.split__col--agent li::before { background: var(--copper); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split__divider { height: 1px; width: 100%; }
  .split__col { padding: 2.25rem 1.75rem; }
}

/* ---------- Industry cards ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
@media (max-width: 880px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  padding: 3rem 2.5rem;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  position: relative;
  overflow: hidden;
  transition: all 360ms var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.industry-card:hover { border-color: var(--rule-strong); }
.industry-card--featured {
  border-color: rgba(201, 123, 71, 0.25);
  background: linear-gradient(160deg, rgba(201,123,71,0.06) 0%, var(--ink-2) 60%, var(--ink) 100%);
}
.industry-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
}
.industry-card h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.industry-card p { color: var(--paper-3); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.industry-card__stats {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.industry-card__stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 320;
  letter-spacing: -0.025em;
  color: var(--paper);
  display: block;
}
.industry-card__stat .label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-4);
  margin-top: 0.25rem;
  display: block;
}

/* ---------- Careers / open roles list ---------- */
.roles {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
}
.role-card {
  padding: 1.75rem 2rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 240ms var(--ease-out);
}
.role-card:hover { border-color: var(--rule-strong); }
.role-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-4);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.role-card__title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}
.role-card__body {
  color: var(--paper-3);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 60ch;
}
.role-card__empty {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--rule);
  color: var(--paper-3);
  background: rgba(255,255,255,0.01);
}
@media (max-width: 720px) {
  .role-card { grid-template-columns: 1fr; }
}

/* ---------- Big quote / manifesto block ---------- */
.quote-block {
  padding: clamp(3rem, 7vw, 6rem) 0;
  text-align: left;
}
.quote-block .serif-quote {
  font-size: clamp(1.875rem, 4.6vw, 4rem);
  max-width: 22ch;
}
.quote-block .quote-attr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.quote-block .quote-attr::before {
  content: ""; width: 1.75rem; height: 1px; background: var(--copper);
}

/* ---------- Manifesto / values list ---------- */
.tenets {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.tenet {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 760px) {
  .tenet { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
}
.tenet__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 250;
  font-variation-settings: 'opsz' 144;
  color: var(--copper);
  line-height: 1;
}
.tenet h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.tenet p { color: var(--paper-2); font-size: 1.0625rem; max-width: 60ch; }
.tenet h3 em { color: var(--copper); font-style: italic; font-weight: 300; }

/* ---------- CTA banner ---------- */
.cta-band {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
}
.cta-band h2 { max-width: 16ch; }

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}
.form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: grid; gap: 0.5rem; }
.form__field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.form__field input,
.form__field textarea,
.form__field select {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.875rem 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--paper);
  transition: border-color 240ms var(--ease-out);
}
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: 0;
  border-bottom-color: var(--copper);
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__field select option { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  border-top: 1px solid var(--rule);
  margin-top: clamp(4rem, 8vw, 7rem);
  position: relative;
  z-index: 2;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.footer h4 a:hover { color: var(--copper); }
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer__col a { font-size: 0.9375rem; color: var(--paper-2); transition: color 200ms var(--ease-out); }
.footer__col a:hover { color: var(--copper); }
.footer__brand p { font-size: 0.9375rem; color: var(--paper-3); margin-top: 1rem; max-width: 32ch; }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--paper-4);
  letter-spacing: 0.04em;
}

/* ---------- Big wordmark display ---------- */
.wordmark-display {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(4rem, 18vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--paper);
  font-variation-settings: 'opsz' 144;
  margin-block: 4rem 2rem;
}
.wordmark-display em { color: var(--copper); font-weight: 200; }

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  padding: 2rem 1.5rem;
  background: var(--ink);
}
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 320;
  letter-spacing: -0.025em;
  color: var(--paper);
  display: block;
  margin-bottom: 0.375rem;
}
.stat-cell .num em { color: var(--copper); font-style: italic; font-weight: 250; }
.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}

/* ---------- Page header (non-home) ---------- */
.page-head {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
}
.page-head h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-block: 1.5rem 1.5rem;
}
.page-head .lead { max-width: 60ch; }

/* ---------- Industries hero PRISM mark ---------- */
.industries-prism {
  position: absolute;
  top: 38%;
  right: clamp(2rem, 6vw, 6rem);
  transform: translateY(-50%);
  width: clamp(220px, 26vw, 360px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.industries-prism__shape {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
}
.reveal.is-visible .industries-prism__shape {
  animation: industries-prism-shape-draw 1.6s var(--ease-out) 0.3s forwards;
}
@keyframes industries-prism-shape-draw { to { stroke-dashoffset: 0; } }
.industries-prism__beam-in {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.reveal.is-visible .industries-prism__beam-in {
  animation: industries-prism-beam-draw 0.7s var(--ease-out) 1.4s forwards;
}
@keyframes industries-prism-beam-draw { to { stroke-dashoffset: 0; } }
.industries-prism__entry {
  opacity: 0;
}
.reveal.is-visible .industries-prism__entry {
  animation: industries-prism-entry-fade 0.4s var(--ease-out) 2s forwards;
}
@keyframes industries-prism-entry-fade { to { opacity: 1; } }
.industries-prism__spectrum line {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}
.reveal.is-visible .industries-prism__spectrum line {
  animation: industries-prism-spectrum-draw 0.8s var(--ease-out) forwards, industries-prism-pulse 4s ease-in-out infinite;
}
.reveal.is-visible .industries-prism__spectrum line:nth-child(1) { animation-delay: 2.1s, 6s; }
.reveal.is-visible .industries-prism__spectrum line:nth-child(2) { animation-delay: 2.25s, 6.2s; }
.reveal.is-visible .industries-prism__spectrum line:nth-child(3) { animation-delay: 2.4s, 6.4s; }
.reveal.is-visible .industries-prism__spectrum line:nth-child(4) { animation-delay: 2.55s, 6.6s; }
.reveal.is-visible .industries-prism__spectrum line:nth-child(5) { animation-delay: 2.7s, 6.8s; }
@keyframes industries-prism-spectrum-draw { to { stroke-dashoffset: 0; } }
@keyframes industries-prism-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (max-width: 980px) {
  .industries-prism { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .industries-prism__shape, .industries-prism__beam-in, .industries-prism__spectrum line {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .industries-prism__entry { animation: none; opacity: 1; }
}

/* ---------- Hero infinity lockup ---------- */
.hero__pursuit {
  position: absolute;
  top: 50%;
  right: clamp(2rem, 6vw, 6rem);
  transform: translateY(-50%);
  width: clamp(260px, 28vw, 380px);
  z-index: 1;
  pointer-events: none;
  text-align: center;
}
.hero__pursuit-mark {
  width: 100%;
  height: auto;
  display: block;
}
.hero__pursuit-mark path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: pursuit-draw 2s var(--ease-out) forwards;
}
.hero__pursuit-mark path:nth-of-type(2) { animation-delay: 1.4s; }
.hero__pursuit-mark path:nth-of-type(1) { animation-delay: 0.4s; }
@keyframes pursuit-draw { to { stroke-dashoffset: 0; } }
.hero__pursuit-line {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 320;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--paper-2);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  opacity: 0;
  animation: pursuit-line-fade 1s var(--ease-out) 2.6s forwards;
}
@keyframes pursuit-line-fade { to { opacity: 1; } }
@media (max-width: 980px) {
  .hero__pursuit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__pursuit-mark path { animation: none; stroke-dashoffset: 0; }
  .hero__pursuit-line { animation: none; opacity: 1; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Stroke-draw animation on the infinity mark ---------- */
@keyframes infinity-draw {
  from { stroke-dashoffset: 320; }
  to   { stroke-dashoffset: 0; }
}
/* Nav infinity: animates on page load (always above the fold) */
.brand__mark svg path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: infinity-draw 1.4s var(--ease-out) 0.2s forwards;
}
/* Stat infinity SVGs: animate when their reveal container becomes visible */
.industry-card__stat svg path,
.stat-cell svg path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.reveal.is-visible .industry-card__stat svg path,
.reveal.is-visible .stat-cell svg path {
  animation: infinity-draw 1.6s var(--ease-out) 0.4s forwards;
}

/* ---------- Hover glow on cards ---------- */
.pillar {
  transition: background 400ms var(--ease-out), box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.pillar:hover {
  box-shadow: 0 0 40px -8px rgba(232, 93, 44, 0.22), inset 0 0 0 1px rgba(232, 93, 44, 0.18);
  transform: translateY(-2px);
}
.step {
  transition: all 360ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.step:hover {
  box-shadow: 0 14px 44px -12px rgba(232, 93, 44, 0.28), inset 0 0 0 1px rgba(232, 93, 44, 0.18);
}
.industry-card {
  transition: all 360ms var(--ease-out), box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.industry-card:hover {
  box-shadow: 0 24px 64px -18px rgba(58, 175, 169, 0.22), inset 0 0 0 1px rgba(58, 175, 169, 0.22);
  transform: translateY(-3px);
}
.product-shot {
  transition: box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.product-shot:hover {
  box-shadow:
    0 30px 80px -10px rgba(0,0,0,0.7),
    0 0 0 1px rgba(58, 175, 169, 0.3),
    0 24px 60px -14px rgba(58, 175, 169, 0.22);
  transform: translateY(-3px);
}

/* ---------- Live status pulse dot (eyebrow modifier) ---------- */
.eyebrow--live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #3aafa9;
  box-shadow: 0 0 0 0 rgba(58, 175, 169, 0.65);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(58, 175, 169, 0.65); }
  60%  { box-shadow: 0 0 0 10px rgba(58, 175, 169, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 175, 169, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__aurora { animation: none; }
  html { scroll-behavior: auto; }
  .brand__mark svg path,
  .industry-card__stat svg path,
  .stat-cell svg path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .eyebrow--live::before { animation: none; }
  .pillar:hover, .step:hover, .industry-card:hover, .product-shot:hover { transform: none; }
}

/* ---------- Product screenshot frame ---------- */
.product-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  background: var(--ink-2);
  position: relative;
  z-index: 2;
}
.product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Annotated product shots (numbered hot-spots + callout list) ---------- */
.product-shot.annotated { position: relative; }
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(232, 93, 44, 0.65), 0 4px 14px rgba(0,0,0,0.4);
  animation: hotspot-pulse 2.4s var(--ease-out) infinite;
  z-index: 3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease-out);
}
.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.callout {
  scroll-margin-top: 100px;
}
.callout:target {
  animation: callout-flash 1.6s var(--ease-out);
}
@keyframes callout-flash {
  0%   { background: rgba(232, 93, 44, 0.28); }
  100% { background: var(--ink); }
}
@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 44, 0.65), 0 4px 14px rgba(0,0,0,0.4); }
  50%      { box-shadow: 0 0 0 14px rgba(232, 93, 44, 0), 0 4px 14px rgba(0,0,0,0.4); }
}
.callout-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) {
  .callout-grid { grid-template-columns: 1fr; }
}
.callout {
  background: var(--ink);
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.875rem;
  align-items: start;
  transition: background 300ms var(--ease-out);
}
.callout:hover { background: var(--ink-2); }
.callout__num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--copper);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.callout p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: none;
}
@media (prefers-reduced-motion: reduce) {
  .hotspot { animation: none; }
}

/* ---------- Competitive comparison table ---------- */
.compare-wrapper { position: relative; z-index: 2; }
.compare {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) repeat(4, minmax(160px, 1fr));
  border: 1px solid var(--rule);
  background: var(--ink-2);
  border-radius: 8px;
  overflow: hidden;
}
.compare__cell, .compare__header {
  padding: 1.125rem 1rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--paper-2);
}
.compare > :nth-child(5n) { border-right: 0; }
.compare > :nth-last-child(-n+5) { border-bottom: 0; }
.compare__cell--corner { background: transparent; }
.compare__cell--label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-3);
  background: var(--ink);
  display: flex;
  align-items: center;
  font-weight: 500;
}
.compare__header {
  background: var(--ink);
  padding: 1.5rem 1rem 1.25rem;
}
.compare__header-name {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.compare__header-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 500;
}
.compare__header--us {
  background: linear-gradient(180deg, rgba(232,93,44,0.12) 0%, var(--ink) 70%);
  position: relative;
}
.compare__header--us::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3aafa9 0%, var(--copper) 100%);
}
.compare__header--us .compare__header-name { color: var(--copper); }
.compare__cell--us {
  background: rgba(232,93,44,0.05);
  color: var(--paper);
  font-weight: 500;
}
.compare__footnote {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--paper-3);
  max-width: 75ch;
}
@media (max-width: 880px) {
  .compare-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare { min-width: 820px; }
}

/* ---------- Brand lockup (home) ---------- */
.brand-lockup-section {
  background: #f5f5f0;
  padding-block: clamp(7rem, 14vw, 12rem) clamp(5rem, 9vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.brand-lockup {
  background: #0a1929;
  padding: clamp(3rem, 8vw, 6.875rem) clamp(2rem, 10vw, 9.375rem);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  max-width: min(900px, 92vw);
}
.brand-lockup__wordmark {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
}
.brand-lockup__infinity {
  width: clamp(140px, 18vw, 200px);
  height: auto;
  display: block;
  margin-top: clamp(1.75rem, 4vw, 3.125rem);
}
.brand-lockup__tagline {
  margin-top: clamp(1.25rem, 3vw, 2.375rem);
  color: #c8d2e0;
  font-size: clamp(0.875rem, 1.4vw, 1.375rem);
  letter-spacing: 0.18em;
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  text-align: center;
}

/* ---------- Utilities ---------- */
.text-mono { font-family: var(--font-mono); }
.text-copper { color: var(--copper); }
.text-muted { color: var(--paper-3); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
