/* V3 flagship — luminous, clear CBI, contemporary craft */

:root {
  --ink: #12151a;
  --lagoon: #1a8a7a;
  --linen: #faf9f7;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track {
    animation: none !important;
  }
}

/* Progress */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progress-bar__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lagoon);
  transform-origin: left;
}

/* Header */
.site-header {
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}

.logo,
.menu-toggle {
  color: var(--ink);
}

.desktop-nav a {
  color: rgba(18, 21, 26, 0.58);
  transition: color 0.25s;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.nav-pill {
  background: var(--lagoon) !important;
  color: #fff !important;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
}

.nav-pill:hover {
  background: #2db5a0 !important;
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(18, 21, 26, 0.06);
}

/* Type helpers */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lagoon);
  color: #fff;
  padding: 1rem 1.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}

.btn-primary:hover {
  background: #2db5a0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 1rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(18, 21, 26, 0.22);
  text-underline-offset: 0.35em;
  cursor: pointer;
}

.btn-ghost:hover {
  text-decoration-color: var(--ink);
}

/* Hero */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Family + passports stay on the right; left stays clear for copy */
  object-position: 78% 40%;
  transform: scale(1.06);
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(250, 249, 247, 0.97) 0%, rgba(250, 249, 247, 0.9) 28%, rgba(250, 249, 247, 0.45) 48%, rgba(250, 249, 247, 0.08) 68%, transparent 82%),
    linear-gradient(180deg, rgba(250, 249, 247, 0.3) 0%, transparent 30%, rgba(250, 249, 247, 0.45) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px;
}

.hero-copy {
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  color: rgba(18, 21, 26, 0.4);
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Meaning block */
.meaning-visual {
  min-height: 22rem;
  border-radius: 1.5rem;
}

@media (min-width: 1024px) {
  .meaning-visual {
    min-height: 100%;
  }
}

.meaning-visual img {
  transition: transform 1.1s var(--ease);
}

.meaning-visual:hover img {
  transform: scale(1.04);
}

.meaning-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meaning-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(18, 21, 26, 0.08);
}

.meaning-item:last-child {
  border-bottom: 1px solid rgba(18, 21, 26, 0.08);
}

.meaning-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--lagoon);
  padding-top: 0.15rem;
}

.meaning-item:hover h3 {
  color: var(--lagoon);
  transition: color 0.25s;
}

.statement-img {
  object-position: 35% 12%;
}

.statement-veil {
  background: linear-gradient(100deg, rgba(250, 249, 247, 0.92) 0%, rgba(250, 249, 247, 0.45) 55%, rgba(250, 249, 247, 0.1) 100%);
}

/* Routes */
.chip {
  border: 1px solid rgba(18, 21, 26, 0.12);
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6e7886;
  border-radius: 999px;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--lagoon);
  color: var(--lagoon);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.route-card {
  display: grid;
  overflow: hidden;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(18, 21, 26, 0.03);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.route-card:hover {
  box-shadow: 0 20px 48px rgba(18, 21, 26, 0.07);
  transform: translateY(-2px);
}

.route-card.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  .route-card {
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 17.5rem;
  }

  .route-card--flip {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .route-card--flip .route-card__media {
    order: 2;
  }

  .route-card--flip .route-card__body {
    order: 1;
  }
}

.route-card__media {
  min-height: 12rem;
  overflow: hidden;
}

.route-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.route-card:hover .route-card__media img {
  transform: scale(1.05);
}

.route-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .route-card__body {
    padding: 2.25rem 2.5rem;
  }
}

.tag {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lagoon);
  background: rgba(26, 138, 122, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.tag--mute {
  color: #6e7886;
  background: rgba(18, 21, 26, 0.04);
}

/* Process / How it works */
.process-glow {
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(26, 138, 122, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(45, 181, 160, 0.08), transparent 50%);
  pointer-events: none;
}

.process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .process-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }

  .process-track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(45, 181, 160, 0.55),
      rgba(45, 181, 160, 0.55),
      transparent
    );
    z-index: 0;
    pointer-events: none;
  }
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid rgba(250, 249, 247, 0.08);
  border-radius: 1.25rem;
  background: #161a20;
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}

@media (min-width: 1024px) {
  .process-step {
    padding: 1.75rem 1.4rem 1.85rem;
  }
}

.process-step:hover {
  border-color: rgba(45, 181, 160, 0.35);
  background: #1a2228;
  transform: translateY(-4px);
}

.process-step__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(250, 249, 247, 0.42);
}

.process-step__list li {
  position: relative;
  padding-left: 0.85rem;
}

.process-step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(45, 181, 160, 0.7);
}

.consult-glow {
  background: radial-gradient(ellipse 50% 40% at 85% 10%, rgba(45, 181, 160, 0.12), transparent 55%);
  pointer-events: none;
}

.form-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 1.5rem;
  box-shadow: 0 16px 48px rgba(18, 21, 26, 0.05);
}

@media (min-width: 768px) {
  .form-card {
    padding: 2.25rem;
  }
}

.field {
  width: 100%;
  border: 1px solid rgba(18, 21, 26, 0.1);
  background: var(--linen);
  padding: 0.9rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0.85rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field:focus {
  border-color: var(--lagoon);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 138, 122, 0.12);
}

select.field {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-status.is-error {
  color: #b44;
}

.mobile-menu:not([hidden]) {
  display: block;
  animation: rise 0.3s var(--ease);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="60"] {
  transition-delay: 60ms;
}
.reveal[data-delay="80"] {
  transition-delay: 80ms;
}
.reveal[data-delay="100"] {
  transition-delay: 100ms;
}
.reveal[data-delay="160"] {
  transition-delay: 160ms;
}
.reveal[data-delay="200"] {
  transition-delay: 200ms;
}
.reveal[data-delay="240"] {
  transition-delay: 240ms;
}

/* —— Path section variants B & C —— */
.variant-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 21, 26, 0.08);
}

.variant-bar__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.variant-btn {
  border: 1px solid rgba(18, 21, 26, 0.12);
  background: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  color: #6e7886;
}

.variant-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.path-variant[hidden] {
  display: none !important;
}

/* B — editorial numbered rows */
.path-row {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(18, 21, 26, 0.08);
}

@media (min-width: 768px) {
  .path-row {
    grid-template-columns: 5.5rem 1fr 1.15fr;
    gap: 2rem;
    align-items: center;
    padding: 2.25rem 0;
  }
}

.path-row:first-of-type {
  border-top: none;
}

.path-row__num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.5rem;
  color: var(--lagoon);
  line-height: 1;
}

.path-row__media {
  order: -1;
  overflow: hidden;
  border-radius: 1.25rem;
  min-height: 14rem;
}

@media (min-width: 768px) {
  .path-row__media {
    order: 0;
    min-height: 16rem;
  }
}

.path-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.path-row:hover .path-row__media img {
  transform: scale(1.04);
}

/* C — overlay destination tiles */
.path-mosaic {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .path-mosaic {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 22rem 22rem;
  }

  .path-tile:nth-child(1) {
    grid-row: 1 / 3;
  }
}

.path-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 20rem;
  height: 100%;
}

.path-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.path-tile:hover img {
  transform: scale(1.05);
}

.path-tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(18, 21, 26, 0.72) 100%);
}

.path-tile__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.75rem 2rem;
  color: #faf9f7;
}

.path-tile__copy h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}

.path-tile__copy p {
  margin-top: 0.4rem;
  font-weight: 300;
  color: rgba(250, 249, 247, 0.72);
  max-width: 28rem;
}

.path-tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* D — overlapping fan cascade + light table */
.cascade-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 22rem;
  padding: 1.5rem 0 2.5rem;
}

.cascade-fan figure {
  position: relative;
  width: min(42%, 18rem);
  margin-left: -7%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1.15rem;
  box-shadow: 0 22px 50px rgba(18, 21, 26, 0.16);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease), z-index 0s;
}

.cascade-fan figure:first-child {
  margin-left: 0;
}

.cascade-fan figure:nth-child(1) {
  transform: rotate(-8deg) translateY(1.25rem);
  z-index: 1;
}
.cascade-fan figure:nth-child(2) {
  transform: rotate(-2.5deg) translateY(0);
  z-index: 2;
}
.cascade-fan figure:nth-child(3) {
  transform: rotate(3deg) translateY(0.35rem);
  z-index: 3;
}
.cascade-fan figure:nth-child(4) {
  transform: rotate(8.5deg) translateY(1.1rem);
  z-index: 2;
}

.cascade-fan figure:hover {
  z-index: 5;
  transform: rotate(0deg) translateY(-0.6rem) scale(1.04);
}

.cascade-fan img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cascade-fan figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(250, 249, 247, 0.92);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 767px) {
  .cascade-fan {
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 0;
  }

  .cascade-fan figure,
  .cascade-fan figure:nth-child(n) {
    width: calc(50% - 0.4rem);
    margin-left: 0;
    transform: none;
  }
}

/* E — stepped waterfall cascade */
.cascade-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

@media (min-width: 768px) {
  .cascade-steps {
    grid-template-columns: 1.15fr 0.9fr 1.05fr 0.85fr;
    gap: 0.85rem;
  }

  .cascade-steps figure:nth-child(1) {
    height: 26rem;
  }
  .cascade-steps figure:nth-child(2) {
    height: 18rem;
    margin-bottom: 5rem;
  }
  .cascade-steps figure:nth-child(3) {
    height: 22rem;
    margin-bottom: 1.5rem;
  }
  .cascade-steps figure:nth-child(4) {
    height: 16.5rem;
    margin-bottom: 6.5rem;
  }
}

.cascade-steps figure {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  min-height: 14rem;
}

.cascade-steps img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cascade-steps figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #faf9f7;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-shadow: 0 8px 24px rgba(18, 21, 26, 0.55);
}

/* Program tables */
.prog-table-wrap {
  overflow-x: auto;
  border-radius: 1.5rem;
}

.prog-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  text-align: left;
}

.prog-table th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
}

.prog-table td {
  padding: 1.15rem 1.25rem;
  vertical-align: middle;
}

.prog-table--linen {
  background: #fff;
  box-shadow: 0 18px 50px rgba(18, 21, 26, 0.06);
}

.prog-table--linen th {
  color: #6e7886;
  border-bottom: 1px solid rgba(18, 21, 26, 0.1);
}

.prog-table--linen td {
  border-bottom: 1px solid rgba(18, 21, 26, 0.06);
}

.prog-table--linen tbody tr:last-child td {
  border-bottom: none;
}

.prog-table--linen tbody tr:hover td {
  background: rgba(26, 138, 122, 0.05);
}

.prog-table--ink {
  background: #1a1f26;
  color: #faf9f7;
}

.prog-table--ink th {
  color: rgba(250, 249, 247, 0.45);
  background: #14181e;
  border-bottom: 1px solid rgba(250, 249, 247, 0.08);
}

.prog-table--ink td {
  border-bottom: 1px solid rgba(250, 249, 247, 0.07);
}

.prog-table--ink tbody tr:hover td {
  background: rgba(45, 181, 160, 0.08);
}

.prog-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.prog-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--lagoon);
  white-space: nowrap;
}

.prog-table--ink .prog-price {
  color: #2db5a0;
}

.prog-link {
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
