@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00447c;
  --navy-deep: #003159;
  --char: #24292d;
  --ink: #313539;
  --red: #ee3124;
  --red-btn: #c8231a;
  --red-btn-hover: #a91c14;
  --paper: #ffffff;
  --mist: #f3f6f9;
  --line: #d9e0e7;
  --cmp-sn-rail-w: 280px;
  --bar-h: 60px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 10px;
  --radius: var(--r-md);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); scrollbar-gutter: stable; }

/* Page changes: the browser keeps the header still and crossfades only the content. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-group(root) { animation-duration: .14s; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--char); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--char); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 24px;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border-radius: var(--r-sm); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 13px 30px; font-size: 1rem; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--red-btn-hover); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Header (chassis): thin sticky bar, or a left rail ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--bar-h);
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
  --sn-link-pad: 20px; --sn-font: 16px; --sn-gap: 24px; --sn-btn-pad: 20px;
  view-transition-name: site-header;
}
/* The nav step is decided before first paint (data-mode on <html>, set in <head>), so these never wait on a script. */
html[data-mode="tight1"] .hdr { --sn-link-pad: 14px; --sn-font: 15px; --sn-gap: 16px; --sn-btn-pad: 16px; }
html[data-mode="tight2"] .hdr, html[data-mode="burger"] .hdr { --sn-link-pad: 7px; --sn-font: 14px; --sn-gap: 10px; --sn-btn-pad: 12px; }
.hdr.scrolled { box-shadow: 0 4px 4px rgba(0,0,0,.08); }
.hdr-bar { display: flex; align-items: center; height: 100%; padding: 0 24px; gap: var(--sn-gap); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--char); flex: none; min-height: 44px; }
.brand-mark { width: 40px; height: auto; flex: none; }
.brand-word { font-weight: 800; font-size: 1.02rem; line-height: 1.1; color: var(--navy); white-space: nowrap; }
.brand-word span { color: var(--char); }
.rail-logo { display: none; }

.hdr-nav { margin-left: auto; align-self: stretch; display: flex; }
.hdr-list { display: flex; align-items: stretch; }
.hdr-item { position: relative; display: flex; align-items: stretch; }
.hdr-link {
  position: relative; display: flex; align-items: center; padding: 0 var(--sn-link-pad);
  font-size: var(--sn-font); font-weight: 600; color: var(--char); text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.has-drop > .hdr-link { padding-right: 0; }
.hdr-link::after {
  content: ""; position: absolute; left: var(--sn-link-pad); right: var(--sn-link-pad); bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.has-drop > .hdr-link::after { right: 0; }
.hdr-link:hover { color: var(--navy); }
.hdr-link:hover::after, .hdr-link[aria-current="page"]::after, .hdr-link.is-here::after { transform: scaleX(1); }
.hdr-link[aria-current="page"], .hdr-link.is-here { color: var(--navy); }
.hdr-chev {
  width: calc(1.4em + var(--sn-link-pad)); padding: 0 var(--sn-link-pad) 0 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: flex-start; font: inherit; font-size: var(--sn-font);
  color: var(--char); cursor: pointer; transition: color .15s;
}
.hdr-chev svg { width: .875em; height: .875em; transition: transform .2s; }
.hdr-chev:hover { color: var(--navy); }
.hdr-item.open .hdr-chev svg { transform: rotate(180deg); }

.hdr-drop {
  position: absolute; top: 100%; left: 0; min-width: 200px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.hdr-item.open .hdr-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html:not(.js) .hdr-item:hover .hdr-drop, html:not(.js) .hdr-item:focus-within .hdr-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hdr-drop a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm);
  font-size: var(--sn-font); font-weight: 600; color: var(--char); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.hdr-drop a:hover { background: var(--mist); color: var(--navy); }
.hdr-drop a[aria-current="page"] { color: var(--navy); box-shadow: inset 3px 0 0 var(--red); }

.hdr-actions { display: flex; align-items: center; gap: calc(var(--sn-gap) / 2); }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 var(--sn-btn-pad);
  font: inherit; font-size: var(--sn-font); font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  border: 0; border-radius: var(--r-sm); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.hbtn:active { transform: translateY(1px); }
.hbtn svg { flex: none; }
.hbtn-red { background: var(--red-btn); color: #fff; }
.hbtn-red:hover { background: var(--red-btn-hover); color: #fff; }
.hbtn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.hbtn-line:hover { background: var(--navy); color: #fff; }
.call-short { display: none; }
html[data-mode="tight1"] .call-long, html[data-mode="tight2"] .call-long { display: none; }
html[data-mode="tight1"] .call-short, html[data-mode="tight2"] .call-short { display: inline; }

.hdr .hdr-social { display: none; }
.hdr-burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: var(--r-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; margin-left: auto;
}
.hdr-burger span { display: block; width: 24px; height: 3px; background: var(--char); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
html[data-mode="burger"] .hdr-nav, html[data-mode="burger"] .hdr-actions { display: none; }
html[data-mode="burger"] .hdr-burger { display: flex; }
/* Only if the <head> script did not run: a narrow window starts on the burger so nothing overflows. */
@media (max-width: 760px) {
  html.js:not([data-mode]) .hdr-nav, html.js:not([data-mode]) .hdr-actions { display: none; }
  html.js:not([data-mode]) .hdr-burger { display: flex; }
}
.hdr-measure { position: absolute; left: -9999px; top: 0; visibility: hidden; pointer-events: none; white-space: nowrap; font-size: 16px; font-weight: 600; }
.hdr-measure .m-btn { font-weight: 700; letter-spacing: .02em; }
.hdr-measure .m-chev { display: inline-block; width: 1.4em; }

/* ---------- Phone menu: right-hand panel under the header ---------- */
.mp-shade {
  position: fixed; inset: var(--bar-h) 0 0 0; background: rgba(20,24,28,.45); z-index: 40;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
}
.mp-shade.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mp {
  position: fixed; top: var(--bar-h); right: 0; bottom: 0; width: min(360px, 100%); z-index: 45;
  display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s;
}
.mp.open { transform: none; visibility: visible; transition-delay: 0s; }
.mp-list { padding: 8px 16px; flex: 1 0 auto; }
.mp-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.mp-row a {
  flex: 1; display: flex; align-items: center; min-height: 52px; padding: 0 4px;
  font-weight: 600; font-size: 1.05rem; color: var(--char); text-decoration: none;
}
.mp-row a:hover { color: var(--navy); }
.mp-row a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
.mp-acc { width: 52px; border: 0; background: transparent; color: var(--char); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--r-sm); }
.mp-acc svg { transition: transform .2s; }
.mp-group.open .mp-acc svg { transform: rotate(180deg); }
.mp-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .2s, visibility 0s .2s; }
.mp-sub > ul { overflow: hidden; min-height: 0; }
.mp-group.open .mp-sub { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.mp-sub .mp-row a { padding-left: 20px; min-height: 48px; font-weight: 500; }
.mp-sub .mp-row a[aria-current="page"] { padding-left: 20px; }
.mp-actions { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 16px; background: #fff; border-top: 1px solid var(--line); }
.mp-actions .btn { width: 100%; }

/* ---------- Request modal ---------- */
.rq { --rq-ms: 220ms; position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rq[hidden] { display: none; }
.rq-backdrop { position: absolute; inset: 0; background: rgba(20,24,28,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--rq-ms); }
.rq-card {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: var(--r-md); padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity var(--rq-ms), transform var(--rq-ms);
}
.rq.is-in .rq-backdrop { opacity: 1; }
.rq.is-in .rq-card { opacity: 1; transform: none; }
.rq-card h2 { font-size: 1.5rem; margin: 0 40px 18px 0; }
.rq-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--char);
  border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s;
}
.rq-close:hover { background: var(--mist); }
.rq-form { display: grid; gap: 14px; }
.rq-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--char); }
.rq-field input, .rq-field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #b9c3cd; border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.rq-field textarea { min-height: 110px; resize: vertical; }
.rq-field input:focus, .rq-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,68,124,.2); }
.rq-field.bad input, .rq-field.bad textarea { border-color: var(--red-btn); animation: rq-flash .6s; }
@keyframes rq-flash { 0%, 60% { background: #fde9e7; box-shadow: 0 0 0 3px rgba(200,35,26,.25); } 100% { background: #fff; box-shadow: none; } }
.rq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-send { width: 100%; }
.rq-send.is-busy { opacity: .7; cursor: progress; }
.rq-note { margin: 0; min-height: 1.7em; font-weight: 600; color: var(--navy); }

/* ---------- Layout switch (mock only; delete #cmp-layout-switch to remove) ---------- */
#cmp-layout-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 150; display: none; padding: 4px; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs); box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
#cmp-layout-switch button {
  min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--char);
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s;
}
#cmp-layout-switch button:hover { background: var(--mist); }
#cmp-layout-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (min-width: 1040px) { #cmp-layout-switch { display: flex; } }


/* ---------- Page bands ---------- */
.band { background: var(--navy); color: #fff; }
.band-in { max-width: 1100px; margin: 0 auto; padding: 36px 20px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #cfe3f5; margin: 0 0 8px; font-weight: 700; }
.band .tagline { font-size: 1.55rem; line-height: 1.25; font-weight: 700; margin: 0; max-width: 24ch; }
.band .btn-red { background: var(--red-btn); }

/* ---------- Home ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.hero-in { max-width: 1100px; margin: 0 auto; padding: 48px 20px 52px; display: grid; gap: 28px; align-items: center; }
.hero h1 { color: #fff; font-size: 2rem; line-height: 1.15; font-weight: 800; margin-bottom: .5em; }
.lede { font-size: 1.12rem; color: #e3effa; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo img { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1210 / 806; object-fit: cover; margin: 0 auto; border-radius: 20px; box-shadow: 0 14px 34px rgba(0,0,0,.32); }

.intro { background: var(--mist); }
.intro-in { max-width: 820px; margin: 0 auto; padding: 44px 20px; font-size: 1.1rem; }
.intro-in p { margin: 0; }

.paths { padding: 40px 20px 8px; }
.paths-in { max-width: 1100px; margin: 0 auto; display: grid; gap: 18px; }
.path { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px 22px; background: #fff; }
.path h2 { font-size: 1.25rem; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.more:hover { text-decoration: underline; }

.touch { padding: 44px 20px 56px; }
.touch-in { max-width: 1100px; margin: 0 auto; }
.touch-h { text-align: center; font-size: 1.6rem; margin-bottom: 1em; }
.boxes { display: grid; gap: 16px; }
.box { background: var(--char); color: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.box h2 { color: #fff; font-size: 1.1rem; margin: 12px 0 8px; }
.box p { margin: 0; overflow-wrap: anywhere; }
.box a { color: #fff; text-decoration: none; display: inline-block; min-height: 24px; }
.box a:hover { text-decoration: underline; color: #fff; }
.box-ic { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--red-btn); color: #fff; }
.director { text-align: center; margin: 28px 0 0; font-weight: 600; color: var(--char); }

/* ---------- About ---------- */
.split { display: grid; }
.split-text { padding: 36px 20px; max-width: 760px; margin: 0 auto; width: 100%; }
.split-text p:last-child { margin-bottom: 0; }
.split-pic { display: flex; align-items: center; justify-content: center; padding: 36px 20px; }
.pic-photo { padding: 0; align-items: stretch; background: var(--mist); }
.pic-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 56% center; }
@media (max-width: 719px) {
  .split-text { padding-top: 28px; padding-bottom: 28px; }
  .split + .split-flip .split-text { padding-top: 0; }
  .split-flip .pic-years { padding-bottom: 10px; }
  .split-flip + .split .pic-years { padding-top: 10px; }
}
.pic-years { background: var(--navy); color: #fff; }
.years { display: grid; gap: 18px; width: 100%; max-width: 360px; }
.years li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.years b { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.years span { color: #d6e8f7; font-weight: 500; line-height: 1.35; }

/* ---------- Doc pages ---------- */
.doc { padding: 40px 20px 56px; }
.doc-in { max-width: 860px; margin: 0 auto; }
.doc-lede { font-size: 1.15rem; color: var(--char); }
.facts { display: grid; gap: 16px; margin-top: 28px; }
.fact { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px 22px; }
.fact h2 { font-size: 1.15rem; margin-bottom: .4em; }
.fact p { margin: 0; }
.cta { margin-top: 36px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 22px; display: grid; gap: 16px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .2em; font-size: 1.3rem; }
.cta p { margin: 0; color: #d6e8f7; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding: 12px 18px; font-weight: 700; color: var(--char);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--red-btn); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 16px 18px 18px; }

.apply-card { display: grid; gap: 16px; align-items: center; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px 22px; background: var(--mist); }
.apply-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.apply-txt h2 { margin: 0 0 .2em; font-size: 1.25rem; }
.apply-txt p { margin: 0; }
.sub { font-size: 1.2rem; margin: 36px 0 .7em; }
.check li { position: relative; padding: 6px 0 6px 30px; }
.check li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.doc-contact .doc-in { text-align: center; }
.contact-h { font-size: 1.7rem; }
.contact-sub { max-width: 40ch; margin: 0 auto 1.2em; }
.touch-solo { padding-top: 0; }

/* ---------- Social icons ---------- */
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy); color: #fff; transition: background-color .15s;
}
.social a:hover { background: var(--red-btn); color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--char); color: #cfd5db; padding: 26px 20px 30px; text-align: center; font-size: .9rem; }
.foot p { margin: 0; }
.social-foot { justify-content: center; }
.social-foot a { background: #3a4147; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .band-in { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 32px; }
  .band .tagline { font-size: 1.9rem; max-width: 26ch; }
  .hero h1 { font-size: 2.6rem; }
  .hero-in { padding: 72px 32px; }
  .paths-in, .boxes { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr auto; padding: 30px 32px; }
  .apply-card { grid-template-columns: auto 1fr auto; padding: 26px 28px; }
  .split { grid-template-columns: 1fr 1fr; min-height: 340px; }
  .split-flip .split-text { order: 0; }
  .split-text { padding: 56px 40px; margin: 0; }
  .split-pic { padding: 40px; }
  .pic-photo { padding: 0; }
  .pic-photo img { height: auto; aspect-ratio: 1 / 1; align-self: center; }
}

@media (min-width: 1100px) { .pic-photo img { height: 100%; aspect-ratio: auto; } }

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .band-in, .hero-in, .paths-in, .touch-in { padding-left: 48px; padding-right: 48px; max-width: 1180px; }
  .paths { padding-left: 0; padding-right: 0; }
  .touch { padding-left: 0; padding-right: 0; }
  .hero-in { grid-template-columns: 1.3fr 1fr; padding-top: 96px; padding-bottom: 96px; }
  .hero-photo img { margin-right: 0; }
  .hero h1 { font-size: 3rem; }
  .intro-in { padding: 64px 32px; font-size: 1.2rem; }
  .split-text { padding: 72px 56px; }
  .doc { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Left rail layout (html[data-cmp-layout="rail"], windows 1040px and wider) ---------- */
@media (min-width: 1040px) {
  html[data-cmp-layout="rail"] body { padding-left: var(--cmp-sn-rail-w); }
  html[data-cmp-layout="rail"] .hdr {
    position: fixed; inset: 0 auto 0 0; width: var(--cmp-sn-rail-w); height: 100vh; height: 100dvh;
    border-bottom: 0; border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
    --sn-link-pad: 4px; --sn-font: 16px; --sn-gap: 24px; --sn-btn-pad: 20px;
    view-transition-name: none;
  }
  html[data-cmp-layout="rail"] .hdr.scrolled { box-shadow: 4px 0 4px rgba(0,0,0,.08); }
  html[data-cmp-layout="rail"] .hdr-bar { flex-direction: column; align-items: stretch; gap: 0; height: auto; min-height: 100%; padding: 32px 24px 24px; }
  html[data-cmp-layout="rail"] .brand { display: none; }
  html[data-cmp-layout="rail"] .rail-logo { display: block; width: 200px; margin: 0 auto 28px; }
  html[data-cmp-layout="rail"] .rail-logo img { width: 200px; height: auto; }
  html[data-cmp-layout="rail"] .hdr-nav, html[data-cmp-layout="rail"] .hdr-actions { display: flex; }
  html[data-cmp-layout="rail"] .hdr-burger { display: none; }
  html[data-cmp-layout="rail"] .hdr-nav { margin: 0; align-self: auto; flex: none; }
  html[data-cmp-layout="rail"] .hdr-list { flex-direction: column; width: 100%; }
  html[data-cmp-layout="rail"] .hdr-item { border-bottom: 1px solid var(--line); min-height: 52px; }
  html[data-cmp-layout="rail"] .hdr-item::before { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 24px; }
  html[data-cmp-layout="rail"] .hdr-link { flex: 1; padding: 0 4px; font-size: 1.05rem; }
  html[data-cmp-layout="rail"] .hdr-link::after { display: none; }
  html[data-cmp-layout="rail"] .hdr-link[aria-current="page"], html[data-cmp-layout="rail"] .hdr-link.is-here { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
  html[data-cmp-layout="rail"] .hdr-chev { width: 44px; padding: 0; justify-content: center; font-size: 1.05rem; }
  html[data-cmp-layout="rail"] .hdr-chev svg { transform: rotate(-90deg); }
  /* The flyout is fixed so the rail's own scrolling does not clip it; script sets --fly-left and --fly-top. */
  html[data-cmp-layout="rail"] .hdr-drop {
    position: fixed; left: var(--fly-left, var(--cmp-sn-rail-w)); top: var(--fly-top, 0); min-width: 220px;
    border: 1px solid var(--line); border-radius: var(--r-md); transform: translateX(-4px);
  }
  html[data-cmp-layout="rail"] .hdr-item.open .hdr-drop { transform: none; }
  html[data-cmp-layout="rail"] .hdr-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
  html[data-cmp-layout="rail"] .hbtn { width: 100%; }
  html[data-cmp-layout="rail"] .hdr-social { display: flex; margin-top: auto; padding-top: 24px; }
}


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
