:root {
  --maroon: #1F4D3D;
  --maroon-light: #2E6B54;
  --navy: #2B2A22;
  --navy-2: #1C1B15;
  --paper: #FBF9F3;
  --paper-2: #F0EAD8;
  --gold: #BF9B5E;
  --steel: #5C6E4F;
  --charcoal: #26291F;
  --line: rgba(191, 155, 94, 0.32);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--paper);
  color: var(--charcoal);
  overflow-x: hidden;
}

h1,
h2,
h3,
.display {
  font-family: 'Source Serif 4', serif;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--maroon);
}

.eyebrow.on-dark {
  color: var(--gold);
}

.eyebrow.on-dark::before {
  background: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid var(--maroon);
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  letter-spacing: 0.01em;
}

.btn-solid {
  background: var(--maroon);
  color: var(--paper);
  border-color: var(--maroon);
}

.btn-solid:hover {
  background: var(--maroon-light);
  border-color: var(--maroon-light);
}

.btn-ghost {
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-ghost-onmaroon {
  color: var(--paper);
  border-color: rgba(251, 250, 247, 0.5);
}

.btn-ghost-onmaroon:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Masthead */
.masthead {
  background: var(--navy-2);
  color: rgba(251, 250, 247, 0.7);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}

.masthead .badges {
  display: flex;
  gap: 16px;
}

@media (max-width:700px) {
  .masthead .badges span:nth-child(3) {
    display: none;
  }
}

/* header css */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  gap: 24px;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
  /* allows text truncation to work in flex */
}

.brand-name-line {
  white-space: nowrap;
}

.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--line);
  padding: 3px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: #1F4D3D;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  min-width: 0;
}

.brand-society {
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.brand-location {
  font-size: 12.5px;
  font-weight: 500;
  color: #7a7a7a;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 3px;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.8;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  opacity: 1;
}

.btn-ghost {
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-ghost:hover {
  background: var(--maroon);
  color: #fff;
}

.mobile-only {
  display: none;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #1F4D3D;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 640px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 50;
}

@media (min-width: 921px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dropdown-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E8C97A;
}

.dropdown-title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #1F4D3D;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(31, 77, 61, 0.06);
  transform: translateX(3px);
}

.item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 201, 122, 0.15);
  border-radius: 8px;
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1F4D3D;
}

.item-desc {
  font-size: 11.5px;
  color: #8a8a8a;
}

/* Mobile fallback — simpler stacked list */
@media (max-width: 920px) {
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 16px;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transform: none;
    transition: max-height 0.35s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 700px;
  }

  .dropdown-header {
    display: none;
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .item-desc {
    display: none;
  }
}

.society-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 800;
  color: #1F4D3D;
  line-height: 1.25;
  margin: 10px 0 22px;
}

@media (max-width: 960px) {
  .society-heading {
    font-size: 24px;
    margin: 8px 0 18px;
  }
}

.society-text-col .founder-eyebrow,
.society-text-col .society-heading {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.society-text-col .founder-eyebrow {
  transition-delay: 0.05s;
}

.society-text-col .society-heading {
  transition-delay: 0.15s;
}

.society-text-col .society-para:nth-child(3) {
  transition-delay: 0.3s;
}

.society-text-col .society-para:nth-child(4) {
  transition-delay: 0.45s;
}

.society-text-col .society-para:nth-child(5) {
  transition-delay: 0.6s;
}

.society-content.in-view .society-text-col .founder-eyebrow,
.society-content.in-view .society-text-col .society-heading {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Tablet ===== */
@media (max-width: 920px) {
  header .wrap {
    height: 90px;
    padding: 0 18px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .brand-text {
    max-width: 300px;
    font-size: 16px;
  }

  .brand-society,
  .brand-location {
    font-size: 10.5px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-block;
    margin-top: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    max-height: 500px;
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 480px) {
  header .wrap {
    height: auto;
    min-height: 76px;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
  }

  .brand-society,
  .brand-location {
    font-size: 8.5px;
    letter-spacing: 0.2px;
  }

  nav {
    flex-shrink: 0;
  }

  .menu-toggle {
    margin-left: 6px;
  }

  .nav-links {
    top: auto;
    /* let JS/height handle this dynamically instead of a fixed px value */
  }
}
/* Replace the hardcoded top:90px with dynamic positioning */
@media (max-width: 920px) {
  header .wrap {
    height: 90px;
    padding: 0 18px;
    position: relative;   /* anchor point for nav-links */
  }

  .nav-links {
    position: absolute;
    top: 100%;   /* CHANGED from 90px — always sits right below header, regardless of height */
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    z-index: 99;
  }

  .nav-links.open {
    max-height: 700px;   /* increased so the About dropdown items have room too */
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  /* Make the dropdown toggle behave like a full-width nav link on mobile */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}

@media (max-width: 480px) {
  header .wrap {
    height: auto;
    min-height: 76px;
    padding: 10px 16px;
    gap: 10px;
    position: relative;
  }

  .nav-links {
    top: 100%;   /* CHANGED from "auto" — same fix, works regardless of header's actual height */
  }
}
@media (max-width: 920px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transform: none;
    transition: max-height 0.4s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 900px;   /* enough room for all 9 items to fully expand */
  }

  .dropdown-header {
    display: none;   /* hide the "Explore / About Our Institution" label on mobile to save space */
  }

  .dropdown-grid {
    display: block;   /* stack single column instead of 2-column grid */
  }

  .dropdown-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .item-desc {
    display: none;   /* hide descriptions on mobile, show only titles for compactness */
  }
}

/* SLIDESHOW SECTION — framed box with white space */
.slideshow-section {
  background: var(--paper);
  padding: 36px 60px 50px;
}

.slideshow-frame {
  max-width: 1400px;
  margin: 0 auto;
  border: 6px solid #fff;
  outline: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.slideshow {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #0a0a0a;
  display: block;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  animation: kenburns 7s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.02);
  }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.15) 40%, rgba(10, 10, 10, 0.8) 100%);
}

.slide-caption {
  position: absolute;
  bottom: 75px;
  left: 0;
  right: 0;
  padding: 0 55px;
  color: #fff;
  max-width: 700px;
}

/* Small accent line above the tag */
.slide-accent-line {
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, #E8C97A, #f5deac);
  border-radius: 2px;
  margin-bottom: 18px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F5DEAC;
  padding: 7px 16px;
  background: rgba(232, 201, 122, 0.08);
  border: 1px solid rgba(232, 201, 122, 0.4);
  border-radius: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(16px);
}

.slide-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E8C97A;
  box-shadow: 0 0 8px 1px rgba(232, 201, 122, 0.8);
}

.slide-caption h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  background: linear-gradient(100deg, #E8C97A 0%, #FFDD8A 20%, #D4924A 40%, #F0D584 60%, #E8C97A 80%, #FFDD8A 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translateY(28px);
}

.slide.active .slide-caption h2 {
  animation:
    revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    flowGold 6s linear 1s infinite;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flowGold {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 300% center;
  }
}

.slide-caption p {
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  max-width: 480px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(24px);
}

/* Button with icon reveal on hover */
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1F4D3D;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease;
  opacity: 0;
  transform: translateY(24px);
}

.slide-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #E8C97A;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.slide-btn span,
.slide-btn svg {
  position: relative;
  z-index: 1;
}

.slide-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  color: #1F4D3D;
}

.slide-btn:hover::after {
  transform: translateX(0);
}

.slide-btn:hover svg {
  transform: translateX(4px);
}

/* Staggered entrance — now includes accent line */
.slide.active .slide-accent-line {
  animation: growLine 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

.slide.active .slide-tag {
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.35s;
}

.slide.active .slide-caption h2 {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.5s;
}

.slide.active .slide-caption p {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.65s;
}

.slide.active .slide-btn {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growLine {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.08);
}

.slide-arrow.prev {
  left: 24px;
}

.slide-arrow.next {
  right: 24px;
}

.slide-footer {
  position: absolute;
  bottom: 24px;
  right: 50px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 10;
}

.slide-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

.slide-count #slideCurrent {
  color: #fff;
  font-size: 15px;
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slide-dot.active {
  background: #E8C97A;
}

.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.slide-progress-bar {
  height: 100%;
  width: 0%;
  background: #E8C97A;
}

.slide-progress-bar.animate {
  animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 920px) {
  .slideshow-section {
    padding: 24px 20px 32px;
  }

  .slideshow-frame {
    border-width: 4px;
    border-radius: 10px;
  }

  .slideshow {
    height: 400px;
  }

  .slide-caption {
    padding: 0 28px;
    bottom: 60px;
    max-width: 100%;
  }

  .slide-caption h2 {
    font-size: 24px;
  }

  .slide-caption p {
    font-size: 13.5px;
  }

  .slide-footer {
    right: 28px;
    bottom: 16px;
  }

  .slide-arrow {
    width: 36px;
    height: 36px;
  }

  .slide-arrow.prev {
    left: 14px;
  }

  .slide-arrow.next {
    right: 14px;
  }
}

@media (max-width: 480px) {
  .slideshow-section {
    padding: 16px 12px 24px;
  }

  .slideshow-frame {
    border-width: 3px;
    border-radius: 8px;
  }

  .slideshow {
    height: 300px;
  }

  .slide-caption {
    bottom: 46px;
    padding: 0 18px;
  }

  .slide-tag {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .slide-caption h2 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .slide-caption p {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .slide-btn {
    padding: 9px 18px;
    font-size: 11.5px;
  }

  .slide-footer {
    display: none;
  }
}

/* FOUNDER SECTION — compact version */
.founder-section {
  background: var(--paper);
  padding: 50px 60px;
}

/* Elements start hidden/offset, animate in when .in-view class is added */
.founder-image-col,
.founder-info-col>* {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-image-col {
  transform: translateX(-40px);
}

.founder-info-col>* {
  transform: translateY(30px);
}

/* Staggered delays for each info element */
.founder-info-col>*:nth-child(1) {
  transition-delay: 0.1s;
}

.founder-info-col>*:nth-child(2) {
  transition-delay: 0.2s;
}

.founder-info-col>*:nth-child(3) {
  transition-delay: 0.3s;
}

.founder-info-col>*:nth-child(4) {
  transition-delay: 0.4s;
}

.founder-info-col>*:nth-child(5) {
  transition-delay: 0.5s;
}

.founder-info-col>*:nth-child(6) {
  transition-delay: 0.6s;
}

/* When section is in view, JS adds this class to trigger the animation */
.founder-section.in-view .founder-image-col {
  opacity: 1;
  transform: translateX(0);
}

.founder-section.in-view .founder-info-col>* {
  opacity: 1;
  transform: translateY(0);
}

.founder-wrap {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 50px;
  /* reduced from 70px */
  align-items: start;
}

/* LEFT COLUMN */
.founder-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  /* fixed, shorter height instead of tall aspect-ratio */
  border: 5px solid #fff;
  outline: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}

.founder-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.founder-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -28px;
  margin-left: 18px;
  position: relative;
  z-index: 2;
  max-width: 280px;
  /* increased so full text has room */
}

.founder-badge {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-left: 3px solid #1F4D3D;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: normal;
  /* ensures text wraps instead of cutting off */
}

.badge-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--maroon);
  white-space: normal;
}

.badge-value {
  font-size: 12px;
  font-weight: 600;
  color: #1F4D3D;
  line-height: 1.4;
  white-space: normal;
  /* full text shows, wraps naturally instead of truncating */
  overflow: visible;
  text-overflow: unset;
}

/* RIGHT COLUMN */
.founder-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
}

.founder-name {
  font-size: 28px;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1F4D3D;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 14px;
}

.founder-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #E8C97A, #C9971F);
  border-radius: 2px;
}

.founder-title {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #7a7a7a;
  margin-bottom: 16px;
  /* reduced from 26px */
}

.founder-quote {
  position: relative;
  font-family: Georgia, serif;
  font-size: 14.5px;
  /* reduced from 18px */
  font-style: italic;
  line-height: 1.5;
  color: #1F4D3D;
  padding-left: 18px;
  border-left: 3px solid #E8C97A;
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 13.5px;
  /* reduced from 15px */
  line-height: 1.65;
  /* tighter from 1.85 */
  color: #444;
  margin-bottom: 16px;
}

.founder-cta {
  margin-top: 2px;
}

.founder-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1F4D3D;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 11px 22px;
  /* reduced from 14px 28px */
  border-radius: 7px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.founder-btn-primary svg {
  width: 13px;
  height: 13px;
}

.founder-btn-primary:hover {
  background: var(--maroon);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .founder-section {
    padding: 36px 24px;
  }

  .founder-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .founder-image-frame {
    max-width: 320px;
    height: 240px;
    margin: 0 auto;
  }

  .founder-badges {
    margin: -24px auto 0;
  }

  .founder-name {
    font-size: 21px;
  }

  .founder-quote {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .founder-section {
    padding: 28px 16px;
  }

  .founder-image-frame {
    height: 200px;
  }

  .founder-name {
    font-size: 18px;
  }

  .founder-quote {
    font-size: 12.5px;
    padding-left: 14px;
  }

  .founder-bio {
    font-size: 12.5px;
  }

  .founder-badges {
    max-width: 100%;
  }
}

/* REVERSED LAYOUT — son/successor section */
.founder-wrap-reverse {
  grid-template-columns: 1.25fr 0.75fr;
  /* swapped ratio: info wider, image narrower on the right */
}

.founder-wrap-reverse .founder-image-col {
  order: 2;
}

.founder-wrap-reverse .founder-info-col {
  order: 1;
}

/* Badge sits bottom-right instead of bottom-left for the mirrored image */
.founder-badges-right {
  margin-left: auto;
  margin-right: 18px;
  align-items: flex-end;
}

.founder-badges-right .founder-badge {
  border-left: none;
  border-right: 3px solid #1F4D3D;
  text-align: right;
}

/* Optional: slightly different background tint to visually separate the two sections */
.founder-section-reverse {
  background: #f6f2e9;
}

@media (max-width: 960px) {
  .founder-wrap-reverse {
    grid-template-columns: 1fr;
    /* ADD THIS — forces single column on mobile */
  }

  .founder-wrap-reverse .founder-image-col {
    order: 1;
  }

  .founder-wrap-reverse .founder-info-col {
    order: 2;
  }

  .founder-badges-right {
    margin: -28px auto 0;
    align-items: center;
  }

  .founder-badges-right .founder-badge {
    border-right: none;
    border-left: 3px solid #1F4D3D;
    text-align: left;
  }
}

/* HERO — letterhead style */
.hero {
  position: relative;
  background: var(--paper);
  padding: 80px 0 90px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Text column elements — hidden by default, revealed with stagger */
.hero .eyebrow,
.hero h1,
.hero p.lede,
.hero .hero-actions,
.hero .hero-meta {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero .eyebrow {
  transition-delay: 0.1s;
}

.hero h1 {
  transition-delay: 0.25s;
}

.hero p.lede {
  transition-delay: 0.4s;
}

.hero .hero-actions {
  transition-delay: 0.55s;
}

.hero .hero-meta {
  transition-delay: 0.7s;
}

/* Seal column — scale + fade in */
.hero-seal-wrap {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.3s;
}

/* When JS adds .in-view to .hero, everything animates to its resting state */
.hero.in-view .eyebrow,
.hero.in-view h1,
.hero.in-view p.lede,
.hero.in-view .hero-actions,
.hero.in-view .hero-meta {
  opacity: 1;
  transform: translateY(0);
}

.hero.in-view .hero-seal-wrap {
  opacity: 1;
  transform: scale(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

@media (max-width:960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-seal-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

@media (max-width:960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-seal-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--maroon);
  font-weight: 600;
}

.hero p.lede {
  color: #4a4d47;
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.hero-meta div {
  flex: 1;
  min-width: 140px;
  padding: 20px 24px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}

.hero-meta div:last-child {
  border-right: none;
}

.hero-meta div .num {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  color: var(--maroon);
  font-weight: 700;
}

.hero-meta div .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #767970;
  text-transform: uppercase;
  margin-top: 5px;
}

.hero-seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal {
  width: 280px;
  height: 280px;
  position: relative;
}

.seal svg {
  width: 100%;
  height: 100%;
}

.seal-ring-outer {
  transform-origin: 140px 140px;
  animation: sealSpin 60s linear infinite;
}

.seal-ring-inner {
  transform-origin: 140px 140px;
  animation: sealSpinRev 46s linear infinite;
}

@keyframes sealSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes sealSpinRev {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.seal-fade {
  opacity: 0;
  animation: sealFade 1s ease forwards;
}

@keyframes sealFade {
  to {
    opacity: 1;
  }
}

/* NOTICE REGISTER */
.notices {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.notice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-list {
  border-top: 1px solid var(--line);
}

.notice-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.3s ease;
}

.notice-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--maroon);
  transition: width 0.3s ease;
}

.notice-row:hover {
  padding-left: 16px;
}

.notice-row:hover::before {
  width: 4px;
}

.notice-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--steel);
}

.notice-title {
  font-size: 14.5px;
  color: var(--charcoal);
}

.notice-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  background: var(--maroon);
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 1px;
  text-transform: uppercase;
}

section {
  padding: 100px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.25;
  color: var(--navy);
}

.section-head p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a4d47;
  max-width: 520px;
}

/* ABOUT */
.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

@media (max-width:860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-quote {
  font-family: 'Source Serif 4', serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
}

.about-quote cite {
  display: block;
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--maroon);
  text-transform: uppercase;
}

.about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3d38;
  margin-bottom: 14px;
}

.approval-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.approval-chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 15px;
  border-radius: 1px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--navy);
  font-weight: 500;
}

/* STATS */
.stats {
  background: var(--navy);
  color: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(191, 155, 94, 0.25);
  border: 1px solid rgba(191, 155, 94, 0.25);
}

@media (max-width:760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--navy);
  padding: 32px 28px;
}

.stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.55);
  margin-top: 8px;
}

/* DEPARTMENTS as registry */
.depts {
  background: var(--paper);
}

.dept-registry {
  border-top: 1px solid var(--line);
}

.dept-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 28px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

@media (max-width:760px) {
  .dept-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 4px;
  }
}

.dept-row:hover {
  background: var(--paper-2);
}

.dept-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--maroon);
  font-weight: 500;
}

.dept-name h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.dept-name span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--steel);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.dept-desc p {
  font-size: 14px;
  line-height: 1.65;
  color: #565951;
}

/* PLACEMENT */
.placement {
  background: var(--paper-2);
}

.plc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width:900px) {
  .plc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.plc-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.plc-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.plc-item:last-child {
  border-bottom: none;
}

.plc-icon {
  width: 20px;
  height: 20px;
  color: var(--maroon);
  flex-shrink: 0;
  margin-top: 2px;
}

.plc-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.plc-item p {
  font-size: 13px;
  color: #5a5d55;
  line-height: 1.5;
}

.recruiter-panel {
  background: var(--navy);
  padding: 36px;
  border: 1px solid var(--line);
}

.recruiter-panel h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(251, 250, 247, 0.1);
  border: 1px solid rgba(251, 250, 247, 0.1);
}

.recruiter-chip {
  background: var(--navy);
  color: rgba(251, 250, 247, 0.85);
  padding: 16px 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
}

/* GALLERY */
.gallery {
  background: var(--paper);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width:860px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

.gal-item {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  cursor: pointer;
}

.gal-item.tall {
  grid-row: span 2;
}

@media (max-width:860px) {
  .gal-item.tall {
    grid-row: span 1;
  }
}

.gal-item svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 26%;
  box-sizing: border-box;
  color: var(--maroon);
  opacity: 0.7;
  transition: transform 0.5s ease;
}

.gal-item::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--navy);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.gal-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gal-item:hover svg {
  transform: scale(1.06);
}

/* ADMISSION */
.admission {
  background: var(--paper-2);
}

.adm-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width:900px) {
  .adm-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.adm-steps {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}

.adm-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.adm-step:last-child {
  border-bottom: none;
}

.adm-step .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--maroon);
  border: 1px solid var(--maroon);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-step h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}

.adm-step p {
  font-size: 13px;
  color: #5a5d55;
  line-height: 1.5;
}

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 38px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width:520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
}

.field input,
.field select,
.field textarea {
  border: none;
  border-bottom: 1px solid rgba(38, 41, 43, 0.2);
  background: transparent;
  padding: 10px 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--maroon);
}

.field textarea {
  resize: vertical;
  min-height: 64px;
}

/* CONTACT */
.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width:760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 30px;
  background: var(--paper);
}

.contact-card .ci {
  width: 24px;
  height: 24px;
  color: var(--maroon);
  margin-bottom: 14px;
}

.contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13.5px;
  color: #5a5d55;
  line-height: 1.6;
}

footer {
  background: var(--navy-2);
  color: rgba(251, 250, 247, 0.6);
  padding: 56px 0 26px;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width:760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

.foot-grid h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foot-grid a {
  font-size: 12.5px;
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.foot-grid a:hover {
  opacity: 1;
  color: var(--gold);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 250, 247, 0.1);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

.brand-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #BF9B5E;
  padding: 2px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* pop for about us of pichad */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 99999;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(850px, 92%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 0;
  position: relative;
  transform-origin: center center;
  transform: scale(0.3);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.05s;
}

/* Decorative header band with gradient + pattern */
.modal-header {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 40px 40px 32px;
  background: linear-gradient(135deg, #1F4D3D 0%, #16362a 100%);
  border-radius: 22px 22px 0 0;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232, 201, 122, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.modal-header img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay.active .modal-header img {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.25s;
}

.modal-header>div {
  position: relative;
  z-index: 1;
}

.modal-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay.active .modal-header h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.modal-header h4 {
  font-size: 13.5px;
  font-weight: 500;
  color: #E8C97A;
  line-height: 1.6;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay.active .modal-header h4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.modal-body {
  padding: 32px 40px 40px;
  line-height: 1.8;
  color: #555;
}

.modal-body p {
  color: #555;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay.active .modal-body p:nth-of-type(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.modal-overlay.active .modal-body p:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.modal-overlay.active .modal-body p:nth-of-type(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.modal-body h3 {
  margin: 25px 0 12px;
  color: #8B1E2D;
  font-size: 22px;
}

.modal-list {
  margin: 15px 0 20px;
  padding-left: 22px;
}

.modal-list li {
  margin-bottom: 12px;
  line-height: 1.8;
  color: #444;
}

.modal-quote {
  margin-top: 30px;
  padding: 20px;
  background: #f7f7f7;
  border-left: 5px solid #8B1E2D;
  font-style: italic;
  border-radius: 8px;
}

/* Refined close button */
.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease, opacity 0.4s ease;
  z-index: 2;
  opacity: 0;
  transform: scale(0.7) rotate(-45deg);
}

.modal-overlay.active .close-modal {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.55s;
}

.close-modal:hover {
  background: #E8C97A;
  color: #1F4D3D;
  transform: rotate(90deg);
}


/* Custom scrollbar for modal-box on tall content */
.modal-box::-webkit-scrollbar {
  width: 6px;
}

.modal-box::-webkit-scrollbar-thumb {
  background: rgba(31, 77, 61, 0.25);
  border-radius: 10px;
}

/* ===========================
   TABLET
=========================== */
@media (max-width: 768px) {
  .modal-box {
    width: 95%;
    max-height: 90vh;
    border-radius: 18px;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 32px 26px 26px;
    border-radius: 18px 18px 0 0;
  }

  .modal-header img {
    width: 140px;
    height: 140px;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .modal-header h4 {
    font-size: 14px;
    line-height: 1.5;
  }

  .modal-body {
    padding: 26px 26px 30px;
    font-size: 15px;
    line-height: 1.8;
  }

  .close-modal {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 15px;
  }

  .modal-box {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 26px 20px 22px;
    gap: 15px;
    border-radius: 16px 16px 0 0;
  }

  .modal-header img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
  }

  .modal-header h2 {
    font-size: 19px;
    line-height: 1.3;
  }

  .modal-header h4 {
    font-size: 12.5px;
  }

  .modal-body {
    padding: 20px 20px 26px;
    font-size: 14px;
    line-height: 1.7;
  }

  .close-modal {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
    font-size: 20px;
  }
}
.founder-btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Press-down feedback */
.founder-btn-primary:active {
  transform: scale(0.96);
}

/* Ripple circle that expands from click point */
.founder-btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.founder-btn-primary.rippling::after {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}