/* ═══════════════════════════════════════════════
   KESTOSIPS — SHARED STYLES
   Black & White Editorial Theme
═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:    #000000;
  --white:    #ffffff;
  --gray-50:  #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #d8d8d8;
  --gray-400: #888888;
  --gray-600: #444444;
  --gray-800: #1a1a1a;
  --cream:    #f5f3ef;
  --gold:     #b8935a;   /* ONE accent — used sparingly */
  --radius:   0px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
  --nav-h:    72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: none; }
button { border: none; background: none; font-family: inherit; cursor: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray-600); }

/* ─── CURSOR ─── */
.cur-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s, border-color .25s;
  will-change: transform;
}
.cur-dot {
  width: 4px; height: 4px;
  background: var(--white);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cur-ring.hover {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
}

/* ─── LOADER ─── */
#ks-loader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.ld-logo {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: .12em;
  color: var(--white);
}
.ld-bar {
  width: 180px; height: 1px;
  background: rgba(255,255,255,.15); position: relative;
}
.ld-fill {
  height: 100%; width: 0;
  background: var(--white);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.ld-word {
  font-size: .6rem; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gray-400);
}

/* ─── NAVIGATION ─── */
#ks-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: background .35s, border-color .35s;
}
#ks-nav.solid {
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 900;
  letter-spacing: .1em; color: var(--white);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-400);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-ham {
  display: none;
  flex-direction: column; gap: 5px;
  width: 24px; padding: 4px 0;
}
.nav-ham span {
  height: 1px; background: var(--white);
  transition: all .3s; display: block;
}
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700;
  color: var(--white); letter-spacing: .05em;
}

/* ─── UTILITY ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 100px 0; }
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease; }

.overline {
  font-size: .6rem; letter-spacing: .45em;
  text-transform: uppercase; color: var(--gray-400);
  display: block; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.1;
}
.divider {
  width: 40px; height: 1px;
  background: var(--white); margin: 24px 0;
}
.divider.center { margin: 24px auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 500;
  transition: all .3s; cursor: none;
  border-radius: 0;
}
.btn-white {
  background: var(--white); color: var(--black);
  border: 1px solid var(--white);
}
.btn-white:hover { background: var(--black); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--white); }
.btn-black {
  background: var(--black); color: var(--white);
  border: 1px solid var(--black);
}
.btn-black:hover { background: var(--white); color: var(--black); }
.btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ─── FOOTER ─── */
#ks-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 60px 5%;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px; align-items: start;
  max-width: 1280px; margin: 0 auto;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 900;
  letter-spacing: .12em; margin-bottom: 12px;
}
.footer-tagline {
  font-size: .75rem; color: var(--gray-400); line-height: 1.7;
}
.footer-col h4 {
  font-size: .6rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .8rem; color: var(--gray-400);
  transition: color .25s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .7rem; color: var(--gray-600); letter-spacing: .1em; }

/* ─── CARDS: PICKS ─── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.pick-card {
  background: var(--black);
  padding: 32px;
  position: relative; overflow: hidden;
  cursor: none;
  transition: background .3s;
}
.pick-card:hover { background: var(--gray-800); }
.pick-img-wrap {
  aspect-ratio: 3/4;
  background: var(--gray-800);
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.pick-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.pick-card:hover .pick-img-wrap img { transform: scale(1.04); }
.pick-bottle-placeholder {
  width: 50%; height: 80%;
  display: flex; align-items: center; justify-content: center;
}
.pick-bottle-placeholder svg {
  width: 100%; height: 100%;
  fill: var(--gray-600);
}
.pick-type {
  font-size: .6rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 8px; display: block;
}
.pick-name {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 4px;
}
.pick-brand { font-size: .75rem; color: var(--gray-400); }
.pick-arrow {
  position: absolute; top: 32px; right: 32px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(4px);
  transition: all .3s;
}
.pick-arrow svg { width: 14px; height: 14px; fill: var(--white); }
.pick-card:hover .pick-arrow { opacity: 1; transform: translateY(0); }

/* ─── BLOG / DISTILLERY CARDS ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
}
.post-card { cursor: none; }
.post-img {
  aspect-ratio: 16/9;
  background: var(--gray-800);
  overflow: hidden; margin-bottom: 20px;
  position: relative;
}
.post-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.post-card:hover .post-img img { transform: scale(1.04); }
.post-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.post-img-placeholder svg { width: 36px; height: 36px; fill: var(--gray-600); opacity: .4; }
.post-date {
  font-size: .6rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 10px; display: block;
}
.post-title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 10px;
  transition: color .25s;
}
.post-card:hover .post-title { color: var(--gray-200); }
.post-excerpt { font-size: .85rem; color: var(--gray-400); line-height: 1.7; }

/* ─── ESSENTIALS GRID ─── */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.essential-card {
  background: var(--black);
  padding: 32px; cursor: none;
  transition: background .3s;
}
.essential-card:hover { background: var(--gray-800); }
.essential-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.essential-icon svg { width: 22px; height: 22px; fill: var(--white); }
.essential-name {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}
.essential-why {
  font-size: .82rem; color: var(--gray-400);
  line-height: 1.7; margin-bottom: 20px;
}
.essential-link {
  font-size: .65rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--white);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 4px; width: fit-content;
  transition: border-color .25s;
}
.essential-link:hover { border-color: var(--white); }
.essential-link svg { width: 12px; height: 12px; fill: currentColor; }

/* ─── PICK DETAIL OVERLAY ─── */
#detail-overlay {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 2000;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
#detail-overlay.open { opacity: 1; pointer-events: all; }
.detail-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 120px 5% 80px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px;
  align-items: start;
}
.detail-close {
  position: fixed; top: 24px; right: 5%;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  cursor: none; color: var(--white);
  font-size: 1rem; transition: all .25s; z-index: 10;
}
.detail-close:hover { background: var(--white); color: var(--black); }
.detail-img-col .img-frame {
  aspect-ratio: 3/4;
  background: var(--gray-800);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.detail-img-col .img-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-info-col { padding-top: 20px; }
.detail-type {
  font-size: .6rem; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 16px; display: block;
}
.detail-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 8px;
}
.detail-brand {
  font-size: .9rem; color: var(--gray-400);
  margin-bottom: 32px; display: block;
}
.detail-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.detail-section h4 {
  font-size: .6rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 10px;
}
.detail-section p { font-size: .9rem; line-height: 1.8; color: var(--gray-200); }
.detail-notes { display: flex; flex-direction: column; gap: 12px; }
.detail-note { display: flex; gap: 16px; }
.detail-note-label {
  font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-400);
  width: 56px; flex-shrink: 0; padding-top: 2px;
}
.detail-note-text { font-size: .85rem; color: var(--gray-200); line-height: 1.6; }
.detail-video { margin-bottom: 28px; }
.detail-video h4 {
  font-size: .6rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 12px;
}
.video-embed {
  aspect-ratio: 16/9;
  background: var(--gray-800);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.video-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  opacity: .4;
}
.video-placeholder svg { width: 40px; height: 40px; fill: var(--white); }
.video-placeholder p {
  font-size: .65rem; letter-spacing: .25em;
  text-transform: uppercase;
}
.detail-buy {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 18px;
  background: var(--white); color: var(--black);
  font-size: .75rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; cursor: none;
  transition: all .3s;
}
.detail-buy:hover { background: var(--gray-100); }
.detail-buy svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── FEATURED PICK OF MONTH ─── */
.potm-banner {
  background: var(--white);
  color: var(--black);
  padding: 64px 5%;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.potm-label {
  font-size: .6rem; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gray-600);
  margin-bottom: 12px; display: block;
}
.potm-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: 12px;
}
.potm-sub { font-size: .9rem; color: var(--gray-600); margin-bottom: 24px; }
.potm-visual {
  width: 200px; height: 260px;
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.potm-visual svg { width: 60%; height: 80%; fill: var(--gray-400); }

/* ─── FILTER TABS ─── */
.filter-bar {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.15); margin-bottom: 40px;
  width: fit-content;
}
.filter-btn {
  padding: 10px 22px;
  font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-400);
  background: transparent; cursor: none;
  transition: all .25s; font-family: var(--font-sans);
  border-right: 1px solid rgba(255,255,255,.15);
}
.filter-btn:last-child { border-right: none; }
.filter-btn.active, .filter-btn:hover {
  background: var(--white); color: var(--black);
}

/* ─── CONTACT STRIP ─── */
.contact-strip {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 80px 5%; text-align: center;
}
.contact-strip h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; margin-bottom: 16px;
}
.contact-strip p { color: var(--gray-400); margin-bottom: 8px; font-size: .9rem; }
.contact-strip a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: border-color .25s; }
.contact-strip a:hover { border-color: var(--white); }

/* ═══════════════════════════════════════════════
   KESTOSIPS — ANIMATION ENHANCEMENTS
═══════════════════════════════════════════════ */

/* ─── FILM GRAIN OVERLAY ─── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9996;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 1.2s steps(1) infinite;
}
@keyframes grainShift {
  0%   { background-position:   0%   0%; }
  20%  { background-position:  40%  20%; }
  40%  { background-position:  20%  80%; }
  60%  { background-position:  80%  40%; }
  80%  { background-position:  60%  60%; }
  100% { background-position:   0%   0%; }
}

/* ─── PAGE CURTAIN TRANSITION ─── */
.pg-curtain {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9995;
  transform: scaleY(1);
  transform-origin: top;
  will-change: transform;
}

/* ─── SCROLL PROGRESS BAR ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 1px;
  background: rgba(255,255,255,.45);
  z-index: 9994;
  transform: scaleX(0);
  transform-origin: left;
}

/* ─── MARQUEE TICKER ─── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 13px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track.rev { animation-direction: reverse; }
.marquee-item {
  display: flex; align-items: center; gap: 32px;
  padding: 0 16px; white-space: nowrap;
  font-size: .56rem; letter-spacing: .52em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-family: var(--font-sans);
}
.marquee-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.35); flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SCANLINES ─── */
.scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.022) 3px,
    rgba(0,0,0,.022) 4px
  );
}

/* ─── 3D TILT CARDS ─── */
.pick-card, .section-tile, .post-card, .essential-card, .merch-card, .post-featured {
  will-change: transform;
}
.pick-card, .section-tile, .post-card, .essential-card, .merch-card {
  transition: transform .2s cubic-bezier(.2,0,.2,1), background .3s;
}

/* ─── CARD INNER SHINE ─── */
.pick-card::before, .section-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none; z-index: 1;
}
.pick-card:hover::before, .section-tile:hover::before { opacity: 1; }

/* ─── RADIAL GLOW ON FEATURED TILE ─── */
.tile-featured {
  --mx: 50%; --my: 50%;
}
.tile-featured::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(0,0,0,.06) 0%, transparent 65%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.tile-featured:hover::after { opacity: 1; }

/* ─── TILE NUM HOVER ─── */
.tile-num { transition: color .3s, letter-spacing .35s; }
.section-tile:hover .tile-num { color: rgba(255,255,255,.55); letter-spacing: .48em; }

/* ─── NAV / FOOTER LOGO MORPH ─── */
.nav-logo, .footer-logo {
  transition: letter-spacing .4s cubic-bezier(.2,0,.2,1);
}
.nav-logo:hover  { letter-spacing: .22em; }
.footer-logo:hover { letter-spacing: .28em; }

/* ─── MAGNETIC BUTTONS ─── */
.btn, .detail-buy { will-change: transform; }

/* ─── STORY LABEL SHIMMER ─── */
@keyframes shimmer {
  0%, 100% { color: rgba(255,255,255,.18); }
  50%       { color: rgba(255,255,255,.45); }
}
.story-label-vert { animation: shimmer 5s ease-in-out infinite; }

/* ─── HERO GRADIENT PULSE ─── */
@keyframes gradientPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}
.hero-gradient { animation: gradientPulse 6s ease-in-out infinite; }

/* ─── DIVIDER EXPAND ─── */
.divider {
  transform-origin: left;
  animation: none;
}
.reveal.in .divider {
  animation: expandWidth .6s .2s cubic-bezier(.7,0,.3,1) both;
}
@keyframes expandWidth {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─── FILTER BTN GLOW ─── */
.filter-btn.active {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.filter-btn { transition: background .2s, color .2s; }

/* ─── POTM BANNER EDGE PULSE ─── */
@keyframes potmPulse {
  0%,100% { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
  50%      { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
}
.potm-banner { animation: potmPulse 4s ease-in-out infinite; }

/* ─── DETAIL OVERLAY SLIDE ─── */
#detail-overlay { transition: opacity .38s cubic-bezier(.4,0,.2,1); }
.detail-inner {
  animation: none;
}
#detail-overlay.open .detail-inner {
  animation: slideUp .45s cubic-bezier(.2,0,.2,1) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── ARTICLE VIEW SLIDE ─── */
#article-view.open .article-inner {
  animation: slideUp .45s cubic-bezier(.2,0,.2,1) both;
}

/* ─── MOBILE NAV LINKS STAGGER ─── */
.mobile-nav a {
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,0,.2,1), color .25s;
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: .05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: .10s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .20s; }
.mobile-nav.open a:nth-child(5) { transition-delay: .25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: .30s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .detail-inner { grid-template-columns: 1fr; gap: 40px; }
  .potm-banner { grid-template-columns: 1fr; }
  .potm-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  :root { --nav-h: 60px; }
}
