/* ============================================================
   Nepali Traveller v2 — Bold Immersive layer
   Loaded after theme.css. Scoped to body.nt-v2 so the original
   theme remains untouched if this stylesheet is removed.
   ============================================================ */

body.nt-v2 {
  --v2-bg:        #0b0c0e;
  --v2-bg-2:      #15171a;
  --v2-bg-3:      #1d2025;
  --v2-line:      rgba(255, 255, 255, 0.08);
  --v2-line-2:    rgba(255, 255, 255, 0.14);
  --v2-ink:       #e9eaec;
  --v2-ink-2:     #b6b8bd;
  --v2-mute:      #7a7d83;
  /* Two accent tokens for proper contrast across surfaces:
     --v2-gold   = always-bright, for use on perpetually-dark contexts
                   (hero, card overlays, footer).
     --v2-accent = scheme-aware default; swapped to a darker amber in
                   light mode so it meets AA on the cream surface. */
  --v2-gold:      #e8b15c;
  --v2-accent:    #e8b15c;
  --v2-accent-2:  #f3c97e;
  --v2-hot:       #ff5a3c;
  --v2-radius:    14px;
  --v2-shadow:    0 30px 80px -20px rgba(0,0,0,.7);
  --v2-ease:      cubic-bezier(.2,.7,.2,1);
  --v2-font-display: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --v2-font-body:    "ProximaNova", ui-sans-serif, system-ui, sans-serif;
  background: var(--v2-bg);
  color: var(--v2-ink);
  font-family: var(--v2-font-body);
}

/* light scheme override for v2 — still bold, but airy */
body.nt-v2[data-theme="light"],
[data-theme="light"] body.nt-v2 {
  --v2-bg:    #f4f1ec;
  --v2-bg-2:  #ffffff;
  --v2-bg-3:  #e9e4dc;
  --v2-line:  rgba(0,0,0,.08);
  --v2-line-2:rgba(0,0,0,.14);
  --v2-ink:   #15171a;
  --v2-ink-2: #34373d;
  --v2-mute:  #5a5d63;
  /* darker amber for AA contrast on cream surfaces */
  --v2-accent:   #a7682e;
  --v2-accent-2: #c98643;
  --v2-shadow:0 30px 60px -28px rgba(15,17,20,.35);
}

/* ---- Reset a few base things from theme.css when on v2 ---- */
body.nt-v2 .site-main { background: var(--v2-bg); }

/* Drop v1's flow-sections gap so cinematic sections butt against each other. */
body.nt-v2 .flow-sections > * + * { margin-top: 0 !important; }

/* (Removed v1-hider for .featured-banner / .most-viewed__grid / .card-grid —
   these classes are now reused by ACF blocks on the front page.) */

/* ============================================================
   0. HEADER — floats transparently over hero, solidifies on scroll
   ============================================================ */

body.nt-v2 .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--v2-ease),
              backdrop-filter .35s var(--v2-ease),
              border-color .35s var(--v2-ease),
              padding .35s var(--v2-ease);
  padding-block: 18px;
}

/* Pages without an immersive hero need a top offset so content doesn't
   slide under the now-floating header. Pages with a hero (.home, single
   post) opt out so the hero can stretch behind the header. */
body.nt-v2 .site-main { padding-top: 84px; }
body.nt-v2.home .site-main,
body.nt-v2.blog .site-main,
body.nt-v2.page-template-front-page .site-main,
body.nt-v2.single .site-main { padding-top: 0; }

/* Condensed / solid state after the user scrolls. */
body.nt-v2.is-scrolled .site-header {
  background: rgba(15, 17, 20, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--v2-line);
  padding-block: 10px;
}
body.nt-v2.is-scrolled[data-theme="light"] .site-header,
[data-theme="light"] body.nt-v2.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.82);
}

/* Re-skin existing header internals to the v2 palette. */
body.nt-v2 .site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Default header style = transparent overlay above the hero.
   Text/icons stay WHITE regardless of theme so they read against the
   hero's dark gradient. Scheme-aware colors kick in only when the
   header is scrolled into its solid state, or on pages with no hero. */
body.nt-v2 .site-nav__list a {
  color: rgba(255,255,255,.92);
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: transparent !important;
  border-radius: 6px;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  transition: color .25s;
}
body.nt-v2 .site-nav__list a:hover,
body.nt-v2 .site-nav__list .current-menu-item > a,
body.nt-v2 .site-nav__list .current_page_item > a {
  color: var(--v2-gold) !important;
}
/* On scrolled/non-hero header (light surface), use the scheme accent so the
   active link meets AA contrast. */
body.nt-v2.is-scrolled .site-nav__list a:hover,
body.nt-v2.is-scrolled .site-nav__list .current-menu-item > a,
body.nt-v2.is-scrolled .site-nav__list .current_page_item > a,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .site-nav__list a:hover,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .site-nav__list .current-menu-item > a,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .site-nav__list .current_page_item > a {
  color: var(--v2-accent) !important;
}

body.nt-v2 .icon-btn {
  color: #fff;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.32);
  width: 40px; height: 40px;
  border-radius: 999px;
  transition: border-color .25s, color .25s, background .25s;
}
body.nt-v2 .icon-btn:hover {
  color: var(--v2-gold);
  border-color: var(--v2-gold);
}
body.nt-v2.is-scrolled .icon-btn:hover,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .icon-btn:hover {
  color: var(--v2-accent);
  border-color: var(--v2-accent);
}

body.nt-v2 .custom-logo,
body.nt-v2 .custom-logo-link img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,.35));
  transition: filter .25s;
}

/* ----- Scheme-aware header colors (scrolled OR pages without a hero) ----- */
body.nt-v2.is-scrolled .site-nav__list a,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .site-nav__list a {
  text-shadow: none;
}
body.nt-v2.is-scrolled .site-nav__list a,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .site-nav__list a {
  color: var(--v2-ink);
}

body.nt-v2.is-scrolled .icon-btn,
body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .icon-btn {
  color: var(--v2-ink);
  border-color: var(--v2-line-2);
}

/* In light scheme, when solid/non-hero, restore dark logo. */
body.nt-v2[data-theme="light"].is-scrolled .custom-logo,
[data-theme="light"] body.nt-v2.is-scrolled .custom-logo,
body.nt-v2[data-theme="light"].is-scrolled .custom-logo-link img,
[data-theme="light"] body.nt-v2.is-scrolled .custom-logo-link img,
body.nt-v2[data-theme="light"]:not(.home):not(.page-template-front-page):not(.single) .custom-logo,
[data-theme="light"] body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .custom-logo,
body.nt-v2[data-theme="light"]:not(.home):not(.page-template-front-page):not(.single) .custom-logo-link img,
[data-theme="light"] body.nt-v2:not(.home):not(.page-template-front-page):not(.single) .custom-logo-link img {
  filter: none;
}

/* Mobile slide-out nav adopts v2 dark surface. */
@media (max-width: 1023px) {
  body.nt-v2 .site-nav {
    background: var(--v2-bg-2);
    border-left: 1px solid var(--v2-line);
  }
  body.nt-v2 .site-nav__list a { color: var(--v2-ink); }
  body.nt-v2 .nav-toggle__bar { background-color: #fff; }
  body.nt-v2[data-theme="light"] .nav-toggle__bar,
  [data-theme="light"] body.nt-v2 .nav-toggle__bar { background-color: #15171a; }
}

/* Site search dropdown — match the condensed header tint. */
body.nt-v2 .site-search {
  background: rgba(15, 17, 20, 0.92);
  backdrop-filter: blur(14px);
  border-top-color: var(--v2-line);
}
body.nt-v2[data-theme="light"] .site-search,
[data-theme="light"] body.nt-v2 .site-search {
  background: rgba(255,255,255,.95);
}

/* ============================================================
   1. HERO — full-bleed cinematic stage with parallax + scroll dots
   ============================================================ */
.v2-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--v2-bg);
  isolation: isolate;
}

.v2-hero__track {
  position: absolute; inset: 0;
  cursor: grab;
}
.v2-hero.is-dragging,
.v2-hero.is-dragging .v2-hero__track { cursor: grabbing; user-select: none; }

.v2-hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s var(--v2-ease);
}
.v2-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.v2-hero__media {
  position: absolute; inset: -8% -2% -2% -2%;
  overflow: hidden;
  transform: scale(1.08);
  filter: brightness(.62) saturate(1.05);
  will-change: transform;
  transition: transform 6s linear;
}
.v2-hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.v2-hero__slide.is-active .v2-hero__media {
  transform: scale(1.18);
}

.v2-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    /* top scrim — keeps the header legible */
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
    radial-gradient(ellipse at 25% 80%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(180deg, rgba(11,12,14,0) 30%, rgba(11,12,14,.6) 70%, rgba(11,12,14,.95) 100%);
}

.v2-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.v2-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--v2-font-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--v2-gold);
  margin-bottom: 18px;
}
.v2-hero__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--v2-gold);
}

.v2-hero__title {
  font-family: var(--v2-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  line-height: .98;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 16ch;
  margin: 0 0 22px;
  text-wrap: balance;
  text-shadow: 0 8px 40px rgba(0,0,0,.45);
}

.v2-hero__desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin: 0 0 32px;
}

.v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.v2-btn {
  --bg: var(--v2-accent);
  --fg: #15171a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  transition: transform .35s var(--v2-ease), background .25s, color .25s;
}
.v2-btn:hover { transform: translateY(-2px); }
.v2-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.v2-btn--ghost {
  --bg: transparent;
  --fg: #fff;
  border-color: rgba(255,255,255,.4);
}
.v2-btn--ghost:hover { background: rgba(255,255,255,.08); }

/* hero footer rail: dots + counter + scroll hint */
.v2-hero__rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px) clamp(28px, 5vw, 64px);
  pointer-events: none;
}
.v2-hero__rail > * { pointer-events: auto; }

.v2-hero__dots {
  display: flex; gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.v2-hero__dot {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 56px;
  height: 2px;
  background: rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.v2-hero__dot::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--v2-gold);
  transition: width 0s linear;
}
.v2-hero__dot.is-active::after { width: 100%; transition: width 6s linear; }
.v2-hero__dot:hover { background: rgba(255,255,255,.5); }

.v2-hero__counter {
  font-family: var(--v2-font-display);
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  letter-spacing: .15em;
}
.v2-hero__counter b { color: #fff; font-weight: 700; }

.v2-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-family: var(--v2-font-display);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.v2-hero__scroll-line {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.v2-hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -100%;
  height: 60%;
  background: var(--v2-gold);
  animation: v2-scroll 2.2s ease-in-out infinite;
}
@keyframes v2-scroll {
  0%   { top: -60%; }
  100% { top: 110%; }
}

@media (max-width: 720px) {
  .v2-hero__scroll { display: none; }
  .v2-hero__rail { padding: 18px 22px; }
}

/* ============================================================
   2. MOST VIEWED — scroll-pinned editorial stack
   ============================================================ */
.v2-pin {
  position: relative;
  background: var(--v2-bg);
  padding: clamp(80px, 12vw, 140px) 0 0;
}

.v2-pin__intro {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.v2-pin__eyebrow {
  font-family: var(--v2-font-display);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--v2-accent);
  margin: 0 0 14px;
}
.v2-pin__heading {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--v2-ink);
  max-width: 22ch;
}
.v2-pin__note {
  color: var(--v2-mute);
  font-size: 14px;
  max-width: 30ch;
}

.v2-pin__stack {
  position: relative;
}

.v2-pin__panel {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.v2-pin__panel:nth-child(odd)  { background: var(--v2-bg); }
.v2-pin__panel:nth-child(even) { background: var(--v2-bg-2); }

.v2-pin__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  padding: 0 clamp(24px, 5vw, 64px);
}

.v2-pin__panel:nth-child(even) .v2-pin__inner { grid-template-columns: 1fr 1.05fr; }
.v2-pin__panel:nth-child(even) .v2-pin__copy  { order: 2; }
.v2-pin__panel:nth-child(even) .v2-pin__media { order: 1; }

.v2-pin__rank {
  font-family: var(--v2-font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--v2-accent);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
.v2-pin__cat {
  display: inline-block;
  font-family: var(--v2-font-display);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--v2-accent);
  margin-bottom: 18px;
}
.v2-pin__title {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--v2-ink);
  max-width: 18ch;
  text-wrap: balance;
}
.v2-pin__title a { color: inherit; text-decoration: none; }
.v2-pin__title a:hover { color: var(--v2-accent); }
.v2-pin__excerpt {
  color: var(--v2-ink-2);
  font-size: clamp(1rem, 1.15vw, 1.075rem);
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 48ch;
}
.v2-pin__meta {
  color: var(--v2-mute);
  font-size: 13px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.v2-pin__meta b { color: var(--v2-ink); font-weight: 500; }

.v2-pin__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--v2-radius);
  overflow: hidden;
  box-shadow: var(--v2-shadow);
}
.v2-pin__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--v2-ease);
}
.v2-pin__panel:hover .v2-pin__media img { transform: scale(1.14); }

@media (max-width: 860px) {
  .v2-pin__inner,
  .v2-pin__panel:nth-child(even) .v2-pin__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .v2-pin__panel:nth-child(even) .v2-pin__copy  { order: 0; }
  .v2-pin__panel:nth-child(even) .v2-pin__media { order: 0; }
  .v2-pin__panel { position: relative; height: auto; min-height: 0; padding: 60px 0; }
  .v2-pin__media { aspect-ratio: 4/3; }
}

/* ============================================================
   3. BENTO GRID — latest stories
   ============================================================ */
.v2-bento {
  background: var(--v2-bg-2);
  padding: clamp(80px, 10vw, 140px) 0;
}

.v2-bento__wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.v2-bento__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}
.v2-bento__head h2 {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--v2-ink);
}
.v2-bento__eyebrow {
  font-family: var(--v2-font-display);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--v2-accent);
  margin: 0;
}

.v2-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;       /* backfill gaps left by tall/wide cards */
  gap: 18px;
}

.v2-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  overflow: hidden;
  border-radius: var(--v2-radius);
  background: var(--v2-bg-3);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .5s var(--v2-ease);
}
.v2-card:hover { transform: translateY(-4px); }

.v2-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--v2-ease), filter .6s;
  filter: brightness(.78) saturate(1.05);
}
.v2-card:hover .v2-card__img {
  transform: scale(1.08);
  filter: brightness(.62) saturate(1.1);
}

.v2-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0) 35%, rgba(11,12,14,.92) 100%);
}

.v2-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  z-index: 2;
  color: #fff;
}

.v2-card__tag {
  display: inline-block;
  font-family: var(--v2-font-display);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--v2-gold);
  margin-bottom: 10px;
}

.v2-card__title {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #fff;
  text-wrap: balance;
}
.v2-card__title a { color: inherit; text-decoration: none; }
.v2-card__title a::before {
  content: ""; position: absolute; inset: 0;
}

.v2-card__meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin: 0;
}

/* sizes — asymmetric bento layout */
.v2-card--xl   { grid-column: span 8; grid-row: span 3; }
.v2-card--xl .v2-card__title { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
.v2-card--xl .v2-card__body  { padding: 32px; }

.v2-card--tall { grid-column: span 4; grid-row: span 3; }
.v2-card--wide { grid-column: span 8; grid-row: span 2; }
.v2-card--wide .v2-card__title { font-size: 1.5rem; }

@media (max-width: 980px) {
  .v2-bento__grid { grid-template-columns: repeat(6, 1fr); }
  .v2-card,
  .v2-card--xl,
  .v2-card--tall,
  .v2-card--wide { grid-column: span 6; grid-row: span 2; }
  .v2-card--xl { grid-row: span 3; }
}
@media (max-width: 560px) {
  .v2-bento__grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .v2-card, .v2-card--xl, .v2-card--tall, .v2-card--wide {
    grid-column: 1 / -1; grid-row: span 1;
  }
}

/* footer CTA */
.v2-bento__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 60px);
}

/* ============================================================
   5. SINGLE POST — immersive hero + wide reading column
   ============================================================ */

.v2-post { background: var(--v2-bg); }

.v2-post__hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.v2-post__hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: scale(1.06);
  filter: brightness(.55);
  will-change: transform;
}
.v2-post__hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.v2-post__hero-media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(180deg, rgba(11,12,14,.35) 30%, rgba(11,12,14,.55) 65%, rgba(11,12,14,.95) 100%);
}
.v2-post__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(80px, 8vw, 140px) clamp(24px, 5vw, 64px) clamp(48px, 6vw, 80px);
}
.v2-post__cat {
  display: inline-block;
  font-family: var(--v2-font-display);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--v2-gold);
  margin-bottom: 18px;
  text-decoration: none;
}
.v2-post__cat:hover { color: #fff; }
.v2-post__title {
  font-family: var(--v2-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  max-width: 22ch;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.v2-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.v2-post__meta img { border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.v2-post__author {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 500;
}

/* Body */
.v2-post__body-wrap {
  background: var(--v2-bg);
  padding: clamp(60px, 8vw, 120px) 0;
}
.v2-post__layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 980px) {
  .v2-post__layout { grid-template-columns: 1fr; }
  /* Sticky sidebar TOC would overlay the article body once the grid collapses
     to a single column. Hide it on narrow screens — the post content has its
     own headings so the in-page nav isn't load-bearing on mobile. */
  .v2-post__toc { display: none !important; }
}

.v2-post__toc {
  position: sticky;
  top: 120px;
  font-size: 13px;
}
.v2-post__toc h2,
.v2-post__toc p.post-toc__title {
  font-family: var(--v2-font-display);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--v2-mute);
  margin: 0 0 16px;
}
.v2-post__toc a {
  display: block;
  padding: 6px 0;
  color: var(--v2-ink-2);
  text-decoration: none;
  border-left: 1px solid var(--v2-line);
  padding-left: 14px;
  transition: color .2s, border-color .2s;
}
.v2-post__toc a:hover,
.v2-post__toc a.is-active {
  color: var(--v2-accent);
  border-left-color: var(--v2-accent);
}

.v2-post__content {
  color: var(--v2-ink);
  font-size: clamp(1.05rem, 1.2vw, 1.175rem);
  line-height: 1.75;
  max-width: 72ch;
}
.v2-post__content p { margin: 0 0 1.4em; }
.v2-post__content h2 {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 2.2em 0 .8em;
  color: var(--v2-ink);
}
.v2-post__content h3 {
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  margin: 1.8em 0 .6em;
  color: var(--v2-ink);
}
.v2-post__content a {
  color: var(--v2-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.v2-post__content a:hover { color: var(--v2-accent-2); }
.v2-post__content blockquote {
  border-left: 2px solid var(--v2-accent);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-family: var(--v2-font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--v2-ink);
}
.v2-post__content img,
.v2-post__content figure { border-radius: var(--v2-radius); margin: 1.6em 0; }
.v2-post__content ul,
.v2-post__content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.v2-post__content li { margin-bottom: .5em; }
.v2-post__content code {
  background: var(--v2-bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* Tags + author */
.v2-post__aside {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 32px;
  border-top: 1px solid var(--v2-line);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.v2-post__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.v2-post__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--v2-line-2);
  font-size: 12px;
  color: var(--v2-ink-2);
  font-family: var(--v2-font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .25s, color .25s;
}
.v2-post__tag:hover { color: var(--v2-accent); border-color: var(--v2-accent); }

.v2-author {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
}
.v2-author img {
  width: 84px; height: 84px;
  border-radius: 999px;
  object-fit: cover;
}
.v2-author__role {
  font-family: var(--v2-font-display);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--v2-mute);
  margin: 0 0 6px;
}
.v2-author__name {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--v2-ink);
}
.v2-author__bio {
  color: var(--v2-ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Prev / next big nav */
.v2-post-nav {
  background: var(--v2-bg-2);
  border-top: 1px solid var(--v2-line);
  padding: clamp(60px, 8vw, 100px) 0;
}
.v2-post-nav__grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  .v2-post-nav__grid { grid-template-columns: 1fr; }
}
.v2-post-nav__link {
  display: block;
  padding: 32px;
  background: var(--v2-bg);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  text-decoration: none;
  transition: border-color .3s, transform .3s var(--v2-ease);
}
.v2-post-nav__link:hover {
  border-color: var(--v2-accent);
  transform: translateY(-3px);
}
.v2-post-nav__dir {
  display: block;
  font-family: var(--v2-font-display);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--v2-accent);
  margin-bottom: 12px;
}
.v2-post-nav__title {
  display: block;
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.25;
  color: var(--v2-ink);
}
.v2-post-nav__link--next { text-align: right; }

/* ============================================================
   6. ARCHIVE / BLOG LISTING — editorial header + bento + paginate
   ============================================================ */
.v2-listing {
  background: var(--v2-bg);
  padding: clamp(64px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
}
.v2-listing__wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.v2-listing__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 760px) {
  .v2-listing__head { grid-template-columns: 1fr; }
}
.v2-listing__eyebrow {
  font-family: var(--v2-font-display);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--v2-accent);
  margin: 0 0 14px;
  font-weight: 600;
}
.v2-listing__title {
  font-family: var(--v2-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .95;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--v2-ink);
  text-wrap: balance;
}
.v2-listing__count {
  font-family: var(--v2-font-display);
  font-variant-numeric: tabular-nums;
  color: var(--v2-mute);
  font-size: 14px;
  letter-spacing: .05em;
}
.v2-listing__search {
  min-width: 280px;
  max-width: 360px;
}
.v2-listing__search input[type="search"] {
  width: 100%;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  color: var(--v2-ink);
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--v2-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .25s;
}
.v2-listing__search input[type="search"]::placeholder { color: var(--v2-mute); }
.v2-listing__search input[type="search"]:focus { border-color: var(--v2-accent); }

/* Pagination — re-skin the nt_pagination() output under body.nt-v2 */
body.nt-v2 .nt-paginate,
.v2-paginate {
  margin-top: clamp(56px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
body.nt-v2 .nt-paginate__status,
.v2-paginate__status {
  font-family: var(--v2-font-display);
  font-variant-numeric: tabular-nums;
  color: var(--v2-mute);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0;
}
body.nt-v2 .nt-paginate__status strong,
.v2-paginate__status strong { color: var(--v2-ink); font-weight: 600; }
body.nt-v2 .nt-paginate__pages,
.v2-paginate__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
body.nt-v2 .nt-paginate__pages .page-numbers,
.v2-paginate__pages .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--v2-line);
  font-family: var(--v2-font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 14px;
  color: var(--v2-ink-2);
  text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}
body.nt-v2 .nt-paginate__pages .page-numbers svg,
.v2-paginate__pages .page-numbers svg { width: 16px; height: 16px; }
body.nt-v2 .nt-paginate__pages .page-numbers:hover,
.v2-paginate__pages .page-numbers:hover { border-color: var(--v2-accent); color: var(--v2-accent); }
body.nt-v2 .nt-paginate__pages .page-numbers.current,
.v2-paginate__pages .page-numbers.current {
  background: var(--v2-accent);
  color: #15171a;
  border-color: var(--v2-accent);
}
body.nt-v2 .nt-paginate__pages .page-numbers.dots,
.v2-paginate__pages .page-numbers.dots {
  border-color: transparent;
  color: var(--v2-mute);
}

/* Empty state */
.v2-empty {
  text-align: center;
  padding: clamp(60px, 8vw, 120px) 24px;
  color: var(--v2-mute);
  font-size: 18px;
  font-family: var(--v2-font-display);
}

/* Breadcrumb on inner pages — sit above the listing head, muted */
body.nt-v2 .breadcrumb,
body.nt-v2 .nt-breadcrumb {
  color: var(--v2-mute);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
body.nt-v2 .breadcrumb a,
body.nt-v2 .nt-breadcrumb a {
  color: var(--v2-ink-2);
  text-decoration: none;
}
body.nt-v2 .breadcrumb a:hover,
body.nt-v2 .nt-breadcrumb a:hover { color: var(--v2-accent); }

/* ============================================================
   7. FOOTER — large editorial farewell, gold rules
   ============================================================ */
body.nt-v2 .site-footer {
  background: #08090b;
  color: var(--v2-ink-2);
  padding: clamp(80px, 9vw, 130px) 0 0;
  border-top: 1px solid var(--v2-line);
  margin-top: 0;
}
body.nt-v2[data-theme="light"] .site-footer,
[data-theme="light"] body.nt-v2 .site-footer {
  background: #15171a;
  color: rgba(255,255,255,.7);
}

body.nt-v2 .site-footer > .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

body.nt-v2 .site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(60px, 7vw, 96px);
  border-bottom: 1px solid var(--v2-line);
}
@media (max-width: 980px) {
  body.nt-v2 .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  body.nt-v2 .site-footer__grid { grid-template-columns: 1fr; }
}

body.nt-v2 .site-footer__brand .custom-logo,
body.nt-v2 .site-footer__brand .custom-logo-link img {
  filter: brightness(0) invert(1);
  height: 44px; width: auto;
  margin-bottom: 24px;
}

body.nt-v2 .site-footer__about {
  font-size: 15px;
  line-height: 1.65;
  max-width: 36ch;
  color: rgba(255,255,255,.65);
  margin: 0;
}

body.nt-v2 .site-footer__heading {
  font-family: var(--v2-font-display);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--v2-gold);
  margin: 0 0 22px;
}

body.nt-v2 .site-footer__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
body.nt-v2 .site-footer__list li a,
body.nt-v2 .site-footer__list li > a {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  text-decoration: none;
  transition: color .25s;
  display: inline-block;
}
body.nt-v2 .site-footer__list a:hover { color: var(--v2-gold); }

body.nt-v2 .site-footer__list--posts li { padding: 8px 0; }
body.nt-v2 .site-footer__post-title {
  display: block;
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,.85);
  margin-bottom: 4px;
}
body.nt-v2 .site-footer__post-date {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--v2-mute);
  text-transform: uppercase;
}
body.nt-v2 .site-footer__list--posts a:hover .site-footer__post-title { color: var(--v2-gold); }

body.nt-v2 .site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 36px;
  flex-wrap: wrap;
}
body.nt-v2 .site-footer__copy {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--v2-mute);
}

body.nt-v2 .site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--v2-line-2);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  font-family: var(--v2-font-display);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s, color .25s, transform .3s var(--v2-ease);
}
body.nt-v2 .site-footer__top svg { width: 14px; height: 14px; }
body.nt-v2 .site-footer__top:hover {
  color: var(--v2-gold);
  border-color: var(--v2-gold);
  transform: translateY(-2px);
}

/* ============================================================
   4. Reveal animations (driven by ScrollTrigger in theme-v2.js)
   ============================================================ */
.v2-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--v2-ease), transform .9s var(--v2-ease);
}
.v2-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Accessibility — visible keyboard focus rings.
   :focus-visible only fires for keyboard users, so mouse clicks
   stay clean while keyboard nav gets a clear indicator.
   ============================================================ */
body.nt-v2 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--v2-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
body.nt-v2 .v2-btn:focus-visible,
body.nt-v2 .v2-hero__dot:focus-visible,
body.nt-v2 .icon-btn:focus-visible {
  outline-offset: 4px;
}
body.nt-v2 .v2-card a:focus-visible {
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .v2-hero__slide,
  .v2-hero__media,
  .v2-pin__media img,
  .v2-card__img,
  .v2-reveal { transition: none !important; }
  .v2-hero__media,
  .v2-pin__media img { transform: none !important; }
  .v2-reveal { opacity: 1; transform: none; }
  .v2-hero__scroll-line::after { animation: none; }
}
