:root {
  --in: #37338a;
  --in2: #5b56d6;
  --gr: #2fb361;
  --gd: #1f7f43;
  --bg: #ffffff;
  --tx: #14142b;
  --mu: #5c5c78;
  --sf: #f5f6fc;
  --ln: #e6e6f2;
  --sh: 0 10px 30px -12px rgba(30, 27, 90, 0.18);
  --sh-lg: 0 20px 40px -15px rgba(30, 27, 90, 0.28);
  --r: 20px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"],
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --in: #9d98ff;
    --in2: #7d77ff;
    --gr: #3ed478;
    --gd: #4fd082;
    --bg: #0d0d1f;
    --tx: #ececf8;
    --mu: #a5a5c4;
    --sf: #15152e;
    --ln: #262648;
    --sh: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
    --sh-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.85);
  }
}

:root[data-theme="dark"] {
  --in: #9d98ff;
  --in2: #7d77ff;
  --gr: #3ed478;
  --gd: #4fd082;
  --bg: #0d0d1f;
  --tx: #ececf8;
  --mu: #a5a5c4;
  --sf: #15152e;
  --ln: #262648;
  --sh: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
  --sh-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.85);
}

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 17px/1.7 Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', Inter, Helvetica, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.55em;
  font-weight: 800;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--in); }

.w {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
}

section { padding: 90px 0; }
.alt { background: var(--sf); }

/* Scroll Progress Bar */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--in2), var(--gr));
  transition: width 0.1s ease;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--ln);
  padding-top: env(safe-area-inset-top, 0px);
}

header .w { max-width: 1280px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 800;
  color: var(--tx);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo:before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 5px 5px 50% 50%;
  background: linear-gradient(135deg, var(--in), var(--gr));
}

.logo b { color: var(--gd); }
.logo .lg { height: 38px; width: auto; transition: filter 0.3s ease; }
.logo:has(.lg):before { display: none; }
.logo:has(.lg) .lt { display: none; }

/* Dark mode logo inverting to pure white/light */
:root[data-theme="dark"] .logo .lg {
  filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .lg {
    filter: brightness(0) invert(1);
  }
}

:root[data-theme="dark"] .logo {
  color: #ffffff;
}

:root[data-theme="dark"] .logo b {
  color: var(--gr);
}

.links {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.links a {
  padding: 8px 13px;
  text-decoration: none;
  color: var(--mu);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.2s;
}

.links a:hover {
  color: var(--tx);
  background: var(--sf);
}

.links a.on {
  color: var(--in);
  background: var(--sf);
  font-weight: 700;
}

.links a.btn {
  margin-left: 8px;
  padding: 10px 20px;
  color: #fff !important;
  background: var(--gd);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle Button */
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: var(--sf);
  color: var(--tx);
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s, background 0.2s;
}

#theme-toggle:hover {
  transform: scale(1.06);
  background: var(--ln);
}

#theme-toggle svg {
  width: 20px;
  height: 20px;
}

.sun-icon { display: block; }
.moon-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: none; }
:root[data-theme="dark"] .moon-icon { display: block; }

/* Animated Mobile Hamburger Button */
#mb {
  display: none;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.mb-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tx);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

#mb[aria-expanded="true"] .mb-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#mb[aria-expanded="true"] .mb-line:nth-child(2) {
  opacity: 0;
}

#mb[aria-expanded="true"] .mb-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1040px) {
  #mb { display: flex; }
  .links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--ln);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
  }
  .links.open { display: flex; }
  .links a { padding: 10px 16px; }
  .links a.btn { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 900px) {
  section { padding: 60px 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--in);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--in);
  cursor: pointer;
  font-size: 0.98rem;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(55, 51, 138, 0.45);
}

.btn.g {
  background: var(--gd);
  border-color: var(--gd);
}

.btn.o {
  background: transparent;
  color: var(--in) !important;
  box-shadow: none;
}

.btn.o:hover {
  background: var(--sf);
}

/* Hero Section & Enhanced Prominent Hero Image */
.hero {
  background: radial-gradient(900px 500px at 85% -10%, rgba(47, 179, 97, 0.35), transparent 60%),
              radial-gradient(700px 500px at 0% 110%, rgba(91, 86, 214, 0.55), transparent 60%),
              linear-gradient(160deg, #18154e, #312d7d 70%);
  color: #fff;
  padding: 84px 0 0;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}

.hero .w { position: relative; max-width: 1240px; }
.hero h1 { max-width: 900px; color: #fff; margin-bottom: 0.4em; }
.hero p { max-width: 680px; font-size: 1.22rem; opacity: 0.92; margin-bottom: 1.8em; }
.hero .btn { margin: 6px 10px 6px 0; }
.hero .btn.o { color: #fff !important; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn.o:hover { background: rgba(255, 255, 255, 0.15); }
.hero .btn.g { background: var(--gr); border-color: var(--gr); color: #0c2a17 !important; }

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.hg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hg .ht h1, .hg .ht p { margin-left: auto; margin-right: auto; }

/* Full-Width Edge-to-Edge Hero Image */
.hm {
  margin-top: 50px;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.hm img {
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 640px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: block;
}

.hero-float-badge {
  position: absolute;
  z-index: 10;
  background: rgba(18, 16, 56, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: badge-bob 4s ease-in-out infinite alternate;
  line-height: 1.5;
}

.badge-1 { top: 24px; left: 4%; animation-delay: 0s; border-color: rgba(47, 179, 97, 0.6); color: #9be7b9; }
.badge-2 { bottom: 28px; left: 4%; animation-delay: 1.5s; border-color: rgba(157, 152, 255, 0.6); }
.badge-3 { top: 32%; right: 4%; animation-delay: 0.8s; border-color: rgba(47, 179, 97, 0.6); color: #9be7b9; }

@keyframes badge-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .hero-float-badge { display: none; }
  .hm { margin-top: 36px; }
  .hm img { min-height: 240px; max-height: 380px; }
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--in2);
}

.card h3 {
  position: relative;
  padding-top: 14px;
}

.card h3:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gr), var(--in2));
}

.eyebrow {
  display: inline-block;
  color: var(--gd);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.8em;
}

/* BSD Model Visualizer & 3-Pillar Interactive Cards */
.bsd {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(260px, 340px) 1fr;
  align-items: center;
  margin: 36px 0;
}

@media (max-width: 800px) {
  .bsd { grid-template-columns: 1fr; }
}

.bsd svg {
  width: 100%;
  max-width: 340px;
  margin: auto;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(55, 51, 138, 0.2));
}

.bsd svg .bsd-node {
  cursor: pointer;
  outline: none;
}

.bsd svg circle {
  transition: r 0.3s ease, filter 0.3s ease;
}

.panel {
  border: 1px solid var(--ln);
  background: var(--bg);
  padding: 30px;
  border-radius: var(--r);
  min-height: 220px;
  box-shadow: var(--sh);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 9px 20px;
  border: 1px solid var(--ln);
  border-radius: 999px;
  background: var(--bg);
  color: var(--mu);
  font: 700 0.92rem Inter, sans-serif;
  cursor: pointer;
  transition: 0.2s;
}

.tabs button[aria-selected="true"] {
  background: var(--in);
  border-color: var(--in);
  color: #fff;
}

.bsd-cards {
  margin-top: 28px;
}

.bsd-card {
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  background: var(--sf);
}

.bsd-card.active {
  border-color: var(--in);
  background: var(--bg);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

.bsd-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 4px 4px 4px 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.note {
  font-size: 0.88rem;
  color: var(--mu);
}

/* Forms */
label {
  display: block;
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.92rem;
}

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  margin-top: 6px;
  border: 1px solid var(--ln);
  border-radius: 14px;
  font: inherit;
  background: var(--bg);
  color: var(--tx);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--in2);
  box-shadow: 0 0 0 4px rgba(91, 86, 214, 0.18);
}

form {
  background: var(--sf);
  padding: 32px;
  border-radius: var(--r);
  border: 1px solid var(--ln);
}

.err {
  color: #e53e3e;
  font-size: 0.85rem;
  min-height: 1.1em;
  margin-top: 4px;
}

.ok {
  background: #e6f7ec;
  color: #14532d;
  padding: 16px;
  border-radius: 14px;
  margin-top: 14px;
  border: 1px solid #bbf7d0;
}

:root[data-theme="dark"] .ok {
  background: #0f351e;
  color: #86efac;
  border-color: #166534;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--bg);
  border-left: 4px solid var(--gd);
}

.test-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.test-quote {
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--tx);
}

/* Why-us & Values Icon Cards */
.why-card {
  padding: 24px;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sf);
  border: 1px solid var(--ln);
  color: var(--in);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-icon svg { width: 24px; height: 24px; }

/* Vision & Mission Cards */
.vm-card {
  position: relative;
}

.vm-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sf);
  border: 1px solid var(--ln);
  color: var(--gd);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.vm-icon svg { width: 26px; height: 26px; }

/* Founder Card */
.founder-card {
  border-top: 4px solid var(--in);
}

.founder-quote {
  margin: 14px 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--gr);
  background: var(--sf);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--tx);
  font-weight: 500;
}

/* Events Cards & Date Badge */
.ev-card {
  padding: 24px 28px;
  border-left: 4px solid var(--in);
}

.ev-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ev-date-badge {
  flex: none;
  width: 72px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--sh);
}

.ev-month {
  display: block;
  background: var(--in);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 0;
  letter-spacing: 0.08em;
}

.ev-day {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--tx);
  padding: 4px 0 0;
  line-height: 1;
}

.ev-time {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mu);
  padding: 2px 0 6px;
}

.ev-details {
  flex: 1;
}

.ev-details h3 {
  margin: 0 0 6px;
  padding-top: 0;
}

.ev-details h3:before { display: none; }

/* Skeleton Loader */
.skeleton-card {
  background: var(--sf);
  border: 1px solid var(--ln);
}

.skeleton-line {
  background: linear-gradient(90deg, var(--ln) 25%, var(--sf) 50%, var(--ln) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 16, 56, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Floating Back-to-Top Button */
#back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 89;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sf);
  border: 1px solid var(--ln);
  color: var(--tx);
  display: grid;
  place-items: center;
  box-shadow: var(--sh);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#back-to-top:hover {
  background: var(--in);
  color: #fff;
  border-color: var(--in);
  transform: translateY(-3px) scale(1.05);
}

#back-to-top svg {
  width: 22px;
  height: 22px;
}

/* Floating WhatsApp Quick Connect Button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: wa-pulse 3s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--bg);
  color: var(--tx);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--sh);
  border: 1px solid var(--ln);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(8px);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Stats Section */
.stats {
  background: radial-gradient(700px 400px at 90% 0, rgba(47, 179, 97, 0.3), transparent 60%),
              linear-gradient(160deg, #18154e, #312d7d);
  color: #fff;
}

.stats h2 { color: #fff; margin-bottom: 1.2em; }
.stats .eyebrow { color: #9be7b9; }

.st {
  border-left: 3px solid var(--gr);
  padding: 4px 0 4px 20px;
}

.st-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #9be7b9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.st-icon svg { width: 22px; height: 22px; }

.st b {
  display: block;
  font: 800 clamp(2.4rem, 4.5vw, 3.4rem)/1 'Plus Jakarta Sans', Inter, sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
}

.st-label {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Gallery & Lightbox */
.gal {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 230px;
}

.ph {
  margin: 0;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(160deg, var(--sf), var(--ln));
  border: 1px solid var(--ln);
}

.ph:nth-child(5n+1) { grid-row: span 2; }
.ph:nth-child(7n+3) { grid-column: span 2; }

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ph:hover img { transform: scale(1.05); }

.ph figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.4;
  background: linear-gradient(transparent, rgba(10, 10, 40, 0.9));
}

.ph .eyebrow { display: block; color: #9be7b9; margin: 0 0 4px; font-size: 0.68rem; }

.ph.no { cursor: default; display: flex; align-items: flex-end; }
.ph.no img { display: none; }
.ph.no figcaption { position: static; color: var(--tx); background: none; padding: 18px; }

@media (max-width: 640px) {
  .ph { grid-column: auto !important; grid-row: auto !important; }
  .gal { grid-auto-rows: 240px; }
}

/* Lightbox Modal */
#lb {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 30, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

#lb.on { display: flex; }

.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 86vw;
  max-height: 86vh;
}

.lb-content img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lb-caption {
  color: #fff;
  margin-top: 14px;
  text-align: center;
}

.lb-counter {
  font-size: 0.82rem;
  color: #a5a5c4;
  display: block;
  margin-top: 4px;
}

#lx {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lb-nav:hover {
  background: var(--gr);
  color: #0c2a17;
  transform: translateY(-50%) scale(1.1);
}

#lprev { left: 24px; }
#lnext { right: 24px; }

@media (max-width: 600px) {
  .lb-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  #lprev { left: 8px; }
  #lnext { right: 8px; }
}

/* Client Logo Marquee */
.mq {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mt {
  display: flex;
  align-items: center;
  width: max-content;
  animation: mq 45s linear infinite;
}

.mq:hover .mt { animation-play-state: paused; }

.mt img {
  height: 68px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  flex: none;
  margin-right: 28px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 14px;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s;
}

.mt img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes mq {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Team / Founder Card */
.fd {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}

.fp {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--sh);
  flex: none;
}

.fd > div {
  flex: 1;
  min-width: 280px;
  max-width: 740px;
}

.ph0 {
  width: 260px;
  height: 320px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--in), var(--in2));
  color: #fff;
  font: 800 4rem 'Plus Jakarta Sans', Inter, sans-serif;
  flex: none;
}

.tl .fd { margin-top: 48px; }

/* Sticky Section Subnav (Our Work & Legal) */
.lgn {
  position: sticky;
  top: 73px;
  z-index: 50;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 24px;
  margin-top: 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ln);
  justify-content: center;
  scrollbar-width: none;
}

.lgn a {
  white-space: nowrap;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--ln);
  background: var(--bg);
  color: var(--mu);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.2s;
}

.lgn a.on {
  background: var(--in);
  border-color: var(--in);
  color: #fff;
}

@media (max-width: 640px) {
  .lgn { justify-content: flex-start; padding: 10px 16px; }
  .lgn a { padding: 8px 14px; font-size: 0.85rem; }
}

.lgs {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--ln);
  scroll-margin-top: 70px;
}

.lgs:last-child { border-bottom: 0; }
.lgs h3.sub { font-size: 1.1rem; margin: 1.8em 0 0.4em; }
.bt { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: none; }

/* Footer - Modern 4-Column Layout & Enclosed Newsletter Card */
footer {
  background: linear-gradient(165deg, #0e0d26 0%, #16133b 60%, #1c184a 100%);
  color: #e5e4fa;
  padding: 70px 0 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: #9be7b9;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}

footer strong {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 44px;
  margin-bottom: 48px;
}

/* Footer logo without text */
.footer-logo-only { gap: 0; }
.footer-logo-only::before { display: none; }

.footer-col-brand .flg {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.flg.inv {
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: #9be7b9;
  font-size: 1rem;
  margin: 10px 0 8px;
  line-height: 1.4;
}

.footer-desc {
  color: #b5b3db;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gr);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #b5b3db;
  font-size: 0.92rem;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #b5b3db;
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact-item a {
  color: #b5b3db;
}

.footer-contact-item a:hover {
  color: #9be7b9;
}

.fc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gr);
}

.footer-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(8px);
}

.fb-badge-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9be7b9;
  font-weight: 700;
}

.fb-badge-yr {
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
}

.fb-badge-loc {
  font-size: 0.8rem;
  color: #b5b3db;
}

/* Newsletter Card */
.newsletter-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
  backdrop-filter: blur(10px);
}

.newsletter-info h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 6px;
}

.newsletter-info p {
  color: #b5b3db;
  font-size: 0.9rem;
  margin: 0;
  max-width: 480px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 170px;
}

.newsletter-form input::placeholder {
  color: #8f8daf;
}

.newsletter-form input:focus {
  border-color: var(--gr);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  background: var(--gr);
  color: #0c2a17;
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(47, 179, 97, 0.3);
}

.newsletter-btn:hover {
  background: #39d97a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 179, 97, 0.45);
}

.newsletter-btn svg {
  width: 16px;
  height: 16px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #9d9bc2;
}

.fb-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.fb-motto {
  font-style: italic;
  color: #9be7b9;
  font-weight: 600;
  font-size: 0.92rem;
}

.fb-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fb-legal a {
  color: #9d9bc2;
  font-size: 0.82rem;
}

.fb-legal a:hover {
  color: #ffffff;
}

.fb-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fb-designer {
  color: #9d9bc2;
  font-size: 0.82rem;
}

.fb-designer strong {
  color: #ffffff;
  font-weight: 700;
}

.staff-link {
  color: rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.staff-link:hover {
  color: #9be7b9;
}

.staff-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.soc {
  display: flex;
  gap: 10px;
}

.soc a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.soc a:hover {
  background: var(--gr);
  color: #0c2a17;
  transform: translateY(-2px);
}

.soc svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fb-top-row, .fb-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Animations & Utilities */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .mt { animation: none; flex-wrap: wrap; width: auto; row-gap: 14px; }
  .mt img.d { display: none; }
}

:focus-visible {
  outline: 3px solid var(--gr);
  outline-offset: 3px;
}

[hidden] { display: none !important; }
