/* ==========================================================================
   Boston String School & Orchestra — modern responsive theme
   1. Design tokens
   2. Reset & base
   3. Layout helpers
   4. Buttons, tags, hairlines
   5. Top bar & header / mobile navigation
   6. Hero
   7. Sections & cards
   8. Prose (long-form content)
   9. Accordion (details/summary)
   10. Faculty
   11. Contact & form
   12. Aside / highlight cards
   13. Footer
   14. Utilities, motion, print
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --wine: #7c1d33;
  --wine-deep: #59111f;
  --wine-soft: #9d2b45;
  --gold: #c8a45c;
  --gold-light: #ecd9ae;
  --cream: #fbf7f1;
  --cream-2: #f4ebdf;
  --ink: #241f1c;
  --ink-soft: #5c534b;
  --ink-mute: #857a70;
  --line: #e6dbca;
  --white: #fff;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-xs: 0 1px 2px rgba(36, 31, 28, .05);
  --shadow-sm: 0 2px 6px rgba(36, 31, 28, .05), 0 8px 24px -16px rgba(89, 17, 31, .35);
  --shadow-md: 0 10px 34px -18px rgba(89, 17, 31, .38);
  --shadow-lg: 0 40px 70px -40px rgba(89, 17, 31, .55);

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --topbar-h: 38px;
  --nav-h: 74px;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* 2. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  /* clip 不会创建滚动容器，可保留 position: sticky 的正常工作 */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg { max-width: 100%; }
img { height: auto; display: block; }

a {
  color: var(--wine);
  text-decoration-color: rgba(124, 29, 51, .35);
  text-underline-offset: 3px;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
a:hover { color: var(--wine-soft); text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li + li { margin-top: .35em; }

strong { font-weight: 700; }
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin: 2rem 0;
}

::selection { background: var(--gold-light); color: var(--wine-deep); }

:focus-visible {
  outline: 2px solid var(--wine-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--cream { background: var(--cream-2); }
.section--ink { background: var(--wine-deep); color: #f3e9df; }

.section__head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section--ink .eyebrow { color: var(--gold-light); }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink-soft);
}

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.stack > * + * { margin-top: 1.1rem; }

/* 4. Buttons, tags ------------------------------------------------------- */
.btn {
  --btn-bg: var(--wine);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 12px 24px -16px rgba(89, 17, 31, .75);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(89, 17, 31, .8);
  color: var(--btn-fg);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--wine);
  border-color: rgba(124, 29, 51, .3);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: rgba(124, 29, 51, .06);
  box-shadow: none;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--wine-deep);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #f6ece2;
  border-color: rgba(246, 236, 226, .45);
  box-shadow: none;
}
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .1); box-shadow: none; }

.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.tag {
  display: inline-block;
  padding: .27rem .68rem;
  border-radius: 999px;
  background: rgba(124, 29, 51, .08);
  color: var(--wine);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tag--gold { background: rgba(200, 164, 92, .18); color: #7a5a14; }

/* 5. Top bar & header ---------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--wine-deep);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-size: .85rem;
}
.skip-link:focus { top: 0; color: #fff; }

.topbar {
  background: var(--wine-deep);
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  letter-spacing: .03em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
}
.topbar__group { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.topbar a:hover { color: #fff; }
.topbar__phone { font-weight: 700; color: #fff !important; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, .9);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(230, 219, 202, .8);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 14px 30px -28px rgba(36, 31, 28, .9);
  background: rgba(251, 247, 241, .97);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--gold-light);
  box-shadow: 0 8px 18px -12px rgba(89, 17, 31, .9);
  flex: none;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand__text small {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li + li { margin-top: 0; }
.nav__link {
  display: inline-block;
  padding: .5rem .62rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--wine); background: rgba(124, 29, 51, .06); }
.nav__link[aria-current="page"] { color: var(--wine); }
.nav__link[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.nav__cta { padding: .62rem 1.15rem; font-size: .84rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--wine);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(157, 43, 69, .55) 0%, rgba(157, 43, 69, 0) 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(200, 164, 92, .16) 0%, rgba(200, 164, 92, 0) 60%),
    linear-gradient(155deg, #5e1526 0%, #4a0f1c 55%, #360a14 100%);
  color: #f7efe6;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 76px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__copy {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: rgba(247, 239, 230, .82);
  max-width: 46ch;
}
.hero__eyebrow { color: var(--gold-light); }
.hero__eyebrow::before { background: var(--gold); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 239, 230, .16);
}
.hero__meta-item { display: flex; flex-direction: column; gap: .1rem; }
.hero__meta-item strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.2;
}
.hero__meta-item span {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 239, 230, .6);
}

.hero__card {
  position: relative;
  border-radius: 24px;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 70px -45px #000;
  backdrop-filter: blur(6px);
}
.hero__card h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .4rem;
}
.hero__card p { color: rgba(247, 239, 230, .8); font-size: .93rem; }
.hero__card .figure {
  margin: -0.3rem -0.3rem 1rem;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, rgba(200, 164, 92, .25), rgba(255, 255, 255, .04));
}
.hero__card .figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__card .btn-row { margin-top: 1.1rem; }

/* 7. Sections & cards ---------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  background: #fff;
  border: 1px solid rgba(230, 219, 202, .9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 164, 92, .5);
}
.card h3 { margin-bottom: .1rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 29, 51, .07);
  color: var(--wine);
  margin-bottom: .35rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card__meta {
  display: block;
  margin-top: auto;
  padding-top: .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  border-top: 1px dashed var(--line);
}
a.card__meta:hover { color: var(--wine-deep); text-decoration: underline; }

.card--flat { box-shadow: none; background: transparent; border-style: dashed; }
.card--flat:hover { transform: none; box-shadow: none; }

.card--ink {
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: rgba(255, 255, 255, .84);
  border-color: transparent;
}
.card--ink h3 { color: #fff; }
.card--ink .card__icon { background: rgba(255, 255, 255, .12); color: var(--gold-light); }
.card--ink a { color: var(--gold-light); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pill-list li {
  margin: 0;
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .84rem;
  color: var(--ink-soft);
}

/* 8. Prose --------------------------------------------------------------- */
.prose { font-size: 1.01rem; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 2rem; }
.prose a { font-weight: 500; }
.prose strong { color: var(--ink); }
.prose .note {
  display: block;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(200, 164, 92, .1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .93rem;
  color: var(--ink-soft);
}

.info-list {
  display: grid;
  gap: .9rem;
  margin: 0;
}
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.info-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { color: var(--ink-mute); }
.info-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* 9. Accordion ----------------------------------------------------------- */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 clamp(1rem, 2vw, 1.35rem);
  margin-bottom: .65rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.accordion[open] { border-color: rgba(200, 164, 92, .65); box-shadow: var(--shadow-sm); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--wine);
  border-bottom: 2px solid var(--wine);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.accordion[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion > *:not(summary) { color: var(--ink-soft); }
.accordion > *:not(summary):last-child { margin-bottom: 1.1rem; }

/* 10. Faculty ------------------------------------------------------------ */
.faculty {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.faculty__member {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.9rem);
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  background: #fff;
  border: 1px solid rgba(230, 219, 202, .9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.faculty__member:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.faculty__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(200, 164, 92, .35), transparent 60%),
    linear-gradient(150deg, #7c1d33, #4a0f1c);
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}
.faculty__photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .7rem;
  margin-bottom: .1rem;
}
.faculty__name h3 { margin: 0; }
.faculty__role {
  font-size: .84rem;
  font-style: italic;
  color: var(--wine);
  font-weight: 600;
}
.faculty__body { font-size: .95rem; color: var(--ink-soft); }
.faculty__body p:last-child { margin-bottom: 0; }

/* 11. Contact & form ----------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

.contact-card {
  padding: clamp(1.3rem, 2.6vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-md);
}
.contact-card h2 { color: #fff; font-size: 1.6rem; }
.contact-card a { color: #fff; }
.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  margin: 0;
  font-size: .93rem;
}
.contact-list svg { width: 18px; height: 18px; margin-top: .25rem; color: var(--gold-light); }
.contact-list span {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .12rem;
}

.form {
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: #fff;
  border: 1px solid rgba(230, 219, 202, .9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .78rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: .94rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--wine-soft);
  box-shadow: 0 0 0 3px rgba(124, 29, 51, .1);
}
.field .hint { font-size: .76rem; color: var(--ink-mute); }

/* honeypot：对用户与读屏软件隐藏 */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.1rem;
  border: 1px solid transparent;
}
.alert--ok { background: #eef7f0; border-color: #bfe0c8; color: #1f6b38; }
.alert--err { background: #fdf0f0; border-color: #f0c9c9; color: #93262b; }

/* 12. Aside -------------------------------------------------------------- */
.aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 1.25rem); }
.aside__card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(230, 219, 202, .9);
  box-shadow: var(--shadow-xs);
}
.aside__card h3 { font-size: 1.24rem; margin-bottom: .45rem; }
.aside__card p { font-size: .89rem; color: var(--ink-soft); }
.aside__card p:last-child { margin-bottom: 0; }
.aside__card--wine {
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: rgba(255, 255, 255, .82);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.aside__card--wine h3 { color: #fff; }
.aside__card--wine p { color: rgba(255, 255, 255, .8); }
.aside__card--wine a { color: var(--gold-light); }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(157, 43, 69, .7), transparent 60%),
    linear-gradient(140deg, #59111f, #360a14);
  color: rgba(255, 255, 255, .82);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; max-width: 52ch; }

/* 13. Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: #2b1119;
  color: rgba(255, 255, 255, .62);
  font-size: .89rem;
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.site-footer h4 {
  color: #fff;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer ul li + li { margin-top: 0; }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: #fff;
}
.site-footer__brand .brand__mark { width: 38px; height: 38px; }
.site-footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.2;
}
.site-footer__brand small {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.site-footer__bottom {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .7rem 1.5rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: clamp(.9rem, 3vw, 1.6rem);
  bottom: clamp(.9rem, 3vw, 1.6rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--wine-deep); }
.to-top svg { width: 20px; height: 20px; }

/* 14. Utilities, motion, print ------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__link { padding: .5rem .45rem; font-size: .8rem; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 66px; --topbar-h: 32px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .8rem var(--gutter) 1.4rem;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(36, 31, 28, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li { border-bottom: 1px solid rgba(230, 219, 202, .7); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .95rem .3rem;
    font-size: .95rem;
    border-radius: 0;
  }
  .nav__link:hover { background: transparent; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin-top: 1.1rem; width: 100%; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }

  .layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand-col { grid-column: 1 / -1; }

  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --topbar-h: 0px; }

  .topbar { display: none; }

  .brand__text small { display: none; }

  .grid--3,
  .grid--4,
  .grid--2 { grid-template-columns: 1fr; }

  .faculty__member { grid-template-columns: 1fr; }
  .faculty__photo { width: 96px; aspect-ratio: 1 / 1; }

  .form__row { grid-template-columns: 1fr; }

  .hero__meta { gap: 1rem 1.6rem; }
  .hero__meta-item strong { font-size: 1.2rem; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__text strong { font-size: 1.08rem; }
  .btn { padding: .78rem 1.2rem; font-size: .88rem; }
}

@media print {
  .topbar,
  .site-header,
  .to-top,
  .site-footer nav,
  .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .card,
  .faculty__member { box-shadow: none; break-inside: avoid; }
}
