/* =====================================================================
   SRIST — public site styles
   Palette drawn from the institute logo: temple-brown gear, saffron, parchment.
   ===================================================================== */
:root {
  --ink: #1e140c;
  --brown-900: #2b1a0c;
  --brown-800: #3d2410;
  --brown-700: #4a2a10;
  --brown-600: #6b3f17;
  --brown-500: #8a5523;
  --saffron: #d9822b;
  --saffron-600: #bf6c1a;
  --gold: #e8b65c;
  --parchment: #fbf6ee;
  --parchment-2: #f4ead9;
  --line: #e7dac4;
  --muted: #6e5d4c;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 26, 12, .06), 0 10px 30px -12px rgba(43, 26, 12, .18);
  --shadow-lg: 0 30px 60px -25px rgba(43, 26, 12, .35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display-font { font-family: var(--font-display); color: var(--brown-800); letter-spacing: -.01em; line-height: 1.15; }
a { color: var(--brown-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron-600); }
img { max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--white); padding: .5rem 1rem; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--saffron-600); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--gold); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: .75rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.bg-paper { background: var(--parchment-2); }
.bg-white { background: var(--white) !important; }

/* Buttons */
.btn { font-weight: 700; border-radius: 999px; padding: .7rem 1.4rem; letter-spacing: .01em; }
.btn-lg { padding: .9rem 1.8rem; }
.btn-saffron { background: var(--saffron); color: var(--white); border: 0; box-shadow: 0 8px 20px -8px rgba(217, 130, 43, .7); }
.btn-saffron:hover, .btn-saffron:focus { background: var(--saffron-600); color: var(--white); transform: translateY(-1px); }
.btn-brown { background: var(--brown-700); color: var(--white); border: 0; }
.btn-brown:hover { background: var(--brown-900); color: var(--white); }
.btn-ghost { border: 1.5px solid var(--brown-700); color: var(--brown-700); background: transparent; }
.btn-ghost:hover { background: var(--brown-700); color: var(--white); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* Top bar */
.topbar { background: var(--brown-900); color: #e9dcc8; padding: .45rem 0; }
.topbar a { color: #e9dcc8; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar i { margin-right: .2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(251, 246, 238, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(43, 26, 12, .35); }
.site-header .navbar { padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: 58px; object-fit: contain; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotate(-12deg); }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: var(--brown-700); line-height: 1; }
.brand-text small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); line-height: 1.3; margin-top: .2rem; }
.navbar-toggler { border: 0; font-size: 2rem; color: var(--brown-700); padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }
.nav-link { font-weight: 700; font-size: .95rem; color: var(--brown-800) !important; padding: .5rem .85rem !important; border-radius: 999px; }
.nav-link:hover, .nav-link.active { background: var(--parchment-2); color: var(--saffron-600) !important; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; min-width: 280px; }
.dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-weight: 600; font-size: .92rem; color: var(--brown-800); }
.dropdown-item:hover { background: var(--parchment-2); color: var(--saffron-600); }
.code-pill { display: inline-block; min-width: 46px; text-align: center; font-size: .68rem; font-weight: 800; padding: .15rem .4rem; border-radius: 6px; background: var(--brown-700); color: var(--gold); margin-right: .35rem; }
@media (min-width: 1200px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .offcanvas-xl, .navbar-expand-xl .offcanvas { background: transparent; }
}
@media (max-width: 1199.98px) {
  .offcanvas { background: var(--parchment); }
  .nav-link { padding: .75rem 1rem !important; }
  .dropdown-menu { box-shadow: none; border: 0; background: var(--parchment-2); }
}

/* Ticker */
.ticker { display: flex; background: var(--brown-700); color: var(--white); overflow: hidden; font-size: .9rem; }
.ticker-label { flex: none; background: var(--saffron); padding: .55rem 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; display: flex; align-items: center; gap: .45rem; position: relative; z-index: 1; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; white-space: nowrap; gap: 1.5rem; animation: ticker 40s linear infinite; padding-left: 1.5rem; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker a { color: #fff3e0; text-decoration: none; font-weight: 600; }
.ticker a:hover { color: var(--gold); text-decoration: underline; }
.ticker .dot { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ HERO */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(232, 182, 92, .28), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(217, 130, 43, .16), transparent 60%),
  var(--parchment); padding: 72px 0 96px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(74, 42, 16, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; background: var(--white); border: 1px solid var(--line); padding: .4rem .9rem .4rem .45rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--brown-700); box-shadow: var(--shadow); }
.hero-badge .pulse { width: 26px; height: 26px; border-radius: 50%; background: #e8f6ec; display: grid; place-items: center; }
.hero-badge .pulse::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 0 rgba(34, 163, 90, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0); } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; margin: 1.4rem 0 1.2rem; color: var(--brown-900); }
.hero h1 em { font-style: italic; color: var(--saffron-600); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--gold); opacity: .45; border-radius: 4px; z-index: -1; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-approvals { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.hero-approvals div { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.hero-approvals strong { display: block; color: var(--brown-800); font-size: 1rem; }
.hero-approvals i { font-size: 1.6rem; color: var(--saffron); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; }
.gear-ring { position: absolute; inset: 0; animation: spin 80s linear infinite; color: var(--brown-600); opacity: .14; }
.gear-ring.small { inset: auto -6% -6% auto; width: 38%; height: 38%; animation-duration: 40s; animation-direction: reverse; opacity: .22; color: var(--saffron); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-medallion { position: absolute; inset: 14%; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg), inset 0 0 0 10px var(--parchment-2); display: grid; place-items: center; overflow: hidden; }
.hero-medallion img { width: 82%; height: 82%; object-fit: contain; }
.float-card { position: absolute; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: .9rem 1.1rem; display: flex; gap: .75rem; align-items: center; font-size: .85rem; font-weight: 600; animation: bob 6s ease-in-out infinite; }
.float-card i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--parchment-2); color: var(--saffron-600); flex: none; }
.float-card strong { display: block; font-size: 1.1rem; color: var(--brown-800); font-family: var(--font-display); }
.float-card.fc-1 { top: 8%; left: -4%; }
.float-card.fc-2 { bottom: 12%; left: -8%; animation-delay: -2s; }
.float-card.fc-3 { top: 40%; right: -6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) { .float-card { font-size: .75rem; padding: .6rem .75rem; } .float-card i { width: 32px; height: 32px; } .float-card.fc-1 { left: 0; } .float-card.fc-2 { left: 0; } .float-card.fc-3 { right: 0; } }

/* Stats */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats-card { background: var(--brown-700); color: var(--white); border-radius: var(--radius); padding: 2rem 1rem; box-shadow: var(--shadow-lg); background-image: radial-gradient(500px 200px at 100% 0, rgba(232, 182, 92, .25), transparent 60%); }
.stat { text-align: center; padding: .5rem 1rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1; }
.stat .lbl { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin-top: .4rem; font-weight: 700; }
@media (max-width: 767.98px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { margin-top: 1rem; } }

/* About */
.about-media { position: relative; }
.about-media .img-main { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); background: var(--parchment-2); }
.about-media .year-badge { position: absolute; right: -16px; bottom: -24px; background: var(--saffron); color: var(--white); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-lg); text-align: center; }
.about-media .year-badge strong { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1; }
.about-media .year-badge span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.vm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; height: 100%; }
.vm-card h3 { font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; }
.vm-card h3 i { color: var(--saffron); }
.vm-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Course cards */
.course-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; text-decoration: none; color: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; overflow: hidden; }
.course-card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--saffron), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.course-card:hover::before { transform: scaleX(1); }
.course-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--parchment-2); color: var(--brown-600); margin-bottom: 1.25rem; transition: background .3s, color .3s; }
.course-card:hover .course-icon { background: var(--brown-700); color: var(--gold); }
.course-code { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--parchment-2); line-height: 1; transition: color .3s; }
.course-card:hover .course-code { color: rgba(217, 130, 43, .18); }
.course-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.course-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.course-meta { display: flex; gap: 1rem; font-size: .8rem; font-weight: 700; color: var(--brown-600); border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: .5rem; }

/* Why / features */
.feature { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius-sm); transition: background .25s; }
.feature:hover { background: var(--white); }
.feature i { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--brown-700); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.why-panel { background: var(--brown-800); color: #f3e7d4; border-radius: var(--radius); padding: 2.5rem; position: relative; overflow: hidden; height: 100%; }
.why-panel h2 { color: var(--white); }
.why-panel .gear-bg { position: absolute; right: -80px; bottom: -80px; width: 280px; opacity: .08; color: var(--gold); animation: spin 60s linear infinite; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { padding: .45rem 0 .45rem 2rem; position: relative; }
.check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .45rem; color: var(--gold); }

/* Leadership */
.leader-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; height: 100%; display: flex; flex-direction: column; position: relative; transition: box-shadow .3s, transform .3s; }
.leader-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.leader-card .quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .7; color: var(--gold); opacity: .6; height: 2.2rem; }
.leader-card blockquote { font-family: var(--font-display); font-size: 1.15rem; color: var(--brown-800); flex: 1; margin: 0 0 1.5rem; }
.leader-person { display: flex; gap: .85rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--parchment-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--brown-600); font-size: 1.2rem; flex: none; border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--gold); }
.leader-person strong { display: block; color: var(--brown-800); }
.leader-person span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Placements */
.placed-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-align: center; height: 100%; transition: transform .3s, box-shadow .3s; }
.placed-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.placed-card .ph { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--parchment-2), var(--gold)); overflow: hidden; }
.placed-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.placed-card .body { padding: 1.1rem; }
.placed-card .company { display: inline-block; background: var(--brown-700); color: var(--gold); font-weight: 800; font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; margin-top: .5rem; }
.placed-card h3 { font-size: 1.1rem; margin: 0; }
.placed-card small { color: var(--muted); font-weight: 600; }

/* Logo marquee */
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-row { display: flex; gap: 1.25rem; width: max-content; animation: ticker 50s linear infinite; }
.logo-marquee:hover .logo-row { animation-play-state: paused; }
.logo-tile { width: 170px; height: 86px; flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; padding: .9rem 1.2rem; }
.logo-tile img { max-height: 52px; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(.95); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile span { font-weight: 800; color: var(--brown-600); font-size: .9rem; text-align: center; }

/* Testimonials */
.testi-card { background: var(--white); border-radius: var(--radius); padding: 2rem; height: 100%; border: 1px solid var(--line); display: flex; flex-direction: column; }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .75rem; }
.testi-card h3 { font-size: 1.15rem; }
.testi-card p { color: var(--muted); flex: 1; font-size: .95rem; }

/* Notices block */
.notice-board { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.notice-board .nb-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; background: var(--brown-700); color: var(--white); }
.notice-board .nb-head h3 { color: var(--white); font-size: 1.15rem; margin: 0; }
.notice-board .nb-head a { color: var(--gold); font-weight: 700; font-size: .85rem; text-decoration: none; }
.notice-item { display: flex; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: var(--parchment); color: var(--ink); }
.date-chip { flex: none; width: 54px; text-align: center; background: var(--parchment-2); border-radius: 10px; padding: .35rem 0; line-height: 1.1; }
.date-chip b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--brown-700); }
.date-chip span { font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.notice-item h4 { font-size: .97rem; font-weight: 700; margin: 0 0 .15rem; font-family: var(--font-body); color: var(--brown-800); }
.notice-item small { color: var(--muted); }
.badge-new { background: #d33c2c; color: #fff; font-size: .62rem; font-weight: 800; padding: .15rem .45rem; border-radius: 4px; letter-spacing: .06em; vertical-align: middle; margin-left: .25rem; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .55; } }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-label { font-weight: 700; font-size: .85rem; color: var(--brown-800); }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .75rem 1rem; background-color: var(--parchment); }
.form-control:focus, .form-select:focus { border-color: var(--saffron); box-shadow: 0 0 0 .2rem rgba(217, 130, 43, .2); background: var(--white); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.admission-band { background: var(--brown-800); color: #f3e7d4; position: relative; overflow: hidden; }
.admission-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 0% 0%, rgba(232, 182, 92, .2), transparent 60%); }
.admission-band h2 { color: var(--white); }
.admission-band .container { position: relative; }

/* Page hero (inner pages) */
.page-hero { background: var(--brown-800); color: #f3e7d4; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 90% 0%, rgba(232, 182, 92, .25), transparent 60%); }
.page-hero .gear-bg { position: absolute; right: -60px; top: -60px; width: 300px; opacity: .07; color: var(--gold); animation: spin 70s linear infinite; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.page-hero p { max-width: 640px; opacity: .85; margin: .75rem 0 0; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: .75rem; font-size: .85rem; font-weight: 600; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb .active { color: rgba(255, 255, 255, .7); }

/* Content blocks */
.prose { font-size: 1.04rem; }
.prose p { margin-bottom: 1.1rem; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-card + .side-card { margin-top: 1.25rem; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list i { color: var(--saffron); font-size: 1.1rem; }
.fact-list strong { display: block; color: var(--brown-800); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chip-list li { background: var(--parchment-2); border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--brown-800); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; list-style: none; padding: 0; }
.sub-grid li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--saffron); border-radius: 10px; padding: .8rem 1rem; font-weight: 600; font-size: .93rem; }

/* Gallery */
.gallery-filter .btn { padding: .45rem 1.1rem; font-size: .88rem; }
.gallery-filter .btn.active { background: var(--brown-700); color: var(--white); }
.g-item { display: block; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--parchment-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .75rem; background: linear-gradient(transparent, rgba(30, 20, 12, .8)); color: var(--white); font-weight: 700; font-size: .9rem; opacity: 0; transition: opacity .3s; }
.g-item:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 6, .92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: 12px; }
.lightbox button { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: var(--white); font-size: 2.2rem; }
.lightbox p { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: #eee; margin: 0; }

/* Contact */
.contact-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; display: flex; gap: 1rem; }
.contact-tile i { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--brown-700); color: var(--gold); display: grid; place-items: center; font-size: 1.25rem; }
.contact-tile h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-tile p, .contact-tile a { font-size: .93rem; color: var(--muted); margin: 0; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); filter: sepia(.25) saturate(.9); }

/* Footer */
.site-footer { background: var(--brown-900); color: #d9c9b2; }
.footer-cta { background: linear-gradient(120deg, var(--brown-700), var(--brown-600)); color: var(--white); padding: 2.5rem 0; }
.footer-cta h2 { color: var(--white); }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--parchment); display: grid; place-items: center; flex: none; }
.footer-logo img { width: 60px; height: 60px; object-fit: contain; }
.footer-h { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: #d9c9b2; text-decoration: none; font-size: .93rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.footer-contact i { color: var(--gold); margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.1rem 0; opacity: .75; }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .4); z-index: 1040; transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 991.98px) { .section { padding: 72px 0; } .about-media .year-badge { right: 12px; } }

/* Forms inside narrow sidebars stack fully */
.side-card .row > [class*="col-md-6"] { flex: 0 0 100%; max-width: 100%; }
.side-card .btn-lg { width: 100%; }
