/* ==========================================================================
   Landing Approach — interactive 4-step process preview on the homepage
   Currently in /ui picker mode — three accordion treatments share base
   styles below; variant-specific styles at the bottom of this file.
   ========================================================================== */

.landing-approach {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: var(--paper);
}

.landing-approach__header {
  max-width: 64ch;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.landing-approach__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.landing-approach__lede {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  max-width: 64ch;
}

.landing-approach__chapter-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.landing-approach__chapter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.landing-approach__chapter-lede {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.landing-approach__chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .landing-approach__chapter-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.landing-approach__chapter-list li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.landing-approach__chapter-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--brand-purple);
}

.landing-approach__footnote {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-approach__footnote a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-approach__footnote a:hover {
  color: var(--brand-purple);
  border-color: var(--brand-purple);
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   Variant: Stepper rail + side panel
   ========================================================================== */

.landing-approach--stepper .landing-approach__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .landing-approach--stepper .landing-approach__layout {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 4rem;
  }
}

.landing-approach__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.landing-approach__rail li {
  border-top: 1px solid var(--rule);
}

.landing-approach__rail li:last-child {
  border-bottom: 1px solid var(--rule);
}

.landing-approach__rail-step {
  position: relative;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.landing-approach__rail-step:hover {
  padding-left: 0.5rem;
}

.landing-approach__rail-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}

.landing-approach__rail-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.1;
  color: var(--ink);
}

.landing-approach__rail-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 3px;
  height: 60%;
  border-radius: 2px;
  background: var(--brand-gradient);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-approach__rail-step.is-active {
  padding-left: 1rem;
}

.landing-approach__rail-step.is-active .landing-approach__rail-num {
  color: var(--ink);
}

.landing-approach__rail-step.is-active .landing-approach__rail-bar {
  transform: translateY(-50%) scaleY(1);
}

.landing-approach__panel {
  position: relative;
  min-height: 320px;
  padding: 2.5rem;
  background:
    linear-gradient(135deg, rgba(57, 194, 216, 0.07) 0%, rgba(160, 100, 169, 0.07) 100%);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
}

.landing-approach__panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(57, 194, 216, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.landing-approach__chapter {
  position: relative;
}

.landing-approach__chapter[hidden] {
  display: none;
}

/* ==========================================================================
   Variant: Horizontal carousel
   ========================================================================== */

.landing-approach--carousel .landing-approach__carousel {
  position: relative;
}

.landing-approach__carousel-track {
  position: relative;
  min-height: 360px;
}

.landing-approach__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(57, 194, 216, 0.08) 0%, rgba(160, 100, 169, 0.08) 100%);
  border: 1px solid var(--rule);
  border-radius: 24px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}

@media (min-width: 800px) {
  .landing-approach__slide {
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3rem;
  }
}

.landing-approach__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.landing-approach__slide-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0;
}

.landing-approach__slide-body {
  max-width: 56ch;
}

.landing-approach__carousel-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.landing-approach__carousel-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.landing-approach__carousel-dots button {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing-approach__carousel-dots button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.landing-approach__carousel-dots button.is-active {
  color: var(--white);
  background: var(--brand-gradient);
  border-color: transparent;
}

.landing-approach__carousel-progress {
  width: 100%;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.landing-approach__carousel-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--brand-gradient);
  transition: width 0.2s linear;
}

/* ==========================================================================
   Variant: Vertical timeline
   ========================================================================== */

.landing-approach--timeline .landing-approach__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.landing-approach__node {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  color: var(--brand-purple);
}

.landing-approach__node:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .landing-approach__node {
    grid-template-columns: 100px minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.landing-approach__node:nth-child(2n) {
  color: var(--brand-blue);
}

.landing-approach__node-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.landing-approach__node-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.landing-approach__node-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px currentColor;
}

.landing-approach__node-body {
  max-width: 56ch;
  color: var(--ink);
}

.landing-approach__node-diagram {
  display: none;
  width: 200px;
  height: 200px;
  justify-self: end;
}

@media (min-width: 900px) {
  .landing-approach__node-diagram {
    display: block;
  }
}

.landing-approach__node-diagram svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Horizontal column accordion (.vac)
   Active panel expands wide; collapsed panels show step number + label.
   Each phase carries a subtle stock photo for visual depth.
   ========================================================================== */

.vac {
  display: flex;
  gap: 4px;
  width: 100%;
  height: clamp(440px, 62vh, 600px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-deep);
}

.vac__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 96px;
  padding: 1.5rem 1.25rem;
  background: var(--paper-deep);
  color: var(--ink);
  border: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: flex-basis 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
              flex-grow 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.5s ease,
              color 0.5s ease;
}

/* Tablet+ — generous interior padding for readability when expanded */
@media (min-width: 760px) {
  .vac__panel {
    padding: 2rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  .vac__panel {
    padding: 2.5rem 2.25rem;
  }
}

/* Hover background only on devices that actually hover (no sticky :hover
   colour after tap on mobile) */
@media (hover: hover) and (min-width: 760px) {
  .vac__panel:hover:not(.is-active) {
    background: color-mix(in srgb, var(--paper-deep) 80%, var(--brand-purple) 20%);
  }
}

.vac__panel.is-active {
  flex: 1 1 auto;
  color: var(--paper);
}

.vac__panel--1.is-active { background: var(--brand-blue); }
.vac__panel--2.is-active { background: var(--brand-purple); }
.vac__panel--3.is-active { background: var(--brand-purple-deep); }
.vac__panel--4.is-active { background: var(--ink); }

/* Subtle phase imagery — only on the active expanded panel.
   Photos sit underneath content with low opacity + brand color tint.
   Sourced from Unsplash (free for commercial use). */
.vac__panel.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  mix-blend-mode: overlay;
  filter: grayscale(0.5) contrast(1.05);
  pointer-events: none;
  transition: opacity 0.6s ease 0.15s;
}

.vac__panel.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.vac__panel.is-active::before {
  opacity: 0.22;
}

.vac__panel--1.is-active::before {
  background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1400&q=80');
}

.vac__panel--2.is-active::before {
  background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1400&q=80');
}

.vac__panel--3.is-active::before {
  background-image: url('https://images.unsplash.com/photo-1517077304055-6e89abbf09b0?w=1400&q=80');
}

.vac__panel--4.is-active::before {
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1400&q=80');
}

/* Lift content above the photo overlay */
.vac__top,
.vac__expanded,
.vac__label {
  position: relative;
  z-index: 1;
}

.vac__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.vac__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.vac__arrow {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transform: rotate(135deg);
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.vac__panel.is-active .vac__arrow {
  transform: rotate(0);
  opacity: 1;
}

.vac__expanded {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.2s, transform 0.4s ease 0.2s;
  pointer-events: none;
  padding-top: 1.5rem;
}

.vac__panel.is-active .vac__expanded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vac__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.vac__body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.6;
  opacity: 0.92;
}

.vac__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 700px) {
  .vac__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.vac__list span {
  position: relative;
  padding-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.vac__list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.vac__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: auto;
}

/* Mobile (default — applies to all variants unless overridden) */
@media (max-width: 760px) {
  .vac {
    flex-direction: column;
    height: auto;
    border-radius: 14px;
  }

  .vac__panel {
    flex: 0 0 auto;
    min-height: 84px;
    padding: 1.5rem 1.5rem;
  }

  .vac__panel.is-active {
    flex: 0 0 auto;
  }

  .vac__expanded {
    padding-top: 1.25rem;
  }
}

/* ==========================================================================
   Mobile — Open card stack
   Below 760px the desktop accordion drops away. All four phases show as
   full open brand-tinted cards stacked vertically — no tapping required,
   everything is readable in a single scroll. Photos hidden on mobile so
   the text stays clean against the solid colour blocks.
   ========================================================================== */

@media (max-width: 760px) {
  .landing-approach--mobile-open .vac {
    background: transparent;
    border-radius: 0;
    gap: 1rem;
  }

  .landing-approach--mobile-open .vac__panel {
    min-height: auto;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    cursor: default;
    flex: 0 0 auto;
  }

  .landing-approach--mobile-open .vac__expanded {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding-top: 1.25rem;
    gap: 0.85rem;
  }

  .landing-approach--mobile-open .vac__panel--1 {
    background: var(--brand-blue);
    color: var(--paper);
  }
  .landing-approach--mobile-open .vac__panel--2 {
    background: var(--brand-purple);
    color: var(--paper);
  }
  .landing-approach--mobile-open .vac__panel--3 {
    background: var(--brand-purple-deep);
    color: var(--paper);
  }
  .landing-approach--mobile-open .vac__panel--4 {
    background: var(--ink);
    color: var(--paper);
  }

  /* Subtle phase imagery on every panel (not just is-active). Bottom
     gradient overlay still on for legibility against the photo. */
  .landing-approach--mobile-open .vac__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    mix-blend-mode: overlay;
    filter: grayscale(0.5) contrast(1.05);
    pointer-events: none;
  }

  .landing-approach--mobile-open .vac__panel--1::before {
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1400&q=80');
  }
  .landing-approach--mobile-open .vac__panel--2::before {
    background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1400&q=80');
  }
  .landing-approach--mobile-open .vac__panel--3::before {
    background-image: url('https://images.unsplash.com/photo-1517077304055-6e89abbf09b0?w=1400&q=80');
  }
  .landing-approach--mobile-open .vac__panel--4::before {
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1400&q=80');
  }

  /* Bottom gradient stays for text legibility */
  .landing-approach--mobile-open .vac__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
  }

  .landing-approach--mobile-open .vac__num {
    font-size: 2rem;
    line-height: 1;
  }

  .landing-approach--mobile-open .vac__heading {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .landing-approach--mobile-open .vac__body {
    font-size: 0.9375rem;
    line-height: 1.55;
    opacity: 1;
  }

  .landing-approach--mobile-open .vac__list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .landing-approach--mobile-open .vac__list span {
    padding-left: 0.9rem;
    font-size: 0.8125rem;
    opacity: 0.92;
  }

  .landing-approach--mobile-open .vac__arrow {
    display: none;
  }

  .landing-approach--mobile-open .vac__label {
    margin-top: 1.25rem;
    font-size: 10px;
    opacity: 0.65;
  }
}

/* ==========================================================================
   Dark mode
   Header copy flips to paper. Active brand-coloured panels keep their
   palette. Inactive (paper-deep) panels become a deeper navy so they
   read as collapsed columns on a dark canvas.
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  .landing-approach {
    background-color: #0A0B1B;
  }

  .landing-approach__title {
    color: var(--paper);
  }

  .landing-approach__lede {
    color: rgba(245, 241, 232, 0.72);
  }

  .landing-approach__footnote a {
    color: var(--paper);
    border-bottom-color: rgba(245, 241, 232, 0.18);
  }

  .landing-approach__footnote a:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
  }

  /* Variant A — column accordion */
  .vac {
    background: #14152A;
  }

  .vac__panel {
    background: #14152A;
    color: var(--paper);
  }

  @media (hover: hover) and (min-width: 760px) {
    .vac__panel:hover:not(.is-active) {
      background: color-mix(in srgb, #14152A 80%, var(--brand-purple) 20%);
    }
  }

  /* Active panels keep their existing brand-tinted palettes — they look
     fine on either theme. Just make panel--4 (default ink) lift a touch. */
  .vac__panel--4.is-active {
    background: #1B1D38;
  }

  /* Mobile open variant — keep brand-tinted backgrounds + photo overlay,
     since they're already designed for high-contrast paper text. */
}

