/* Inter, self-hosted (no third-party request, preloaded in the layouts). A metric-matched local fallback keeps text from jumping when Inter arrives. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/inter-latin.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: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
/* ==========================================================================
   Ed-Options · "Horizons" design system — base layer
   Light editorial interface. Dark surfaces only for footer + portal sidebar.
   ========================================================================== */
:root {
  --paper: #FAF8F3; --paper-2: #F3EFE6; --surface: #FFFFFF; --mist: #EAF4FA; --mist-2: #D9EDF8;
  --line: #E4DFD3; --line-2: #EEEAE1;
  --ink: #0B1626; --ink-2: #2E3E52; --muted: #5C6878; --faint: #8A95A3;
  --brand: #0A6FB0; --brand-2: #075A8F; --brand-3: #053E63; --cyan: #41C5F4; --cyan-2: #BFE9FB;
  --sun: #F2B33D; --sun-2: #FCEFD2; --coral: #E8735A;
  --ok: #137A4B; --ok-2: #DFF3E8; --warn: #8A5A00; --warn-2: #FCEFD2; --danger: #B0361C; --danger-2: #FBE4DE; --info: #0A6FB0; --info-2: #E1F0FA;
  --usa: #2F4B8F; --usa-2: #E5EBF8; --uk: #8E2F45; --uk-2: #F7E7EB; --canada: #B03A2E; --canada-2: #FAE7E4; --australia: #11776B; --australia-2: #DCF1EE; --ireland: #1F7A3E; --ireland-2: #E1F2E6; --nz: #1B4F72; --nz-2: #E2EDF6;
  --night: #08131F; --night-2: #0F2032; --night-3: #17304A; --night-line: rgba(255,255,255,.09); --night-text: #BFCDDB;

  --f-display: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --t-xs: .78rem; --t-sm: .9rem; --t-md: 1rem; --t-lg: 1.15rem; --t-xl: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  --t-2xl: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); --t-3xl: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); --t-4xl: clamp(3rem, 1.2rem + 6.5vw, 7.4rem);

  --gutter: clamp(1rem, .4rem + 2.6vw, 3rem); --maxw: 1320px; --section: clamp(4.5rem, 3rem + 6vw, 9.5rem);
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(11,22,38,.06), 0 1px 1px rgba(11,22,38,.04);
  --sh-2: 0 12px 30px -12px rgba(11,22,38,.18), 0 3px 8px rgba(11,22,38,.05);
  --sh-3: 0 40px 80px -30px rgba(11,22,38,.35), 0 10px 24px rgba(11,22,38,.08);
  --ring: 0 0 0 4px rgba(10,111,176,.22);
  --ease: cubic-bezier(.2,.8,.2,1); --ease-in-out: cubic-bezier(.76,0,.24,1); --ease-back: cubic-bezier(.34,1.56,.64,1);
  --header-h: 76px; --dock-h: 0px;
  color-scheme: light;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 var(--t-md)/1.65 var(--f-body); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; }
h1, h2, .display { font-family: var(--f-display); font-weight: 300; letter-spacing: -.04em; font-feature-settings: "ss01", "cv11"; }
h1 { font-size: var(--t-3xl); } h2 { font-size: var(--t-2xl); } h3, h2.h3-size { font-size: var(--t-xl); } h4 { font-size: var(--t-lg); }
h1 em, h2 em, h3 em, .display em { font-style: normal; font-weight: 600; color: var(--brand); }
p { margin: 0 0 1em; } ul, ol { margin: 0 0 1em; padding-left: 1.25em; } li + li { margin-top: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .small { font-size: var(--t-sm); } .xs { font-size: var(--t-xs); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .ink { color: var(--ink); } .mono { font-family: var(--f-mono); }
::selection { background: var(--cyan-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 2000; background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.bg-paper2 { background: var(--paper-2); } .bg-mist { background: var(--mist); } .bg-white { background: var(--surface); }
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 2rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: center; }
.split--top { align-items: start; } .split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.stack > * + * { margin-top: 1rem; } .stack-lg > * + * { margin-top: 2rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .row--between { justify-content: space-between; } .row--end { justify-content: flex-end; } .row--nowrap { flex-wrap: nowrap; }
.spacer { flex: 1; } .center { text-align: center; } .mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.w-full { width: 100%; }

/* Editorial type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: .7em; font: 700 var(--t-xs)/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.4rem; }
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--cyan); }
.sec-num { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--faint); letter-spacing: .1em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.balance { text-wrap: balance; } .pretty { text-wrap: pretty; }
.display-xl { font-family: var(--f-display); font-size: var(--t-4xl); line-height: .95; letter-spacing: -.045em; font-weight: 300; color: var(--ink); }
.outline-text { -webkit-text-stroke: 1.2px currentColor; color: transparent; }
.sec-head { max-width: 820px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; } .sec-head--center .eyebrow { justify-content: center; } .sec-head--center .lead { margin-inline: auto; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ---------- Motion primitives (driven by site.js; static when reduced motion / no JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); } .js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); } .js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0) * 1ms); }
.js [data-split].is-in .w > span { transform: none; }
/* Page headings (the LCP element): visible from the first paint and rise into place. No opacity or clipping, so nothing delays rendering. */
.js .h-rise { animation: h-rise .9s var(--ease) both; }
@keyframes h-rise { from { transform: translate3d(0, .35em, 0); } to { transform: none; } }
.js [data-wipe] { clip-path: inset(0 0 100% 0 round var(--r-lg)); transition: clip-path 1.4s var(--ease-in-out); }
.js [data-wipe].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js [data-wipe] img { transform: scale(1.18); transition: transform 1.8s var(--ease); } .js [data-wipe].is-in img { transform: scale(1); }
[data-parallax] { will-change: transform; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(65,197,244,.55); } 100% { box-shadow: 0 0 0 16px rgba(65,197,244,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.rise { animation: rise .5s var(--ease) both; }
.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, #fff 37%, var(--line-2) 63%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-sm); min-height: 1em; }

/* Cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .js .h-rise { animation: none; }
  .js [data-wipe] { clip-path: none !important; } .js [data-wipe] img { transform: none !important; }
  @view-transition { navigation: none; }
}

/* Never allow sideways page scroll (off-screen reveal transforms, wide media) */
html { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
@media (max-width: 900px) { .js [data-reveal="left"], .js [data-reveal="right"] { transform: translate3d(0, 28px, 0); } .js [data-reveal="left"].is-in, .js [data-reveal="right"].is-in { transform: none; } }
