/* =========================================================
   Landing — scroll-driven introduction
   Lenis smooth scroll + GSAP ScrollTrigger
   Tokens reused from styles.css (orange, ink, paper, fonts)
   ========================================================= */

/* =========================================================
   Custom cursor + left rail
   Same mechanics as the moodboard. mix-blend-mode: difference
   keeps both visible across the landing's mixed surfaces
   (dark hero / light opportunity / orange approach / paper
   portfolio / dark CTA).
   ========================================================= */

.landing { cursor: none; }
.landing a,
.landing button,
.landing .client-row,
.landing .clickable { cursor: none; }

.landing .dv-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: difference;
  background: transparent;
  transition: width 280ms cubic-bezier(.2,.8,.2,1),
              height 280ms cubic-bezier(.2,.8,.2,1),
              background 200ms ease,
              border-color 200ms ease;
}
.landing .dv-cursor.hover {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.90);
}
@media (hover: none) {
  .landing .dv-cursor { display: none; }
  .landing,
  .landing a,
  .landing button,
  .landing .client-row,
  .landing .clickable { cursor: auto !important; }
}

/* Left vertical rail */
.landing .rail {
  position: fixed;
  top: 0; bottom: 0; left: 28px;
  width: 28px;
  z-index: 60;
  pointer-events: none;
  mix-blend-mode: difference;
}
.landing .rail .line {
  position: absolute;
  left: 13px; top: 8vh; bottom: 8vh;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.landing .rail .ticker {
  position: absolute;
  left: 11px;
  top: 8vh;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.landing .rail .tick {
  position: absolute;
  left: 0;
  width: 28px;
  display: flex; align-items: center; gap: 14px;
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  transition: color 240ms ease;
  pointer-events: auto;
}
.landing .rail .tick[data-i="0"] { top: calc(8vh + 0%);  }
.landing .rail .tick[data-i="1"] { top: calc(8vh + 20%); }
.landing .rail .tick[data-i="2"] { top: calc(8vh + 40%); }
.landing .rail .tick[data-i="3"] { top: calc(8vh + 60%); }
.landing .rail .tick[data-i="4"] { top: calc(8vh + 80%); }
.landing .rail .tick .tick-mark {
  width: 11px; height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 280ms ease, background 240ms ease;
  display: inline-block;
  margin-left: 8px;
}
.landing .rail .tick .tick-num {
  font-feature-settings: "tnum";
}
.landing .rail .tick:hover            { color: #fff; }
.landing .rail .tick:hover .tick-mark { width: 18px; background: #fff; }
.landing .rail .tick.on               { color: #fff; }
.landing .rail .tick.on .tick-mark    { background: #fff; width: 18px; }

/* Global mode switch — when the landing is mounted, body must scroll */
body[data-mode="landing"] {
  overflow: visible;
  overflow-y: auto;
  background: var(--bg-dark);
}
body[data-mode="landing"] #root { height: auto; min-height: 100vh; }

/* Lenis adds a `lenis-smooth` class once initialised; stops jumping on resize */
html.lenis-smooth { scroll-behavior: auto !important; }
html.lenis-stopped { overflow: clip; }

.landing {
  position: relative;
  width: 100%;
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Top progress bar — bound to scroll progress */
.landing .scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 100;
}
.landing .scroll-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
  transform-origin: left;
}

/* Persistent landing chrome — brand mark, skip-to-deck CTA */
.landing .land-chrome {
  position: fixed;
  top: 2.4vh; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4vw;
  pointer-events: none;
}
.landing .land-chrome > * { pointer-events: auto; }
.landing .land-chrome .brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.6vh;
  color: rgba(255,255,255,0.85);
}
.landing .land-chrome .brand sup { font-size: 0.55em; vertical-align: super; margin-left: 0.1em; }
.landing .land-chrome .skip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  padding: 0.9vh 1.4vw;
  font-size: 1.2vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.landing .land-chrome .skip:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* =========================================================
   SECTION 1 — HERO (pinned, keyword cycles SOUND→SYSTEM→EXPERIENCE)
   ========================================================= */
.land-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  overflow: hidden;
}
.land-hero::before {
  /* Subtle grid for texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 8vw 8vw;
  pointer-events: none;
}

.land-hero .hero-eyebrow {
  font-size: 1.4vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 4vh;
}
.land-hero .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 11vh, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.land-hero .hero-title .line {
  display: block;
  overflow: hidden;
}
.land-hero .hero-title .line > span {
  display: inline-block;
  will-change: transform;
}

/* Morphing keyword stack */
.land-hero .keyword-row {
  margin-top: 5vh;
  display: flex;
  align-items: baseline;
  gap: 2vw;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 9vh, 160px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.land-hero .keyword-row .label {
  font-size: 1.4vh;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.land-hero .keyword-stack {
  position: relative;
  height: 1em;
  flex: 1;
  overflow: hidden;
}
.land-hero .kw {
  position: absolute;
  left: 0; top: 0;
  color: var(--orange);
  white-space: nowrap;
  will-change: transform, opacity;
}

/* Scroll cue */
.land-hero .scroll-cue {
  position: absolute;
  bottom: 4vh; left: 50%;
  transform: translateX(-50%);
  font-size: 1.2vh;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}
.land-hero .scroll-cue .bar {
  width: 1px;
  height: 4vh;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   SECTION 2 — OPPORTUNITY (light surface, line reveals + accent fill)
   ========================================================= */
.land-opportunity {
  position: relative;
  background: var(--bg-light);
  color: var(--ink);
  padding: 18vh 6vw 22vh;
}
.land-opportunity .eyebrow {
  font-size: 1.4vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 3vh;
}
.land-opportunity h2 {
  margin: 0 0 8vh;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 11vh, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.land-opportunity h2 .line { display: block; overflow: hidden; }
.land-opportunity h2 .line > span { display: inline-block; will-change: transform; }

.land-opportunity .lead {
  margin: 0 0 8vh;
  font-size: clamp(20px, 3vh, 40px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 56ch;
}
.land-opportunity .lead .reveal {
  display: block;
  overflow: hidden;
}
.land-opportunity .lead .reveal > span {
  display: inline-block;
  will-change: transform;
}

/* Accent fill — two layered spans, top one's clip-path reveals as scroll progresses */
.land-opportunity .accent-fill {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: rgba(15,15,18,0.22);
}
.land-opportunity .accent-fill .fill {
  position: absolute;
  inset: 0;
  color: var(--orange);
  clip-path: inset(0 100% 0 0);
  white-space: pre-wrap;
  will-change: clip-path;
}

/* Numbered benefits */
.land-opportunity .benefits {
  list-style: none;
  padding: 0;
  margin: 12vh 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2vw;
}
.land-opportunity .benefits li {
  display: flex;
  flex-direction: column;
  gap: 1.6vh;
  padding-top: 2.4vh;
  border-top: 1px solid var(--rule);
  font-size: clamp(15px, 1.8vh, 24px);
  line-height: 1.4;
  font-weight: 500;
  will-change: transform, opacity;
}
.land-opportunity .benefits li .n {
  font-size: 1.3vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
  font-feature-settings: "tnum";
}
@media (max-width: 1080px) {
  .land-opportunity .benefits { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   SECTION 3 — APPROACH (orange, pinned horizontal pillar scroll)
   ========================================================= */
.land-approach {
  position: relative;
  background: var(--orange);
  color: #fff;
}
.land-approach .approach-intro {
  padding: 18vh 6vw 8vh;
  max-width: 100%;
}
.land-approach .approach-intro .eyebrow {
  font-size: 1.4vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3vh;
}
.land-approach .approach-intro h2 {
  margin: 0 0 4vh;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 11vh, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.land-approach .approach-intro h2 .line { display: block; overflow: hidden; }
.land-approach .approach-intro h2 .line > span { display: inline-block; will-change: transform; }

.land-approach .approach-intro .lead {
  margin: 0;
  font-size: clamp(18px, 2.4vh, 32px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 60ch;
  color: rgba(255,255,255,0.95);
}

/* Pinned horizontal track */
.pillars-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.pillars-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 3vw;
  padding: 0 6vw;
  width: max-content;
  will-change: transform;
}
.pillar {
  flex: 0 0 auto;
  width: 30vw;
  min-width: 360px;
  height: 60vh;
  padding: 4vh 3vw;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  transition: background 240ms ease, border-color 240ms ease;
}
.pillar:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.42);
}
.pillar .n {
  font-size: 1.3vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-feature-settings: "tnum";
}
.pillar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.6vh, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pillar p {
  margin: 0;
  font-size: clamp(14px, 1.7vh, 22px);
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: 36ch;
}

.land-approach .approach-outro {
  padding: 16vh 6vw 22vh;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vh, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 32ch;
}
.land-approach .approach-outro .arrow {
  display: inline-block;
  margin-right: 0.3ch;
}

/* =========================================================
   SECTION 3.5 — PORTFOLIO (paper, typographic client list)
   Each row reveals its reference track on hover/focus.
   ========================================================= */
.land-portfolio {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 18vh 6vw 22vh;
}
.land-portfolio .eyebrow {
  font-size: 1.4vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 3vh;
}
.land-portfolio h2 {
  margin: 0 0 4vh;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 11vh, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.land-portfolio h2 .line { display: block; overflow: hidden; }
.land-portfolio h2 .line > span { display: inline-block; will-change: transform; }
.land-portfolio .portfolio-lead {
  margin: 0 0 8vh;
  font-size: clamp(16px, 2vh, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}
.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.client-row {
  position: relative;
  display: grid;
  grid-template-columns: 5vw 1fr 22vw;
  align-items: center;
  gap: 3vw;
  padding: 4.2vh 1vw;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  outline: none;
  transition: padding-left 360ms cubic-bezier(.2,.8,.2,1),
              color 280ms ease,
              background 320ms ease;
  overflow: hidden;
}
.client-row:last-child { border-bottom: 1px solid var(--rule); }
.client-row:hover,
.client-row:focus-visible {
  padding-left: 2.4vw;
  background: rgba(230, 76, 31, 0.04);
}
.client-row .idx {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3vh;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-feature-settings: "tnum";
}
.client-row .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7vh, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 280ms ease;
}
.client-row:hover .name,
.client-row:focus-visible .name { color: var(--orange); }
.client-row .meta {
  font-size: 1.3vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
  transition: opacity 240ms ease;
}
.client-row:hover .meta,
.client-row:focus-visible .meta { opacity: 0; }

/* Hover-revealed case-study scope panel, slides in from the right edge */
.client-row .hover-track {
  position: absolute;
  right: 1vw;
  top: 50%;
  transform: translate(2vw, -50%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 38ch;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1),
              opacity 280ms ease;
  font-family: var(--font-body);
  z-index: 2;
  text-align: right;
}
.client-row:hover .hover-track,
.client-row:focus-visible .hover-track {
  transform: translate(0, -50%);
  opacity: 1;
}
.client-row .hover-track .track-label {
  font-size: 1.1vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.8vh;
  white-space: nowrap;
}
.client-row .hover-track .track-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.85vh, 22px);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.32;
  white-space: normal;
}
.client-row .hover-track .track-details {
  list-style: none;
  padding: 0;
  margin: 1vh 0 0;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vh, 15px);
  line-height: 1.45;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25vh;
}
.client-row .hover-track .track-details li {
  list-style: none;
}

/* =========================================================
   SECTION 4 — CTA (dark, enters the deck)
   ========================================================= */
.land-cta {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: 22vh 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
}
.land-cta .eyebrow {
  font-size: 1.4vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4vh;
}
.land-cta h2 {
  margin: 0 0 6vh;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 9vh, 160px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.land-cta .enter-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vh, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 2.4vh 4vw;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 1.2vw;
  transition: gap 220ms ease, background 220ms ease, transform 220ms ease;
  will-change: transform;
}
.land-cta .enter-btn:hover {
  gap: 2.4vw;
  background: var(--orange-2);
  transform: translateY(-0.4vh);
}
