/* =====================================================================
   MSI Vijayawada — public site
   Design tokens, palettes and components ported from the approved design.
   ===================================================================== */

:root {
  --serif: 'DM Sans', system-ui, 'Noto Sans Telugu', sans-serif;
  --sans: 'DM Sans', system-ui, 'Noto Sans Telugu', sans-serif;
  --hero: #0B2366; --hero-2: #123493;
  --gold: #F5B731; --gold-soft: #FFDB8A; --on-gold: #0B2366;
  --accent-l: #1C7A3A; --green: #2E9447; --blue: #1A44B8; --heart: #D62F3F; --sun: #F59E0B;
  --bg: #FBF8F1; --surface: #FFFFFF; --surface-2: #EEF3EC;
  --ink: #0B2366; --body: #2A3550; --muted: #6B7485;
  --line: rgba(11, 35, 102, .12);
  --accent-ink: var(--accent-l);
  --hero-ink: #F8F5EF; --hero-muted: rgba(248, 245, 239, .76); --hero-line: rgba(241, 217, 164, .24);
  --shadow: 0 1px 2px rgba(16, 24, 45, .05), 0 18px 40px -22px rgba(16, 24, 45, .3);
  --red: #FF3B3B;
  --pad: clamp(20px, 4vw, 48px);
}
[data-palette=teal] { --hero: #0F2A2E; --hero-2: #173A3F; --gold: #8CCBC0; --gold-soft: #C6E8E1; --accent-l: #2A6B65; --on-gold: #0F2A2E; }
[data-palette=rose] { --hero: #2A1622; --hero-2: #3A2030; --gold: #E2B3B6; --gold-soft: #F4D9D9; --accent-l: #93505B; --on-gold: #2A1622; }
[data-palette=earth] { --hero: #2A2118; --hero-2: #3A2D20; --gold: #D6A066; --gold-soft: #EECFA4; --accent-l: #86521F; --on-gold: #2A2118; }
[data-theme=dark] {
  --bg: color-mix(in oklab, var(--hero) 72%, #05070d);
  --surface: color-mix(in oklab, var(--hero-2) 70%, var(--hero));
  --surface-2: var(--hero-2);
  --ink: #F8F5EF; --body: #D6D9E1; --muted: #A3AABA;
  --line: rgba(241, 217, 164, .14);
  --accent-ink: var(--gold);
  --shadow: 0 20px 40px -24px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: var(--bg); color: var(--body); font-family: var(--sans); overflow-x: clip;
  transition: background .6s ease, color .6s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: #10182D; }
input, select, textarea, button { font: inherit; }
a, button { transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
a:active, button:active { transform: scale(.97); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; font: 500 14px var(--sans); }
.skip-link:focus { top: 12px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.container--wide { max-width: 1280px; }

/* ---------- Header ---------- */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.topbar { background: var(--hero); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); font: 500 13px/1 var(--sans); }
.topbar__inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__links { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; min-width: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--hero-ink); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); font-size: 15px; }
.topbar__address { color: var(--hero-muted); }
.topbar__social { display: flex; align-items: center; gap: 2px; flex: none; }
.topbar__social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; padding: 0; justify-content: center; }
.topbar__social a:hover { background: var(--gold); color: var(--on-gold); transform: translateY(-2px) rotate(-8deg); }
.topbar__social a:hover i { color: var(--on-gold); }
.topbar__social i { color: inherit; font-size: 17px; }

.site-header { background: transparent; color: var(--hero-ink); border-bottom: 1px solid transparent; transition: background .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease; }
.site-header.is-solid { background: color-mix(in oklab, var(--surface) 92%, transparent); color: var(--ink); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgba(11, 35, 102, .35); }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); height: 78px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand img { flex: none; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand__name { font: 500 15px/1.15 var(--serif); max-width: 230px; text-wrap: balance; }
.brand__name-short { display: none; }
.brand__sub { font: 500 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .72; white-space: nowrap; }
.header-spacer { flex: 1; }

.nav { display: none; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 5px; height: 44px; padding: 0 10px; white-space: nowrap; color: inherit; background: transparent; border: 0; cursor: pointer; text-decoration: none; font: 500 14px var(--sans); }
.nav__link:hover { color: var(--gold); }
.nav__link span { border-bottom: 1px solid transparent; padding: 4px 0; }
.nav__link.is-current span { border-bottom-color: currentColor; }
.nav__link i { font-size: 12px; }
.nav__drop { position: absolute; top: 100%; left: -6px; padding-top: 8px; z-index: 5; display: none; }
.nav__item:hover .nav__drop, .nav__item.is-open .nav__drop, .nav__item:focus-within .nav__drop { display: block; }
.nav__drop-box { min-width: 250px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.nav__drop-box a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 14px; border-radius: 9px; color: var(--ink); text-decoration: none; font: 500 14.5px var(--sans); }
.nav__drop-box a:hover { background: var(--surface-2); color: var(--accent-ink); }
.nav__drop-box a i { font-size: 13px; opacity: .5; }

.tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: inherit; background: transparent; border: 0; cursor: pointer; text-decoration: none; font-size: 19px; }
.icon-btn:hover { background: color-mix(in oklab, currentColor 10%, transparent); color: inherit; }
.menu-btn { height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid color-mix(in oklab, currentColor 30%, transparent); display: flex; align-items: center; gap: 8px; color: inherit; background: transparent; cursor: pointer; font: 500 13px var(--sans); margin-left: 4px; }
.menu-btn i { font-size: 18px; }

.pop { position: relative; }
.pop__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; z-index: 5; display: none; flex-direction: column; gap: 12px; }
.pop.is-open .pop__panel { display: flex; }
.pop__label { font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 13px var(--sans); }
.seg button[aria-pressed=true] { background: var(--surface-2); }
.pal { display: flex; flex-direction: column; gap: 2px; }
.pal button { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 500 14px var(--sans); text-align: left; }
.pal button:hover { background: var(--surface-2); }
.pal__dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.pal button[aria-pressed=true] .pal__dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold); }
.pal button span.grow { flex: 1; }

@media (min-width: 1120px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
@media (max-width: 719px) {
  .brand__name-full { display: none; }
  .brand__name-short { display: inline; }
  .brand__sub { display: none; }
  .topbar a.topbar__address { display: none; }
}
@media (max-width: 480px) { .topbar__email-text { display: none; } .topbar__email-short { display: inline; } }
.topbar__email-short { display: none; }

/* ---------- Mobile drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 12, 24, .55); z-index: 80; display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--hero); color: var(--hero-ink); z-index: 81; overflow-y: auto; display: none; flex-direction: column; padding: 0 0 28px; box-shadow: -24px 0 60px rgba(0, 0, 0, .35); }
body.drawer-open .scrim { display: block; }
body.drawer-open .drawer { display: flex; }
body.drawer-open, body.lb-open { overflow: hidden; }
.drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(18px, 5vw, 28px); background: var(--hero); border-bottom: 1px solid var(--hero-line); }
.drawer__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer__brand img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.drawer__brand span { font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hero-line); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; font-size: 18px; flex: none; }
.drawer__nav { display: flex; flex-direction: column; gap: 10px; padding: 18px clamp(18px, 5vw, 28px) 0; }
.drawer__card { border: 1px solid var(--hero-line); border-radius: 16px; background: rgba(255, 255, 255, .04); padding: 4px 16px; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; color: var(--hero-ink); text-decoration: none; font: 400 21px/1.2 var(--serif); }
.drawer__link:hover { color: var(--gold); }
.drawer__link i { font-size: 16px; color: var(--gold); }
.drawer__kids { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 14px; }
.drawer__kids a { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hero-line); display: inline-flex; align-items: center; color: var(--hero-muted); text-decoration: none; font: 500 13.5px var(--sans); }
.drawer__kids a:hover { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.drawer__foot { margin-top: auto; padding: 28px clamp(18px, 5vw, 28px) 0; display: flex; flex-direction: column; gap: 14px; }
.drawer__foot .btn--gold { justify-content: center; }
.drawer__row { display: flex; gap: 10px; justify-content: center; }
.drawer__row button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hero-line); cursor: pointer; }
.drawer__theme { min-height: 48px; border-radius: 999px; border: 1px solid var(--hero-line); background: transparent; color: var(--hero-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px var(--sans); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; font: 600 15px var(--sans); white-space: nowrap; flex: none; cursor: pointer; border: 0; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-soft); color: var(--on-gold); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .4); color: var(--hero-ink); font-weight: 500; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { border-color: var(--gold); color: var(--hero-ink); background: rgba(255, 255, 255, .12); }
.btn--ink { background: var(--ink); color: var(--bg); font-weight: 500; }
.btn--ink:hover { color: var(--bg); transform: translateY(-2px); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; font-weight: 500; min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--glass { border: 1px solid var(--hero-line); color: var(--hero-ink); min-height: 48px; padding: 0 22px; font-weight: 500; font-size: 14.5px; }
.btn--glass:hover { border-color: var(--gold); color: var(--hero-ink); }
.ph-arrow-right, .ph-arrow-up-right, .ph-arrow-left { display: inline-block; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
a:hover .ph-arrow-right, button:hover .ph-arrow-right { transform: translateX(4px); }
a:hover .ph-arrow-left { transform: translateX(-4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); text-decoration: none; font: 500 15px var(--sans); }
.link-arrow:hover { color: var(--ink); }

/* ---------- Section label ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex: none; }
.eyebrow--gold { color: var(--gold); }

/* ---------- Hero slider ---------- */
.hero { position: relative; min-height: clamp(620px, 94vh, 900px); display: flex; flex-direction: column; background: var(--hero); color: var(--hero-ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 1.4s ease; }
.hero__bg.is-active { opacity: 1; z-index: 2; }
.hero__bg-inner { position: absolute; inset: 0; transform: scale(1); transition: transform 8s ease-out; }
.hero__bg.is-active .hero__bg-inner { transform: scale(1.08); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, color-mix(in oklab, var(--hero) 92%, transparent) 0%, color-mix(in oklab, var(--hero) 70%, transparent) 38%, color-mix(in oklab, var(--hero) 10%, transparent) 75%), linear-gradient(0deg, color-mix(in oklab, var(--hero) 80%, transparent) 0%, transparent 35%); }
.hero__body { position: relative; z-index: 4; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(170px, 22vh, 220px) clamp(20px, 4vw, 40px) 32px; display: flex; flex-direction: column; justify-content: center; }
.hero__slides { display: grid; max-width: 680px; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 24px; opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); pointer-events: none; visibility: hidden; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; align-self: flex-start; }
.tag i { font-size: 15px; }
.tag--gold { background: var(--gold); color: var(--on-gold); }
.tag--blue { background: #1A44B8; color: #fff; }
.tag--green { background: #2E9447; color: #fff; }
.tag--red { background: #D62F3F; color: #fff; }
.slide h2 { font: 400 clamp(32px, min(5.6vw, 7.5vh), 76px)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5); }
.slide h2 .mid { color: var(--red); }
.slide h2 .hi { color: var(--gold); }
.slide p { font: 400 clamp(16px, 1.4vw, 19px)/1.65 var(--sans); color: var(--hero-muted); max-width: 540px; text-wrap: pretty; }
.slide__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__controls { position: relative; z-index: 4; margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 20px; }
.hero__bars { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero__bar { flex: 1; height: 28px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.hero__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.hero__bar::after { content: ''; position: absolute; left: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--gold); width: 0; }
.hero__bar.is-done::after { width: 100%; }
.hero__bar.is-active::after { width: 100%; transition: width var(--slide-ms, 7000ms) linear; }
.hero--paused .hero__bar.is-active::after { transition: none; }
.hero__count { font: 500 13px var(--sans); color: var(--hero-muted); letter-spacing: .08em; }
.hero__nav { display: flex; gap: 10px; }
.hero__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--hero-ink); cursor: pointer; display: grid; place-items: center; font-size: 18px; backdrop-filter: blur(6px); }
.hero__nav button:hover { border-color: var(--gold); background: rgba(255, 255, 255, .14); }
.hero__empty { position: absolute; inset: 0; background: linear-gradient(160deg, var(--hero), var(--hero-2)); }

/* ---------- Home sections ---------- */
.sheet { position: relative; z-index: 1; background: var(--bg); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; margin-top: calc(-1 * clamp(28px, 4vw, 56px)); }
.section { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) clamp(72px, 9vw, 128px); }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 80px); padding: clamp(72px, 9vw, 128px) var(--pad) clamp(56px, 7vw, 96px); max-width: 1200px; margin: 0 auto; }
.intro__left, .intro__right { display: flex; flex-direction: column; gap: 20px; }
.intro__right { gap: 18px; padding-top: 8px; }
.intro h2 { font: 400 clamp(32px, 3.8vw, 52px)/1.1 var(--serif); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.intro__lead { font: 400 18px/1.75 var(--sans); color: var(--body); text-wrap: pretty; }
.intro__sub { font: 400 16px/1.7 var(--sans); color: var(--muted); text-wrap: pretty; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 20px 4px 4px; border-top: 3px solid var(--blue); border-radius: 2px; }
.stat:nth-child(4n+2) { border-top-color: var(--green); }
.stat:nth-child(4n+3) { border-top-color: var(--sun); }
.stat:nth-child(4n+4) { border-top-color: var(--heart); }
.stat__n { font: 400 clamp(44px, 5vw, 68px)/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.stat__l { font: 500 14.5px/1.4 var(--sans); color: var(--muted); }

.band { background: var(--surface-2); border-radius: clamp(20px, 3vw, 32px); padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.band__head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.band h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.12 var(--serif); color: var(--ink); text-wrap: balance; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.card3 { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 24px; border-radius: 18px; border-top: 1px solid var(--line); transition: transform .6s cubic-bezier(.2, .7, .2, 1), background .4s; }
.card3:hover { background: var(--surface); transform: translateY(-4px); }
.card3__pill { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: color-mix(in oklab, var(--blue) 14%, var(--surface)); color: var(--blue); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.card3:hover .card3__pill { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.card3__pill--red { background: color-mix(in oklab, var(--heart) 14%, var(--surface)); color: var(--heart); }
.card3__pill--green { background: color-mix(in oklab, var(--green) 14%, var(--surface)); color: var(--green); }
.card3__pill--gold { background: color-mix(in oklab, var(--sun) 16%, var(--surface)); color: var(--sun); }
.card3 h3 { font: 400 26px/1.2 var(--serif); color: var(--ink); }
.card3 p { font: 400 16px/1.7 var(--sans); color: var(--body); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.quote blockquote { margin: 0; font: italic 400 clamp(24px, 2.6vw, 34px)/1.4 var(--serif); color: var(--ink); text-wrap: balance; }
.quote figcaption { font: 500 13px var(--sans); color: var(--accent-ink); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__text { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.section-head h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.12 var(--serif); color: var(--ink); }
.section-head p { font: 400 16px/1.7 var(--sans); color: var(--muted); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.svc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease; }
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -28px rgba(11, 35, 102, .38); }
.svc-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.svc-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.svc-card:hover .svc-card__img img { transform: scale(1.07); }
.svc-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-card__cat { font: 500 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.svc-card h3 { font: 400 25px/1.2 var(--serif); color: var(--ink); }
.svc-card h3 a { color: inherit; text-decoration: none; }
.svc-card h3 a:hover { color: var(--accent-ink); }
.svc-card p { font: 400 15px/1.65 var(--sans); color: var(--muted); flex: 1; }

.banner { position: relative; min-height: clamp(440px, 52vw, 640px); border-radius: clamp(20px, 3vw, 36px); overflow: hidden; background: var(--hero); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--hero) 88%, transparent) 0%, color-mix(in oklab, var(--hero) 50%, transparent) 45%, transparent 75%); pointer-events: none; }
.banner__text { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(28px, 5vw, 72px); max-width: 600px; color: var(--hero-ink); }
.banner h2 { font: 400 clamp(30px, 3.6vw, 50px)/1.1 var(--serif); text-wrap: balance; }
.banner p { font: 400 17px/1.7 var(--sans); color: var(--hero-muted); }
.section--banner { max-width: 1280px; padding: 0 clamp(12px, 2vw, 24px) clamp(72px, 9vw, 128px); }

.photo-grid { display: grid; gap: clamp(10px, 1.4vw, 18px); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 230px); }
.tile { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.tile:hover img { transform: scale(1.07); filter: saturate(1.08); }
.tile__open { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.tile__icon { position: absolute; z-index: 6; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in oklab, var(--hero) 72%, transparent); color: var(--hero-ink); display: grid; place-items: center; backdrop-filter: blur(6px); pointer-events: none; }
@media (max-width: 719px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.close { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) clamp(80px, 10vw, 140px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.close__line { width: 1px; height: 56px; background: linear-gradient(transparent, var(--gold)); }
.close h2 { font: 400 clamp(32px, 4vw, 56px)/1.1 var(--serif); color: var(--ink); max-width: 760px; text-wrap: balance; }
.close p { font: 400 17px/1.7 var(--sans); color: var(--muted); max-width: 560px; }
.close__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--hero); color: var(--hero-ink); overflow: hidden; padding: clamp(190px, 19vw, 230px) 0 clamp(100px, 10vw, 140px); }
.page-hero__glow { position: absolute; width: 70vmax; height: 70vmax; right: -30vmax; top: -40vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--gold) 20%, transparent), transparent); pointer-events: none; }
.page-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; gap: 22px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px var(--sans); color: var(--hero-muted); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--hero-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--hero-ink); }
.crumbs i { font-size: 11px; opacity: .6; }
.page-hero__eyebrow { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.page-hero__eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.page-hero h1 { font: 400 clamp(40px, 6vw, 84px)/1.04 var(--serif); letter-spacing: -.02em; max-width: 900px; text-wrap: balance; }
.page-hero p.sub { font: 400 clamp(16px, 1.4vw, 19px)/1.65 var(--sans); color: var(--hero-muted); max-width: 640px; text-wrap: pretty; }
.page-body { position: relative; z-index: 1; background: var(--bg); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; margin-top: calc(-1 * clamp(28px, 4vw, 56px)); padding: clamp(56px, 7vw, 104px) 0 clamp(80px, 10vw, 140px); }
.page-body__inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }

/* Rich text written in the editor */
.prose { max-width: 820px; font: 400 17.5px/1.8 var(--sans); color: var(--body); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font: 400 clamp(28px, 3.2vw, 42px)/1.15 var(--serif); color: var(--ink); margin-top: 52px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 400 24px/1.3 var(--serif); color: var(--ink); margin-top: 34px; }
.prose p { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 12px; }
.prose li { padding-left: 4px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { border-radius: 16px; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font: italic 400 22px/1.5 var(--serif); color: var(--ink); }

.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-head__title { display: flex; flex-direction: column; gap: 14px; }
.split-head h2, .block-title { font: 400 clamp(28px, 3.2vw, 42px)/1.15 var(--serif); color: var(--ink); }
@media (max-width: 899px) { .split-head { grid-template-columns: minmax(0, 1fr); } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 34px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.timeline li::before { content: ''; position: absolute; left: -34px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.timeline__when { font: italic 400 18px var(--serif); color: var(--accent-ink); }
.timeline h3 { font: 400 22px/1.3 var(--serif); color: var(--ink); }
.timeline p { font: 400 15.5px/1.65 var(--sans); color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .5s; }
.fact:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--gold) 60%, transparent); }
.fact h3 { font: 400 24px/1.25 var(--serif); color: var(--ink); }
.fact p { font: 400 15.5px/1.7 var(--sans); color: var(--body); text-wrap: pretty; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.person { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.person__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--accent-ink); font: 500 20px var(--sans); }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__role { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.person h3 { font: 400 22px/1.25 var(--serif); color: var(--ink); margin: 4px 0 8px; }
.person p { font: 400 14.5px/1.6 var(--sans); color: var(--muted); }

/* Services & gallery pages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: 500 14px var(--sans); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 64px 20px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); }

.detail-cover { position: relative; aspect-ratio: 21/9; min-height: 280px; border-radius: clamp(18px, 3vw, 32px); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 899px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.places li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 15px/1.5 var(--sans); color: var(--body); }
.places i { color: var(--accent-ink); margin-top: 3px; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.album-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.thumb { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.thumb:hover img { transform: scale(1.07); }
.album-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.album-card:hover { transform: translateY(-5px); color: inherit; }
.album-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.album-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.album-card:hover .album-card__img img { transform: scale(1.07); }
.album-card__count { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: color-mix(in oklab, var(--hero) 78%, transparent); color: var(--hero-ink); font: 500 12.5px var(--sans); backdrop-filter: blur(6px); }
.album-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.album-card__cat { font: 500 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.album-card h3 { font: 400 22px/1.25 var(--serif); color: var(--ink); }
.album-card p { font: 400 14.5px/1.6 var(--sans); color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { padding: clamp(24px, 3.5vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form h2 { font: 400 clamp(26px, 2.8vw, 34px)/1.2 var(--serif); color: var(--ink); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 14px var(--sans); color: var(--ink); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px var(--sans); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 30%, transparent); }
.field .err { display: flex; gap: 6px; align-items: center; font: 500 13.5px var(--sans); color: #B4473A; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font: 500 15px/1.5 var(--sans); }
.alert--ok { background: color-mix(in oklab, var(--green) 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in oklab, var(--green) 40%, transparent); }
.alert--bad { background: color-mix(in oklab, #B4473A 10%, var(--surface)); color: #9A3B30; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); font-size: 22px; }
.info-list strong { display: block; font: 600 14px var(--sans); color: var(--ink); margin-bottom: 2px; }
.info-list span, .info-list a { font: 400 15.5px/1.6 var(--sans); color: var(--body); }
.map { margin-top: 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--hero); color: var(--hero-ink); padding: clamp(56px, 7vw, 96px) 0 0; }
.footer__grid { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
@media (max-width: 899px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }
.footer__about { display: flex; flex-direction: column; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.footer__brand img { width: 64px; height: 64px; object-fit: contain; }
.footer__brand span { font: 500 17px/1.3 var(--serif); max-width: 280px; }
.footer__blurb { font: 400 15px/1.7 var(--sans); color: var(--hero-muted); max-width: 380px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hero-line); display: grid; place-items: center; color: var(--hero-ink); text-decoration: none; font-size: 19px; }
.footer__social a:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.footer h2 { margin: 0 0 10px; font: 500 11.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: flex; align-items: center; min-height: 34px; color: var(--hero-muted); text-decoration: none; font: 400 15px var(--sans); }
.footer li a:hover { color: var(--gold-soft); transform: translateX(4px); }
.footer__contact a, .footer__contact p { font: 400 14.5px/1.6 var(--sans); color: var(--hero-muted); text-decoration: none; display: block; }
.footer__contact a:hover { color: var(--gold-soft); }
.footer__contact p { margin-bottom: 6px; }
.footer__bottom { border-top: 1px solid var(--hero-line); }
.footer__bottom-inner { max-width: 1200px; margin: 0 auto; padding: 22px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font: 400 13.5px var(--sans); color: var(--hero-muted); }
.footer__bottom a { color: var(--hero-muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--gold-soft); }
.footer__reg { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 22px; font: 400 13px/1.6 var(--sans); color: var(--hero-muted); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: none; flex-direction: column; background: rgba(8, 12, 24, .94); color: #F8F5EF; }
body.lb-open .lb { display: flex; }
.lb__top { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 3vw, 32px); font: 500 14px var(--sans); }
.lb__close, .lb__nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; display: grid; place-items: center; font-size: 18px; flex: none; }
.lb__close:hover, .lb__nav:hover { border-color: var(--gold); background: rgba(255, 255, 255, .14); }
.lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); padding: 0 clamp(8px, 2vw, 24px); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; flex: 0 1 auto; min-width: 0; }
.lb__cap { text-align: center; padding: 14px 20px 22px; font: 400 15px var(--sans); color: rgba(248, 245, 239, .8); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 130; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; z-index: 50; opacity: 0; pointer-events: none; transform: translateY(10px); font-size: 20px; box-shadow: var(--shadow); }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .js [data-reveal] { opacity: 1; transform: none; } }
