/* Stanford Laboratory — public site styles */
:root {
    --navy-900: #071d42;
    --navy-800: #0b2a5b;
    --navy-700: #12397a;
    --blue-600: #1f4fb8;
    --blue-500: #2f66d6;
    --blue-50:  #eef3fc;
    --red-600:  #d32f2f;
    --red-500:  #e53935;
    --red-50:   #fdeeee;
    --ink-900:  #0f172a;
    --ink-700:  #334155;
    --ink-500:  #64748b;
    --ink-300:  #cbd5e1;
    --line:     #e2e8f0;
    --bg:       #ffffff;
    --bg-tint:  #f5f8fd;
    --radius-sm: 10px;
    --radius:   16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow:   0 10px 30px -12px rgba(11, 42, 91, .25);
    --shadow-lg: 0 30px 60px -20px rgba(7, 29, 66, .45);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Plus Jakarta Sans', var(--font-body);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* never allow sideways scrolling on phones */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
.h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.mb { margin-bottom: 1rem; } .mb-lg { margin-bottom: 2.5rem; } .mt-lg { margin-top: 2.5rem; }
.tight { margin: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .78em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
    white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55em 1.05em; font-size: .875rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(211, 47, 47, .6); }
.btn--primary:hover { background: #b71c1c; color: #fff; }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--white { background: #fff; color: var(--navy-800); }
.btn--white:hover { color: var(--red-600); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--back { margin-top: 2.5rem; }
.link-arrow--back:hover .icon { transform: translateX(-3px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--red-600); margin-bottom: 1rem;
}
.eyebrow--light { color: #ffd6d6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .45em .9em; border-radius: 999px; letter-spacing: .06em; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .35em .85em; border-radius: 999px; background: var(--blue-50); color: var(--navy-700); font-size: .85rem; font-weight: 600; }
.chip--red { background: var(--red-50); color: var(--red-600); }

/* Topbar & header */
.topbar { background: var(--navy-900); color: #c7d4ee; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.topbar__info { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: .45em; color: inherit; }
.topbar__info a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy-800); }
.brand__mark { width: 40px; height: auto; }
.brand__custom { max-height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__text strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-800); }
.brand__text small { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--red-600); margin-top: 4px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #ff9b9b; }
.brand--light .brand__mark { background: #fff; border-radius: 10px; padding: 5px; width: 46px; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink-700); font-weight: 500; font-size: .95rem; transition: background .15s, color .15s; }
.nav ul a:hover { color: var(--navy-800); background: var(--blue-50); }
.nav ul a.is-active { color: var(--navy-800); background: var(--blue-50); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy-800); cursor: pointer; border-radius: 10px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-800); color: #dbe5f7; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(47, 102, 214, .55), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(211, 47, 47, .35), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-800) 50%, var(--navy-700));
}
.hero__bg::after {
    content: ""; position: absolute; inset: 0; opacity: .14;
    background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c9d6ef; max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__actions--center { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; font-size: .92rem; color: #b8c7e6; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45em; }
.hero__trust .icon { color: #7ee2a8; }
.hero__panel { position: relative; z-index: 2; }

/* Optional cut-out person on the right edge of the hero */
.hero__person {
    position: absolute; right: max(0px, calc((100vw - 1600px) / 2)); bottom: 0; z-index: 1;
    height: 94%; max-height: 720px; width: auto; max-width: 34vw;
    object-fit: contain; object-position: right bottom; pointer-events: none;
    filter: drop-shadow(0 24px 40px rgba(3, 12, 32, .45));
}
.hero--person::before {
    content: ""; position: absolute; right: 4%; bottom: -10%; width: 42vw; max-width: 700px; aspect-ratio: 1;
    border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 102, 214, .55), transparent); pointer-events: none; z-index: 1;
}
.hero--person .hero__grid { z-index: 2; }
@media (min-width: 1101px) {
    .hero--person .hero__grid { grid-template-columns: 1.1fr .85fr; }
    .hero--person .container.hero__grid { max-width: 1320px; padding-right: 25vw; }
    .hero__person { max-width: 30vw; }
}
@media (min-width: 1500px) {
    .hero--person .container.hero__grid { padding-right: clamp(24px, 30vw - 190px, 380px); }
    .hero__person { max-width: 34vw; }
}
@media (max-width: 1100px) {
    .hero__person, .hero--person::before { display: none; }
}
.hero__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: -60px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.hours-card { position: relative; background: #fff; color: var(--ink-700); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.hero__photo + .hours-card { margin: 0 1.25rem; }
.hours-card__head { display: flex; gap: .9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.hours-card__head strong { display: block; font-family: var(--font-head); color: var(--ink-900); font-size: 1.1rem; }
.hours-card__head small { color: var(--ink-500); }
.hours-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red-50); color: var(--red-600); }
.hours-card__icon .icon { width: 24px; height: 24px; }
.hours-card__foot { display: flex; gap: .6rem; align-items: flex-start; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-500); font-size: .9rem; }
.hours-card__foot .icon { color: var(--red-600); margin-top: 3px; }

.hours-list { list-style: none; padding: 0; margin: .5rem 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list li > span:last-child { text-align: right; }
.hours-list strong { color: var(--ink-900); font-weight: 600; }
.hours-list em { display: block; font-style: normal; font-size: .8rem; color: var(--ink-500); }
.hours-list--lg li { padding: 1rem 0; font-size: 1rem; }

/* Stats */
.stats { position: relative; margin-top: -2.5rem; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; padding: 0; }
.stat { padding: 1.6rem 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-500); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--article { padding-top: 3rem; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 1rem; }
.section-head--row h2 { margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon, .feature__icon, .service-row__icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-50), #dfe8fb); color: var(--blue-600); margin-bottom: 1.1rem;
}
.service-card__icon .icon, .feature__icon .icon { width: 26px; height: 26px; }
.service-card p { color: var(--ink-500); font-size: .94rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.5fr 1fr; }
.split__copy p { font-size: 1.05rem; }
.split__copy .btn { margin-top: .75rem; }

.mvv { background: var(--navy-800); color: #c9d6ef; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.mvv::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(47,102,214,.55), transparent 70%); }
.mvv__item { position: relative; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.mvv__item p { color: #e5ecfa; font-size: 1.05rem; margin: 0; }
.mvv__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff9b9b; margin-bottom: .5rem; }
.mvv__values { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.mvv__values .chip { background: rgba(255,255,255,.1); color: #fff; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .feature__icon { margin: 0; }
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--ink-500); font-size: .94rem; }
.section--tint .feature { border-color: transparent; box-shadow: var(--shadow-sm); }

/* CTA */
.cta { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.section + .cta, .section--tint + .cta { padding-top: clamp(4rem, 8vw, 6rem); }
.cta__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    background: linear-gradient(120deg, var(--red-600), #b71c1c 55%, var(--navy-800));
    border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); color: #ffe3e3; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { margin: 0; max-width: 40em; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.55); }
.post-card__placeholder .icon { width: 44px; height: 44px; }
.post-card__body { padding: 1.4rem; }
.post-card time { font-size: .82rem; font-weight: 600; color: var(--red-600); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { margin: .4rem 0 .5rem; font-size: 1.15rem; }
.post-card h3 a { color: var(--ink-900); }
.post-card h3 a:hover { color: var(--blue-600); }
.post-card p { color: var(--ink-500); font-size: .94rem; margin: 0; }

/* Promotions */
.section--promos { padding-top: clamp(4.5rem, 8vw, 6rem); }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.promo-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo-card__media { position: relative; display: block; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue-50), #dfe8fb); overflow: hidden; }
.promo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.promo-card:hover .promo-card__media img { transform: scale(1.03); }
.promo-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--blue-600); background: linear-gradient(135deg, var(--blue-50), #dfe8fb); }
.promo-card__placeholder .icon { width: 56px; height: 56px; }
.promo-badge {
    position: absolute; top: 14px; left: 14px; padding: .4em .9em; border-radius: 999px;
    background: var(--red-600); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: -.01em;
    box-shadow: 0 8px 18px -6px rgba(211, 47, 47, .7);
}
.promo-badge--inline { position: static; display: inline-block; font-size: 1.35rem; margin-bottom: 1rem; }
.promo-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.promo-card__body h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.promo-card__body h3 a { color: var(--ink-900); }
.promo-card__body h3 a:hover { color: var(--blue-600); }
.promo-card__body > p:not(.promo-card__date) { color: var(--ink-500); font-size: .95rem; }
.promo-card__date { display: flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 600; color: var(--red-600); margin-bottom: .5rem; }
.promo-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .5rem; }
.promo-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.promo-detail__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.promo-detail__placeholder { aspect-ratio: 4/3; border-radius: var(--radius-lg); }
.promo-detail__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.notice--expired { margin: 0 0 1.5rem; background: #fff7ed; border-color: #fed7aa; }
.notice--expired > .icon { color: #c2410c; }
.promo-note { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--red-50); color: #8b1d1d; margin-bottom: 1.25rem; font-size: .95rem; }
.promo-note .icon { color: var(--red-600); }

/* Page hero */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700)); color: #c9d6ef; padding: clamp(2.75rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(47,102,214,.45), transparent); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: .5rem 0 .6rem; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero .lead { font-size: 1.1rem; margin: 0; max-width: 46em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #93a6cc; }
.breadcrumb a { color: #c9d6ef; }
.breadcrumb a:hover { color: #fff; }

/* Prose */
.prose { font-size: 1.06rem; color: var(--ink-700); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--red-600); background: var(--bg-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose > :first-child { margin-top: 0; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; }

.article { max-width: 820px; }
.article__meta { display: inline-flex; align-items: center; gap: .5em; color: var(--ink-500); font-weight: 500; }
.article__image { border-radius: var(--radius-lg); margin: 1rem 0 2rem; width: 100%; box-shadow: var(--shadow); }

.aside-stack { display: grid; gap: 1rem; position: sticky; top: 100px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-card p { margin: 0; }
.info-card .mvv__label { color: var(--red-600); }
.info-card--navy { background: var(--navy-800); border-color: var(--navy-800); color: #e5ecfa; }
.info-card--navy .mvv__label { color: #ff9b9b; }
.quote { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy-800); }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.value { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.25rem; box-shadow: var(--shadow-sm); }
.value span { display: block; font-family: var(--font-head); font-weight: 800; color: var(--red-600); font-size: .9rem; margin-bottom: .75rem; }
.value strong { font-family: var(--font-head); color: var(--navy-800); font-size: 1.2rem; }

/* Services page */
.services-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.services-nav__inner { position: sticky; top: 100px; }
.services-nav ul { list-style: none; padding: 0; margin: 1rem 0 0; border-left: 2px solid var(--line); }
.services-nav li a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 1rem; color: var(--ink-700); font-weight: 500; margin-left: -2px; border-left: 2px solid transparent; font-size: .95rem; }
.services-nav li a:hover, .services-nav li a.is-active { color: var(--navy-800); border-left-color: var(--red-600); }
.services-nav li a span { color: var(--ink-500); font-size: .8rem; background: var(--bg-tint); border-radius: 999px; padding: 0 .55em; align-self: center; }
.search-field { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 1rem; background: #fff; color: var(--ink-500); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,102,214,.12); }
.search-field input { border: 0; outline: 0; padding: .75rem 0; width: 100%; font: inherit; background: transparent; color: var(--ink-900); }
.service-group { margin-bottom: 3rem; scroll-margin-top: 110px; }
.service-group h2 { font-size: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.service-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.service-row { display: flex; gap: 1rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.service-row:hover { border-color: #c7d6f5; box-shadow: var(--shadow-sm); }
.service-row__icon { width: 42px; height: 42px; border-radius: 12px; margin: 0; }
.service-row h3 { font-size: 1rem; margin: 0 0 .2rem; }
.service-row p { margin: 0; font-size: .9rem; color: var(--ink-500); }
.empty-search { padding: 2rem; text-align: center; background: var(--bg-tint); border-radius: var(--radius); }

/* Schedules */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.schedule-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.schedule-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.schedule-card__head .feature__icon { margin: 0; }
.schedule-card__head h2 { font-size: 1.3rem; margin: 0; }
.schedule-card--alert .feature__icon { background: var(--red-50); color: var(--red-600); }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list .icon { color: var(--red-600); }

.notice { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--bg-tint); border: 1px solid var(--line); margin-top: 2rem; }
.notice > .icon { width: 28px; height: 28px; color: var(--red-600); }
.notice div { flex: 1; }
.notice strong { color: var(--ink-900); font-family: var(--font-head); }
.notice p { margin: .15rem 0 0; color: var(--ink-500); }
.notice--primary { background: var(--blue-50); border-color: #cddbf7; }
.notice--primary > .icon { color: var(--blue-600); }

/* Careers */
.job-list { display: grid; gap: 1rem; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.job:hover { border-color: #c7d6f5; box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.job h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.job p { color: var(--ink-500); margin-bottom: .75rem; }
.job__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.job__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.empty { text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--ink-700); }
.empty > .icon { width: 40px; height: 40px; color: var(--ink-300); margin: 0 auto 1rem; display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-item .feature__icon { margin: 0; flex-shrink: 0; }
.contact-item h3 { margin-bottom: .2rem; }
.contact-item p { margin: 0; color: var(--ink-500); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-900); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--ink-300); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink-900); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,102,214,.12); }
.field.has-error input, .field.has-error textarea { border-color: var(--red-500); }
.field small { color: var(--red-600); font-weight: 500; }
.fine { font-size: .85rem; color: var(--ink-500); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert--error { background: var(--red-50); color: #9b1c1c; }
.success { text-align: center; padding: 2rem 0; }
.success > .icon { width: 56px; height: 56px; color: #16a34a; margin: 0 auto 1rem; display: block; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.9); }

/* Pagination & 404 */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-700); font-weight: 600; }
.pagination a.is-active, .pagination a:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.notfound__code { display: block; font-family: var(--font-head); font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--navy-800), var(--red-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.footer { background: var(--navy-900); color: #9fb1d4; padding-top: 4.5rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer a { color: #c9d6ef; }
.footer a:hover { color: #fff; }
.footer__brand p { margin-top: 1.25rem; }
.footer__brand em { color: #fff; font-style: normal; }
.footer__links, .footer__contact, .footer__hours { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .55rem; }
.footer__contact li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.footer__contact .icon { color: #ff8a8a; margin-top: 4px; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__hours li span:last-child { color: #e5ecfa; text-align: right; }
.footer__more { display: inline-flex; align-items: center; gap: .4em; margin-top: 1rem; font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .85rem; color: #7d90b6; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .service-card, .post-card, .job { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav ul a { padding: .5rem .6rem; font-size: .9rem; }
}
@media (max-width: 960px) {
    /* backdrop-filter would make the fixed menu position relative to the header, so use a solid header */
    .header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-toggle { display: inline-flex; position: relative; z-index: 3; }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); height: 100vh; height: 100dvh;
        flex-direction: column; align-items: stretch; gap: 1rem; padding: 84px 1.25rem 2rem;
        background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); visibility: hidden;
        transition: transform .3s ease, visibility 0s linear .3s; overflow-y: auto; overscroll-behavior: contain; z-index: 2;
    }
    .nav ul { flex-direction: column; gap: .25rem; }
    .nav ul a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
    .nav .btn { justify-content: center; }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav { transform: none; visibility: visible; transition: transform .3s ease; }
    body.nav-open .nav-toggle .icon--open { display: none; }
    body.nav-open .nav-toggle .icon--close { display: block; }
    body.nav-open .header::after { content: ""; position: fixed; inset: 0; background: rgba(7,29,66,.5); z-index: 1; }
    .hero__grid, .split, .split--top, .contact-grid, .services-layout { grid-template-columns: 1fr; }
    .feature-grid, .post-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-detail { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .aside-stack, .services-nav__inner { position: static; }
    .services-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; }
    .services-nav li a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: .4rem .9rem; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hide-sm { display: none !important; }
    .topbar__inner { justify-content: center; }
    .topbar__inner > .topbar__info:first-child { display: none; }
    .header__inner { min-height: 66px; }
    .card-grid, .feature-grid, .post-grid, .promo-grid, .service-rows, .form-row { grid-template-columns: 1fr; }
    .promo-detail__actions .btn { width: 100%; }
    .values { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .section-head--row { flex-direction: column; align-items: flex-start; }
    .notice { flex-direction: column; align-items: flex-start; }
    .hours-list li { flex-direction: column; gap: .1rem; }
    .hours-list li > span:last-child { text-align: left; }
    .map iframe { height: 320px; }
}
