/* ═══════════════════════════════════════════════════════════════════════════
   Vallarta Pro — homepage ("The Field Guide") magazine layer.
   Loaded only by home.html. Builds on tokens.css; free to be expressive here.
   ═══════════════════════════════════════════════════════════════════════════ */

.mag {
  --ink:        #13213F;
  --ink-soft:   #4A5571;
  --ink-faint:  #7E879C;
  --paper:      #F8F6F1;
  --paper-2:    #F0ECE3;
  --night:      #0D1A33;
  --night-2:    #15264A;
  --coral:      #1E6B66;
  --coral-deep: #165552;
  --blue:       #1E6B66;
  --teal:       #2F8574;
  --sand:       #E8DCC8;
  --line:       #E2DDD2;
  --line-dark:  rgba(255,255,255,.14);
  --gold:       #E9B340;
  --gold-text:  #8A5E0E;
  --navy:       #13213F;

  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
.mag * { box-sizing: border-box; }
.mag ::selection { background: var(--gold); color: var(--navy); }

.mag-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.mag-wrap--tight { max-width: 880px; }

/* ---- kicker / eyebrow -------------------------------------------------- */
.mag-kicker {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.mag-kicker::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
.mag-kicker--light { color: rgba(255,255,255,.66); }

/* ---- display type ---------------------------------------------------------- */
.mag-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mag-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mag-lede {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* ═══════════════════ HERO ═══════════════════════════════════════════════ */
.mag-hero {
  position: relative;
  /* Was 86svh / 92svh: a whole screen of headline before a first-time visitor
     saw a single thing to do. Shorter now, so the quick-start chips sit
     on-screen and the next band peeks in. */
  min-height: 66svh;
  display: flex; flex-direction: column;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) { .mag-hero { min-height: 74svh; } }
.mag-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* crossfading PV scenes — advanced by motion.js [data-carousel].
   .vp-slide base (position/opacity/bg-cover) comes from app.css; here we run a
   long, gentle crossfade and keep a slow Ken-Burns drift going on EVERY slide
   continuously (infinite alternate) — decoupled from .is-on so swapping the
   active scene never snaps or restarts the zoom. The opacity fade is then the
   only thing that visibly changes, which is what makes it feel seamless. */
.mag-hero__media .vp-slide {
  transition: opacity 2.6s cubic-bezier(.4, .05, .2, 1);
  will-change: opacity;
  animation: mag-kenburns 40s ease-in-out infinite alternate;
  transform: translateZ(0);
}
/* stagger the drift phase so consecutive scenes aren't at an identical zoom */
.mag-hero__media .vp-slide:nth-child(2) { animation-delay: -7s; }
.mag-hero__media .vp-slide:nth-child(3) { animation-delay: -14s; }
.mag-hero__media .vp-slide:nth-child(4) { animation-delay: -21s; }
.mag-hero__media .vp-slide:nth-child(5) { animation-delay: -28s; }
.mag-hero__media .vp-slide:nth-child(6) { animation-delay: -35s; }
.mag-hero__media .vp-slide:nth-child(7) { animation-delay: -5s; }
.mag-hero__media .vp-slide.is-on { opacity: 1; }
.mag-hero__media img {   /* no-JS / legacy single-image fallback */
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
}
@keyframes mag-kenburns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.6%, -1.2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mag-hero__media .vp-slide,
  .mag-hero__media .vp-slide.is-on {
    transition: none; animation: none; transform: scale(1.05);
  }
}
.mag-hero__wash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,14,30,.68) 0%, rgba(8,14,30,.20) 26%, rgba(8,14,30,.24) 54%, rgba(8,14,30,.86) 100%),
    linear-gradient(90deg, rgba(8,14,30,.5) 0%, transparent 55%);
}

.mag-hero__top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  /* padding-block only — keep the inline padding from .mag-wrap so the
     brand and burger aren't flush against the viewport edge on mobile */
  padding-block: clamp(18px, 3vw, 34px);
}
.mag-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
}
/* The logo on a sand tile, so the navy V reads on dark hero photos. */
.mag-brand__logo {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px; background: #F8F6F1;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.6);
  transition: transform var(--dur-2, 200ms) var(--ease-out, ease);
}
.mag-brand__logo img { display: block; width: 27px; height: auto; }
.mag-brand:hover .mag-brand__logo { transform: rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .mag-brand:hover .mag-brand__logo { transform: none; } }
.mag-menu-btn {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(12,8,7,.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 12px; cursor: pointer;
}
.mag-menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.mag-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mag-menu-btn.open span:nth-child(2) { opacity: 0; }
.mag-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Persistent nav for the homepage only — invisible over the hero (where the
   hero's own brand+burger already show), fades in once that row has scrolled
   out of view so the menu stays reachable for the rest of the page. Mirrors
   .site-header's frosted look (app.css) for visual consistency with every
   other page's always-on header. */
.mag-sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background:
    linear-gradient(180deg, rgba(248,246,241,0.94) 0%, rgba(248,246,241,0.96) 100%),
    url('/home-img/know_vallarta/1.jpg') center 58% / cover no-repeat;
  border-bottom: 1px solid rgba(14,26,51,0.10);
  box-shadow: 0 10px 30px -20px rgba(14,26,51,0.4);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mag-sticky-nav.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mag-sticky-nav__row { display: flex; align-items: center; justify-content: space-between; padding-block: 13px; }
.mag-brand--dark { color: var(--color-neutral-900, #0E1A33); }
.mag-menu-btn--dark {
  border-color: rgba(14,26,51,.16); background: rgba(14,26,51,.06);
}
.mag-menu-btn--dark span { background: var(--color-neutral-900, #0E1A33); }

.mag-hero__body {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(32px, 5vh, 64px);
}
.mag-hero__kicker { margin-bottom: clamp(14px, 2.4vh, 24px); }
.mag-hero__title {
  font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5.4rem);
  margin: 0 0 clamp(18px, 3vh, 28px);
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.mag-hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mag-hero__title .ln > span { display: block; }
.mag-hero__title em {
  font-style: italic; font-weight: 400;
  color: #F7E2A8;
}
/* line-by-line lift — only hidden when JS is present (adds .js to <html>) */
.js .mag-hero:not(.hero-ready) [data-hero-line] { transform: translateY(112%); }
.mag-hero.hero-ready [data-hero-line] {
  transform: translateY(0);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--step-i, 0) * 90ms + 0.12s);
}
/* the non-headline hero bits fade+rise */
.js .mag-hero [data-hero-step]:not([data-hero-line]) { opacity: 0; transform: translateY(18px); }
.mag-hero.hero-ready [data-hero-step]:not([data-hero-line]) {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--step-i, 0) * 70ms + 0.35s);
}
@media (prefers-reduced-motion: reduce) {
  .mag-hero [data-hero-line], .mag-hero [data-hero-step] { transform: none !important; opacity: 1 !important; transition: none !important; }
}
.mag-hero__sub {
  font-size: clamp(1rem, 0.94rem + 0.5vw, 1.25rem);
  line-height: 1.5; max-width: 46ch; color: rgba(255,255,255,.9);
  margin-bottom: clamp(20px, 3vh, 32px);
}

/* Quick starts — plain, clickable answers to "what can I do here?" */
.mag-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 640px; }
.mag-quick a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: #fff; font-size: .9rem; font-weight: 600;
  background: rgba(18,13,10,.34); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.mag-quick a:hover { background: rgba(18,13,10,.55); border-color: rgba(255,255,255,.45); }
.mag-quick a:focus-visible { outline: 2px solid #F7E2A8; outline-offset: 2px; }
.mag-quick a.is-season { border-color: rgba(255,217,194,.6); }

/* EN / ES switch in the hero's top row */
.mag-hero__right { display: flex; align-items: center; gap: 10px; }
.mag-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; overflow: hidden;
  background: rgba(12,8,7,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mag-lang a { padding: 9px 12px; min-width: 44px; text-align: center; color: rgba(255,255,255,.75);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.mag-lang a.is-on { background: rgba(255,255,255,.92); color: #0E1A33; }
.mag-lang a:focus-visible { outline: 2px solid #F7E2A8; outline-offset: -2px; }

/* Frosted glass — reads as part of the hero photo, not a white slab pasted on it */
.mag-search {
  display: flex; align-items: center; gap: 12px;
  width: min(560px, 100%);
  background: rgba(18,13,10,.30);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16);
}
.mag-search svg { flex: none; color: rgba(255,255,255,.78); }
.mag-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.05rem; color: #fff; padding: 14px 0;
}
.mag-search input::placeholder { color: rgba(255,255,255,.66); }
/* The submit button is the page's one clear "do this" — coral, not a
   translucent neutral, so it reads as the action rather than blending into
   the frosted glass around it. A slow, one-time-per-load pulse on the glow
   (not the button itself, so it never feels like it's nagging) draws the
   eye without being an animation someone has to wait out. */
.mag-search button {
  flex: none; width: 50px; height: 50px; border: none; border-radius: 999px;
  background: var(--coral); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px -4px rgba(30,107,102,.7);
  transition: background .2s var(--ease-out), transform .12s var(--ease-out);
}
.mag-search button::before {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  border: 1.5px solid rgba(30,107,102,.55);
  animation: mag-search-glow 2.2s ease-out 1;
}
@keyframes mag-search-glow {
  0%   { opacity: .9; transform: scale(.85); }
  70%  { opacity: 0;  transform: scale(1.35); }
  100% { opacity: 0;  transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) { .mag-search button::before { animation: none; display: none; } }
.mag-search button svg { fill: #fff; }
.mag-search button:hover { background: var(--coral-deep); }
.mag-search button:active { transform: scale(.9); }
.mag-search__cta {
  display: block; margin: 0 0 10px 4px; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.mag-hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.mag-hero__scroll i {
  width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.7), transparent);
  animation: mag-scrollcue 2s ease-in-out infinite;
}
@keyframes mag-scrollcue { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@media (max-width: 640px) { .mag-hero__scroll { display: none; } }

/* ═══════════════════ TICKER (live pulse) ═══════════════════════════════ */
.mag-ticker {
  background: var(--night); color: #fff;
  padding: clamp(26px, 4.5vw, 44px) 0;
}
.mag-ticker__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
}
.mag-stat__n {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.mag-stat__l {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.mag-ticker__foot {
  margin-top: clamp(22px, 4vw, 36px);
  padding-top: 18px; border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.55);
}
.mag-ticker__foot .d { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
@media (max-width: 620px) {
  .mag-ticker__grid { grid-template-columns: 1fr; gap: 20px; text-align: left; }
}

/* ═══════════════════ SECTION OPENERS ══════════════════════════════════ */
.mag-band { padding: clamp(42px, 7.5vw, 92px) 0; }
.mag-band--paper2 { background: var(--paper-2); }
.mag-band--tight { padding: clamp(34px, 5vw, 60px) 0; }
.mag-open {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-bottom: clamp(22px, 3.8vw, 44px);
}
.mag-open__head { display: flex; flex-direction: column; gap: 18px; }
.mag-open .mag-lede { margin-top: 4px; }
@media (min-width: 900px) {
  .mag-open { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 40px; }
  .mag-open .mag-lede { justify-self: end; }
}

/* ═══════════════════ PROMPTS (start here) ════════════════════════════ */
.mag-prompts { display: grid; gap: 14px; }
@media (min-width: 760px) { .mag-prompts { grid-template-columns: repeat(3, 1fr); } }
.mag-prompt {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 168px; padding: 22px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.mag-prompt__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .14; filter: saturate(1.1);
  transition: opacity .4s var(--ease-out), transform 1s var(--ease-out);
}
.mag-prompt::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 100%);
}
.mag-prompt:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(14,26,51,.4); border-color: var(--coral); }
.mag-prompt:hover .mag-prompt__bg { opacity: .28; transform: scale(1.06); }
.mag-prompt__q {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 14ch;
}
.mag-prompt__go {
  align-self: flex-start;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--coral-deep);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out), color .3s;
}
.mag-prompt:hover .mag-prompt__go { background: var(--coral); color: #fff; transform: rotate(-45deg); border-color: var(--coral); }

/* ═══════════════════ GALLERY (the city in sections) ══════════════════ */
.mag-gallery { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 22px); }
@media (min-width: 760px) {
  .mag-gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); }
  .mag-feat--eat    { grid-column: span 4; grid-row: span 2; }
  .mag-feat--do     { grid-column: span 2; grid-row: span 2; }
  .mag-feat--stay   { grid-column: span 2; }
  .mag-feat--beach  { grid-column: span 4; }
  .mag-feat--events { grid-column: span 6; }
}
.mag-feat {
  position: relative; overflow: hidden;
  border-radius: 20px; display: block; min-height: 240px;
  text-decoration: none; color: #fff; isolation: isolate;
}
.mag-feat img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform 1.1s var(--ease-out);
}
.mag-feat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.8) 100%);
}
.mag-feat:hover img { transform: scale(1.06); }
.mag-feat__inner {
  position: absolute; inset: auto 0 0 0; padding: clamp(20px, 3vw, 34px);
}
.mag-feat__k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 8px; display: block;
}
.mag-feat__t {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.mag-feat__note { margin-top: 10px; font-size: .92rem; color: rgba(255,255,255,.85); }
.mag-feat__badge {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 999px;
}

/* ═══════════════════ IMMERSIVE BAND (know vallarta) ══════════════════ */
.mag-immerse {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(420px, 60vh, 640px);
  display: flex; align-items: center;
  color: #fff;
  background: #0a0706;   /* fallback under the image — no white seam if parallax overshoots */
}
.mag-immerse img {
  position: absolute; inset: -22% 0; width: 100%; height: 144%; object-fit: cover;
  object-position: center 46%;   /* favour the water + coastline, not the haze up top */
  z-index: -2;
}
.mag-immerse::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,14,30,.82) 0%, rgba(8,14,30,.4) 55%, rgba(8,14,30,.15) 100%);
}
.mag-immerse__big {
  font-size: clamp(2.6rem, 1.5rem + 6vw, 5.4rem);
  margin: 14px 0 18px;
}
.mag-immerse__cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 6px;
  transition: gap .3s var(--ease-out), border-color .3s;
}
.mag-immerse__cta:hover { gap: 20px; border-color: var(--coral); }

/* ═══════════════════ INDEX (events / dispatch) ══════════════════════ */
.mag-index { display: flex; flex-direction: column; }
.mag-entry {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: padding-left .35s var(--ease-out);
}
.mag-index a.mag-entry:hover { padding-left: 12px; }
.mag-index a.mag-entry:hover .mag-entry__t { color: var(--coral-deep); }
.mag-entry:last-child { border-bottom: 1px solid var(--line); }
.mag-entry__num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  letter-spacing: .1em;
}
.mag-entry__t {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.9rem); line-height: 1.12;
  transition: color .25s;
}
.mag-entry__meta { margin-top: 6px; font-size: .88rem; color: var(--ink-soft); }
.mag-entry__tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--coral-deep); white-space: nowrap;
}
@media (max-width: 560px) {
  .mag-entry { grid-template-columns: auto 1fr; }
  .mag-entry__tag { display: none; }
}

/* ═══════════════════ SUBSCRIBE ═══════════════════════════════════════ */
.mag-subscribe {
  background: var(--night); color: #fff;
  padding: clamp(60px, 10vw, 120px) 0;
}
.mag-subscribe__t { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.8rem); margin-bottom: 16px; }
.mag-subscribe__p { color: rgba(255,255,255,.65); max-width: 44ch; margin-bottom: 30px; font-size: 1.05rem; line-height: 1.5; }
.mag-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.mag-form input {
  flex: 1; min-width: 200px; height: 56px; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 1rem; outline: none;
}
.mag-form input::placeholder { color: rgba(255,255,255,.4); }
.mag-form input:focus { border-color: var(--coral); }
.mag-form button {
  flex: none; height: 56px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--coral); color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background .2s var(--ease-out), transform .12s var(--ease-out);
}
.mag-form button:hover { background: var(--coral-deep); }
.mag-form button:active { transform: scale(.96); }
.mag-form button:disabled { opacity: .6; }
.mag-msg { margin-top: 12px; font-size: .85rem; min-height: 18px; }

/* ═══════════════════ MASTHEAD FOOTER ════════════════════════════════ */
.mag-foot {
  background: var(--night-2); color: rgba(255,255,255,.6);
  padding: clamp(48px, 8vw, 80px) 0 40px;
}
.mag-foot__top { display: flex; flex-wrap: wrap; gap: 28px 60px; justify-content: space-between; align-items: flex-start; }
.mag-foot__brand { font-family: var(--font-display); font-size: 1.6rem; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.mag-foot__brand .d { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.mag-foot__logo { display: block; height: 26px; width: auto; padding: 6px; border-radius: 10px; background: #F8F6F1; }
.mag-foot__links { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: .92rem; }
.mag-foot__links a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.mag-foot__links a:hover { color: #fff; }
.mag-foot__note {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.4);
}

/* ---- desktop side chapter rail -------------------------------------- */
.mag-rail {
  position: fixed; left: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 40; display: none; flex-direction: column; gap: 14px;
}
@media (min-width: 1180px) { .mag-rail { display: flex; } }
.mag-rail a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none;
}
.mag-rail a::before { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--ease-out), background .3s; }
.mag-rail a:hover, .mag-rail a.is-active { color: var(--coral-deep); }
.mag-rail a.is-active::before { width: 34px; background: var(--coral-deep); }

/* ---- scroll reveal (magazine variant) — only arms when JS present -- */
.js .mag [data-rise] { opacity: 0; transform: translateY(32px); }
.mag [data-rise].in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--rise-i, 0) * 90ms);
}
.js .mag [data-clip] { clip-path: inset(0 0 100% 0); }
.mag [data-clip].in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out);
  transition-delay: calc(var(--rise-i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .mag [data-rise], .mag [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .mag-brand__dot, .mag-hero__scroll i { animation: none !important; }
}

/* ═══════════════════ EXPLORE GRID (value showcase) ══════════════════ */
.mag-explore {
  display: grid; gap: clamp(8px, 1.4vw, 14px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .mag-explore { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .mag-explore { grid-template-columns: repeat(4, 1fr); } }

.mag-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  padding: clamp(12px, 2vw, 18px);
  text-decoration: none; color: #fff;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (min-width: 600px) { .mag-tile { aspect-ratio: 4 / 5; } }
.mag-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(40,25,15,.5); }
.mag-tile:hover img { transform: scale(1.07); }

.mag-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform 1s var(--ease-out);
}
.mag-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.82) 100%);
}
.mag-tile--fill { background: var(--night); }
.mag-tile--fill.c-coral { background: linear-gradient(150deg, var(--coral) 0%, var(--coral-deep) 100%); }
.mag-tile--fill.c-blue  { background: linear-gradient(150deg, #2B8A82 0%, var(--blue) 100%); }
.mag-tile--fill.c-teal  { background: linear-gradient(150deg, #5FA58C 0%, var(--teal) 100%); }
.mag-tile--fill.c-night { background: linear-gradient(150deg, #1F3360 0%, var(--night) 100%); }
.mag-tile--fill::after { display: none; }
.mag-tile__ico {
  position: absolute; top: clamp(12px, 2vw, 18px); left: clamp(12px, 2vw, 18px);
  width: 30px; height: 30px; opacity: .92;
}
.mag-tile__ico svg { width: 100%; height: 100%; }
.mag-tile__t {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.5rem); line-height: 1.02;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.mag-tile__h {
  margin-top: 5px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  color: rgba(255,255,255,.82);
}
.mag-tile__badge {
  align-self: flex-start; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  padding: 3px 8px; border-radius: 999px;
}
/* Tours — the one tile in this grid we actively want to sell */
.mag-tile--rec { box-shadow: 0 0 0 2px rgba(233,179,64,.55); }
.mag-tile--rec:hover { box-shadow: 0 0 0 2px rgba(233,179,64,.8), 0 20px 40px -24px rgba(40,25,15,.5); }
.mag-tile__badge--rec {
  background: rgba(233,179,64,.9); border-color: rgba(233,179,64,1);
  color: #fff; font-weight: 600; text-transform: uppercase;
}

/* ---- index-entry thumbnails ---------------------------------------- */
.mag-entry__thumb {
  flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--sand); align-self: center;
}
.mag-entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mag-entry--media { grid-template-columns: auto auto 1fr auto; }
@media (max-width: 560px) {
  .mag-entry--media { grid-template-columns: auto 1fr; }
  .mag-entry--media .mag-entry__thumb { display: none; }
}

/* ---- market strip ------------------------------------------------------ */
.mag-market {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .mag-market { grid-template-columns: repeat(3, 1fr); } }
.mag-mcard {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  text-decoration: none; color: var(--ink); background: #fff;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.mag-mcard:hover { transform: translateY(-3px); border-color: var(--coral); }
.mag-mcard__p { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
.mag-mcard__m { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
