/* ============================================================
   THE CREATIVITY LAB — Article detail (editorial / cinematic)
   .art-  →  sticky layered hero, parallax, sticky sidebar, body
   Black canvas · grain + slow light · brutalist type · 0.22,1,0.36,1
   ============================================================ */
:root { --art-ease: cubic-bezier(0.22, 1, 0.36, 1); }

.article-page { position: relative; }

/* ---- ambient: grain + extremely slow vertical light ---- */
.art-noise { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"); }
.art-light { position: fixed; inset: -40% 0; z-index: 0; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(38% 30% at 22% 18%, rgba(237,70,9,0.05) 0%, transparent 70%),
    radial-gradient(40% 34% at 82% 78%, rgba(0,153,255,0.045) 0%, transparent 72%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.016) 48%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 100% 60%;
  background-repeat: no-repeat, no-repeat, repeat-y;
  animation: artLight 34s linear infinite; }
@keyframes artLight { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 0 -1200px; } }

/* ---- fixed nav ---- */
.art-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: clamp(16px, 2vw, 26px) clamp(20px, 4.5vw, 52px); }
.art-topbar .topbar { margin: 0; }

/* ===================== HERO (sticky, layered) ===================== */
.art-hero { position: sticky; top: 0; height: 100vh; min-height: 640px; z-index: 1; overflow: hidden; }
.art-hero__stage { position: absolute; inset: 0; display: grid; grid-template-columns: 45% 55%; will-change: transform, opacity; transform-origin: 50% 42%; }
@media (max-width: 900px) { .art-hero__stage { grid-template-columns: 1fr; grid-template-rows: 46% 54%; } }

.art-hero__media { position: relative; overflow: hidden; background: #0a0a0c; }
.art-hero__media-inner { position: absolute; inset: -8% 0; will-change: transform; }
.art-hero__media-inner .art-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--art-ease); }
.art-hero__media:hover .art-hero__media-inner .art-hero__video { transform: scale(1.04); }
.art-hero__vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 42%, rgba(5,5,7,0.55) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.35) 0%, transparent 30%, transparent 64%, rgba(5,5,7,0.6) 100%); }

.art-hero__panel { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(86px, 11vh, 150px) clamp(28px, 5vw, 92px) clamp(40px, 7vh, 92px); }
@media (max-width: 900px) { .art-hero__panel { padding: 28px clamp(20px,5vw,40px) 40px; gap: 26px; justify-content: flex-start; } }

.art-title { font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: 0.96; letter-spacing: -0.035em;
  color: var(--text-primary); max-width: 16ch; text-wrap: balance; }

.art-scrolltag { align-self: flex-end; font-family: var(--font-label); font-size: 14px; font-weight: var(--fw-medium);
  letter-spacing: 0.02em; color: var(--text-muted); animation: artBob 2.8s var(--art-ease) infinite; }
@media (max-width: 900px) { .art-scrolltag { align-self: flex-start; } }
@keyframes artBob { 0%,100% { transform: translateY(0); opacity: 0.75; } 50% { transform: translateY(6px); opacity: 1; } }

.art-meta { max-width: 46ch; }
.art-readtime { font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(1.5rem, 2.1vw, 2.05rem); letter-spacing: -0.02em; color: var(--text-primary); }
.art-metaline { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: nowrap;
  font-family: var(--font-label); font-size: 13px; letter-spacing: 0.04em; color: var(--text-faint); }
.art-metaline .cat { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: var(--fw-semibold); white-space: nowrap; }
.art-metaline span:last-child { white-space: nowrap; }
.art-metaline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
.art-intro { margin-top: 22px; font-size: clamp(1rem, 1.1vw, 1.13rem); line-height: 1.6; color: var(--text-secondary); }
.art-author { display: flex; align-items: center; gap: 13px; margin-top: clamp(24px, 3vh, 38px); }
.art-author__av { width: 42px; height: 42px; border-radius: 999px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border-default); background: #161616; }
.art-author__av .art-author__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.art-author__name { font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-primary); line-height: 1.2; }
.art-author__role { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-faint); margin-top: 3px; }

/* ===================== CONTENT LAYER (slides over hero) ===================== */
.art-content { position: relative; z-index: 5; background: var(--bg);
  border-top: 1px solid var(--border-default);
  box-shadow: 0 -60px 120px -40px rgba(0,0,0,0.85);
  padding: clamp(56px, 8vw, 130px) clamp(20px, 4.5vw, 52px) clamp(60px, 8vw, 120px); }

/* Footer sits solidly below the article — above the sticky parallax hero and the
   fixed grain/light layers, so nothing shows through it at the bottom. */
.article-page .footer { position: relative; z-index: 6; }
.art-content__inner { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 80px); max-width: 1500px; margin: 0 auto; }
@media (min-width: 980px) { .art-content__inner { grid-template-columns: 35% 1fr; gap: clamp(48px, 5vw, 96px); align-items: start; } }

/* ---- sidebar (sticky) ---- */
.art-side { position: relative; }
@media (min-width: 980px) { .art-side { position: sticky; top: clamp(92px, 12vh, 116px); align-self: start; } }
.art-side__inner { will-change: transform; }
.art-side__h { font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(2.2rem, 3.2vw, 3.1rem); line-height: 0.98; letter-spacing: -0.035em; color: var(--text-primary); }
.art-back { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px;
  font-family: var(--font-label); font-size: 13px; font-weight: var(--fw-medium); letter-spacing: 0.02em;
  color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--art-ease); }
.art-back .idx { color: var(--text-faint); }
.art-back:hover { color: var(--text-primary); }
.art-back svg { transition: transform var(--dur) var(--art-ease); }
.art-back:hover svg { transform: translate(2px, -2px); }

.art-cards { display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 20px); margin-top: clamp(28px, 3vw, 42px); }
.art-card { position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 6;
  border: 1px solid var(--border-subtle); background: #0c0c0e; text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color 0.7s var(--art-ease), box-shadow 0.7s var(--art-ease); }
.art-card__media { position: absolute; inset: 0; overflow: hidden; }
.art-card__media .art-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--art-ease); }
.art-card:hover .art-card__media .art-card__img { transform: scale(1.04); }
.art-card__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,7,0.5) 0%, rgba(5,5,7,0.05) 40%, rgba(5,5,7,0.6) 100%); }
/* glass reflection sweep */
.art-card__sweep { display: none; /* shimmer over photos removed site-wide */ position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.16) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.9s var(--art-ease); }
.art-card:hover { border-color: rgba(255,255,255,0.32); box-shadow: 0 36px 80px -44px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05); }
.art-card:hover .art-card__sweep { transform: translateX(130%); }
.art-card__top { position: absolute; left: 16px; top: 14px; right: 16px; z-index: 3; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; color: var(--text-faint); }
.art-card__top .cat { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: var(--fw-semibold); }
.art-card__h { position: absolute; left: 18px; right: 18px; bottom: 46px; z-index: 3;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.4rem, 1.7vw, 1.85rem);
  line-height: 1.0; letter-spacing: -0.03em; color: var(--text-primary); }
.art-card__plus { position: absolute; right: 16px; bottom: 14px; z-index: 3; color: var(--text-muted); font-size: 18px; line-height: 1;
  transition: transform 0.6s var(--art-ease), color 0.6s var(--art-ease); }
.art-card:hover .art-card__plus { transform: rotate(90deg); color: var(--text-primary); }

/* ---- newsletter ---- */
.art-news { margin-top: clamp(34px, 4vw, 52px); }
.art-news__h { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.25rem, 1.5vw, 1.5rem); letter-spacing: -0.02em; color: var(--text-primary); }
.art-news__form { display: flex; gap: 10px; margin-top: 18px; }
.art-news__input { flex: 1; min-width: 0; background: rgba(255,255,255,0.025); border: 1px solid var(--border-default);
  color: var(--text-primary); font-family: var(--font-body); font-size: 15px; letter-spacing: -0.01em;
  padding: 15px 16px; outline: none; border-radius: var(--radius-button);
  transition: border-color 0.6s var(--art-ease), background 0.6s var(--art-ease); }
.art-news__input::placeholder { color: var(--text-faint); }
.art-news__input:focus { border-color: var(--border-strong); background: rgba(255,255,255,0.045); }
.art-news__btn { flex-shrink: 0; width: 54px; border-radius: var(--radius-button); border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.03); color: var(--text-primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.6s var(--art-ease), color 0.6s var(--art-ease), border-color 0.6s var(--art-ease); }
.art-news__btn svg { transition: transform 0.5s var(--art-ease); }
.art-news__btn:hover { background: var(--text-primary); color: var(--mg-black); border-color: var(--text-primary); }
.art-news__btn:hover svg { transform: rotate(90deg); }
.art-news__btn.sent { background: var(--text-primary); color: var(--mg-black); border-color: var(--text-primary); }
.art-news__note { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--text-faint); max-width: 38ch; }

/* ---- article body ---- */
.art-body { max-width: 760px; }
.art-body__section { margin-bottom: clamp(40px, 5vw, 72px); }
.art-body__section:last-child { margin-bottom: 0; }
.art-body__h { font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(1.7rem, 2.6vw, 2.55rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--text-primary);
  margin-bottom: clamp(20px, 2vw, 30px); max-width: 18ch; text-wrap: balance; }
.art-body__p { max-width: 650px; font-size: clamp(1.02rem, 1.15vw, 1.18rem); line-height: 1.8;
  letter-spacing: -0.006em; color: rgba(255,255,255,0.78); }
.art-body__p + .art-body__p { margin-top: 1.5em; }
.art-body__lead { color: var(--text-primary); font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .art-light, .art-scrolltag { animation: none; }
.art-card__sweep { transition: none; }
}

/* ---------- ArticleHero (window.ArticleHero) — cinematic video header ---------- */
.ah { position: relative; width: 100%; height: 86vh; max-height: 760px; min-height: 440px; overflow: hidden; background: var(--mg-ink-900, #0a0a0c); }
.ah__media { position: absolute; inset: 0; z-index: 0; }
.ah__video, .ah__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,7,0) 34%, rgba(5,5,7,0.55) 72%, rgba(5,5,7,0.94) 100%); }
.ah__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(22px, 5vw, 60px); }
.ah__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: var(--font-label, "Inter", sans-serif); font-size: 12px; font-weight: var(--fw-semibold, 600);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary, #b8b8b8); }
.ah__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-orange, #ff5a1f); }
.ah__title { margin: 0; max-width: 16ch; font-family: var(--font-display, "Inter", sans-serif);
  font-weight: var(--fw-bold, 700); letter-spacing: -0.02em; line-height: 1.02; color: var(--text-primary, #fff);
  font-size: clamp(30px, 7vw, 64px); }
.ah__sub { margin: 16px 0 0; max-width: 46ch; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.5;
  color: var(--text-secondary, #b8b8b8); }
@media (min-width: 768px) { .ah__overlay { max-width: 70%; } }
