/* Self-hosted variable fonts (latin subset, includes æøå). */
@font-face {
  font-family: 'Montserrat';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/montserrat-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Mulish';
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/mulish-var.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
/* Colours come from the logo and the 2026 brochure. Each theme has:
   --t main colour, --tx the same hue dark enough for text, --a accent,
   --l light fill, --wash section background, --hb page-opening background. */
:root {
  --ink: #0b2a3a;
  --soft: #3d5560;
  --line: #d7e2e2;
  --deep: #045a54;
  --deep-hover: #03403c;
  --lime: #b0da19;
  --lime-hover: #c3e92e;
  --foot: #063f3b;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
  --radius: 4px;
  --pad: clamp(18px, 4.4vw, 64px);
  --max: 1360px;
  --sec: clamp(56px, 8vw, 128px);
  --hh: 72px;
  /* The brochure's slanted edge, as one angle used across the site. */
  --cut: 9%;
  --slant: -8deg;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: #08978e; --tx: #0a6f68; --a: #4db4b2; --l: #bae7df; --wash: #e7f5f2; --hb: #045a54; --on-hb: #fff;
}
.t-natur { --t: #1f993a; --tx: #127a30; --a: #7fcc28; --l: #e9f4b9; --wash: #f4f9de; --hb: #127a30; --on-hb: #fff; }
.t-bygg { --t: #176fc0; --tx: #176fc0; --a: #59c9e1; --l: #caeef4; --wash: #eaf7fb; --hb: #176fc0; --on-hb: #fff; }
.t-liv { --t: #1b9fe2; --tx: #0f68a8; --a: #00adef; --l: #bae9fb; --wash: #e9f7fd; --hb: #0f68a8; --on-hb: #fff; }
.t-skole { --t: #08978e; --tx: #0a6f68; --a: #4db4b2; --l: #bae7df; --wash: #e7f5f2; --hb: #045a54; --on-hb: #fff; }
.t-besok { --t: #b0da19; --tx: #0a6f68; --a: #7fcc28; --l: #e9f4b9; --wash: #f6fadf; --hb: #b0da19; --on-hb: #0b2a3a; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--deep) #e7f5f2; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(17px, 1.05vw + 13px, 19px);
  line-height: 1.6;
  accent-color: var(--deep);
  caret-color: var(--deep);
}
::selection { background: var(--lime); color: var(--ink); }
img, video { max-width: 100%; height: auto; display: block; }
/* eleventy-img wraps images in <picture>; let the <img> stay the layout box. */
picture { display: contents; }
/* With picture as `contents`, its <source> children would otherwise become grid and flex items. */
picture > source { display: none; }
/* Passed visit dates are hidden with the attribute; it must beat component display rules like .btn. */
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.tri :focus-visible, .shero :focus-visible, .cta-band :focus-visible, .pcard:focus-visible, .voices :focus-visible, .life :focus-visible, .film :focus-visible, .action-bar :focus-visible, footer :focus-visible { outline-color: #fff; }
.t-besok .shero :focus-visible { outline-color: var(--ink); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { color: var(--tx); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.wrap { padding-inline: var(--pad); max-width: var(--max); margin-inline: auto; }
section { padding-block: var(--sec); }
.alt { background: var(--wash); }
[id] { scroll-margin-top: calc(var(--hh) + 64px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--tx); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .2s ease; }
.link::after, .go::after { content: ''; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url('/assets/images/pil.svg') center / contain no-repeat; mask: url('/assets/images/pil.svg') center / contain no-repeat; transition: transform .35s var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link:hover::after, a:hover > .go::after, .go:hover::after { transform: translateX(5px); }
.head { margin-bottom: clamp(28px, 4vw, 52px); max-width: 820px; }
.head p { margin-top: 16px; color: var(--soft); font-size: 1.14rem; max-width: 34em; }
.head .link { font-size: inherit; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 0.96rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deep-hover); }
.btn-ghost { border-color: var(--deep); color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: #fff; color: var(--deep); }
.btn-white { background: #fff; color: var(--deep); }
.btn-white:hover { background: var(--l); }

/* Skip link: off-screen until a keyboard user tabs to it. */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--deep); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: transform .45s var(--ease); view-transition-name: site-header; }
/* Scrolling down tucks the header away; any scroll up brings it back. */
.nav-away header.site:not(.is-open) { transform: translateY(-101%); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hh); padding: 10px var(--pad); max-width: var(--max); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand .mark { width: 46px; height: 46px; transition: transform .8s var(--ease); }
.brand:hover .mark { transform: rotate(60deg); }
.brand .word { width: 136px; height: auto; }
nav.primary { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; }
nav.primary a { text-decoration: none; font-family: var(--display); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
nav.primary a:where(:not(.btn)) { color: var(--ink); }
nav.primary a:where(:not(.btn)):hover { color: var(--deep); }
nav.primary > a[data-nav-top], .dropdown-trigger { padding-block: 6px; border-bottom: 3px solid transparent; transition: border-color .2s ease, color .2s ease; }
nav.primary > a[aria-current], .dropdown-trigger[aria-current] { border-bottom-color: var(--t); }
.nav-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; }
.dropdown-trigger .caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform .3s var(--ease); }
.nav-dropdown:hover .caret, .nav-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: -18px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .35s var(--ease), visibility .2s;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.menu-inner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 250px; padding: 10px; box-shadow: 0 24px 48px -24px rgba(11, 42, 58, .4); }
.menu-inner a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 3px; font-weight: 600; }
.menu-inner a::before { content: ''; width: 10px; height: 14px; flex: none; background: var(--t); transform: skewX(var(--slant)); transition: transform .35s var(--ease); }
.menu-inner a:hover { background: var(--wash); }
.menu-inner a:hover::before { transform: skewX(var(--slant)) scaleX(1.7); }
.cta-row { display: flex; gap: 10px; align-items: center; }
.cta-row .btn { min-height: 46px; padding: 10px 20px; }
nav.primary .nav-visit { display: none; }
.nav-toggle { display: none; }
.nav-dates { display: none; }

@media (max-width: 1150px) {
  :root { --hh: 64px; }
  .cta-row .btn-ghost { display: none; }
  .nav-toggle { display: block; position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s ease; }
  .nav-toggle span:nth-child(1) { transform: translateY(-6px); }
  .nav-toggle span:nth-child(3) { transform: translateY(6px); }
  header.site.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  header.site.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.site.is-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }
  /* Closed: hidden. Open: a full panel under the header row, with the visit button and dates at the foot. */
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 6px var(--pad) 28px; height: calc(100dvh - var(--hh)); overflow-y: auto; overscroll-behavior: contain; }
  header.site.is-open nav.primary { display: flex; }
  nav.primary > a[data-nav-top], nav.primary .dropdown-trigger { display: flex; padding: 16px 0 6px; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; letter-spacing: -.02em; border-bottom: 0; }
  nav.primary > a[data-nav-top] { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  nav.primary > a[aria-current], nav.primary .dropdown-trigger[aria-current] { color: var(--tx); }
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  nav.primary .nav-visit { display: flex; margin-top: 24px; }
  .dropdown-trigger .caret { display: none; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 12px; }
  .menu-inner { border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .menu-inner a { padding: 10px 0; font-size: 1.05rem; }
  .nav-dates { display: grid; gap: 4px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .96rem; color: var(--soft); }
  .nav-dates b { font-family: var(--display); color: var(--ink); }
  .nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  :root { --hh: 58px; }
  .nav-row { padding: 7px 14px; gap: 10px; }
  .brand { gap: 8px; }
  .brand .mark { width: 36px; height: 36px; }
  .brand .word { width: 92px; }
  .cta-row { gap: 8px; }
  .cta-row .btn-primary { padding-inline: 12px; font-size: 0.86rem; min-height: 44px; }
}
@media (max-width: 360px) {
  .brand .word { display: none; }
}

/* ---------- Homepage: three tinted photos, each a way in ---------- */
.tri { position: relative; padding: 0; height: clamp(500px, calc(100svh - var(--hh) - 150px), 780px); overflow: hidden; background: #fff; isolation: isolate; }
.pn { position: absolute; inset: 0; isolation: isolate; display: block; color: #fff; text-decoration: none; overflow: hidden; }
/* Low photo contrast keeps shadows off black, as in the brochure. Each panel colour is the
   lightest that still gives the white heading 3:1, so no pixel can fall below that. */
.pn img { position: absolute; top: 0; height: 100%; max-width: none; object-fit: cover; filter: grayscale(1) contrast(.72) brightness(1.7); mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
/* Keeps the heading readable where it crosses a panel, in the panel's own colour. */
.pn::after { content: ''; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(to top, var(--pn) 8%, transparent); opacity: .9; }
.pn-a { --pn: #1f9a8f; background: var(--pn); clip-path: polygon(0 0, 33% 0, 35% 100%, 0 100%); }
.pn-a img { left: 0; width: 36%; object-position: 42% 18%; }
.pn-b { --pn: #3aa33a; background: var(--pn); clip-path: polygon(33% 0, 61% 0, 67% 100%, 35% 100%); }
.pn-b img { left: 32%; width: 36%; object-position: 58% 22%; }
.pn-c { --pn: #268ce0; background: var(--pn); clip-path: polygon(61% 0, 96% 0, 80% 100%, 67% 100%); }
.pn-c img { left: 60%; width: 37%; object-position: 50% 8%; }
.pn-label { position: absolute; z-index: 2; top: clamp(18px, 2.6vw, 34px); display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 1.25vw, 1.2rem); letter-spacing: -.01em; padding: 8px 14px; background: var(--chip); border-radius: 3px; }
.pn-a { --chip: #0a6f68; }
.pn-b { --chip: #127a30; }
.pn-c { --chip: #176fc0; }
.pn-label::after { content: ''; width: 1em; height: 1em; background: currentColor; -webkit-mask: url('/assets/images/pil.svg') center / contain no-repeat; mask: url('/assets/images/pil.svg') center / contain no-repeat; transition: transform .45s var(--ease); }
.pn-a .pn-label { left: var(--pad); }
.pn-b .pn-label { left: calc(33% + clamp(18px, 2.4vw, 40px)); }
.pn-c .pn-label { left: calc(61% + clamp(18px, 2.4vw, 40px)); }
@media (hover: hover) {
  .pn:hover img, .pn:focus-visible img { transform: scale(1.045); }
  .pn:hover .pn-label::after, .pn:focus-visible .pn-label::after { transform: translateX(6px); }
  .tri:has(.pn:hover) .pn:not(:hover) img { filter: grayscale(1) contrast(.6) brightness(1.55); }
}
.pn:focus-visible { outline: 0; }
.pn:focus-visible .pn-label { outline: 3px solid #fff; outline-offset: 6px; border-radius: 2px; }
.tri h1 { position: absolute; z-index: 2; left: var(--pad); bottom: 9%; color: #fff; font-weight: 900; font-size: clamp(2.6rem, 6.2vw, 6rem); line-height: .98; letter-spacing: -.03em; pointer-events: none; }
.tri h1 span { display: block; }
.tri h1 .ph { display: none; }
.tri-logo { position: absolute; z-index: 2; right: clamp(16px, 2.6vw, 40px); bottom: 7%; width: clamp(110px, 13vw, 190px); pointer-events: none; }
.tri-logo img { display: block; width: 100%; height: auto; }
.tri-logo .mark { width: 68%; margin-inline: auto; }
.tri-logo .word { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .pn { animation: pn-in 1.1s var(--ease) backwards; }
  .pn-b { animation-delay: .09s; }
  .pn-c { animation-delay: .18s; }
  .tri h1 span { animation: line-in 1s var(--ease) .3s backwards; }
  .tri h1 span + span { animation-delay: .42s; }
  .tri-logo { animation: fade-in 1s ease .7s backwards; }
}
@keyframes pn-in { from { transform: translateY(5%); opacity: 0; } }
@keyframes line-in { from { transform: translateY(.5em); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.open { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 96px); padding-block: clamp(34px, 5vw, 72px) var(--sec); align-items: start; }
.open p { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.3; letter-spacing: -.015em; margin-bottom: 28px; max-width: 24em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dates { list-style: none; margin: 0; padding: 0; }
.hero-dates a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 2px solid var(--ink); text-decoration: none; color: var(--soft); transition: color .2s ease; }
.hero-dates li:last-child a { border-bottom: 2px solid var(--ink); }
.hero-dates a:hover { color: var(--ink); }
.hero-dates a:hover b { transform: translateX(8px); }
.hero-dates b { font-family: var(--display); font-weight: 800; font-size: 1.14rem; color: var(--ink); transition: transform .4s var(--ease); }
.hero-dates span { text-align: right; font-variant-numeric: tabular-nums; }
.hero-dates span::first-letter, .visit-date::first-letter { text-transform: uppercase; }

/* ---------- Quotes ---------- */
.voices { background: var(--deep); color: #fff; }
.voices h2, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.voices-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0 clamp(32px, 6vw, 100px); }
.voice { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.voice blockquote { margin: 0; }
.voice blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.14rem, 1.6vw, 1.4rem); line-height: 1.36; letter-spacing: -.01em; }
.voice blockquote p::before { content: '«'; }
.voice blockquote p::after { content: '»'; }
.voice figcaption { display: flex; align-items: center; gap: 14px; font-size: 0.98rem; }
.voice-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; }
.voice-who { display: grid; gap: 1px; }
.voice-name { font-family: var(--display); font-weight: 700; }
.voice-meta { color: var(--soft); }
.voices .voice-meta { color: #bae7df; }
.voices-grid .voice:first-child { grid-row: span 2; justify-content: flex-start; gap: 30px; }
.voices-grid .voice:first-child blockquote p { font-weight: 800; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; }
.voices-grid .voice:not(:first-child) { padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .3); }
.voices-grid .voice:last-child { border-bottom: 1px solid rgba(255, 255, 255, .3); }
/* A single quote on a page: a full band in the page's light colour. */
.program-voice { background: var(--l); padding-block: clamp(44px, 6.5vw, 96px); }
.program-voice .voice { max-width: 1000px; gap: 26px; }
.program-voice .voice blockquote p { color: var(--ink); font-weight: 800; font-size: clamp(1.45rem, 3.2vw, 2.7rem); line-height: 1.14; letter-spacing: -.025em; }
.program-voice .voice-meta { color: var(--ink); }
.alt.program-voice { background: var(--l); }

/* ---------- Instagram ---------- */
.feed-head, .insta .section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; }
.feed-head h2, .insta h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--ink); }
behold-widget { display: block; min-height: 200px; }

/* ---------- Study panels ---------- */
.programs { padding: 0; }
.program-panels { display: grid; grid-template-columns: 1fr 1fr; }
.pcard { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--hb); color: #fff; overflow: hidden; }
.pcard-pic { overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-bottom: -1px; background: var(--hb); }
.pcard img { width: 100%; height: clamp(280px, 36vw, 560px); object-fit: cover; transition: transform 1.4s var(--ease); }
.pcard:hover img { transform: scale(1.05); }
.pcard-body { padding: clamp(12px, 1.6vw, 24px) clamp(18px, 4.4vw, 64px) clamp(34px, 4.5vw, 64px); }
.pcard h2, .pcard h3 { color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.pcard .pcard-sub { font-family: var(--display); font-weight: 700; font-size: clamp(1.14rem, 1.7vw, 1.45rem); margin: 10px 0 18px; }
.pcard p { max-width: 32em; }
.pcard ul { list-style: none; margin: 0; padding: 0; font-size: 1.02rem; font-weight: 600; }
.pcard li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .32); }
.pcard .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--display); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.panels-section { padding: 0; }
.also { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; padding: 22px var(--pad); background: var(--ink); color: #fff; text-decoration: none; }
.also b { font-family: var(--display); font-weight: 800; font-size: clamp(1.14rem, 1.8vw, 1.5rem); letter-spacing: -.015em; }
.also .go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; color: #fff; }

/* ---------- Film ---------- */
.film { padding: 0; }
.video-frame { display: block; position: relative; width: 100%; height: clamp(300px, 48vw, 700px); padding: 0; border: 0; background: var(--ink); overflow: hidden; cursor: pointer; color: var(--ink); }
/* The wide strip shows a band from 28% down the poster: heads and caps through to the shirts,
   above the burnt-in subtitle. Phones show nearly the whole frame, so they zoom past the subtitle. */
.video-frame img, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform 1.6s var(--ease), opacity .8s ease; }
.video-frame video { opacity: 0; object-position: 50% 50%; }
.video-frame.is-live video { opacity: 1; }
.video-frame:hover img, .video-frame:hover video { transform: scale(1.03); }
@media (max-width: 520px) { .video-frame img { transform: scale(1.22); transform-origin: 50% 28%; } }
.video-frame::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(11, 42, 58, .78), transparent); }
.film-title { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(88px, 10vw, 140px); right: var(--pad); color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; text-align: left; text-wrap: balance; }
.play { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(22px, 3.4vw, 52px); display: flex; align-items: center; gap: 14px; min-height: 52px; background: #fff; padding: 12px 24px 12px 18px; border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 1rem; transition: background-color .2s ease, transform .4s var(--ease); }
.play i { width: 15px; height: 18px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-frame:hover .play { background: var(--l); transform: translateX(6px); }
.video-frame:has(iframe) { height: auto; aspect-ratio: 16/9; max-height: 86vh; }
.video-frame:has(iframe)::after { content: none; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Evenings ---------- */
.life { background: var(--hb); color: #fff; padding-bottom: 0; }
.life h2 { color: #fff; }
.life .head p { color: #fff; }
.life .link { color: #fff; }
.week { list-style: none; margin: 0 0 clamp(24px, 3vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 2.6vw, 40px); }
.week li { padding: 20px 0 6px; border-top: 3px solid var(--t); }
.week-when { display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--tx); font-variant-numeric: tabular-nums; }
.week-when b { font-weight: inherit; }
.week h2, .week h3 { margin: 0 0 6px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.week p { font-size: 1rem; line-height: 1.5; }
.life .week li { border-top-color: var(--a); }
.life .week-when { color: var(--l); }
.life .week h2, .life .week h3 { color: #fff; }
.life-more { margin-bottom: clamp(32px, 4vw, 56px); }
.wide-pic { width: 100%; height: clamp(240px, 38vw, 580px); object-fit: cover; object-position: 50% 60%; margin-bottom: 20px; }
.life .wide-pic { margin: 0; height: clamp(260px, 44vw, 660px); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }

/* ---------- Visit ---------- */
.visit-band { background: var(--lime); }
.visit-band h2 { color: var(--ink); }
.visit-band .head p { color: var(--ink); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 100px); }
.visit-option { padding-top: 24px; border-top: 3px solid var(--ink); }
.visit-date { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--deep); font-variant-numeric: tabular-nums; }
.visit-option h3 { font-size: clamp(1.9rem, 4vw, 3.3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0 0 10px; }
.visit-option .visit-date { margin-bottom: 14px; font-size: 1.14rem; }
.visit-option > p:not(.visit-date) { margin-bottom: 24px; max-width: 30em; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.visit-actions .link { color: var(--ink); }

/* ---------- Why and faith ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.why h2 { margin-bottom: 26px; }
.why p { margin-bottom: 18px; max-width: 32em; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); font-size: 1.08rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1.25em; width: 15px; height: 15px; background: var(--t); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.faith { padding-top: 22px; border-top: 3px solid var(--ink); }
.alt .ticks li { border-top-color: #c3d7d4; }
.faith h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 16px; }

/* ---------- Apply steps ---------- */
/* Three colour panels that lean into each other at the site's one slant, like the homepage opening. */
.steps, .route { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.steps { margin: 18px 0 clamp(28px, 3.4vw, 44px); }
.step, .route-step { position: relative; isolation: isolate; padding: clamp(26px, 3vw, 46px) clamp(52px, 5.4vw, 88px) clamp(28px, 3.4vw, 52px) clamp(22px, 2.8vw, 44px); background: var(--l); }
.step + .step::before, .route-step + .route-step::before { content: ''; position: absolute; z-index: -1; top: -2px; bottom: -2px; left: -70px; width: 140px; background: inherit; transform: skewX(var(--slant)); }
.step:nth-child(2), .route-step:nth-child(2) { background: var(--a); }
.step:last-child { background: var(--deep); color: #fff; }
.step:last-child, .route-step:last-child { padding-right: clamp(22px, 2.8vw, 44px); }
.step h2, .step h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 900; color: var(--ink); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 12px; }
.step:last-child h2, .step:last-child h3 { color: #fff; }
.step a { color: inherit; font-weight: 700; }
.apply-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.deadline { font-family: var(--display); font-weight: 700; color: var(--tx); }

/* ---------- Place ---------- */
.place { padding: 0; }
.place-figure { position: relative; margin: 0; }
.place-figure img { width: 100%; height: clamp(300px, 46vw, 680px); object-fit: cover; }
.place-figure figcaption { position: absolute; left: 0; bottom: 0; max-width: min(100%, 720px); padding: clamp(22px, 3vw, 44px) clamp(40px, 7vw, 110px) clamp(22px, 3vw, 40px) var(--pad); background: var(--deep); color: #fff; clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%); }
.place-figure figcaption b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 6px; }

/* ---------- Page opening: colour panel, optionally beside one photo ---------- */
.shero { display: grid; grid-template-columns: 1fr 1.15fr; padding: 0; background: var(--hb); color: var(--on-hb); min-height: clamp(320px, 38vw, 560px); position: relative; overflow: hidden; view-transition-name: page-hero; }
.shero-text { padding: clamp(30px, 4.6vw, 72px) clamp(16px, 2vw, 28px) clamp(34px, 5vw, 76px) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); align-self: end; position: relative; z-index: 1; }
.shero h1 { color: inherit; font-weight: 900; font-size: clamp(2.5rem, 6.4vw, 5.8rem); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; }
.shero.is-long h1 { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1; }
.shero-sub { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.15; letter-spacing: -.015em; }
.shero .lead { margin-top: 16px; font-size: 1.12rem; line-height: 1.5; max-width: 31em; }
.shero-photo { position: relative; clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%); background: var(--hb); }
.shero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Without a photo, the opening keeps the slanted shapes in the theme's own colours. */
.shero.no-image { grid-template-columns: 1fr; min-height: clamp(240px, 26vw, 380px); }
.shero.no-image .shero-text { max-width: 74%; }
.shero.no-image::before, .shero.no-image::after { content: ''; position: absolute; top: 0; bottom: 0; transform: skewX(var(--slant)); }
.shero.no-image::before { right: -3%; width: 18%; background: var(--a); }
.shero.no-image::after { right: 14%; width: 8%; background: var(--l); opacity: .55; }
.crumbs { margin-bottom: clamp(18px, 3vw, 44px); font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .7; }
.crumbs a { text-underline-offset: 3px; }
.crumbs [aria-current] { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .shero h1 { animation: line-in .9s var(--ease) .05s backwards; }
  .shero-sub, .shero .lead { animation: line-in .9s var(--ease) .16s backwards; }
  .shero-photo img { animation: photo-in 1.4s var(--ease) backwards; }
}
@keyframes photo-in { from { transform: scale(1.08); } }

/* ---------- On this page: sticky jump links on the long pages ---------- */
.onpage { position: sticky; top: var(--hh); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
.nav-away .onpage { top: 0; }
.onpage ul { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: var(--max); display: flex; gap: clamp(18px, 2.6vw, 36px); overflow-x: auto; scrollbar-width: none; }
.onpage ul::-webkit-scrollbar { display: none; }
.onpage a { display: flex; align-items: center; min-height: 52px; border-bottom: 3px solid transparent; font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: var(--soft); text-decoration: none; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.onpage a:hover { color: var(--ink); }
.onpage a[aria-current] { color: var(--tx); border-bottom-color: var(--t); }

/* ---------- Study routes ---------- */
.route-band { background: var(--wash); }
.route-band h2 { margin-bottom: clamp(26px, 3.4vw, 44px); }
.route-band h3 { color: var(--tx); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; margin: clamp(34px, 4vw, 56px) 0 26px; }
.route-band h2 + h3 { margin-top: 0; }
.route { list-style: none; margin: 0; padding: 0; }
.route-step:last-child { background: var(--hb); color: #fff; }
.route-step:nth-child(2) .route-year { color: var(--ink); }
.route-step:last-child .route-year, .route-step:last-child .route-options a { color: #fff; }
.route-year { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1; letter-spacing: -.03em; color: var(--tx); margin-bottom: 12px; }
.route-options > * { display: block; font-weight: 600; margin-bottom: 6px; }
.route-options a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.route-options a:hover { text-decoration-thickness: 2px; }

/* ---------- Study and visit rows: photo and text side by side, alternating ---------- */
.tracks { display: grid; gap: clamp(48px, 8vw, 128px); }
.track { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 5vw, 88px); align-items: center; }
.track > picture > img, .track > img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.track:nth-child(even) > picture > img, .track:nth-child(even) > img { order: 2; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
.track-body h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 18px; }
.track-body p { max-width: 34em; }
.track-body p + p { margin-top: 14px; }
.track-body h3 { color: var(--tx); margin: 26px 0 6px; }
.tracks-lead { max-width: 30em; margin: 0 0 clamp(48px, 8vw, 128px); font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.track-body a:not(.btn) { color: var(--tx); font-weight: 700; }
.track-body ul { margin: 0 0 26px; padding: 0; list-style: none; }
.track-body li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.track-body li:first-child { border-top: 1px solid var(--line); }
.track-next { margin-top: 22px !important; padding-top: 16px; border-top: 3px solid var(--t); font-size: 1rem; color: var(--soft); }
.track-next strong { color: var(--ink); font-family: var(--display); }
.track-body .visit-date { margin: -6px 0 18px; font-size: 1.14rem; }
.track-body .btn { margin-top: 4px; }
.note { font-size: 0.94rem; color: var(--soft); }
.track-body .note { margin-top: 18px; }

/* ---------- Text pages ---------- */
.prose > * { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; margin-bottom: 18px; }
.prose * + h2 { margin-top: 56px; }
.prose h3 { font-size: 1.3rem; color: var(--tx); margin: 38px 0 10px; }
.prose p, .prose li { font-size: 1.06rem; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a:where(:not(.btn)) { color: var(--tx); font-weight: 700; }
.prose table { width: 100%; }
/* On wide screens a text section sets its heading in the left column and the body in the right. */
@media (min-width: 1000px) {
  .prose:has(> h2:first-child) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .prose:has(> h2:first-child) > * { grid-column: 2; }
  .prose:has(> h2:first-child) > h2:first-child { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: calc(var(--hh) + 84px); margin: 0; }
  .prose:has(> h2:first-child) > h2:first-child + * { margin-top: 0; }
}
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.split h2 { margin-bottom: 20px; }
.split p + p { margin-top: 14px; }
.split-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .link { margin-top: 22px; }
.split a:not(.link):not(.btn) { color: var(--tx); font-weight: 700; }
.room-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room-photos img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room-photos picture:first-child img { grid-column: 1 / -1; aspect-ratio: 16/10; }
.map-img { width: 100%; height: auto; margin-bottom: 20px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; }
.campus-figure { margin: clamp(32px, 4vw, 56px) 0 0; }
.campus-figure img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3.4vw, 56px); }
.cols > div { padding-top: 22px; border-top: 3px solid var(--t); }
.cols h3 { color: var(--tx); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.025em; margin-bottom: 10px; }
.cols p + p { margin-top: 12px; }
.cols a { color: var(--tx); font-weight: 700; }
.terrain { position: relative; padding: 0; color: #fff; isolation: isolate; background: var(--deep); overflow: hidden; }
.terrain-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: grayscale(1) contrast(.8) brightness(1.5); mix-blend-mode: multiply; }
.terrain-inner { display: grid; align-items: end; min-height: clamp(320px, 44vw, 620px); padding: clamp(40px, 6vw, 96px) var(--pad); max-width: var(--max); margin-inline: auto; }
.terrain .num { color: #fff; font-weight: 900; font-size: clamp(2.8rem, 8.4vw, 6rem); line-height: .95; letter-spacing: -.035em; }
.terrain .lead { margin-top: 18px; font-size: 1.25rem; max-width: 30ch; }

/* Closing cross-link on the study pages. */
.next-life { --tx: #0f68a8; background: #e9f7fd; padding: 0; }
.next-life-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; padding: 0; max-width: none; }
.next-life img { width: 100%; height: 100%; min-height: clamp(260px, 32vw, 480px); object-fit: cover; clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.next-life-inner > div { align-self: center; padding: clamp(36px, 5vw, 80px) var(--pad) clamp(36px, 5vw, 80px) clamp(20px, 4vw, 64px); }
.next-life h2 { margin-bottom: 16px; }
.next-life p { max-width: 30em; }
.next-life .link { margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: #fff; padding-block: clamp(48px, 7vw, 112px); }
.cta-band-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.cta-band h2 { color: #fff; font-weight: 900; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.03em; max-width: 14em; }
.cta-band p { margin-top: 18px; color: #bae7df; font-size: 1.06rem; max-width: 44em; }
.cta-band p { display: flex; flex-wrap: wrap; gap: 2px clamp(18px, 2.4vw, 36px); }
.cta-band p span { white-space: nowrap; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
footer { background: var(--foot); color: #fff; padding-block: clamp(44px, 6vw, 88px) 26px; }
.footer-claim { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 7vw, 6rem); line-height: .95; letter-spacing: -.035em; color: var(--lime); margin-bottom: clamp(36px, 5vw, 72px); text-wrap: balance; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 128px; height: auto; margin-bottom: 18px; }
footer h2 { font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--lime); margin: 0 0 12px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: #fff; text-decoration: none; font-size: 1rem; }
footer a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
footer p.addr { font-size: 1rem; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4vw, 56px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 0.9rem; }
.socials { display: flex; gap: 20px; }

/* ---------- Phone: apply and visit stay within reach ---------- */
.action-bar { display: none; }
@media (max-width: 700px) {
  .action-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--deep); transform: translateY(105%); transition: transform .5s var(--ease); }
  .action-bar .btn { min-height: 48px; padding-inline: 8px; }
  .bar-on:not(.nav-open) .action-bar { transform: none; }
  footer { padding-bottom: 96px; }
}

/* ---------- Tables, documents, staff, FAQ ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 10px 0 28px; font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; }
.price-table th { font-weight: 600; }
.price-table thead th { font-family: var(--display); font-weight: 700; color: var(--tx); border-bottom: 3px solid var(--t); }
.price-table thead th:last-child { text-align: right; }
.price-table.is-total td:last-child { font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; color: var(--tx); }
.price-table.is-total tr:first-child > * { border-top: 3px solid var(--t); }
.price-table.is-total th { vertical-align: middle; }
.alt .price-table th, .alt .price-table td { border-color: #c3d7d4; }
.doc-list { list-style: none; padding: 0 !important; margin: 0 0 16px; }
.doc-list li { padding: 14px 0; border-bottom: 1px solid #c3d7d4; margin: 0 !important; }

.staff-group { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin: 64px 0 22px; }
.staff-group:first-child { margin-top: 0; }
/* Compact rows: the contact buttons sit at the right edge, so they line up however long the name or role is. */
.staff-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.staff-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--wash); }
.alt .staff-card { background: #fff; }
.staff-card img, .staff-initials { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.staff-initials { display: grid; place-items: center; background: #fff; color: var(--tx); font-family: var(--display); font-weight: 700; }
.staff-body { min-width: 0; flex: 1; }
.staff-card h3 { font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.staff-card p { color: var(--soft); font-size: 0.92rem; line-height: 1.4; margin-top: 3px; }
.staff-actions { display: flex; gap: 8px; flex-shrink: 0; }
.staff-action { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--tx); transition: background-color .15s ease, color .15s ease; }
.alt .staff-action { background: var(--wash); }
.staff-action svg { width: 17px; height: 17px; }
.staff-action:hover, .staff-action:focus-visible { background: var(--deep); border-color: var(--deep); color: #fff; }
.staff-action:focus-visible { outline-offset: 2px; border-radius: 50%; }
.staff-tip { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; padding: 6px 10px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 0.82rem; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.staff-action:focus-visible .staff-tip { opacity: 1; transform: none; }
@media (hover: hover) { .staff-action:hover .staff-tip { opacity: 1; transform: none; } }
.staff-grid.is-lead { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.is-lead .staff-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0 8px; background: none; border-top: 3px solid var(--ink); }
.is-lead .staff-actions { justify-content: flex-start; }
.staff-grid.is-lead { gap: 12px clamp(20px, 3vw, 44px); }
.is-lead .staff-tip { left: 0; right: auto; }
.is-lead .staff-card img, .is-lead .staff-initials { width: 104px; height: 104px; }
.is-lead .staff-card h3 { font-size: 1.25rem; }
.staff-more { margin-top: 28px; }
.contact { align-items: start; }
.contact-lines { margin-top: 26px; display: grid; gap: 0; }
.contact-lines a { display: grid; gap: 2px; padding: 16px 0; border-top: 2px solid var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.02em; color: var(--tx) !important; overflow-wrap: anywhere; }
.contact-lines a:last-child { border-bottom: 2px solid var(--ink); }
.contact-lines small { font-family: var(--text); font-weight: 600; font-size: .92rem; letter-spacing: 0; color: var(--soft); }
.contact-map { margin: 0; }
.contact-map figcaption { margin-top: 14px; }

.faq-layout .head { margin-bottom: 28px; }
@media (min-width: 1000px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .faq-layout .head { position: sticky; top: calc(var(--hh) + 84px); margin: 0; }
}
.faq { max-width: 900px; border-bottom: 2px solid var(--ink); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.3; letter-spacing: -.01em; transition: color .2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: var(--t); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq summary:hover { color: var(--tx); }
.faq details p { color: var(--soft); max-width: 64ch; padding: 0 0 24px; }

/* ---------- Motion ---------- */
/* Pages cross-fade into each other; the header stays put and the page opening slides. */
@view-transition { navigation: auto; }
::view-transition-group(page-hero) { animation-duration: .5s; animation-timing-function: var(--ease); }
/* Large photographs open along the slant as they scroll into view. Without support they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .track > picture > img, .track > img { animation: wipe-a linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    .track:nth-child(even) > picture > img, .track:nth-child(even) > img { animation-name: wipe-b; }
    .campus-figure img, .split-img, .map-img, .place-figure img, .room-photos img, .photo-pair img {
      animation: open-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    .voices-grid .voice:first-child blockquote, .cta-band h2, .footer-claim, .terrain .num {
      animation: drift-up linear both; animation-timeline: view(); animation-range: entry 10% entry 90%;
    }
  }
}
@keyframes wipe-a { from { clip-path: polygon(0 0, 18% 0, calc(18% - var(--cut)) 100%, 0 100%); } }
@keyframes wipe-b { from { clip-path: polygon(calc(82% + var(--cut)) 0, 100% 0, 100% 100%, 82% 100%); } }
@keyframes open-up { from { transform: translateY(48px) scale(1.03); opacity: .35; } }
@keyframes drift-up { from { transform: translateY(36px); opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .open, .why, .split, .next-life-inner, .voices-grid, .track, .cta-band-inner { grid-template-columns: 1fr; }
  .track:nth-child(even) > picture > img, .track:nth-child(even) > img { order: 0; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(18px, 2.6vw, 40px); }
  .week li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .voices-grid .voice:first-child { grid-row: auto; padding-bottom: 34px; }
  .steps, .route, .cols { grid-template-columns: 1fr; }
  .step, .route-step { padding: 28px 22px 40px; }
  .step + .step, .route-step + .route-step { padding-top: 18px; }
  .step + .step::before, .route-step + .route-step::before { top: -26px; bottom: auto; left: -2px; right: -2px; width: auto; height: 60px; transform: skewY(-4deg); }
  .step:last-child, .route-step:last-child { padding-bottom: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .campus-figure img { aspect-ratio: 16/10; }
  .next-life img { min-height: 0; aspect-ratio: 16/10; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
  .next-life-inner > div { padding: 30px var(--pad) 48px; }
}
@media (max-width: 700px) {
  .tri { height: clamp(600px, calc(100svh - var(--hh) - 40px), 720px); }
  .pn img { left: 0; width: 100%; }
  .pn-a { clip-path: polygon(0 0, 100% 0, 100% 24%, 0 29%); }
  .pn-a img { height: 30%; object-position: 42% 20%; }
  .pn-a::after, .pn-b::after { content: none; }
  .pn-b { clip-path: polygon(0 29%, 100% 24%, 100% 50%, 0 55%); }
  .pn-b img { top: 23%; height: 33%; object-position: 58% 22%; }
  .pn-c { clip-path: polygon(0 55%, 100% 50%, 100% 100%, 0 100%); }
  .pn-c img { top: 49%; height: 36%; object-position: 50% 12%; }
  .pn-c::after { inset: 66% 0 0; background: linear-gradient(to top, var(--pn) 62%, transparent); opacity: 1; }
  .pn-label { left: auto !important; right: 14px; padding: 7px 12px; font-size: .92rem; }
  .pn-a .pn-label { top: 14px; }
  .pn-b .pn-label { top: calc(29% + 6px); }
  .pn-c .pn-label { top: calc(55% + 6px); }
  .tri h1 { font-size: clamp(2.3rem, 10.6vw, 2.8rem); bottom: 20px; left: 18px; }
  .tri h1 .ph { display: inline; }
  .tri-logo { display: none; }
  .program-panels, .visit-grid { grid-template-columns: 1fr; }
  .visit-option + .visit-option { margin-top: 40px; }
  .shero { grid-template-columns: 1fr; min-height: 0; }
  .shero-photo { order: -1; height: 56vw; min-height: 220px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .shero-text { padding: 14px 18px 34px; }
  .crumbs { margin-bottom: 14px; }
  .shero.no-image .shero-text { max-width: 86%; padding-block: 28px 38px; }
  .shero.no-image::before { right: -14%; width: 26%; }
  .shero.no-image::after { right: 10%; width: 8%; }
  .place-figure figcaption { position: static; max-width: none; clip-path: none; padding: 22px 18px 26px; }
  .film-title { bottom: 92px; }
}

@media (max-width: 520px) {
  .week { grid-template-columns: minmax(0, 1fr); }
  /* Two 44px buttons leave little room on a phone, so the photo shrinks and long names may break. */
  .staff-card { gap: 12px; padding: 12px 14px; }
  .staff-card img, .staff-initials { width: 48px; height: 48px; }
  .staff-card h3 { font-size: 1rem; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Touch targets */
@media (max-width: 1150px) {
  .nav-toggle { width: 46px; height: 46px; }
  .menu-inner a { min-height: 44px; }
}
@media (pointer: coarse), (max-width: 780px) {
  .staff-action { width: 44px; height: 44px; }
  footer ul { gap: 0; }
  footer ul a, .socials a, .insta .section-head .link, .feed-head .link { display: inline-flex; align-items: center; min-height: 44px; }
  footer p.addr a { display: inline-block; padding-block: 8px; }
}
/* End touch targets */
