/* ================================================
   RAWNAQ — CHAPTERS CSS
   Per-chapter visual treatments
   ================================================ */

/* ================================================
   WEBGL CANVAS
   ================================================ */
#webgl-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Mobile: hide WebGL canvas */
@media (max-width: 768px) {
  #webgl-canvas {
    display: none;
  }
}

/* ================================================
   MAIN CONTENT LAYER
   Sits above WebGL canvas
   ================================================ */
#main-content {
  position: relative;
  z-index: var(--z-content);
}

/* ================================================
   CHAPTER 00 — HERO
   ================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

/* ── Hero Atmosphere (Glow pools & Energy Waves) ── */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--center {
  top: 35%;
  left: 20%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(0, 184, 107, 0.1) 0%, rgba(8, 122, 79, 0.04) 45%, transparent 70%);
  filter: blur(70px);
}

.hero__glow--right {
  top: 25%;
  right: 5%;
  width: 50vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(0, 184, 107, 0.22) 0%, rgba(0, 255, 178, 0.08) 35%, rgba(8, 122, 79, 0.04) 60%, transparent 75%);
  filter: blur(60px);
  animation: aura-breathe 8s ease-in-out infinite alternate;
}

@keyframes aura-breathe {
  0%   { transform: scale(0.92) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.08) translate(-2%, 2%); opacity: 1; }
}

.hero__energy-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
}

.hero__wave {
  animation: wave-flow 12s ease-in-out infinite alternate;
}

.hero__wave--1 { animation-duration: 14s; }
.hero__wave--2 { animation-duration: 18s; animation-delay: -3s; }
.hero__wave--3 { animation-duration: 10s; animation-delay: -6s; }

@keyframes wave-flow {
  0%   { transform: translateY(0) scaleY(1); }
  50%  { transform: translateY(-16px) scaleY(1.05); }
  100% { transform: translateY(12px) scaleY(0.95); }
}

/* Mobile fallback background — shown when WebGL disabled */
.hero__bg-mobile {
  display: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 35%,
    rgba(0, 184, 107, 0.2) 0%,
    transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%,
    rgba(8, 122, 79, 0.12) 0%,
    transparent 60%);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__bg-mobile {
    display: block;
  }
}

/* Large background chapter identifier watermark */
.hero__bg-word {
  position: absolute;
  bottom: clamp(10px, 4vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: clamp(100px, 14vw, 220px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 245, 242, 0.03);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.06em;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

/* ── Hero Two-Column Grid Container ────────────── */
.hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  padding-top: calc(var(--nav-height) + clamp(10px, 2vh, 24px));
  padding-bottom: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  height: 100%;
}

/* ── Left Column (Typography & CTA) ───────────── */
.hero__col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(38px, 4.8vw, 76px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--c-light);
  max-width: 13ch;
  margin-bottom: var(--space-sm);
}

.hero__title-accent {
  font-style: italic;
  color: #7EF2B5;
  text-shadow: 0 0 35px rgba(0, 184, 107, 0.35);
}

.hero__accent-line {
  width: 44px;
  height: 1.5px;
  background: var(--c-emerald);
  box-shadow: 0 0 12px rgba(0, 184, 107, 0.8);
  margin: var(--space-sm) 0 var(--space-md) 0;
}

.hero__sub {
  max-width: 440px;
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero__scroll-cue {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--c-muted-2);
}

.scroll-cue__text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 32px;
  height: 1px;
  background: var(--c-muted-2);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  background: var(--c-emerald);
  animation: scroll-line 2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ── Right Column (3D Emblem & Logo Showcase) ─── */
.hero__col-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Radiant Emerald Aura */
.hero__logo-aura {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 184, 107, 0.32) 0%,
    rgba(0, 255, 178, 0.12) 35%,
    rgba(8, 122, 79, 0.05) 60%,
    transparent 72%
  );
  filter: blur(32px);
  pointer-events: none;
  animation: aura-pulse 5s ease-in-out infinite alternate;
}

@keyframes aura-pulse {
  0%   { transform: scale(0.92); opacity: 0.75; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Floating 3D Logo Card Container */
.hero__logo-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.2vw, 28px);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.03) 0%, rgba(7,10,8,0.3) 100%);
  border: 1px solid rgba(243, 245, 242, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 184, 107, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  animation: hero-logo-float 6.5s ease-in-out infinite;
  cursor: default;
}

.hero__logo-card:hover {
  border-color: rgba(0, 184, 107, 0.25);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(0, 184, 107, 0.28),
    inset 0 1px 2px rgba(0, 255, 178, 0.2);
}

@keyframes hero-logo-float {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(2.5deg) rotateY(-2.5deg);
  }
}

.hero__card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 50%, rgba(0, 184, 107, 0.05) 100%);
  pointer-events: none;
}

.hero__logo-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 20px rgba(0, 184, 107, 0.55))
    drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero__logo-card:hover .hero__logo-img {
  filter:
    drop-shadow(0 0 28px rgba(0, 255, 178, 0.7))
    drop-shadow(0 20px 45px rgba(0, 0, 0, 0.95));
}

/* Micro particle sparkles inside logo card */
.hero__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.hero__sparkle {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--c-emerald);
  box-shadow: 0 0 8px #00FFB2;
  opacity: 0;
  animation: sparkle-twinkle 3.5s ease-in-out infinite var(--delay);
}

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 0.9; transform: scale(1.3); }
}

/* ── Hero Bottom Bar (Mouse Pill & Stats) ──────── */
.hero__bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 clamp(24px, 5vw, 80px) clamp(20px, 3vh, 32px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.hero__scroll-mouse {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(20px, 3vh, 32px);
  pointer-events: auto;
}

.mouse-pill {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(243, 245, 242, 0.22);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.mouse-pill:hover {
  border-color: var(--c-emerald);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 184, 107, 0.3);
}

.mouse-pill__dot {
  width: 3.5px;
  height: 6px;
  border-radius: 3px;
  background: var(--c-emerald);
  box-shadow: 0 0 8px var(--c-emerald);
  animation: mouse-scroll 2s ease-in-out infinite;
}

@keyframes mouse-scroll {
  0%   { opacity: 1; transform: translateY(0); }
  75%  { opacity: 0; transform: translateY(12px); }
  76%  { opacity: 0; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__stats {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
}

.hero__stat-value {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted-2);
  letter-spacing: var(--ls-wide);
}

.hero__stat-value span {
  color: var(--c-light-3);
  margin-right: 6px;
}

.hero__stat-value span.c-emerald {
  color: var(--c-emerald);
}

/* ================================================
   CHAPTER 01 — THE SHIFT
   ================================================ */
#chapter-shift {
  position: relative;
  background: var(--c-dark);
  padding: 0;
}

.shift__pin-container {
  height: 350vh;
}

.shift__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.shift__content {
  padding: 0 clamp(24px, 5vw, 80px);
  width: 100%;
}

.shift__lines {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vw, 14px);
  max-width: 900px;
}

.shift__line {
  overflow: hidden;
}

.shift__line-text {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 76px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: translateY(115%);
  transition: transform 0s; /* GSAP takes over */
}

.shift__line-text.has-accent {
  color: var(--c-light-3);
}

.shift__line-text.has-emerald {
  color: var(--c-emerald);
}

.shift__divider {
  width: 0;
  height: 1px;
  background: var(--c-dark-4);
  margin: clamp(16px, 2.5vw, 36px) 0;
}

.shift__conclusion {
  overflow: hidden;
}

.shift__conclusion-text {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.8vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--c-light);
  transform: translateY(115%);
}

.shift__conclusion-text em {
  font-style: italic;
  color: var(--c-emerald);
}

/* Mobile: no sticky */
@media (max-width: 768px) {
  .shift__pin-container {
    height: auto;
  }

  .shift__sticky {
    position: relative;
    height: auto;
    padding: var(--space-3xl) 0;
  }
}

/* ================================================
   CHAPTER 02 — THE TRANSFORMATION (Signature)
   ================================================ */
#chapter-transform {
  position: relative;
  background: var(--c-dark-2);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.transform__header {
  padding: 0 clamp(24px, 5vw, 80px) var(--space-lg);
}

.transform__canvas-area {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transform__webgl-zone {
  display: none;
}

/* Mobile fallback for signature interaction */
.transform__fallback {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .transform__fallback {
    display: flex;
  }
}

.transform__dom-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(24px, 5vw, 80px);
}

.transform__statement {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 auto;
}

.transform__desc {
  max-width: 480px;
  margin: var(--space-md) auto 0;
  color: var(--c-muted);
  font-size: var(--fs-body-lg);
  text-align: center;
}

/* Mobile before/after clip reveal */
.transform__clip-reveal {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.transform__clip-before,
.transform__clip-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transform__clip-before {
  background: var(--c-dark-3);
}

.transform__clip-after {
  background: linear-gradient(135deg, var(--c-dark-3) 0%, rgba(0, 184, 107, 0.1) 100%);
  clip-path: inset(0 100% 0 0);
  animation: clip-reveal 3s var(--ease-in-out) 1s infinite alternate;
}

@keyframes clip-reveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

/* ================================================
   CHAPTER 03 — WHAT WE TRANSFORM (Services)
   ================================================ */

/* Mobile header block hidden by default (desktop) */
.services__mobile-header {
  display: none;
}

/* Chevron hidden on desktop (items have no expand behaviour) */
.services__item-chevron {
  display: none;
}

/* Panel hidden on desktop (description lives in .services__left) */
.services__item-panel {
  display: none;
}

#chapter-services {
  position: relative;
  background: var(--c-dark);
}

.services__pin-container {
  height: 500vh;
}

.services__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 5fr 7fr;
  overflow: hidden;
}

.services__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-height) clamp(24px, 3.5vw, 56px) var(--space-xl);
  border-right: 1px solid rgba(89, 99, 96, 0.12);
}

.services__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-height) clamp(24px, 3.5vw, 56px) var(--space-xl);
}

.services__counter {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted-2);
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-lg);
}

.services__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.8vw, 80px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  color: var(--c-light);
  transition: color 0.6s ease;
}

.services__desc {
  color: var(--c-muted);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  max-width: 360px;
  font-weight: 300;
}

.services__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services__item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(89, 99, 96, 0.12);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0.3;
  transition: opacity 0.5s ease;
  cursor: default;
}

/* On desktop the row-wrapper is transparent — just passes layout through */
.services__item-row {
  display: contents;
}

.services__item.is-active {
  opacity: 1;
}

.services__item-num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted-2);
  letter-spacing: var(--ls-wide);
  flex-shrink: 0;
  width: 28px;
}

.services__item-name {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  color: var(--c-light);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
}

.services__item.is-active .services__item-num {
  color: var(--c-emerald);
}



/* ================================================
   CHAPTER 04 — HOW WE BUILD (Process — Horizontal)
   ================================================ */
#chapter-process {
  position: relative;
  background: var(--c-dark-2);
  overflow: hidden;
}

.process__pin-container {
  height: auto;
}

.process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.process__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.process__header-panel {
  flex-shrink: 0;
  width: 40vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px);
  border-right: 1px solid rgba(89, 99, 96, 0.12);
}

.process__panel {
  flex-shrink: 0;
  width: 50vw;
  height: 100%;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(89, 99, 96, 0.06);
  position: relative;
}

.process__panel:last-child {
  border-right: none;
}

.process__panel-num {
  font-family: var(--f-display);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(243, 245, 242, 0.04);
  -webkit-text-stroke: 2px rgba(243, 245, 242, 0.15);
  position: absolute;
  top: 50%;
  bottom: auto;
  right: 8%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke 0.6s ease, color 0.6s ease;
}

.process__panel:hover .process__panel-num {
  -webkit-text-stroke: 2px rgba(0, 184, 107, 0.35);
  color: rgba(0, 184, 107, 0.08);
}

.process__panel-phase {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-emerald);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.process__panel-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.process__panel-desc {
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 280px;
  font-weight: 300;
}

/* ── Chapter 4 Horizontal Progress Bar ── */
.process__progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 3px;
  background: rgba(89, 99, 96, 0.2);
  border-radius: 0;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.process__progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--c-emerald));
  box-shadow: 2px 0 15px var(--c-emerald);
  border-radius: 0 4px 4px 0;
  transition: width 0.05s linear;
}

/* Mobile: vertical stack */
@media (max-width: 768px) {
  .process__pin-container {
    height: auto;
  }

  .process__sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .process__track {
    flex-direction: column;
    height: auto;
  }

  .process__header-panel,
  .process__panel {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(89, 99, 96, 0.12);
    padding: var(--space-2xl) clamp(24px, 5vw, 48px);
  }

  .process__panel-num {
    position: relative;
    font-size: 80px;
    margin-bottom: var(--space-md);
    bottom: auto;
    right: auto;
  }
}

/* ================================================
   CHAPTER 05 — SELECTED WORK (Gallery + Bento)
   ================================================ */
#chapter-work {
  position: relative;
  background: var(--c-dark);
  padding: 0 clamp(24px, 5vw, 80px) var(--space-3xl);
}

.work__header {
  padding: 0;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.work__gallery {
  position: relative;
}

/* ── Art-directed project grid ─────────────────── */
.project {
  position: relative;
  margin-bottom: clamp(80px, 12vh, 180px);
  padding: 0 clamp(24px, 5vw, 80px);
}

.project--01 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-xl);
  align-items: end;
}

.project--02 {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-xl);
  align-items: start;
  margin-left: clamp(40px, 6vw, 120px);
}

.project--03 {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--space-xl);
  align-items: center;
  margin-left: -20px;
}

.project--04 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: end;
  margin-left: clamp(40px, 8vw, 160px);
}

.project__img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 400px;
}

.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease-out-expo);
}

.project__img-wrapper:hover .project__img {
  transform: scale(1.0);
}

.project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 8, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project__img-wrapper:hover .project__overlay {
  opacity: 1;
}

.project__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project__num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted-2);
  letter-spacing: var(--ls-wider);
}

.project__name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project__category {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.project__desc {
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 320px;
  font-weight: 300;
  margin-top: var(--space-sm);
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-emerald);
  margin-top: var(--space-md);
  transition: gap 0.4s var(--ease-out-expo);
}

.project__link:hover {
  gap: 16px;
}

.project__img-wrapper--landscape { aspect-ratio: 16/10; }
.project__img-wrapper--portrait  { aspect-ratio: 3/4; }
.project__img-wrapper--square    { aspect-ratio: 1/1; }
.project__img-wrapper--wide      { aspect-ratio: 21/9; }

@media (max-width: 768px) {
  .project--01,
  .project--02,
  .project--03,
  .project--04 {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .project {
    margin-bottom: var(--space-2xl);
  }
}

/* ── Bento Grid ────────────────────────────────── */
.bento-gallery {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "tl center tr"
    "bl center br";
  gap: clamp(12px, 1.4vw, 20px);
  width: 100%;
  max-width: 1400px;
  height: clamp(520px, 70vh, 680px);
  margin: 0 auto;
}

/* ── Center Carousel (grid-area: center) ───────── */
.bento-center-carousel {
  grid-area: center;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.4),
    0 24px 80px rgba(0,0,0,0.6);
  cursor: pointer;
}

/* Slides — absolutely stacked, crossfade via opacity */
.bento-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-in-out), visibility 0.8s var(--ease-in-out);
}

.bento-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom gradient overlay for label readability */
.bento-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 10, 8, 0.85) 0%,
    rgba(7, 10, 8, 0.2)  35%,
    transparent          60%
  );
  pointer-events: none;
}

/* Slide text label */
.bento-slide__label {
  position: absolute;
  bottom: 64px; /* above controls bar */
  left: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s ease;
  will-change: transform, opacity;
}

.bento-slide__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-light);
}

.bento-slide__cat {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-emerald);
}

/* ── Controls Bar ───────────────────────────────── */
.bento-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
}

/* Base button style */
.bento-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(243, 245, 242, 0.2);
  background: rgba(7, 10, 8, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.bento-btn:hover {
  background: rgba(0, 184, 107, 0.2);
  border-color: var(--c-emerald);
  transform: scale(1.08);
}

.bento-btn svg {
  width: 18px;
  height: 18px;
}

/* Pagination */
.bento-pagination {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  color: rgba(243, 245, 242, 0.5);
  min-width: 36px;
  text-align: center;
}

/* ── SVG Progress Ring ──────────────────────────── */
.bento-ring-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.bento-ring-svg {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  /* Start drawing from the top (12 o'clock) */
  transform: rotate(-90deg);
  pointer-events: none;
}

.bento-ring__track {
  fill: none;
  stroke: rgba(243, 245, 242, 0.1);
  stroke-width: 2;
}

.bento-ring__circle {
  fill: none;
  stroke: var(--c-emerald);
  stroke-width: 2;
  stroke-linecap: round;
  /* dasharray / dashoffset set by JS */
  transition: stroke-dashoffset 0.05s linear;
}

/* Next button sits inside the ring wrapper, centered */
.bento-ring-wrapper .bento-btn {
  position: absolute;
  inset: 4px; /* 4px inset from 52px wrapper = 44px button */
  width: auto;
  height: auto;
  border-radius: 50%;
}

/* ── Bento Thumbnails ────────────────────────────── */
.bento-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    0 16px 48px rgba(0,0,0,0.4);
  will-change: transform;
}

.bento-thumb--tl { grid-area: tl; }
.bento-thumb--tr { grid-area: tr; }
.bento-thumb--bl { grid-area: bl; }
.bento-thumb--br { grid-area: br; }

.bento-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.8s var(--ease-out-expo);
}

.bento-thumb:hover .bento-thumb__img {
  transform: scale(1.0);
}

/* Thumb gradient + text overlay */
.bento-thumb__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,10,8,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 2px;
}

.bento-thumb__name {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-light);
  line-height: 1.1;
}

.bento-thumb__cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ── Mobile: simple vertical stack, no pinning ─── */
@media (max-width: 768px) {
  #chapter-work {
    padding-bottom: var(--space-2xl);
  }

  .bento-pin-container {
    height: auto;
  }

  .bento-sticky {
    position: relative;
    height: auto;
    padding: var(--space-xl) clamp(16px, 4vw, 40px);
  }

  .bento-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 12px;
  }

  .bento-thumb {
    height: 200px;
  }

  .bento-center-carousel {
    height: 70vw;
    min-height: 320px;
    border-radius: 12px;
  }

  .bento-slide__label {
    bottom: 72px;
    left: 20px;
  }
}

/* Preserve old project/work utility classes used elsewhere (kept for safety) */
.work__gallery { position: relative; }



/* ================================================
   CHAPTER 06 — THE DIFFERENCE
   ================================================ */
#chapter-difference {
  position: relative;
  background: var(--c-dark-2);
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(89, 99, 96, 0.12);
}

.difference__header {
  padding: 0 clamp(24px, 5vw, 80px);
  margin-bottom: var(--space-xl);
}

.difference__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(89, 99, 96, 0.12);
}

.difference__item {
  padding: var(--space-lg) clamp(24px, 4vw, 60px);
  border-bottom: 1px solid rgba(89, 99, 96, 0.12);
  border-right: 1px solid rgba(89, 99, 96, 0.12);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.difference__item:nth-child(even) {
  border-right: none;
}

.difference__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-emerald-dim);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.difference__item:hover::after {
  opacity: 1;
}

.difference__item-num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-emerald);
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-sm);
}

.difference__item-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.difference__item-desc {
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 300;
  max-width: 380px;
}

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

  .difference__item {
    border-right: none;
  }
}

/* ================================================
   CHAPTER 07 — MAKE THE NEXT MOVE (CTA)
   ================================================ */
#chapter-cta {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark);
  padding: 0;
}

.cta__bg-text {
  position: absolute;
  font-family: var(--f-display);
  font-size: 22vw;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(89, 99, 96, 0.08);
  letter-spacing: -0.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-muted-2);
}

.cta__headline {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.cta__headline em {
  font-style: italic;
  color: var(--c-emerald);
}

.cta__sub {
  color: var(--c-muted);
  font-size: var(--fs-body-lg);
  max-width: 440px;
  text-align: center;
}

.cta__emerald-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--c-emerald));
}

/* ================================================
   FOOTER TAKEOVER (Editorial Conclusion)
   ================================================ */
#footer-wrapper {
  position: relative;
  z-index: 10;
}

#footer {
  position: relative;
  background: var(--c-dark-2);
  z-index: 10;
  height: auto;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 80px) clamp(24px, 4vh, 48px);
  border-top: 1px solid rgba(89, 99, 96, 0.15);
  overflow: hidden;
}

/* Background Watermark */
.footer__watermark {
  position: absolute;
  right: -5%;
  bottom: -5%;
  width: clamp(380px, 42vw, 680px);
  height: auto;
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Left Column: Brand & Contact ── */
.footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 480px;
}

.footer__brand-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-xs);
}

.footer__logo-mark {
  height: clamp(32px, 4vw, 42px);
  width: auto;
}

.footer__logo-type {
  height: clamp(24px, 3vw, 32px);
  width: auto;
}

.footer__statement {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-light);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__statement em {
  font-style: italic;
  color: var(--c-emerald);
}

.footer__sparkle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
}

.footer__subtext {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  color: var(--c-muted);
  line-height: var(--lh-body);
  font-weight: 300;
  max-width: 380px;
}

.footer__divider {
  width: 40px;
  height: 2px;
  background: var(--c-emerald);
  margin: var(--space-xs) 0 var(--space-sm);
  border-radius: 2px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c-light);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

a.footer__contact-item:hover {
  color: var(--c-emerald);
  transform: translateX(4px);
}

.footer__contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243, 245, 242, 0.12);
  background: rgba(243, 245, 242, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-emerald);
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

a.footer__contact-item:hover .footer__contact-icon {
  border-color: var(--c-emerald);
  background: rgba(0, 184, 107, 0.1);
}

.footer__contact-icon svg {
  width: 16px;
  height: 16px;
}

/* ── Right Column: The Form ── */
.footer__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.footer__form-title {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-emerald);
  font-weight: 500;
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-xl);
}

.form__field--half {
  grid-column: span 1;
}

.form__field--full {
  grid-column: span 2;
}

.footer__form-grid .form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer__form-grid .form__field::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--c-emerald);
  transition: right 0.5s var(--ease-out-expo);
}

.footer__form-grid .form__field:focus-within::after {
  right: 0;
}

.footer__form-grid .form__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-muted-2);
  transition: color 0.3s ease;
}

.footer__form-grid .form__field:focus-within .form__label {
  color: var(--c-emerald);
}

.footer__form-grid .form__input,
.footer__form-grid .form__textarea {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-light);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  line-height: 1.5;
  resize: none;
  padding: 4px 0;
}

.footer__form-grid .form__input::placeholder,
.footer__form-grid .form__textarea::placeholder {
  color: rgba(243, 245, 242, 0.2);
}

.footer__form-grid .form__textarea {
  min-height: 54px;
}

.footer__submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-xs);
}

.footer__submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--c-emerald);
  border-radius: 6px;
  padding: 14px 28px;
  background: transparent;
  color: var(--c-light);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer__submit-btn:hover {
  background: var(--c-emerald);
  color: var(--c-dark);
  box-shadow: 0 0 20px rgba(0, 184, 107, 0.4);
  transform: translateY(-2px);
}

.footer__submit-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.footer__submit-btn:hover .footer__submit-arrow {
  transform: translate(3px, -3px);
}

.footer__response-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__clock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__response-text {
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
  text-transform: uppercase;
}

/* ── Bottom Bar: Copyright, Nav, Socials ── */
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(89, 99, 96, 0.15);
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted-2);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
}

.footer__nav-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 0.3s ease;
}

.footer__nav-link:hover {
  color: var(--c-light);
}

.footer__dot {
  color: var(--c-emerald);
  font-size: 10px;
  opacity: 0.8;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__social-link:hover {
  border-color: var(--c-emerald);
  color: var(--c-emerald);
  background: rgba(0, 184, 107, 0.12);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__left {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

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

  .form__field--half {
    grid-column: span 1;
  }

  .form__field--full {
    grid-column: span 1;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}
