/* home.css: the home in "Noche andina", given depth in a second pass on 2026-10-27 (glass cards floating in 3D, cards that lean
   toward the pointer, figures that count up, swipe rails that turn on phones).
   The motion is driven by public/js/home.js; without it the page shows everything at rest. */

@property --turn {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes settle {
  from {
    transform: scale(1.1);
  }
  to {
    transform: none;
  }
}
@keyframes word-up {
  from {
    translate: 0 108%;
  }
  to {
    translate: none;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 26px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}
@keyframes float-in {
  from {
    opacity: 0;
    scale: 0.86;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
/* Two gentle floats: one on `translate`, one on `transform`, so each can sit beside other motion. */
@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}
@keyframes hover-y {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes turn {
  to {
    --turn: 360deg;
  }
}
@keyframes grow {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}
@keyframes drift {
  from {
    translate: 0 -6%;
  }
  to {
    translate: 0 6%;
  }
}
/* Swipe rails on phones: the card in the middle faces you, the ones at the sides turn toward it. */
@keyframes flow {
  from {
    transform: perspective(900px) rotateY(-26deg) scale(0.88);
    opacity: 0.55;
  }
  50% {
    transform: none;
    opacity: 1;
  }
  to {
    transform: perspective(900px) rotateY(26deg) scale(0.88);
    opacity: 0.55;
  }
}

@scope (main) to (.tour-card > *, .inquiry > *, .map > *, .climate > *, .profile > *) {
  /* The whole home sits on night blue, with Fraunces as the title face (the form and the questions included). */
  .home {
    --title: var(--display);
    --radius: 2px;
    --wrap: 1280px;
    --gutter: clamp(18px, 4vw, 48px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --r: 20px;
    background: var(--night);
    color: #eef2f1;
    /* Tilted cards and swipe rails must never widen the page. */
    overflow-x: clip;
  }
  .home :is(h1, h2, h3, h4) {
    font-weight: 380;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  section {
    padding-block: clamp(68px, 10vw, 150px);
  }
  section + section:not(.machu, .story) {
    border-top: 1px solid rgb(255 255 255 / 0.08);
  }
  .head {
    margin-bottom: clamp(40px, 5vw, 72px);
  }
  .split {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 24px 64px;
  }
  .split > .lead {
    max-width: 44ch;
    margin: 0;
  }
  h2 {
    font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  }
  .lead {
    margin-top: 20px;
    font-size: clamp(1.08rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: rgb(238 242 241 / 0.72);
  }
  /* Small label above a title, after a short line. */
  .kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-bottom: 22px;
    font: 700 0.74rem/1 var(--body);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
  }
  html:lang(ja) :scope .kicker {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  /* Frosted glass, shared by every card that floats over a photo. */
  .glass {
    border: 1px solid rgb(255 255 255 / 0.2);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.15), rgb(255 255 255 / 0.04)), rgb(12 23 29 / 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.2);
    color: #fff;
  }

  /* Things rise into view as they are scrolled to (home.js adds .motion and then .in). */
  .reveal {
    transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s);
  }
  .motion .reveal:not(.in) {
    opacity: 0;
    translate: 0 44px;
  }

  /* Thin mint line at the very top that fills as the page is read. */
  .progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 70;
    height: 2px;
    background: var(--accent);
    transform-origin: 0 50%;
    scale: 0 1;
    pointer-events: none;
  }
  @supports (animation-timeline: scroll()) {
    .progress {
      animation: grow linear both;
      animation-timeline: scroll(root);
    }
  }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 700 0.76rem/1 var(--body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s);
  }
  .pill svg {
    transition: transform 0.4s var(--ease);
  }
  .pill:hover svg:last-child:not(:first-child) {
    transform: translateX(4px);
  }
  .pill.mint {
    background: var(--accent);
    color: var(--night);
    box-shadow: 0 16px 40px -16px rgb(111 207 151 / 0.7);
  }
  .pill.mint:hover {
    background: #fff;
  }
  .pill.ghost {
    border-color: rgb(255 255 255 / 0.5);
    color: #fff;
  }
  .pill.ghost:hover {
    border-color: #fff;
    background: #fff;
    color: var(--night);
  }
  .pill.dark {
    background: var(--night);
    color: #fff;
  }
  .pill.dark:hover {
    background: var(--accent-deep);
  }

  /* Round arrow that turns toward the top right when its card is hovered. */
  .go {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(255 255 255 / 0.32);
    border-radius: 50%;
    color: #fff;
    transition: background 0.4s, color 0.4s, border-color 0.4s, rotate 0.5s var(--ease), opacity 0.4s, translate 0.5s var(--ease);
  }
  a:hover > .go,
  a:focus-visible > .go {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--night);
    rotate: -45deg;
  }

  /* Opening */
  .hero {
    --px: 0;
    --py: 0;
    position: relative;
    display: grid;
    /* minmax(0, 1fr): the rail of trips scrolls inside the column instead of widening it. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: max(100svh, 720px);
    padding: calc(var(--header) + 40px) 0 0;
    color: #fff;
    isolation: isolate;
    /* The photo starts zoomed in and drifts with the pointer: it must not widen the page meanwhile. */
    overflow: clip;
  }
  /* The photo stays out of the grid, so the rows hold only the text and the rail. The <picture> has no box
     (display: contents in base.css), so the layer order goes on the <img>: under the shade of .hero::after. */
  .hero > picture > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Just enough room for the pointer drift: every extra percent of zoom softens the photo. */
    scale: 1.025;
    translate: calc(var(--px) * -14px) calc(var(--py) * -10px);
    transition: translate 1.4s var(--ease);
    animation: settle 3.2s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    /* A bright daytime photo: the header on the clouds, the title on the left and the trips need the shade. */
    background: linear-gradient(180deg, rgb(8 18 26 / 0.5), transparent 20%),
    linear-gradient(90deg, rgb(8 18 26 / 0.62), rgb(8 18 26 / 0) 60%),
    linear-gradient(0deg, rgb(12 23 29 / 0.92), rgb(12 23 29 / 0) 40%);
  }
  .hero-text :is(.tag, h1, .lead) {
    text-shadow: 0 2px 24px rgb(8 18 26 / 0.5);
  }
  .hero-main {
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    padding-bottom: clamp(40px, 6vw, 72px);
  }
  .tag {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    font: 700 0.74rem/1 var(--body);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    animation: fade-up 1s var(--ease) 0.1s both;
  }
  .tag::before {
    content: '';
    width: 44px;
    height: 1px;
    background: var(--accent);
  }
  /* 40 % smaller than the first version (user, 2026-10-27); wider measure so it stays on two lines. */
  h1 {
    max-width: 22ch;
    font-size: clamp(1.68rem, 3.96vw, 3.84rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  /* Each word rises out of its own slot. The slot keeps room for descenders. */
  h1 .w {
    display: inline-block;
    overflow: clip;
    margin-bottom: -0.14em;
    padding-bottom: 0.14em;
    vertical-align: top;
  }
  h1 .w > span {
    display: inline-block;
    animation: word-up 1.1s var(--ease) both;
    animation-delay: calc(0.25s + var(--i) * 70ms);
  }
  .hero .lead {
    max-width: 52ch;
    margin-top: 26px;
    color: rgb(255 255 255 / 0.92);
    animation: fade-up 1s var(--ease) 0.75s both;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
    animation: fade-up 1s var(--ease) 0.9s both;
  }
  .rail {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 14px 28px;
    padding-block: 24px;
    border-top: 1px solid rgb(255 255 255 / 0.2);
    font: 700 0.74rem/1.3 var(--body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: fade-up 1s var(--ease) 1.2s both;
  }
  .rail li {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .rail svg {
    flex: none;
    color: var(--accent);
  }

  /* Three trips on glass, fanned in depth. The group turns a little with the pointer and each card floats. */
  .floaters {
    display: grid;
    gap: 16px;
    justify-items: start;
    transform: perspective(1400px) rotateY(calc(-15deg + var(--px) * 7deg)) rotateX(calc(6deg - var(--py) * 5deg));
    transform-style: preserve-3d;
    transition: transform 1.4s var(--ease);
  }
  .floaters li {
    transform: translateZ(calc(var(--i) * 34px));
    animation: float-in 1.2s var(--ease) both, bob 7s ease-in-out infinite;
    animation-delay: calc(0.9s + var(--i) * 0.15s), calc(var(--i) * -2.4s);
  }
  .floaters li:nth-child(1) {
    margin-left: 56px;
  }
  .floaters li:nth-child(3) {
    margin-left: 92px;
  }
  .floaters a {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 392px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 22px;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.05)), rgb(10 20 27 / 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.22);
    color: #fff;
    text-decoration: none;
    transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease);
  }
  .floaters a:hover,
  .floaters a:focus-visible {
    border-color: rgb(111 207 151 / 0.6);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.08)), rgb(10 20 27 / 0.5);
    transform: translateZ(28px) translateX(-6px);
  }
  .floaters img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
  }
  .fl-text {
    display: grid;
    gap: 6px;
    min-width: 0;
  }
  .fl-name {
    font: 400 1.16rem/1.15 var(--display);
  }
  .fl-price {
    font-size: 0.85rem;
    color: rgb(255 255 255 / 0.75);
  }
  .fl-price b {
    font: 400 1.05rem/1 var(--display);
    color: #fff;
  }

  /* Why */
  .why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(48px, 7vw, 120px);
    align-items: center;
  }
  .why h2 {
    max-width: 16ch;
  }
  .reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 44px;
  }
  /* Each card is lit from where the pointer is (home.js writes --x and --y). */
  .reasons li {
    padding: 26px 24px 24px;
    border: 1px solid rgb(255 255 255 / 0.09);
    border-radius: var(--r);
    background: radial-gradient(380px circle at var(--x, -999px) var(--y, -999px), rgb(111 207 151 / 0.14), transparent 45%), rgb(255 255 255 / 0.025);
    transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s), transform 0.5s var(--ease), border-color 0.5s;
  }
  .reasons li:hover {
    transform: translateY(-5px);
    border-color: rgb(111 207 151 / 0.35);
  }
  .ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border: 1px solid rgb(111 207 151 / 0.28);
    border-radius: 14px;
    background: rgb(111 207 151 / 0.1);
    color: var(--accent);
  }
  .reasons h3 {
    margin-bottom: 8px;
    font-size: 1.32rem;
  }
  .reasons p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgb(238 242 241 / 0.66);
  }
  /* Two photos and two badges at different depths: the group leans with the pointer. */
  .why-photos {
    perspective: 1300px;
  }
  .depth {
    position: relative;
    padding: 0 20% 16% 0;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 1s var(--ease);
  }
  .depth.tilting {
    transition-duration: 0.3s;
  }
  .ph {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.9);
  }
  .ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .ph.main img {
    aspect-ratio: 4 / 5;
  }
  .ph.small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 22px;
    box-shadow: 0 0 0 8px var(--night), 0 50px 80px -30px rgb(0 0 0 / 0.9);
    transform: translateZ(60px);
    animation: bob 8s ease-in-out infinite -3s;
  }
  .badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 16px;
    border-radius: 18px;
  }
  .badge b {
    display: block;
    font: 400 1.5rem/1 var(--display);
    letter-spacing: -0.01em;
  }
  .badge small {
    display: block;
    max-width: 24ch;
    margin-top: 6px;
    font: 700 0.64rem/1.35 var(--body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.72);
  }
  .badge em {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    font-style: normal;
    color: rgb(255 255 255 / 0.82);
  }
  .badge.high {
    left: -7%;
    top: 14%;
    transform: translateZ(100px);
    animation: bob 7s ease-in-out infinite -1s;
  }
  .badge.high svg {
    flex: none;
    color: var(--accent);
  }
  .badge.count {
    right: 3%;
    top: 7%;
    display: block;
    padding: 18px 22px;
    text-align: center;
    transform: translateZ(130px);
    animation: bob 8s ease-in-out infinite -4.5s;
  }
  .badge.count b {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--accent);
  }

  /* Destinations index */
  .index {
    --gap: clamp(36px, 6vw, 96px);
    position: relative;
    min-height: 600px;
    padding-right: calc(50% + var(--gap) / 2);
  }
  .index li {
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }
  .index li:first-child {
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }
  .index a {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    text-decoration: none;
    transition: color 0.3s, padding 0.5s var(--ease);
  }
  .no {
    width: 2em;
    font: 700 0.74rem/1 var(--body);
    letter-spacing: 0.16em;
    color: var(--accent);
  }
  .index h3 {
    flex: 1;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 300;
  }
  .count {
    font: 700 0.72rem/1 var(--body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(238 242 241 / 0.55);
  }
  .index .go {
    opacity: 0;
    translate: -12px 0;
  }
  .index li:hover .go,
  .index a:focus-visible .go {
    opacity: 1;
    translate: none;
  }
  .index:has(li:hover) li:not(:hover) a {
    color: rgb(238 242 241 / 0.35);
  }
  .index li:hover a {
    padding-left: 14px;
  }
  /* The photo card floats beside the list, opens upward when its row is hovered and leans toward the pointer. */
  .panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(50% - var(--gap) / 2);
    overflow: hidden;
    border-radius: 28px;
    background: var(--night-2);
    box-shadow: 0 60px 100px -50px rgb(0 0 0 / 0.95);
    opacity: 0;
    clip-path: inset(14% 0 0 0 round 28px);
    transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    pointer-events: none;
    transition: opacity 0.7s var(--ease), clip-path 1s var(--ease), transform 1s var(--ease);
  }
  .index.tilting .panel {
    transition: opacity 0.7s var(--ease), clip-path 1s var(--ease), transform 0.35s var(--ease);
  }
  .index li:hover .panel,
  .index li:focus-within .panel,
  .index:not(:has(li:hover, li:focus-within)) li:first-child .panel {
    opacity: 1;
    clip-path: inset(0 round 28px);
  }
  .panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.6s var(--ease);
  }
  .index li:hover .panel img {
    transform: none;
  }
  .panel p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 90px 30px 28px;
    background: linear-gradient(0deg, rgb(8 18 26 / 0.92), transparent);
    font-size: 1.02rem;
    color: #fff;
  }

  /* Treks mosaic: rounded cards that lean toward the pointer, a light sweep follows it,
     and the caption and the arrow float in front of the photo. */
  .mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 290px;
    gap: 16px;
  }
  .tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .tile-in {
    position: relative;
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.9s var(--ease);
  }
  .tile-in.tilting {
    transition-duration: 0.25s;
  }
  .frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--night-2);
    box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.95);
  }
  .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
  }
  .tile-in:hover .frame img {
    transform: scale(1.07);
  }
  .frame::before,
  .frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .frame::before {
    background: linear-gradient(180deg, transparent 35%, rgb(8 18 26 / 0.9));
  }
  .frame::after {
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.18), transparent 42%);
    opacity: 0;
    transition: opacity 0.5s;
  }
  .tile-in.tilting .frame::after {
    opacity: 1;
  }
  .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 8px;
    padding: 22px;
    transform: translateZ(44px);
  }
  .tile-in > .go {
    position: absolute;
    top: 18px;
    right: 18px;
    border-color: rgb(255 255 255 / 0.4);
    background: rgb(12 23 29 / 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateZ(56px);
  }
  .days {
    font: 700 0.7rem/1 var(--body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .cap h3 {
    font-size: 1.45rem;
  }
  .cap .tl {
    display: none;
    max-width: 42ch;
    color: rgb(255 255 255 / 0.8);
  }
  .tile:first-child .cap {
    padding: clamp(24px, 3vw, 40px);
  }
  .tile:first-child h3 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
  }
  .tile:first-child .tl {
    display: block;
  }
  .price {
    font-size: 0.9rem;
    color: rgb(255 255 255 / 0.75);
  }
  .price b {
    font: 400 1.3rem/1 var(--display);
    color: #fff;
  }

  /* Split story band: the photo drifts slower than the page; the figures float over the seam. */
  .story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    background: var(--night-2);
  }
  .story-photo {
    position: relative;
    min-height: 680px;
    overflow: hidden;
  }
  .story-photo img {
    position: absolute;
    inset: -8% 0;
    width: 100%;
    height: 116%;
    object-fit: cover;
  }
  @supports (animation-timeline: view()) {
    .story-photo img {
      animation: drift linear both;
      animation-timeline: view();
    }
  }
  .story-text {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 640px;
    padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px);
  }
  .story h2 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
  }
  .story .lead {
    margin-bottom: 36px;
  }
  .figures {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 34px;
    width: max-content;
    max-width: calc(100% + 80px);
    margin: 56px 0 0 calc(-1 * clamp(24px, 6vw, 96px) - 70px);
    padding: 24px 34px;
    border-radius: 24px;
    animation: hover-y 8s ease-in-out infinite;
  }
  .figures dt {
    font: 300 clamp(2.4rem, 4vw, 3.3rem)/1 var(--display);
    color: var(--accent);
  }
  .figures dd {
    max-width: 14ch;
    margin: 8px 0 0;
    font: 700 0.66rem/1.35 var(--body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.72);
  }

  /* Day hikes strip: rounded panels that widen under the pointer. */
  .strip {
    display: flex;
    gap: 12px;
    height: 560px;
  }
  .strip li {
    flex: 1;
    min-width: 0;
    transition: flex-grow 0.8s var(--ease), opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s);
  }
  .strip li:hover,
  .strip li:focus-within {
    flex-grow: 2.6;
  }
  .strip a {
    position: relative;
    display: grid;
    height: 100%;
    overflow: hidden;
    border-radius: var(--r);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.95);
  }
  .strip a > picture > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
  }
  .strip li:hover a > picture > img {
    transform: scale(1.05);
  }
  .strip a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(8 18 26 / 0.15), rgb(8 18 26 / 0.85));
  }
  .strip a > .go {
    position: absolute;
    top: 16px;
    right: 16px;
    border-color: rgb(255 255 255 / 0.4);
    background: rgb(12 23 29 / 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .strip-cap {
    align-self: end;
    display: grid;
    gap: 10px;
    padding: 24px;
  }
  .strip h3 {
    font-size: 1.5rem;
  }
  .more-text {
    max-height: 0;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.82);
    opacity: 0;
    transition: max-height 0.6s, opacity 0.4s;
  }
  .strip li:hover .more-text,
  .strip li:focus-within .more-text {
    max-height: 6em;
    opacity: 1;
  }

  /* Machu Picchu: the light band, white cards that float and lean. */
  .machu {
    background: #f4f6f5;
    color: var(--ink);
  }
  .machu .lead {
    color: var(--ink-soft);
  }
  .machu .kicker,
  .machu .days {
    color: var(--accent-deep);
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
  }
  .cards li {
    display: grid;
  }
  .cards a {
    --lift: 0px;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 12px 12px 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(18 48 63 / 0.06), 0 30px 60px -34px rgb(18 48 63 / 0.4);
    text-decoration: none;
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    transition: transform 0.8s var(--ease), box-shadow 0.6s;
  }
  .cards a.tilting {
    transition: transform 0.25s var(--ease), box-shadow 0.6s;
  }
  .cards a:hover {
    --lift: -8px;
    box-shadow: 0 1px 2px rgb(18 48 63 / 0.06), 0 50px 80px -40px rgb(18 48 63 / 0.5);
  }
  .shot {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
  }
  .shot img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
  }
  .cards a:hover .shot img {
    transform: scale(1.05);
  }
  .tagprice {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
  }
  .tagprice b {
    font: 400 1.05rem/1 var(--display);
  }
  .card-text {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px 64px 0 14px;
  }
  .cards h3 {
    font-size: 1.6rem;
  }
  .cards p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink-soft);
  }
  .cards a > .go {
    position: absolute;
    right: 20px;
    bottom: 22px;
    border-color: rgb(18 48 63 / 0.18);
    color: var(--ink);
  }

  /* Team: glass cards, each photo inside a slowly turning ring. */
  .crew {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .crew li {
    padding: 36px 32px 34px;
    border: 1px solid rgb(255 255 255 / 0.09);
    border-radius: 24px;
    background: radial-gradient(380px circle at var(--x, -999px) var(--y, -999px), rgb(111 207 151 / 0.12), transparent 45%), rgb(255 255 255 / 0.025);
    transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s), transform 0.5s var(--ease), border-color 0.5s;
  }
  .crew li:hover {
    transform: translateY(-6px);
    border-color: rgb(111 207 151 / 0.3);
  }
  .avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 136px;
    height: 136px;
    margin-bottom: 26px;
    border-radius: 50%;
  }
  .avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 50%;
    background: conic-gradient(from var(--turn), var(--accent), rgb(111 207 151 / 0.05) 35%, rgb(111 207 151 / 0.05) 65%, var(--accent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: turn 7s linear infinite paused;
  }
  .live .avatar::before {
    animation-play-state: running;
  }
  .crew img,
  .mono {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
  }
  .mono {
    display: grid;
    place-items: center;
    background: var(--night-2);
    color: var(--accent);
    font: 400 2.2rem/1 var(--display);
  }
  .crew h3 {
    font-size: 1.7rem;
  }
  .role {
    display: block;
    margin: 10px 0 14px;
    font: 700 0.7rem/1.3 var(--body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .crew p {
    max-width: 34ch;
    color: rgb(238 242 241 / 0.68);
  }

  /* Steps: a mint line draws itself across, each dot lights up in turn and its number fills. */
  .steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    padding-top: 44px;
  }
  .steps::before,
  .steps::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgb(255 255 255 / 0.16);
  }
  .steps::after {
    background: var(--accent);
    transform-origin: 0 50%;
    transition: scale 2s var(--ease) 0.3s;
  }
  .motion .steps:not(.in)::after {
    scale: 0 1;
  }
  .steps li {
    position: relative;
  }
  .steps li::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 11px;
    height: 11px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgb(111 207 151 / 0.14);
    transition: background 0.5s, box-shadow 0.5s;
    transition-delay: calc(0.5s + var(--i) * 0.55s);
  }
  .motion .steps:not(.in) li::before {
    background: var(--night);
    box-shadow: none;
  }
  .steps span {
    display: block;
    margin-bottom: 22px;
    font: 300 clamp(3.2rem, 5.6vw, 4.8rem) / 1 var(--display);
    color: rgb(111 207 151 / 0.12);
    -webkit-text-stroke: 1px var(--accent);
    transition: color 0.8s;
    transition-delay: calc(0.6s + var(--i) * 0.55s);
  }
  .motion .steps:not(.in) span {
    color: transparent;
  }
  .steps h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
  }
  .steps p {
    color: rgb(238 242 241 / 0.68);
  }

  /* Questions and form: the form sits in a frame with a slowly turning mint glow. */
  .ask {
    background: var(--night-2);
  }
  .ask-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .faq {
    --line: rgb(255 255 255 / 0.14);
    margin-top: 36px;
  }
  .faq .acc > summary {
    font: 400 1.25rem/1.3 var(--display);
    transition: color 0.3s;
  }
  .faq .acc > summary:hover {
    color: var(--accent);
  }
  .faq .acc > summary::after {
    border-color: var(--accent);
  }
  .faq .acc-body {
    color: rgb(238 242 241 / 0.7);
  }
  .glow {
    --radius: 23px;
    padding: 1px;
    border-radius: 24px;
    background: conic-gradient(from var(--turn), rgb(111 207 151 / 0.95), rgb(111 207 151 / 0.06) 28%, rgb(111 207 151 / 0.06) 72%, rgb(111 207 151 / 0.95));
    box-shadow: 0 40px 90px -45px rgb(111 207 151 / 0.45);
    animation: turn 9s linear infinite paused;
  }
  .glow.live {
    animation-play-state: running;
  }

  @media (max-width: 1100px) {
    /* The three trips become a rail to swipe under the title. */
    .hero-main {
      grid-template-columns: minmax(0, 1fr);
      gap: 36px;
    }
    .floaters {
      display: flex;
      gap: 12px;
      margin-inline: calc(-1 * var(--gutter));
      padding: 2px var(--gutter) 6px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--gutter);
      scrollbar-width: none;
      transform: none;
    }
    .floaters li,
    .floaters li:nth-child(n) {
      flex: none;
      margin: 0;
      transform: none;
      scroll-snap-align: start;
      animation: float-in 1s var(--ease) both;
      animation-delay: calc(0.9s + var(--i) * 0.12s);
    }
    .floaters a {
      width: min(340px, 78vw);
    }
    .floaters a:hover {
      transform: none;
    }
  }

  @media (max-width: 1000px) {
    .why-grid,
    .ask-grid,
    .story {
      grid-template-columns: minmax(0, 1fr);
    }
    .why-photos {
      max-width: 520px;
    }
    .story-photo {
      min-height: 0;
      aspect-ratio: 4 / 5;
      max-height: 80vh;
    }
    /* The figures float over the bottom of the photo. */
    .story-text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-width: none;
      padding-top: 0;
    }
    .figures {
      order: -1;
      width: 100%;
      max-width: none;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin: -64px 0 48px;
      padding: 22px 24px;
    }
    .mosaic {
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: auto;
    }
    .tile {
      aspect-ratio: 4 / 5;
    }
    .tile:first-child {
      grid-row: auto;
      aspect-ratio: 16 / 11;
    }
    .strip {
      flex-direction: column;
      height: auto;
    }
    .strip a {
      aspect-ratio: 16 / 9;
    }
    .more-text {
      max-height: none;
      opacity: 1;
    }
    .cards,
    .crew,
    .steps {
      grid-template-columns: minmax(0, 1fr);
    }
    /* Steps stack: the line runs down the left, the dots on it. */
    .steps {
      gap: 36px;
      padding: 0 0 0 36px;
    }
    .steps::before,
    .steps::after {
      top: 6px;
      bottom: 6px;
      left: 5px;
      right: auto;
      width: 1px;
      height: auto;
    }
    .steps::after {
      transform-origin: 50% 0;
    }
    .motion .steps:not(.in)::after {
      scale: 1 0;
    }
    .steps li::before {
      top: 4px;
      left: -36px;
    }
  }

  /* Destinations on phones: cards to swipe that turn in 3D as they pass. */
  @media (max-width: 900px) {
    .index {
      display: flex;
      gap: 14px;
      min-height: 0;
      margin-inline: calc(-1 * var(--gutter));
      padding: 10px var(--gutter) 30px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }
    .index li,
    .index li:first-child {
      position: relative;
      display: grid;
      flex: none;
      width: 76vw;
      overflow: hidden;
      border: 0;
      border-radius: 22px;
      box-shadow: 0 30px 50px -30px rgb(0 0 0 / 0.9);
      scroll-snap-align: center;
    }
    .index a {
      z-index: 2;
      grid-area: 1 / 1;
      align-self: end;
      flex-wrap: wrap;
      gap: 6px 14px;
      padding: 22px;
    }
    .index a::after {
      content: '';
      position: absolute;
      inset: 0;
    }
    .index .go {
      display: none;
    }
    .index li:hover a {
      padding-left: 22px;
    }
    .index:has(li:hover) li:not(:hover) a {
      color: inherit;
    }
    .index h3 {
      flex-basis: 100%;
      order: 2;
    }
    .panel,
    .index .panel {
      position: static;
      grid-area: 1 / 1;
      width: auto;
      aspect-ratio: 3 / 4;
      border-radius: 0;
      box-shadow: none;
      opacity: 1;
      clip-path: none;
      transform: none;
    }
    .panel p {
      display: none;
    }
    .panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgb(8 18 26 / 0.9));
    }
  }

  /* Phones. The opening fits one screen: title at the top, the photo clear, the three trips on glass at the bottom.
     Long stacks become swipe rails or compact rows, and nothing sits on a photo that cannot hold it. */
  @media (max-width: 700px) {
    .rail {
      display: none;
    }
    /* The title sits at the top, under the header, on a light shade; the trips float at the bottom.
       No lead paragraph and no buttons (the header carries WhatsApp, email and the menu). */
    .hero {
      grid-template-rows: minmax(0, 1fr);
      padding-top: calc(var(--header) + 28px);
    }
    .hero::after {
      background: linear-gradient(180deg, rgb(8 18 26 / 0.85), rgb(8 18 26 / 0.5) 30%, rgb(8 18 26 / 0) 50%),
      linear-gradient(0deg, rgb(12 23 29 / 0.75), rgb(12 23 29 / 0) 26%);
    }
    .hero-main {
      align-self: stretch;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: space-between;
      padding-bottom: 20px;
    }
    .tag {
      gap: 12px;
      margin-bottom: 16px;
      font-size: 0.68rem;
      letter-spacing: 0.16em;
    }
    .tag::before {
      width: 28px;
    }
    h1 {
      font-size: 2.15rem;
      line-height: 1.06;
      letter-spacing: -0.02em;
    }
    .hero .lead,
    .hero .actions {
      display: none;
    }
    .floaters a {
      grid-template-columns: 58px minmax(0, 1fr) auto;
      gap: 12px;
      width: 78vw;
      padding: 8px 12px 8px 8px;
      border-radius: 18px;
    }
    .floaters img {
      width: 58px;
      height: 58px;
      border-radius: 12px;
    }
    .fl-text {
      gap: 4px;
    }
    .fl-name {
      font-size: 1.02rem;
    }
    .floaters .days {
      font-size: 0.62rem;
    }
    .floaters .go {
      width: 34px;
      height: 34px;
    }

    /* Reasons stay as icon rows, as approved for phones. */
    .reasons {
      grid-template-columns: minmax(0, 1fr);
      gap: 26px;
      margin-top: 36px;
    }
    .reasons li {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr);
      column-gap: 16px;
      padding: 0;
      border: 0;
      background: none;
    }
    .reasons li:hover {
      transform: none;
    }
    .ico {
      grid-row: span 2;
      width: 40px;
      height: 40px;
      margin: 0;
      border-radius: 12px;
    }
    .reasons h3 {
      margin-bottom: 4px;
      font-size: 1.25rem;
    }
    .why-photos {
      margin-top: 8px;
    }
    .badge.high {
      left: -2%;
      top: auto;
      bottom: 34%;
      padding: 10px 14px 10px 12px;
    }
    .badge b {
      font-size: 1.2rem;
    }
    .badge small {
      max-width: 18ch;
      font-size: 0.58rem;
    }
    .badge.count {
      right: 2%;
      top: 4%;
      padding: 12px 16px;
    }
    .badge.count b {
      font-size: 2.1rem;
    }

    /* Treks: tall cards to swipe, the tagline on every card. */
    .mosaic {
      display: flex;
      gap: 12px;
      margin-inline: calc(-1 * var(--gutter));
      padding: 10px var(--gutter) 30px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--gutter);
      scrollbar-width: none;
    }
    .tile,
    .tile:first-child {
      flex: none;
      width: 80vw;
      aspect-ratio: 4 / 5;
      scroll-snap-align: start;
    }
    .cap,
    .tile:first-child .cap {
      padding: 22px;
    }
    .tile h3,
    .tile:first-child h3 {
      font-size: 1.75rem;
    }
    .cap .tl {
      display: block;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .figures dt {
      font-size: 2.2rem;
    }
    .figures dd {
      font-size: 0.56rem;
      letter-spacing: 0.1em;
    }

    /* Day hikes: a ledger of rows, photo on the left. */
    .strip {
      gap: 0;
      border-top: 1px solid rgb(255 255 255 / 0.12);
    }
    .strip li {
      border-bottom: 1px solid rgb(255 255 255 / 0.12);
    }
    .strip a {
      grid-template-columns: 108px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      padding: 18px 0;
      aspect-ratio: auto;
      overflow: visible;
      border-radius: 0;
      box-shadow: none;
    }
    .strip a > picture > img {
      position: static;
      width: 108px;
      height: auto;
      aspect-ratio: 4 / 5;
      border-radius: 14px;
    }
    .strip li:hover a > picture > img {
      transform: none;
    }
    .strip a::after,
    .strip a > .go {
      display: none;
    }
    .strip-cap {
      align-self: center;
      gap: 7px;
      padding: 0;
    }
    .strip h3 {
      font-size: 1.3rem;
    }
    .more-text {
      font-size: 0.9rem;
      color: rgb(238 242 241 / 0.68);
    }

    /* Machu Picchu: white cards to swipe. */
    .cards {
      display: flex;
      gap: 14px;
      margin-inline: calc(-1 * var(--gutter));
      padding: 10px var(--gutter) 34px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--gutter);
      scrollbar-width: none;
    }
    .cards li {
      flex: none;
      width: 80vw;
      scroll-snap-align: start;
    }
    .shot img {
      aspect-ratio: 4 / 3;
    }
    .cards h3 {
      font-size: 1.4rem;
    }

    /* Team: photo beside the name, the line below. */
    .crew {
      gap: 14px;
    }
    .crew li {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      column-gap: 18px;
      align-items: center;
      padding: 22px;
    }
    .avatar {
      grid-row: span 2;
      width: 84px;
      height: 84px;
      margin: 0;
    }
    .crew img,
    .mono {
      width: 74px;
      height: 74px;
    }
    .crew h3 {
      align-self: end;
      font-size: 1.45rem;
    }
    .role {
      align-self: start;
      margin: 6px 0 0;
    }
    .crew p {
      grid-column: 1 / -1;
      max-width: none;
      margin-top: 16px;
    }

    /* Steps: the number beside the title. */
    .steps li {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr);
    }
    .steps span {
      grid-row: span 2;
      margin: 0;
      font-size: 2.6rem;
    }
    .steps h3 {
      font-size: 1.4rem;
    }
  }

  /* Swipe rails turn in 3D where the browser can tie an animation to a horizontal scroll. */
  @supports (animation-timeline: view(inline)) {
    @media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
      .index li {
        animation: flow linear both;
        animation-timeline: view(inline);
      }
    }
    @media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
      .tile-in,
      .cards a {
        animation: flow linear both;
        animation-timeline: view(inline);
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home *,
    .home *::before,
    .home *::after {
      animation: none !important;
      transition: none !important;
    }
  }
}
