/* AlignApply shared styles. Tokens and rules come from _work/design-plan.md */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 92.5%; ascent-override: 79.5%; descent-override: 28.6%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"); size-adjust: 101.9%; ascent-override: 98.1%; descent-override: 29.7%; line-gap-override: 0%; }

:root {
  --ink: #071A33;
  --ink-2: #0C2546;
  --navy: #012F5E;
  --blue: #1D5FA8;
  --teal: #028398;
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --mist: #E8EEF5;
  --line: #D9DEE6;
  --sage: #CDEBD6;
  --sage-2: #A9DCB8;
  --sage-ink: #1E6B3F;
  --slate: #5B6878;
  --fog: #E4E8EE;
  --text: #1B2A3F;
  --muted: #4A5A6E;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --sans: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;
  --r-btn: 3px;
  --hdr: 96px;
  --gut: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --media-cap: min(76vh, 760px);
}
@media (max-width: 1099px) { :root { --hdr: 78px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-top: var(--hdr);
  font: 400 17px/1.6 var(--sans); color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 450; color: var(--navy); letter-spacing: -.012em; line-height: 1.08; font-optical-sizing: auto; }
h3 { font-size: clamp(1.4rem, 1.8vw, 1.75rem); line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.sec--paper { background: var(--paper); }
.sec--mist { background: var(--mist); }
.sec--ink { background: var(--ink); color: #DCE5F0; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
.h2 em { color: var(--teal); }
.sec--ink .h2 em { color: var(--sage); }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); }
.sec--ink .lede { color: #B9C7D8; }
.sec__head { margin-bottom: clamp(36px, 4vw, 56px); }
.sec__head .lede { margin-top: 18px; }

/* the highlighter: a pale green marker sweep on chosen words */
.hl { background: linear-gradient(transparent 58%, var(--sage) 58%, var(--sage) 94%, transparent 94%) no-repeat 0 0 / 100% 100%; padding: 0 .06em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: inherit; }
.sec--ink .hl, .hero .hl { background-image: linear-gradient(transparent 62%, rgba(169, 220, 184, .38) 62%, rgba(169, 220, 184, .38) 92%, transparent 92%); }
.js .hl[data-hl] { background-size: 0% 100%; }

/* SplitText line masks: padded, pulled back with bottom-heavy margins (frontend-design heading rule) */
.split { display: flow-root; }
/* all the pull-back sits on the bottom margin: top and bottom negative margins would collapse between lines */
.split .line-mask { overflow: clip; display: block; padding: .2em .15em .5em; margin: 0 -.15em -.7em; }

/* buttons */
.btn {
  --b: var(--navy); --c: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border: 1.5px solid var(--b); border-radius: var(--r-btn);
  background: var(--b); color: var(--c); font: 600 1rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; overflow: clip; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--h, var(--blue)); transform: scaleX(0); transform-origin: 50% 50%; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover { color: var(--hc, #fff); border-color: var(--h, var(--blue)); }
.btn .arr { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--navy { --b: var(--navy); --c: #fff; --h: var(--ink); }
.btn--sage { --b: var(--sage); --c: var(--ink); --h: #fff; --hc: var(--ink); }
.btn--ghost { --b: transparent; --c: var(--navy); --h: var(--navy); border-color: var(--navy); }
.btn--ghost-light { --b: transparent; --c: #fff; --h: #fff; --hc: var(--ink); border-color: rgba(255, 255, 255, .55); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .btns { flex-direction: column; align-items: stretch; } }

/* verdict tags */
.vtag { display: inline-flex; align-items: center; gap: .4em; font: 800 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; }
.vtag--apply { background: var(--sage); color: var(--sage-ink); }
.vtag--decline { background: var(--fog); color: var(--slate); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: height .4s var(--ease), border-color .4s, box-shadow .4s; }
.hdr.is-small { height: 78px; border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(7, 26, 51, .45); }
.hdr__in { height: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 70px; width: auto; transition: height .4s var(--ease); }
.hdr.is-small .hdr__logo img { height: 56px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 0; background: none; color: var(--text); font: 500 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 2px; background: var(--sage-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav__link:hover, .nav__link.is-current { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-current::after, .nav__item--sub.is-open .nav__link::after { transform: scaleX(1); }
.chev { transition: transform .3s var(--ease); }
.nav__trigger { padding-right: 32px; }
.nav__trigger::after { right: 32px; }
.nav__trigger::before { content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 8px; margin-top: -4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B2A3F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.nav__item--sub.is-open .nav__trigger::before { transform: rotate(180deg); }
.nav__panel { position: absolute; top: 100%; left: -18px; width: 380px; padding-top: 14px; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.nav__item--sub.is-open .nav__panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav__panel ul { list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(7, 26, 51, .4); border-top: 3px solid var(--navy); }
.nav__sublink { display: block; padding: 13px 14px; color: var(--text); text-decoration: none; transition: background .25s; }
.nav__sublink strong { display: block; font: 600 1rem/1.3 var(--sans); color: var(--navy); }
.nav__sublink span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.nav__sublink:hover, .nav__sublink:focus-visible, .nav__sublink.is-current { background: var(--paper); }
.hdr__cta { flex: none; min-height: 48px; padding: 0 22px; }
.burger { display: none; position: relative; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); transition: transform .35s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mnav { position: fixed; inset: var(--hdr) 0 0; z-index: 99; background: var(--ink); color: #fff; overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease), visibility 0s .5s; }
.mnav.is-open { visibility: visible; clip-path: inset(0 0 0% 0); transition-delay: 0s; }
.mnav__in { padding: 28px var(--gut) 48px; }
.mnav__list { list-style: none; margin: 0 0 28px; padding: 0; }
.mnav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mnav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; padding: 0; border: 0; background: none; color: #fff; font: 450 1.6rem/1.1 var(--serif); text-decoration: none; text-align: left; cursor: pointer; }
.mnav__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mnav__sub { list-style: none; margin: 0; padding: 0 0 0 4px; display: none; }
.mnav__sub.is-open { display: block; padding-bottom: 14px; }
.mnav__sub a { display: flex; align-items: center; min-height: 48px; color: var(--sage); font-size: 1.05rem; text-decoration: none; }
.mnav__cta { width: 100%; }
@media (max-width: 1099px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .hdr__logo img, .hdr.is-small .hdr__logo img { height: 58px; }
  .hdr.is-small { height: var(--hdr); }
}

/* ---------- seam frame: media that opens from a centre seam ---------- */
.frame { position: relative; margin: 0; }
.frame__clip { position: relative; overflow: hidden; background: var(--mist); }
.frame__clip img { width: 100%; height: 100%; object-fit: cover; }
.frame__seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--sage-2); transform-origin: 50% 0; opacity: 0; pointer-events: none; z-index: 2; }
.frame__cap { position: absolute; left: 0; bottom: 0; z-index: 3; max-width: calc(100% - 24px); padding: 12px 16px; background: #fff; color: var(--text); font-size: .93rem; line-height: 1.4; border-top: 3px solid var(--sage-2); }
.frame__cap strong { color: var(--navy); }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--paper); color: var(--text); }
.ftr__ticker { overflow: clip; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.ftr__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 14px 0; animation: tick 60s linear infinite; }
.ftr__track li { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; white-space: nowrap; font-weight: 500; color: var(--navy); }
@keyframes tick { to { transform: translateX(-50%); } }
.ftr__main { position: relative; overflow: clip; }
.ftr__main::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(1, 47, 94, .1) 39px 40px); animation: rule 18s linear infinite; pointer-events: none; }
/* a large turning ring, the circle of the logo, keeps the footer alive */
.ftr__main::after { content: ""; position: absolute; right: -160px; top: -140px; width: 560px; height: 560px; border: 3px dashed rgba(29, 95, 168, .22); border-radius: 50%; animation: ring 50s linear infinite; pointer-events: none; }
@keyframes ring { to { transform: rotate(360deg); } }
@keyframes rule { to { background-position: 0 400px; } }
.ftr__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.ftr__logo img { width: 210px; }
.ftr__brand p { margin: 20px 0 22px; color: var(--muted); }
.ftr__h { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 8px 0 18px; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; }
.ftr__col li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 500; background: linear-gradient(var(--sage-2), var(--sage-2)) no-repeat 0 85% / 0 2px; transition: background-size .35s var(--ease); }
.ftr__col li a:hover { background-size: 100% 2px; }
.ftr__note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.ftr__note a { display: inline-block; padding: 10px 0; }
.ftr__credit { background: var(--ink); color: #B9C7D8; font-size: .95rem; }
.ftr__credit-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.ftr__credit p { margin: 0; }
.ftr__credit a { color: #fff; }
.ftr__credit a:hover { color: var(--sage); }
@media (max-width: 900px) {
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; padding-top: 56px; padding-bottom: 56px; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .ftr__grid { grid-template-columns: minmax(0, 1fr); } }

/* reduced motion: everything complete and still */
@media (prefers-reduced-motion: reduce) {
  .ftr__track, .ftr__main::before, .ftr__main::after { animation: none; }
  .js .hl[data-hl] { background-size: 100% 100%; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- closing call to action band (inner pages) ---------- */
.ctaband { overflow: clip; }
.ctaband__bg { position: absolute; inset: -10% 0; pointer-events: none; background: radial-gradient(50% 70% at 80% 50%, rgba(29, 95, 168, .4), transparent 70%), repeating-linear-gradient(180deg, transparent 0 47px, rgba(255, 255, 255, .06) 47px 48px); animation: bandDrift 9s ease-in-out infinite alternate; }
@keyframes bandDrift { from { transform: translate3d(0, -4%, 0); } to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.ctaband__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 40px; align-items: center; }
.ctaband__copy .lede { margin: 20px 0 30px; }
.ctaband__art { position: relative; justify-self: end; width: clamp(240px, 26vw, 360px); }
.ctaband__svg { width: 100%; height: auto; overflow: visible; }
.ctaband__ring { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 50s linear infinite; }
.ctaband__ring circle { fill: none; stroke: rgba(169, 220, 184, .45); stroke-width: 1.5; stroke-dasharray: 3 10; }
.cb-half { fill: none; stroke-width: 14; stroke-linecap: butt; }
.cb-half--apply { stroke: var(--sage-2); }
.cb-half--decline { stroke: #8D99A9; }
.cb-mark { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.cb-seam { stroke: rgba(255, 255, 255, .25); stroke-width: 1; stroke-dasharray: 4 6; }
.ctaband__tag { display: flex; justify-content: center; gap: 10px; margin: 16px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .ctaband__grid { grid-template-columns: minmax(0, 1fr); } .ctaband__art { justify-self: center; width: min(70%, 280px); } }
@media (prefers-reduced-motion: reduce) { .ctaband__ring, .ctaband__bg { animation: none; } }
