/* ==========================================================================
   Hero
   ========================================================================== */
/* Clip horizontal overflow without creating a scroll container for sticky. */
body {
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(120deg, var(--cream) 0%, var(--sage-light) 45%, var(--sage) 100%);
  overflow: hidden;
}

.hero-scroll-stage.is-pinned .hero {
  position: sticky;
  top: 0;
}

.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-orb {
  z-index: 1;
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 90px solid rgba(255, 255, 255, 0.35);
  top: -10%;
  left: 38%;
  filter: blur(18px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-eyebrow .rule {
  width: 40px;
  height: 1px;
  background: var(--charcoal);
  opacity: 0.4;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 560px;
  line-height: 1.6;
  color: var(--charcoal-soft);
}

.hero-scroll {
  position: absolute;
  left: 48px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.hero-scroll .label {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.hero-scroll .line {
  width: 1px;
  height: 56px;
  background: var(--charcoal-soft);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--forest-deep);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   Numbered index
   ========================================================================== */
.index-section {
  padding: 160px 0;
}

.index-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  max-width: 640px;
  margin-bottom: 80px;
  line-height: 1.2;
}

.index-list {
  border-top: 1px solid var(--line);
}

.index-item {
  display: grid;
  grid-template-columns: 90px 1fr 1.1fr 40px;
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}

.index-item:hover {
  background-color: rgba(169, 185, 155, 0.14);
}

.index-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--sage-deep);
}

.index-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  position: relative;
  width: fit-content;
}

.index-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.index-item:hover .index-title::after {
  transform: scaleX(1);
}

.index-tagline {
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.index-arrow {
  font-size: 20px;
  transition: transform 0.4s var(--ease);
  justify-self: end;
}

.index-item:hover .index-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   About
   ========================================================================== */
.about-section {
  padding: 80px 0 160px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-visual {
  position: relative;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
}

.about-copy p:first-of-type {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.5;
  color: var(--charcoal);
}

/* ==========================================================================
   Quote / mission section
   ========================================================================== */
.quote-section {
  background: var(--forest);
  color: var(--cream);
  padding: 200px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: var(--sage-deep);
  opacity: 0.5;
  margin-bottom: -30px;
}

.quote-carousel {
  display: grid;
}

.quote-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.quote-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.4;
}

.quote-attribution {
  margin-top: 28px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0.7;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.quote-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.quote-dot:hover {
  opacity: 0.6;
}

.quote-dot.is-active {
  opacity: 1;
  transform: scale(1.2);
}

/* ==========================================================================
   Case study preview cards
   ========================================================================== */
.work-section {
  padding: 160px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.work-row .work-media {
  order: 2;
}

.work-row .work-copy {
  order: 1;
}

.work-row.reverse .work-media {
  order: 1;
}

.work-row.reverse .work-copy {
  order: 2;
}

.work-row .img-placeholder {
  aspect-ratio: 438 / 254;
  transition: transform 0.6s var(--ease);
}

.work-row:hover .img-placeholder {
  transform: translateY(-8px);
}

.work-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 438 / 254;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s var(--ease);
}

.work-row:hover .work-card-photo {
  transform: translateY(-8px);
}

.work-card-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--sage-deep);
  margin-bottom: 10px;
  display: block;
}

.work-row h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}

.work-row p {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.6;
  max-width: 420px;
}

.work-row-arrow {
  display: inline-block;
  margin-top: 20px;
  font-size: 20px;
  color: var(--sage-deep);
  transition: transform 0.4s var(--ease);
}

.work-row:hover .work-row-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-orb {
    width: 280px;
    height: 280px;
    border-width: 50px;
  }

  .index-item {
    grid-template-columns: 50px 1fr;
    row-gap: 10px;
  }

  .index-tagline {
    grid-column: 2 / 3;
  }

  .index-arrow {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 100px;
  }

  .about-visual .img-placeholder:last-child {
    right: 0;
  }

  .quote-section {
    padding: 120px 0;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-row .work-media,
  .work-row.reverse .work-media {
    order: -1;
  }

  .work-row .work-copy,
  .work-row.reverse .work-copy {
    order: 0;
  }

  .work-row p {
    max-width: none;
  }
}
