/* ===================================================================
   Kneyzus Energy — Design System
   =================================================================== */

:root {
  --c-ocean: #0a2540;
  --c-ocean-deep: #06192d;
  --c-ocean-ink: #04101e;
  --c-gold: #d4b13d;
  --c-gold-soft: #ead97a;
  --c-yellow: #f4c724;
  --c-teal: #2589b0;
  --c-teal-deep: #1b7ba6;
  --c-green: #3b8a36;
  --c-algae: #3d8a6b;
  --c-sand: #f5efe1;
  --c-foam: #f8f5ed;
  --c-paper: #fbf9f2;
  --c-line: rgba(10, 37, 64, 0.12);
  --c-line-strong: rgba(10, 37, 64, 0.22);
  --c-text: #1a2c3f;
  --c-text-soft: #4a5a6b;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-paper);
  /* overflow-x: clip (NOT hidden) is critical:
     `hidden` implicitly forces overflow-y: auto on the body,
     which breaks position: sticky for ALL descendants. `clip` doesn't. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ============== Shared layout ============== */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__sub { color: var(--c-text-soft); margin-top: 16px; max-width: 580px; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  display: inline-block;
  margin-bottom: 20px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--c-gold);
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ocean);
}
.display em { font-style: italic; color: var(--c-gold); font-weight: 500; }

.muted { color: var(--c-text-soft); font-weight: 400; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-ocean);
  color: var(--c-foam);
}
.btn--primary:hover {
  background: var(--c-gold);
  color: var(--c-ocean);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ocean);
  border-color: var(--c-line-strong);
}
.btn--ghost:hover {
  border-color: var(--c-ocean);
  background: var(--c-ocean);
  color: var(--c-foam);
}
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--c-ocean);
  border-bottom: 1px solid var(--c-line-strong);
  padding-bottom: 4px;
  transition: all 0.3s var(--ease);
}
.link-underline:hover { color: var(--c-gold); border-bottom-color: var(--c-gold); }

/* ============== Nav ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(251, 249, 242, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(251, 249, 242, 0.92);
}
.nav__brand {
  display: flex;
  align-items: center;
  font-size: 0;
  line-height: 0;
}
.nav__logo {
  height: 36px;
  width: auto;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.nav__brand:hover .nav__logo { transform: translateY(-1px); }
@media (max-width: 640px) {
  .nav__logo { height: 30px; }
}

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover { color: var(--c-ocean); background: rgba(10, 37, 64, 0.05); }
.nav__cta {
  background: var(--c-ocean);
  color: var(--c-foam) !important;
  margin-left: 8px;
}
.nav__cta:hover { background: var(--c-gold) !important; color: var(--c-ocean) !important; }

.nav__progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-algae) 100%);
  transition: width 0.1s linear;
}

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 1200px 700px at 30% 10%, rgba(76, 153, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 80% 30%, rgba(20, 100, 200, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, #001936 0%, #002a6b 25%, #0d4ea8 55%, #0a2d5e 85%, #04101e 100%);
  color: var(--c-foam);
  overflow: hidden;
  isolation: isolate;
}
.hero__ocean {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.hero__skyflash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(180, 220, 255, 0.85) 0%, rgba(130, 180, 255, 0.4) 25%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: skyflash 9s infinite;
  animation-delay: 1.4s;
}
.hero__bolts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__bolt {
  position: absolute;
  top: 0;
  width: 110px;
  opacity: 0;
  filter:
    drop-shadow(0 0 6px rgba(255, 250, 220, 0.95))
    drop-shadow(0 0 22px rgba(160, 210, 255, 0.85))
    drop-shadow(0 0 60px rgba(60, 130, 255, 0.55));
}
.hero__bolt path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.hero__bolt--1 {
  left: 11%;  height: 72%;
  animation: bolt-flash 9s infinite;
  animation-delay: 1.5s;
}
.hero__bolt--2 {
  left: 66%;  height: 56%;  width: 86px;
  animation: bolt-flash 9s infinite;
  animation-delay: 4.4s;
}
.hero__bolt--3 {
  left: 42%;  height: 84%;  width: 124px;
  animation: bolt-flash 11s infinite;
  animation-delay: 7.1s;
}
.hero__bolt--1 .bolt-trunk,
.hero__bolt--1 .bolt-branch { animation: bolt-draw 9s infinite; animation-delay: 1.5s; }
.hero__bolt--2 .bolt-trunk,
.hero__bolt--2 .bolt-branch { animation: bolt-draw 9s infinite; animation-delay: 4.4s; }
.hero__bolt--3 .bolt-trunk,
.hero__bolt--3 .bolt-branch { animation: bolt-draw 11s infinite; animation-delay: 7.1s; }

@keyframes bolt-flash {
  0%   { opacity: 0; }
  0.4% { opacity: 1; }
  1.5% { opacity: 0.7; }
  2%   { opacity: 1; }
  3.2% { opacity: 0.35; }
  3.8% { opacity: 1; }
  5%   { opacity: 0.4; }
  8%   { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes bolt-draw {
  0%   { stroke-dashoffset: 900; }
  0.6% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bolt { opacity: 0.18; animation: none; }
  .hero__bolt path { stroke-dashoffset: 0 !important; animation: none; }
}
@keyframes skyflash {
  0%   { opacity: 0; }
  1%   { opacity: 0.85; }
  3%   { opacity: 0.25; }
  4%   { opacity: 0.7; }
  6%   { opacity: 0; }
  19%  { opacity: 0; }
  20%  { opacity: 0.35; }
  22%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bolt, .hero__skyflash { animation: none; opacity: 0.18; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px var(--gutter) 120px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 166, 75, 0.4);
  border-radius: 999px;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  max-width: 14ch;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line em { font-style: italic; color: var(--c-gold); }
.hero__highlight {
  position: relative;
  white-space: nowrap;
}
.hero__highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  height: 8%;
  background: var(--c-yellow);
  opacity: 0.45;
  z-index: -1;
  transform: skewX(-12deg);
}
.hero__lede {
  max-width: 540px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(248, 245, 237, 0.85);
  margin-bottom: 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn--ghost { color: var(--c-foam); border-color: rgba(248, 245, 237, 0.3); }
.hero__cta .btn--ghost:hover { background: var(--c-foam); color: var(--c-ocean); border-color: var(--c-foam); }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--c-foam);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), gap 0.3s var(--ease);
}
.hero__scroll:hover { gap: 18px; }
.hero__scroll-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll-label::before,
.hero__scroll-label::after {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(234, 217, 122, 0.5);
}
.hero__scroll-icon {
  width: 26px;
  height: 38px;
  display: block;
  fill: var(--c-yellow);
  filter: drop-shadow(0 0 10px rgba(244, 199, 36, 0.5));
  animation: scrollPull 1.8s ease-in-out infinite;
}
@keyframes scrollPull {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ===== Section divider — vertical lightning strike ===== */
.section-divider {
  position: relative;
  height: 0;
  display: flex;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}
.section-divider svg {
  position: absolute;
  top: -38px;
  width: 18px;
  height: 72px;
  fill: var(--c-yellow);
  filter: drop-shadow(0 0 12px rgba(244, 199, 36, 0.65));
  opacity: 0;
  transform: translateY(-12px) scaleY(0.6);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.section-divider.is-visible svg {
  opacity: 0.95;
  transform: translateY(0) scaleY(1);
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-icon { animation: none; }
  .section-divider svg { opacity: 0.4; transform: none; }
}

/* ============== Mission ============== */
.mission { background: var(--c-paper); }
.mission__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.mission__body p { color: var(--c-text-soft); margin-bottom: 18px; max-width: 52ch; }
.mission__pillars {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--c-line);
}
.mission__pillars li {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  color: var(--c-text-soft);
}
.mission__pillars strong { color: var(--c-ocean); font-weight: 600; }

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

/* ============== Pinned scrollytelling for Projects ============== */
.projects--pinned {
  height: 460vh;                /* 4 slides × ~115vh of scroll each */
  padding: 0 !important;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-sand) 100%);
  position: relative;
  overflow: visible;
}
.projects__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 100px var(--gutter) 64px;
}
.projects--pinned .section-label { top: 50%; }
.projects__intro {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto 40px;
  width: 100%;
}
.projects__intro h2 { margin-top: 8px; max-width: 22ch; }
.projects__stage {
  position: relative;
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  align-self: center;
}
.proj-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  opacity: 0;
  transform: translateX(90px) scale(0.985);
  transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
  will-change: opacity, transform;
}
.proj-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.proj-slide.is-past {
  opacity: 0;
  transform: translateX(-90px) scale(0.985);
}
.proj-slide__media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ocean);
  box-shadow: 0 40px 80px -40px rgba(10, 37, 64, 0.4);
}
.proj-slide__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-slide__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(251, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  color: var(--c-ocean);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.proj-slide__no {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  display: block;
  margin-bottom: 14px;
}
.proj-slide__body h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  color: var(--c-ocean);
  margin-bottom: 18px;
  line-height: 1.05;
}
.proj-slide__body p {
  color: var(--c-text-soft);
  margin-bottom: 24px;
  max-width: 50ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}
.proj-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ocean);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-ocean);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.proj-slide__link:hover { color: var(--c-gold); border-bottom-color: var(--c-gold); gap: 16px; }

/* Progress rail */
.projects__rail {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
}
.rail-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.rail-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--c-line-strong);
  transition: all 0.4s var(--ease-out);
}
.rail-dot.is-active { color: var(--c-ocean); }
.rail-dot.is-active::before { background: var(--c-gold); border-color: var(--c-gold); transform: scale(1.4); box-shadow: 0 0 0 4px rgba(212, 177, 61, 0.18); }
.rail-dot.is-past::before { background: var(--c-line-strong); }
@media (max-width: 880px) { .projects__rail { display: none; } }

/* Mobile / tablet fallback: revert to stacked layout */
@media (max-width: 880px) {
  .projects--pinned { height: auto; padding: 0; }
  .projects__pin {
    position: static;
    height: auto;
    padding: clamp(80px, 12vw, 120px) var(--gutter);
    overflow: visible;
  }
  .projects__stage {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  .proj-slide {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    grid-template-columns: 1fr;
  }
  .proj-slide.is-past, .proj-slide.is-active { opacity: 1; transform: none; }
}

/* ============== Projects ============== */
.projects { background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-sand) 100%); }
.projects__list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 88px);
}
.project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
.project--reverse { grid-template-columns: 1fr 1.15fr; }
.project--reverse .project__media { order: 2; }
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-ocean);
  box-shadow: 0 30px 60px -30px rgba(10, 37, 64, 0.35);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.5s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); filter: brightness(1.05); }
.project__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(251, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  color: var(--c-ocean);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.project__body h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  color: var(--c-ocean);
  margin-bottom: 18px;
  line-height: 1.05;
}
.project__body p { color: var(--c-text-soft); margin-bottom: 22px; max-width: 50ch; }
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ocean);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-ocean);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.project:hover .project__link { color: var(--c-gold); border-bottom-color: var(--c-gold); gap: 16px; }

@media (max-width: 880px) {
  .project, .project--reverse { grid-template-columns: 1fr; }
  .project--reverse .project__media { order: 0; }
}

/* ============== Impact ============== */
.impact {
  background: var(--c-ocean);
  color: var(--c-foam);
  position: relative;
  overflow: hidden;
}
.impact::before {
  content: "";
  position: absolute;
  inset: -200px;
  background: radial-gradient(ellipse 800px 500px at 80% 30%, rgba(201, 166, 75, 0.12), transparent 70%);
  pointer-events: none;
}
.impact .display { color: var(--c-foam); }
.impact .eyebrow { color: var(--c-gold-soft); }
.impact .eyebrow::before { background: var(--c-gold-soft); }
.impact__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(248, 245, 237, 0.15);
  border: 1px solid rgba(248, 245, 237, 0.15);
  position: relative;
}
.impact__stat {
  background: var(--c-ocean);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.impact__num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  color: var(--c-gold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.impact__unit {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-gold-soft);
  margin-bottom: 18px;
  font-weight: 500;
}
.impact__stat p { font-size: 14px; line-height: 1.6; color: rgba(248, 245, 237, 0.75); }

@media (max-width: 1080px) { .impact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .impact__grid { grid-template-columns: 1fr; } }

/* ============== Partners ============== */
.partners { background: var(--c-paper); }
/* ===== Partner marquees — infinite horizontal scroll ===== */
.partners__marquee {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partners__marquee + .partners__marquee { margin-top: -1px; }
.partners__track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding: 22px 0;
  animation: marquee 55s linear infinite;
  will-change: transform;
}
.partners__marquee--reverse .partners__track {
  animation-name: marquee-reverse;
  animation-duration: 65s;
}
.partners__marquee:hover .partners__track { animation-play-state: paused; }
.partners__track > span {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: -0.01em;
  color: var(--c-ocean);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.partners__track > span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-yellow);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; transform: none; }
  .partners__marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
}

/* ============== Founder ============== */
.founder { background: var(--c-sand); }
.founder__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.founder__media { display: flex; justify-content: center; }
.founder__portrait {
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal-deep) 0%, var(--c-green) 100%);
  color: var(--c-foam);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(10, 37, 64, 0.35);
}
.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder__portrait svg { width: 92%; height: 92%; opacity: 0.6; }
.founder__portrait::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed var(--c-line-strong);
  pointer-events: none;
}
.founder__quote {
  border-left: 3px solid var(--c-yellow);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  color: var(--c-ocean);
  max-width: 50ch;
}
.founder__credits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 22px;
}
.founder__credits li {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
  padding: 6px 12px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: var(--c-foam);
}
.founder__name { margin-top: 4px; margin-bottom: 4px; }
.founder__role {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--c-gold);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  font-weight: 500;
}
.founder__body p { color: var(--c-text-soft); margin-bottom: 18px; max-width: 56ch; }
.founder__links { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }

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

/* ============== Advisory ============== */
.advisory { background: var(--c-paper); }
.advisory__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.package {
  background: var(--c-foam);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.package:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgba(10, 37, 64, 0.2);
  border-color: var(--c-gold);
}
.package--featured {
  background: var(--c-ocean);
  color: var(--c-foam);
  border-color: var(--c-ocean);
}
.package--featured h3 { color: var(--c-foam); }
.package--featured .package__meta { color: var(--c-gold-soft); }
.package--featured p { color: rgba(248, 245, 237, 0.78); }
.package--featured .link-underline { color: var(--c-gold-soft); border-bottom-color: var(--c-gold-soft); }
.package--featured .link-underline:hover { color: var(--c-foam); border-bottom-color: var(--c-foam); }
.package__no {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  margin-bottom: 24px;
  display: block;
}
.package h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--c-ocean);
  margin-bottom: 6px;
}
.package__meta {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.package p { color: var(--c-text-soft); flex: 1; margin-bottom: 24px; font-size: 15px; }

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

/* ============== Speaking ============== */
.speaking { background: var(--c-ocean); color: var(--c-foam); }
.speaking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.speaking .display { color: var(--c-foam); }
.speaking .eyebrow { color: var(--c-gold-soft); }
.speaking .eyebrow::before { background: var(--c-gold-soft); }
.speaking p { color: rgba(248, 245, 237, 0.78); max-width: 46ch; margin-bottom: 28px; }
.speaking .btn--ghost { color: var(--c-foam); border-color: rgba(248, 245, 237, 0.3); }
.speaking .btn--ghost:hover { background: var(--c-gold); color: var(--c-ocean); border-color: var(--c-gold); }
.speaking__list {
  list-style: none;
  counter-reset: spk;
  border-top: 1px solid rgba(248, 245, 237, 0.18);
}
.speaking__list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(248, 245, 237, 0.18);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--c-foam);
  letter-spacing: -0.01em;
  transition: padding 0.3s var(--ease), color 0.3s var(--ease);
  cursor: default;
}
.speaking__list li:hover { padding-left: 12px; color: var(--c-gold); }
.speaking__list li span {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  align-self: center;
}

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

/* ============== Toolkit ============== */
.toolkit { background: linear-gradient(180deg, var(--c-sand) 0%, var(--c-paper) 100%); }
.toolkit__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.toolkit__bullets {
  list-style: none;
  margin: 24px 0 32px;
}
.toolkit__bullets li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--c-text-soft);
  border-bottom: 1px solid var(--c-line);
}
.toolkit__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 1px;
  background: var(--c-gold);
}
.toolkit__copy p { color: var(--c-text-soft); max-width: 50ch; }

.toolkit__card {
  background: var(--c-ocean);
  color: var(--c-foam);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  transform: rotate(-2deg);
  box-shadow: 0 40px 70px -30px rgba(10, 37, 64, 0.45);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.toolkit__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 166, 75, 0.25), transparent 60%);
  pointer-events: none;
}
.toolkit__cardInner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.toolkit__cardEyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-bottom: 40px;
}
.toolkit__cardInner h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
  flex: 1;
}
.toolkit__cardInner > p { font-size: 14px; color: rgba(248, 245, 237, 0.75); }
.toolkit__cardFoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 245, 237, 0.2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.toolkit__cardArrow { font-size: 20px; color: var(--c-gold); }

@media (max-width: 880px) { .toolkit__inner { grid-template-columns: 1fr; } .toolkit__card { aspect-ratio: 4 / 3; max-width: 420px; } }

/* ============== Contact ============== */
.contact { background: var(--c-ocean-ink); color: var(--c-foam); position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 600px at 30% 50%, rgba(201, 166, 75, 0.08), transparent 70%);
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }
.contact .eyebrow { color: var(--c-gold); }
.contact .eyebrow::before { background: var(--c-gold); }
.contact__title {
  color: var(--c-foam);
  max-width: 22ch;
  margin-bottom: 60px;
}
.contact__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(248, 245, 237, 0.15);
  border: 1px solid rgba(248, 245, 237, 0.15);
}
.contact__method {
  background: var(--c-ocean-ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s var(--ease);
  text-decoration: none;
}
.contact__method:hover { background: var(--c-ocean); }
.contact__method--static { cursor: default; }
.contact__method--static:hover { background: var(--c-ocean-ink); }
.contact__methodLabel {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.contact__methodValue {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--c-foam);
}

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

/* ============== Footer ============== */
.footer {
  background: var(--c-ocean-ink);
  color: rgba(248, 245, 237, 0.55);
  padding: 40px 0;
  border-top: 1px solid rgba(248, 245, 237, 0.1);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-foam);
}
.footer__brand .nav__mark { color: var(--c-gold); }
.footer__line { flex: 1; text-align: center; min-width: 200px; }
.footer__credit { color: rgba(248, 245, 237, 0.35); }

/* ============== Massive scroll-scrubbed section labels ============== */
/* Clip the giant labels to their section bounds so they don't bleed into
   adjacent sections. EXCLUDE `.projects--pinned` — it must stay overflow:visible
   so its sticky child can pin properly. */
.section:not(.projects--pinned),
.brandart,
.latest,
.voices,
.partners,
.founder,
.impact,
.contact {
  overflow: hidden;
}
.section-label {
  position: absolute;
  top: 50%;
  left: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 320px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--label-color, var(--c-ocean));
  text-stroke: 1.5px var(--label-color, var(--c-ocean));
  opacity: var(--label-opacity, 0.14);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  user-select: none;
  transform: translate(var(--label-x, 50vw), -50%);
}
.section__inner,
.brandart__caption,
.section__head,
.projects__list,
.impact__grid,
.partners__marquee,
.voices__grid,
.founder__grid,
.contact__inner {
  position: relative;
  z-index: 1;
}

/* Per-section color/opacity tuning */
.impact .section-label    { --label-color: var(--c-yellow);    --label-opacity: 0.22; }
.contact .section-label   { --label-color: var(--c-gold-soft); --label-opacity: 0.18; }
.partners .section-label  { --label-opacity: 0.12; }
.brandart .section-label  { --label-color: var(--c-foam);      --label-opacity: 0.16; }

@media (prefers-reduced-motion: reduce) {
  .section-label { display: none; }
}
@media (max-width: 720px) {
  .section-label { font-size: clamp(90px, 28vw, 200px); -webkit-text-stroke-width: 1px; text-stroke-width: 1px; }
}

/* ============== Latest strip ============== */
.latest { background: var(--c-paper); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--c-line); }
.latest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.latest__head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: var(--c-ocean);
  margin: 0;
}
.latest__head p { font-size: 13px; color: var(--c-text-soft); margin: 0; }
.latest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.latest__card {
  background: var(--c-foam);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.latest__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--c-yellow);
  transition: height 0.4s var(--ease-out);
}
.latest__card:hover { transform: translateY(-3px); border-color: var(--c-yellow); box-shadow: 0 16px 32px -20px rgba(10, 37, 64, 0.25); }
.latest__card:hover::before { height: 100%; }
.latest__date {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
}
.latest__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--c-ocean);
}
.latest__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-soft);
  flex: 1;
}
.latest__more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-ocean);
  text-transform: uppercase;
  margin-top: 8px;
}
@media (max-width: 880px) { .latest__grid { grid-template-columns: 1fr; } }

/* ============== Testimonials / Voices ============== */
.voices { background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-sand) 100%); }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice {
  background: var(--c-foam);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.voice:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10, 37, 64, 0.25); }
.voice__mark {
  position: absolute;
  top: -8px;
  left: 26px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 78px;
  line-height: 1;
  color: var(--c-yellow);
  opacity: 0.85;
  pointer-events: none;
}
.voice__quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--c-ocean);
  margin: 14px 0 24px;
  flex: 1;
  font-style: italic;
}
.voice__source {
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.voice__name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-ocean);
  letter-spacing: 0.01em;
}
.voice__role {
  font-size: 12px;
  color: var(--c-text-soft);
  letter-spacing: 0.04em;
}
@media (max-width: 1080px) { .voices__grid { grid-template-columns: 1fr; gap: 20px; max-width: 720px; margin: 0 auto; } }

/* ============== Brand art moment ============== */
.brandart {
  background: var(--c-ocean-ink);
  position: relative;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}
.brandart__img {
  width: 100%;
  height: clamp(360px, 60vh, 620px);
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 12s var(--ease-out);
}
.brandart:hover .brandart__img { transform: scale(1.08); }
.brandart::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 30, 0.45) 0%, rgba(4, 16, 30, 0.2) 50%, rgba(4, 16, 30, 0.85) 100%);
  pointer-events: none;
}
.brandart__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 6vw, 72px);
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  color: var(--c-foam);
}
.brandart__eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brandart__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-yellow);
}
.brandart__line {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: 28px;
}
.brandart__line em { font-style: italic; color: var(--c-yellow); }
.brandart__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(248, 245, 237, 0.85);
  max-width: 50ch;
  margin-bottom: 30px;
  line-height: 1.55;
}
.brandart__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.brandart__cta .btn--primary {
  background: var(--c-yellow);
  color: var(--c-ocean);
  font-weight: 600;
}
.brandart__cta .btn--primary:hover {
  background: var(--c-foam);
  color: var(--c-ocean);
  transform: translateY(-2px);
}
.brandart__cta .btn--ghost {
  border-color: rgba(248, 245, 237, 0.5);
  color: var(--c-foam);
  background: rgba(4, 16, 30, 0.35);
  backdrop-filter: blur(4px);
}
.brandart__cta .btn--ghost:hover {
  background: var(--c-foam);
  color: var(--c-ocean);
  border-color: var(--c-foam);
}

/* ============== Reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
}
