/* APTRA public website. Institutional identity: navy, ivory and gold, Source Serif 4 for headings, Inter for text.
   Self-hosted fonts only; no inline styles (the Content Security Policy forbids them). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13355f;
  --navy-600: #1f4a7d;
  --gold-500: #b08d3c;
  --gold-400: #c9a65a;
  --gold-100: #f3ead6;
  --ivory: #f8f6f1;
  --paper: #ffffff;
  --ink: #18212f;
  --ink-soft: #4a5566;
  --line: #e2ddd2;
  --line-strong: #cfc7b6;
  --focus: #1f6feb;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 51, 0.06), 0 2px 8px rgba(7, 26, 51, 0.05);
  --shadow-md: 0 10px 30px rgba(7, 26, 51, 0.12);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy-800); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-1px); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.arrow::after { content: "\2192"; transition: transform 0.18s ease; }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }

/* Header */
.utility { background: var(--navy-900); color: #c7d2e2; font-size: 0.82rem; }
.utility .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.utility a { color: #e9eef6; text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); }
.brand svg { width: 42px; height: 42px; }
.brand-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: 0.08em; line-height: 1; }
.brand-sub { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a { display: block; padding: 10px 12px; font-size: 0.93rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; }
.primary-nav a:hover { color: var(--navy-800); background: var(--ivory); }
.primary-nav a[aria-current="page"] { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.primary-nav .nav-cta a { background: var(--navy-800); color: #fff; border-radius: 999px; padding: 10px 18px; margin-left: 8px; }
.primary-nav .nav-cta a:hover { background: var(--navy-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--navy-800); cursor: pointer; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .primary-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav .nav-cta a { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .utility .tagline { display: none; }
}
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .primary-nav { display: block; position: static; box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 10%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: #fff; }
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 .brandline { display: block; font-size: 0.42em; letter-spacing: 0.32em; color: var(--gold-400); margin-bottom: 18px; font-family: var(--sans); font-weight: 600; }
.hero .lede { color: #d6deea; }
.hero-art { position: absolute; right: -60px; top: 0; bottom: 0; width: min(56vw, 720px); opacity: 0.9; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.page-hero { background: linear-gradient(180deg, var(--ivory) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: 72px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; }
.page-hero-art svg { width: 100%; height: auto; max-height: 300px; }
@media (max-width: 860px) {
  .page-hero .container { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 44px; }
  .page-hero-art { display: none; }
  .hero .container { padding-top: 64px; padding-bottom: 72px; }
  .hero-art { opacity: 0.28; width: 100%; right: -30%; }
}

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy-800); color: #dfe6f0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-navy .section-head p { color: #c3cedd; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .grid-2, .grid-3, .split { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* Audience gateway */
.gateway { margin-top: -64px; position: relative; z-index: 2; }
.audience { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; overflow: hidden; }
.audience::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transform: scaleX(0.25); transform-origin: left; transition: transform 0.3s ease; }
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: var(--ink); }
.audience:hover::before { transform: scaleX(1); }
.audience .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-100); display: grid; place-items: center; margin-bottom: 20px; }
.audience .icon svg { width: 28px; height: 28px; }
.audience .who { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); }
.audience h3 { margin: 6px 0 10px; font-size: 1.45rem; }
.audience p { color: var(--ink-soft); flex: 1; }
.audience .go { font-weight: 600; color: var(--navy-700); }

/* Cards and features */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-ivory .card { background: #fff; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); margin: 0; }
.feature .mark { width: 36px; height: 3px; background: var(--gold-500); margin-bottom: 18px; border-radius: 2px; }
.pillars { counter-reset: pillar; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.pillars li { counter-increment: pillar; padding: 30px 26px 30px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.pillars li::before { content: counter(pillar, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-400); margin-bottom: 8px; }
.pillars h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pillars p { margin: 0; color: #c3cedd; font-size: 0.97rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Pathway diagram */
.pathway { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.pathway::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 10px, transparent 10px 18px); }
.pathway li { position: relative; text-align: center; padding: 0 6px; }
.pathway .node { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold-500); position: relative; z-index: 1; }
.pathway h3 { font-size: 1.12rem; margin-bottom: 6px; }
.pathway .where { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 8px; }
.pathway p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
@media (max-width: 860px) {
  .pathway { grid-template-columns: 1fr; gap: 0; }
  .pathway::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold-500) 0 10px, transparent 10px 18px); }
  .pathway li { text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 0 0 28px; }
  .pathway .node { grid-row: span 3; margin: 0; }
}

/* Routes and status */
.route { border-left: 4px solid var(--gold-500); }
.route h3 { margin-bottom: 4px; }
.route .tag { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.status .card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-now { background: #2f8f5b; }
.dot-next { background: var(--gold-500); }
@media (max-width: 760px) { .status { grid-template-columns: 1fr; } }
.note { border: 1px solid var(--line); background: var(--ivory); border-radius: 12px; padding: 18px 22px; color: var(--ink-soft); font-size: 0.97rem; }
.note strong { color: var(--ink); }

/* Clauses and steps */
.clauses { list-style: none; padding: 0; margin: 0; counter-reset: clause; }
.clauses li { counter-increment: clause; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.clauses li::before { content: counter(clause); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold-500); color: var(--gold-500); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; }
.clauses p { margin: 0; color: var(--ink-soft); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps li::before { content: "Step " counter(step); display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Principles and quote */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.principles h3 { font-size: 1.1rem; }
.principles p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.statement { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--navy-800); max-width: 30em; }
.statement em { color: var(--gold-500); font-style: italic; }

/* Call to action band */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #dfe6f0; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #c3cedd; }
.cta-band a.cta-link, .section-navy a { color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* Legal pages */
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink); }
.disclaimer { margin-top: 28px; font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b8c4d6; font-size: 0.95rem; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #e3e9f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 16px; }
.footer-brand svg { width: 38px; height: 38px; }
.footer-legal { max-width: 34em; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.86rem; }
.footer-base ul { display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Gentle entrance animation, only where JavaScript runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero-art .drift { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateY(0); } to { transform: translateY(-10px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .site-header, .utility, .site-footer, .hero-art, .btn-row { display: none; } .hero { background: none; color: #000; } .hero h1 { color: #000; } }
.page-hero.plain .container { grid-template-columns: 1fr; }

/* Layout refinements after the first preview */
.brand-sub, .primary-nav a { white-space: nowrap; }
.hero .container > * { max-width: 700px; }
.hero-art { width: min(48vw, 660px); right: -150px; }
@media (max-width: 1180px) {
  .primary-nav a { padding: 10px 9px; font-size: 0.9rem; }
  .primary-nav .nav-cta a { padding: 10px 14px; margin-left: 4px; }
  .hero-art { opacity: 0.5; }
}
.card h2 a, .email { overflow-wrap: anywhere; }
@media (max-width: 520px) { .card h2 { font-size: 1.35rem; } }

/* Accessibility: gold text on light backgrounds uses a darker shade (contrast at least 4.5:1). */
:root { --gold-text: #7f601c; }
.eyebrow, .audience .who, .pathway .where, .steps li::before { color: var(--gold-text); }
.hero .eyebrow, .section-navy .eyebrow, .cta-band .eyebrow { color: var(--gold-400); }
.clauses li::before { color: var(--gold-400); border-color: var(--gold-400); }
.statement em { color: var(--gold-text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.interim { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-100); color: var(--ink); font-size: 0.85rem; font-weight: 600; }

/* Spacing and contrast refinements after the full-page review */
.section-navy .clauses li { border-bottom-color: rgba(255, 255, 255, 0.16); }
.section-navy .clauses p { color: #c3cedd; }
.section-navy strong { color: #fff; }
.pathway + .grid { margin-top: 48px; }
.steps + .note, .grid + .muted, .grid + .note { margin-top: 28px; }

/* WCAG 2.4.11: keep focused and anchored content clear of the sticky header */
html { scroll-padding-top: 96px; }
