/* ==========================================================================
   IETB — International Exchange Trade Board
   One-page institutional website stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Ink stays cool charcoal-navy; the pale-cyan "paper" carries the teal identity */
  --brand-blue: #023EFF;
  --brand-blue-hover: #1F5CFF;
  --deep-navy: #0B1E2B;
  --midnight-blue: #13252F;
  --institutional-black: #06090C;

  --capital-cyan: #1CB9CF;
  --ice-cyan: #7FDCE8;
  --blue-violet: #5867FF;
  --signal-green: #17E7A6;

  --white: #FFFFFF;
  --cloud-gray: #DFF4F8;
  --steel-gray: #52707B;
  --soft-gray: #A9C3CB;
  --border-gray: #C4E3EA;

  --ink-heading: #0B2E36;
  --rule-hairline: rgba(11, 46, 54, 0.24);

  /* Light institutional tones — no dark surfaces anywhere */
  --paper: #FDFEFE;
  --paper-tint: #F1FAFC;
  --paper-deep: #E4F4F8;
  --teal-deep: #0E7C8C;
  --champagne: #C8A96A;

  --dark-border: rgba(255, 255, 255, 0.12);
  --blue-border: rgba(2, 62, 255, 0.3);
  --cyan-border: rgba(28, 185, 207, 0.4);
  --glass-dark: rgba(10, 26, 33, 0.72);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-technical: "Space Grotesk", "Inter", monospace;

  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.0625rem);
  --text-title: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --space-section: clamp(4.5rem, 3rem + 5vw, 8.5rem);

  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 108px;
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--deep-navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}
.container-narrow { width: min(880px, 100% - 3rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font: 600 .86rem/1 var(--font-body);
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease,
              color var(--duration-fast) ease, transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.btn:active { opacity: .9; }
.btn-lg { padding: .95rem 1.8rem; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-blue-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink-heading);
  border-color: var(--rule-hairline);
}
.btn-ghost:hover { border-color: var(--capital-cyan); color: var(--teal-deep); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { border-color: var(--capital-cyan); color: var(--ice-cyan); }

.btn-outline-dark {
  background: transparent;
  color: var(--deep-navy);
  border-color: var(--deep-navy);
}
.btn-outline-dark:hover { background: var(--deep-navy); color: var(--white); }

.btn-cyan {
  background: var(--capital-cyan);
  color: var(--deep-navy);
}
.btn-cyan:hover { background: var(--ice-cyan); }

.btn-dark {
  background: var(--brand-blue);
  color: var(--white);
}
.btn-dark:hover { background: var(--brand-blue-hover); }

/* ---------- Official topbar (logins live here) ---------- */
.topbar {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule-hairline);
}
.topbar-inner {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: .5rem 0;
  font: 500 .7rem/1.4 var(--font-technical);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.topbar-login { display: flex; align-items: center; gap: .7rem; }
.topbar-login button {
  background: none;
  border: 0;
  padding: .2rem 0;
  font: 600 .7rem/1 var(--font-technical);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.topbar-login button:hover { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(253, 254, 254, 0.96);
  transition: background var(--duration-normal) ease, border-color var(--duration-normal) ease,
              backdrop-filter var(--duration-normal) ease;
  border-bottom: 1px solid var(--rule-hairline);
}
.site-header.is-scrolled {
  background: rgba(253, 254, 254, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-hairline);
  box-shadow: 0 1px 0 rgba(11, 46, 54, 0.04);
}

.header-inner {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-name {
  font: 700 1.25rem/1 var(--font-technical);
  letter-spacing: .14em;
  color: var(--ink-heading);
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  margin-inline: auto;
}
.main-nav > a {
  font: 500 .88rem/1 var(--font-body);
  color: var(--ink-heading);
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.main-nav > a:hover { color: var(--teal-deep); border-bottom-color: var(--capital-cyan); }

.nav-link-btn {
  font: 500 .88rem/1 var(--font-body);
  color: var(--ink-heading);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .4rem 0;
  cursor: pointer;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.nav-link-btn:hover { color: var(--teal-deep); border-bottom-color: var(--capital-cyan); }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-mobile-actions { display: none; }

.lang-select select {
  background: transparent;
  color: var(--ink-heading);
  border: 1px solid var(--rule-hairline);
  border-radius: 4px;
  padding: .5rem .6rem;
  font: 500 .82rem var(--font-body);
  cursor: pointer;
}
.lang-select option { color: var(--deep-navy); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--ink-heading);
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (monumental paper field) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--paper), var(--paper-tint));
  color: var(--ink-heading);
  padding: calc(var(--header-h) + 5rem) 0 4vh;
  overflow: hidden;
}

/* full-height hairline marking the left text axis */
.hero-rule {
  position: absolute;
  top: 0; bottom: 0;
  left: 14vw;
  width: 1px;
  background: rgba(11, 46, 54, 0.1);
  z-index: 1;
}

/* right-column meridian globe */
.hero-globe {
  position: absolute;
  top: 50%;
  right: -12%;
  transform: translateY(-50%);
  width: min(40vw, 560px);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 60% 50%, #000 42%, transparent 74%);
  mask-image: radial-gradient(circle at 60% 50%, #000 42%, transparent 74%);
  opacity: 0;
  animation: rise 1.4s var(--ease-out-expo) .5s forwards;
}
.globe-lines { stroke: rgba(11, 46, 54, 0.07); stroke-width: 1; }
.globe-nodes circle {
  fill: var(--champagne);
  opacity: .5;
  animation: node-pulse 5s ease-in-out infinite;
}
.globe-nodes circle:nth-child(2) { animation-delay: .8s; }
.globe-nodes circle:nth-child(3) { animation-delay: 1.6s; }
.globe-nodes circle:nth-child(4) { animation-delay: 2.4s; }
.globe-nodes circle:nth-child(5) { animation-delay: 3.2s; }
@keyframes node-pulse {
  0%, 100% { opacity: .3; }
  50% { opacity: .65; }
}

/* animated market line-wave across the lower third */
.hero-wave {
  position: absolute;
  left: 0; right: 0;
  bottom: 11%;
  width: 100%;
  height: 26%;
  z-index: 1;
  pointer-events: none;
}
.wave-line {
  fill: none;
  stroke: url(#waveGrad);
  stroke-width: 1.25;
  opacity: .1;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: draw 7s var(--ease-out-expo) .4s forwards;
}
/* the marching "running" line is removed from the hero — too busy */
.hero-wave .wave-line--flow { display: none; }
@keyframes flow { to { stroke-dashoffset: -290; } }

.status-dots {
  position: absolute;
  inset: 0;
  background-size: 26px 26px;
}

/* logo + wordmark lockup — left-aligned on the text axis */
/* concept-preview notice — legal safety, above the fold */
.concept-banner {
  display: inline-block;
  max-width: 62ch;
  margin-bottom: 2rem;
  padding: .7rem 1rem;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-heading);
  background: rgba(200, 169, 106, 0.12);
  border: 1px solid var(--champagne);
  border-radius: 3px;
  opacity: 0;
  animation: rise .9s var(--ease-out-expo) .05s forwards;
}
.concept-banner strong { color: var(--teal-deep); }

.demo-note {
  margin-top: .7rem;
  padding: .5rem .7rem;
  font-size: .76rem;
  color: var(--teal-deep);
  background: rgba(28, 185, 207, 0.08);
  border-left: 2px solid var(--capital-cyan);
  border-radius: 2px;
}
.check.consent a { color: var(--teal-deep); text-decoration: underline; }

/* ---------- Cookie / privacy consent banner ---------- */
.consent-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--white);
  border-top: 2px solid var(--champagne);
  box-shadow: 0 -8px 30px rgba(11, 46, 54, 0.14);
  transform: translateY(110%);
  transition: transform .35s var(--ease-out-expo);
}
.consent-bar.is-visible { transform: none; }
.consent-inner {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.consent-text { flex: 1 1 340px; margin: 0; font-size: .84rem; line-height: 1.6; color: var(--steel-gray); }
.consent-text strong { color: var(--ink-heading); }
.consent-text a { color: var(--teal-deep); text-decoration: underline; }
.consent-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 560px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 1.5rem 5rem;
}
.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: 600 .78rem/1 var(--font-technical);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 2rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  color: var(--ink-heading);
  margin-bottom: .6rem;
}
.legal-page .legal-updated { color: var(--steel-gray); font-size: .85rem; margin-bottom: 2.4rem; }
.legal-page .legal-draft {
  padding: .9rem 1.1rem;
  margin-bottom: 2.4rem;
  font-size: .85rem;
  color: var(--ink-heading);
  background: rgba(200, 169, 106, 0.12);
  border: 1px solid var(--champagne);
  border-radius: 3px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-heading);
  margin: 2rem 0 .7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-hairline);
}
.legal-page p, .legal-page li { color: var(--steel-gray); font-size: .95rem; line-height: 1.7; }
.legal-page ul { margin: .6rem 0 1rem; padding-left: 1.2rem; list-style: disc; }
.legal-page li { margin-bottom: .4rem; }
.legal-page a { color: var(--teal-deep); text-decoration: underline; }

/* ---------- Interior content pages (About / Leadership) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 5rem) 0 3.5rem;
  background: linear-gradient(180deg, var(--paper), var(--paper-tint));
  border-bottom: 1px solid var(--rule-hairline);
}
.page-hero .container { max-width: 1000px; }
.page-hero .section-label { color: var(--teal-deep); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink-heading);
  max-width: 20ch;
  margin-bottom: 1.2rem;
}
.page-hero .page-lede {
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
  color: var(--steel-gray);
  max-width: 62ch;
}
.page-draft {
  display: inline-block;
  margin-top: 1.8rem;
  padding: .7rem 1rem;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-heading);
  background: rgba(200, 169, 106, 0.12);
  border: 1px solid var(--champagne);
  border-radius: 3px;
  max-width: 70ch;
}
.page-draft strong { color: var(--teal-deep); }

.prose { max-width: 68ch; }
.prose p { color: var(--steel-gray); margin-bottom: 1.1rem; }
.prose p strong { color: var(--ink-heading); }

/* governance / numbered process */
.gov-list { display: grid; gap: 1rem; max-width: 780px; counter-reset: gov; }
.gov-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
}
.gov-item .gov-num {
  font: 600 .8rem/1 var(--font-technical);
  letter-spacing: .1em;
  color: var(--champagne);
  padding-top: .2rem;
}
.gov-item h3 { font-family: var(--font-display); color: var(--ink-heading); font-size: 1.08rem; margin-bottom: .4rem; }
.gov-item p { font-size: .9rem; color: var(--steel-gray); }

.subpage-footer {
  background: var(--paper-deep);
  border-top: 3px double var(--rule-hairline);
  padding: 3rem 0 2rem;
  color: var(--steel-gray);
}
.subpage-footer .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.subpage-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.subpage-footer a { color: var(--steel-gray); font-size: .88rem; }
.subpage-footer a:hover { color: var(--teal-deep); }
.subpage-footer .sf-copy { font-size: .78rem; width: 100%; color: rgba(82,112,123,.75); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule-hairline); }

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.6rem;
  opacity: 0;
  animation: rise .9s var(--ease-out-expo) .1s forwards;
}
.hero-lockup img { width: 52px; flex: none; }
.hero-lockup-name {
  font: 600 .82rem/1.3 var(--font-technical);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  max-width: 15ch;
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-left: calc(14vw + 3rem);
  padding-right: 8vw;
}
.hero-eyebrow {
  font: 600 .8rem/1.8 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--teal-deep);
  max-width: 54ch;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise .9s var(--ease-out-expo) .25s forwards;
}
.hero h1 span {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  opacity: 0;
  transform: translateY(12px);
  animation: rise .9s var(--ease-out-expo) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: .38s; }
.hero h1 span:nth-child(2) { animation-delay: .5s; }
.hero h1 span:nth-child(3) { animation-delay: .62s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-mission {
  max-width: 58ch;
  margin-top: 1.8rem;
  font-size: clamp(.98rem, .9rem + .35vw, 1.12rem);
  color: var(--steel-gray);
  opacity: 0;
  transform: translateY(12px);
  animation: rise .9s var(--ease-out-expo) .7s forwards;
}

/* animated dot matrix beneath the headline */
.dot-matrix {
  display: grid;
  grid-template-columns: repeat(28, 10px);
  gap: 9px;
  margin-top: 3.4rem;
  opacity: 0;
  animation: rise .9s var(--ease-out-expo) .8s forwards;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D5E4E9;
  transition: background 1s ease, transform 1s ease;
}
.dot--blue { background: var(--brand-blue); transform: scale(1.12); }
.dot--sky { background: #8FB0FF; }

/* foundational inscription + credentials at the bottom margin */
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 3rem;
  padding-left: calc(14vw + 3rem);
  padding-right: 8vw;
}
.hero-inscription {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--steel-gray);
  opacity: 0;
  animation: rise .9s var(--ease-out-expo) .85s forwards;
}
.hero-credentials {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-hairline);
  max-width: max-content;
  font: 600 .72rem/1.6 var(--font-technical);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-gray);
  opacity: 0;
  animation: rise .9s var(--ease-out-expo) 1s forwards;
}
.hero-credentials span { color: var(--champagne); margin: 0 .35rem; }
.chart-line {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 8s var(--ease-out-expo) forwards;
}
.chart-line--blue { stroke: var(--brand-blue-hover); }
.chart-line--cyan { stroke: var(--capital-cyan); animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }


.section-label {
  font: 600 .74rem/1 var(--font-technical);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--capital-cyan);
  margin-bottom: 1.3rem;
}


/* ---------- Governing principles strip ---------- */
.principles {
  background: var(--white);
  border-top: 1px solid var(--champagne);
  border-bottom: 1px solid var(--rule-hairline);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.principles-grid article {
  padding: 2.6rem 2rem;
}
.principles-grid article + article { border-left: 1px solid var(--rule-hairline); }
.principles-grid h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink-heading);
  margin-bottom: .7rem;
}
.principles-grid p {
  font-size: .9rem;
  color: var(--steel-gray);
  max-width: 34ch;
}

/* ---------- Sovereign quote ---------- */
.sovereign-quote {
  background: linear-gradient(180deg, var(--paper-tint), var(--white));
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
  text-align: center;
}
.sovereign-quote blockquote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink-heading);
}
.sovereign-quote .quote-source {
  margin-top: 2rem;
  font: 600 .74rem/1 var(--font-technical);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.sovereign-quote .quote-source::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 1.2rem;
  background: var(--champagne);
}

/* ---------- Status bar ---------- */
.status-bar {
  position: relative;
  background: var(--capital-cyan);
  color: var(--ink-heading);
  overflow: hidden;
}
.status-bar .status-dots {
  width: 130px;
  inset: 0 auto 0 0;
  background-image: radial-gradient(rgba(2, 8, 23, 0.35) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, black, transparent);
  animation: none;
  opacity: 1;
}
.status-bar .status-dots:last-child {
  inset: 0 0 0 auto;
  mask-image: linear-gradient(270deg, black, transparent);
}
.status-inner {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  padding: .9rem 0;
  font-family: var(--font-technical);
  font-size: .82rem;
}
.status-main {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--deep-navy);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 8, 23, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(2, 8, 23, 0); }
}
.status-items {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  letter-spacing: .02em;
}
.status-items li::before { content: "·"; margin-right: .55rem; font-weight: 700; }
.status-link { margin-left: auto; font-weight: 600; }
.status-link:hover { text-decoration: underline; }

/* ---------- Generic section styles ---------- */
.section { padding: var(--space-section) 0; }

.section-light { background: var(--cloud-gray); }
.section-light:nth-of-type(even) { background: var(--white); }

.section-dark {
  background: var(--white);
  color: var(--ink-heading);
}
.section-black {
  background: var(--paper-deep);
  color: var(--ink-heading);
}

.section-light .section-label { color: var(--brand-blue); }
.section-label-cyan { color: var(--teal-deep); }

.section .section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  padding-bottom: .55rem;
  border-bottom: 3px double color-mix(in srgb, currentColor 45%, transparent);
}
.section .section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  max-width: 26ch;
  margin-bottom: 1.2rem;
}
.section-light .section-title { color: var(--ink-heading); }
/* hairline rule draws on beneath each title when it scrolls into view */
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 1rem;
  background: color-mix(in srgb, currentColor 45%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out-expo) .25s;
}
.section-title.is-visible::after { transform: scaleX(1); }
.section-support {
  max-width: 62ch;
  color: var(--steel-gray);
  margin-bottom: 3.2rem;
}
.section-dark .section-support,
.section-black .section-support { color: var(--steel-gray); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- What IETB builds ---------- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-top: 2px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}
.feature-card:hover { box-shadow: 0 10px 24px rgba(11, 46, 54, 0.08); }
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--brand-blue);
  background: rgba(2, 62, 255, 0.07);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-family: var(--font-display);
  color: var(--ink-heading);
  font-size: 1.08rem;
  margin-bottom: .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--cyan-border);
}
.feature-card p { font-size: .88rem; color: var(--steel-gray); }

/* ---------- Section globe + running line (Global Capital Access) ---------- */
.section-hasglobe { position: relative; overflow: hidden; }
.section-hasglobe .container { position: relative; z-index: 2; }
.section-globe {
  position: absolute;
  top: -8%;
  right: -6%;
  width: min(42vw, 540px);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 50%, transparent 76%);
  mask-image: radial-gradient(circle at 55% 45%, #000 50%, transparent 76%);
}
.section-wave {
  position: absolute;
  left: 0; right: 0;
  top: 30%;
  width: 100%;
  height: 40%;
  z-index: 1;
  pointer-events: none;
}
.section-wave .wave-line--flow {
  fill: none;
  stroke: var(--capital-cyan);
  stroke-width: 2;
  opacity: .28;
  stroke-dasharray: 5 24;
  animation: flow 16s linear infinite;
}

/* ---------- Metrics panel ---------- */
.metrics-panel {
  position: relative;
  background: var(--paper-tint);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem 2.2rem;
  overflow: hidden;
}
.panel-chart {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 55%;
  opacity: .35;
}
.metrics-grid { position: relative; }
.metric-label {
  font: 600 .78rem/1 var(--font-technical);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding-bottom: .7rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid var(--rule-hairline);
}
.metric p:last-child { font-size: .86rem; color: var(--steel-gray); }

.floating-cards {
  position: relative;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.float-card {
  font: 500 .74rem/1 var(--font-technical);
  letter-spacing: .08em;
  color: var(--teal-deep);
  background: var(--white);
  border: 1px solid var(--cyan-border);
  border-radius: 2px;
  padding: .55rem .9rem;
}

/* ---------- Stack diagram ---------- */
.stack-diagram {
  counter-reset: layer;
  display: grid;
  gap: 0;
  max-width: 640px;
  margin-inline: auto;
}
.stack-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}
.stack-layer:hover { border-color: var(--cyan-border); }
/* connector line + node pulsing down between layers (settlement flow) */
.stack-layer + .stack-layer { margin-top: 34px; }
.stack-layer + .stack-layer::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--brand-blue), var(--capital-cyan));
}
.stack-layer + .stack-layer::after {
  content: "";
  position: absolute;
  top: -30px;
  left: calc(50% - 3px);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--capital-cyan);
  animation: flow-down 3.2s ease-in-out infinite;
}
.stack-layer:nth-child(odd)::after { animation-delay: 1.6s; }
@keyframes flow-down {
  0% { top: -32px; opacity: 0; }
  25%, 75% { opacity: 1; }
  100% { top: -8px; opacity: 0; }
}
.layer-index {
  font: 600 .78rem/1 var(--font-technical);
  letter-spacing: .1em;
  color: var(--teal-deep);
}
.diagram-note {
  text-align: center;
  font-size: .86rem;
  color: var(--steel-gray);
  margin-top: 2.4rem;
}

/* ---------- Who the platform serves ---------- */
.serve-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-color var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) ease;
}
.serve-card:hover { border-color: var(--cyan-border); }
.serve-card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--ink-heading);
  margin-bottom: .55rem;
}
.serve-card p { font-size: .88rem; color: var(--steel-gray); }

/* Featured country partnership card — leads the participants grid */
.serve-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--white), var(--paper-deep));
  border: 1px solid var(--blue-border);
  padding: 2.4rem 2.2rem;
}
.serve-card--featured .featured-label {
  font: 600 .7rem/1 var(--font-technical);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: .9rem;
}
.serve-card--featured h3 { font-size: 1.25rem; }
.serve-card--featured p:last-child { color: var(--steel-gray); max-width: 78ch; }
.serve-card--featured:hover {
  border-color: var(--cyan-border);
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.3);
}

/* ---------- Technology grid ---------- */
.tech-card {
  background: var(--paper-tint);
  border: 1px solid var(--border-gray);
  border-left: 2px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}
.tech-card:hover {
  border-color: var(--cyan-border);
  border-left-color: var(--capital-cyan);
}
.tech-card h3 {
  font: 600 .8rem/1.4 var(--font-technical);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: .55rem;
}
.tech-card p { font-size: .84rem; color: var(--steel-gray); }

/* ---------- Institutional access panel ---------- */
.access-panel { position: relative; overflow: hidden; }
.panel-watermark {
  position: absolute;
  left: -6%;
  bottom: -14%;
  width: min(40vw, 460px);
  opacity: .06;
  pointer-events: none;
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.6rem;
  align-items: stretch;
}
.access-card, .access-cta {
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
}
.access-card {
  background: var(--white);
  border: 1px solid var(--blue-border);
}
.access-card h3, .access-cta h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.pathway-list li {
  font-size: .9rem;
  color: var(--steel-gray);
  padding: .65rem 0;
  border-bottom: 1px solid var(--rule-hairline);
  transition: color var(--duration-fast) ease, padding-left var(--duration-fast) ease;
}
.pathway-list li:last-child { border-bottom: 0; }
.pathway-list li::before {
  content: "—";
  color: var(--teal-deep);
  margin-right: .7rem;
}
.pathway-list li:hover { color: var(--teal-deep); padding-left: .4rem; }

.access-cta {
  background: linear-gradient(140deg, var(--white), rgba(2, 62, 255, 0.08));
  border: 1px solid var(--cyan-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.access-cta p { color: var(--steel-gray); margin-bottom: 1.8rem; max-width: 46ch; }

/* ---------- Charter: message to the citizens of the world ---------- */
.section-charter {
  background: linear-gradient(180deg, var(--white), var(--paper-tint));
  text-align: center;
}
.charter-label {
  width: max-content;
  margin: 0 auto 1.6rem;
  padding-bottom: .55rem;
  border-bottom: 3px double color-mix(in srgb, var(--teal-deep) 45%, transparent);
  font: 600 .74rem/1 var(--font-technical);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.charter-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem);
  line-height: 1.35;
  color: var(--ink-heading);
  max-width: 34ch;
  margin: 0 auto 3.2rem;
}
.charter-statement em {
  font-style: italic;
  color: var(--brand-blue);
}
.charter-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: border-color var(--duration-normal) ease;
}
.charter-card:hover { border-color: var(--cyan-border); }
.charter-numeral {
  font: 600 .9rem/1 var(--font-display);
  color: var(--champagne);
  letter-spacing: .2em;
  margin-bottom: 1rem;
}
.charter-numeral::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin: .8rem auto 0;
  background: var(--champagne);
}
.charter-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-heading);
  margin-bottom: .7rem;
}
.charter-card p:last-child { font-size: .9rem; color: var(--steel-gray); }

/* ---------- Global vision ---------- */
.vision-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
}
.vision-card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.7rem;
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--capital-cyan));
}
.vision-card h3 { font-family: var(--font-display); color: var(--ink-heading); font-size: 1.08rem; margin-bottom: .6rem; }
.vision-card p { font-size: .88rem; color: var(--steel-gray); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--capital-cyan);
  color: var(--deep-navy);
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: .8rem;
}
.cta-strip p { font-size: .95rem; max-width: 52ch; }
.cta-form {
  position: relative;
  display: flex;
  gap: .7rem;
}
.cta-form input {
  flex: 1;
  padding: .95rem 1.1rem;
  font: 500 .9rem var(--font-body);
  color: var(--deep-navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 8, 23, 0.25);
  border-radius: 2px;
}
.cta-form input:focus { outline: 2px solid var(--deep-navy); }
.form-msg {
  position: absolute;
  top: 100%;
  margin-top: .6rem;
  font: 600 .82rem var(--font-body);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--paper-deep);
  color: var(--steel-gray);
  border-top: 3px double var(--rule-hairline);
  padding: 4.5rem 0 2rem;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  right: -5%;
  bottom: -20%;
  width: min(34vw, 400px);
  opacity: .05;
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-hairline);
}
.footer-motto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  margin-top: .9rem;
}
.footer-brand p { font-size: .86rem; margin-top: 1.2rem; max-width: 34ch; }
.footer-brand .footer-motto { margin-top: .9rem; font-size: 1.5rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-cols h3 {
  font: 600 .74rem/1 var(--font-technical);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-heading);
  margin-bottom: 1.1rem;
}
.footer-cols a, .footer-link-btn {
  display: block;
  font: 400 .86rem/1.4 var(--font-body);
  color: var(--steel-gray);
  padding: .3rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-fast) ease;
}
.footer-cols a:hover, .footer-link-btn:hover { color: var(--teal-deep); }
.footer-legal {
  font-size: .74rem;
  line-height: 1.7;
  color: var(--steel-gray);
  max-width: 104ch;
  margin: 2rem 0 1.2rem;
}
.footer-copy { font-size: .78rem; color: rgba(82, 112, 123, 0.7); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 46, 54, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  padding: 2.4rem 2.2rem 2rem;
  color: var(--ink-heading);
  box-shadow: 0 30px 80px rgba(11, 46, 54, 0.25);
  animation: modal-in var(--duration-normal) var(--ease-out-expo);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 36px; height: 36px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--steel-gray);
  background: none;
  border: 1px solid var(--rule-hairline);
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.modal-close:hover { color: var(--teal-deep); border-color: var(--capital-cyan); }
.modal-logo { margin-bottom: 1.1rem; }
.modal h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .5rem; }
.modal-sub { font-size: .84rem; color: var(--steel-gray); margin-bottom: 1.6rem; }

.modal-form { display: grid; gap: 1rem; }
.modal-form label {
  display: grid;
  gap: .4rem;
  font: 600 .78rem/1 var(--font-technical);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-gray);
}
.modal-form input, .modal-form select {
  padding: .8rem .9rem;
  font: 500 .9rem var(--font-body);
  color: var(--ink-heading);
  background: var(--paper-tint);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  transition: border-color var(--duration-fast) ease;
}
.modal-form input:focus, .modal-form select:focus {
  outline: none;
  border-color: var(--capital-cyan);
}
.modal-form select option { color: var(--deep-navy); background: var(--white); }
.modal-form input[aria-invalid="true"], .modal-form select[aria-invalid="true"] {
  border-color: #C2453A;
}
.form-error { font-size: .82rem; color: #B3362B; }

.modal-links {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
}
.modal-links a { color: var(--teal-deep); }
.modal-links a:hover { color: var(--brand-blue); text-decoration: underline; }
.compliance-note {
  font-size: .72rem;
  line-height: 1.6;
  color: var(--steel-gray);
  border-top: 1px solid var(--rule-hairline);
  padding-top: 1rem;
}

body.modal-open { overflow: hidden; }

/* ---------- Contact — wide multi-step modal ---------- */
.modal-panel--wide { width: min(720px, 100%); padding: 2.4rem 2.4rem 2rem; }
.contact-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.contact-head .modal-logo { margin: 0; flex: none; }
.contact-head h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .4rem; }

/* stepper */
.stepper {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--rule-hairline);
  border-bottom: 1px solid var(--rule-hairline);
  padding: 1rem 0;
}
.stepper .step {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  font: 600 .72rem/1.2 var(--font-technical);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-gray);
}
.stepper .step span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-gray);
  font-size: .78rem;
  flex: none;
}
.stepper .step.is-active { color: var(--brand-blue); }
.stepper .step.is-active span { border-color: var(--brand-blue); background: var(--brand-blue); color: var(--white); }
.stepper .step.is-done { color: var(--teal-deep); }
.stepper .step.is-done span { border-color: var(--teal-deep); background: var(--teal-deep); color: var(--white); }

/* steps */
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-heading);
  margin-bottom: 1.2rem;
  padding: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field-grid .field-span { grid-column: 1 / -1; }
.contact-form label {
  display: grid;
  gap: .4rem;
  font: 600 .74rem/1.2 var(--font-technical);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel-gray);
}
.contact-form .opt { text-transform: none; letter-spacing: 0; color: var(--soft-gray); font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: .78rem .9rem;
  font: 500 .92rem var(--font-body);
  color: var(--ink-heading);
  background: var(--paper-tint);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  transition: border-color var(--duration-fast) ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--capital-cyan); }
.contact-form textarea { resize: vertical; font-family: var(--font-body); }
.contact-form [aria-invalid="true"] { border-color: #C2453A; }

.field-label, .field-block { margin-bottom: 1.1rem; }
.field-block { display: grid; gap: .4rem; }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1.2rem;
  margin-bottom: 1.4rem;
}
.check {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  font: 500 .88rem/1.4 var(--font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink-heading) !important;
  cursor: pointer;
}
.check input { width: 17px; height: 17px; flex: none; padding: 0; accent-color: var(--brand-blue); }
.check.consent { align-items: flex-start; gap: .7rem; font-size: .82rem !important; color: var(--steel-gray) !important; margin: 1rem 0; }

/* review summary */
.review-summary {
  display: grid;
  gap: .7rem;
  margin: 0 0 .5rem;
  padding: 1.2rem 1.3rem;
  background: var(--paper-tint);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
}
.review-summary div { display: grid; grid-template-columns: 40% 1fr; gap: 1rem; }
.review-summary dt {
  font: 600 .68rem/1.4 var(--font-technical);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-gray);
}
.review-summary dd { margin: 0; font-size: .9rem; color: var(--ink-heading); }

/* nav bar */
.form-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-hairline);
}
.form-progress {
  font: 600 .74rem/1 var(--font-technical);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-gray);
  margin-left: auto;
  margin-right: .4rem;
}
.btn-dark-text { color: var(--ink-heading); }
#contact-next, #contact-submit { margin-left: 0; }
.form-nav #contact-back { margin-right: auto; }
.form-nav .form-progress { margin-left: auto; }
.contact-success {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(28, 185, 207, 0.1);
  border: 1px solid var(--cyan-border);
  border-radius: 4px;
  font-size: .9rem;
  color: var(--teal-deep);
}
@media (max-width: 620px) {
  .field-grid, .check-grid { grid-template-columns: 1fr; }
  .stepper .step { font-size: 0; gap: 0; }
  .stepper .step span { font-size: .78rem; margin: 0 auto; }
  .modal-panel--wide { padding: 1.8rem 1.4rem 1.5rem; }
  .review-summary div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { padding-top: calc(var(--header-h) + 4rem); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .topbar { display: none; }
  .hero-rule { left: 1.5rem; }
  .hero-inner, .hero-inscription { padding-left: 3.2rem; padding-right: 1.5rem; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    gap: .3rem;
    background: rgba(253, 254, 254, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule-hairline);
    padding: 1.2rem 1.5rem 1.8rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease,
                visibility var(--duration-normal);
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav > a, .main-nav > .nav-link-btn { padding: .8rem 0; font-size: 1rem; border-bottom: 1px solid var(--rule-hairline); text-align: left; width: 100%; }
  .nav-mobile-actions { display: flex; gap: .8rem; margin-top: 1.2rem; }
  .nav-mobile-actions .btn { flex: 1; }
  .header-actions { display: none; }
  .menu-toggle { display: flex; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .access-grid, .cta-inner, .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .status-link { margin-left: 0; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article + article { border-left: 0; border-top: 1px solid var(--rule-hairline); }
  .hero-globe { opacity: .5; right: -25%; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
  .stack-layer { padding: 1rem 1.1rem; font-size: .92rem; }
  .modal-panel { padding: 1.8rem 1.4rem 1.5rem; }
}
