/* ==========================================================================
   Millennium Management Group — design system v2 (dark flagship)
   Palette: deep navy #0E2438 · teal #1E7E8C / #09939E · gradient #0E5C4E→#17B58A
   Type: Fraunces (display serif, matches the mark) · Inter (body)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0e2438;
  --navy-deep: #091a2a;
  --navy-body: #0b1f31;
  --navy-panel: #0f2740;
  --teal: #1e7e8c;
  --teal-bright: #09939e;
  --emerald: #17b58a;
  --emerald-soft: #4fd6ae;
  --grad-a: #0e5c4e;
  --grad-b: #17b58a;
  --gradient: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  --paper: #f7f6f2;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #22384a;
  --ink-soft: #5a6b78;
  --text: #dfe9ec;
  --text-soft: #93aab4;
  --text-faint: rgba(147, 170, 180, 0.65);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 14px;
  --shadow-frame: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow: 0 20px 90px -30px rgba(23, 181, 138, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------ base ------------------------------ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 560;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--emerald-soft);
  text-decoration: none;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--emerald);
  color: #06281e;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

::selection {
  background: rgba(23, 181, 138, 0.35);
}

/* --------------------------- typography --------------------------- */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}

.eyebrow-teal {
  color: var(--emerald-soft);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  font-variation-settings: "opsz" 144;
}

.accent-serif {
  font-style: italic;
  font-weight: 460;
  background: linear-gradient(120deg, var(--emerald-soft), #9be8d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* keep the italic terminal inside the clip box */
}

.section-lede {
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-top: 1.25rem;
}

.lede {
  font-size: 1.3125rem;
  line-height: 1.55;
  color: #eef6f4;
  font-weight: 440;
}

/* ----------------------------- buttons ---------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 570;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s;
}

.btn-gradient {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 24px -8px rgba(23, 181, 138, 0.55);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(23, 181, 138, 0.65);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ------------------------------ header ---------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(9, 26, 42, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-mark {
  height: 30px;
  width: auto;
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.nav-sub {
  font-size: 0.58rem;
  font-weight: 560;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 520;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #fff;
}

.nav-links .nav-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-links .nav-cta:hover {
  border-color: var(--emerald);
  background: rgba(23, 181, 138, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ------------------------------- hero ----------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
  isolation: isolate;
}

.hero-aurora,
.pipeline-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  opacity: 0.65;
  will-change: transform;
}

.hero .a1 {
  width: 55vw;
  height: 55vw;
  min-width: 480px;
  min-height: 480px;
  background: radial-gradient(circle, rgba(14, 92, 78, 0.9), transparent 65%);
  top: -18%;
  right: -12%;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.hero .a2 {
  width: 44vw;
  height: 44vw;
  min-width: 400px;
  min-height: 400px;
  background: radial-gradient(circle, rgba(23, 181, 138, 0.5), transparent 65%);
  bottom: -22%;
  left: -10%;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.hero .a3 {
  width: 30vw;
  height: 30vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle, rgba(30, 126, 140, 0.55), transparent 65%);
  top: 30%;
  left: 34%;
  animation: drift-c 40s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(-10vw, 12vh) scale(1.12); }
}
@keyframes drift-b {
  to { transform: translate(9vw, -9vh) scale(1.08); }
}
@keyframes drift-c {
  to { transform: translate(-7vw, -7vh) scale(1.18); }
}

.hero-watermark {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -12%;
  width: min(46vw, 640px);
  opacity: 0.05;
  pointer-events: none;
}

.hero-inner {
  padding-block: 9rem 6rem;
  max-width: 62rem;
}

.hero .eyebrow {
  color: var(--emerald);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  font-weight: 540;
  font-variation-settings: "opsz" 144;
  max-width: 17ch;
  text-wrap: balance;
}

.hero-flourish {
  display: block;
  width: min(46rem, 86%);
  height: auto;
  margin-top: 0.75rem;
}

.flourish-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.reveal.in .flourish-path {
  animation: flourish-draw 1.6s 0.35s var(--ease) forwards;
}

@keyframes flourish-draw {
  to { stroke-dashoffset: 0; }
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-motto {
  margin-top: 3.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: rgba(238, 244, 244, 0.55);
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  display: grid;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.65);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
}

/* ----------------------------- marquee ---------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--navy-deep);
  padding-block: 0.9rem;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  font-size: 0.6rem;
  color: rgba(23, 181, 138, 0.55);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----------------------------- sections --------------------------- */

.section {
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------------------------- the group ---------------------------- */

.group-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.group-prose p:not(.lede) {
  color: var(--text-soft);
}

.pillars {
  display: grid;
  gap: 0;
}

.pillar {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 1.9rem 0 1.7rem 5.5rem;
}
.pillar:last-child {
  border-bottom: 1px solid var(--line);
}

.pillar-index {
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 380;
  line-height: 1;
  background: linear-gradient(150deg, var(--emerald-soft), rgba(79, 214, 174, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pillar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9875rem;
  max-width: 34rem;
}

/* ---------------------------- flagships ---------------------------- */

.flagships {
  padding-block: clamp(5rem, 10vw, 8.5rem);
  background:
    radial-gradient(80rem 50rem at 110% 10%, rgba(30, 126, 140, 0.12), transparent 60%),
    radial-gradient(80rem 50rem at -10% 90%, rgba(14, 92, 78, 0.16), transparent 60%),
    var(--navy-body);
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter:nth-child(odd) .chapter-media {
  order: 2;
}
.chapter:nth-child(odd) .chapter-copy {
  order: 1;
}

.frame {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #0d2033;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-frame), var(--glow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-frame), 0 30px 110px -30px rgba(23, 181, 138, 0.5);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.frame-bar b {
  margin-left: 10px;
  font-weight: 480;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-family: var(--sans);
}

.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.chapter-copy {
  position: relative;
}

.chapter-no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(150deg, rgba(79, 214, 174, 0.9), rgba(79, 214, 174, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chapter-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.chapter-sector {
  font-size: 0.6875rem;
  font-weight: 620;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-soft);
}

.chapter-name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 530;
  color: #fff;
  line-height: 1.12;
  font-variation-settings: "opsz" 120;
}

.card-alias {
  font-size: 0.65em;
  font-style: italic;
  font-weight: 440;
  color: var(--text-soft);
}

.chapter-desc {
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 30rem;
}

.chapter-fact {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.chapter-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.9375rem;
  font-weight: 570;
  color: var(--emerald-soft);
  border-bottom: 1px solid rgba(79, 214, 174, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.chapter-link:hover {
  color: #b8f0dd;
  border-color: #b8f0dd;
}

/* --------------------------- status chips -------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.71rem;
  font-weight: 580;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: #5fe0b5;
  background: rgba(23, 181, 138, 0.14);
}
.status-mvp {
  color: #eec276;
  background: rgba(214, 152, 44, 0.16);
}
.status-dev {
  color: #7cc7e8;
  background: rgba(70, 150, 190, 0.16);
}
.status-internal {
  color: #a3b6c2;
  background: rgba(163, 182, 194, 0.14);
}

/* -------------------------- portfolio index ------------------------ */

.index-section {
  background: var(--navy-deep);
  border-block: 1px solid var(--line);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 15rem) minmax(0, 1fr) 11rem 8.5rem 2rem;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0.5rem;
  border-top: 1px solid var(--line);
  transition: background-color 0.25s;
}
.index-row:last-child {
  border-bottom: 1px solid var(--line);
}
.index-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ix-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-faint);
}

.ix-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 520;
  color: #fff;
  line-height: 1.2;
}

.ix-name em {
  font-size: 0.75em;
  font-weight: 420;
  color: var(--text-soft);
}

.ix-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.ix-sector {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-soft);
}

.ix-link {
  font-size: 1.05rem;
  color: var(--emerald-soft);
  text-align: center;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.ix-link:hover {
  color: #b8f0dd;
  transform: translate(2px, -2px);
}

/* ---------------------------- stats band --------------------------- */

.stats-band {
  background:
    radial-gradient(90rem 40rem at 85% -20%, rgba(23, 181, 138, 0.28), transparent 60%),
    radial-gradient(70rem 40rem at 10% 130%, rgba(30, 126, 140, 0.3), transparent 60%),
    var(--navy);
  color: var(--text);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  border-left: 1px solid var(--line-strong);
  padding-left: 1.75rem;
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 460;
  line-height: 1;
  color: #fff;
  font-variation-settings: "opsz" 144;
}

.stat-plus,
.stat-frac {
  color: var(--emerald);
}

.stat-frac {
  font-size: 0.55em;
}

.stat-label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.stats-note {
  margin: 3rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* --------------------------- more to come -------------------------- */

.pipeline {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(6rem, 12vw, 10rem);
  text-align: center;
  border-top: 1px solid var(--line);
}

.pipeline .a1 {
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle, rgba(23, 181, 138, 0.4), transparent 65%);
  top: -30%;
  left: 8%;
  animation: drift-b 30s ease-in-out infinite alternate;
}
.pipeline .a2 {
  width: 40vw;
  height: 40vw;
  min-width: 360px;
  min-height: 360px;
  background: radial-gradient(circle, rgba(14, 92, 78, 0.85), transparent 65%);
  bottom: -35%;
  right: 4%;
  animation: drift-a 36s ease-in-out infinite alternate;
}

.pipeline .eyebrow {
  color: var(--emerald);
}

.pipeline-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 480;
  color: #fff;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
}

.pipeline-title em {
  font-style: italic;
}

.pipeline-lede {
  max-width: 36rem;
  margin: 1.75rem auto 0;
  font-size: 1.125rem;
  color: var(--text-soft);
}

.pipeline-motto {
  margin-top: 2.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  background: linear-gradient(120deg, #4fd6ae, #9be8d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------ contact ---------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-points {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.contact-point h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.contact-point p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.contact-form {
  background: var(--paper);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 580;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.optional {
  font-weight: 440;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.9875rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcdad0;
  border-radius: 9px;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(9, 147, 158, 0.15);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  border: 0;
  font-size: 1rem;
  padding-block: 0.95rem;
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
  color: var(--ink);
}

.form-status.ok {
  color: #0d7a5c;
}
.form-status.err {
  color: #b03434;
}

/* ------------------------------ footer ----------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-soft);
  padding-block: 4.5rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1.1rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.2rem;
}

.footer-name span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

.footer-motto {
  font-family: var(--serif);
  font-size: 0.975rem;
  color: var(--text-faint);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-col a,
.footer-col span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-col a {
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.footer-bottom p {
  margin: 0;
}

.footer-quiet {
  font-style: italic;
}

/* --------------------------- reveal motion ------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .aurora,
  .scroll-cue span,
  .marquee-track {
    animation: none !important;
  }
  .flourish-path {
    stroke-dashoffset: 0;
  }
  .reveal.in .flourish-path {
    animation: none;
  }
  .btn,
  .frame {
    transition: none;
  }
}

/* ---------------------------- responsive --------------------------- */

@media (max-width: 1060px) {
  .index-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 8rem 2rem;
  }
  .ix-desc,
  .ix-sector {
    display: none;
  }
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.75rem;
  }
  .group-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .chapter {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .chapter:nth-child(odd) .chapter-media {
    order: 1;
  }
  .chapter:nth-child(odd) .chapter-copy {
    order: 2;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 26, 42, 0.97);
    padding: 0.75rem 1.5rem 1.5rem;
    display: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-radius: 999px;
    border-bottom: 0;
  }
  .site-header {
    background: rgba(9, 26, 42, 0.92);
  }
  .hero-inner {
    padding-block: 8rem 5.5rem;
  }
  .pillar {
    padding-left: 4rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat {
    padding-left: 1.2rem;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .scroll-cue {
    display: none;
  }
  .index-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto 1.5rem;
    gap: 0.75rem;
  }
  .ix-name {
    font-size: 1.05rem;
  }
}
