/* Landing page — photo hero, stat strip, trip cards, reasons, CTA band. */

.home-hero { --hero-h: 84vh; }

/* Hero laid out as a row: copy on the left takes all available width, the
   portrait sits on the right — they never overlap at any screen size. */
.home-hero .hero__row {
  position: relative; margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
}
.home-hero .hero__body { margin: 0; padding: 0; max-width: 920px; flex: 1 1 auto; }
.home-hero .hero__body h1 { font-size: clamp(36px, 4.6vw, 52px); text-wrap: balance; margin-bottom: 18px; }
.home-hero .hero__body p { max-width: 54ch; }

/* ══ hero animations ══ */
/* slow Ken Burns drift on the background photo */
.home-hero .hero__media img {
  transform-origin: 60% 40%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.11); } }

/* staggered entrance for the hero copy */
.home-hero .hero__body > * { animation: fadeUp .8s both; }
.home-hero .hero__badge { animation-delay: .15s; }
.home-hero .hero__body h1 { animation-delay: .30s; }
.home-hero .hero__body p { animation-delay: .45s; }
.home-hero .hero__cta { animation-delay: .60s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ══ founder portrait (branding) — circular headshot ══
   A circle crops the busy edges of the temporary cutout, and works cleanly
   with a transparent PNG headshot dropped in later. */
.hero-portrait {
  flex: 0 0 auto; align-self: flex-end; margin: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: portraitIn .9s .55s cubic-bezier(.2,.7,.25,1) both;
}
.hero-portrait__inner {
  width: clamp(150px, 15vw, 188px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: var(--color-surface-2);
  border: 4px solid rgba(255,255,255,0.92);
  box-shadow: var(--shadow-lg);
  animation: floaty 6.5s 1.6s ease-in-out infinite;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-portrait figcaption {
  font-size: 13px; color: #fff; letter-spacing: 0.02em; white-space: nowrap;
  background: rgba(15,28,22,0.55); backdrop-filter: blur(4px);
  padding: 6px 15px; border-radius: var(--radius-pill);
}
.hero-portrait figcaption strong { font-weight: 700; }
@keyframes portraitIn { from { opacity: 0; transform: translateX(46px) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Only show the portrait where the hero has real room beside the text;
   below this it would overlap the headline, so hide it and let the copy breathe. */
@media (max-width: 991px) {
  .hero-portrait { display: none; }
  .home-hero .hero__body { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .hero__media img,
  .home-hero .hero__body > *,
  .hero-portrait, .hero-portrait__inner {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ══ stat strip ══ */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: clamp(28px, 4vw, 44px) var(--gutter);
  margin-top: -44px; position: relative; z-index: 5;
}
.stat-strip > div {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-md);
}
.stat-strip__value { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.stat-strip__label { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); margin: 6px 0 0; }

/* ══ trips section ══ */
.home-trips { padding: clamp(40px, 6vw, 72px) var(--gutter) 24px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.section-head h2 { margin: 0; }
.section-head .kicker { margin-bottom: 10px; }
.section-link {
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  color: var(--color-accent); text-decoration: none;
}
.section-link:hover { color: var(--color-accent-600); }

.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.trip-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trip-card .photo {
  border-radius: 0; aspect-ratio: 4 / 3; margin: 0;
}
.trip-card .photo img { transition: transform .35s; }
.trip-card:hover .photo img { transform: scale(1.05); }
.trip-card__inner { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.trip-card__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.trip-card__type { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); font-weight: 600; }
.trip-card h3 { font-size: 21px; margin: 0 0 6px; transition: color .15s; }
.trip-card:hover h3 { color: var(--color-accent); }
.trip-card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--color-muted); }

/* accent-filled "custom trip" card */
.trip-card--custom {
  text-decoration: none; color: #fff;
  background: linear-gradient(150deg, var(--color-accent-2) 0%, var(--color-accent-2-600) 100%);
  border: 0; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 32px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.trip-card--custom:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.trip-card--custom__kicker { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.trip-card--custom__title { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; margin: 10px 0 8px; line-height: 1.1; }
.trip-card--custom__body { font-size: 14.5px; line-height: 1.55; opacity: 0.95; }

/* ══ why us ══ */
.home-why { padding: clamp(40px, 6vw, 72px) var(--gutter); }
.home-why .kicker { text-align: center; }
.home-why > h2 { text-align: center; max-width: 20ch; margin: 0 auto 40px; }

@media (max-width: 900px) {
  .trip-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr; margin-top: 20px; }
}
@media (max-width: 560px) {
  .trip-grid { grid-template-columns: 1fr; }
}
