/* ==========================================================================
   NKT Festival Diaries — Summer Festival 2026 "dusk garden"
   Scoped to #nkt-fd (id prefix outguns theme element rules; no Tailwind).
   Palette derives from the official 2026 publicity: brand purple #74529E,
   cream #FFF2C7, the flower artwork's magentas, the aura's gold.
   ========================================================================== */

#nkt-fd {
  /* ground */
  --fd-purple:    #74529E;
  --fd-dusk-1:    #251838;   /* deep aubergine — hero/band ground */
  --fd-dusk-2:    #453061;   /* hero gradient mid */
  --fd-petal:     #cf6db6;   /* flower magenta */
  --fd-petal-soft:#e9a8d4;
  --fd-blush:     #f2c9c0;   /* petal peach */
  --fd-cream:     #FFF2C7;   /* publicity cream */
  --fd-gold:      #e2a93b;   /* aura gold on dusk */
  --fd-gold-deep: #a06d1c;   /* gold that reads on paper */
  /* paper */
  --fd-paper:     #fdf9f3;
  --fd-paper-2:   #f6efe6;
  --fd-ink:       #271d33;   /* purple-cast ink */
  --fd-ink-2:     #625671;
  --fd-rule:      #e7dcd2;

  --fd-serif: "Fraunces", Georgia, serif;
  --fd-sans:  "mundial", "Inter", system-ui, sans-serif;
  --fd-soft:  "SOFT" 100, "WONK" 0;
  --fd-wrap:  1200px;
  --fd-prose: 43rem; /* mundial body: ~72ch at 1.05rem */
  --fd-ease:  cubic-bezier(.2, .7, .2, 1);

  font-family: var(--fd-sans);
  background: var(--fd-paper);
  color: var(--fd-ink);
  display: block;
  overflow-x: clip; /* full-bleed bands use 100vw — swallow the scrollbar delta */
}

/* GP wraps <main> in #page.grid-container (max-width cap) + .site-content
   padding — release both so the diary runs edge-to-edge (mb-podcast tactic). */
body.nkt-fd #page.grid-container { max-width: 100%; padding: 0; }
body.nkt-fd.one-container .site-content { padding: 0; }

/* -------- scoped resets (GP/BB uppercase headings, blockquote bars…) ----- */
#nkt-fd h1, #nkt-fd h2, #nkt-fd h3, #nkt-fd h4 {
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}
#nkt-fd p, #nkt-fd figure, #nkt-fd blockquote, #nkt-fd ol, #nkt-fd ul {
  margin: 0;
  padding: 0;
}
#nkt-fd img { max-width: 100%; height: auto; display: block; border: 0; }
#nkt-fd a { text-decoration: none; color: inherit; }
#nkt-fd :focus-visible {
  outline: 2px solid var(--fd-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
#nkt-fd .nkt-fd-wrap {
  max-width: var(--fd-wrap);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   HERO — dusk garden
   ========================================================================== */
#nkt-fd .nkt-fd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 160% at 84% 10%, var(--fd-dusk-2) 0%, var(--fd-dusk-1) 58%),
    var(--fd-dusk-1);
  color: var(--fd-cream);
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
}
#nkt-fd .nkt-fd-hero-flowers {
  position: absolute;
  /* cap the art to a centred band so on ultra-wide displays the flower
     tracks the content edge instead of marooning against the viewport. */
  inset-block: -4%;
  inset-inline: 0;
  max-width: calc(var(--fd-wrap) + 360px); /* content band + bleed */
  margin-inline: auto;
  z-index: -2;
  background-image: url('assets/flowers-1080.webp');
  background-repeat: no-repeat;
  background-size: min(78vw, 900px) auto;
  /* clamp the vw offset so it can't balloon and shove the flower off-band */
  background-position: right clamp(-190px, -14vw, -40px) top 28%;
  opacity: .8;
  /* fade the artwork in from the left so its edge never shows as a seam */
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 18%, #000 55%);
  animation: fd-drift 46s var(--fd-ease) infinite alternate;
  will-change: transform;
}
@keyframes fd-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1.6%, -1.2%); }
}
/* legibility veil — dusk from the left, floor shadow below */
#nkt-fd .nkt-fd-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(92deg, rgba(37, 24, 56, .92) 24%, rgba(37, 24, 56, .55) 48%, rgba(37, 24, 56, .08) 78%),
    linear-gradient(180deg, rgba(37, 24, 56, .5) 0%, transparent 26%, transparent 62%, rgba(24, 14, 38, .75) 100%);
}
#nkt-fd .nkt-fd-hero-inner { position: relative; }

/* gold aura — the publicity artwork's halo, borrowed without its poster.
   A soft radial glow + fine radiating spokes, sat behind the day lockup
   (day pages) or behind Vajrayogini (landing). */
#nkt-fd .nkt-fd-aura {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(255, 233, 176, .30) 0%,
    rgba(226, 169, 59, .14) 48%,
    transparent 72%);
}
#nkt-fd .nkt-fd-aura::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg,
    rgba(255, 242, 199, .55) 0deg .7deg,
    transparent .7deg 6deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, rgba(0, 0, 0, .4) 48%, transparent 68%);
  mask-image: radial-gradient(closest-side, #000 12%, rgba(0, 0, 0, .4) 48%, transparent 68%);
  opacity: .17;
}
/* day pages: centred behind the big day number */
#nkt-fd .nkt-fd-hero-inner .nkt-fd-aura {
  width: clamp(340px, 52vw, 620px);
  left: clamp(-180px, -9vw, -70px);
  top: 50%;
  transform: translateY(-56%);
}
/* landing: haloing the deity */
#nkt-fd .nkt-fd-hero.is-landing > .nkt-fd-aura {
  z-index: 0;
  width: min(66vw, 660px);
  right: calc(clamp(8px, 6vw, 120px) - 90px);
  bottom: -4%;
}

#nkt-fd .nkt-fd-kicker {
  font: 600 .72rem/1.6 var(--fd-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fd-cream);
  opacity: .85;
}
#nkt-fd .nkt-fd-kicker .sep { margin-inline: .7em; color: var(--fd-gold); }
#nkt-fd .nkt-fd-kicker .diary { color: var(--fd-gold); }
#nkt-fd a.nkt-fd-kicker { display: inline-block; }
#nkt-fd a.nkt-fd-kicker:hover .diary { text-decoration: underline; text-underline-offset: 4px; }

#nkt-fd .nkt-fd-daylockup {
  margin-top: clamp(14px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: .08em;
  max-width: 17em;
}
/* site custom CSS carries `.single-post #content h1 { center }` (1,1,1) — outgun it */
body #nkt-fd h1.nkt-fd-daylockup { text-align: left; }
#nkt-fd .nkt-fd-daylockup .daynum {
  font-family: var(--fd-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-optical-sizing: auto;
  font-weight: 620;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: .96;
  color: #fff;
  text-shadow: 0 2px 40px rgba(24, 14, 38, .55);
}
#nkt-fd .nkt-fd-daylockup .daytitle {
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.18;
  color: var(--fd-gold);
  margin-top: .35em;
}
#nkt-fd .nkt-fd-date {
  margin-top: clamp(16px, 2.4vw, 26px);
  font: 500 .86rem/1.5 var(--fd-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fd-blush);
}

/* hero entrance — one orchestrated rise */
#nkt-fd .nkt-fd-rise {
  opacity: 0;
  transform: translateY(14px);
  animation: fd-rise .8s var(--fd-ease) forwards;
  animation-delay: calc(var(--rise, 1) * .12s);
}
@keyframes fd-rise { to { opacity: 1; transform: none; } }

/* landing variant */
#nkt-fd .nkt-fd-hero.is-landing { padding-block: clamp(64px, 10vw, 140px) clamp(56px, 8vw, 110px); }
#nkt-fd .nkt-fd-hero-deity {
  position: absolute;
  z-index: 0;
  right: clamp(8px, 6vw, 120px);
  bottom: 0;
  height: min(88%, 560px);
  width: auto;
  filter: drop-shadow(0 18px 48px rgba(24, 14, 38, .6));
}
#nkt-fd .nkt-fd-hero.is-landing .nkt-fd-hero-inner { max-width: 58%; }

/* ==========================================================================
   TEAR-OFF TABS — the hero's bottom edge is the 16-day timeline.
   The current page's tab is paper-coloured and continuous with the page.
   ========================================================================== */
#nkt-fd .nkt-fd-hero.has-tabs { padding-bottom: 0; }
#nkt-fd .nkt-fd-hero.has-tabs .nkt-fd-hero-deity { bottom: 46px; }

#nkt-fd .nkt-fd-tabs-nav {
  margin-top: clamp(22px, 4.5vw, 44px);
  /* overflow-x:auto forces overflow-y to clip too; leave headroom so the
     hover lift (translateY -4px) rises into padding instead of being sheared */
  padding-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
#nkt-fd .nkt-fd-tabs-nav::-webkit-scrollbar { display: none; }
#nkt-fd .nkt-fd-tabs {
  list-style: none;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  max-width: var(--fd-wrap);
  min-width: 620px; /* below this the row scrolls; diary.js centres the current tab */
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
#nkt-fd .nkt-fd-tabs li { flex: 1 1 0; min-width: 0; }
#nkt-fd .nkt-fd-tabs .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 46px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 242, 199, .12);
  border-bottom: 0;
  font: 600 .76rem/1 var(--fd-sans);
  letter-spacing: .04em;
  color: rgba(255, 242, 199, .6);
  transition: background .25s var(--fd-ease), color .25s, transform .25s var(--fd-ease);
}
#nkt-fd .nkt-fd-tabs .tab .w {
  font-size: .52rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
}
/* only published days are links; every other tab is inert */
#nkt-fd .nkt-fd-tabs span.tab { cursor: default; }
/* empty days (past gaps or not-yet-written) recede to a dashed, hollow
   placeholder — a calendar leaf still attached, nothing to tear off yet.
   Solid, filled tabs are therefore the only ones that read as clickable. */
#nkt-fd .nkt-fd-tabs li:not(.has-post):not(.is-current):not(.is-today) .tab {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 242, 199, .16);
  color: rgba(255, 242, 199, .3);
}
#nkt-fd .nkt-fd-tabs .has-post .tab {
  background: rgba(207, 109, 182, .22);
  border-color: rgba(207, 109, 182, .38);
  color: #f2cae6;
}
#nkt-fd .nkt-fd-tabs a.tab:hover {
  transform: translateY(-4px);
  background: rgba(207, 109, 182, .42);
  color: #fff;
}
#nkt-fd .nkt-fd-tabs .is-today .tab {
  color: var(--fd-gold);
  border-color: rgba(226, 169, 59, .55);
  box-shadow: inset 0 0 18px -6px rgba(226, 169, 59, .5);
}
#nkt-fd .nkt-fd-tabs .is-today .tab .w { color: var(--fd-gold); opacity: .85; }
#nkt-fd .nkt-fd-tabs .is-current .tab {
  height: 60px;
  background: var(--fd-paper);
  border-color: transparent;
  color: var(--fd-gold-deep);
  font-weight: 700;
  box-shadow: 0 -12px 32px -14px rgba(226, 169, 59, .6);
}
#nkt-fd .nkt-fd-tabs .is-current .tab .w { color: var(--fd-purple); opacity: .9; }

/* ==========================================================================
   PETAL RIBBON — compact dot recap (page foot)
   ========================================================================== */
#nkt-fd .nkt-fd-ribbon {
  background: var(--fd-paper);
  border-bottom: 1px solid var(--fd-rule);
  padding-block: 18px 14px;
}
#nkt-fd .nkt-fd-ribbon ol {
  list-style: none;
  display: flex;
  gap: clamp(4px, 1.2vw, 14px);
  justify-content: center;
  align-items: flex-start;
  max-width: var(--fd-wrap);
  margin: 0 auto;
  padding-inline: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#nkt-fd .nkt-fd-ribbon ol::-webkit-scrollbar { display: none; }
#nkt-fd .nkt-fd-ribbon li { flex: 0 0 auto; }
#nkt-fd .nkt-fd-ribbon a,
#nkt-fd .nkt-fd-ribbon .stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 5px;
  border-radius: 10px;
}
#nkt-fd .nkt-fd-ribbon .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #cbb9e2;      /* future: an outline waiting to open */
  background: transparent;
  transition: transform .25s var(--fd-ease), box-shadow .25s var(--fd-ease);
}
#nkt-fd .nkt-fd-ribbon .dnum {
  font: 600 .64rem/1 var(--fd-sans);
  letter-spacing: .06em;
  color: var(--fd-ink-2);
}
#nkt-fd .nkt-fd-ribbon .is-past .dot {
  border-color: transparent;
  background: #d8cbe8;            /* past, no post: quietly filled */
}
#nkt-fd .nkt-fd-ribbon .has-post .dot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fd-petal) 0%, var(--fd-purple) 80%);
}
#nkt-fd .nkt-fd-ribbon .is-today .dot {
  border-color: transparent;
  background: radial-gradient(circle at 35% 30%, #ffe9b0, var(--fd-gold) 70%);
  box-shadow: 0 0 0 4px rgba(226, 169, 59, .22);
  animation: fd-bloom 2.6s ease-in-out infinite;
}
@keyframes fd-bloom {
  0%, 100% { box-shadow: 0 0 0 4px rgba(226, 169, 59, .22); }
  50%      { box-shadow: 0 0 0 7px rgba(226, 169, 59, .12); }
}
#nkt-fd .nkt-fd-ribbon .is-today .dnum { color: var(--fd-gold-deep); font-weight: 700; }
#nkt-fd .nkt-fd-ribbon a:hover .dot { transform: scale(1.35); }
#nkt-fd .nkt-fd-ribbon .is-current a {
  background: var(--fd-paper-2);
  box-shadow: inset 0 0 0 1px var(--fd-rule);
}
#nkt-fd .nkt-fd-ribbon .is-current .dnum { color: var(--fd-ink); font-weight: 700; }
#nkt-fd .nkt-fd-ribbon.is-compact { border-bottom: 0; background: transparent; padding-block: 8px 0; }

/* ==========================================================================
   ARTICLE — serif reading column on paper
   ========================================================================== */
#nkt-fd .nkt-fd-article { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); }
#nkt-fd .nkt-fd-content {
  max-width: var(--fd-prose);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
  font-family: var(--fd-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--fd-ink);
}
#nkt-fd .nkt-fd-content > p { margin-block: 1.15em; }
/* mundial ships 300/400/600 — browser-bold 700 would synthesise */
#nkt-fd .nkt-fd-content strong, #nkt-fd .nkt-fd-content b { font-weight: 600; }
#nkt-fd .nkt-fd-content a {
  color: var(--fd-purple);
  border-bottom: 1px solid rgba(116, 82, 158, .35);
  transition: border-color .2s;
}
#nkt-fd .nkt-fd-content a:hover { border-color: var(--fd-purple); }

/* Beaver Builder body (nkt_fd_is_bb): BB rows own widths + spacing; give the
   region the diary's text voice and undo the scoped margin reset for it. */
#nkt-fd .nkt-fd-article.is-bb { padding-block: 0; }
#nkt-fd .nkt-fd-bb {
  font-family: var(--fd-sans);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--fd-ink);
}
#nkt-fd .nkt-fd-bb p { margin-block: 0 1em; }
#nkt-fd .nkt-fd-bb ul, #nkt-fd .nkt-fd-bb ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
#nkt-fd .nkt-fd-bb strong, #nkt-fd .nkt-fd-bb b { font-weight: 600; }

/* lead + dropcap — the lead keeps the festival serif so the hero's voice
   carries into the page before the mundial body takes over */
#nkt-fd .nkt-fd-lead {
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-optical-sizing: auto;
  font-size: 1.36rem;
  line-height: 1.62;
  font-weight: 380;
}
#nkt-fd .nkt-fd-lead::first-letter {
  font-family: var(--fd-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 620;
  font-size: 3.4em;
  line-height: .82;
  float: left;
  padding: .06em .12em 0 0;
  color: var(--fd-purple);
}

/* section headings — petal ornament eyebrow */
#nkt-fd .nkt-fd-h {
  margin: 2.2em 0 .7em;
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-weight: 560;
  font-size: 1.72rem;
  line-height: 1.22;
  color: var(--fd-ink);
}
#nkt-fd .nkt-fd-orn {
  display: block;
  width: 34px;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fd-gold) 0%, var(--fd-petal) 100%);
}

/* pull quote */
#nkt-fd .nkt-fd-quote {
  margin: 2.4em auto;
  max-width: 34rem;
  border: 0;
  text-align: center;
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-style: italic;
  font-weight: 460;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--fd-purple);
}
#nkt-fd .nkt-fd-quote::before {
  content: "\201C";
  display: block;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: normal;
  font-size: 3.2rem;
  line-height: .6;
  margin-bottom: .25em;
  color: var(--fd-gold);
}
#nkt-fd .nkt-fd-quote p { margin: 0; }
#nkt-fd .nkt-fd-quote p + p { margin-top: .8em; }
#nkt-fd .nkt-fd-quote cite {
  display: block;
  margin-top: 1em;
  font: 600 .72rem/1.5 var(--fd-sans);
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fd-ink-2);
}

/* callout — “fun feature” card */
#nkt-fd .nkt-fd-callout {
  margin: 2.4em 0;
  padding: clamp(20px, 3.4vw, 34px);
  background: linear-gradient(160deg, #fff 0%, var(--fd-paper-2) 100%);
  border: 1px solid var(--fd-rule);
  border-top: 3px solid var(--fd-petal);
  border-radius: 14px;
  box-shadow: 0 18px 40px -28px rgba(39, 29, 51, .35);
}

/* single featured figure — gentle breakout */
#nkt-fd .nkt-fd-featured {
  /* gentle breakout past the prose column, always centered on the viewport */
  width: min(58rem, 94vw);
  margin-block: 2em;
  margin-inline: calc(50% - min(29rem, 47vw));
}
#nkt-fd .nkt-fd-featured img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 56px -30px rgba(39, 29, 51, .5);
}
#nkt-fd .nkt-fd-featured figcaption {
  margin-top: 10px;
  font: 500 .76rem/1.5 var(--fd-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fd-ink-2);
  text-align: center;
}

/* ==========================================================================
   GALLERIES — breakout mosaic + filmstrip, petal hover
   ========================================================================== */
#nkt-fd .nkt-fd-gallery {
  width: min(75rem, 94vw);
  margin-block: clamp(28px, 4.5vw, 48px);
  margin-inline: calc(50% - min(37.5rem, 47vw));
}
#nkt-fd .nkt-fd-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--fd-paper-2);
  cursor: zoom-in;
}
#nkt-fd .nkt-fd-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--fd-ease), filter .5s var(--fd-ease);
}
#nkt-fd .nkt-fd-tile:hover img { transform: scale(1.04); }
#nkt-fd .nkt-fd-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(207, 109, 182, 0);
  transition: box-shadow .35s var(--fd-ease);
  pointer-events: none;
}
#nkt-fd .nkt-fd-tile:hover::after { box-shadow: inset 0 0 0 3px rgba(207, 109, 182, .55); }

/* mosaic: 6-col grid, two alternating rhythms */
#nkt-fd .nkt-fd-mosaic .nkt-fd-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 16vw, 220px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 14px);
}
#nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(6n + 1) { grid-column: span 3; grid-row: span 2; }
#nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(6n + 2) { grid-column: span 3; }
#nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(6n + 3) { grid-column: span 2; }
#nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(6n + 4) { grid-column: span 1; }
#nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(6n + 5) { grid-column: span 2; }
#nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(6n)     { grid-column: span 4; }
#nkt-fd .nkt-fd-mosaic.nkt-fd-g1 .nkt-fd-tile:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
#nkt-fd .nkt-fd-mosaic.nkt-fd-g1 .nkt-fd-tile:nth-child(6n + 2) { grid-column: span 4; }
#nkt-fd .nkt-fd-mosaic.nkt-fd-g1 .nkt-fd-tile:nth-child(6n)     { grid-column: span 3; }
#nkt-fd .nkt-fd-mosaic.nkt-fd-g1 .nkt-fd-tile:nth-child(6n + 5) { grid-column: span 3; }

/* filmstrip: one scrollable row */
#nkt-fd .nkt-fd-strip .nkt-fd-tiles {
  display: flex;
  gap: clamp(8px, 1.2vw, 14px);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--fd-purple) transparent;
}
#nkt-fd .nkt-fd-strip .nkt-fd-tile {
  flex: 0 0 auto;
  height: clamp(220px, 30vw, 340px);
  scroll-snap-align: start;
}
#nkt-fd .nkt-fd-strip .nkt-fd-tile img { width: auto; height: 100%; }
/* short strips can't fill the row — centre them instead of hugging the left */
#nkt-fd .nkt-fd-strip-few .nkt-fd-tiles { justify-content: safe center; }

/* ==========================================================================
   BANDS — full-bleed dusk interludes (video feature / podcast)
   ========================================================================== */
#nkt-fd .nkt-fd-band {
  width: 100vw;
  margin-block: clamp(36px, 6vw, 64px);
  margin-inline: calc(50% - 50vw);
  background:
    radial-gradient(110% 200% at 90% 0%, var(--fd-dusk-2) 0%, var(--fd-dusk-1) 60%),
    var(--fd-dusk-1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--fd-cream);
  padding-block: clamp(32px, 5vw, 56px);
  font-family: var(--fd-sans);
}
#nkt-fd .nkt-fd-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/flowers-640.webp') no-repeat right -60px top 20% / 420px auto;
  opacity: .22;
}
#nkt-fd .nkt-fd-band-inner {
  max-width: min(62rem, 92vw);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
#nkt-fd .nkt-fd-band-kicker {
  font: 600 .7rem/1.5 var(--fd-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fd-gold);
  margin-bottom: 18px;
}
#nkt-fd .nkt-fd-band-kicker::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 42px;
  height: 1px;
  margin-left: 14px;
  background: linear-gradient(90deg, var(--fd-gold), transparent);
}

/* video frame + facade */
#nkt-fd .nkt-fd-videoframe {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #140d22;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .8);
}
#nkt-fd .nkt-fd-videoframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#nkt-fd .nkt-fd-yt { cursor: pointer; }
#nkt-fd .nkt-fd-yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--fd-ease);
}
#nkt-fd .nkt-fd-yt:hover .nkt-fd-yt-poster { transform: scale(1.03); }
#nkt-fd .nkt-fd-yt-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20, 13, 34, .05), rgba(20, 13, 34, .45));
}
#nkt-fd .nkt-fd-yt-play {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(37, 24, 56, .72);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 242, 199, .5);
  display: grid;
  place-items: center;
  transition: transform .3s var(--fd-ease), background .3s;
}
#nkt-fd .nkt-fd-yt-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--fd-cream);
}
#nkt-fd .nkt-fd-yt:hover .nkt-fd-yt-play {
  transform: scale(1.08);
  background: rgba(116, 82, 158, .85);
}

/* podcast card — glass on dusk */
#nkt-fd .nkt-fd-pod {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 26px);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 242, 199, .16);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .7);
}
#nkt-fd .nkt-fd-pod-play {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 32% 28%, #ffe9b0, var(--fd-gold) 75%);
  display: grid;
  place-items: center;
  transition: transform .25s var(--fd-ease);
  box-shadow: 0 10px 26px -10px rgba(226, 169, 59, .7);
}
#nkt-fd .nkt-fd-pod-play:hover { transform: scale(1.06); }
#nkt-fd .nkt-fd-pod-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--fd-dusk-1);
}
#nkt-fd .nkt-fd-pod-play.is-playing::before {
  width: 16px;
  height: 20px;
  margin-left: 0;
  border-style: double;
  border-width: 0 0 0 16px;
  border-color: var(--fd-dusk-1);
}
#nkt-fd .nkt-fd-pod-body { flex: 1 1 auto; min-width: 0; }
#nkt-fd .nkt-fd-pod-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 52px;
  cursor: pointer;
  touch-action: none;
}
#nkt-fd .nkt-fd-pod-wave .bar {
  flex: 1 1 auto;
  min-width: 2px;
  border-radius: 999px;
  background: rgba(255, 242, 199, .28);
  transition: background .2s;
}
#nkt-fd .nkt-fd-pod-wave .bar.is-played { background: var(--fd-gold); }
#nkt-fd .nkt-fd-pod-wave .bar.is-now { background: #ffe9b0; }
#nkt-fd .nkt-fd-pod-time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font: 500 .72rem/1 var(--fd-sans);
  letter-spacing: .12em;
  color: var(--fd-blush);
}

/* ==========================================================================
   FOOT — prev/next day cards + compact ribbon
   ========================================================================== */
#nkt-fd .nkt-fd-foot {
  border-top: 1px solid var(--fd-rule);
  background: var(--fd-paper-2);
  padding-block: clamp(32px, 5vw, 52px) clamp(28px, 4vw, 44px);
}
#nkt-fd .nkt-fd-daynav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(12px, 2vw, 22px);
}
#nkt-fd .nkt-fd-daycard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--fd-rule);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--fd-ease);
}
#nkt-fd .nkt-fd-daycard.is-next { text-align: right; }
#nkt-fd .nkt-fd-daycard.is-empty { visibility: hidden; }
#nkt-fd a.nkt-fd-daycard:hover {
  border-color: var(--fd-petal);
  box-shadow: 0 16px 34px -24px rgba(116, 82, 158, .6);
  transform: translateY(-2px);
}
#nkt-fd .nkt-fd-daycard .lab {
  font: 700 .78rem/1 var(--fd-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fd-purple);
}
#nkt-fd .nkt-fd-daycard .ttl {
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--fd-ink-2);
}
#nkt-fd .nkt-fd-allbtn {
  align-self: center;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 .78rem/1 var(--fd-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fd-cream);
  background: linear-gradient(135deg, var(--fd-purple), var(--fd-dusk-2));
  transition: filter .2s, transform .2s var(--fd-ease);
}
#nkt-fd .nkt-fd-allbtn:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ==========================================================================
   LANDING — day cards
   ========================================================================== */
#nkt-fd .nkt-fd-days { padding-block: clamp(40px, 6vw, 72px); }
#nkt-fd .nkt-fd-daygrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
#nkt-fd .nkt-fd-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fd-rule);
  transition: transform .3s var(--fd-ease), box-shadow .3s, border-color .3s;
}
#nkt-fd .nkt-fd-card:hover {
  transform: translateY(-4px);
  border-color: var(--fd-petal);
  box-shadow: 0 26px 50px -30px rgba(116, 82, 158, .65);
}
#nkt-fd .nkt-fd-card .photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: filter .3s;
}
#nkt-fd .nkt-fd-card .photo.is-art {
  background: url('assets/flowers-640.webp') no-repeat center 30% / cover;
  filter: saturate(.9);
}
#nkt-fd .nkt-fd-card:hover .photo { filter: saturate(1.08); }
#nkt-fd .nkt-fd-card .body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 20px;
}
#nkt-fd .nkt-fd-card .day {
  font-family: var(--fd-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--fd-purple);
}
#nkt-fd .nkt-fd-card .ttl {
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--fd-ink);
}
#nkt-fd .nkt-fd-card .date {
  margin-top: 6px;
  font: 500 .72rem/1.4 var(--fd-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fd-ink-2);
}
#nkt-fd .nkt-fd-empty {
  text-align: center;
  font-family: var(--fd-serif);
  font-variation-settings: var(--fd-soft);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--fd-ink-2);
  padding-block: clamp(32px, 6vw, 64px);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
#nkt-fd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  background: rgba(24, 14, 38, .96);
  --fd-cream: #FFF2C7;
  --fd-gold: #e2a93b;
}
#nkt-fd-lightbox.is-open { display: block; animation: fd-lb-in .25s ease; }
@keyframes fd-lb-in { from { opacity: 0; } }
#nkt-fd-lightbox .lb-stage {
  position: absolute;
  inset: 56px 72px 64px;
  display: grid;
  place-items: center;
  margin: 0;
}
#nkt-fd-lightbox .lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .3s ease;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
#nkt-fd-lightbox .lb-img.is-loaded { opacity: 1; }
#nkt-fd-lightbox .lb-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 242, 199, .3);
  background: rgba(255, 255, 255, .06);
  color: var(--fd-cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}
#nkt-fd-lightbox .lb-btn:hover { background: rgba(116, 82, 158, .55); transform: scale(1.06); }
#nkt-fd-lightbox .lb-close { top: 16px; right: 16px; }
#nkt-fd-lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
#nkt-fd-lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
#nkt-fd-lightbox .lb-prev:hover { transform: translateY(-50%) scale(1.06); }
#nkt-fd-lightbox .lb-next:hover { transform: translateY(-50%) scale(1.06); }
#nkt-fd-lightbox .lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 .74rem/1 var(--fd-sans, sans-serif);
  letter-spacing: .18em;
  color: var(--fd-cream);
}
#nkt-fd-lightbox .lb-counter .sep { margin-inline: .5em; opacity: .5; }

/* in-view reveals for galleries + bands */
#nkt-fd .nkt-fd-gallery,
#nkt-fd .nkt-fd-band,
#nkt-fd .nkt-fd-featured {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--fd-ease), transform .7s var(--fd-ease);
}
#nkt-fd .is-inview { opacity: 1; transform: none; }
/* no-JS safety */
#nkt-fd.no-observer .nkt-fd-gallery,
#nkt-fd.no-observer .nkt-fd-band,
#nkt-fd.no-observer .nkt-fd-featured { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  #nkt-fd .nkt-fd-hero.is-landing .nkt-fd-hero-inner { max-width: 70%; }
  #nkt-fd .nkt-fd-hero-deity { height: min(72%, 420px); right: 2vw; opacity: .9; }
}
@media (max-width: 880px) {
  #nkt-fd .nkt-fd-mosaic .nkt-fd-tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 26vw, 200px); }
  #nkt-fd .nkt-fd-mosaic .nkt-fd-tile,
  #nkt-fd .nkt-fd-mosaic.nkt-fd-g1 .nkt-fd-tile { grid-column: span 1 !important; grid-row: span 1 !important; }
  #nkt-fd .nkt-fd-mosaic .nkt-fd-tile:nth-child(3n + 1) { grid-column: span 2 !important; }
  #nkt-fd .nkt-fd-daygrid { grid-template-columns: repeat(2, 1fr); }
  #nkt-fd .nkt-fd-hero.is-landing .nkt-fd-hero-inner { max-width: 100%; }
  #nkt-fd .nkt-fd-hero-deity {
    position: absolute;
    height: 46vw;
    max-height: 320px;
    right: -6vw;
    bottom: -2%;
    opacity: .5;
  }
  #nkt-fd .nkt-fd-hero.is-landing > .nkt-fd-aura {
    width: 56vw;
    right: -12vw;
    bottom: 0;
    opacity: .6;
  }
  #nkt-fd .nkt-fd-ribbon ol { justify-content: flex-start; }
}
@media (max-width: 640px) {
  #nkt-fd .nkt-fd-daynav { grid-template-columns: 1fr; }
  #nkt-fd .nkt-fd-daycard.is-empty { display: none; }
  #nkt-fd .nkt-fd-daycard.is-next { text-align: left; }
  #nkt-fd .nkt-fd-allbtn { justify-self: center; order: 3; }
  #nkt-fd .nkt-fd-daygrid { grid-template-columns: 1fr; }
  #nkt-fd .nkt-fd-pod { flex-direction: column; align-items: stretch; }
  #nkt-fd .nkt-fd-pod-play { align-self: center; }
  #nkt-fd-lightbox .lb-stage { inset: 52px 10px 60px; }
  #nkt-fd-lightbox .lb-prev { left: 6px; }
  #nkt-fd-lightbox .lb-next { right: 6px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #nkt-fd .nkt-fd-hero-flowers { animation: none; }
  #nkt-fd .nkt-fd-rise { animation: none; opacity: 1; transform: none; }
  #nkt-fd .nkt-fd-ribbon .is-today .dot { animation: none; }
  #nkt-fd .nkt-fd-gallery,
  #nkt-fd .nkt-fd-band,
  #nkt-fd .nkt-fd-featured { opacity: 1; transform: none; transition: none; }
  #nkt-fd .nkt-fd-tile img,
  #nkt-fd .nkt-fd-yt-poster { transition: none; }
  #nkt-fd-lightbox.is-open { animation: none; }
}
