/* ═══════════════════════════════════════════════════
   BODHAAYAN — Design System
   Fonts: Fraunces (serif display) + DM Sans (body)
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --navy:     #0B1F3A;
  --blue:     #1A4A8A;
  --sky:      #3A7BD5;
  --accent:   #E8A020;
  --acc-dark: #C8871A;
  --green:    #2A7A3B;
  --cream:    #F8F6F1;
  --white:    #FFFFFF;
  --g100:     #F2F4F7;
  --g200:     #E5E8EE;
  --g300:     #CBD2DC;
  --g400:     #8A96A8;
  --g500:     #6B7786;
  --g600:     #4A5568;
  --text:     #0D1B2A;
  --serif:    'Fraunces', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --sh-sm:    0 1px 8px rgba(11,31,58,.06);
  --sh-md:    0 4px 24px rgba(11,31,58,.09);
  --sh-lg:    0 12px 48px rgba(11,31,58,.13);
  --sh-xl:    0 24px 64px rgba(11,31,58,.18);
  --r-md:     12px;
  --r-lg:     20px;
  --ease:     cubic-bezier(.25,.46,.45,.94);
  --nav-h:    72px;
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* Grain texture */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .022; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ─── TYPOGRAPHY ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
p { font-weight: 300; line-height: 1.78; color: var(--g600); }
p + p { margin-top: 1rem; }
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

.label { display: inline-block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.divider { width: 40px; height: 3px; background: var(--sky); border-radius: 2px; margin: 1rem 0 1.5rem; }
.divider.center { margin-left: auto; margin-right: auto; }
.divider.accent { background: var(--accent); }
blockquote { border-left: 3px solid var(--sky); padding: .5rem 1.5rem; margin: 1.5rem 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--navy); line-height: 1.6; }

/* ─── LAYOUT ────────────────────────────────────── */
.container    { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 2.5rem; }
section { padding: 7rem 0; }
section.compact { padding: 4rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ─── NAV ───────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(26,74,138,.07); transition: box-shadow .3s var(--ease); }
.nav.scrolled { box-shadow: 0 4px 32px rgba(11,31,58,.09); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 2.5rem; max-width: 1360px; margin: 0 auto; }
.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.nav-brand-tag { font-size: .58rem; font-weight: 400; color: var(--g400); letter-spacing: .09em; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link { font-size: .74rem; font-weight: 500; color: var(--g600); padding: .38rem .62rem; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-link:hover { color: var(--navy); background: var(--g100); }
.nav-link.active { color: var(--blue); }
.nav-link.cta { background: var(--navy); color: var(--white) !important; padding: .4rem .88rem; border-radius: 7px; margin-left: .35rem; }
.nav-link.cta:hover { background: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: 6px; transition: background .2s; }
.hamburger:hover { background: var(--g100); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: var(--nav-h); inset-inline: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); padding: 1.5rem 2rem 2rem; border-bottom: 1px solid var(--g200); flex-direction: column; gap: .2rem; z-index: 999; }
.mobile-nav.open { display: flex; }
.mobile-link { font-size: .95rem; font-weight: 500; color: var(--navy); padding: .8rem 1rem; border-radius: 8px; transition: background .2s; }
.mobile-link:hover, .mobile-link.active { background: var(--g100); }

/* ─── BUTTONS ───────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 9px; font-size: .85rem; font-weight: 500; letter-spacing: .02em; transition: all .25s var(--ease); white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,74,138,.25); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--navy); font-weight: 600; }
.btn-accent:hover { background: var(--acc-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,.3); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .78rem; border-radius: 7px; }
.btn-lg { padding: 1rem 2.2rem; font-size: .95rem; border-radius: 10px; }

/* ─── CARDS ─────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-md); transition: box-shadow .3s var(--ease), transform .3s var(--ease); overflow: hidden; }
.card:hover { box-shadow: var(--sh-xl); transform: translateY(-4px); }
.card-flat { background: var(--g100); border-radius: var(--r-lg); transition: background .3s, transform .3s var(--ease), box-shadow .3s; }
.card-flat:hover { background: var(--cream); transform: translateY(-4px); box-shadow: var(--sh-md); }
.card-bordered { border: 1.5px solid var(--g200); border-radius: var(--r-lg); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.card-bordered:hover { border-color: var(--sky); box-shadow: var(--sh-md); transform: translateY(-4px); }

/* ─── PAGE HERO ─────────────────────────────────── */
.page-hero { background: var(--navy); padding: calc(var(--nav-h) + 5rem) 0 5rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(58,123,213,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(58,123,213,.06) 1px,transparent 1px); background-size: 52px 52px; }
.page-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.page-hero h1 { color: var(--white); }
.page-hero .label { color: var(--accent); }
.page-hero p { color: rgba(255,255,255,.62); font-size: 1.1rem; margin-top: 1rem; }

/* ─── HERO ──────────────────────────────────────── */
.hero { min-height: 100vh; background: var(--navy); display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-h); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(58,123,213,.07) 1px,transparent 1px), linear-gradient(90deg,rgba(58,123,213,.07) 1px,transparent 1px); background-size: 64px 64px; pointer-events: none; }
.hero-glow  { position: absolute; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle,rgba(58,123,213,.17) 0%,transparent 65%); right: -150px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hero-glow2 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle,rgba(232,160,32,.07) 0%,transparent 65%); left: -100px; bottom: 5%; pointer-events: none; }

/* ─── BADGES ────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .9rem; border-radius: 100px; font-size: .72rem; font-weight: 500; white-space: nowrap; }
.badge-blue  { background: rgba(58,123,213,.1);  color: var(--blue); }
.badge-amber { background: rgba(232,160,32,.12); color: #b07010; }
.badge-green { background: rgba(42,122,59,.1);   color: var(--green); }
.badge-navy  { background: rgba(11,31,58,.08);   color: var(--navy); }

/* ─── FORMS ─────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g500); margin-bottom: .45rem; }
.form-control { width: 100%; padding: .8rem 1.1rem; border: 1.5px solid var(--g200); border-radius: 9px; font-family: var(--sans); font-size: .9rem; color: var(--text); background: var(--white); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.form-control:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(58,123,213,.12); }
.form-control::placeholder { color: var(--g300); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A96A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.form-note { font-size: .72rem; color: var(--g400); margin-top: .35rem; }

/* ─── MEMBERS ───────────────────────────────────── */
.members-toolbar { position: sticky; top: var(--nav-h); z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 1rem 0; border-bottom: 1px solid var(--g200); }
.members-toolbar-inner { display: flex; gap: 1rem; align-items: center; max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-wrap svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; pointer-events: none; color: var(--g400); }
#memberSearch { width: 100%; padding: .62rem 1rem .62rem 2.35rem; border: 1.5px solid var(--g200); border-radius: 9px; font-family: var(--sans); font-size: .84rem; color: var(--text); outline: none; transition: border-color .2s; background: var(--white); }
#memberSearch:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(58,123,213,.1); }
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { padding: .36rem .88rem; border-radius: 100px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; border: 1.5px solid var(--g200); background: transparent; color: var(--g600); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--sky); color: var(--sky); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.member-count { font-size: .74rem; color: var(--g400); white-space: nowrap; padding: .36rem 0; }

.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 1.2rem; }
.member-card { background: var(--white); border-radius: 16px; box-shadow: 0 2px 12px rgba(11,31,58,.06); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.member-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(11,31,58,.13); }
.member-card.hidden { display: none; }
.member-avatar { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.member-initials { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--white); position: relative; z-index: 1; user-select: none; }
.av-1 { background: linear-gradient(135deg,#0B1F3A,#1A4A8A); }
.av-2 { background: linear-gradient(135deg,#1A4A8A,#3A7BD5); }
.av-3 { background: linear-gradient(135deg,#2A7A3B,#3DAF55); }
.av-4 { background: linear-gradient(135deg,#7B2D8A,#B85AC8); }
.av-5 { background: linear-gradient(135deg,#C8871A,#E8A020); }
.av-6 { background: linear-gradient(135deg,#1A6A8A,#2A9AB5); }
.av-7 { background: linear-gradient(135deg,#8A1A2A,#C82840); }
.av-8 { background: linear-gradient(135deg,#3A2A8A,#6A5AD5); }
.member-body { padding: 1.1rem; }
.member-name   { font-family: var(--serif); font-size: .96rem; font-weight: 600; color: var(--navy); margin-bottom: .18rem; line-height: 1.25; }
.member-role   { font-size: .68rem; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .35rem; }
.member-domain { font-size: .75rem; color: var(--g500); line-height: 1.5; }
.member-links  { display: flex; gap: .4rem; margin-top: .7rem; }
.member-social { width: 26px; height: 26px; border-radius: 6px; background: var(--g100); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--g500); transition: all .2s; }
.member-social:hover { background: var(--navy); color: var(--white); }
.no-results { display: none; text-align: center; padding: 5rem 2rem; color: var(--g400); grid-column: 1 / -1; }
.no-results.show { display: block; }

/* ─── GALLERY ───────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery-item { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--g200); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: var(--g400); font-size: .78rem; text-align: center; padding: 1rem; }

/* ─── TRL ───────────────────────────────────────── */
.trl-bar { display: flex; gap: 5px; margin-top: 1.5rem; }
.trl-cell { flex: 1; padding: .6rem .3rem; border-radius: 7px; text-align: center; font-size: .62rem; font-weight: 600; letter-spacing: .03em; line-height: 1.5; }
.trl-done   { background: rgba(58,123,213,.15); color: var(--blue); }
.trl-target { background: var(--accent); color: var(--navy); }
.trl-future { background: rgba(255,255,255,.06); color: rgba(255,255,255,.2); }

/* ─── FOOTER ────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--white); line-height: 1; }
.footer-brand-tag { font-size: .65rem; color: var(--accent); letter-spacing: .1em; margin-top: 3px; }
.footer-desc { font-size: .82rem; line-height: 1.78; margin-top: 1.2rem; max-width: 260px; }
.footer-col-title { font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1.2rem; }
.footer-link { display: block; font-size: .84rem; color: rgba(255,255,255,.5); padding: .3rem 0; transition: color .2s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: 1rem; }
.footer-socials { display: flex; gap: .6rem; }
.footer-social { width: 34px; height: 34px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: rgba(255,255,255,.45); transition: all .2s; }
.footer-social:hover { border-color: var(--sky); color: var(--white); background: rgba(58,123,213,.2); }

/* ─── ANIMATIONS ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.left  { transform: translateX(-26px); }
.reveal.right { transform: translateX(26px); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.75); } }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes floatUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.fu  { animation: floatUp .8s var(--ease) both; }
.fu2 { animation: floatUp .8s .15s var(--ease) both; }
.fu3 { animation: floatUp .8s .30s var(--ease) both; }
.fu4 { animation: floatUp .8s .45s var(--ease) both; }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container, .container-sm { padding: 0 1.5rem; }
  section { padding: 4.5rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .members-toolbar-inner { padding: 0 1.5rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════
   SHORTHAND ALIASES
   HTML uses compact class names; these map them to
   the full design-system rules above.
═══════════════════════════════════════════════════ */

/* ─── CONTAINERS ────────────────────────────────── */
.wrap    { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; }
.wrap-sm { max-width: 760px;  margin: 0 auto; padding: 0 2.5rem; }
.wrap-lg { max-width: 1360px; margin: 0 auto; padding: 0 2.5rem; }

/* ─── GRID ALIASES ──────────────────────────────── */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

/* ─── FLEX UTILITIES ────────────────────────────── */
.fcol { flex-direction: column; }
.ac   { align-items: center; }
.jc   { justify-content: center; }
.jb   { justify-content: space-between; }

/* ─── GAP ALIASES ───────────────────────────────── */
.gap2 { gap: 1rem; }
.gap3 { gap: 1.5rem; }
.gap4 { gap: 2rem; }

/* ─── TEXT ALIAS ────────────────────────────────── */
.cx { text-align: center; }

/* ─── SPACING ALIASES ───────────────────────────── */
.mt2 { margin-top: 1rem; }
.mt3 { margin-top: 1.5rem; }
.mt4 { margin-top: 2rem; }
.mb1 { margin-bottom: .5rem; }
.mb2 { margin-bottom: 1rem; }
.mb3 { margin-bottom: 1.5rem; }

/* ─── SECTION BACKGROUNDS ───────────────────────── */
.bg-cr { background: var(--cream); }
.bg-w  { background: var(--white); }
.bg-g  { background: var(--g100); }

/* ─── PAGE HERO ALIASES ─────────────────────────── */
.ph { background: var(--navy); padding: calc(var(--nav-h) + 5rem) 0 5rem; position: relative; overflow: hidden; }
.ph::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(58,123,213,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(58,123,213,.06) 1px,transparent 1px); background-size: 52px 52px; }
.ph-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.ph-inner h1 { color: var(--white); }
.ph-inner .label { color: var(--accent); }
.ph-inner p { color: rgba(255,255,255,.62); font-size: 1.1rem; margin-top: 1rem; }

/* ─── BUTTON ALIASES ────────────────────────────── */
.btn-p  { background: var(--navy); color: var(--white); }
.btn-p:hover  { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,74,138,.25); }
.btn-o  { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-o:hover  { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-ac { background: var(--accent); color: var(--navy); font-weight: 600; }
.btn-ac:hover { background: var(--acc-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,.3); }
.btn-gw { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-gw:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-w  { background: var(--white); color: var(--navy); }
.btn-w:hover  { background: var(--cream); transform: translateY(-2px); }

/* ─── CARD ALIAS ────────────────────────────────── */
.card-bd { border: 1.5px solid var(--g200); border-radius: var(--r-lg); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.card-bd:hover { border-color: var(--sky); box-shadow: var(--sh-md); transform: translateY(-4px); }

/* ─── BADGE ALIASES ─────────────────────────────── */
.b-blue  { background: rgba(58,123,213,.1);  color: var(--blue); }
.b-amber { background: rgba(232,160,32,.12); color: #b07010; }
.b-green { background: rgba(42,122,59,.1);   color: var(--green); }
.b-navy  { background: rgba(11,31,58,.08);   color: var(--navy); }

/* ─── DIVIDER MODIFIER ALIASES ──────────────────── */
.divider.ac { background: var(--accent); }
.divider.cx { margin-left: auto; margin-right: auto; }

/* ─── GALLERY ALIASES ───────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gal-item { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--g200); position: relative; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: var(--g400); font-size: .78rem; text-align: center; padding: 1rem; }

/* ─── NAV ALIASES (injected by layout.js) ───────── */
.nav-a { font-size: .74rem; font-weight: 500; color: var(--g600); padding: .38rem .62rem; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-a:hover { color: var(--navy); background: var(--g100); }
.nav-a.active { color: var(--blue); }
.nav-a.cta { background: var(--navy); color: var(--white) !important; padding: .4rem .88rem; border-radius: 7px; margin-left: .35rem; }
.nav-a.cta:hover { background: var(--blue); }

/* ─── HAMBURGER ALIAS ───────────────────────────── */
.ham { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: 6px; transition: background .2s; cursor: pointer; border: none; background: none; font-family: inherit; }
.ham:hover { background: var(--g100); }
.ham span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s var(--ease); }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV ALIASES ────────────────────────── */
.mob-nav { display: none; position: fixed; top: var(--nav-h); inset-inline: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); padding: 1.5rem 2rem 2rem; border-bottom: 1px solid var(--g200); flex-direction: column; gap: .2rem; z-index: 999; }
.mob-nav.open { display: flex; }
.mob-a { font-size: .95rem; font-weight: 500; color: var(--navy); padding: .8rem 1rem; border-radius: 8px; transition: background .2s; display: block; }
.mob-a:hover, .mob-a.active { background: var(--g100); }

/* ─── FOOTER ALIASES (injected by layout.js) ────── */
.footer-g { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.f-brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--white); line-height: 1; }
.f-brand-tag { font-size: .65rem; color: var(--accent); letter-spacing: .1em; margin-top: 3px; }
.f-desc { font-size: .82rem; line-height: 1.78; margin-top: 1.2rem; max-width: 260px; color: rgba(255,255,255,.5); }
.f-socials { display: flex; gap: .6rem; }
.f-social { width: 34px; height: 34px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: rgba(255,255,255,.45); transition: all .2s; text-decoration: none; }
.f-social:hover { border-color: var(--sky); color: var(--white); background: rgba(58,123,213,.2); }
.f-col-title { font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1.2rem; }
.f-link { display: block; font-size: .84rem; color: rgba(255,255,255,.5); padding: .3rem 0; transition: color .2s; }
.f-link:hover { color: var(--white); }
.f-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: 1rem; color: rgba(255,255,255,.5); }

/* ─── RESPONSIVE ADDITIONS FOR ALIASES ─────────── */
@media (max-width: 1024px) {
  .ham { display: flex; }
  .footer-g { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .g4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .wrap, .wrap-sm, .wrap-lg { padding: 0 1.5rem; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .gallery, .g5 { grid-template-columns: 1fr 1fr; }
  .footer-g { grid-template-columns: 1fr; gap: 2.5rem; }
  .f-bottom { flex-direction: column; text-align: center; }
  /* Hero two-column grid → single column on mobile */
  .hero-inner-g { grid-template-columns: 1fr !important; gap: 2rem !important; padding: 3rem 0 !important; }
  .hero-right-col { display: none; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .g5 { grid-template-columns: repeat(2,1fr); }
}
