/* BMGMoneyApps — Design B: photo-led, navy + amber, Sora */
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/sora-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0E1A2B;
  --navy-2: #17263B;
  --navy-3: #2B4A78;
  --amber: #F5B700;
  --amber-2: #FFC933;
  --amber-tint: #FFF8E0;
  --ink: #0E1A2B;
  --ink-2: #4B5A6E;
  --ink-3: #66758A;
  --on-dark: #E3E9F1;
  --on-dark-2: #A8B6C9;
  --paper: #FFFFFF;
  --wash: #F3F5F8;
  --rule: #E2E7EE;
  --rule-2: #EDF0F4;
  --warn: #7A4B00;
  --warn-bg: #FFF1D6;
  --good: #1B6B4A;
  --good-bg: #E5F4EC;
  --focus: #2563EB;

  --font: "Sora", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.8vw, 4.1rem);
  --step-5: clamp(2.6rem, 1.4rem + 5vw, 4.9rem);

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --wrap: 1240px;
  --measure: 70ch;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.7; color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--navy); padding: .6rem 1rem; z-index: 1100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
[id] { scroll-margin-top: 96px; }
h2 { font-size: var(--step-3); margin-top: 2em; scroll-margin-top: 96px; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.015em; margin-top: 1.6em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }
small, .small { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- Top bar + header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); color: #fff; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.notice-strip { font-size: .8125rem; line-height: 1.45; padding: .5rem 0; color: var(--on-dark-2); background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); }
.notice-strip p { margin: 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
body.home .site-header { background: transparent; }
body.home .site-header.is-scrolled, body.home.nav-open .site-header { background: var(--navy); }
body.home .hero-b { margin-top: -72px; }

.brand { display: inline-flex; align-items: center; min-height: 48px; gap: .6rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1.1; }
.brand-sub { display: block; font-size: .75rem; font-weight: 400; color: var(--on-dark-2); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a, .nav-drop > button {
  font: 500 .9375rem/1 var(--font); color: #fff; text-decoration: none;
  padding: .7rem .8rem; border-radius: var(--r-s); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav a:hover, .nav-drop > button:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current="page"] { color: var(--amber); }
.nav-drop { position: relative; }
.nav-drop svg { width: 12px; height: 12px; transition: transform .18s var(--ease); }
.nav-drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: .5rem; background: var(--paper); border-radius: var(--r-m); box-shadow: 0 24px 50px -20px rgba(14,26,43,.45); display: none; }
.drop-panel.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .25rem; }
@media (min-width: 961px) { .drop-panel { left: 50%; transform: translateX(-50%); width: min(600px, calc(100vw - 2rem)); max-height: calc(100vh - 96px); overflow-y: auto; } }
.drop-panel a { display: block; color: var(--ink); padding: .65rem .8rem; line-height: 1.35; font-weight: 600; }
.drop-panel a:hover { background: var(--wash); color: var(--ink); }
.drop-panel a[aria-current="page"] { color: var(--navy-3); }
.drop-panel a span { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 400; margin-top: .15rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1.2 var(--font); padding: 1rem 1.6rem; border-radius: 12px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .15s var(--ease), transform .15s var(--ease), border-color .15s var(--ease); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-2); color: var(--navy); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .7rem 1.1rem; font-size: .9375rem; }
.btn .ext { width: 14px; height: 14px; }
.nav .btn-primary { background: var(--amber); color: var(--navy); margin-left: .5rem; padding: .75rem 1.2rem; font-weight: 700; }
.nav .btn-primary:hover { background: var(--amber-2); color: var(--navy); }
.menu-toggle { display: none; min-height: 46px; background: none; border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--r-s); padding: .55rem .9rem; cursor: pointer; color: #fff; font: 600 .9rem var(--font); align-items: center; gap: .45rem; }
.menu-toggle svg { width: 18px; height: 18px; }

/* ---------- Home hero (full-bleed photo) ---------- */
.hero-b { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; background: var(--navy-2); color: #fff; overflow: hidden; isolation: isolate; }
.hero-b .hero-img, .photo-card img { color: transparent; font-size: 0; }
.hero-b .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-b::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,18,30,.9) 0%, rgba(10,18,30,.62) 46%, rgba(10,18,30,.08) 80%), linear-gradient(0deg, rgba(10,18,30,.6) 0%, rgba(10,18,30,0) 40%); }
.hero-b .wrap { padding: 170px 0 96px; }
.hero-kicker { font-size: .95rem; color: #D7DFEA; margin: 0 0 1.1rem; }
.hero-b h1 { color: #fff; font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; margin-bottom: .45em; }
.hero-b .lede { font-size: var(--step-1); line-height: 1.6; color: var(--on-dark); max-width: 38rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.photo-credit { position: absolute; right: 1rem; bottom: .75rem; font-size: .75rem; color: rgba(255,255,255,.6); margin: 0; }
.photo-credit a { color: inherit; }

.stats-bar { background: var(--navy); color: #fff; }
.stats-bar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 1.75rem 0; }
.stat b { display: block; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.85rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.stat span { font-size: .875rem; color: var(--on-dark-2); }

.photo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.photo-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy-3); isolation: isolate; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,18,30,.9) 0%, rgba(10,18,30,.35) 45%, rgba(10,18,30,0) 70%); }
.photo-card:hover { color: #fff; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .pc-body { padding: 1.6rem; }
.photo-card strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.photo-card span { display: block; color: #D7DFEA; font-size: .95rem; margin-top: .4rem; line-height: 1.5; }
.photo-card .status { margin: 0 0 .8rem; display: inline-flex; width: auto; color: var(--good); background: var(--good-bg); font-size: .78rem; line-height: 1.4; }

.pay-card { background: var(--paper); border-radius: var(--r-l); padding: 2.25rem; box-shadow: 0 30px 60px -36px rgba(14,26,43,.45); }
.pay-card .big { font-size: clamp(3rem, 2rem + 4vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: .4rem 0 1.5rem; }
.pay-card .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.3rem; }
.pay-card .row3 div span { display: block; font-size: .8rem; color: var(--ink-2); }
.pay-card .row3 div b { font-size: 1.3rem; font-weight: 700; }
.pay-card .src { margin: 1.2rem 0 0; font-size: .78rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- Inner page header ---------- */
.page-head { padding: 2.75rem 0 2.75rem; background: var(--navy); color: #fff; }
.page-head h1 { color: #fff; font-size: var(--step-4); max-width: 22ch; margin-bottom: .4em; }
.page-head .lede { font-size: var(--step-1); color: var(--on-dark); max-width: 60ch; line-height: 1.6; margin: 0; }
.crumbs { font-size: .875rem; color: var(--on-dark-2); margin: -.55rem 0 .6rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { margin: 0; display: inline-flex; gap: .4rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark); display: inline-block; padding: .55rem 0; }
.crumbs a:hover { color: #fff; }
.meta-line { margin-top: 1.1rem; font-size: .84rem; color: var(--on-dark-2); }

/* ---------- Article layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 4vw, 4.5rem); padding: 3rem 0 4rem; align-items: start; }
.prose { max-width: var(--measure); min-width: 0; }
.prose > h2:first-child { margin-top: .2em; }
.prose h2 { font-size: var(--step-2); }
.prose .lead-answer { font-size: 1.125rem; background: var(--wash); border-radius: var(--r-m); padding: 1.2rem 1.35rem; color: var(--ink); }
.aside { position: sticky; top: 130px; display: grid; gap: 1.25rem; font-size: .9rem; }
.toc p { font-weight: 700; margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--amber); }
.side-box { background: var(--navy); color: var(--on-dark); border-radius: var(--r-l); padding: 1.3rem 1.35rem; }
.side-box strong { color: #fff; }
.side-box a:not(.btn) { color: #fff; }
.side-box p { margin: 0 0 .7rem; }
.side-box p:last-child { margin: 0; }
.side-box .btn { width: 100%; }

/* ---------- Components ---------- */
.factsheet { border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; margin: 1.5rem 0 1.75rem; background: var(--paper); }
.factsheet-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1rem 1.25rem; background: var(--navy); color: #fff; }
.factsheet-head strong { font-size: 1.05rem; font-weight: 700; }
.factsheet-head span { font-size: .8rem; color: var(--on-dark-2); }
.factsheet dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 38%) 1fr; }
.factsheet dt, .factsheet dd { margin: 0; padding: .8rem 1.25rem; border-bottom: 1px solid var(--rule-2); }
.factsheet dt { color: var(--ink-2); font-size: .9375rem; }
.factsheet dd { font-weight: 700; }
.factsheet dd small { display: block; font-weight: 400; }
.factsheet dl > :nth-last-child(-n+2) { border-bottom: 0; }
.factsheet .src { padding: .8rem 1.25rem; background: var(--wash); font-size: .8rem; color: var(--ink-2); }

.callout { background: var(--amber-tint); border-radius: var(--r-m); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }
.callout.warn { background: var(--warn-bg); }
.callout.warn strong:first-child { color: var(--warn); }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--good-bg); color: var(--good); line-height: 1.4; }
.status.paused { background: var(--warn-bg); color: var(--warn); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 2rem; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.6rem; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.2rem; width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; font: 800 1rem var(--font); color: #fff; background: var(--navy); }
.steps > li::after { content: ""; position: absolute; left: 1.2rem; top: 2.5rem; bottom: .2rem; width: 2px; background: var(--rule); }
.steps > li:last-child::after { display: none; }
.steps > li:last-child { padding-bottom: 0; }
.steps h3 { margin: 0 0 .3rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--ink-2); }
.steps-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.steps-grid li { counter-increment: s; background: var(--wash); border-radius: var(--r-l); padding: 1.5rem; margin: 0; }
.steps-grid li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.steps-grid h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.steps-grid p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

.table-wrap { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(14,26,43,.18), transparent) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(14,26,43,.18), transparent) right / 14px 100% no-repeat scroll; overflow-x: auto; margin: 1.5rem 0 1.75rem; border: 1px solid var(--rule); border-radius: var(--r-l); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .9375rem; }
caption { text-align: left; padding: .85rem 1.1rem; font-size: .8rem; color: var(--ink-2); caption-side: bottom; border-top: 1px solid var(--rule-2); background: var(--wash); }
th, td { text-align: left; vertical-align: top; padding: .9rem 1.1rem; border-bottom: 1px solid var(--rule-2); }
thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .875rem; white-space: nowrap; }
tbody th { font-weight: 700; background: var(--paper); position: sticky; left: 0; min-width: 150px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-focus td, tbody tr.is-focus th { background: var(--amber-tint); }

.cluster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cluster.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 1.25rem 1.35rem; background: var(--paper); transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.tile:hover { border-color: var(--navy); transform: translateY(-3px); color: var(--ink); box-shadow: 0 16px 32px -24px rgba(14,26,43,.6); }
.tile strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; letter-spacing: -0.015em; }
.tile span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pros-cons > div { border-radius: var(--r-l); padding: 1.4rem 1.5rem; background: var(--wash); }
.pros-cons h3 { margin: 0 0 .7rem; font-size: 1.05rem; }
.pros-cons ul { margin: 0; padding-left: 1.1em; font-size: .9375rem; }
.pros-cons .pro h3 { color: var(--good); }
.pros-cons .con h3 { color: var(--warn); }

.qa-list { margin: 1.25rem 0 2rem; border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 1.15rem 2.6rem 1.15rem 0; position: relative; font-weight: 700; font-size: 1.05rem; line-height: 1.45; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-weight: 500; font-size: 1.2rem; transition: transform .2s var(--ease), background-color .2s; }
.qa[open] summary::after { content: "–"; background: var(--amber); }
.qa .qa-body { padding: 0 0 1.2rem; color: var(--ink-2); }
.qa .qa-body p:last-child { margin: 0; }

.band { background: var(--navy); color: var(--on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band h2 { color: #fff; margin: 0 0 .4em; }
.band p { color: var(--on-dark-2); max-width: 56ch; margin: 0; }
.band-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--wash); }
.section-head { max-width: 640px; margin-bottom: 1rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-2); font-size: 1.0625rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.meta-line a { color: var(--on-dark); display: inline-block; padding: .6rem 0; }
.sources { font-size: .9rem; padding-left: 1.1em; }
.sources li { margin-bottom: 0; }
.sources a { display: inline-block; padding: .55rem 0; }
.disclosure { background: var(--wash); border-radius: var(--r-m); padding: 1.1rem 1.35rem; margin: 2rem 0; font-size: .82rem; color: var(--ink-2); line-height: 1.7; }
.disclosure strong { display: block; color: var(--ink); font-size: .875rem; margin-bottom: .25rem; }
.disclosure p { margin: 0; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; margin: 1.5rem 0 2rem; background: var(--paper); }
.calc-in { padding: 1.6rem; display: grid; gap: 1.25rem; }
.calc-out { padding: 1.6rem; background: var(--navy); color: var(--on-dark); display: flex; flex-direction: column; gap: 1rem; }
.field label, .field .label { display: flex; justify-content: space-between; font-weight: 600; font-size: .9375rem; margin-bottom: .45rem; }
.field output { font-weight: 800; color: var(--ink); }
.field input[type=range] { width: 100%; accent-color: var(--navy); height: 28px; }
.field select { width: 100%; font: 500 1rem var(--font); padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: var(--r-s); background: #fff; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--ink-3); margin: .3rem 0 0; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.seg label { margin: 0; justify-content: center; border: 1.5px solid var(--rule); border-radius: var(--r-s); padding: .65rem; cursor: pointer; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--navy); background: var(--amber-tint); font-weight: 700; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-big { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.calc-big-label { font-size: .9rem; color: var(--on-dark-2); }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; margin: 0; border-top: 1px solid rgba(255,255,255,.15); }
.calc-out dt, .calc-out dd { margin: 0; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.calc-out dt { color: var(--on-dark-2); }
.calc-out dd { text-align: right; font-weight: 700; color: #fff; }
.calc-out .small { color: var(--on-dark-2); }
.calc-out .btn-primary { margin-top: auto; }

/* ---------- Icons ---------- */
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; color: var(--navy-3); }
.factsheet dt { display: flex; gap: .55rem; align-items: flex-start; }
.factsheet dt .i { margin-top: .2rem; }

/* ---------- Key takeaways ---------- */
.takeaways { border: 1.5px solid var(--navy); border-radius: var(--r-l); margin: 0 0 1.75rem; overflow: hidden; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--navy); color: #fff; padding: .75rem 1.25rem; }
.tk-head strong { font-size: 1rem; }
.tk-date { font-size: .75rem; background: var(--amber); color: var(--navy); font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.takeaways ul { list-style: none; margin: 0; padding: 1rem 1.25rem .4rem; }
.takeaways li { display: flex; gap: .65rem; margin-bottom: .7rem; line-height: 1.55; }
.takeaways li .i { color: var(--good); margin-top: .2rem; }
.tk-foot { margin: 0; padding: .1rem 1.25rem 1rem; font-size: .82rem; color: var(--ink-2); }
.prose .lead-answer { background: transparent; padding: 0; font-size: 1.15rem; border-radius: 0; }

/* ---------- Author box ---------- */
.author-box { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--rule); border-radius: var(--r-l); padding: 1.25rem 1.35rem; margin: 2.25rem 0; background: var(--paper); }
.ab-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; flex: none; }
.ab-avatar .i { width: 26px; height: 26px; color: var(--navy); }
.ab-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0 0 .4rem; font-size: .9rem; color: var(--ink-2); }
.author-box .ab-name { font-weight: 700; color: var(--ink); font-size: 1rem; }
.author-box .ab-role { font-size: .85rem; }
.ab-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .2rem !important; }
.ab-links a { font-size: .875rem; font-weight: 600; display: inline-block; padding: .6rem 0; }

/* ---------- Apply finder ---------- */
.finder-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.finder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 30px 60px -44px rgba(14,26,43,.55); background: var(--paper); }
.finder-head { grid-column: 1; grid-row: 1; padding: 1.6rem 1.75rem 0; }
.finder-title { margin: 0 0 .35rem; font-size: var(--step-3); }
.finder-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.finder-form { padding: 1.25rem 1.75rem 1.75rem; display: grid; gap: 1.25rem; }
.fq { border: 0; padding: 0; margin: 0; min-width: 0; }
.fq legend { font-weight: 700; margin-bottom: .7rem; display: flex; align-items: center; gap: .6rem; padding: 0; }
.fq-n { width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: .65rem 1rem; border: 1.5px solid var(--rule); border-radius: 999px; font-size: .9rem; font-weight: 500; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder-form { grid-column: 1; grid-row: 2; }
.finder-results { grid-column: 2; grid-row: 1 / span 2; background: var(--wash); padding: 1.75rem; display: flex; align-items: center; min-height: 280px; }
.fr-hint { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.fr-hint p { margin: 0; }
.fr-hint .i { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 12px; background: var(--amber-tint); color: var(--navy); flex: none; }
.finder-results.has-result .fr-hint { display: none; }
.fr { animation: fr-in .3s var(--ease); }
@keyframes fr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fr-kicker { font-size: .8rem; font-weight: 700; color: var(--good); margin: 0 0 .3rem; }
.fr-title { font-size: 1.45rem; margin: 0 0 .5rem; }
.fr p { color: var(--ink-2); font-size: .95rem; }
.fr-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Glossary ---------- */
.glossary-jump { display: flex; flex-wrap: wrap; gap: .4rem; }
.glossary-jump a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--wash); font-weight: 700; text-decoration: none; color: var(--ink); }
.glossary-jump a:hover { background: var(--amber); }
.glossary { margin: 1rem 0 2rem; }
.glossary .term { border-bottom: 1px solid var(--rule-2); padding: 1rem 0; scroll-margin-top: 120px; }
.glossary .term:target { background: var(--amber-tint); padding-left: .8rem; border-radius: var(--r-s); }
.glossary dt { font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.glossary dd { margin: 0; color: var(--ink-2); }

/* ---------- Calculator visuals ---------- */
.share, .split { background: rgba(255,255,255,.06); border-radius: var(--r-m); padding: .9rem 1rem; }
.share-top, .split-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .88rem; color: var(--on-dark-2); margin-bottom: .55rem; }
.share-top b, .split-top b { color: #fff; font-size: 1.15rem; }
.share-track, .split-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; display: flex; }
.share-fill { height: 100%; width: 0; border-radius: 999px; background: #34C38F; transition: width .3s var(--ease), background-color .3s; }
.share-fill.warn { background: var(--amber); }
.share-fill.high { background: #F2706A; }
.share-note { margin: .55rem 0 0; font-size: .8rem; color: var(--on-dark-2); }
.split-p { background: #7FA7E8; height: 100%; transition: width .3s var(--ease); }
.split-i { background: var(--amber); height: 100%; transition: width .3s var(--ease); }
.split-key { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .55rem; font-size: .8rem; color: var(--on-dark-2); }
.split-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: 0; }
.split-key .k-p { background: #7FA7E8; } .split-key .k-i { background: var(--amber); }
.split-key b { color: #fff; margin-left: .25rem; }
.field input[type=number] { width: 100%; font: 500 1rem var(--font); padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: var(--r-s); background: #fff; color: var(--ink); }
@media (max-width: 960px) { .finder { grid-template-columns: 1fr; } .finder-head, .finder-form, .finder-results { grid-column: 1; grid-row: auto; } .finder-results { min-height: 0; scroll-margin-top: 90px; } }

/* ---------- Partner application form (Apply page) ---------- */
.apply-card { position: relative; z-index: 0; isolation: isolate; scroll-margin-top: 96px; margin: 2rem 0 2.5rem; border-radius: var(--r-l); overflow: hidden; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(14,26,43,.5); }
.apply-card-head { background: var(--navy); color: var(--on-dark); padding: 1.6rem 1.75rem 1.4rem; }
.apply-card-head h2 { color: #fff; margin: 0 0 .35rem; font-size: var(--step-2); }
.apply-card-head p { margin: 0 0 1rem; color: var(--on-dark-2); }
.apply-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: #fff; }
.apply-points li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.apply-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%230E1A2B' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; }
.partner-note { background: var(--amber-tint); color: var(--ink); font-size: .84rem; line-height: 1.6; padding: .9rem 1.75rem; border-bottom: 1px solid var(--rule-2); }
.apply-form-wrap { position: relative; z-index: 0; isolation: isolate; padding: 1.5rem 1.75rem; min-height: 460px; }
.apply-form-wrap #_lg_form_ { font-family: var(--font); color: var(--ink); }
.apply-form-wrap #_lg_form_ iframe { width: 100% !important; max-width: 100%; border: 0; }
.form-loading { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 380px; margin: 0; color: var(--ink-2); font-size: .95rem; }
.form-loading::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.apply-fine { margin: 0; padding: 1rem 1.75rem 1.4rem; font-size: .78rem; color: var(--ink-3); line-height: 1.6; border-top: 1px solid var(--rule-2); background: var(--wash); }
@media (max-width: 480px) {
  .apply-card-head, .partner-note, .apply-form-wrap, .apply-fine { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* ---------- Conversion: article CTA + sticky bar ---------- */
.cta-card { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; background: var(--navy); color: var(--on-dark); border-radius: var(--r-l); padding: 1.6rem 1.75rem; margin: 2.5rem 0; }
.cta-card > div:first-child { flex: 1 1 320px; }
.cta-card .cta-title { color: #fff; font-size: 1.35rem; margin: 0 0 .35rem; letter-spacing: -0.02em; }
.cta-card p { margin: 0; color: var(--on-dark-2); font-size: .95rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.cta-sub { color: var(--on-dark); font-size: .9rem; display: inline-block; padding: .6rem 0; }
.cta-sub:hover { color: #fff; }
.sticky-cta { display: none; }
@media (max-width: 960px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--navy); color: var(--on-dark); font-size: .82rem; box-shadow: 0 -10px 30px -16px rgba(0,0,0,.6); transform: translateY(110%); transition: transform .25s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { flex: none; }
  body.has-sticky { padding-bottom: 76px; }
  body.has-sticky .to-top { bottom: 88px; }
}

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 1010; left: 1rem; bottom: 1rem; max-width: 440px; background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 1.1rem 1.2rem; box-shadow: 0 24px 60px -20px rgba(14,26,43,.5); font-size: .875rem; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .8rem; }
.consent-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.link-btn { background: none; border: 0; padding: .7rem 0; min-height: 44px; font: inherit; color: var(--on-dark); text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .consent { left: .5rem; right: .5rem; bottom: .5rem; max-width: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); font-size: .9rem; padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h2 { font-size: .9375rem; font-weight: 700; color: #fff; margin: 0 0 .9rem; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .55rem; }
.foot-brand p { margin-top: 1rem; max-width: 34ch; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .78rem; line-height: 1.75; }
.foot-legal p { margin: 0 0 .7rem; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 980; width: 46px; height: 46px; border-radius: 14px; background: var(--amber); border: 0; color: var(--navy); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); box-shadow: 0 10px 24px -12px rgba(14,26,43,.6); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
.not-found { padding: 4rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .aside .toc, .aside .side-box { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cluster.three { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--nav-top, 110px); right: 0; bottom: 0; left: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 2rem; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a, .nav-drop > button { padding: 1rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; width: 100%; justify-content: space-between; }
  .drop-panel { position: static; box-shadow: none; background: transparent; padding: 0 0 .5rem .75rem; min-width: 0; transform: none; width: auto; }
  .drop-panel.is-open { display: block; }
  .drop-panel a { color: #fff; }
  .drop-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .drop-panel a span { color: var(--on-dark-2); }
  .nav .btn-primary { margin: 1.25rem 0 0; justify-content: center; border-bottom: 0; border-radius: 12px; padding: 1rem; }
  body.nav-open { overflow: hidden; }
  .photo-cards { grid-template-columns: 1fr; }
  .photo-card { min-height: 340px; }
  .stats-bar .wrap { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .pros-cons, .calc { grid-template-columns: 1fr; }
  .cluster, .cluster.three, .steps-grid { grid-template-columns: 1fr; }
  .factsheet dl { grid-template-columns: 1fr; }
  .factsheet dt { border-bottom: 0; padding-bottom: 0; font-size: .82rem; }
  .factsheet dd { padding-top: .2rem; }
  .band-row { flex-direction: column; align-items: flex-start; }
  .hero-b .wrap { padding: 140px 0 64px; }
  .hero-b::before { background: linear-gradient(0deg, rgba(10,18,30,.92) 0%, rgba(10,18,30,.7) 55%, rgba(10,18,30,.35) 100%); }
}
@media (max-width: 480px) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .brand-sub { display: none; }
  .notice-strip { font-size: .75rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot-grid > div:last-child ul { columns: 2; column-gap: 1.25rem; }
  .foot-grid > div:last-child li { break-inside: avoid; }
  .foot-grid li { margin-bottom: 0; }
  .foot-grid li a { display: block; padding: .65rem 0; }
  .tile { padding: 1rem 1.1rem; }
  .hero-actions .btn { width: 100%; }
  .pay-card { padding: 1.5rem; }
  .pay-card .row3 b { font-size: 1.1rem; }
}

/* ---------- Home: added sections (v7) ---------- */
.need-grid { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.need-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.need-grid li { margin: 0; border: 1px solid var(--rule); border-radius: var(--r-l); padding: 1.35rem 1.4rem; background: var(--paper); }
.need-grid .i { width: 22px; height: 22px; padding: 10px; box-sizing: content-box; border-radius: 12px; background: var(--amber-tint); color: var(--navy); display: block; margin-bottom: .95rem; }
.need-grid strong { display: block; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: .3rem; }
.need-grid span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; background: var(--wash); border-radius: var(--r-l); padding: 1.25rem 1.5rem; }
.inline-cta p { margin: 0; }
.inline-cta .hero-actions { margin: 0; }
.estimates { margin-top: clamp(2.5rem, 5vw, 4rem); }
.estimates h3 { font-size: var(--step-2); letter-spacing: -0.025em; margin: 0 0 .6rem; }
.estimates > p { max-width: 720px; color: var(--ink-2); }
.speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.speed > div { border-radius: var(--r-l); padding: 1.4rem 1.5rem; background: var(--navy); color: #fff; }
.speed .speed-time { display: block; color: var(--amber); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.2; }
.speed strong { display: block; margin: .45rem 0 .25rem; font-size: 1rem; }
.speed > div > span:last-child { display: block; color: var(--on-dark-2); font-size: .92rem; line-height: 1.55; }
.src-note { font-size: .8rem; color: var(--ink-3); margin: .75rem 0 0; }
.src-note a { display: inline-block; padding: .75rem 0; margin: -.75rem 0; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0 .4rem; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.5rem; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--wash); }
.timeline .tl-date { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-bottom: .2rem; }
.timeline strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.timeline li > span:last-child { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.section.dark { position: relative; background: var(--navy); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.section.dark > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.section.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,26,43,.97) 0%, rgba(14,26,43,.92) 50%, rgba(14,26,43,.7) 100%); }
.section.dark h2 { color: #fff; }
.section.dark .section-head p { color: var(--on-dark-2); }
.cluster.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dark-tiles .tile { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.dark-tiles .tile:hover { border-color: var(--amber); color: #fff; }
.dark-tiles .tile span { color: var(--on-dark-2); }
@media (max-width: 1024px) {
  .need-grid.four, .cluster.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .need-grid, .speed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .need-grid, .need-grid.four, .speed, .cluster.four { grid-template-columns: 1fr; }
  .need-grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem 1.2rem; }
  .need-grid .i { grid-row: span 2; margin: 0; }
  .inline-cta .hero-actions { width: 100%; }
}


/* ---------- Local photos (v9) ---------- */
.hero-b .hero-img { object-position: 68% 40%; }
.photo-card img { object-position: 50% 8%; }
.section.dark > img { object-position: 100% 50%; }
.section.dark::before { background: linear-gradient(90deg, rgba(14,26,43,.97) 0%, rgba(14,26,43,.9) 48%, rgba(14,26,43,.45) 100%); }
.page-head.has-photo .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.head-photo { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; }
@media (max-width: 960px) {
  .page-head.has-photo .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .head-photo { aspect-ratio: 16 / 9; }
  .page-head.photo-desktop-only .head-photo { display: none; }
}


/* ---------- Hero motion: lamp glow + floating light (v10) ---------- */
.hero-b .wrap { position: relative; z-index: 1; }
.hero-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(34% 44% at 64% 18%, rgba(255,190,90,.55), rgba(255,170,60,0) 70%);
  animation: hero-breathe 7s ease-in-out infinite; will-change: opacity, transform; }
@keyframes hero-breathe { 0%, 100% { opacity: .45; transform: none; } 50% { opacity: 1; transform: translate(-1.5%, 1%) scale(1.06); } }
.hero-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-dots i { position: absolute; bottom: -40px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,206,120,.9), rgba(255,180,80,0) 70%); filter: blur(1.5px); opacity: 0;
  animation: hero-rise var(--d) linear var(--t) infinite; will-change: transform, opacity; }
@keyframes hero-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .55; } 100% { transform: translateY(-95vh); opacity: 0; } }
.hero-b.fx-paused .hero-glow, .hero-b.fx-paused .hero-dots i { animation-play-state: paused; }
@media (max-width: 760px) {
  .hero-glow { background: radial-gradient(48% 34% at 52% 16%, rgba(255,190,90,.5), rgba(255,170,60,0) 70%); }
  .hero-dots i:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-dots { display: none; } .hero-glow { opacity: .7; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .notice-strip, .site-footer, .aside, .to-top, .band { display: none; } }
.head-photo img[src*="card-"] { object-position: 50% 6%; }
