/* ==========================================================================
   Components — buttons, hero, sections, programs, values
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--ink {
  background: var(--black);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--grey-600);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background: var(--grey-100);
}

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

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.7rem;
}

.btn--lg {
  padding: 1.15rem 2.25rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Hero — minimal, no image, pure typography
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background: var(--white);
}

/* Brand pattern — top right of hero, scales responsively */
.hero__pattern {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: 30vw;
  object-fit: contain;
  object-position: top right;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
  will-change: transform, opacity;
}

@media (max-width: 1280px) {
  .hero__pattern {
    height: 80%;
    max-width: 28vw;
  }
}

@media (max-width: 1024px) {
  .hero__pattern {
    top: 7vh;
    height: 72%;
    max-width: 38vw;
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .hero__pattern {
    top: 9vh;
    height: 50%;
    max-width: 46vw;
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .hero__pattern {
    top: 11vh;
    height: 38%;
    max-width: 50vw;
    opacity: 0.55;
  }
}

/* Mobile-only: tighten hero height + smaller hero buttons */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: clamp(1.75rem, 4vh, 2.5rem);
  }

  .hero__actions .btn--lg {
    padding: 0.78rem 1.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero__actions .btn--lg svg {
    width: 12px;
    height: 12px;
  }

  .hero__sub {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
  }
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero__meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line > span {
  display: inline-block;
  will-change: transform;
}

/* No-GSAP fallback — show content immediately */
.no-gsap .hero__title-line > span,
.no-gsap .hero__sub,
.no-gsap .hero__actions,
.no-gsap .hero__bg-text {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.hero__sub {
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.45;
  color: var(--grey-500);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero__bg-text {
  position: absolute;
  bottom: -2vw;
  left: -1vw;
  right: -1vw;
  font-size: clamp(8rem, 26vw, 32rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--paper);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500);
  z-index: 2;
}

@media (min-width: 768px) {
  .hero__scroll {
    display: inline-flex;
  }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--grey-400);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(-100%);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ==========================================================================
   Section heading
   ========================================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 880px;
}

.section-head__index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-400);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-head__index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grey-400);
}

.section-head__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.section-head__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.4rem);
  line-height: 1.4;
  color: var(--grey-500);
  max-width: 60ch;
  margin-top: 0.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.section-head__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-500);
  max-width: 56ch;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Mission strip — large editorial pull
   ========================================================================== */

.mission {
  background: var(--off-white);
  padding-block: clamp(5rem, 12vw, 10rem);
  border-block: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.mission__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .mission__inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
  }
}

.mission__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-400);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mission__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grey-400);
}

.mission__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--black);
}

.mission__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-500);
  max-width: 50ch;
}

.mission__body strong {
  color: var(--black);
  font-weight: 600;
}

/* Word-by-word reveal */
.split-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-words .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.split-words.is-visible .word > span {
  transform: translateY(0);
}

.split-words.is-visible .word:nth-child(1) > span {
  transition-delay: 30ms;
}
.split-words.is-visible .word:nth-child(2) > span {
  transition-delay: 90ms;
}
.split-words.is-visible .word:nth-child(3) > span {
  transition-delay: 150ms;
}
.split-words.is-visible .word:nth-child(4) > span {
  transition-delay: 210ms;
}
.split-words.is-visible .word:nth-child(5) > span {
  transition-delay: 270ms;
}
.split-words.is-visible .word:nth-child(6) > span {
  transition-delay: 330ms;
}
.split-words.is-visible .word:nth-child(7) > span {
  transition-delay: 390ms;
}
.split-words.is-visible .word:nth-child(8) > span {
  transition-delay: 450ms;
}
.split-words.is-visible .word:nth-child(9) > span {
  transition-delay: 510ms;
}
.split-words.is-visible .word:nth-child(10) > span {
  transition-delay: 570ms;
}
.split-words.is-visible .word:nth-child(11) > span {
  transition-delay: 630ms;
}
.split-words.is-visible .word:nth-child(12) > span {
  transition-delay: 690ms;
}
.split-words.is-visible .word:nth-child(13) > span {
  transition-delay: 750ms;
}
.split-words.is-visible .word:nth-child(14) > span {
  transition-delay: 810ms;
}
.split-words.is-visible .word:nth-child(15) > span {
  transition-delay: 870ms;
}
.split-words.is-visible .word:nth-child(n + 16) > span {
  transition-delay: 920ms;
}

/* ==========================================================================
   About / story block — editorial 2-column
   ========================================================================== */

.story {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1fr;
  }
}

.story__col p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--grey-500);
  margin-bottom: 1.25rem;
}

.story__col p:last-child {
  margin-bottom: 0;
}

.story__col p strong {
  color: var(--black);
  font-weight: 600;
}

.story__col--lead p:first-child {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--black);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Programs — sticky scrub list
   ========================================================================== */

.programs {
  background: var(--black);
  color: var(--white);
}

.programs .section-head__index {
  color: var(--grey-300);
}

.programs .section-head__index::before {
  background: var(--grey-300);
}

.programs .section-head__title {
  color: var(--white);
}

.programs .section-head__sub {
  color: var(--grey-300);
}

.programs__list {
  display: flex;
  flex-direction: column;
}

.program {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
  align-items: center;
  position: relative;
  transition: background var(--transition);
}

.program:last-child {
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 900px) {
  .program {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
  }
}

.program__index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-300);
  align-self: start;
}

.program__title-wrap {
  position: relative;
}

.program__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: transform var(--transition);
}

.program:hover .program__title {
  transform: translateX(8px);
}

.program__sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--grey-300);
  margin-top: 1.25rem;
  max-width: 50ch;
}

.program__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey-600);
  filter: grayscale(1);
  transition: filter var(--transition), transform var(--transition);
  transform: scale(0.96);
}

.program:hover .program__media {
  filter: grayscale(0);
  transform: scale(1);
}

.program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ==========================================================================
   Values — 6 numbered cards
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value {
  padding: clamp(2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  transition: background var(--transition);
  position: relative;
}

.value:hover {
  background: var(--paper);
}

.value::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--black);
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.value:hover::after {
  width: 100%;
}

.value__index {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--grey-300);
  margin-bottom: 0.75rem;
}

.value__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.value__body {
  color: var(--grey-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   Stats / impact band
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.stat__value {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  color: var(--white);
}

.stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 0.65rem;
}

.stat__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--grey-300);
  max-width: 30ch;
}

/* ==========================================================================
   Marquee (rolling text accent)
   ========================================================================== */

.marquee {
  overflow: hidden;
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: 1.75rem;
}

.marquee--ink {
  background: var(--black);
  color: var(--white);
  border-color: var(--line-dark);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}

.marquee__item {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee__item::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  margin-left: 3rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Reveal — initial states (GSAP animates from here)
   ========================================================================== */

.reveal {
  will-change: opacity, transform;
}

/* Without GSAP, ensure visibility (set by JS via .no-gsap on <body>) */
.no-gsap .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* GSAP word-split utility — used for ScrollTrigger title reveals */
.g-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}

.g-word__inner {
  display: inline-block;
  will-change: transform;
}

/* GSAP char-split utility — for letter-by-letter reveals */
.g-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 0.95;
}

.g-char__inner {
  display: inline-block;
  will-change: transform;
}

/* ==========================================================================
   Custom cursor — follows pointer with mix-blend-mode invert
   ========================================================================== */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: var(--white);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border: 1.5px solid var(--white);
  background: transparent;
  transition: width var(--transition), height var(--transition),
    margin var(--transition), opacity var(--transition);
}

.cursor-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.cursor-ring.is-link {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
  border-color: var(--white);
}

.cursor-ring.is-link .cursor-ring__label {
  opacity: 1;
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Hide native cursor on hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: none;
  }
}

/* Magnetic button helper */
.btn--magnetic,
.btn {
  will-change: transform;
}

/* ==========================================================================
   Skew helper for velocity-driven scroll
   ========================================================================== */

.skew-track {
  will-change: transform;
}

/* Programs media starts hidden (GSAP reveals via clip-path) */
.program__media {
  will-change: clip-path, transform;
}

.program__media img {
  will-change: transform;
}

/* ==========================================================================
   CTA closing band
   ========================================================================== */

.closing {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(6rem, 14vw, 14rem);
  position: relative;
  overflow: hidden;
}

.closing__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.closing__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

.closing__sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--grey-300);
  max-width: 56ch;
  margin-bottom: 3rem;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.closing__bg {
  position: absolute;
  inset: auto -2vw -8vw;
  font-size: clamp(8rem, 22vw, 26rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Brand watermark — blurred logo as branding atmosphere
   ========================================================================== */

.brand-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  filter: blur(36px);
  opacity: 0.06;
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 1484 / 471;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-watermark--hero {
  bottom: -22vh;
  right: -18vw;
  filter: blur(40px);
  opacity: 0.08;
}

.brand-watermark--mission {
  top: -14vh;
  left: -14vw;
  width: 70vw;
  filter: blur(32px);
  opacity: 0.05;
}

.brand-watermark--closing {
  top: -15vh;
  left: -12vw;
  width: 80vw;
  filter: invert(1) blur(48px);
  opacity: 0.08;
  mix-blend-mode: screen;
}

.brand-watermark--closing-2 {
  bottom: -25vh;
  right: -15vw;
  width: 70vw;
  filter: invert(1) blur(60px);
  opacity: 0.05;
  mix-blend-mode: screen;
}

.brand-watermark--footer {
  bottom: -30%;
  right: -10vw;
  width: 60vw;
  max-width: 900px;
  filter: invert(1) blur(50px);
  opacity: 0.06;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  .brand-watermark {
    filter: blur(24px);
  }
  .brand-watermark--hero {
    bottom: -10vh;
    right: -30vw;
    width: 130vw;
  }
  .brand-watermark--mission {
    top: -8vh;
    left: -20vw;
    width: 110vw;
  }
  .brand-watermark--closing {
    top: -8vh;
    left: -20vw;
    width: 130vw;
  }
}

/* ==========================================================================
   Misc helpers
   ========================================================================== */

.no-scroll {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
