/* dr. Fitri Ramanda Prawita — one-page portfolio
 * Layout & motion modelled on the "Solv" landing page reference, kept in the site's dark palette.
 */
:root {
  color-scheme: dark;
  --bg: #0e0e10; --surface: #17171a; --surface-2: #1f1f23; --surface-3: #27272c;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f4f2; --ink-2: #c9c9cc; --muted: #8a8a92;
  --light: #ecebe5; --light-2: #dedcd4; --light-ink: #131315; --light-muted: #5d5d63;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --wrap: 1320px; --gutter: 40px; --section: 128px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: rgba(255, 255, 255, 0.2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
section { position: relative; }
.section { padding-block: var(--section) 0; }

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h2 { font-size: clamp(2.25rem, 3vw + 1rem, 4rem); }
.lead { font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head .lead { justify-self: end; }
.sec-head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.sec-head--center .lead { justify-self: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s; }
.btn .ico { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); }
.btn-dark { background: var(--light-ink); color: var(--light); }

/* ---------- motion ---------- */
/* words of a heading rise out of a soft blur, one after another */
.js [data-split] .w { display: inline-block; opacity: 0.08; filter: blur(8px); transform: translateY(0.35em); transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d0, 0ms)); }
.js [data-split].in .w { opacity: 1; filter: none; transform: none; }
/* blocks slide up and fade in; children of [data-stagger] follow each other */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* long paragraph lights up word by word while scrolling */
[data-fill] .fw { color: rgba(244, 244, 242, 0.18); transition: color 0.4s; }
[data-fill] .fw.on { color: var(--ink); }

/* ---------- navbar (editorial: brand · hairline · dots · menu) ---------- */
:root { --wide: "Archivo", "Arial Black", sans-serif; --serif: "Bodoni Moda", "Didot", Georgia, serif; --accent: #d79a6b; }
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform 0.6s var(--ease), background-color 0.4s; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 96px; max-width: none; padding-inline: clamp(24px, 6.5vw, 96px); }
.nav.solid { background: rgba(14,14,16,0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.nav.solid .nav-inner { height: 72px; }
.nav.hide { transform: translateY(-110%); }
.brand { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; text-decoration: none; white-space: nowrap; }
.nav-line { flex: 1; height: 1px; background: rgba(244,244,242,0.45); transform-origin: left center; }
.nav-dots { display: flex; gap: 5px; }
.nav-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0 10px 18px; border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.diamond { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); transition: transform 0.5s var(--ease); }
.menu-btn:hover .diamond, .menu-open .diamond { transform: rotate(225deg); }
.intro .brand, .intro .nav-dots, .intro .menu-btn { animation: rise 1s var(--ease) 0.15s both; }
.intro .nav-line { animation: draw 1.4s var(--ease) 0.3s both; }
@keyframes draw { from { transform: scaleX(0); } }
/* full-screen menu */
.menu-panel { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; background: rgba(10,10,12,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s; }
.menu-panel[hidden] { display: flex; }
.menu-open .menu-panel { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.menu-open body { overflow: hidden; }
.menu-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: end; max-width: none; padding-inline: clamp(24px, 6.5vw, 96px); }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links a { display: flex; align-items: baseline; gap: 20px; padding: 4px 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; text-decoration: none; color: rgba(244,244,242,0.55); transition: color 0.3s, transform 0.5s var(--ease); }
.menu-links a span { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--accent); }
.menu-links a:focus-visible { outline: none; color: var(--ink); }
.menu-links a:hover, .menu-links a.active { color: var(--ink); transform: translateX(10px); }
.menu-links li { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.menu-open .menu-links li { opacity: 1; transform: none; }
.menu-open .menu-links li:nth-child(2) { transition-delay: 0.05s; } .menu-open .menu-links li:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu-links li:nth-child(4) { transition-delay: 0.15s; } .menu-open .menu-links li:nth-child(5) { transition-delay: 0.2s; }
.menu-open .menu-links li:nth-child(6) { transition-delay: 0.25s; }
.menu-side { display: grid; gap: 24px; justify-items: start; }
.menu-side p { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.menu-side p a { text-decoration: none; } .menu-side p a:hover { color: var(--ink); }

/* ---------- hero (editorial cover) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 640px; background: var(--bg); }
.hero-photo { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 64%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 18%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 18%); mask-composite: intersect; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; }
.hero-inner { height: 100%; display: flex; align-items: center; max-width: none; padding-inline: clamp(24px, 6.5vw, 96px); }
.hero-copy { max-width: min(48vw, 720px); padding-top: 48px; }
.hero-kicker { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); margin-bottom: 22px; }
.hero-title { font-family: var(--wide); font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.92; }
.hero-title .ht-1 { display: block; font-weight: 900; font-size: clamp(3.25rem, 7.4vw, 8.5rem); }
.hero-title .ht-2 { display: block; margin-top: 10px; font-weight: 300; font-size: clamp(1.6rem, 3.15vw, 3.6rem); letter-spacing: -0.02em; color: var(--ink-2); }
.hero-sub { margin-top: 26px; max-width: 42ch; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 34px; }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 28px; border: 1.5px solid rgba(244,244,242,0.75); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.btn-outline .plus { color: var(--accent); font-size: 16px; transition: transform 0.4s var(--ease), color 0.3s; }
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn-outline:hover .plus { transform: rotate(90deg); }
.hero-by { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.hero-by i { margin-right: 4px; font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hero-social { position: absolute; right: clamp(24px, 6.5vw, 96px); bottom: 22%; display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.hero-social { mix-blend-mode: difference; }
.hero-social a { display: grid; place-items: center; color: var(--ink); transition: color 0.3s, transform 0.4s var(--ease); }
.hero-social a:hover { transform: scale(1.2); }
.hero-social .ico { width: 19px; height: 19px; }
.hero-social-label { margin-top: 18px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.hero-explore { position: absolute; left: clamp(24px, 6.5vw, 96px); bottom: 48px; font-family: var(--serif); font-size: 16px; text-decoration: none; color: var(--ink-2); }
.hero-explore span { font-family: var(--font); font-size: 11px; margin-left: 6px; }
.hero-scroll { position: absolute; left: 50%; bottom: -60px; width: 150px; height: 150px; margin-left: -75px; }
.hero-scroll .arc { position: absolute; inset: 0; border: 1px solid rgba(244,244,242,0.35); border-radius: 50%; }
.hero-scroll .stem { position: absolute; left: 50%; top: -48px; width: 1px; height: 110px; background: linear-gradient(rgba(244,244,242,0), rgba(244,244,242,0.8)); overflow: hidden; }
.hero-scroll .stem::after { content: ""; position: absolute; left: -2px; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-110px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.intro .hero-photo img { animation: heroZoom 2.2s var(--ease) both; }
.intro .hero-kicker { animation: rise 1s var(--ease) 0.25s both; }
.intro .hero-sub { animation: rise 1s var(--ease) 0.9s both; }
.intro .hero-actions { animation: rise 1s var(--ease) 1.05s both; }
.intro .hero-social li { animation: rise 0.9s var(--ease) both; }
.intro .hero-social li:nth-child(1) { animation-delay: 1.2s; } .intro .hero-social li:nth-child(2) { animation-delay: 1.3s; }
.intro .hero-social li:nth-child(3) { animation-delay: 1.4s; } .intro .hero-social li:nth-child(4) { animation-delay: 1.5s; }
.intro .hero-explore, .intro .hero-scroll { animation: fade 1.2s var(--ease) 1.4s both; }
@keyframes fade { from { opacity: 0; } }
@keyframes heroZoom { from { transform: scale(1.12); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
/* typing effect on "Ramanda Prawita" */
.tw { position: relative; display: inline-block; }
.tw-ghost { visibility: hidden; white-space: pre; }
.tw-live { position: absolute; left: 0; top: 0; white-space: pre; }
.tw-caret { display: inline-block; width: 0.06em; height: 0.8em; margin-left: 0.05em; vertical-align: -0.04em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- logo strip ---------- */
.logos { padding-top: 72px; }
.logos-cap { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { flex: none; padding-inline: 36px; font-size: clamp(1.25rem, 1vw + 0.9rem, 1.75rem); font-weight: 600; letter-spacing: -0.03em; color: rgba(244,244,242,0.42); white-space: nowrap; transition: color 0.3s; }
.marquee-row span:hover { color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-statement { max-width: 30ch; font-size: clamp(1.75rem, 1.8vw + 1rem, 3rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; margin-top: 40px; }
.about-right { justify-self: end; width: 100%; max-width: 460px; }
.about-photo { margin: 0 0 24px; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 0.9s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }
.about-side { color: var(--muted); max-width: 46ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.feature { display: flex; flex-direction: column; gap: 16px; min-height: 280px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s; }
.feature:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--surface-2); }
.feature-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-3); color: var(--ink); }
.feature-ico .ico { width: 24px; height: 24px; }
.feature h3 { margin-top: auto; font-size: 24px; letter-spacing: -0.025em; }
.feature p { color: var(--muted); font-size: 16px; }

/* ---------- numbers (light card) ---------- */
.stats-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding: 56px; border-radius: var(--r-xl); background: var(--light); color: var(--light-ink); }
.stats-card .eyebrow { color: var(--light-muted); border-color: rgba(0,0,0,0.14); margin-bottom: 20px; }
.stats-card .h2 { color: var(--light-ink); }
.stats-card .lead { color: var(--light-muted); margin-top: 20px; }
.stats-card .btn { margin-top: 32px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px; border-radius: var(--r-lg); background: var(--light-2); }
.stat-num { font-size: clamp(3rem, 3vw + 1.5rem, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; color: var(--light-muted); }
.stat:first-child { background: var(--light-ink); color: var(--light); }
.stat:first-child .stat-label { color: #a1a1a6; }

/* ---------- experience ---------- */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); }
.role:nth-child(3n+2) { transform: translateY(48px); }
.js .role:nth-child(3n+2)[data-reveal] { transform: translateY(88px); }
.js .role:nth-child(3n+2)[data-reveal].in { transform: translateY(48px); }
.role img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 0.9s var(--ease); }
.role:hover img { transform: scale(1.08); }
.role::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,12,0.92) 0%, rgba(10,10,12,0.55) 38%, rgba(10,10,12,0) 70%); }
.role-when { align-self: flex-start; margin-bottom: auto; padding: 6px 12px; border-radius: 999px; background: rgba(14,14,16,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 500; }
.role h3 { font-size: clamp(1.5rem, 1vw + 1rem, 2rem); letter-spacing: -0.03em; }
.role p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.training { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; margin-top: 160px; }
.training > div:first-child { position: sticky; top: 120px; align-self: start; }
.training h3 { font-size: clamp(1.75rem, 1.4vw + 1rem, 2.5rem); }
.training .lead { margin-top: 16px; }
.train-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.train-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.7fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease), background-color 0.3s; }
.train-list li:hover { padding-left: 12px; }
.train-list .when { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.train-list b { font-weight: 500; font-size: 17px; letter-spacing: -0.015em; }
.train-list .where { font-size: 15px; color: var(--muted); text-align: right; }
.train-list li.is-extra { display: none; }
.train-list.show-all li.is-extra { display: grid; animation: rise 0.6s var(--ease) both; }
.train-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.25s; }
.train-more:hover { background: rgba(255,255,255,0.06); }
.train-more .ico { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.train-more[aria-expanded="true"] .ico { transform: rotate(45deg); }

/* ---------- gallery (expanding cards) ---------- */
.xcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; height: 560px; transition: grid-template-columns 0.6s var(--ease), grid-template-rows 0.6s var(--ease); }
.xcard { position: relative; min-width: 0; min-height: 0; overflow: hidden; cursor: pointer; border-radius: 20px; background: var(--surface); }
.xcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: grayscale(1) brightness(0.8); transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.xcard[data-active="true"] > img { transform: none; filter: none; }
.xcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,10,12,0.85), rgba(10,10,12,0.25) 50%, transparent); }
.xcard-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px; }
.xcard-tab { position: absolute; left: 50%; bottom: 24px; margin: 0; transform-origin: left bottom; transform: rotate(-90deg) translateY(50%); white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: opacity 0.3s; }
.xcard-ico { width: 26px; height: 26px; }
.xcard h3 { font-size: 26px; letter-spacing: -0.03em; }
.xcard-desc { max-width: 36ch; font-size: 14px; color: var(--ink-2); }
.js .xcard-ico, .js .xcard h3, .js .xcard-desc { opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.js .xcard[data-active="true"] .xcard-ico { opacity: 1; transform: none; transition-delay: 0.1s; }
.js .xcard[data-active="true"] h3 { opacity: 1; transform: none; transition-delay: 0.18s; }
.js .xcard[data-active="true"] .xcard-desc { opacity: 1; transform: none; transition-delay: 0.26s; }
.xcard[data-active="true"] .xcard-tab { opacity: 0; }

/* ---------- quote (full-width photo) ---------- */
.quote-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 620px; padding: 64px; border-radius: var(--r-xl); background: #000; }
.quote-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 115%; object-fit: cover; object-position: 50% 35%; will-change: transform; }
.quote-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%), linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 100%); }
.quote-mark { width: 44px; height: 44px; margin-bottom: 28px; fill: var(--ink); stroke: none; }
.quote-text { max-width: 24ch; font-size: clamp(2rem, 2.4vw + 1rem, 3.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.quote-by { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.quote-by img { position: static; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 75% 25%; transform: none; }
.quote-by b { display: block; font-weight: 600; letter-spacing: -0.015em; }
.quote-by span { font-size: 14px; color: var(--ink-2); }

/* ---------- publications (article cards) ---------- */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.pub a, .pub > div { display: block; text-decoration: none; }
.pub-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--surface); }
.pub-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pub:hover .pub-media img { transform: scale(1.05); }
.pub-meta { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.pub-meta .tag { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.pub h3 { margin-top: 14px; font-size: clamp(1.25rem, 0.6vw + 1rem, 1.625rem); line-height: 1.22; letter-spacing: -0.025em; max-width: 36ch; }

/* ---------- bookshelf ---------- */
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.book { display: flex; flex-direction: column; padding: 16px 16px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform 0.5s var(--ease), border-color 0.3s; }
.book:hover { transform: translateY(-6px); border-color: var(--line-2); }
.book-cover { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface-3) 14px 28px); color: var(--muted); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover .ico { width: 40px; height: 40px; stroke-width: 1.4; }
.book-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; }
.book-stars { display: flex; gap: 3px; margin-top: 20px; color: var(--surface-3); }
.book-stars .ico { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.book h3 { margin-top: 12px; font-size: 20px; letter-spacing: -0.02em; }
.book .author { margin-top: 4px; font-size: 14px; color: var(--muted); }
.book .review { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.book.is-placeholder h3, .book.is-placeholder .author, .book.is-placeholder .review { color: var(--muted); font-style: italic; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.faq-grid .eyebrow { margin-bottom: 20px; }
.faq-grid .lead { margin-top: 20px; }
.faq-grid .btn { margin-top: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.faq-item.open { background: var(--surface-2); border-color: var(--line-2); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 28px; border: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; text-align: left; cursor: pointer; }
.faq-q .plus { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s; }
.faq-q .plus .ico { width: 18px; height: 18px; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 26px; max-width: 60ch; color: var(--muted); }

/* ---------- contact (booking + map) ---------- */
.contact-card { padding: 56px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.contact-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; margin-bottom: 48px; }
.contact-head .eyebrow { margin-bottom: 20px; }
.contact-head .lead { justify-self: end; }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.booking-form { position: relative; }
.field { position: relative; display: grid; gap: 8px; margin: 0 0 20px; }
.field label, .chips legend { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 16px; color-scheme: dark; -webkit-appearance: none; appearance: none; transition: border-color 0.25s, background-color 0.25s; }
.field textarea { height: auto; min-height: 120px; padding: 14px 18px; resize: vertical; }
.field select { padding-right: 46px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.field select option { background: var(--surface); color: var(--ink); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255,255,255,0.28); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid] { border-color: #ff6b6b; }
.field input::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.chip:hover span { color: var(--ink); border-color: rgba(255,255,255,0.3); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.count { justify-self: end; font-size: 12px; color: var(--muted); }
.booking-form .btn { width: 100%; margin-top: 4px; }
.help { position: absolute; left: 0; right: 0; top: 100%; margin-top: 10px; min-height: 1lh; font-size: 14px; color: var(--muted); }
.booking-map { display: flex; flex-direction: column; min-height: 420px; }
.clinic-map { position: relative; flex: 1; display: flex; flex-direction: column; margin: 0; }
.clinic-map-canvas { position: relative; flex: 1; min-height: 360px; overflow: hidden; isolation: isolate; border-radius: 20px; background: var(--surface-2); }
.clinic-map.is-loading .clinic-map-canvas::after { content: "Loading map"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.clinic-map.is-failed .clinic-map-canvas { display: none; }
.clinic-pin { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.clinic-pin-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 6px rgba(244,244,242,0.25); transition: transform 0.25s var(--ease); }
.clinic-pin:hover .clinic-pin-dot { transform: scale(1.12); }
.clinic-tip .maplibregl-popup-content { padding: 6px 10px; background: var(--ink); color: var(--bg); font: 500 13px/1.3 var(--font); border-radius: 8px; pointer-events: none; }
.clinic-tip.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--ink); }
.clinic-tip.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--ink); }
.clinic-map .maplibregl-ctrl-group { background: var(--ink); border-radius: 12px; overflow: hidden; }
.clinic-map .maplibregl-ctrl-top-right { top: 8px; right: 8px; }
.clinic-map-open { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform 0.3s var(--ease); }
.clinic-map-open:hover { transform: translateY(-2px); }
.map-address { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.map-address .ico { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.footer { margin-top: var(--section); padding: 0 var(--gutter) 24px; }
.footer-card { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; padding: 64px 56px 32px; border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr); gap: 40px; }
.footer-top h2 { font-size: clamp(1.75rem, 1.5vw + 1rem, 2.75rem); max-width: 16ch; }
.footer-top .btn { margin-top: 28px; }
.footer-col p { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-col a .ico { width: 18px; height: 18px; }
.footer-word { margin: 72px 0 0; font-size: clamp(3.5rem, 11.5vw, 11rem); font-weight: 600; line-height: 0.85; letter-spacing: -0.06em; color: rgba(244,244,242,0.07); white-space: nowrap; text-align: center; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) { .quote-card { flex-direction: column; align-items: flex-start; justify-content: flex-end; } .quote-card .quote-by { position: static !important; } }
/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .features, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3n+2), .js .role:nth-child(3n+2)[data-reveal].in { transform: none; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-card, .faq-grid, .training { grid-template-columns: minmax(0, 1fr); }
  .training > div:first-child { position: static; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --section: 88px; }
  .nav-inner { height: 72px; gap: 16px; }
  .brand { font-size: 26px; }
  .nav-dots { display: none; }
  .menu-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-photo { width: 100%; height: 62%; bottom: auto; -webkit-mask-image: linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.35) 22%, #000 55%); mask-image: linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.35) 22%, #000 55%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-photo img { object-position: 72% 10%; }
  .hero-inner { height: auto; align-items: flex-end; padding-bottom: 72px; }
  .hero-copy { max-width: none; padding-top: 0; }
  .hero-title .ht-1 { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .hero-title .ht-2 { font-size: clamp(1.25rem, 5.6vw, 2rem); }
  .hero-social { right: 20px; bottom: auto; top: 112px; gap: 18px; }
  .hero-social-label, .hero-scroll { display: none; }
  .hero-explore { bottom: 24px; }
  .sec-head, .about-grid, .contact-head, .booking { grid-template-columns: minmax(0, 1fr); }
  .sec-head .lead, .about-right, .contact-head .lead { justify-self: start; }
  .features, .roles, .pubs, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .role { min-height: 380px; }
  .stats-card, .contact-card, .footer-card { padding: 28px 22px; }
  .quote-card { min-height: 520px; padding: 28px; }
  .xcards { height: 720px; }
  .xcard-tab { position: static; transform: none; }
  .xcard[data-active="true"] .xcard-tab { display: none; }
  .xcard:not([data-active="true"]) .xcard-ico, .xcard:not([data-active="true"]) h3, .xcard:not([data-active="true"]) .xcard-desc { display: none; }
  .xcard-body { padding: 16px 20px; }
  .train-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .train-list .where { text-align: left; }
  .footer-word { margin-top: 40px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .books, .field-row { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split] .w, .js [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; }
  .marquee-row { animation: none; }
}

/* Bookshelf: real covers */
.books { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 20px; }
.book { padding: 0; border: 0; background: none; }
.book:hover { transform: none; }
.book-cover { aspect-ratio: 2 / 3; border-radius: 10px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.book-cover img { object-fit: cover; }
.book:hover .book-cover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 30px 50px -20px rgba(0,0,0,0.9); }
.book h3 { margin-top: 18px; font-size: 17px; line-height: 1.25; }
.book .author { margin-top: 4px; font-size: 14px; }
@media (max-width: 520px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---------- transparent navbar: Home + theme toggle ---------- */
.nav .nav-inner { justify-content: flex-end; gap: 22px; }
.nav.solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.solid .nav-inner { height: 96px; }
.nav-home { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.nav-home::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav-home:hover::after { transform: scaleX(1); transform-origin: left; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: border-color 0.3s, transform 0.5s var(--ease); }
.theme-toggle:hover { border-color: var(--ink); transform: rotate(20deg); }
.theme-toggle .ico { width: 18px; height: 18px; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }
.intro .nav-home, .intro .theme-toggle { animation: rise 1s var(--ease) 0.15s both; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease !important; }

/* ---------- light theme: warm ivory luxury ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1ea; --surface: #ece6dc; --surface-2: #e4ddd1; --surface-3: #dad2c4;
  --line: rgba(17, 16, 14, 0.1); --line-2: rgba(17, 16, 14, 0.2);
  --ink: #111010; --ink-2: #3c3934; --muted: #77716a;
  --light: #111010; --light-2: #24221f; --light-ink: #f5f1ea; --light-muted: #b4ada3;
  --accent: #a8743f;
}
[data-theme="light"] ::selection { background: rgba(17, 16, 14, 0.14); }
[data-theme="light"] .btn-light:hover { background: #000; }
[data-theme="light"] .btn-ghost { background: rgba(17, 16, 14, 0.03); }
[data-theme="light"] .btn-ghost:hover { border-color: rgba(17, 16, 14, 0.4); }
[data-theme="light"] .btn-outline { border-color: rgba(17, 16, 14, 0.7); }
[data-theme="light"] [data-fill] .fw { color: rgba(17, 16, 14, 0.16); }
[data-theme="light"] [data-fill] .fw.on { color: var(--ink); }
[data-theme="light"] .nav-line { background: rgba(17, 16, 14, 0.4); }
[data-theme="light"] .menu-panel { background: rgba(245, 241, 234, 0.97); }
[data-theme="light"] .hero-scroll .arc { border-color: rgba(17, 16, 14, 0.3); }
[data-theme="light"] .hero-scroll .stem { background: linear-gradient(rgba(17,16,14,0), rgba(17,16,14,0.7)); }
[data-theme="light"] .marquee-row span { color: rgba(17, 16, 14, 0.38); }
[data-theme="light"] .stats-card .eyebrow { border-color: rgba(255, 255, 255, 0.18); }
[data-theme="light"] .stat:first-child { background: #f5f1ea; color: #111010; }
[data-theme="light"] .stat:first-child .stat-label { color: #77716a; }
[data-theme="light"] .train-more:hover { background: rgba(17, 16, 14, 0.05); }
[data-theme="light"] .field input:hover, [data-theme="light"] .field textarea:hover, [data-theme="light"] .field select:hover { border-color: rgba(17, 16, 14, 0.3); }
[data-theme="light"] .chip:hover span { border-color: rgba(17, 16, 14, 0.35); }
[data-theme="light"] .clinic-pin-dot { box-shadow: 0 0 0 6px rgba(17, 16, 14, 0.18); }
[data-theme="light"] .footer-word { color: rgba(17, 16, 14, 0.07); }
[data-theme="light"] .book-cover { box-shadow: 0 18px 40px -18px rgba(60, 45, 25, 0.45); }
[data-theme="light"] .book:hover .book-cover { box-shadow: 0 30px 50px -20px rgba(60, 45, 25, 0.55); }
/* cards that sit on photos keep light text */
[data-theme="light"] .role, [data-theme="light"] .xcard, [data-theme="light"] .quote-card { --ink: #f4f4f2; --ink-2: #dcdcd8; --muted: #b9b9bd; --line-2: rgba(255,255,255,0.2); color: var(--ink); }
[data-theme="light"] .role-when { color: #f4f4f2; }

[data-theme="light"] .hero-scroll .arc { border-color: rgba(17,16,14,0.3); }
/* navbar reads on both dark photo and ivory page */
.nav { mix-blend-mode: difference; --ink: #f4f4f2; --line-2: rgba(255,255,255,0.35); }
[data-theme="light"] .clinic-map .maplibregl-ctrl-group { background: #fff; box-shadow: 0 6px 18px -8px rgba(60,45,25,0.35); }

/* ---------- full-bleed layout: content stretches close to the screen edges (hero untouched) ---------- */
:root { --edge: clamp(16px, 1.8vw, 28px); }
.wrap:not(.hero-inner) { max-width: none; padding-inline: var(--edge); }
.footer { padding-inline: var(--edge); }
.footer-card { max-width: none; }
@media (max-width: 860px) { :root { --edge: 14px; } }

/* link to the full gallery page */
.gal-all { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ink); transition: border-color 0.3s, gap 0.4s var(--ease); }
.gal-all:hover { border-color: var(--ink); gap: 16px; }

/* hero photo follows the theme: black & white on dark, colour on ivory (transparent cut-out, so the background is the theme colour) */
.hero-photo { transition: background-color 0.45s; }
.hero-photo img { position: absolute; inset: 0; transition: opacity 0.6s ease; }
.hero-img-color { opacity: 0; }
[data-theme="light"] .hero-img-color { opacity: 1; }
[data-theme="light"] .hero-img-bw { opacity: 0; }

/* About cards with a full photo background, white text over a dark bottom fade (same in both themes) */
.feature.has-photo { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; border-color: transparent; background: #111; color: #f4f4f2; --ink: #f4f4f2; }
.feature.has-photo:hover { background: #111; border-color: transparent; }
.feature-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.7) 30%, rgba(8,8,10,0.15) 62%, rgba(8,8,10,0.25) 100%); }
.feature.has-photo:hover .feature-bg { transform: scale(1.05); }
.feature.has-photo .feature-ico { background: rgba(255,255,255,0.14); color: #f4f4f2; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature.has-photo h3 { color: #f4f4f2; }
.feature.has-photo p { color: rgba(244,244,242,0.78); }

/* ---------- mobile polish ---------- */
@media (max-width: 767px) { .xcards { height: auto; } }
@media (max-width: 860px) {
  /* gallery accordion: taller strips, label centred and readable over busy photos */
  .xcard:not([data-active="true"])::after { background: rgba(10,10,12,0.62); }
  .xcard:not([data-active="true"]) .xcard-body { justify-content: center; padding: 0 20px; }
  .xcard-tab { color: #f4f4f2; font-weight: 600; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
  /* bigger tap targets */
  .nav-home { padding: 12px 4px; }
  .footer-col li a { display: inline-flex; align-items: center; min-height: 40px; }
  .gal-all { padding-block: 10px; }
}
