/* ------------------------------------------------------------
   HOME — hero, about teaser. Journeys now live in the sidebar.
------------------------------------------------------------- */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero__bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(216,201,163,0.09), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(216,201,163,0.05), transparent 55%),
    #050505;
  animation: driftBg 18s ease-in-out infinite alternate;
}

@keyframes driftBg {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, 1%); }
}

.hero__content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 22px;
}

.hero__subtitle {
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--fg-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero__scroll-cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--accent) 60%, transparent);
  animation: cueMove 2s ease-in-out infinite;
}

.hero__scroll-cue p {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@keyframes cueMove {
  0%   { transform: translateY(-10px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

.hero__content .btn {
  margin-top: 40px;
  background: transparent;
}

/* ---------- Section framing (shared with trip/gallery pages) ---------- */
.section-head {
  padding: clamp(70px, 12vh, 130px) clamp(24px, 8vw, 100px) clamp(30px, 6vh, 60px);
  max-width: 760px;
}

/* ---------- Portals — 3D feature photos, a way in ---------- */
.portals {
  padding: clamp(90px, 15vh, 170px) clamp(24px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

.portals__head {
  max-width: 600px;
  margin-bottom: clamp(40px, 7vh, 70px);
}

.portals__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: 14px;
}

.portals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: 1080px;
}

.portal {
  display: block;
  max-width: 300px;
}

.portal__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}

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

/* Portrait photos: instead of letterboxing a vertical photo inside
   this landscape-shaped card (object-fit: contain leaves black bars
   top/bottom), resize the card's stage to the photo's own 2:3 ratio
   so object-fit: cover fills it edge-to-edge with zero letterboxing.
   .portal's own bounding box (used for the hover-tilt raycast) isn't
   read from .portal__stage, so resizing the stage here is safe. */
.portal__stage:has(.portal__img.is-portrait) {
  aspect-ratio: 2 / 3;
}

.portal:hover .portal__img {
  transform: scale(1.06);
}

.portal__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(216, 201, 163, 0.2), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.portal:hover .portal__glow {
  opacity: 1;
}

.portal__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 55%);
  pointer-events: none;
}

.portal__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.portal__index {
  font-size: 0.72rem;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

.portal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.portal:hover .portal__title {
  color: var(--accent);
}

.portal__loc {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.portals__cta {
  margin-top: clamp(50px, 9vh, 90px);
  text-align: center;
}

.portals__cta-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 22px;
}

.btn--large {
  font-size: 0.9rem;
  padding-bottom: 8px;
}

@media (max-width: 980px) {
  .portals__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .portals__grid { grid-template-columns: 1fr; }
}

@media (hover: none), (pointer: coarse) {
  .portal__stage { transform: none !important; }
}

/* ---------- About teaser ---------- */
.teaser {
  padding: clamp(100px, 16vh, 200px) clamp(24px, 8vw, 100px);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.teaser__grid {
  max-width: 720px;
}

.teaser__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 18px 0 26px;
}

.teaser__desc {
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 34px;
}
