/* Northward Group, U.A. — site styles
   Palette drawn from the compass logo and emblem: navy, gold, silver, bronze, leaf green, earth brown. */

:root {
  --navy: #0e2a47;
  --navy-deep: #081a2e;
  --navy-soft: #1c3d61;
  --gold: #c39a3b;
  --gold-bright: #e4c672;
  --gold-pale: #f3e6bf;
  --bronze: #8a5a2c;
  --silver: #c5cbd3;
  --silver-pale: #e7eaee;
  --leaf: #4d7a2c;
  --forest: #1e3b2a;
  --earth: #4a3828;
  --mist: #f5f7f9;
  --white: #ffffff;
  --ink: #14202e;
  --ink-soft: #46535f;
  --line: #d9dee4;

  --display: "Marcellus", "Trajan Pro", "Times New Roman", serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgba(8, 26, 46, 0.45);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--bronze); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.02em; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }

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

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { left: 8px; color: var(--white); }

/* Eyebrow: small capitals with a compass tick, echoing the logo's rule-and-word lockup */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bronze); margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 54px; height: 54px; }
.brand-name { font-family: var(--display); font-size: 1.32rem; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.brand-name small { display: block; font-size: 0.6rem; letter-spacing: 0.5em; color: var(--gold); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.93rem;
  padding: 10px 13px; border-radius: var(--radius); position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 46px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; transition: transform 0.2s, opacity 0.2s; }
.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); }

.nav a { white-space: nowrap; }
.brand-name { white-space: nowrap; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 18px; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--silver-pale); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 13px 22px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-ghost, .btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,0.7); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { background: var(--white); color: var(--navy); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #dfe6ee; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy .lede { color: #c2ccd8; }
.section-forest { background: var(--forest); color: #dbe6dc; }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.framed { outline: 1px solid var(--gold); outline-offset: 8px; }

/* ---------- Scroll-scrub hero ---------- */
.scrub { position: relative; height: 460vh; background: var(--navy-deep); }
.scrub-stage { position: sticky; top: 74px; height: calc(100vh - 74px); height: calc(100svh - 74px); overflow: hidden; }
.scrub-stage canvas, .scrub-stage .scrub-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.scrub-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,26,46,0.78) 0%, rgba(8,26,46,0.42) 42%, rgba(8,26,46,0) 70%),
    linear-gradient(180deg, rgba(8,26,46,0.25) 0%, rgba(8,26,46,0) 30%, rgba(8,26,46,0.55) 100%);
}
.scrub-copy { position: absolute; inset: 0; display: flex; align-items: center; }
.scrub-copy .wrap { position: relative; height: 100%; }
.beat {
  position: absolute; left: 0; top: 50%; max-width: 640px;
  transform: translateY(-50%); opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  color: #e9eef4;
}
.beat.is-on { opacity: 1; visibility: visible; }
.beat h1, .beat h2 { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 4.2rem); margin-bottom: 0.35em; text-shadow: 0 2px 24px rgba(8,26,46,0.5); }
.beat p { font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 52ch; text-shadow: 0 1px 12px rgba(8,26,46,0.6); }
.beat .gold { color: var(--gold-bright); }
.beat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Compass instrument: the needle finds north as the story completes */
.compass {
  position: absolute; right: var(--gutter); bottom: clamp(70px, 12vh, 120px);
  width: clamp(120px, 15vw, 190px); aspect-ratio: 1; pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(8,26,46,0.6));
}
.compass svg { width: 100%; height: 100%; display: block; }
.compass .needle { transform-origin: 100px 100px; transition: transform 0.12s linear; }

/* Heading rail: Alms to Abundance */
.rail { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 22px; color: var(--white); }
.rail .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.rail-label { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--silver); }
.rail-label.end { color: var(--gold-bright); }
.rail-track { height: 2px; background: rgba(255,255,255,0.28); position: relative; }
.rail-fill { position: absolute; left: 0; top: -1px; bottom: -1px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 10px rgba(228,198,114,0.7); }
.rail-ticks { position: absolute; inset: -4px 0; display: flex; justify-content: space-between; }
.rail-ticks i { width: 2px; height: 10px; background: rgba(255,255,255,0.55); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%);
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.8);
  transition: opacity 0.4s;
}
.scroll-cue::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--gold-bright), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

@media (max-width: 700px) {
  .scrub-stage { top: 74px; }
  .scrub-shade { background: linear-gradient(180deg, rgba(8,26,46,0.55) 0%, rgba(8,26,46,0.35) 40%, rgba(8,26,46,0.8) 100%); }
  .beat { top: 44%; right: 0; }
  .compass { width: 92px; bottom: 74px; opacity: 0.92; }
  .scroll-cue { display: none; }
}

/* Reduced motion or no script: the story reads as a plain stacked section */
.scrub.is-static { height: auto; }
.scrub.is-static .scrub-stage { position: relative; top: 0; height: auto; min-height: 0; padding: 90px 0 70px; }
.scrub.is-static .scrub-copy { position: relative; }
.scrub.is-static .scrub-copy .wrap { height: auto; }
.scrub.is-static .beat { position: relative; top: auto; transform: none; opacity: 1; visibility: visible; margin-bottom: 46px; }
.scrub.is-static .compass, .scrub.is-static .rail, .scrub.is-static .scroll-cue, .scrub.is-static canvas { display: none; }

/* ---------- Mission ---------- */
.mission-emblem { max-width: 520px; margin-inline: auto; filter: drop-shadow(0 22px 30px rgba(8,26,46,0.25)); }
.pull {
  font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--navy);
  border-left: 3px solid var(--gold); padding-left: 22px; margin: 28px 0;
}

/* ---------- Cycle (a true sequence, so it is numbered) ---------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.cycle li { position: relative; padding: 30px 22px 6px; border-top: 2px solid rgba(228,198,114,0.35); counter-increment: step; }
.cycle li::before {
  content: counter(step); position: absolute; top: -19px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); border: 2px solid var(--gold-bright); color: var(--gold-bright);
  font-family: var(--display); font-size: 1.05rem;
}
.cycle h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cycle p { font-size: 0.95rem; color: #c2ccd8; margin: 0; }
.cycle-return { margin-top: 34px; font-size: 0.98rem; color: var(--gold-pale); display: flex; gap: 12px; align-items: center; }
.cycle-return svg { flex: none; }
@media (max-width: 980px) { .cycle { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 560px) { .cycle { grid-template-columns: 1fr; } }

/* ---------- Illustration calculator ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calc-controls { padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-bottom: 1px solid var(--line); background: var(--mist); }
.calc label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--navy); margin-bottom: 10px; gap: 12px; }
.calc output { white-space: nowrap; font-family: var(--display); font-size: 1.3rem; color: var(--bronze); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--gold); height: 28px; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 13px clamp(18px, 3vw, 34px); text-align: left; border-bottom: 1px solid var(--silver-pale); font-weight: 400; }
.ledger td { text-align: right; white-space: nowrap; font-weight: 600; color: var(--navy); }
.ledger tr.minus td { color: var(--ink-soft); }
.ledger tr.total th, .ledger tr.total td { background: var(--navy); color: var(--white); font-size: 1.05rem; border-bottom: 0; }
.ledger tr.total td { color: var(--gold-bright); font-family: var(--display); font-size: 1.45rem; }
.calc-note { padding: 16px clamp(18px, 3vw, 34px); font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.calc-month { display: flex; flex-direction: column; gap: 4px; }
.big-figure { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.big-figure-label { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 640px) { .calc-controls { grid-template-columns: 1fr; } .ledger th { font-size: 0.92rem; } }

/* ---------- Doorways ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--white); box-shadow: var(--shadow); isolation: isolate;
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,26,46,0.05) 10%, rgba(8,26,46,0.8) 48%, rgba(8,26,46,0.95) 80%); }
.door:hover img { transform: scale(1.05); }
.door:hover { color: var(--white); }
.door-body { padding: 26px 24px 24px; border-top: 0; }
.door-tag { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright); }
.door h3 { color: var(--white); font-size: 1.55rem; margin: 8px 0 8px; }
.door p { font-size: 0.95rem; color: #d5dde6; margin: 0 0 16px; }
.door-go { font-weight: 700; font-size: 0.92rem; color: var(--gold-bright); display: inline-flex; gap: 8px; align-items: center; }
.door:hover .door-go .arrow { transform: translateX(4px); }
.door-go .arrow { transition: transform 0.2s; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } .door { min-height: 340px; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles > div { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.principles h3 { font-size: 1.18rem; margin-bottom: 8px; }
.principles p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.principles svg { width: 30px; height: 30px; margin-bottom: 14px; color: var(--gold); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Scripture band ---------- */
.scripture { position: relative; color: var(--white); text-align: center; padding: clamp(80px, 12vw, 150px) 0; background: var(--navy-deep) center/cover no-repeat; isolation: isolate; }
.scripture::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,46,0.72), rgba(8,26,46,0.6)); z-index: -1; }
.scripture blockquote { margin: 0 auto; max-width: 880px; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.35; }
.scripture cite { display: block; margin-top: 20px; font-family: var(--body); font-style: normal; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.scripture .beat-actions { justify-content: center; margin-top: 36px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #dfe6ee; padding: clamp(54px, 8vw, 96px) 0 0; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.page-hero .lede { color: #c2ccd8; }
.page-hero .rose { position: absolute; right: -80px; top: -60px; width: 420px; opacity: 0.1; pointer-events: none; }
.page-hero.plain { padding-bottom: clamp(54px, 8vw, 96px); }

/* ---------- Tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 44px; }
.tab {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.07); color: #cfd8e3; padding: 18px 20px 20px;
  border-radius: var(--radius) var(--radius) 0 0; border-top: 3px solid transparent;
  font-family: var(--body); font-size: 0.9rem; transition: background 0.2s, color 0.2s;
}
.tab strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.28rem; color: var(--white); margin-bottom: 3px; }
.tab:hover { background: rgba(255,255,255,0.13); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink-soft); border-top-color: var(--gold); }
.tab[aria-selected="true"] strong { color: var(--navy); }
@media (max-width: 760px) {
  .tabs { gap: 3px; }
  .tab { padding: 13px 10px 14px; font-size: 0; }
  .tab strong { font-size: 0.98rem; margin: 0; }
}
.panel[hidden] { display: none; }
.panel > .section:first-child { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- Cards, lists, tables ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.card .kicker { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); font-weight: 700; display: block; margin-bottom: 10px; }
.card.green { border-top-color: var(--leaf); }
.card.silver { border-top-color: var(--silver); }
.card.bronze { border-top-color: var(--bronze); }
@media (max-width: 980px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--silver-pale); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.checks.no li::before { width: 12px; height: 2px; border: 0; background: var(--bronze); transform: none; top: 20px; }
.section-navy .checks li { border-bottom-color: rgba(255,255,255,0.14); }
.section-navy .checks li::before { border-color: var(--gold-bright); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--display); color: var(--navy); background: var(--white); }
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.steps .when { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.data { color: var(--ink); width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--silver-pale); vertical-align: top; font-size: 0.96rem; }
.data thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.data tbody th { color: var(--navy); font-weight: 700; }
.data td.num { text-align: right; white-space: nowrap; font-weight: 600; }
.data tr:last-child td, .data tr:last-child th { border-bottom: 0; }
.data tr.sum th, .data tr.sum td { background: var(--gold-pale); color: var(--navy-deep); font-weight: 700; }

.note { border-left: 3px solid var(--gold); background: var(--mist); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.95rem; color: var(--ink-soft); }
.note strong { color: var(--navy); }
.section-navy .note { background: rgba(255,255,255,0.07); color: #d5dde6; }
.section-navy .note strong { color: var(--white); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--navy-soft)); color: #dfe6ee; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 56ch; }

/* ---------- Form ---------- */
.choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 30px; padding: 0; border: 0; }
.choose legend { font-weight: 700; color: var(--navy); margin-bottom: 12px; padding: 0; }
.choose label { position: relative; cursor: pointer; display: block; }
.choose input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choose span { display: block; height: 100%; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px; background: var(--white); transition: border-color 0.2s, background 0.2s; font-size: 0.88rem; color: var(--ink-soft); }
.choose span b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.14rem; color: var(--navy); margin-bottom: 3px; }
.choose input:checked + span { border-color: var(--gold); background: #fffbef; box-shadow: inset 0 0 0 1px var(--gold); }
.choose input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 700px) { .choose { grid-template-columns: 1fr; } }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #b8c0ca; border-radius: var(--radius); padding: 12px 13px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold-pale); border-color: var(--gold); }
.field .err { color: #a3261b; font-size: 0.84rem; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a3261b; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--ink-soft); flex: 1 1 260px; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #eaf3e3; color: #2c5216; border: 1px solid #b9d3a5; }
.form-status.bad { background: #fbeceb; color: #8a1f15; border: 1px solid #e6b8b3; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c4d1; padding: 64px 0 28px; font-size: 0.93rem; }
.site-footer a { color: #dfe6ee; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 84px; background: var(--white); border-radius: 50%; padding: 6px; flex: none; }
.site-footer h4 { color: var(--gold-bright); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.fine { padding-top: 24px; font-size: 0.8rem; line-height: 1.6; color: #8f9cab; }
.fine p { margin-bottom: 0.8em; max-width: 100ch; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
  .door img, .btn, .btn .arrow { transition: none; }
}
