@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/source-serif-4-500.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
}

:root {
  --red: #c8102e;
  --red-deep: #9d0b12;
  --banner: #df1213;
  --ink: #161616;
  --steel: #3a424c;
  --line: #d7d1c7;
  --paper: #f3efe7;
  --paper-2: #e7e1d6;
  --white: #fffcf8;
  --focus: #161616;
  --header: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --measure: 68ch;
}

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

html { scroll-padding-top: calc(var(--header) + 0.75rem); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

img { display: block; }

a { color: var(--red-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.35rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 0.9rem; }
p.lede { font-size: 1.15rem; max-width: var(--measure); }

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--red-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 49px;
  flex: none;
  view-transition-name: school-logo;
}
.site-header { view-transition-name: site-header; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-place {
  display: block;
  color: var(--steel);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.tour-short { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle,
.btn,
.btn-ghost,
.btn-steel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn { background: var(--red); color: var(--white); border-color: var(--red); }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-steel { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-steel:hover { border-color: var(--ink); color: var(--ink); }

.nav-toggle {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  padding-inline: 0.8rem;
}
.nav-toggle:hover { border-color: var(--ink); }

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.75rem 0.9rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.menu-top { display: none; }
.menu-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-close {
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 4px;
  border: 2px solid #fffcf8;
  background: transparent;
  color: #fffcf8;
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
}
body.menu-open { overflow: hidden; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-list a[aria-current="page"] { color: var(--red-deep); }

.phone-link { display: none; }

main { display: block; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  background: #1c1412;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media .motion { position: absolute; inset: 0; height: 100%; }
.hero-media .motion-stage { height: 100%; }
.hero-media .motion-poster,
.hero-media video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 767px) {
  .motion video { display: none !important; }
}
.hero-copy {
  position: relative;
  z-index: 1;
  margin: 0.75rem;
  padding: 1.1rem 1.1rem 1.2rem;
  max-width: 100%;
  background: rgb(18 12 12 / 78%);
  border-radius: 6px;
}
.hero .eyebrow { color: #ffd0d4; }
.hero h1 { color: var(--white); margin-bottom: 0.35rem; }
.hero .lede { color: #f4efe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); }
.hero :focus-visible,
.band-ink :focus-visible,
.band-red :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.banner-lockup {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 100%;
  margin: 0.2rem 0 0.7rem;
}
.banner-svg { width: min(100%, 220px); height: auto; display: block; }
.banner-cloth { transform-box: fill-box; transform-origin: 0% 50%; }
.banner-word { opacity: 1; }
.banner-lockup .knight {
  width: 72px;
  height: 74px;
  flex: none;
  background: var(--white);
  border-radius: 4px;
}

.band { padding: 3.2rem 0; }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink a { color: #ffd0d4; }
.band-ink a:hover { color: var(--white); }
.band-ink .form-note,
.band-ink .help,
.band-ink .field-error { color: #f4efe8; }
.band-red { background: var(--red); color: var(--white); }
.band-red a { color: var(--white); }

.fact-row {
  display: grid;
  gap: 1rem;
}
.fact {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}
.fact span { color: var(--steel); }

.day {
  display: grid;
  gap: 1.5rem;
}
.step {
  display: grid;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.step img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.step-no {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.cards, .people, .paths, .gallery {
  display: grid;
  gap: 1rem;
}
.card, .person, .path, .event {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.15rem 1.2rem;
  transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.card:hover, .person:hover, .path:hover { transform: translateY(-3px); border-color: #b9b2a6; }
.event-date {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0;
}
.event h2, .event h3 { margin-bottom: 0.3rem; }

.person-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.person p { margin: 0; color: var(--steel); font-size: 0.95rem; }
.person a { font-size: 0.95rem; }

.table-list { display: grid; gap: 0.75rem; }
.rate {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  background: var(--white);
  border-left: 4px solid var(--red);
}
.rate dt { font-weight: 600; }
.rate dd { margin: 0; color: var(--steel); }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps-list li {
  position: relative;
  padding: 0 0 1.3rem 2.6rem;
}
.steps-list li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0;
  width: 2px;
  background: var(--red);
  transform-origin: top center;
}
.steps-list li:last-child::before { bottom: auto; height: 0.4rem; }
.steps-list .n {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline { display: grid; gap: 0; }
.when {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0 1rem 1rem;
  border-left: 3px solid var(--red);
  margin-left: 0.2rem;
}
.when time {
  font-weight: 600;
  color: var(--red-deep);
}

.gallery figure { margin: 0; background: var(--white); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 400ms var(--ease-out); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 0.75rem 0.9rem 0.95rem; color: var(--steel); font-size: 0.95rem; }

dialog.lightbox {
  width: min(960px, calc(100% - 1.5rem));
  border: 0;
  padding: 0;
  background: transparent;
}
dialog.lightbox::backdrop { background: rgb(16 12 12 / 0.82); }
dialog.lightbox img { width: 100%; height: auto; border-radius: 4px; }
dialog.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 0.4rem; }

form.stack { display: grid; gap: 0.85rem; max-width: 38rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 2px solid #b7b1a6;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.field-error { color: var(--red-deep); font-weight: 600; font-size: 0.92rem; min-height: 1.2em; }
.form-note, .help {
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 400;
}
.form-status {
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: #e7f2e4;
  border: 1px solid #2f6b32;
  color: #143216;
  border-radius: 4px;
}
.form-status[hidden] { display: none; }
form.stack { position: relative; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

details.fold {
  border-top: 1px solid var(--line);
  padding: 0.2rem 0;
}
details.fold summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--red);
}
details.fold[open] summary::after { content: "–"; }
details.fold .fold-body { padding: 0 0 0.9rem; max-width: var(--measure); }

.quote {
  margin: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}
.quote figcaption { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.95rem; color: var(--steel); }

.split { display: grid; gap: 1.4rem; align-items: start; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

.motion { margin: 0; }
.motion-stage { position: relative; border-radius: 6px; overflow: hidden; }
.motion-poster,
.motion video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.motion video {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}
.motion.is-started video { opacity: 1; }
.motion-toggle {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  right: 0.65rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  border: 2px solid #fffcf8;
  border-radius: 4px;
  background: #161616;
  color: #fffcf8;
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
}
.motion-toggle:focus-visible { outline-color: #fff; }
.motion-note {
  margin: 0.45rem 0 0;
  color: var(--steel);
  font-size: 0.78rem;
  line-height: 1.35;
}
.hero .motion-note {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  left: 0.65rem;
  max-width: calc(100% - 7.5rem);
  margin: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #161616;
  color: #fffcf8;
}
.hero .motion-stage { border-radius: 0; }

.page-hero { padding: 2.4rem 0 0.4rem; }
.page-hero h1 { max-width: 16ch; }

.site-footer {
  background: var(--ink);
  color: #f3efe7;
  padding: 2.4rem 0 1.4rem;
}
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 1.4rem; }
.site-footer h2 { font-size: 1.05rem; color: #fff; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.preview-line {
  margin: 1.4rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid #3a3a3a;
  color: #c8c2b8;
  font-size: 0.85rem;
}
.fine { color: #c8c2b8; font-size: 0.92rem; }

.cluster { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (min-width: 720px) {
  .fact-row { grid-template-columns: repeat(3, 1fr); }
  .fact { border-top: 0; padding-top: 0; }
  .cards, .paths { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .brand img { width: 56px; height: 57px; }
  .brand-name { font-size: 1.2rem; }
}

@media (min-width: 900px) {
  html { scroll-padding-top: 8.5rem; }
  .nav-more { display: none; }
  .phone-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; padding-inline: 0.4rem; }
  .nav-toggle { display: none; }
  .nav-list, .nav-list.is-open {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
    width: min(1120px, calc(100% - 1.5rem));
    margin-inline: auto;
    padding: 0 0 0.45rem;
    border-top: 0;
  }
  .nav-list a {
    min-height: 44px;
    padding: 0 0.55rem;
    border-bottom: 0;
    border-radius: 4px;
  }
  .nav-list a:hover { background: var(--paper); }
  .day { grid-template-columns: minmax(220px, 0.7fr) 1.3fr; align-items: start; }
  .day-intro { position: sticky; top: 8.5rem; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .hero { align-items: center; }
  .hero-copy { width: min(40rem, 46%); margin: 4vh 4vw; padding: 1.6rem 1.5rem 1.5rem; }
  .banner-svg { width: 420px; }
}

.reveal,
.when {
  opacity: 1;
  transform: none;
  clip-path: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal 600ms var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    .when {
      animation: wipe 700ms var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 8% entry 42%;
    }
    .steps-list li::before {
      animation: grow 800ms var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 70%;
    }
    .cards .reveal:nth-child(2),
    .paths .reveal:nth-child(2) { animation-range: entry 8% cover 38%; }
    .cards .reveal:nth-child(3),
    .paths .reveal:nth-child(3) { animation-range: entry 14% cover 46%; }
    .cards .reveal:nth-child(4),
    .paths .reveal:nth-child(4) { animation-range: entry 20% cover 54%; }
    .day .step:nth-child(2) { animation-range: entry 8% cover 36%; }
    .day .step:nth-child(3) { animation-range: entry 14% cover 42%; }
    .day .step:nth-child(4) { animation-range: entry 20% cover 48%; }
    .day .step:nth-child(5) { animation-range: entry 26% cover 54%; }
  }
}

@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  @supports (animation-timeline: view()) {
    .hero-media img:not(.motion-poster),
    .gallery img,
    .split picture img {
      animation: photo-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .faith-frame img:not(.motion-poster) {
      animation: drift 4s var(--ease-out) both;
      animation-timeline: auto;
    }
  }
}

.reveal.is-shown,
.when.is-shown,
.is-shown .reveal,
.is-shown .when {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes unfurl {
  0% { transform: scaleX(0.02) skewY(2deg); }
  62% { transform: scaleX(1.05) skewY(-0.6deg); }
  100% { transform: scaleX(1) skewY(0); }
}
@keyframes sheen {
  0% { opacity: 0; transform: translateX(0); }
  35% { opacity: 0.28; }
  100% { opacity: 0; transform: translateX(320px); }
}
@keyframes photo-drift {
  from { transform: translate3d(0, -1.5%, 0) scale(1.05); }
  to { transform: translate3d(0, 1.5%, 0) scale(1.05); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes word-in {
  to { opacity: 1; }
}
@keyframes drift {
  from { transform: scale(1.05) translate3d(0, 1.5%, 0); }
  to { transform: none; }
}
@keyframes athletics-wipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .banner-cloth { transform: scaleX(0.02); animation: unfurl 1.15s var(--ease-out) 80ms forwards; }
  .banner-sheen { opacity: 0; animation: sheen 1.15s var(--ease-out) 180ms both; }
  .banner-word { opacity: 0; animation: word-in 420ms var(--ease-out) 620ms forwards; }
  .faith-frame img:not(.motion-poster) { animation: drift 4s var(--ease-out) both; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(0.98); }
  .card:hover, .person:hover, .path:hover, .event:hover { transform: translateY(-3px); }
  .athletics-bar {
    transform-origin: left center;
    animation: athletics-wipe 600ms var(--ease-out) both;
  }
}

.athletics-bar {
  height: 8px;
  width: min(220px, 60%);
  background: var(--red);
  margin: 0.4rem 0 1rem;
  border-radius: 2px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 280ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes vt-out { to { opacity: 0.2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  .banner-cloth { transform: none; }
  .banner-word { opacity: 1; }
  .btn:hover, .btn:active,
  .card:hover, .person:hover, .path:hover, .event:hover, .gallery button:hover img { transform: none; }
  .banner-sheen { opacity: 0; }
  .motion video,
  .motion-toggle { display: none !important; }
}

@media (max-width: 599px) {
  :root { --header: 64px; }
  html { scroll-padding-top: 64px; }
  .site-header { border-bottom-width: 2px; }
  .header-bar {
    height: 62px;
    max-height: 62px;
    min-height: 62px;
    gap: 0.45rem;
    width: min(1120px, calc(100% - 1rem));
  }
  .brand { gap: 0.4rem; }
  .brand img { width: 40px; height: 40px; object-fit: contain; }
  .brand-name {
    font-size: 0.78rem;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .brand-place { display: none; }
  .header-actions { flex: none; gap: 0.35rem; }
  .header-tour { position: relative; }
  .header-tour,
  .nav-toggle {
    min-height: 40px;
    padding: 0 0.7rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .tour-full {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .tour-short { display: inline; }
  .banner-lockup .knight { display: none; }
  .site-header.is-shrunk .header-bar {
    height: 52px;
    max-height: 52px;
    min-height: 52px;
  }
  .site-header.is-shrunk .brand img { width: 32px; height: 32px; }
}

@media (max-width: 430px) {
  .hero {
    height: calc(100svh - var(--header));
    min-height: 0;
    max-height: calc(100svh - var(--header));
    display: grid;
    grid-template-rows: minmax(8.5rem, 1fr) auto;
    align-items: stretch;
  }
  .hero-media { position: relative; inset: auto; min-height: 0; }
  .hero-media .motion { position: absolute; inset: 0; }
  .hero-copy {
    margin: 0;
    padding: 0.5rem 0.7rem 0.55rem;
    border-radius: 0;
  }
  .hero .eyebrow {
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
  }
  .hero h1 { font-size: 1.55rem; line-height: 1.05; margin-bottom: 0.15rem; }
  .hero .lede { font-size: 0.9rem; line-height: 1.28; margin-bottom: 0.2rem; }
  .hero .banner-lockup { margin: 0 0 0.2rem; }
  .hero .banner-svg { width: min(100%, 148px); }
  .hero-actions { margin-top: 0.1rem; gap: 0.4rem; }
  .hero-actions .btn { min-height: 40px; padding: 0.28rem 0.6rem; font-size: 0.86rem; }
}

@media (max-width: 899px) {
  .nav-list { display: grid; }
  .nav-toggle { display: none; }
  .has-js .nav-toggle { display: inline-flex; }
  .has-js #site-nav { display: none; }
  .has-js #site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #161616;
    color: #fffcf8;
    padding: 1.1rem 1.15rem 2rem;
    overflow: auto;
  }
  .has-js #site-nav.is-open .menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
  }
  .has-js #site-nav.is-open .nav-list {
    display: grid;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .has-js #site-nav.is-open .nav-list a {
    color: #fffcf8;
    border-bottom-color: #3a3a3a;
    font-family: var(--serif);
    font-size: 1.7rem;
    min-height: 56px;
  }
  .has-js #site-nav.is-open :focus-visible { outline-color: #fff; }
}

@media (prefers-reduced-motion: no-preference) {
  .has-js #site-nav.is-open .nav-list a {
    animation: menu-in 420ms var(--ease-out) both;
  }
  .has-js #site-nav.is-open .nav-list li:nth-child(2) a { animation-delay: 40ms; }
  .has-js #site-nav.is-open .nav-list li:nth-child(3) a { animation-delay: 80ms; }
  .has-js #site-nav.is-open .nav-list li:nth-child(4) a { animation-delay: 120ms; }
  .has-js #site-nav.is-open .nav-list li:nth-child(5) a { animation-delay: 160ms; }
  .has-js #site-nav.is-open .nav-list li:nth-child(6) a { animation-delay: 200ms; }
  .has-js #site-nav.is-open .nav-list li:nth-child(7) a { animation-delay: 240ms; }
  .has-js #site-nav.is-open .nav-list li:nth-child(n + 8) a { animation-delay: 280ms; }
}

@media (min-width: 900px) {
  .site-header.is-shrunk .header-bar { min-height: 52px; }
  .site-header.is-shrunk .brand img { width: 40px; height: 41px; }
  .site-header.is-shrunk .nav-list a { min-height: 36px; }
}
