:root {
  --navy: #13294b;
  --navy-deep: #0e1c35;
  --purple: #470075;
  --purple-deep: #350058;
  --purple-light: #c4b0d8;
  --purple-mid: #d2c2e0;
  --purple-mist: #eee7f4;
  --carolina: #7ba7c9;
  --carolina-white: #ffffff;
  --cream: #ffffff;
  --paper: #f8f4fb;
  --ink: #1c2430;
  --muted: #5b6573;
  --line: #d9d0e0;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --math: "STIX Two Math", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 7%;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

.nav-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--carolina-white);
  transition: color 0.25s ease;
}

.navbar.scrolled .nav-brand {
  color: var(--navy);
}

.nav-logo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

.navbar.scrolled .nav-logo {
  filter: none;
}

.nav-mark {
  font-family: var(--math);
  font-size: 1.22rem;
  font-weight: 700;
}

.nav-rest {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--carolina-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.72);
}

.navbar.scrolled .nav-links a {
  color: var(--navy);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--purple);
}

.nav-apply {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  background: var(--carolina-white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-apply:hover {
  background: var(--navy);
  color: var(--carolina-white);
}

.navbar.scrolled .nav-apply {
  background: var(--navy);
  color: var(--carolina-white);
}

.navbar.scrolled .nav-apply:hover {
  background: var(--purple);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--carolina-white);
  transition: background 0.25s ease;
}

.navbar.scrolled .nav-toggle span {
  background: var(--navy);
}

/* HERO */

.hero-elite {
  min-height: 100vh;
  background: linear-gradient(
    180deg in oklab,
    var(--navy) 0%,
    var(--carolina) 34%,
    var(--carolina-white) 62%
  );
  color: var(--navy);
  padding: 7.5rem 7% 4rem;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 46rem;
}

.hero-copy h1 {
  font-family: var(--math);
  font-size: clamp(1.7rem, 5.4vw, 3.35rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0.55rem 0 1rem;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.hero-lede {
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--navy);
  opacity: 0.82;
  margin-bottom: 0.85rem;
}

.hero-lede b {
  font-family: var(--math);
  font-weight: 700;
}

.hero-tags {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 1.35rem;
}

.hero-buttons {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  list-style: none;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(19, 41, 75, 0.12);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn.solid {
  background: var(--navy);
  color: var(--paper);
}

.btn.solid:hover {
  background: var(--purple);
}

.btn.outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn.outline:hover {
  background: var(--navy);
  color: var(--paper);
}

/* ABOUT */

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5rem 7%;
  gap: 4.5rem;
  background: var(--cream);
}

.about.alt {
  background: var(--paper);
}

.about-text {
  max-width: 34rem;
}

.about-text h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 1.1rem;
}

.about-text p {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.about-images img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 2px;
  background: #e4ddd2;
}

.about-images img:last-child {
  margin-top: 2rem;
}

/* DIVISIONS */

.divisions {
  padding: 7rem 7%;
  background: var(--cream);
}

.divisions h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  text-align: left;
  margin-bottom: 3.5rem;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.division-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem;
}

.division-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
  min-width: 0;
}

.division-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.division-col h3 {
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  min-width: 0;
}

.division-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.division-rule {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 1.25rem;
}

.division-focus {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.82;
  margin-bottom: 1.6rem;
  flex: 1;
}

.division-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.division-link:hover {
  color: var(--purple);
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
}

.visit-btn:hover {
  background: var(--purple);
}

/* NOTABLE PROJECTS */

.notable {
  padding: 6.5rem 7%;
  background: var(--paper);
}

.notable-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.notable h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 0.7rem;
}

.notable-intro {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.notable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.notable-card {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.notable-card:hover {
  transform: scale(1.03);
}

.notable-photo {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #ebe6dc;
  overflow: hidden;
}

.notable-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.notable-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.notable-slides img.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.notable-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 41, 75, 0.55);
  color: var(--paper);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.notable-photo:hover .notable-slide-btn,
.notable-photo:focus-within .notable-slide-btn {
  opacity: 1;
}

.notable-slide-btn:hover {
  background: rgba(19, 41, 75, 0.85);
}

.notable-slide-btn.prev {
  left: 0.55rem;
}

.notable-slide-btn.next {
  right: 0.55rem;
}

.notable-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.notable-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.45);
  cursor: pointer;
}

.notable-dots button.is-active {
  background: var(--paper);
}

.notable-photo.is-single .notable-slide-btn,
.notable-photo.is-single .notable-dots {
  display: none;
}

.notable-card h3,
.notable-card p,
.notable-meta {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.notable-meta {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.notable-card h3 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.55rem;
}

.notable-card p {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 1.4rem;
}

/* CONNECT */

.connect {
  padding: 6.5rem 7%;
  background: var(--paper);
}

.connect-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.connect h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.connect-intro {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 2.6rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.connect-card {
  background: var(--paper);
  padding: 1.8rem 1.6rem;
}

.connect-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
}

.connect-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* JOIN */

.join-upgraded {
  padding: 6.5rem 7%;
  background: var(--carolina);
}

.join-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.join-content {
  max-width: 40rem;
  flex: 1;
}

.join-upgraded h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.join-content > p {
  color: var(--navy);
  margin-bottom: 1.8rem;
}

.join-btn {
  background: var(--navy);
  color: var(--carolina-white);
}

.join-btn:hover {
  background: var(--navy-deep);
}

.join-contact {
  flex: 0 0 16rem;
  padding-top: 0.35rem;
}

.join-contact-block + .join-contact-block {
  margin-top: 1.6rem;
}

.join-contact-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.join-contact-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.join-contact a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
}

.join-contact a:hover {
  text-decoration: underline;
}

footer {
  padding: 1.4rem 7%;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

/* ANIMATION */

.fade-in,
.slide-left,
.slide-right,
.slide-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left { transform: translateX(-18px); }
.slide-right { transform: translateX(18px); }

.fade-in.visible,
.slide-left.visible,
.slide-right.visible,
.slide-up.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .about {
    flex-direction: column;
  }

  .about-images img:last-child {
    margin-top: 0;
  }

  .division-grid,
  .connect-grid,
  .notable-grid {
    grid-template-columns: 1fr;
  }

  .division-grid {
    gap: 3.25rem;
  }

  .join-layout {
    flex-direction: column;
    gap: 2.75rem;
  }

  .join-contact {
    flex: none;
  }

  .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 0.5rem 0 1rem;
  }

  .navbar.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 7%;
    color: var(--navy);
  }

  .nav-links a:hover {
    color: var(--purple);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-apply {
    display: none;
  }

  .navbar.open .nav-apply {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0 7% 0.85rem;
    text-align: center;
  }
}
