/* Brand colors come from the TSM branding kit:
   teal #008292 and indigo #2F3192. Change them here and the whole site follows. */
:root {
  --indigo: #2f3192;
  --indigo-deep: #1e2068;
  --indigo-tint: #eceefa;
  --teal: #008292;
  --teal-deep: #005f6b;
  --teal-tint: #e3f2f4;
  --teal-light: #8fdde6;
  --ink: #171849;
  --muted: #4b4e73;
  --line: #d9dfea;
  --bg: #ffffff;
  --bg-soft: #f3f7fa;
  --radius: 16px;
  --maxw: 1120px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  line-height: 1.18;
  margin: 0 0 .55em;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--indigo);
}
h1, h2 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Animated underline for in-content links */
main a:not(.btn) { position: relative; text-decoration: none; }
main a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
main a:not(.btn):hover::after, main a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }

.container { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--indigo); color: #fff;
  padding: .6rem 1rem; z-index: 100; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--teal), var(--indigo)); transition: width .12s linear; pointer-events: none;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Placeholders you still need to fill in */
.todo {
  background: #fff3b0; color: #5a4300;
  padding: 0 .35em; border-radius: 4px;
  border: 1px dashed #c9a400;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(23, 24, 73, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; transition: padding .25s ease; }
.site-header.is-scrolled .header-inner { padding: 6px 0; }
.brand { display: block; line-height: 0; }
.brand-logo { height: 52px; width: auto; transition: height .25s ease, transform .25s ease; }
.site-header.is-scrolled .brand-logo { height: 38px; }
.brand:hover .brand-logo, .brand:focus-visible .brand-logo { transform: scale(1.06); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative;
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: background-color .2s ease;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.site-nav a:not(.btn):hover { background: var(--indigo-tint); }
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.site-nav a[aria-current="page"]:not(.btn)::after { display: none; }
.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--indigo);
  background: transparent; border: 2px solid var(--indigo); border-radius: 999px; padding: 6px 16px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  background: var(--teal); color: #fff;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--teal);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo-tint); border-color: var(--indigo); }
.btn-small { padding: 9px 18px; font-size: .9rem; margin-left: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Buttons on dark or colored backgrounds */
.hero .btn, .band .btn { background: #fff; color: var(--indigo); border-color: #fff; }
.hero .btn:hover, .band .btn:hover { background: var(--teal-tint); border-color: var(--teal-tint); }
.hero .btn-ghost, .band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover, .band .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero--light .btn { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Sections */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--bg); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.why-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin-bottom: 44px; }
.why-grid .section-head { margin-bottom: 0; }
.why-grid-art { width: 260px; max-width: 100%; height: auto; justify-self: end; }

/* Hero */
.hero { background: var(--indigo); color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 146, .55), rgba(0, 130, 146, 0) 68%); pointer-events: none;
}
.hero:not(.hero--event):not(.hero--light)::before {
  content: ""; position: absolute; left: -160px; bottom: -180px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 221, 230, .3), rgba(143, 221, 230, 0) 70%); pointer-events: none;
  animation: heroFloat 15s ease-in-out infinite;
}
.hero:not(.hero--event):not(.hero--light)::after { animation: heroFloatReverse 19s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -22px) scale(1.08); }
}
@keyframes heroFloatReverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 24px) scale(1.06); }
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero p.lede { color: #dfe3f7; }
.hero-rotator {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.18; min-height: 2.36em;
  transition: opacity .4s ease, min-height .4s ease;
}
.hero-rotator.is-fading { opacity: 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero--event { background: var(--teal-deep); }
.hero--event::after { background: radial-gradient(circle, rgba(47, 49, 146, .55), rgba(47, 49, 146, 0) 68%); }
.hero--event .eyebrow { color: #c7f1f6; }
.hero--event p.lede { color: #e0f4f6; }
.hero-statement {
  margin: 0; color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em;
  border-left: 4px solid var(--teal-light); padding-left: 22px;
}
.hero--light { background: var(--teal-tint); color: var(--ink); padding: 72px 0 48px; }
.hero--light::after { display: none; }
.hero--light h1 { color: var(--indigo); }
.hero--light .eyebrow { color: var(--teal-deep); }
.hero--light p.lede { color: var(--muted); }

.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--teal-light), rgba(143, 221, 230, .25)); }
.chain li {
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-items: center;
  padding: 14px 0;
}
.chain-n {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--indigo); font-weight: 800;
  display: grid; place-items: center; z-index: 1;
}
.chain strong { font-size: 1.2rem; font-weight: 700; }
.chain li span:last-child { color: #c9cff0; font-size: .92rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* Upcoming events: 3 across on desktop, 1 per row below that (no lonely orphan card) */
.events-grid { grid-template-columns: repeat(3, 1fr); }
.events-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.event-card { display: flex; flex-direction: column; position: relative; }
.event-card:only-child { max-width: 560px; }
.card.event-card .tag { position: absolute; top: -13px; right: 20px; margin: 0; background: var(--teal); color: #fff; }
.event-card .btn-row { margin-top: auto; padding-top: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; border-top: 4px solid var(--teal);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(23, 24, 73, .12); }
.section-white .card { background: var(--bg-soft); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--teal-tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg);
}

/* Belief block */
.belief { background: var(--indigo-deep); color: #fff; }
.belief blockquote {
  margin: 0 0 44px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700;
  line-height: 1.3; max-width: 24em; letter-spacing: -.015em;
}
.belief blockquote em { color: var(--teal-light); font-style: normal; }
.belief .principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.belief .principles h3 { color: var(--teal-light); font-size: 1.05rem; }
.belief .principles p { color: #d3d8f3; margin: 0; }

/* Feature band */
.band { background: var(--teal); color: #fff; }
.band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.band h2 { margin-bottom: .4em; color: #fff; }
.band .eyebrow { color: #d5f5f8; }
.band p { color: #eaf9fa; max-width: 52ch; }
.band .btn-row { margin-top: 20px; justify-content: flex-start; }
.band-art { display: flex; justify-content: center; }
.band-art img { width: 100%; max-width: 320px; height: auto; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Event details */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: 4px solid var(--teal); }
.details > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.details > div:last-child { border-right: 0; }
.details dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 6px; }
.details dd { margin: 0; font-weight: 500; }

/* Event cards */
.event-head { display: flex; align-items: center; gap: 16px; }
.event-head h3 { margin: 0; }
.event-date {
  flex: 0 0 auto; width: 64px; padding: 8px 0; text-align: center; line-height: 1;
  border-radius: 12px; background: var(--indigo); color: #fff;
}
.event-date span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); }
.event-date strong { display: block; font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.event-series { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event-meta { display: grid; gap: 14px; margin: 22px 0 0; }
.event-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 4px; }
.event-meta dd { margin: 0; font-weight: 500; }

/* Testimonial slider */
.carousel { background: var(--indigo-tint); border-radius: 24px; padding: 48px 28px 24px; position: relative; overflow: hidden; }
.carousel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(var(--teal), var(--indigo));
}
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 0 4px 8px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.slide blockquote {
  margin: 0 auto 22px; max-width: 30em; color: var(--indigo);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em;
}
.slide blockquote::before {
  content: "\201C"; display: block; color: var(--teal); font-size: 4.5rem; font-weight: 800; line-height: .7; margin-bottom: 10px;
}
.slide blockquote p { margin: 0; }
.slide figcaption { color: var(--muted); font-size: .95rem; font-weight: 600; }
.slide figcaption span.role { display: block; font-weight: 400; font-size: .88rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.carousel-btn {
  font: inherit; font-weight: 700; cursor: pointer; color: var(--indigo); background: #fff;
  border: 2px solid var(--indigo); border-radius: 999px; min-width: 44px; height: 44px; padding: 0 16px;
  display: inline-grid; place-items: center; line-height: 1;
}
.carousel-btn:hover { background: var(--indigo); color: #fff; }
.carousel-btn.arrow { padding: 0; width: 44px; font-size: 1.4rem; }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: #b8bde6;
  transition: transform .15s ease, background .15s ease;
}
.carousel-dots button[aria-current="true"] { background: var(--teal); transform: scale(1.35); }

/* Profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.profile-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Event photo carousel */
.gallery-carousel { overflow: hidden; }
.gallery-track { display: flex; gap: 18px; will-change: transform; }
.gallery-track.is-stepping { transition: transform .4s ease; }
.gallery-item {
  flex: 0 0 calc(25% - 13.5px);
  padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; line-height: 0;
}
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 32px;
  background: rgba(23, 24, 73, .92); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-img { max-width: min(92vw, 1000px); max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; font: inherit; font-size: 2rem; line-height: 1; color: #fff;
  background: transparent; border: 0; cursor: pointer; padding: 8px 12px;
}
.lightbox-close:hover { color: var(--teal-light); }

/* FAQ */
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.section-white .faq details { background: var(--bg-soft); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--indigo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { font-weight: 600; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 13px 14px; border: 1.5px solid #c3cbdb; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(0, 130, 146, .35); border-color: var(--teal); }
.form .hp { position: absolute; left: -9999px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; }
.form-inline input { flex: 1 1 240px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.contact-side p { margin-bottom: .6em; }

/* CTA + footer */
.cta { background: var(--bg); text-align: center; border-top: 1px solid var(--line); }
.cta h2 { max-width: 20em; margin-inline: auto; }
.cta p { max-width: 50ch; margin-inline: auto; color: var(--muted); }
.cta .btn-row { justify-content: center; }
.site-footer { background: var(--indigo-deep); color: #d3d8f3; padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-logo { width: 260px; height: auto; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a { position: relative; color: #d3d8f3; text-decoration: none; transition: color .2s ease; }
.site-footer a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--teal-light); }
.site-footer a:hover::after, .site-footer a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { padding-top: 24px; margin: 0; font-size: .85rem; color: #a3aad8; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: none; background: var(--teal-tint); border-radius: 8px; }
  .btn-small { margin: 8px 0 0; text-align: center; }
  .brand-logo { height: 44px; }
  .hero-grid, .band-inner, .profile, .contact-grid, .why-grid { grid-template-columns: 1fr; }
  .why-grid-art { justify-self: center; width: 200px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Upcoming events stack one per row, soonest first */
  .events-grid, .events-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 60px 0; }
  .profile .profile-photo { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .details > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .details > div:last-child { border-bottom: 0; }
  .carousel { padding: 40px 18px 20px; }
  .gallery-item { flex: 0 0 calc(50% - 9px); }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-item { flex: 0 0 100%; }
}

@media (max-width: 359px) {
  .hero-rotator { min-height: 4.8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .carousel-dots button { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .header-inner, .brand-logo, .card, .gallery-item img, .gallery-track.is-stepping,
  .site-nav a:not(.btn)::after, main a:not(.btn)::after, .site-footer a::after,
  .lightbox, .hero-rotator, .scroll-progress {
    transition: none;
  }
  .card:hover { transform: none; }
  .hero::before, .hero::after { animation: none; }
}
