/* ==========================================================================
   Global Impex India — design system
   Palette sampled directly from the brand mark:
     navy  #0A2444  (globe + "GLOBAL")
     gold  #BD8F3B  (arc + "IMPEX")
   Everything else is a cool clinical neutral, so the warm gold stays the
   only warm note on the page — the pharma / agri duality of the business.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #061a33;
  --navy-800: #0a2444;
  --navy-600: #17395f;
  --navy-400: #3a5b84;
  --gold-700: #6f5119;
  --gold-600: #8f6b26;
  --gold-500: #bd8f3b;
  --gold-300: #d9b569;
  --gold-100: #f3e7ce;

  --ink: #0f1721;
  --slate: #4a5a6e;
  --slate-light: #7c8a9c;
  --mist: #f2f4f7;
  --mist-deep: #e8ecf1;
  --line: #dfe4eb;
  --line-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.65vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.44rem + 1.3vw, 2.5rem);
  --step-4: clamp(2.05rem, 1.62rem + 2.15vw, 3.45rem);

  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-card: 0 1px 2px rgba(6, 26, 51, 0.05), 0 12px 32px -20px rgba(6, 26, 51, 0.3);
  --shadow-lift: 0 2px 4px rgba(6, 26, 51, 0.06), 0 26px 50px -26px rgba(6, 26, 51, 0.45);

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

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--navy-900);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: var(--white);
  padding: 0.7rem 1.1rem;
}
.skip-link:focus { left: 0.6rem; top: 0.6rem; }

/* ---------- Layout primitives ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.section { padding-block: clamp(3.6rem, 7vw, 6.5rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); }
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }
.section--tight { padding-block: clamp(2.4rem, 4.5vw, 3.6rem); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.7rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Type utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
  flex: none;
}
.section--navy .eyebrow { color: var(--gold-300); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--slate);
  max-width: 62ch;
}
.section--navy .lede { color: rgba(255, 255, 255, 0.76); }

.muted { color: var(--slate); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-300); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); }
.btn--ghost { border-color: var(--line); color: var(--navy-800); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy-800); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.34); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn__arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.textlink:hover { gap: 0.7rem; color: var(--gold-600); }
.section--navy .textlink { color: var(--gold-300); }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.4rem;
}
.utility__list { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.utility__list span { display: inline-flex; align-items: center; gap: 0.45rem; }
.utility__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; }
.utility a:hover { color: var(--gold-300); }
@media (max-width: 780px) {
  .utility__list span.utility__aside,
  .utility__inner > .utility__aside { display: none; }
}

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }
@media (max-width: 560px) { .brand img { height: 42px; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transition: right 0.26s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }

.masthead__cta { display: flex; align-items: center; gap: 0.8rem; }
.nav > .btn { display: none; } /* drawer-only CTA, revealed in the mobile query */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  line-height: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); margin: 4px 0; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .masthead__cta .btn { display: none; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.4rem;
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  padding-block: clamp(3.4rem, 7vw, 6rem);
}
.hero__arc {
  position: absolute;
  top: 46%;
  left: 68%;
  width: min(1450px, 150%);
  transform: translate(-50%, -50%);
  opacity: 0.75;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: var(--white); text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-300);
}
.hero__sub {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.74);
  max-width: 52ch;
  margin: 1.4rem 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__note {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Docket (signature element) ----------
   A consignment docket: the artifact every buyer in this trade actually
   reads. Mono header strip + hairline label/value rows. Reused in the hero,
   on product cards and on the contact block. */
.docket {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.docket--flat { box-shadow: none; }
.docket__strip {
  background: var(--navy-800);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.docket__strip span:last-child { color: rgba(255, 255, 255, 0.62); }
.docket__body { padding: 1.15rem 1.15rem 0.4rem; }
.docket__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--navy-900);
  margin-bottom: 0.15rem;
}
.docket__caption { font-size: 0.86rem; color: var(--slate); margin-bottom: 1rem; }
.docket__foot {
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--line);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.88rem;
  align-items: baseline;
}
.rows li:last-child { border-bottom: 0; }
.rows dt, .rows .rows__key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.rows dd, .rows .rows__val { margin: 0; color: var(--ink); font-weight: 500; }
.rows--dark li { border-bottom-color: var(--line-dark); }
.rows--dark .rows__key { color: rgba(255, 255, 255, 0.5); }
.rows--dark .rows__val { color: var(--white); }

/* ---------- Marquee / capability strip ---------- */
.capstrip {
  border-block: 1px solid var(--line);
  background: var(--white);
}
.capstrip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  }
.capstrip__item {
  padding: 1.7rem clamp(0.9rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line);
}
.capstrip__item:first-child { border-left: 0; padding-left: 0; }
.capstrip__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.capstrip__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 0.3rem;
}
@media (max-width: 780px) {
  .capstrip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capstrip__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .capstrip__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  height: 100%;
}
.card--link:hover { border-color: var(--gold-500); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  margin-bottom: 0.9rem;
}
.card h3, .card h4 { margin-bottom: 0.55rem; }
.card p { font-size: 0.92rem; color: var(--slate); }
.section--navy .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}
.section--navy .card p { color: rgba(255, 255, 255, 0.72); }
.section--navy .card__index { color: var(--gold-300); }

/* ---------- Product panels ---------- */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.panel:first-of-type { border-top: 0; padding-top: 0; }
.panel--flip > *:first-child { order: 2; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel--flip > *:first-child { order: 0; }
}
.panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  background: var(--gold-100);
  color: var(--gold-700);
  margin-bottom: 1rem;
}
.panel__tag--navy { background: rgba(10, 36, 68, 0.08); color: var(--navy-600); }

.taglist { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.taglist li {
  font-size: 0.8rem;
  padding: 0.3rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--slate);
  background: var(--white);
}
.section--navy .taglist li { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.78); background: transparent; }

.checklist { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: var(--slate); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold-500);
  border-radius: 1px;
  transform: rotate(45deg);
}
.section--navy .checklist li { color: rgba(255, 255, 255, 0.76); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding-bottom: 0.75rem;
}
.spec-table th, .spec-table td { text-align: left; padding: 0.62rem 0.9rem 0.62rem 0; border-bottom: 1px solid var(--line); }
.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  border-bottom-color: var(--navy-800);
}
.spec-table tbody th { font-weight: 500; color: var(--ink); }
.spec-table td { color: var(--slate); font-family: var(--font-mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Process (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
  align-items: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  padding-top: 0.28em;
}
.steps h4 { margin-bottom: 0.35rem; }
.steps p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); max-width: 70ch; }
@media (max-width: 560px) { .steps li { grid-template-columns: 46px minmax(0, 1fr); } }

/* ---------- Markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.market {
  background: var(--white);
  padding: 1.35rem 1.4rem;
}
.market__region {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}
.market__code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  font-weight: 400;
}
.market__countries { font-size: 0.86rem; color: var(--slate); line-height: 1.6; }

/* ---------- Certification ledger ---------- */
.ledger { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) 120px;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--line);
  align-items: center;
  font-size: 0.89rem;
}
.ledger__row:first-child { border-top: 0; }
.ledger__row--head {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ledger__name { font-weight: 600; color: var(--navy-900); }
.ledger__scope { color: var(--slate); }
.ledger__status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  justify-self: start;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .ledger__row--head { display: none; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.field .req { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(189, 143, 59, 0.16);
}
.field__hint { font-size: 0.78rem; color: var(--slate-light); }
.field__error { font-size: 0.78rem; color: #a4331f; font-weight: 500; }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: #a4331f; }

.form__status {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  border: 1px solid;
}
.form__status--ok { background: #eef6f0; border-color: #bcdcc6; color: #1f5b34; }
.form__status--err { background: #fdf1ef; border-color: #f0c4bc; color: #8f2b1a; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--slate); }
.consent input { width: auto; margin-top: 0.25rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2, .cta-band p { color: var(--white); position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-top: 0.7rem; max-width: 56ch; }
.cta-band__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; position: relative; }
.cta-band__arc { position: absolute; right: -60px; top: -70px; width: 340px; opacity: 0.35; pointer-events: none; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band__arc { display: none; } }

/* ---------- Page header (interior pages) ---------- */
.pagehead {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(2.8rem, 6vw, 4.6rem);
  position: relative;
  overflow: hidden;
}
.pagehead__arc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1200px, 130%); opacity: 0.4; pointer-events: none; }
.pagehead__inner { position: relative; max-width: 74ch; }
.pagehead h1 { color: var(--white); }
.pagehead p { margin-top: 1.1rem; font-size: var(--step-1); color: rgba(255, 255, 255, 0.72); }
.crumbs { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span { margin: 0 0.5rem; color: var(--gold-500); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.62); padding-block: clamp(3rem, 5vw, 4.5rem) 0; font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 52px; width: auto; background: var(--white); padding: 8px 12px; border-radius: var(--radius); }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a:hover { color: var(--gold-300); }
.footer__note { margin-top: 1.1rem; max-width: 40ch; line-height: 1.65; }
.footer__base {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line-dark);
  padding-block: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Placeholder flag (remove once real data is in) ---------- */
.tbc {
  border-bottom: 1px dashed var(--gold-500);
  cursor: help;
}

/* ---------- Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
/* If JS never runs, content must still be readable. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .masthead, .utility, .nav, .cta-band, .footer__base { display: none; }
  body { color: #000; }
  .section--navy, .hero, .pagehead { background: #fff !important; color: #000 !important; }
  .hero h1, .pagehead h1, .section--navy h2, .section--navy h3 { color: #000 !important; }
}

/* ---------- Additions used by the React build ---------- */
.docket__foot-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.ledger__ref { font-size: 0.74rem; color: var(--slate-light); font-weight: 400; }

/* Whole-card links: the card is the hit area, not just the heading. */
a.card { display: block; color: inherit; text-decoration: none; }
a.card h4 { color: var(--navy-900); }
a.card:hover h4 { color: var(--gold-600); }
a.card .textlink { border-bottom-color: var(--gold-500); }

/* React Router's NavLink adds .active to the current route. */
.nav a.active { color: var(--navy-900); font-weight: 600; }
.nav a.active::after { right: 0; }
