:root {
  --deep-teal: #0E4D53;
  --teal: #167A78;
  --mint-aqua: #59DCC6;
  --soft-aqua: #A6EFE6;
  --teal-gray: #6FA9A6;
  --charcoal: #222222;
  --white: #FFFFFF;

  --off-white: #F7FBFA;
  --soft-bg: #EEF8F6;
  --border: rgba(14, 77, 83, 0.14);
  --border-strong: rgba(14, 77, 83, 0.24);

  --shadow-sm: 0 12px 28px rgba(14, 77, 83, 0.08);
  --shadow-md: 0 24px 60px rgba(14, 77, 83, 0.14);
  --shadow-lg: 0 34px 90px rgba(14, 77, 83, 0.2);

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-xl: 48px;

  --container: 1180px;
  --header-height: 86px;

  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2,
.section-heading h3 {
  color: var(--deep-teal);
  line-height: 1.08;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
}

.section-heading h3 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.centered {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.split-heading > div {
  max-width: 760px;
}

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--deep-teal);
  font-weight: 800;
  position: relative;
}

.text-link::after,
.card-link::after {
  content: "";
  width: 32px;
  height: 2px;
  margin-left: 10px;
  background: var(--mint-aqua);
  transition: width 0.3s var(--ease);
}

.text-link:hover::after,
.card-link:hover::after {
  width: 52px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  color: var(--white);
  box-shadow: 0 18px 45px rgba(14, 77, 83, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 24px 60px rgba(14, 77, 83, 0.34);
}

.btn-secondary {
  border-color: rgba(14, 77, 83, 0.22);
  color: var(--deep-teal);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  background: var(--white);
  border-color: rgba(14, 77, 83, 0.36);
}

.btn-light {
  background: var(--white);
  color: var(--deep-teal);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(89, 220, 198, 0.24), transparent 34%),
    linear-gradient(135deg, var(--deep-teal), #07383d);
  overflow: hidden;
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s var(--ease);
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.preloader-phoenix {
  width: clamp(110px, 20vw, 230px);
  filter: drop-shadow(0 22px 45px rgba(89, 220, 198, 0.35));
  animation: phoenixLift 1.6s var(--ease) forwards;
}

.preloader-text {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  color: var(--soft-aqua);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(12px);
  animation: preloadText 1s var(--ease) 0.25s forwards;
}

.preloader-bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(89, 220, 198, 0.16);
  filter: blur(20px);
}

.preloader-bg-orb-one {
  top: -140px;
  right: -120px;
}

.preloader-bg-orb-two {
  bottom: -180px;
  left: -120px;
}

@keyframes phoenixLift {
  0% {
    opacity: 0;
    transform: translateY(190px) scale(0.76) rotate(-3deg);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(-14px) scale(1) rotate(0deg);
  }
}

@keyframes preloadText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 251, 250, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14, 77, 83, 0.1);
  box-shadow: 0 14px 38px rgba(14, 77, 83, 0.08);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 122px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(34, 34, 34, 0.72);
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--deep-teal);
  background: rgba(89, 220, 198, 0.16);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--deep-teal);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(14, 77, 83, 0.22);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(14, 77, 83, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 2px;
  background: var(--deep-teal);
  border-radius: 999px;
  transition:
    transform 0.3s var(--ease),
    top 0.3s var(--ease);
}

.menu-toggle span:first-child {
  top: 18px;
}

.menu-toggle span:last-child {
  top: 27px;
}

.menu-open .menu-toggle span:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 40px;
  background:
    radial-gradient(circle at 80% 18%, rgba(89, 220, 198, 0.28), transparent 32%),
    linear-gradient(135deg, #07383d, var(--deep-teal));
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}

.menu-open .mobile-nav {
  transform: translateY(0);
}

.mobile-nav-link {
  color: var(--white);
  font-size: clamp(2.2rem, 12vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mobile-nav-link.is-active {
  color: var(--soft-aqua);
}

.hero-section,
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(166, 239, 230, 0.72), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(89, 220, 198, 0.3), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f1faf8 100%);
}

.page-hero {
  min-height: 72vh;
  padding: 170px 0 100px;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 77, 83, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 77, 83, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-orb-one {
  width: 430px;
  height: 430px;
  right: -150px;
  top: 120px;
  background: rgba(89, 220, 198, 0.3);
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.hero-orb-two {
  width: 270px;
  height: 270px;
  left: -70px;
  bottom: 90px;
  background: rgba(22, 122, 120, 0.12);
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(18px, -24px, 0);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 70px;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-title,
.page-title {
  color: var(--deep-teal);
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  max-width: 980px;
}

.hero-description {
  max-width: 650px;
  margin-top: 30px;
  color: rgba(34, 34, 34, 0.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phoenix-card {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 54%, transparent 55%),
    linear-gradient(135deg, rgba(89, 220, 198, 0.24), rgba(14, 77, 83, 0.12));
  border: 1px solid rgba(14, 77, 83, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phoenix-card::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 34px solid rgba(14, 77, 83, 0.12);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-32deg);
}

.phoenix-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(89, 220, 198, 0.5);
  animation: rotateRing 18s linear infinite;
}

.phoenix-ring::before,
.phoenix-ring::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--mint-aqua);
  border-radius: 50%;
  box-shadow: 0 0 28px var(--mint-aqua);
}

.phoenix-ring::before {
  top: 14%;
  left: 12%;
}

.phoenix-ring::after {
  right: 11%;
  bottom: 18%;
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

.hero-phoenix {
  position: relative;
  z-index: 2;
  width: 64%;
  filter: drop-shadow(0 28px 34px rgba(14, 77, 83, 0.25));
  animation: phoenixFloat 5s ease-in-out infinite alternate;
}

@keyframes phoenixFloat {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(-14px);
  }
}

.floating-stat {
  position: absolute;
  z-index: 4;
  max-width: 190px;
  padding: 18px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.floating-stat-one {
  left: 0;
  top: 20%;
}

.floating-stat-two {
  right: 0;
  bottom: 16%;
}

.stat-number {
  display: block;
  color: var(--deep-teal);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: rgba(34, 34, 34, 0.66);
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 700;
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.7fr;
  gap: 70px;
  align-items: end;
}

.page-title {
  font-size: clamp(2.8rem, 7vw, 6.8rem);
}

.page-hero-text {
  color: rgba(34, 34, 34, 0.72);
  font-size: 1.1rem;
  max-width: 510px;
}

.intro-section {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 70px;
}

.section-kicker {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-text h2 {
  color: var(--deep-teal);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
  max-width: 950px;
}

.intro-text p {
  margin-top: 28px;
  max-width: 800px;
  color: rgba(34, 34, 34, 0.72);
  font-size: 1.08rem;
}

.pillars-section {
  background:
    radial-gradient(circle at 0% 20%, rgba(166, 239, 230, 0.44), transparent 32%),
    var(--soft-bg);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.pillar-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.pillar-number {
  color: var(--mint-aqua);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pillar-card h3 {
  color: var(--deep-teal);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.pillar-card p {
  color: rgba(34, 34, 34, 0.64);
  font-size: 0.96rem;
}

.featured-projects-section {
  background: var(--white);
}

.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-preview-card {
  overflow: hidden;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 34px;
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.project-preview-image {
  height: 320px;
}

.placeholder-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(14, 77, 83, 0.12);
  background:
    linear-gradient(135deg, rgba(14, 77, 83, 0.88), rgba(22, 122, 120, 0.78)),
    radial-gradient(circle at 70% 30%, rgba(89, 220, 198, 0.6), transparent 34%);
}

.placeholder-image::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: inherit;
}

.placeholder-image::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: rgba(166, 239, 230, 0.16);
  border-radius: 50%;
  filter: blur(10px);
}

.placeholder-image span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.project-preview-content {
  padding: 30px;
}

.project-meta,
.team-role {
  color: var(--teal);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-preview-content h3 {
  color: var(--deep-teal);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.project-preview-content p {
  margin-top: 14px;
  color: rgba(34, 34, 34, 0.66);
}

.project-preview-content .card-link {
  margin-top: 22px;
}

.cta-section {
  padding-top: 40px;
  background: var(--white);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  min-height: 330px;
  padding: clamp(32px, 6vw, 70px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(89, 220, 198, 0.42), transparent 26%),
    linear-gradient(135deg, #07383d, var(--deep-teal));
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border: 58px solid rgba(166, 239, 230, 0.12);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.cta-panel > * {
  position: relative;
  z-index: 2;
}

.cta-panel .eyebrow {
  color: var(--soft-aqua);
}

.cta-panel h2 {
  max-width: 790px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.story-section {
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
}

.sticky-label {
  position: sticky;
  top: 130px;
  height: fit-content;
}

.sticky-label span {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(89, 220, 198, 0.14);
  color: var(--deep-teal);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.story-content {
  display: grid;
  gap: 30px;
  max-width: 920px;
}

.story-content p {
  color: rgba(34, 34, 34, 0.76);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.mission-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(166, 239, 230, 0.44), transparent 32%),
    var(--soft-bg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.mission-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 34px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.mission-card.large-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 530px;
  background:
    radial-gradient(circle at 90% 15%, rgba(89, 220, 198, 0.24), transparent 34%),
    var(--white);
}

.mission-card h2,
.mission-card h3 {
  color: var(--deep-teal);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.mission-card h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.mission-card h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.mission-card p:not(.eyebrow) {
  margin-top: 20px;
  color: rgba(34, 34, 34, 0.68);
}

.approach-section {
  background: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.approach-list {
  display: grid;
  gap: 18px;
}

.approach-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 28px;
  background: var(--off-white);
}

.approach-item span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep-teal);
  color: var(--soft-aqua);
  font-weight: 900;
}

.approach-item h3 {
  color: var(--deep-teal);
  font-size: 1.3rem;
  line-height: 1.2;
}

.approach-item p {
  margin-top: 8px;
  color: rgba(34, 34, 34, 0.66);
}

.values-section {
  background: var(--soft-bg);
}

.value-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 970px;
  margin-inline: auto;
}

.value-cloud span {
  padding: 13px 20px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-teal);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.project-detail-section {
  background: var(--white);
}

.project-detail-section:nth-of-type(even) {
  background: var(--soft-bg);
}

.project-detail-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 96% 5%, rgba(89, 220, 198, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.project-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.project-detail-header h2 {
  color: var(--deep-teal);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.project-badge {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(89, 220, 198, 0.18);
  color: var(--deep-teal);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.info-box {
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 20px;
  background: var(--off-white);
}

.info-box span {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.info-box strong {
  display: block;
  color: var(--deep-teal);
  font-size: 0.95rem;
  line-height: 1.35;
}

.project-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  margin-top: 34px;
}

.project-body-grid.second-grid {
  margin-top: 54px;
}

.project-body-grid h3,
.impact-panel h3 {
  color: var(--deep-teal);
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.project-body-grid p {
  color: rgba(34, 34, 34, 0.7);
  margin-bottom: 16px;
}

.styled-list {
  display: grid;
  gap: 12px;
}

.styled-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(34, 34, 34, 0.7);
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-aqua);
  box-shadow: 0 0 0 5px rgba(89, 220, 198, 0.14);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.activity-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 26px;
  background: var(--off-white);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.activity-card span {
  display: inline-flex;
  color: var(--mint-aqua);
  font-weight: 900;
  margin-bottom: 20px;
}

.activity-card h4 {
  color: var(--deep-teal);
  font-size: 1.15rem;
  line-height: 1.18;
  margin-bottom: 12px;
}

.activity-card p {
  color: rgba(34, 34, 34, 0.66);
  font-size: 0.96rem;
}

.impact-panel {
  margin-top: 54px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 20%, rgba(166, 239, 230, 0.28), transparent 32%),
    linear-gradient(135deg, var(--deep-teal), #07383d);
  color: var(--white);
}

.impact-panel h3 {
  color: var(--white);
}

.impact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.impact-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint-aqua);
}

.gallery-section {
  margin-top: 60px;
}

.gallery-note {
  max-width: 360px;
  color: rgba(34, 34, 34, 0.62);
  font-size: 0.92rem;
}

.gallery-note strong {
  color: var(--deep-teal);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  min-height: 230px;
  border-radius: 26px;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4, 29, 32, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep-teal);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-content {
  width: min(760px, 100%);
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 70% 20%, rgba(89, 220, 198, 0.34), transparent 32%),
    linear-gradient(135deg, var(--deep-teal), #07383d);
  color: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.lightbox-content p {
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.team-section {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.team-card {
  overflow: hidden;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 32px;
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  height: 340px;
}

.team-info {
  padding: 26px;
}

.team-info h3 {
  color: var(--deep-teal);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.team-info p:not(.team-role) {
  color: rgba(34, 34, 34, 0.66);
  margin-top: 12px;
}

.site-footer {
  background: #062e32;
  color: var(--white);
  padding: 76px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 60px;
}

.footer-logo {
  width: 135px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid h3 {
  color: var(--soft-aqua);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  transition: color 0.25s var(--ease);
}

.footer-grid a:hover {
  color: var(--mint-aqua);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-logo {
    width: 106px;
  }

  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .story-grid,
  .approach-grid,
  .project-body-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-grid {
    padding-top: 110px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .floating-stat-one {
    left: 0;
    top: 4%;
  }

  .floating-stat-two {
    right: 0;
    bottom: 4%;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

  .pillar-grid,
  .project-preview-grid,
  .mission-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .mission-card.large-card {
    min-height: auto;
  }

  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .hero-section {
    min-height: auto;
  }

  .page-hero {
    min-height: auto;
    padding: 140px 0 76px;
  }

  .hero-grid {
    padding: 110px 0 60px;
  }

  .hero-title,
  .page-title {
    letter-spacing: -0.065em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .phoenix-card {
    width: 310px;
  }

  .floating-stat {
    max-width: 150px;
    padding: 14px;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.76rem;
  }

  .pillar-card {
    min-height: 240px;
  }

  .project-preview-image,
  .team-photo {
    height: 260px;
  }

  .project-detail-card {
    border-radius: 32px;
  }

  .project-detail-header {
    flex-direction: column;
  }

  .project-info-grid,
  .activity-grid,
  .impact-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .info-box {
    min-height: auto;
  }

  .approach-item {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: start;
  }

  .preloader-text {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   YPS DESIGN PATCH V2
   Fixes:
   - hidden mobile menu text bleeding into page
   - oversized page titles
   - hero balance
   - section spacing
   - text readability
   ========================================================= */

/* Fix mobile menu ghost text showing on desktop/pages */
.mobile-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-120%);
  overflow: hidden;
}

.menu-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Keep header cleaner */
.site-header {
  background: rgba(247, 251, 250, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 77, 83, 0.08);
}

.site-header.is-scrolled {
  background: rgba(247, 251, 250, 0.92);
}

/* Better desktop container width */
.container {
  width: min(1240px, calc(100% - 48px));
}

/* General section spacing correction */
.section {
  padding: 88px 0;
}

/* Home hero correction */
.hero-section {
  min-height: auto;
  padding-top: var(--header-height);
}

.hero-grid {
  min-height: calc(100vh - var(--header-height));
  padding: 72px 0 72px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 54px;
}

/* Reduce massive home title */
.hero-title {
  max-width: 760px;
  font-size: clamp(3.2rem, 6.5vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

/* Better hero paragraph width */
.hero-description {
  max-width: 600px;
  margin-top: 26px;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Hero visual should not sit too low */
.hero-visual {
  min-height: 500px;
}

.phoenix-card {
  width: min(100%, 410px);
}

.floating-stat {
  transform: scale(0.92);
}

.floating-stat-one {
  left: -6px;
  top: 18%;
}

.floating-stat-two {
  right: -4px;
  bottom: 12%;
}

/* Page hero correction */
.page-hero {
  min-height: auto;
  padding: 150px 0 88px;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.55fr);
  gap: 56px;
  align-items: end;
}

/* Reduce huge page titles */
.page-title {
  max-width: 820px;
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.page-hero-text {
  max-width: 460px;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Intro section correction */
.intro-grid {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 62px;
}

.intro-text h2 {
  max-width: 900px;
  font-size: clamp(2.4rem, 4.7vw, 4.4rem);
  line-height: 1.02;
}

.intro-text p {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.82;
}

/* Pillars should breathe but not look too empty */
.pillars-section {
  padding: 96px 0 102px;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
}

.pillar-card {
  min-height: 285px;
}

/* CTA section should not have excessive white gap */
.cta-section {
  padding: 70px 0 86px;
}

.cta-panel {
  min-height: 280px;
}

.cta-panel h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
}

/* About story correction */
.story-section {
  padding: 88px 0 96px;
}

.story-grid {
  grid-template-columns: 220px minmax(0, 830px);
  gap: 68px;
  justify-content: center;
}

.story-content {
  max-width: 830px;
}

.story-content p {
  font-size: 1.18rem;
  line-height: 1.82;
}

/* About mission cards correction */
.mission-section {
  padding: 96px 0;
}

.mission-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  align-items: stretch;
}

.mission-card.large-card {
  min-height: 460px;
}

.mission-card h2 {
  font-size: clamp(2.4rem, 4.9vw, 4.7rem);
}

.mission-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.mission-card p:not(.eyebrow) {
  line-height: 1.78;
}

/* Approach section correction */
.approach-section {
  padding: 96px 0;
}

.approach-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.approach-grid .section-heading h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.7rem);
  line-height: 1;
}

.approach-item {
  padding: 24px 28px;
  background: rgba(247, 251, 250, 0.84);
}

/* Values area correction */
.values-section {
  padding: 96px 0 110px;
}

/* Projects page correction */
.project-detail-section {
  padding: 86px 0;
}

.project-detail-card {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(30px, 4.4vw, 54px);
}

.project-detail-header h2 {
  max-width: 800px;
  font-size: clamp(2.8rem, 5.1vw, 5.1rem);
}

.project-info-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.info-box {
  min-height: 118px;
}

.project-body-grid {
  gap: 56px;
}

.project-body-grid p,
.styled-list li {
  line-height: 1.78;
}

/* Activity cards better spacing */
.activity-grid {
  gap: 20px;
}

.activity-card {
  min-height: 210px;
  padding: 26px;
}

/* Impact panel tighter */
.impact-panel {
  margin-top: 48px;
}

.impact-list {
  gap: 14px 42px;
}

/* Gallery correction */
.gallery-section {
  margin-top: 52px;
}

.gallery-grid {
  gap: 18px;
}

.gallery-item {
  min-height: 210px;
}

/* Team page correction */
.team-section {
  padding: 88px 0 96px;
}

.team-grid {
  gap: 24px;
}

.team-photo {
  height: 315px;
}

/* Footer spacing correction */
.site-footer {
  padding: 70px 0 28px;
}

.footer-grid {
  max-width: 1180px;
  margin-inline: auto;
}

/* Better readable text globally */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* Better scrollbar color */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #eef8f6;
}

::-webkit-scrollbar-thumb {
  background: rgba(14, 77, 83, 0.45);
  border-radius: 999px;
  border: 3px solid #eef8f6;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 77, 83, 0.7);
}

/* Tablet fixes */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .project-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile/tablet page structure */
@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  .section {
    padding: 74px 0;
  }

  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .story-grid,
  .approach-grid,
  .mission-grid,
  .project-body-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 86px 0 68px;
  }

  .page-hero {
    padding: 132px 0 74px;
  }

  .hero-title,
  .page-title {
    max-width: 100%;
    font-size: clamp(3rem, 12vw, 5.5rem);
  }

  .page-hero-text {
    max-width: 680px;
  }

  .story-grid,
  .approach-grid,
  .intro-grid {
    gap: 34px;
  }

  .sticky-label {
    position: static;
  }

  .pillar-grid,
  .project-preview-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-grid,
  .gallery-grid,
  .impact-list {
    grid-template-columns: 1fr;
  }

  .mission-card.large-card {
    min-height: auto;
  }
}

/* Small mobile fixes */
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .brand-logo {
    width: 96px;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.75rem, 15vw, 4.7rem);
    line-height: 0.97;
    letter-spacing: -0.065em;
  }

  .hero-description,
  .page-hero-text {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 350px;
  }

  .phoenix-card {
    width: min(100%, 300px);
  }

  .floating-stat {
    transform: scale(0.82);
  }

  .project-info-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-header h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .project-detail-card {
    border-radius: 28px;
  }

  .team-photo,
  .project-preview-image {
    height: 245px;
  }

  .cta-panel {
    min-height: auto;
  }
}
/* =========================================================
   SCREENSHOT MODE
   Use by opening pages with ?shot=1
   Example: index.html?shot=1
   Prevents Firefox full-page screenshot from duplicating header
   ========================================================= */

body.screenshot-mode {
  scroll-behavior: auto;
}

body.screenshot-mode .site-preloader {
  display: none !important;
}

body.screenshot-mode .site-header {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(247, 251, 250, 0.92);
  box-shadow: none;
}

body.screenshot-mode .mobile-nav {
  display: none !important;
}

body.screenshot-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.screenshot-mode .hero-phoenix,
body.screenshot-mode .phoenix-ring,
body.screenshot-mode .hero-orb,
body.screenshot-mode .preloader-phoenix {
  animation: none !important;
}

body.screenshot-mode .pillar-card,
body.screenshot-mode .project-preview-card,
body.screenshot-mode .activity-card,
body.screenshot-mode .team-card {
  transform: none !important;
}
/* =========================================================
   ABOUT PAGE STORY LABEL FIX
   ========================================================= */

.sticky-label {
  position: static;
  top: auto;
}

.story-grid {
  align-items: start;
}

.story-content {
  margin-top: -4px;
}
/* =========================================================
   YPS DESIGN PATCH V3
   Typography + text structure polish
   Font pairing:
   - Manrope for headings / UI
   - Source Sans 3 for readable body copy
   ========================================================= */

:root {
  --font-heading: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Better global typography */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  color: rgba(34, 34, 34, 0.82);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.eyebrow,
.section-kicker,
.nav-link,
.mobile-nav-link,
.header-cta,
.btn,
.text-link,
.card-link,
.project-badge,
.info-box span,
.info-box strong,
.pillar-number,
.team-role,
.value-cloud span,
.stat-number,
.stat-label {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
h4 {
  color: var(--deep-teal);
  font-weight: 800;
}

/* Softer heading rhythm */
.hero-title,
.page-title {
  font-weight: 800;
  letter-spacing: -0.065em;
}

.hero-title {
  font-size: clamp(3.3rem, 5.75vw, 5.85rem);
  line-height: 0.98;
  max-width: 780px;
}

.page-title {
  font-size: clamp(3rem, 5.6vw, 5.35rem);
  line-height: 0.98;
  max-width: 780px;
}

.section-heading h2,
.intro-text h2,
.cta-panel h2 {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 4.3vw, 4.2rem);
}

.intro-text h2 {
  font-size: clamp(2.35rem, 4.45vw, 4.1rem);
}

.cta-panel h2 {
  font-size: clamp(2.25rem, 4.1vw, 4.05rem);
}

/* Better paragraph structure */
p {
  color: rgba(34, 34, 34, 0.72);
}

.hero-description,
.page-hero-text,
.intro-text p,
.project-body-grid p,
.story-content p,
.mission-card p:not(.eyebrow),
.approach-item p,
.project-preview-content p,
.team-info p:not(.team-role),
.footer-grid p {
  font-family: var(--font-body);
  font-weight: 400;
}

.hero-description {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.page-hero-text {
  max-width: 470px;
  font-size: 1.04rem;
  line-height: 1.74;
}

.intro-text p {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.78;
}

.story-content p {
  font-size: 1.12rem;
  line-height: 1.82;
  color: rgba(34, 34, 34, 0.76);
}

/* Eyebrows should be precise, not visually loud */
.eyebrow,
.section-kicker,
.project-meta,
.team-role {
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--teal);
}

/* Header polish */
.brand-logo {
  width: 116px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 800;
}

.header-cta {
  font-size: 0.84rem;
  font-weight: 800;
}

/* Hero layout balance */
.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 62px;
}

.home-hero .hero-content {
  max-width: 810px;
}

.phoenix-card {
  width: min(100%, 395px);
}

.stat-number {
  font-size: 2rem;
}

.stat-label {
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Page hero should feel editorial */
.page-hero {
  padding: 142px 0 92px;
}

.page-hero-grid {
  align-items: center;
}

/* Home intro section */
.intro-section {
  padding: 92px 0;
}

.intro-grid {
  align-items: start;
}

/* Pillars cards: make content easier to read */
.pillar-card {
  min-height: 270px;
  padding: 25px;
}

.pillar-card h3 {
  font-size: 1.12rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.pillar-card p {
  font-size: 0.94rem;
  line-height: 1.58;
}

/* Project preview cards */
.project-preview-content h3 {
  font-size: clamp(1.45rem, 2.25vw, 1.9rem);
  letter-spacing: -0.04em;
}

.project-preview-content p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* About page refinements */
.story-section {
  padding: 84px 0 92px;
}

.story-grid {
  grid-template-columns: 190px minmax(0, 800px);
  gap: 64px;
}

.sticky-label span {
  font-family: var(--font-heading);
  letter-spacing: 0.13em;
}

.mission-card h2 {
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  line-height: 1.04;
}

.mission-card h3 {
  font-size: clamp(1.5rem, 2.25vw, 2rem);
  line-height: 1.1;
}

.mission-card p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.7;
}

/* Approach section text */
.approach-grid .section-heading h2 {
  font-size: clamp(2.4rem, 4.25vw, 4.2rem);
}

.approach-item h3 {
  font-size: 1.24rem;
  letter-spacing: -0.025em;
}

.approach-item p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Projects page: stronger readable hierarchy */
.project-detail-card {
  max-width: 1120px;
}

.project-detail-header h2 {
  font-size: clamp(2.7rem, 4.65vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.project-info-grid {
  gap: 16px;
}

.info-box {
  padding: 19px;
}

.info-box span {
  font-size: 0.68rem;
  line-height: 1.2;
}

.info-box strong {
  font-size: 0.92rem;
  line-height: 1.32;
  font-weight: 800;
}

.project-body-grid h3,
.impact-panel h3 {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.project-body-grid p,
.styled-list li {
  font-size: 0.99rem;
  line-height: 1.68;
}

.activity-card {
  min-height: 200px;
}

.activity-card h4 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.activity-card p {
  font-size: 0.93rem;
  line-height: 1.58;
}

.impact-list li {
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Gallery notes should be quiet */
.gallery-note {
  font-size: 0.91rem;
  line-height: 1.5;
}

/* Team page */
.team-info h3 {
  font-size: 1.35rem;
}

.team-info p:not(.team-role) {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* CTA refinement */
.cta-panel {
  padding: clamp(34px, 5.4vw, 62px);
}

.cta-panel .eyebrow {
  color: var(--soft-aqua);
}

.cta-panel h2 {
  color: var(--white);
  max-width: 780px;
}

/* Footer typography */
.footer-grid h3 {
  font-family: var(--font-heading);
  font-weight: 800;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Make full-page screenshots feel better */
body.screenshot-mode .site-header {
  height: 70px;
}

body.screenshot-mode .brand-logo {
  width: 102px;
}

body.screenshot-mode .nav-link {
  font-size: 0.78rem;
}

body.screenshot-mode .header-cta {
  min-height: 40px;
  font-size: 0.78rem;
}

/* Responsive typography corrections */
@media (max-width: 1180px) {
  .hero-title,
  .page-title {
    font-size: clamp(3rem, 8vw, 5.2rem);
  }

  .pillar-grid {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  body {
    font-size: 16px;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.9rem, 11.5vw, 5rem);
    line-height: 1;
  }

  .hero-grid {
    gap: 40px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-content p {
    font-size: 1.06rem;
  }
}

@media (max-width: 640px) {
  .hero-title,
  .page-title {
    font-size: clamp(2.65rem, 14.5vw, 4.25rem);
    letter-spacing: -0.055em;
  }

  .section-heading h2,
  .intro-text h2,
  .cta-panel h2 {
    letter-spacing: -0.045em;
  }

  .page-hero {
    padding: 126px 0 70px;
  }

  .hero-grid {
    padding: 76px 0 62px;
  }

  .pillar-card,
  .activity-card,
  .mission-card,
  .approach-item {
    padding: 22px;
  }
}
/* =========================================================
   YPS DESIGN PATCH V4
   Stronger typography + refined page structure
   ========================================================= */

:root {
  --font-heading: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Force new font system */
html,
body {
  font-family: var(--font-body) !important;
}

button,
input,
textarea,
select {
  font-family: inherit !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.eyebrow,
.section-kicker,
.nav-link,
.mobile-nav-link,
.header-cta,
.btn,
.text-link,
.card-link,
.project-badge,
.info-box span,
.info-box strong,
.pillar-number,
.team-role,
.project-meta,
.value-cloud span,
.stat-number,
.stat-label,
.footer-grid h3 {
  font-family: var(--font-heading) !important;
}

/* Body readability */
body {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(34, 34, 34, 0.76);
}

p,
li {
  font-size: 1rem;
  line-height: 1.7;
}

/* Heading weight and spacing */
h1,
h2,
h3,
h4 {
  font-weight: 700;
}

.hero-title,
.page-title {
  font-weight: 700;
  letter-spacing: -0.07em;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(3.25rem, 5.6vw, 5.7rem);
  line-height: 0.96;
}

.page-title {
  max-width: 760px;
  font-size: clamp(3.1rem, 5.25vw, 5.1rem);
  line-height: 0.98;
}

/* Better hero paragraph hierarchy */
.hero-description,
.page-hero-text {
  font-size: 1.08rem;
  line-height: 1.68;
  color: rgba(34, 34, 34, 0.68);
}

.hero-description {
  max-width: 610px;
}

.page-hero-text {
  max-width: 470px;
}

/* More elegant page hero spacing */
.page-hero {
  padding: 136px 0 92px;
}

.page-hero-grid {
  align-items: center;
}

/* Home page intro refinement */
.intro-section {
  padding: 88px 0 96px;
}

.intro-grid {
  grid-template-columns: 180px minmax(0, 850px);
  justify-content: center;
}

.intro-text h2 {
  font-size: clamp(2.4rem, 4.15vw, 3.95rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.intro-text p {
  max-width: 730px;
  font-size: 1.05rem;
  line-height: 1.72;
}

/* Section titles */
.section-heading h2 {
  font-size: clamp(2.4rem, 4.1vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

/* Pillar section: more polished cards */
.pillars-section {
  padding: 92px 0 100px;
}

.pillar-grid {
  align-items: stretch;
}

.pillar-card {
  min-height: 255px;
  padding: 24px;
}

.pillar-card h3 {
  font-size: 1.04rem;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.pillar-card p {
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Home project preview */
.featured-projects-section {
  padding: 94px 0 100px;
}

.project-preview-content h3 {
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  line-height: 1.06;
}

.project-preview-content p {
  font-size: 0.97rem;
  line-height: 1.62;
}

/* CTA section refinement */
.cta-section {
  padding: 82px 0 96px;
}

.cta-panel {
  max-width: 1120px;
  margin-inline: auto;
  min-height: 260px;
  padding: clamp(34px, 5vw, 58px);
}

.cta-panel h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

/* About page: better story composition */
.story-section {
  padding: 82px 0 92px;
}

.story-grid {
  grid-template-columns: 160px minmax(0, 790px);
  gap: 58px;
  justify-content: center;
}

.story-content {
  gap: 24px;
}

.story-content p {
  font-size: 1.08rem;
  line-height: 1.78;
  color: rgba(34, 34, 34, 0.72);
}

/* Mission cards */
.mission-section {
  padding: 94px 0 100px;
}

.mission-grid {
  max-width: 1080px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.62fr);
  gap: 24px;
}

.mission-card {
  padding: clamp(28px, 4vw, 44px);
}

.mission-card.large-card {
  min-height: 430px;
}

.mission-card h2 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: 1.04;
}

.mission-card h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.mission-card p:not(.eyebrow) {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Approach section */
.approach-section {
  padding: 94px 0 102px;
}

.approach-grid {
  max-width: 1080px;
  margin-inline: auto;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
  gap: 66px;
}

.approach-grid .section-heading h2 {
  font-size: clamp(2.45rem, 4vw, 4rem);
  line-height: 1.02;
}

.approach-item {
  padding: 22px 26px;
}

.approach-item h3 {
  font-size: 1.16rem;
}

.approach-item p {
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Values section */
.values-section {
  padding: 92px 0 104px;
}

.value-cloud {
  max-width: 820px;
}

/* Projects page: make detailed cards easier to read */
.project-detail-section {
  padding: 84px 0 92px;
}

.project-detail-card {
  max-width: 1080px;
  padding: clamp(30px, 4.3vw, 52px);
}

.project-detail-header {
  margin-bottom: 32px;
}

.project-detail-header h2 {
  max-width: 780px;
  font-size: clamp(2.65rem, 4.55vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.project-badge {
  font-size: 0.72rem;
}

.project-info-grid {
  margin-bottom: 44px;
}

.info-box {
  min-height: 112px;
  padding: 18px;
}

.info-box span {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}

.info-box strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Project body */
.project-body-grid {
  gap: 52px;
}

.project-body-grid h3,
.impact-panel h3 {
  font-size: 1.48rem;
  line-height: 1.1;
}

.project-body-grid p,
.styled-list li {
  font-size: 0.97rem;
  line-height: 1.66;
}

/* Activities cards */
.activity-grid {
  margin-top: 48px;
  gap: 18px;
}

.activity-card {
  min-height: 190px;
  padding: 24px;
}

.activity-card h4 {
  font-size: 1rem;
  line-height: 1.18;
}

.activity-card p {
  font-size: 0.91rem;
  line-height: 1.55;
}

/* Impact panels */
.impact-panel {
  margin-top: 46px;
  padding: 32px;
}

.impact-list li {
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Gallery */
.gallery-section {
  margin-top: 48px;
}

.gallery-grid {
  gap: 16px;
}

.gallery-item {
  min-height: 190px;
}

/* Team page */
.team-section {
  padding: 84px 0 96px;
}

.team-grid {
  max-width: 1080px;
  margin-inline: auto;
  gap: 24px;
}

.team-photo {
  height: 300px;
}

.team-info {
  padding: 24px;
}

.team-info h3 {
  font-size: 1.28rem;
}

.team-info p:not(.team-role) {
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  padding-top: 68px;
}

.footer-grid {
  max-width: 1080px;
}

.footer-logo {
  width: 122px;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.96rem;
}

/* Screenshot mode font/header correction */
body.screenshot-mode .site-header {
  height: 68px;
}

body.screenshot-mode .brand-logo {
  width: 96px;
}

body.screenshot-mode .nav-link,
body.screenshot-mode .header-cta {
  font-size: 0.74rem;
}

/* Responsive correction */
@media (max-width: 1180px) {
  .hero-title,
  .page-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  body {
    font-size: 16px;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.85rem, 11vw, 4.9rem);
  }

  .intro-grid,
  .story-grid,
  .approach-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title,
  .page-title {
    font-size: clamp(2.55rem, 14vw, 4.1rem);
    letter-spacing: -0.055em;
  }

  .project-info-grid,
  .activity-grid,
  .impact-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .team-photo {
    height: 245px;
  }
}
/* =========================================================
   YPS DESIGN PATCH V5
   Public polish, cleaner placeholders, footer contrast,
   project navigation, about snapshot
   ========================================================= */

/* Hide development notes from public view */
.gallery-note {
  display: none !important;
}

/* Make placeholders look public/professional instead of showing file paths */
.placeholder-image span {
  font-size: 0 !important;
}

.placeholder-image span::after {
  content: "Image placeholder";
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.project-preview-image.placeholder-image span::after {
  content: "Project image";
}

.gallery-item.placeholder-image span::after {
  content: "Project photo";
}

.team-photo.placeholder-image span::after {
  content: "Team portrait";
}

/* Footer copyright visibility */
.footer-bottom p {
  color: rgba(255, 255, 255, 0.68) !important;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.16);
}

/* Cleaner footer spacing */
.footer-grid {
  align-items: start;
}

.footer-logo {
  opacity: 0.96;
}

/* Page hero refinement */
.page-hero {
  background:
    radial-gradient(circle at 12% 22%, rgba(166, 239, 230, 0.68), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(89, 220, 198, 0.25), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eefaf8 100%);
}

.page-hero-text {
  border-left: 2px solid rgba(89, 220, 198, 0.38);
  padding-left: 24px;
}

/* Home hero slight refinement */
.hero-title {
  max-width: 740px;
}

.hero-description {
  max-width: 590px;
}

/* About snapshot section */
.about-snapshot-section {
  padding: 0 0 96px;
  background: var(--white);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.snapshot-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  background:
    radial-gradient(circle at 92% 18%, rgba(89, 220, 198, 0.22), transparent 34%),
    var(--off-white);
  box-shadow: var(--shadow-sm);
}

.snapshot-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 28px solid rgba(89, 220, 198, 0.14);
  border-left-color: transparent;
  transform: rotate(-25deg);
}

.snapshot-card span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  color: var(--mint-aqua);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.snapshot-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  color: var(--deep-teal);
  font-size: 1.22rem;
  line-height: 1.15;
}

.snapshot-card p {
  position: relative;
  z-index: 2;
  max-width: 310px;
  color: rgba(34, 34, 34, 0.68);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Projects quick navigation */
.project-jump-section {
  padding: 34px 0 0;
  background: var(--soft-bg);
}

.project-jump-panel {
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.project-jump-label {
  padding-left: 12px;
  font-family: var(--font-heading);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(166, 239, 230, 0.34);
  color: var(--deep-teal);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.project-jump-links a:hover {
  transform: translateY(-2px);
  background: rgba(89, 220, 198, 0.36);
}

/* Project detail polish */
.project-detail-card {
  background:
    radial-gradient(circle at 96% 5%, rgba(89, 220, 198, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 250, 0.92));
}

.project-detail-section + .project-detail-section {
  padding-top: 96px;
}

/* Make project text a little easier to read */
.project-body-grid p,
.styled-list li,
.activity-card p,
.impact-list li {
  color: rgba(34, 34, 34, 0.7);
}

.impact-list li {
  color: rgba(255, 255, 255, 0.84);
}

/* Team cards should look more premium as placeholders */
.team-card {
  background: linear-gradient(180deg, #ffffff, #f8fcfb);
}

.team-photo {
  border: 0;
}

/* CTA text refinement */
.cta-panel h2 {
  max-width: 720px;
}

/* Responsive fixes */
@media (max-width: 980px) {
  .page-hero-text {
    border-left: 0;
    padding-left: 0;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .project-jump-panel {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
    padding: 20px;
  }

  .project-jump-label {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .snapshot-card {
    min-height: auto;
  }

  .project-jump-links {
    width: 100%;
  }

  .project-jump-links a {
    width: 100%;
    justify-content: center;
  }
}
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
/* =========================================================
   TEAM PAGE V2
   Founder feature card + member profile modal
   ========================================================= */

.founder-feature-card {
  max-width: 1080px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 90% 18%, rgba(89, 220, 198, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 250, 0.92));
  box-shadow: var(--shadow-md);
}

.founder-visual {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 36%, rgba(89, 220, 198, 0.24), transparent 35%),
    linear-gradient(135deg, var(--deep-teal), var(--teal));
}

.founder-photo {
  height: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 30px;
}

.founder-photo.placeholder-image span::after {
  content: "Founder portrait";
}

.founder-nameplate {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(6, 46, 50, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.founder-nameplate h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.founder-nameplate p {
  margin-top: 8px;
  color: var(--soft-aqua);
  font-family: var(--font-heading);
  font-weight: 700;
}

.founder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 46px);
}

.founder-content h2 {
  max-width: 520px;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.founder-content p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(34, 34, 34, 0.7);
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.founder-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(14, 77, 83, 0.12);
  border-radius: 999px;
  background: rgba(166, 239, 230, 0.28);
  color: var(--deep-teal);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.team-subheading {
  max-width: 1080px;
  margin: 0 auto 28px;
}

.team-subheading h3 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.team-member-card .team-info {
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.team-member-card .team-info p:not(.team-role) {
  margin-bottom: 20px;
}

.member-read-more {
  width: fit-content;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(14, 77, 83, 0.16);
  border-radius: 999px;
  background: rgba(166, 239, 230, 0.3);
  color: var(--deep-teal);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.member-read-more:hover {
  transform: translateY(-2px);
  background: rgba(89, 220, 198, 0.34);
  box-shadow: var(--shadow-sm);
}

.founder-button {
  margin-top: 34px;
  min-height: 50px;
  padding: 0 22px;
  background: var(--deep-teal);
  color: var(--white);
  border-color: var(--deep-teal);
  box-shadow: 0 18px 42px rgba(14, 77, 83, 0.22);
}

.founder-button:hover {
  background: var(--teal);
}

/* Modal */
.member-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

.member-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 29, 32, 0.82);
  backdrop-filter: blur(18px);
}

.member-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background:
    radial-gradient(circle at 84% 16%, rgba(89, 220, 198, 0.22), transparent 32%),
    linear-gradient(135deg, #07383d, var(--deep-teal));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

.member-modal-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 70px);
  z-index: 5;
  width: 50px;
  height: 50px;
  margin: 18px 18px 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep-teal);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.member-modal-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  padding: 0 clamp(24px, 5vw, 58px) clamp(28px, 5vw, 58px);
}

.member-modal-profile {
  position: sticky;
  top: 86px;
  height: fit-content;
}

.member-modal-photo {
  height: 360px;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.member-modal-photo.placeholder-image span::after {
  content: "Team portrait";
}

.member-modal-profile h3 {
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.member-modal-profile p {
  width: fit-content;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(166, 239, 230, 0.28);
  border-radius: 999px;
  color: var(--soft-aqua);
  font-family: var(--font-heading);
  font-weight: 700;
}

.member-modal-content {
  padding-top: 8px;
}

.member-modal-content .eyebrow {
  color: var(--soft-aqua);
}

.member-modal-content h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.065em;
  margin-bottom: 26px;
}

.member-modal-bio {
  display: grid;
  gap: 14px;
}

.modal-bio-card {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
}

.modal-bio-card h3 {
  margin-bottom: 10px;
  color: var(--mint-aqua);
  font-size: 1.05rem;
  line-height: 1.2;
}

.modal-bio-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.7;
}

body.member-modal-open {
  overflow: hidden;
}

body.screenshot-mode .member-modal {
  display: none !important;
}

@media (max-width: 980px) {
  .founder-feature-card {
    grid-template-columns: 1fr;
  }

  .founder-visual,
  .founder-photo {
    min-height: 360px;
  }

  .member-modal-grid {
    grid-template-columns: 1fr;
  }

  .member-modal-profile {
    position: static;
  }

  .member-modal-photo {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .founder-feature-card {
    padding: 18px;
    border-radius: 30px;
  }

  .founder-visual,
  .founder-photo {
    min-height: 300px;
    border-radius: 24px;
  }

  .founder-nameplate {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .founder-content {
    padding: 20px 6px 8px;
  }

  .member-modal {
    padding: 14px;
  }

  .member-modal-panel {
    border-radius: 26px;
  }

  .member-modal-grid {
    padding-inline: 18px;
  }
}
/* =========================================================
   REAL PROJECT GALLERY
   Real image thumbnails + lightbox arrows
   ========================================================= */

.real-gallery-grid {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-photo {
  position: relative;
  min-height: 185px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--deep-teal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 45%, rgba(4, 29, 32, 0.42)),
    radial-gradient(circle at 50% 45%, transparent 32%, rgba(14, 77, 83, 0.18));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-photo::after {
  content: "View";
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--deep-teal);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.gallery-photo:hover::before,
.gallery-photo:hover::after {
  opacity: 1;
}

.gallery-photo:hover::after {
  transform: translateY(0);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  min-height: 185px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-photo:hover img {
  transform: scale(1.06);
}

/* Lightbox image mode */
.gallery-lightbox {
  padding: 34px;
}

.image-lightbox-content {
  position: relative;
  width: min(1080px, calc(100vw - 150px));
  min-height: auto;
  max-height: calc(100vh - 90px);
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(6, 46, 50, 0.86);
}

.image-lightbox-content img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: rgba(4, 29, 32, 0.96);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(6, 46, 50, 0.96);
}

.lightbox-caption p,
.lightbox-caption span {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.lightbox-caption span {
  color: var(--soft-aqua);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 5001;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-teal);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.lightbox-arrow:hover {
  background: var(--soft-aqua);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow-prev {
  left: 28px;
}

.lightbox-arrow-next {
  right: 28px;
}

@media (max-width: 1180px) {
  .real-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .real-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-photo,
  .gallery-photo img {
    min-height: 155px;
  }

  .gallery-lightbox {
    padding: 18px;
  }

  .image-lightbox-content {
    width: calc(100vw - 36px);
  }

  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .lightbox-arrow-prev {
    left: 12px;
  }

  .lightbox-arrow-next {
    right: 12px;
  }

  .lightbox-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .real-gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   TEAM REAL IMAGES
   Replaces placeholder blocks with real member portraits
   ========================================================= */

.team-real-photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(89, 220, 198, 0.22), transparent 36%),
    linear-gradient(135deg, var(--deep-teal), var(--teal));
}

.team-real-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}

.team-card:hover .team-real-photo img,
.founder-feature-card:hover .team-real-photo img {
  transform: scale(1.045);
}

/* Founder image */
.founder-photo.team-real-photo {
  min-height: 430px;
  border-radius: 30px;
}

.founder-photo.team-real-photo img {
  min-height: 430px;
}

/* Normal team images */
.team-photo.team-real-photo {
  height: 300px;
  border-radius: 0;
}

/* Modal image */
.member-modal-photo.team-real-photo {
  height: 360px;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.member-modal-photo.team-real-photo img {
  object-fit: cover;
  object-position: center;
}

/* Optional: slightly dark overlay for founder nameplate readability */
.founder-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 29, 32, 0.02) 35%,
    rgba(4, 29, 32, 0.3) 100%
  );
}

.founder-nameplate {
  z-index: 2;
}

/* If some portraits crop badly, adjust individual image positions here */
.team-card:nth-of-type(1) .team-real-photo img {
  object-position: center;
}

.team-card:nth-of-type(2) .team-real-photo img {
  object-position: center;
}

.team-card:nth-of-type(3) .team-real-photo img {
  object-position: center;
}

.team-card:nth-of-type(4) .team-real-photo img {
  object-position: center;
}

.team-card:nth-of-type(5) .team-real-photo img {
  object-position: center;
}

.team-card:nth-of-type(6) .team-real-photo img {
  object-position: center;
}

@media (max-width: 980px) {
  .founder-photo.team-real-photo,
  .founder-photo.team-real-photo img {
    min-height: 360px;
  }

  .member-modal-photo.team-real-photo {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .founder-photo.team-real-photo,
  .founder-photo.team-real-photo img {
    min-height: 300px;
  }

  .team-photo.team-real-photo {
    height: 260px;
  }
}
/* =========================================================
   TEAM IMAGE RATIO FIX
   All team images are 900x1125, which equals 4:5
   This keeps portraits clean and consistent.
   ========================================================= */

/* Normal team cards */
.team-photo.team-real-photo {
  height: auto !important;
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.team-photo.team-real-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Founder image area */
.founder-visual {
  min-height: unset !important;
  aspect-ratio: 4 / 5;
}

.founder-photo.team-real-photo {
  height: 100% !important;
  min-height: unset !important;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
}

.founder-photo.team-real-photo img {
  width: 100%;
  height: 100%;
  min-height: unset !important;
  object-fit: cover;
  object-position: center;
}

/* Modal image */
.member-modal-photo.team-real-photo {
  height: auto !important;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}

.member-modal-photo.team-real-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile consistency */
@media (max-width: 980px) {
  .founder-visual,
  .founder-photo.team-real-photo,
  .member-modal-photo.team-real-photo,
  .team-photo.team-real-photo {
    aspect-ratio: 4 / 5;
    min-height: unset !important;
    height: auto !important;
  }
}

@media (max-width: 640px) {
  .team-photo.team-real-photo {
    aspect-ratio: 4 / 5;
  }

  .founder-photo.team-real-photo {
    aspect-ratio: 4 / 5;
  }

  .member-modal-photo.team-real-photo {
    aspect-ratio: 4 / 5;
  }
}
/* =========================================================
   HOME PROJECT COVER IMAGES
   Uses real project images on home project cards
   ========================================================= */

.project-cover {
  position: relative;
  overflow: hidden;
  background: var(--deep-teal);
}

.project-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.6s var(--ease),
    filter 0.35s var(--ease);
}

.project-preview-card:hover .project-cover img {
  transform: scale(1.055);
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 29, 32, 0.02) 30%, rgba(4, 29, 32, 0.28) 100%),
    radial-gradient(circle at 50% 40%, transparent 35%, rgba(14, 77, 83, 0.16));
  pointer-events: none;
}

@media (max-width: 640px) {
  .project-cover img {
    min-height: 245px;
  }
}
/* =========================================================
   MEMBER MODAL BLUR SYNC FIX
   Makes background blur appear instantly when Read More opens
   ========================================================= */

.member-modal {
  opacity: 1 !important;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.24s;
}

.member-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Backdrop blur should activate immediately */
.member-modal-backdrop {
  opacity: 0;
  background: rgba(4, 29, 32, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateZ(0);
  will-change: opacity, backdrop-filter;
  transition: opacity 0.12s ease-out;
}

.member-modal.is-open .member-modal-backdrop {
  opacity: 1;
}

/* Only animate the actual modal card */
.member-modal-panel {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  will-change: opacity, transform;
  transition:
    opacity 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.member-modal.is-open .member-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lightbox-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
/* Lightbox arrow centering polish */
.lightbox-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.lightbox-arrow-prev,
.lightbox-arrow-next {
  font-size: 2.35rem;
  font-weight: 500;
}

/* Optical correction for the ‹ › glyphs */
.lightbox-arrow {
  padding-bottom: 4px;
}
/* =========================================================
   Card CTA alignment polish
   - Aligns Team "Read more" buttons
   - Aligns Home project "View project" links
   ========================================================= */

/* Team page: only the 6 member cards, not the founder card */
.team-grid {
  align-items: stretch;
}

.team-member-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-member-card .team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-member-card .member-read-more {
  margin-top: auto;
  align-self: flex-start;
}

/* Home page: featured project cards */
.project-preview-grid {
  align-items: stretch;
}

.project-preview-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-preview-content .card-link {
  margin-top: auto;
  padding-top: 22px;
  align-self: flex-start;
}
/* =========================================================
   Header logo hover reveal
   Logo fades into organization name without visible wrapper
   ========================================================= */

.brand-logo-swap {
  width: 132px;
  min-height: 58px;
  display: inline-grid;
  place-items: center;
  overflow: visible;
}

.brand-logo-image {
  grid-area: 1 / 1;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.brand-name-reveal {
  grid-area: 1 / 1;
  color: var(--deep-teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.brand-logo-swap:hover .brand-logo-image,
.brand-logo-swap:focus-visible .brand-logo-image {
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  filter: blur(2px);
}

.brand-logo-swap:hover .brand-name-reveal,
.brand-logo-swap:focus-visible .brand-name-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (max-width: 640px) {
  .brand-logo-swap {
    width: 112px;
    min-height: 52px;
  }

  .brand-name-reveal {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
}
/* =========================================================
   YPS RESPONSIVE FOUNDATION PATCH
   Mobile + Tablet layout stabilization
   Add at the VERY BOTTOM of main.css
   ========================================================= */


/* ------------------------------
   1. Tablet foundation
   ------------------------------ */

@media (max-width: 1180px) {
  .container {
    width: min(100% - 40px, 1040px);
  }

  .section {
    padding: 82px 0;
  }

  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .story-grid,
  .approach-grid,
  .mission-grid,
  .project-body-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-grid {
    min-height: auto;
    padding: 92px 0 76px;
  }

  .hero-content,
  .intro-text,
  .story-content {
    max-width: 820px;
  }

  .hero-title,
  .page-title {
    max-width: 900px;
    font-size: clamp(3.4rem, 8vw, 5.7rem);
    line-height: 0.98;
  }

  .page-hero {
    min-height: auto;
    padding: 138px 0 82px;
  }

  .page-hero-text {
    max-width: 720px;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }
}


/* ------------------------------
   2. iPad / small tablet
   ------------------------------ */

@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body.menu-open {
    overflow: hidden;
  }

  .container {
    width: min(100% - 32px, 820px);
  }

  .desktop-nav,
  .header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .site-header {
    height: var(--header-height);
    background: rgba(247, 251, 250, 0.94);
    backdrop-filter: blur(18px);
  }

  .header-container {
    gap: 18px;
  }

  .brand-logo,
  .brand-logo-image {
    width: 104px;
  }

  .brand-logo-swap {
    width: 112px;
    min-height: 58px;
  }

  .brand-name-reveal {
    font-size: 0.62rem;
    letter-spacing: 0.055em;
  }

  /* Mobile menu overlay */
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: calc(var(--header-height) + 34px) 32px 44px;
    background:
      radial-gradient(circle at 80% 18%, rgba(89, 220, 198, 0.28), transparent 34%),
      linear-gradient(135deg, #062e32, var(--deep-teal));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition:
      opacity 0.35s var(--ease),
      visibility 0.35s var(--ease),
      transform 0.55s var(--ease);
  }

  .menu-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 18px 0;
    color: var(--white);
    font-size: clamp(2.35rem, 9vw, 4.8rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.065em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .mobile-nav-link.is-active {
    color: var(--soft-aqua);
  }

  /* General grid collapse */
  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .story-grid,
  .approach-grid,
  .mission-grid,
  .project-body-grid,
  .member-modal-grid {
    grid-template-columns: 1fr !important;
  }

  .split-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 74px 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero-grid {
    min-height: auto;
    gap: 46px;
    padding: 78px 0 70px;
  }

  .hero-title,
  .page-title {
    max-width: 100%;
    font-size: clamp(3rem, 10.5vw, 5.1rem);
    line-height: 1;
    letter-spacing: -0.06em;
  }

  .hero-description,
  .page-hero-text {
    max-width: 680px;
    font-size: 1.04rem;
    line-height: 1.75;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-visual {
    width: min(100%, 560px);
    min-height: 460px;
    margin-inline: auto;
  }

  .phoenix-card {
    width: min(78vw, 390px);
  }

  .floating-stat {
    max-width: 165px;
    padding: 15px;
  }

  .floating-stat-one {
    left: 4%;
    top: 12%;
  }

  .floating-stat-two {
    right: 4%;
    bottom: 10%;
  }

  .page-hero {
    min-height: auto;
    padding: 128px 0 76px;
  }

  .intro-grid,
  .story-grid,
  .approach-grid {
    gap: 34px;
  }

  .sticky-label {
    position: static;
  }

  .pillar-grid,
  .project-preview-grid,
  .mission-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .project-info-grid,
  .activity-grid,
  .gallery-grid,
  .impact-list {
    grid-template-columns: 1fr 1fr;
  }

  .project-detail-header {
    flex-direction: column;
  }

  .project-detail-card,
  .cta-panel,
  .founder-feature-card {
    border-radius: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------
   3. Mobile phones
   ------------------------------ */

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(100% - 28px, 100%);
  }

  .section {
    padding: 66px 0;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand-logo,
  .brand-logo-image {
    width: 92px;
  }

  .brand-logo-swap {
    width: 98px;
    min-height: 52px;
  }

  .brand-name-reveal {
    font-size: 0.56rem;
    line-height: 1.12;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .mobile-nav {
    justify-content: center;
    padding: calc(var(--header-height) + 24px) 24px 38px;
  }

  .mobile-nav-link {
    padding: 15px 0;
    font-size: clamp(2.25rem, 14vw, 4.25rem);
    line-height: 0.96;
  }

  .hero-grid {
    gap: 34px;
    padding: 58px 0 58px;
  }

  .hero-content {
    position: relative;
    z-index: 3;
  }

  .eyebrow {
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.75rem, 14vw, 4.15rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .hero-description,
  .page-hero-text,
  .intro-text p,
  .story-content p {
    font-size: 1rem;
    line-height: 1.78;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    min-height: 350px;
    margin-top: 6px;
  }

  .phoenix-card {
    width: min(82vw, 305px);
  }

  .phoenix-card::before {
    border-width: 24px;
  }

  .floating-stat {
    max-width: 140px;
    padding: 13px;
    border-radius: 18px;
  }

  .floating-stat-one {
    left: 0;
    top: 2%;
  }

  .floating-stat-two {
    right: 0;
    bottom: 4%;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .page-hero {
    padding: 118px 0 66px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .intro-text h2,
  .cta-panel h2 {
    font-size: clamp(2rem, 10.5vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
  }

  .section-heading h3 {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
  }

  .pillar-grid,
  .project-preview-grid,
  .project-info-grid,
  .activity-grid,
  .gallery-grid,
  .impact-list,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .pillar-card {
    min-height: auto;
    gap: 36px;
    padding: 24px;
  }

  .project-preview-card,
  .team-card,
  .mission-card,
  .approach-item,
  .activity-card,
  .info-box {
    border-radius: 26px;
  }

  .project-preview-image {
    height: auto;
  }

  .project-cover img {
    min-height: 240px;
  }

  .project-preview-content,
  .team-info {
    padding: 24px;
  }

  .project-detail-card {
    padding: 24px;
    border-radius: 30px;
  }

  .project-detail-header h2 {
    font-size: clamp(2.1rem, 12vw, 3.35rem);
  }

  .project-body-grid {
    gap: 28px;
  }

  .project-body-grid.second-grid {
    margin-top: 34px;
  }

  .activity-grid,
  .impact-panel {
    margin-top: 36px;
  }

  .gallery-section {
    margin-top: 42px;
  }

  .real-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .real-gallery-grid .gallery-item {
    min-height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .gallery-photo img {
    border-radius: 18px;
  }

  .cta-panel {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border-radius: 30px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    margin-top: 34px;
  }
}


/* ------------------------------
   4. Very small phones
   ------------------------------ */

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.5rem, 15vw, 3.65rem);
  }

  .mobile-nav-link {
    font-size: clamp(2.05rem, 15vw, 3.75rem);
  }

  .hero-visual {
    min-height: 320px;
  }

  .phoenix-card {
    width: min(84vw, 280px);
  }

  .floating-stat {
    max-width: 128px;
    padding: 12px;
  }

  .stat-number {
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .real-gallery-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   MOBILE MENU FINAL FIX
   Turns the mobile menu from a giant fullscreen overlay
   into a clean dropdown panel under the header.
   Add at the VERY BOTTOM of main.css.
   ========================================================= */

@media (max-width: 980px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    overflow: visible !important;
    z-index: 3000;
  }

  .header-container {
    position: relative;
    z-index: 3002;
  }

  .menu-toggle {
    position: relative;
    z-index: 3003;
  }

  .mobile-nav {
    position: fixed !important;
    top: calc(var(--header-height) + 12px) !important;
    left: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    inset: auto 16px auto 16px !important;

    z-index: 3001 !important;

    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;

    width: auto !important;
    max-height: calc(100svh - var(--header-height) - 28px);
    overflow-y: auto !important;

    padding: 12px !important;
    border: 1px solid rgba(14, 77, 83, 0.14);
    border-radius: 26px;

    background:
      radial-gradient(circle at 90% 0%, rgba(166, 239, 230, 0.38), transparent 34%),
      rgba(247, 251, 250, 0.96) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 24px 70px rgba(14, 77, 83, 0.18);

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-14px) scale(0.98) !important;

    transition:
      opacity 0.24s var(--ease),
      transform 0.32s var(--ease),
      visibility 0s linear 0.32s !important;
  }

  .menu-open .mobile-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    transition-delay: 0s !important;
  }

  .mobile-nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
    padding: 0 18px !important;

    border: 1px solid rgba(14, 77, 83, 0.1);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.7);
    color: var(--deep-teal) !important;

    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem !important;
    font-weight: 800;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;

    box-shadow: 0 10px 26px rgba(14, 77, 83, 0.055);

    transition:
      background 0.25s var(--ease),
      border-color 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .mobile-nav-link::after {
    content: "→";
    color: var(--teal);
    font-size: 1rem;
    opacity: 0.7;
    transform: translateX(0);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible {
    background: rgba(166, 239, 230, 0.38);
    border-color: rgba(14, 77, 83, 0.2);
    transform: translateY(-1px);
  }

  .mobile-nav-link:hover::after,
  .mobile-nav-link:focus-visible::after {
    opacity: 1;
    transform: translateX(3px);
  }

  .mobile-nav-link.is-active {
    background: rgba(89, 220, 198, 0.22) !important;
    border-color: rgba(14, 77, 83, 0.22);
    color: var(--deep-teal) !important;
  }
}

@media (max-width: 640px) {
  .mobile-nav {
    top: calc(var(--header-height) + 10px) !important;
    left: 14px !important;
    right: 14px !important;
    inset: auto 14px auto 14px !important;
    padding: 10px !important;
    border-radius: 22px;
  }

  .mobile-nav-link {
    min-height: 54px;
    padding: 0 16px !important;
    border-radius: 16px;
    font-size: 0.96rem !important;
  }
}
/* =========================================================
   MOBILE MENU POSITION FIX
   Fixes dropdown overlap with logo/header.
   Add at the VERY BOTTOM of main.css.
   ========================================================= */

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    overflow: visible !important;
    z-index: 5000 !important;
  }

  .header-container {
    position: relative;
    z-index: 5002 !important;
  }

  .menu-toggle {
    position: relative;
    z-index: 5003 !important;
  }

  .mobile-nav {
    inset: unset !important;

    position: fixed !important;
    top: calc(var(--header-height) + 12px) !important;
    left: 16px !important;
    right: 16px !important;
    bottom: auto !important;

    z-index: 4999 !important;

    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;

    width: auto !important;
    max-height: calc(100svh - var(--header-height) - 32px);
    overflow-y: auto !important;

    padding: 12px !important;
    margin: 0 !important;

    border: 1px solid rgba(14, 77, 83, 0.14);
    border-radius: 24px;

    background:
      radial-gradient(circle at 90% 0%, rgba(166, 239, 230, 0.4), transparent 34%),
      rgba(247, 251, 250, 0.97) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 24px 70px rgba(14, 77, 83, 0.18);

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(0.985) !important;

    transition:
      opacity 0.24s var(--ease),
      transform 0.32s var(--ease),
      visibility 0s linear 0.32s !important;
  }

  .menu-open .mobile-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    transition-delay: 0s !important;
  }

  .mobile-nav-link {
    width: 100% !important;
    min-height: 56px !important;
    padding: 0 18px !important;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    border: 1px solid rgba(14, 77, 83, 0.1) !important;
    border-radius: 16px !important;

    background: rgba(255, 255, 255, 0.76) !important;
    color: var(--deep-teal) !important;

    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;

    transform: none !important;
  }

  .mobile-nav-link.is-active {
    background: rgba(166, 239, 230, 0.55) !important;
    border-color: rgba(14, 77, 83, 0.22) !important;
  }
}

@media (max-width: 640px) {
  .mobile-nav {
    top: calc(var(--header-height) + 10px) !important;
    left: 12px !important;
    right: 12px !important;
    max-height: calc(100svh - var(--header-height) - 26px);
    padding: 10px !important;
    border-radius: 22px;
  }

  .mobile-nav-link {
    min-height: 54px !important;
    padding: 0 16px !important;
    font-size: 0.96rem !important;
  }
}
/* =========================================================
   YPS RESPONSIVE POLISH PATCH
   Home, page heroes, projects, team, CTA, footer
   Add at the VERY BOTTOM of main.css
   ========================================================= */


/* ------------------------------
   Tablet polish
   ------------------------------ */

@media (max-width: 980px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .split-heading {
    gap: 16px;
  }

  /* Home hero */
  .home-hero .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 44px;
    min-height: auto;
    padding: 82px 0 72px;
  }

  .home-hero .hero-content {
    order: 1;
    max-width: 720px;
  }

  .home-hero .hero-visual {
    order: 2;
    width: min(100%, 560px);
    min-height: 440px;
    margin-inline: auto;
  }

  .home-hero .hero-title {
    max-width: 760px;
    font-size: clamp(3.4rem, 10vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
  }

  .home-hero .hero-description {
    max-width: 620px;
    font-size: 1.04rem;
    line-height: 1.75;
  }

  .home-hero .hero-actions {
    margin-top: 30px;
  }

  /* Page heroes: About, Projects, Team */
  .page-hero {
    padding: 124px 0 76px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    align-items: start;
  }

  .page-title {
    max-width: 780px;
    font-size: clamp(3.1rem, 10vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
  }

  .page-hero-text {
    max-width: 680px;
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Project index */
  .project-jump-section {
    padding-top: 24px;
  }

  .project-jump-panel {
    border-radius: 30px;
  }

  .project-jump-links {
    width: 100%;
  }

  .project-jump-links a {
    flex: 1 1 220px;
    justify-content: center;
  }

  /* Project detail cards */
  .project-detail-section {
    padding: 72px 0;
  }

  .project-detail-section + .project-detail-section {
    padding-top: 72px;
  }

  .project-detail-card {
    padding: 34px;
    border-radius: 34px;
  }

  .project-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .project-badge {
    align-self: flex-start;
  }

  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .project-body-grid,
  .project-body-grid.second-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    margin-top: 34px;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-list {
    grid-template-columns: 1fr;
  }

  /* Team */
  .founder-feature-card {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 24px;
    border-radius: 34px;
  }

  .founder-content h2 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px;
  }

  /* CTA */
  .cta-panel {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}


/* ------------------------------
   Mobile polish
   ------------------------------ */

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 100%);
  }

  .section {
    padding: 64px 0;
  }

  .eyebrow,
  .section-kicker,
  .project-jump-label,
  .team-role {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  /* Home hero */
  .home-hero .hero-grid {
    gap: 28px;
    padding: 54px 0 58px;
  }

  .home-hero .hero-title {
    max-width: 100%;
    font-size: clamp(2.95rem, 13.2vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.052em;
  }

  .home-hero .hero-description {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.72;
  }

  .home-hero .hero-actions {
    margin-top: 28px;
    gap: 12px;
  }

  .home-hero .btn {
    min-height: 50px;
  }

  .home-hero .hero-visual {
    min-height: 340px;
    margin-top: 6px;
  }

  .home-hero .phoenix-card {
    width: min(82vw, 300px);
  }

  .home-hero .phoenix-card::before {
    border-width: 22px;
  }

  .home-hero .floating-stat {
    max-width: 138px;
    padding: 12px;
    border-radius: 18px;
  }

  .home-hero .floating-stat-one {
    left: 0;
    top: 2%;
  }

  .home-hero .floating-stat-two {
    right: 0;
    bottom: 3%;
  }

  .home-hero .stat-number {
    font-size: 1.55rem;
  }

  .home-hero .stat-label {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  /* Page heroes */
  .page-hero {
    padding: 112px 0 62px;
  }

  .page-title {
    font-size: clamp(2.7rem, 12.8vw, 3.95rem);
    line-height: 1.04;
    letter-spacing: -0.052em;
  }

  .page-hero-text {
    font-size: 1rem;
    line-height: 1.72;
  }

  /* Section headings */
  .section-heading h2,
  .intro-text h2,
  .cta-panel h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.052em;
  }

  .section-heading h3 {
    font-size: clamp(1.75rem, 8.8vw, 2.45rem);
    line-height: 1.08;
  }

  /* Intro / story */
  .intro-grid,
  .story-grid,
  .approach-grid {
    gap: 24px;
  }

  .intro-text p,
  .story-content p,
  .approach-item p,
  .mission-card p,
  .project-body-grid p,
  .styled-list li {
    font-size: 1rem;
    line-height: 1.72;
  }

  /* Cards */
  .pillar-card,
  .project-preview-card,
  .mission-card,
  .approach-item,
  .activity-card,
  .team-card,
  .snapshot-card {
    border-radius: 26px;
  }

  .pillar-card {
    gap: 28px;
    padding: 24px;
  }

  .project-preview-content,
  .team-info {
    padding: 24px;
  }

  /* Project index */
  .project-jump-section {
    padding: 18px 0 0;
  }

  .project-jump-panel {
    padding: 18px;
    border-radius: 28px;
  }

  .project-jump-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-jump-links a {
    width: 100%;
    min-height: 44px;
  }

  /* Project detail */
  .project-detail-section {
    padding: 58px 0;
  }

  .project-detail-section + .project-detail-section {
    padding-top: 58px;
  }

  .project-detail-card {
    padding: 22px;
    border-radius: 28px;
  }

  .project-detail-header {
    margin-bottom: 26px;
  }

  .project-detail-header h2 {
    font-size: clamp(2rem, 10.5vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.052em;
  }

  .project-badge {
    padding: 10px 14px;
    font-size: 0.68rem;
  }

  .project-info-grid,
  .activity-grid,
  .impact-list {
    grid-template-columns: 1fr !important;
  }

  .info-box {
    min-height: auto;
    padding: 16px;
  }

  .project-body-grid h3,
  .impact-panel h3 {
    font-size: 1.55rem;
  }

  .activity-card {
    min-height: auto;
    padding: 22px;
  }

  .impact-panel {
    margin-top: 38px;
    padding: 24px;
    border-radius: 26px;
  }

  .gallery-section {
    margin-top: 42px;
  }

  .real-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .real-gallery-grid .gallery-item {
    aspect-ratio: 1 / 1;
    min-height: auto;
    border-radius: 18px;
  }

  .gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
  }

  /* Team */
  .founder-feature-card {
    margin-bottom: 54px;
    padding: 18px;
    border-radius: 28px;
  }

  .founder-content {
    padding: 6px;
  }

  .founder-content h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .founder-tags {
    gap: 8px;
  }

  .founder-tags span {
    font-size: 0.76rem;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .team-subheading {
    margin-bottom: 24px;
  }

  /* CTA */
  .cta-section {
    padding-top: 28px;
  }

  .cta-panel {
    padding: 28px;
    border-radius: 28px;
  }

  .cta-panel .btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 58px 0 24px;
  }

  .footer-grid {
    gap: 30px;
  }

  .footer-bottom {
    margin-top: 32px;
  }
}


/* ------------------------------
   Very small phone polish
   ------------------------------ */

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .home-hero .hero-title,
  .page-title {
    font-size: clamp(2.55rem, 13.5vw, 3.45rem);
  }

  .home-hero .hero-visual {
    min-height: 315px;
  }

  .home-hero .phoenix-card {
    width: min(82vw, 270px);
  }

  .home-hero .floating-stat {
    max-width: 126px;
    padding: 11px;
  }

  .home-hero .stat-number {
    font-size: 1.42rem;
  }

  .home-hero .stat-label {
    font-size: 0.64rem;
  }

  .project-detail-card {
    padding: 20px;
  }

  .real-gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
/* =========================================================
   Gallery performance polish
   Uses optimized thumbnails and delays offscreen rendering
   ========================================================= */

.project-detail-section {
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.gallery-photo img,
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fix impact list bullet alignment on Projects page */
.impact-list,
.project-impact-list,
.project-impact ul,
.impact-banner ul {
  list-style: none;
  padding-left: 0;
}

.impact-list li,
.project-impact-list li,
.project-impact ul li,
.impact-banner ul li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
}

.impact-list li::before,
.project-impact-list li::before,
.project-impact ul li::before,
.impact-banner ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55d6c8;
}