/* CAMS Hospital. Colours come from the logo: navy, orange and green. */
:root {
  --navy: #1b265e;
  --navy-d: #111a45;
  --navy-l: #2c3a82;
  --orange: #f28a1e;
  --orange-d: #d9740d;
  --orange-l: #fff1e0;
  --green: #1f9a4a;
  --soft: #f3f5fb;
  --cream: #fffaf2;
  --white: #fff;
  --ink: #1d2340;
  --ink-soft: #3d4468;
  --muted: #5d6585;
  --line: #e2e6f1;
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 4px 14px rgba(27, 38, 94, .08);
  --shadow-md: 0 18px 44px rgba(27, 38, 94, .16);
  --gutter: clamp(12px, 1.6vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: clip; margin: 0; background: var(--white); color: var(--ink); font: 400 15.5px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; margin: 0; text-wrap: balance; color: var(--navy); }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--orange); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 80; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; animation: pulse 2s ease-out infinite; }

/* Buttons and links */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; background: var(--orange); color: #fff; border: 0; border-radius: var(--r-sm); font: 600 14.5px/1.2 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--orange-d); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242, 138, 30, .35); }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .4), transparent); transform: translateX(-120%) skewX(-18deg); }
.btn:hover::after { transform: translateX(240%) skewX(-18deg); transition: transform .8s ease; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-navy { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-navy:hover { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.link:hover { color: var(--orange-d); }
.link .arrow { transition: transform .2s; }
.link:hover .arrow { transform: translateX(3px); }

/* Top bar and header */
.topbar { background: var(--navy); color: #d6dcf5; font-size: 13px; }
.topbar-row { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.topbar-info { display: flex; gap: 24px; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-sos { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; background: var(--orange); padding: 2px 12px; border-radius: 999px; }
.topbar-sos .dot { background: #fff; }

.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-bottom: 3px solid var(--orange); transition: box-shadow .3s; }
.site-head.scrolled { box-shadow: 0 8px 26px rgba(27, 38, 94, .12); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 90px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { height: 68px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); }
.brand-name { font: 700 22px/1 var(--display); color: var(--navy); }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { position: relative; padding: 10px 15px; font-weight: 500; font-size: 14.5px; color: var(--ink); text-decoration: none; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a[aria-current] { color: var(--navy); font-weight: 600; }
.nav-book { display: none; }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-book { padding: 11px 22px; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; position: relative; }
.menu-toggle i { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, top .2s; }
.menu-toggle i:nth-of-type(1) { top: 17px; }
.menu-toggle i:nth-of-type(2) { top: 26px; }
.menu-open .menu-toggle i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }

/* Hero slider */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(520px, 78vh, 760px); color: #fff; overflow: hidden; background: var(--navy-d); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.08); }
.slide.on { opacity: 1; animation: kenburns 9s ease-out both; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(17, 26, 69, .78) 0%, rgba(17, 26, 69, .5) 42%, rgba(17, 26, 69, .08) 80%, rgba(17, 26, 69, 0) 100%); }
.hero-inner { width: 100%; padding-block: 80px 130px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; font-weight: 500; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.08; max-width: 12em; color: #fff; }
.hero h1 em { color: #ffb45c; }
.hero-lead { margin-top: 20px; max-width: 32em; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; color: #e3e7fa; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { padding: 15px 30px; }
.hero-dots { position: absolute; right: var(--gutter); bottom: 112px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .2s, width .2s; }
.hero-dots button[aria-pressed="true"] { background: var(--orange); width: 52px; }

/* Quick actions overlapping the hero */
.quick { position: relative; z-index: 5; margin-top: -76px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.q-card { display: flex; align-items: center; gap: 16px; padding: 24px 24px; text-decoration: none; border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.q-card:last-child { border-right: 0; }
.q-card .q-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange-l); color: var(--orange-d); transition: background .25s, color .25s; }
.q-card strong { display: block; font: 600 16px/1.3 var(--body); color: var(--navy); transition: color .25s; }
.q-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; transition: color .25s; }
.q-card:hover { background: var(--orange-l); }
.q-card:hover .q-ico { background: var(--orange); color: #fff; }
.q-card.urgent-q { background: var(--orange); }
.q-card.urgent-q strong { color: #fff; }
.q-card.urgent-q small { color: #fff3e3; }
.q-card.urgent-q .q-ico { background: rgba(255, 255, 255, .22); color: #fff; }
.q-card.urgent-q:hover { background: var(--orange-d); }

/* Sections */
.section { padding-block: clamp(60px, 8vw, 104px); }
.section.wrap { padding-inline: var(--gutter); }
.section-tight { padding-bottom: clamp(52px, 7vw, 96px); }
.band-soft { background: var(--soft); }
.band-navy { background: var(--cream); color: var(--ink-soft); border-block: 1px solid #f3e3cc; }
.band-navy h2 { color: var(--navy); }
.sec-head { max-width: 46rem; margin: 0 0 clamp(28px, 4vw, 46px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); text-wrap: pretty;  }
.sec-head > p:last-child:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-foot { text-align: center; margin-top: clamp(30px, 4vw, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 6px 18px 6px 12px; font: 600 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-d); background: var(--orange-l); border: 1px solid #f7d4a8; border-radius: 999px; }
.eyebrow::before { content: ''; flex: none; width: 34px; height: 30px; background: url("../img/caduceus.png") center / contain no-repeat; }

/* About split with stacked photos */
.about-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-split h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lead { margin: 16px 0 22px; color: var(--ink-soft); font-size: 1.02rem; max-width: 36em; }
.ticks { display: grid; gap: 14px; margin-bottom: 28px; }
.ticks li { position: relative; padding-left: 36px; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 6px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ticks strong { color: var(--navy); font-weight: 600; }
.photo-stack { position: relative; padding: 0 0 56px 56px; }
.photo-stack .ph-a { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.photo-stack .ph-b { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 6px solid #fff; box-shadow: var(--shadow-md); }
.photo-stack .exp { position: absolute; right: -12px; top: 28px; padding: 16px 22px; background: var(--orange); color: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md); text-align: center; }
.about-story { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.about-story .story-text { max-width: 36em; }
/* Mirrored stack: small photo bottom-right, "Now open" badge top-left */
.about-story .photo-stack { padding: 0 56px 56px 0; }
.about-story .photo-stack .ph-b { left: auto; right: 0; }
.about-story .photo-stack .exp { right: auto; left: -12px; }
.photo-stack .exp strong { display: block; font: 700 2rem/1.05 var(--display); }
.photo-stack .exp span { font-size: 12.5px; letter-spacing: .04em; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.numbers div { padding: 34px 16px; }
.numbers div + div { border-left: 1px solid #f0dcc0; }
.numbers dd { margin: 0; font: 700 clamp(2rem, 4vw, 3rem)/1.1 var(--display); color: var(--orange-d); }
.numbers dt { margin-top: 4px; color: var(--navy); font-size: 14px; }

/* Departments: numbered cards */
.dept-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: d; }
.dept { counter-increment: d; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r-md); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.dept-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.dept-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--orange-l); color: var(--orange-d); border: 2px solid var(--orange); transition: background .25s, color .25s, border-color .25s; }
.dept-ico img { width: 100%; height: 100%; object-fit: cover; }
.dept:hover .dept-ico { background: var(--orange); color: #fff; border-color: var(--green); }
.dept strong { font: 700 1.2rem/1.25 var(--display); color: var(--navy); }
.dept-sum { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.dept .more { margin-top: 10px; color: var(--orange-d); font-weight: 600; font-size: 14.5px; line-height: 1.55; display: inline-flex; gap: 8px; align-items: center; }
.dept .arrow { transition: transform .2s; }
.dept:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-top-color: var(--green); }
.dept:hover .arrow { transform: translateX(4px); }

/* Department tiles on the departments page */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--muted); transition: transform .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tile-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile strong { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 20px 6px; color: var(--navy); font: 700 1.25rem/1.25 var(--display); }
.tile > span:not(.tile-img) { margin-inline: 20px; font-size: 14.5px; }
.tile .more { margin: 12px 20px 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--orange-d); font-weight: 600; font-size: 14px; }
.tile .arrow { transition: transform .2s; }
.tile:hover .arrow { transform: translateX(4px); }
.tile strong .arrow { color: var(--orange); }

/* Doctors */
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.doc { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.doc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doc-photo { display: block; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--soft); border-bottom: 4px solid var(--orange); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.doc:hover .doc-photo img { transform: scale(1.05); }
.doc strong { padding: 16px 18px 0; font: 700 1.1rem/1.25 var(--display); color: var(--navy); }
.doc-role { padding: 2px 18px 18px; color: var(--orange-d); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.doc-initials { display: grid; place-items: center; width: 100%; height: 100%; font: 700 clamp(2.5rem, 5vw, 4rem) var(--display); color: var(--navy); }

/* Campus gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--navy); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-size: 13.5px; line-height: 1.45; background: linear-gradient(0deg, rgba(17, 26, 69, .92), rgba(17, 26, 69, 0)); }
.gallery figcaption strong { display: block; font: 700 1.1rem/1.25 var(--display); }

.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.fcards figure { margin: 0; }
.fcards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.fcards figcaption { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.fcards figcaption strong { display: block; color: var(--navy); font: 700 1.2rem/1.25 var(--display); margin-bottom: 4px; }

/* Reviews carousel */
.voices-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; }
.car-nav { display: flex; gap: 10px; }
.car-nav button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.car-nav button:first-child svg { transform: scaleX(-1); }
.car-nav button:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0; padding: 30px 28px 26px; background: var(--cream); border: 1px solid #f3e3cc; border-top: 4px solid var(--orange); border-radius: var(--r-md); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tmark { font: 700 3.4rem/.6 var(--display); color: var(--orange); height: 28px; }
.tcard blockquote { margin: 14px 0 20px; flex: 1; font: 400 1.02rem/1.65 var(--body); color: var(--ink); }
.tcard figcaption { display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid #f0dcc0; color: var(--navy); }
.tcard figcaption span { color: var(--muted); font-size: 13.5px; }

/* Call to action */
.cta-band { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; left: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(36px, 5vw, 56px); }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; }
.cta h2 em { color: var(--navy); }
.cta p { margin-top: 8px; color: #fff3e3; max-width: 30em; }
.cta .btn { background: var(--navy); padding: 16px 32px; }
.cta .btn:hover { background: var(--navy-d); }

/* Inner page banner */
.page-head { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(260px, 40vh, 400px); overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); background: var(--navy); }
.ph-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: kenburns 10s cubic-bezier(.2, .6, .2, 1) both; }
.ph-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(17, 26, 69, .78) 0%, rgba(17, 26, 69, .5) 50%, rgba(17, 26, 69, .05) 100%); }
.ph-inner { width: 100%; padding-block: 56px; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.ph-inner::before { content: ''; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--orange); margin-bottom: 18px; }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); color: #fff; }
.page-head h1.h-wide { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 18em; }
.page-head h1 em { color: #ffb45c; }
.ph-inner > p { margin-top: 14px; font-size: 1.05rem; color: #dde2f7; max-width: 34em; }
.ph-title, .ph-inner > p.ph-title { margin-top: 6px; max-width: none; font: 700 clamp(1.9rem, 4vw, 3rem)/1.1 var(--display); color: #fff; }
.back { display: inline-block; margin-bottom: 14px; color: #ffb45c; font-size: 14px; font-weight: 600; text-decoration: none; }
.back::before { content: '\2190\00a0'; }
.profile-body .back { color: var(--orange-d); }
.empty { padding-block: 48px; color: var(--muted); }
.prose p { margin-bottom: 1em; max-width: 36em; color: var(--ink-soft); }
.prose .btn { margin-top: 12px; }
.prose-lg { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; }
.not-found-links { display: flex; gap: 24px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.not-found-links .link { color: #fff; }

.detail-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.detail-img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
/* Department page: readable text with a compact booking card instead of a big photo */
.dept-detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); }
.dept-detail .prose p { max-width: 38em; font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.75; }
.dept-card { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); background: var(--soft); border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.dept-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.dept-ico-lg { width: 64px; height: 64px; }
.dept-ico-lg svg { width: 32px; height: 32px; }
.dept-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dept-facts li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.dept-facts li:last-child { border-bottom: 0; }
.dept-facts strong { color: var(--navy); margin-right: 6px; }
.dept-facts a { color: var(--orange-d); text-underline-offset: 3px; }
.dept-card .btn { margin-top: 4px; }
@media (max-width: 900px) { .dept-card { position: static; } }

.filters { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: clamp(26px, 4vw, 42px); flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; border-radius: var(--r-sm); background: var(--soft); font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: background .2s, color .2s; }
.chip:hover { background: var(--orange-l); color: var(--orange-d); }
.chip[aria-current] { background: var(--orange); color: #fff; }
.search input { width: 250px; max-width: 100%; }

/* Doctor profile */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(56px, 8vw, 104px); align-items: start; }
.profile-photo { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; border-radius: var(--r-lg); position: sticky; top: 120px; border-bottom: 6px solid var(--orange); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.profile { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.profile .prose p { max-width: 40em; font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.75; }
.profile .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 30px; border-top: 0; }
.profile .facts div { display: block; padding: 14px 18px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r-md); }
.profile .facts dt { margin-bottom: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.profile .facts dd { font-size: 1.02rem; }
@media (max-width: 640px) { .profile .facts { grid-template-columns: minmax(0, 1fr); } }
.profile h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.profile-role { margin: 8px 0 22px; font-size: 1.05rem; color: var(--orange-d); font-weight: 600; }
.facts { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.facts a { color: var(--orange-d); text-underline-offset: 3px; }

/* Facilities page */
.fac-list { display: grid; gap: clamp(36px, 6vw, 72px); }
.fac { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.fac:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.fac:nth-child(even) img { order: 2; }
.fac img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.fac h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 12px; }
.fac h2::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--orange); margin-bottom: 14px; }
.fac p { color: var(--muted); max-width: 26em; }

/* About */
.about-image img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; border-radius: var(--r-lg); }
.about-body { padding-top: clamp(36px, 6vw, 68px); padding-bottom: clamp(28px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.about-body .prose { grid-column: 2; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); padding-bottom: clamp(56px, 8vw, 104px); }
.values div { background: var(--soft); border-radius: var(--r-md); border-top: 4px solid var(--orange); padding: 26px; }
.values h2 { font-size: 1.3rem; margin-bottom: 8px; color: var(--navy); }
.values p { color: var(--muted); }

/* Forms */
.form-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.site-form { display: grid; gap: 20px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-weight: 600; font-size: 14px; color: var(--navy); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input:not([type=hidden]), select, textarea { width: 100%; padding: 12px 15px; font: 400 15px/1.4 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid #cdd3e6; border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 138, 30, .2); }
select, input[type=date] { height: 50px; }
textarea { resize: vertical; }
.err { color: #b3341a; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.site-form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: 14px; }
.notice { padding: clamp(28px, 4vw, 46px); background: var(--soft); border-left: 5px solid var(--green); border-radius: var(--r-md); }
.notice h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.notice .link { margin-top: 20px; }
.urgent { padding: 20px 22px; background: var(--orange-l); border-left: 5px solid var(--orange); border-radius: var(--r-sm); margin-bottom: 28px; }
.urgent a { font-weight: 700; white-space: nowrap; color: var(--orange-d); }
.steps { counter-reset: s; margin-bottom: 28px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--orange); color: #fff; font: 600 14px/1 var(--body); }
.contact-details .facts { margin: 0 0 22px; padding: 6px 24px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r-md); }
.contact-details .facts div { grid-template-columns: 5em minmax(0, 1fr); }
.contact-details .facts div:last-child { border-bottom: 0; }
.contact-map { display: block; width: 100%; height: clamp(260px, 32vw, 340px); border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.contact-details { position: sticky; top: 110px; }
@media (max-width: 900px) { .contact-details { position: static; } }
.map { margin: 0 auto clamp(56px, 8vw, 104px); width: calc(100% - 2 * var(--gutter)); max-width: calc(1480px - 2 * var(--gutter)); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--r-lg); }

/* Footer */
.site-foot { position: relative; isolation: isolate; color: var(--ink-soft); padding-top: clamp(40px, 5vw, 60px); padding-bottom: 18px; border-top: 5px solid var(--orange);
  /* Soft dotted grid with a warm glow in the corners */
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 0 0, rgba(242, 138, 30, .12), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(31, 154, 74, .09), transparent 40%),
    radial-gradient(rgba(27, 38, 94, .10) 1.2px, transparent 1.4px);
  background-size: auto, auto, 22px 22px; }

/* Popups */
body:has(dialog[open]) { overflow: hidden; }
.modal { position: fixed; margin: auto; border: 0; padding: 0; width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(17, 26, 69, .45); }
.modal::backdrop { background: rgba(17, 26, 69, .62); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .35s cubic-bezier(.2, .7, .2, 1) both; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font: 400 26px/1 var(--body); cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, color .2s; }
.modal-x:hover { background: var(--orange); color: #fff; }
/* Booking popup: wide two-column form that fits the screen without scrolling */
.book-modal { width: min(780px, calc(100% - 24px)); padding: 24px clamp(20px, 3vw, 32px) 22px; border-top: 6px solid var(--orange); }
.book-modal h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); padding-right: 44px; }
.modal-lead { margin: 4px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal-lead a { color: var(--orange-d); white-space: nowrap; }
.book-modal .site-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.book-modal .row-2 { display: contents; }
.book-modal .field { gap: 4px; }
.book-modal .field > span { font-size: 13px; }
.book-modal input, .book-modal select, .book-modal textarea { padding-block: 9px; font-size: 14.5px; }
.book-modal textarea { height: 42px; min-height: 0; resize: none; }
.book-modal .f-name { order: 1; } .book-modal .f-phone { order: 2; }
.book-modal .f-dept { order: 3; } .book-modal .f-doctor { order: 4; }
.book-modal .f-date { order: 5; } .book-modal .f-slot { order: 6; }
.book-modal .f-email { order: 7; } .book-modal .f-notes { order: 8; }
.book-modal .err { min-height: 0; font-size: 12.5px; line-height: 1.3; }
.book-modal .form-error { order: 9; grid-column: 1 / -1; }
.book-modal .btn { order: 10; grid-column: 1 / -1; justify-self: stretch; padding-block: 12px; }
.book-modal .form-note { display: none; }
@media (max-width: 640px) { .book-modal .site-form { grid-template-columns: minmax(0, 1fr); } }
[aria-invalid="true"] { border-color: #b3341a !important; box-shadow: 0 0 0 3px rgba(179, 52, 26, .14) !important; }
.book-modal .notice { margin-top: 8px; }
.err:empty { display: none; }
.popup { width: min(500px, calc(100% - 24px)); }
.popup-img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; background: var(--soft); }
.popup-cta { display: flex; justify-content: center; padding: 16px; background: #fff; border-top: 4px solid var(--orange); }
.popup-hero { position: relative; }
.popup-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.popup-hero .launch-tag { position: absolute; left: 18px; bottom: 18px; }
.popup-body { padding: 26px 30px 30px; text-align: center; border-top: 4px solid var(--orange); }
.popup-body h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.popup-body p { margin: 10px 0 22px; color: var(--muted); }

/* Launch highlight */
.seal { position: absolute; right: var(--gutter); top: 50%; translate: 0 -62%; width: clamp(120px, 14vw, 168px); aspect-ratio: 1; display: grid; place-items: center; z-index: 2; }
.seal::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal-ring text { font: 700 15px/1 var(--body); letter-spacing: .14em; fill: #fff; }
.seal-core { position: relative; display: grid; place-items: center; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: #fff; text-align: center; line-height: 1.05; }
.seal-core b { font: 700 clamp(1.1rem, 2vw, 1.5rem)/1 var(--display); }
.seal-core small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #ffd29b; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal-ring { animation: none; } }
@media (max-width: 900px) { .seal { display: none; } }

.launch { padding-block: clamp(36px, 5vw, 60px) 0; }
.launch-card { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 40px); background: var(--navy); color: #fff; border-radius: var(--r-lg); border-left: 8px solid var(--orange); box-shadow: var(--shadow-md); }
.launch-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.launch-tag .dot { background: #fff; }
.launch-text { flex: 1 1 320px; }
.launch-text h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.launch-text h2 em { color: #ffb45c; }
.launch-text p { margin-top: 8px; color: #d6dcf5; max-width: 40em; }
.foot-call { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; padding: 20px clamp(20px, 3vw, 32px); background: linear-gradient(100deg, var(--navy-d), var(--navy-l)); border-radius: var(--r-lg); border-left: 8px solid var(--orange); box-shadow: var(--shadow-md); color: #fff; }
.foot-call-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; animation: pulse 2s ease-out infinite; }
.foot-call-text { flex: 1 1 220px; }
.foot-call-text p { margin: 0 0 4px; color: #ffb45c; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.foot-call-text strong { font: 700 clamp(1.1rem, 2vw, 1.4rem)/1.25 var(--display); color: #fff; }
.foot-call .foot-call-btn { display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 999px; background: #fff; color: var(--navy); font: 700 clamp(1.2rem, 2.6vw, 1.7rem)/1 var(--display); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.foot-call .foot-call-btn:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.2fr .8fr; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
.foot-logo { display: inline-block; background: #fff; box-shadow: var(--shadow-sm); padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 14px; }
.foot-logo img { height: 64px; width: auto; }
.foot-grid h2 { font: 600 14px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; color: var(--navy); }
.foot-grid h2::after { content: ''; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--orange); }
.foot-grid p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.foot-grid a { text-decoration: none; display: inline-block; transition: color .2s, transform .2s; }
.foot-grid a:hover { color: var(--orange-d); transform: translateX(4px); }
.foot-links a { display: block; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #f0dcc0; color: var(--muted); font-size: 13px; }
.foot-base a { text-underline-offset: 3px; }
.foot-base a:hover { color: var(--orange-d); }
.foot-base > span:first-child { margin-right: auto; }
.mobile-bar { display: none; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wordUp { from { transform: translateY(112%); } }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 138, 30, .65); } 100% { box-shadow: 0 0 0 10px rgba(242, 138, 30, 0); } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--green)); }

.hero .pill { animation: rise .8s .1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-lead { animation: rise .9s .95s cubic-bezier(.2, .7, .2, 1) both; }
.hero-actions { animation: rise .9s 1.15s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero h1:not(.split) { opacity: 0; animation: fadeIn .01s 1.2s forwards; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.hero h1 .w > span { display: inline-block; animation: wordUp .95s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.3s + var(--i, 0) * .1s); }

.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal="left"] { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .fac[data-reveal]:nth-child(odd) { transform: translateX(-56px); }
.js .fac[data-reveal]:nth-child(even) { transform: translateX(56px); }
.js .fac[data-reveal].in { transform: none; }
.js [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(30px); }
.js [data-stagger].in > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 100ms); }
.js [data-stagger="pop"].in > * { animation-name: pop; }
.photo-stack .exp { animation: bob 5s ease-in-out infinite alternate; }

@media (max-width: 1100px) {
  .main-nav a { padding: 10px 11px; }
  .head-row { gap: 18px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-card:nth-child(2) { border-right: 0; }
  .q-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .topbar { display: none; }
  .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .head-book { display: none; }
  .menu-toggle { display: block; }
  .head-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: 78px 0 0; z-index: 35; margin: 0; display: none; flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto; background: var(--white); }
  .menu-open { overflow: hidden; }
  .menu-open .main-nav { display: flex; }
  .main-nav a { font: 600 1.4rem/1.2 var(--display); color: var(--navy); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .nav-book { display: block; color: var(--orange-d); }
  .head-row { min-height: 76px; }
  .brand img { height: 56px; }
  .hero-shade { background: linear-gradient(180deg, rgba(17, 26, 69, .7), rgba(17, 26, 69, .6)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid #f0dcc0; }
  .dept-list, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-split, .detail-split, .profile, .form-split, .fac, .fac:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .photo-stack { max-width: 560px; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .tcard { flex-basis: calc((100% - 20px) / 2); }
  .fcards { grid-template-columns: minmax(0, 1fr); }
  .fac:nth-child(even) img { order: 0; }
  .profile-photo { position: static; max-width: 340px; }
  .about-body { grid-template-columns: minmax(0, 1fr); }
  .about-body .prose { grid-column: 1; }
  .about-image img { aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .hero { min-height: 0; }
  .page-head { min-height: 230px; margin-bottom: 28px; }
  .ph-inner { padding-block: 36px; }
  .photo-stack .exp { right: 8px; top: 12px; padding: 12px 16px; }
  .hero-inner { padding-block: 56px 120px; }
  .hero-dots { bottom: 100px; }
  .quick-grid, .dept-list, .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .q-card { border-right: 0; border-top: 1px solid var(--line); }
  .q-card:first-child { border-top: 0; }
  .row-2, .values { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .gallery figure, .gallery figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .photo-stack { padding: 0 0 40px 28px; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chip { flex: none; }
  .search input { width: 100%; }
  .facts div, .contact-details .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .tcard { flex-basis: 88%; }
  .voices-head { align-items: start; }
  .cta .btn { width: 100%; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27, 38, 94, .12); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; font: 600 14.5px/1 var(--body); text-decoration: none; }
  .mobile-sos { color: var(--orange-d); background: var(--orange-l); box-shadow: inset 0 0 0 1.5px var(--orange); }
  .mobile-book { background: var(--orange); color: #fff !important; box-shadow: 0 6px 14px rgba(242, 138, 30, .35); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Footer credit with fluttering butterfly */
.credit { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.credit b { color: var(--orange-d); font-weight: 700; letter-spacing: .01em; }
.credit:hover { color: var(--navy); }
.credit:hover b { text-decoration: underline; text-underline-offset: 3px; }
.bfly { display: inline-block; width: 30px; height: 32px; animation: glide 6s ease-in-out infinite; will-change: transform; }
.bfly img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 34% 55%; animation: flap 1.6s ease-in-out infinite; will-change: transform; }
.credit:hover .bfly { animation-duration: 2.6s; }
.credit:hover .bfly img { animation-duration: .7s; }
@keyframes flap { 0%, 100% { transform: scaleX(1) rotate(0); } 18% { transform: scaleX(.42) rotate(-3deg); } 36% { transform: scaleX(1) rotate(2deg); } 54% { transform: scaleX(.5) rotate(-2deg); } 72% { transform: scaleX(1) rotate(1deg); } }
@keyframes glide { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 25% { transform: translate(-5px, -7px) rotate(3deg); } 50% { transform: translate(2px, -3px) rotate(-2deg); } 75% { transform: translate(6px, -8px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .bfly, .bfly img { animation: none !important; } }

/* No sideways overflow: clip each section and use vertical-only reveals on small screens */
main { overflow-x: clip; max-width: 100vw; }
@media (max-width: 980px) {
  .js [data-reveal="left"], .js [data-reveal="right"], .js .fac[data-reveal]:nth-child(odd), .js .fac[data-reveal]:nth-child(even) { transform: translateY(30px); }
  .js [data-reveal="left"].in, .js [data-reveal="right"].in, .js .fac[data-reveal].in { transform: none; }
  .photo-stack { max-width: 100%; }
}
