/* =========================================================
   Shri Vagad Welfare Society Hospital: home page
   Colours come from the logo (red block, white cross, white type).
   Image slots (one fixed size each):
     hero slide 1200x800 | about photo 720x576 | department + tour 640x480 | trustee 240x240
   ========================================================= */

:root {
  --red: #e10600;
  --red-deep: #b30500;
  --red-soft: #fff0ee;
  --ink: #17161c;
  --ink-2: #4b4a55;
  --ink-3: #74727f;
  --paper: #ffffff;
  --cream: #fbf7f4;
  --line: #ece5e0;
  --radius: 20px;
  --shadow: 0 18px 40px -18px rgba(40, 10, 8, .28);
  --shadow-sm: 0 6px 18px -10px rgba(40, 10, 8, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--flip { transform: scaleX(-1); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 40px); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--lg { padding: .95em 1.6em; font-size: 1rem; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(225, 6, 0, .8); }
.btn--red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost .icon, .link .icon, .dept__more .icon, .ccard__more .icon { transition: transform .3s var(--ease); }
.btn--ghost:hover .icon, .link:hover .icon { transform: translateX(4px); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--red); color: var(--red-deep); }

.chip { display: inline-block; padding: .4em 1em; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.chip--red { background: var(--red-soft); color: var(--red-deep); }
.hero__managed { display: none; } /* the header shows this line; phones (header line hidden) get it back below */

.link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--red-deep); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .86); font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar__addr { display: flex; align-items: center; gap: .5em; }
.topbar__right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.live { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; color: #fff; }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .45); }
.header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-stuck .header__in { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 50px; height: auto; flex: none; border-radius: 4px; transition: width .3s var(--ease); }
.header.is-stuck .brand img { width: 44px; }
.brand__text { display: grid; line-height: 1.2; min-width: 0; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; letter-spacing: -.005em; }
.brand__sub { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-deep); margin-top: 2px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list a { position: relative; display: block; padding: 10px 11px; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--ink); border-radius: 8px; transition: color .2s; }
.nav__list a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover, .nav__list a.is-current { color: var(--red-deep); }
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); }
.nav__extra { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; align-items: center; justify-content: center; font-size: 1.25rem; }
.burger__close { display: none; }
.nav-shade { position: fixed; inset: 0; z-index: 80; background: rgba(23, 22, 28, .5); opacity: 0; transition: opacity .3s; }
.nav-shade.is-on { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::before { /* soft cross, the shape cut out of the logo */
  content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; opacity: .06; background:
    linear-gradient(var(--red), var(--red)) center / 34% 100% no-repeat,
    linear-gradient(var(--red), var(--red)) center / 100% 34% no-repeat;
  transform: rotate(8deg);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding-block: 64px 84px; }
.hero__tag { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--red); margin-top: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.15rem, 4.3vw, 3.55rem); line-height: 1.07; letter-spacing: -.02em; margin-top: 6px; }
.hero h1 .hero__place { display: block; font-size: .5em; letter-spacing: 0; color: var(--ink-2); font-weight: 500; margin-top: .45em; }
.hero__lead { margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--red); font-size: 1.08rem; color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__marks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.hero__marks li { display: inline-flex; align-items: center; gap: .5em; }
.hero__marks .icon { color: var(--red); }

.hero__media { position: relative; }
.hero__media::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: var(--red); transform: translate(16px, 16px); }
.slider { position: relative; border-radius: 28px; overflow: hidden; background: #ddd; box-shadow: var(--shadow); isolation: isolate; }
.slider__track { position: relative; aspect-ratio: 3 / 2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 190px 20px 22px; /* right side stays free for the arrows */ font-weight: 700; font-size: .98rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .66)); }
.slider__nav { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.slider__btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); transition: background-color .2s, color .2s, transform .2s; }
.slider__btn:hover { background: var(--red); color: #fff; transform: scale(1.06); }
.slider__btn--solid { background: var(--ink); color: #fff; }
.slider__btn[disabled] { opacity: .35; pointer-events: none; }
.slider__dots { display: flex; gap: 6px; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); transition: width .3s var(--ease), background-color .3s; }
.slider__dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }

.hero__badge { position: absolute; left: -26px; top: 28px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: transform .3s var(--ease); }
.hero__badge:hover { transform: translateY(-4px); }
.hero__badge b { font-size: .8rem; color: var(--ink-2); }
.hero__badge span:last-child { font-weight: 800; font-size: 1.05rem; }
.hero__badge-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.2rem; }

/* ---------- Numbers ---------- */
.stats { background: var(--red); color: #fff; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .22); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font-size: .86rem; font-weight: 600; letter-spacing: .03em; opacity: .94; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--ink); color: #fff; }
.head { max-width: 760px; margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: #ff6a61; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 3.1vw, 2.55rem); line-height: 1.15; letter-spacing: -.015em; margin-top: 12px; }
.h2-sub { display: block; font-size: .58em; font-style: italic; font-weight: 500; color: var(--red); margin-top: .35em; letter-spacing: 0; }
.head__sub { margin-top: 16px; font-size: 1.05rem; color: var(--ink-2); }
.section--dark .head__sub { color: rgba(255, 255, 255, .75); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
h4 { font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--red-deep); margin: 22px 0 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split--top .split__text { position: sticky; top: 104px; } /* the shorter text column travels down beside the long facts card */
.split__text p { margin-top: 18px; color: var(--ink-2); }
.split__text .eyebrow { margin-top: 0; color: var(--red); }
/* About: floating picture group (large photo 720x576, small photo 640x480, one fact chip) */
.collage { position: relative; z-index: 0; padding: 0 0 56px 44px; }
.collage::before { /* slow red cross behind the top corner */
  content: ""; position: absolute; left: -6px; top: -42px; width: 130px; height: 130px; opacity: .14; background:
    linear-gradient(var(--red), var(--red)) center / 34% 100% no-repeat,
    linear-gradient(var(--red), var(--red)) center / 100% 34% no-repeat;
  animation: spin 40s linear infinite;
}
.collage::after { /* dotted corner behind the photo */
  content: ""; position: absolute; right: -22px; bottom: 22px; width: 150px; height: 150px; z-index: -1;
  background: radial-gradient(var(--red) 1.6px, transparent 2px) 0 0 / 15px 15px; opacity: .35;
}
.collage__main { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); animation: floaty 7s ease-in-out infinite; }
.collage__main img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transform: scale(1.12) translateY(var(--sy, 0px)); /* --sy moves a little with the scroll */ }
.collage__small { position: absolute; left: 0; bottom: 0; width: 44%; border: 6px solid #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); animation: floaty 6s ease-in-out -3s infinite; }
.collage__small img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage__chip { position: absolute; right: -16px; top: 28px; max-width: 200px; padding: 14px 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); animation: floaty 5s ease-in-out -1.5s infinite; }
.collage__chip b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--red); margin-bottom: 4px; }
@keyframes floaty { 50% { translate: 0 -12px; } }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 64px; }
.tl { position: relative; padding: 30px 0 38px; border-top: 2px solid var(--line); }
.tl::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.tl__year { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--red); }
.tl__text { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.tl__list { margin-top: 12px; font-size: .92rem; color: var(--ink-2); display: grid; gap: 3px; }
.tl__list b { display: inline-block; min-width: 6.2em; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Trustees */
.lead-trustees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trustee { text-align: center; }
.trustee__photo { width: 104px; height: 104px; margin-inline: auto; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red), var(--shadow-sm); }
.trustee__name { margin-top: 16px; font-size: 1.08rem; }
.trustee__role { margin-top: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); }
.trustee--lead { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px; box-shadow: var(--shadow-sm); }
.trustee--lead .trustee__photo { width: 124px; height: 124px; }
.trustee--lead .trustee__name { font-size: 1.28rem; }
.trustee__quote { position: relative; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); text-align: left; }
.trustee__quote .icon { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; padding: 4px; margin-left: -15px; background: #fff; color: var(--red); }
.trustee-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 18px; margin-top: 44px; }

/* Hospital facts */
.facts { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.facts dd { font-size: .95rem; font-weight: 600; }

/* Photo tour */
.tour { margin-top: 72px; }
.tour__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tour__btns { display: flex; gap: 8px; }
.tour__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; border-radius: 18px; }
.tour__track::-webkit-scrollbar { display: none; }
.tour__item { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.tour__item figure { position: relative; border-radius: 18px; overflow: hidden; }
.tour__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.tour__item figure:hover img { transform: scale(1.1) translate(var(--ix, 0px), var(--iy, 0px)); }
.tour__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 14px; color: #fff; font-weight: 700; font-size: .95rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

.trio { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 24px; margin-top: 64px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.panel > p { margin-top: 10px; font-size: .95rem; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: .42em .95em; border-radius: 999px; background: var(--red-soft); color: var(--red-deep); font-size: .82rem; font-weight: 700; }
.tags--line li { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ticks { margin-top: 18px; display: grid; gap: 8px; font-size: .93rem; font-weight: 600; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.awards { margin-top: 14px; display: grid; gap: 16px; font-size: .92rem; color: var(--ink-2); }
.awards b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 2px; }
.awards li { padding-left: 16px; border-left: 3px solid var(--red); }

/* Facilities */
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fac { padding: 26px 22px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.fac__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.35rem; }
.fac h3 { margin-top: 18px; font-size: 1.08rem; color: #fff; }
.fac p { margin-top: 8px; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .72); }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dept { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.dept:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.dept__img { display: block; overflow: hidden; background: #eee; }
.dept__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.dept:hover .dept__img img { transform: scale(1.1) translate(var(--ix, 0px), var(--iy, 0px)); }
.dept__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.dept__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.dept__text { margin-top: 10px; font-size: .92rem; color: var(--ink-2); flex: 1; }
.dept__more { display: inline-flex; align-items: center; gap: .5em; margin-top: 18px; font-size: .86rem; font-weight: 800; color: var(--red-deep); }
.dept:hover .dept__more .icon { transform: translateX(5px); }
.also { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }

/* Treatments tabs */
.tabs__list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { flex: none; padding: .7em 1.25em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s; }
.tabs__tab:hover { border-color: var(--red); color: var(--red-deep); }
.tabs__tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tabs__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.tabs__panel + .tabs__panel { margin-top: 18px; }
html:not(.js) .tabs__panel[hidden] { display: block; } /* without JavaScript every list stays readable */
.js .tabs__panel:not([hidden]) { animation: panel .45s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }
.tabs__panel > p { margin-top: 12px; color: var(--ink-2); max-width: 62em; }
.tabs__note { padding: 14px 18px; border-radius: 12px; background: var(--cream); font-size: .93rem; margin-top: 22px !important; }
.tlist { margin-top: 18px; display: grid; gap: 10px; font-size: .96rem; font-weight: 600; }
.tlist--two { grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.tlist li { position: relative; padding-left: 22px; }
.tlist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
ol.tlist { counter-reset: t; }
ol.tlist li { padding-left: 38px; counter-increment: t; }
ol.tlist li::before { content: counter(t); top: .05em; width: 26px; height: 26px; border-radius: 50%; background: var(--red-soft); color: var(--red-deep); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.cols--four { grid-template-columns: repeat(4, 1fr); gap: 6px 28px; margin-top: 8px; }
.cols .tlist { margin-top: 0; font-size: .92rem; }
.fineprint { margin-top: 22px; font-size: .86rem; color: var(--ink-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; cursor: pointer; list-style: none; transition: color .2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red-deep); }
.faq__item summary .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--red-soft); color: var(--red-deep); transition: transform .35s var(--ease), background-color .25s, color .25s; }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq__a { padding: 0 60px 24px 4px; color: var(--ink-2); }
.faq__item[open] .faq__a { animation: panel .4s var(--ease); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.contact__cards { display: grid; gap: 14px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--red); }
.ccard__ic { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-deep); font-size: 1.3rem; }
.ccard__label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ccard__value { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.ccard__value--sm { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.ccard__more { display: inline-flex; align-items: center; gap: .4em; margin-top: 4px; font-size: .84rem; font-weight: 800; color: var(--red-deep); }
.ccard:hover .ccard__more .icon { transform: translateX(4px); }
.ccard--red { background: var(--red); border-color: var(--red); color: #fff; }
.ccard--red .ccard__ic { background: rgba(255, 255, 255, .18); color: #fff; }
.ccard--red .ccard__label { color: rgba(255, 255, 255, .88); }
.ccard--red:hover { border-color: var(--red-deep); background: var(--red-deep); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: #e9e4df; }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Footer */
.footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 1rem; }
.footer__deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.footer__deco::before { /* large faint cross in the corner */
  content: ""; position: absolute; right: -110px; bottom: -130px; width: 420px; height: 420px; opacity: .05; background:
    linear-gradient(#fff, #fff) center / 34% 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 34% no-repeat;
  animation: spin 70s linear infinite;
}
.footer__deco::after { content: ""; position: absolute; left: -220px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .2), transparent 66%); }

.footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr .9fr .9fr 1.6fr; gap: 56px; padding-block: 68px 52px; }
.brand--footer { gap: 16px; }
.brand--footer img { width: 68px; }
.brand--footer .brand__name { color: #fff; font-size: 1.35rem; }
.brand--footer .brand__sub { color: #ff7a72; font-size: .62rem; letter-spacing: .04em; margin-top: 5px; }
.footer__motto { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--red); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: #fff; }
.footer__h { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 24px; }
.footer__h::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.footer__links { display: grid; gap: 14px; font-size: 1.02rem; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: #fff; }
.footer__links a { position: relative; display: inline-block; transition: color .25s, padding-left .35s var(--ease); }
.footer__links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--red); transition: width .35s var(--ease); }
.footer__links a:hover { padding-left: 22px; }
.footer__links a:hover::before { width: 14px; }
.footer__contact { display: grid; gap: 16px; }
.footer__contact li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; line-height: 1.55; }
.footer__contact .icon { width: 42px; height: 42px; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #ff7a72; transition: background-color .3s, color .3s, transform .45s var(--ease); }
.footer__contact li:hover .icon { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.06); }
.footer__contact a:hover, .footer__bar a:hover { text-decoration: underline; }
.footer__legal { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 30px 38px; }
.footer__disclaimer { font-size: .86rem; color: rgba(255, 255, 255, .6); max-width: 78em; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: .9rem; }
.footer__bar a { color: #fff; font-weight: 700; }

/* Mobile bar, back to top */
.mbar { display: none; }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--red); }

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .brand__name { font-size: .98rem; }
  .nav__list a { padding-inline: 8px; font-size: .88rem; }
  .nav__list a::after { left: 8px; right: 8px; }
  .header__call span { display: none; }
  .header__call { padding: .72em; }
  .fac-grid { grid-template-columns: repeat(3, 1fr); }
  .cols--four { grid-template-columns: 1fr 1fr; gap: 6px 36px; }
}

@media (max-width: 1060px) {
  .topbar__addr { display: none; }
  .topbar__right { margin-inline: auto; }
  .header { background: #fff; backdrop-filter: none; } /* a filter here would trap the fixed menu drawer inside the header */
  .burger { display: inline-flex; }
  .header__call { margin-left: auto; }
  .header__call span { display: inline; }
  .header__call { padding: .72em 1.25em; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(88vw, 360px); margin: 0; padding: 88px 24px 28px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5); }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: 15px 4px; font-size: 1.06rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a::after { display: none; }
  .nav__extra { display: grid; gap: 10px; margin-top: 24px; }
  .burger { position: relative; z-index: 110; }
  .burger[aria-expanded="true"] .burger__open { display: none; }
  .burger[aria-expanded="true"] .burger__close { display: block; }

  .hero__in { gap: 40px; padding-block: 48px 72px; }
  .hero__badge { left: -14px; top: 20px; }
  .split { gap: 36px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .trustee-grid { grid-template-columns: repeat(3, 1fr); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .panel:first-child { grid-column: 1 / -1; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .tour__item { flex-basis: calc((100% - 20px) / 2); }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding-block: 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 720px; }
  .hero__badge { left: 16px; top: 16px; }
  .split { grid-template-columns: 1fr; }
  .split--top .split__text { position: static; }
  .collage { max-width: 620px; margin-top: 20px; }
  .lead-trustees { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .22); }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  html { scroll-padding-top: 80px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .topbar { display: none; }
  .brand img { width: 42px; }
  .header.is-stuck .brand img { width: 40px; }
  .brand__name { font-size: .92rem; }
  .brand__sub { display: none; }
  .hero__managed { display: inline-block; }
  .header__call { display: none; }
  .burger { margin-left: auto; }
  .section { padding-block: 60px; }
  .head { margin-bottom: 34px; }
  .hero__in { padding-block: 36px 56px; gap: 40px; }
  .hero__tag { font-size: 1.15rem; }
  .hero__lead { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__media::before { transform: translate(8px, 8px); border-radius: 22px; }
  .slider { border-radius: 22px; }
  .slide figcaption { padding: 50px 16px 60px; font-size: .9rem; }
  .slider__nav { left: 12px; right: 12px; justify-content: space-between; }
  .hero__badge { display: none; } /* the call button and the bottom call bar already cover this on a phone */
  .totop { width: 42px; height: 42px; }
  .stat { padding: 26px 12px; }
  .timeline { grid-template-columns: 1fr; margin-top: 44px; }
  .tl { padding: 24px 0 26px 22px; border-top: 0; border-left: 2px solid var(--line); }
  .tl::before { left: -8px; top: 28px; }
  .trustee-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .trustee__photo { width: 92px; height: 92px; }
  .trustee__name { font-size: .98rem; }
  .facts { padding: 6px 18px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .tour { margin-top: 52px; }
  .tour__item { flex-basis: 84%; }
  .trio { grid-template-columns: 1fr; margin-top: 48px; }
  .panel { padding: 22px; }
  .fac-grid { grid-template-columns: 1fr; gap: 14px; }
  .fac { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; padding: 20px; }
  .fac__ic { grid-row: span 2; }
  .fac h3 { margin-top: 2px; }
  .dept-grid { grid-template-columns: 1fr; }
  .tabs__panel { padding: 24px 20px; }
  .tlist--two, .cols, .cols--four { grid-template-columns: 1fr; }
  .faq__item summary { font-size: 1.02rem; padding-block: 18px; }
  .faq__a { padding-right: 4px; }
  .ccard__value { font-size: 1.08rem; }
  .ccard__value--sm { font-size: .95rem; }
  .contact__map, .contact__map iframe { min-height: 320px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 48px 32px; }
  .footer { padding-bottom: 64px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: grid; grid-template-columns: 1.5fr 1fr; background: #fff; box-shadow: 0 -8px 24px -14px rgba(0, 0, 0, .4); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; font-weight: 800; font-size: .95rem; text-decoration: none; color: var(--ink); }
  .mbar__call { background: var(--red); color: #fff !important; }
  .totop { bottom: 72px; right: 14px; }
}

/* =========================================================
   Motion layer
   Cursor glow and tilt on cards, cursor ring, magnetic buttons,
   word-by-word headings, moving line of specialities, drawn icons.
   main.js adds .glow / .tilt / .cursor only for a mouse (not touch)
   and never when the visitor asked for reduced motion.
   ========================================================= */
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: var(--red) #f3ece8; }

/* Reading progress line at the very top */
.progress { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 3px; background: linear-gradient(90deg, var(--red), #ff7a70); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

/* Soft ring that follows the mouse */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(225, 6, 0, .6); transition: transform .35s var(--ease), background-color .3s, border-color .3s; }
.cursor__label { position: absolute; left: -40px; top: -8px; width: 80px; text-align: center; font-size: .6rem; line-height: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { transform: scale(1.7); background: rgba(225, 6, 0, .1); border-color: transparent; }
.cursor.is-drag .cursor__ring { transform: scale(2.1); background: var(--red); border-color: transparent; }
.cursor.is-drag .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { transform: scale(.75); }

/* Cards: a glow and a fine red edge that follow the mouse (--mx / --my come from main.js) */
.glow { position: relative; isolation: isolate; }
.glow::after, .glow::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s; }
.glow::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(225, 6, 0, .09), transparent 62%); }
.glow::before { padding: 1.5px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(225, 6, 0, .85), transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glow:hover::after, .glow:hover::before { opacity: 1; }
.section--dark .glow::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 96, 86, .2), transparent 62%); }
.section--dark .glow::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 112, .95), transparent 65%); }
.stat.glow::after, .ccard--red.glow::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 62%); }
.stat.glow::before, .ccard--red.glow::before { display: none; }

/* Cards that open something lean towards the mouse (--rx / --ry come from main.js) */
.tilt:not([data-reveal]), .tilt:not([data-reveal]):hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.tilt:hover { --ty: -6px; }
.dept::before { z-index: 3; }
.dept__more { position: relative; align-self: flex-start; }
.dept__more::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.dept:hover .dept__more::after { transform: scaleX(1); }
.dept__img img, .tour__item img { will-change: transform; }

/* Buttons: light sweep, and a soft pulse on the header call button */
.btn--red { position: relative; overflow: hidden; }
.btn--red::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .75s var(--ease); pointer-events: none; }
.btn--red:hover::after { left: 125%; }
.header__call { animation: ring 3.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, .45); } 55%, 100% { box-shadow: 0 0 0 14px rgba(225, 6, 0, 0); } }
.brand img { transition: width .3s var(--ease), transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.mbar__call .icon { animation: buzz 4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes buzz { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-16deg); } 92% { transform: rotate(14deg); } 95% { transform: rotate(-10deg); } 98% { transform: rotate(6deg); } }

/* Hero: drifting cross, soft light, floating badge, a little depth with the mouse (--px / --py) */
.hero::before { animation: drift 18s ease-in-out infinite alternate; translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -22px); transition: translate .8s var(--ease); }
@keyframes drift { from { transform: rotate(8deg); } to { transform: rotate(16deg) scale(1.08); } }
.hero::after { content: ""; position: absolute; left: -180px; bottom: -240px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .1), transparent 66%); animation: float 13s ease-in-out infinite alternate; pointer-events: none; }
@keyframes float { to { transform: translate(70px, -50px) scale(1.18); } }
.hero__media { translate: calc(var(--px, 0) * 9px) calc(var(--py, 0) * 9px); transition: translate .8s var(--ease); }
.hero__media::before { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 8px); transition: translate .8s var(--ease); }
.hero__badge { animation: bob 5.5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -9px; } }
.hero__badge-ic { animation: ring 2.6s ease-out infinite; }

/* Slider: the long dot fills up while its photo is on screen */
.slider__dots button { position: relative; overflow: hidden; }
.slider__dots button.is-active { background: rgba(255, 255, 255, .5); }
.slider__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotfill 5.5s linear both; }
.slider:hover .slider__dots button.is-active::after, .slider:focus-within .slider__dots button.is-active::after { animation: none; }
@keyframes dotfill { from { transform: scaleX(0); } }

/* Headings rise word by word (main.js wraps each word; the text itself is unchanged) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .16em; margin: -.08em -.04em -.16em; }
.w__in { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.is-in .w__in { transform: none; }
.js .is-split[data-reveal] { opacity: 1; transform: none; }
.js .eyebrow[data-reveal]::before { width: 0; }
.js .eyebrow[data-reveal].is-in::before { width: 26px; transition: width .8s var(--ease) .25s; }

/* Numbers band: slow crosses in the background */
.stats { overflow: hidden; }
.stats::before, .stats::after { content: ""; position: absolute; width: 260px; height: 260px; opacity: .1; pointer-events: none; background:
    linear-gradient(#fff, #fff) center / 34% 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 34% no-repeat; animation: spin 46s linear infinite; }
.stats::before { left: -70px; top: -110px; }
.stats::after { right: -60px; bottom: -130px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats__grid { position: relative; z-index: 1; }
.stat__num { transition: transform .5s var(--ease); }
.stat:hover .stat__num { transform: scale(1.08); }

/* Timeline: the dot pops in and a red line grows from it */
.tl::after { content: ""; position: absolute; left: 0; top: -2px; width: 72px; height: 2px; background: var(--red); transform-origin: left; }
.js .tl[data-reveal]::before { transform: scale(0); }
.js .tl[data-reveal]::after { transform: scaleX(0); }
.js .tl[data-reveal].is-in::before { transform: scale(1); transition: transform .5s var(--ease) calc(var(--d, 0ms) + 150ms); }
.js .tl[data-reveal].is-in::after { transform: scaleX(1); transition: transform .9s var(--ease) calc(var(--d, 0ms) + 300ms); }
.tl__year { transition: letter-spacing .4s var(--ease); }
.tl:hover .tl__year { letter-spacing: .03em; }

/* Trustees: the red ring opens up */
.trustee__photo { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.trustee:hover .trustee__photo { transform: scale(1.06); box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--red), var(--shadow-sm); }

/* Facilities: soft light in the dark section, icons draw themselves */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; right: -200px; top: -220px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .28), transparent 66%); animation: float 15s ease-in-out infinite alternate-reverse; pointer-events: none; }
.section--dark > .container { position: relative; }
.fac__ic, .ccard__ic { transition: transform .5s var(--ease), background-color .3s, color .3s; }
.fac:hover .fac__ic { transform: rotate(-8deg) scale(1.1); }
.ccard:hover .ccard__ic { transform: rotate(-8deg) scale(1.08); }
@keyframes draw { from { stroke-dasharray: 110; stroke-dashoffset: 110; } to { stroke-dasharray: 110; stroke-dashoffset: 0; } }
.js .fac[data-reveal].is-in .fac__ic .icon { animation: draw 1.1s var(--ease) calc(var(--d, 0ms) + 250ms) backwards; }
.fac:hover .fac__ic .icon, .ccard:hover .ccard__ic .icon, .hero__marks li:hover .icon { animation: draw .9s var(--ease); }

/* Photo strip can be dragged with the mouse */
.tour__track { cursor: grab; }
.tour__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tour__track img { -webkit-user-drag: none; user-select: none; }
.tour__item figcaption { transition: padding-bottom .4s var(--ease); }
.tour__item figure:hover figcaption { padding-bottom: 22px; }

/* Questions: a red bar slides in */
.faq__item { position: relative; }
.faq__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.faq__item:hover::before, .faq__item[open]::before { transform: scaleY(1); }
.faq__item summary { transition: color .2s, padding-left .35s var(--ease); }
.faq__item:hover summary, .faq__item[open] summary { padding-left: 18px; }
.faq__a { transition: padding-left .35s var(--ease); }
.faq__item[open] .faq__a { padding-left: 18px; }

@media (max-width: 640px) {
  .tl::after { display: none; }
  .brand--footer img { width: 56px; }
  .brand--footer .brand__name { font-size: 1.15rem; }
  .brand--footer .brand__sub { display: block; }
  .footer__motto { font-size: 1.25rem; }
  .collage { padding: 0 0 44px 22px; }
  .collage__chip { right: 6px; top: 16px; max-width: 170px; padding: 10px 14px; font-size: .76rem; }
  .collage__chip b { font-size: 1.4rem; }
  .collage::after { right: -8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide img { transform: none; }
}

@media print {
  .topbar, .header, .mbar, .totop, .slider__nav, .tour__btns, .contact__map { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .tabs__panel[hidden] { display: block !important; }
}
