/* =====================================================================
   Danny Mamesah · Project Studio — design system
   ===================================================================== */

:root {
  --bg: #faf8f4;
  --bg-2: #f2eee6;
  --surface: #ffffff;
  --ink: #141311;
  --ink-2: #47443f;
  --ink-3: #7c7870;
  --line: #e6e1d7;
  --line-2: #d5cfc2;
  --accent: #b3432a;
  --accent-ink: #8f331f;
  --night: #0f0e0d;
  --night-2: #1b1a18;
  --night-ink: #f3f0e9;
  --night-mute: #a19c92;

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --text-serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --r: 14px;
  --r-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-lg: 0 24px 60px -24px rgba(20, 16, 8, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.kicker-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-title {
  font: 400 clamp(2.1rem, 4.2vw, 3.5rem)/1.02 var(--display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); }
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem;
  font-size: .8rem; color: var(--ink-3);
}
.meta .dot::before { content: '·'; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 48px; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .92rem/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .85rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ece6da; }
.btn-outline { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.04); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-yt { background: #e62117; color: #fff; }
.btn-yt:hover { background: #c4150c; }
.btn-block { width: 100%; }
.btn-ig { color: #fff; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); background-size: 140% 140%; background-position: 0 50%; transition: background-position .4s var(--ease), transform .25s var(--ease); }
.btn-ig:hover { background-position: 100% 50%; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.icon-btn .icon { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .9rem/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  color: var(--ink);
  background: rgba(250, 248, 244, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-overlay::before {
  content: ''; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.5), transparent);
  transition: opacity .35s;
}
.site-header.is-overlay.is-solid {
  background: rgba(250, 248, 244, .92); color: var(--ink); border-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-overlay.is-solid::before { opacity: 0; }

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; flex: none; }
.wordmark-name { font: 400 1.7rem/1 var(--display); letter-spacing: -.01em; }
.wordmark-tag {
  font: 600 .6rem/1.25 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding-left: .7rem; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  opacity: .75;
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 40px; padding: 0 .95rem; border-radius: 999px;
  font: 500 .92rem/1 var(--sans); text-decoration: none;
  background: none; border: 0; cursor: pointer; opacity: .88;
  transition: background-color .2s, opacity .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-link .icon { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 600px; padding: .75rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: .15rem;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-item { display: flex; align-items: center; gap: .8rem; padding: .55rem; border-radius: 12px; text-decoration: none; transition: background-color .2s; }
.mega-item:hover { background: var(--bg-2); }
.mega-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); }
.mega-item strong { display: block; font: 600 .92rem/1.2 var(--sans); }
.mega-item span { font-size: .78rem; color: var(--ink-3); }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; padding: .85rem .6rem .35rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }

.header-actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.header-actions .btn-sub { margin-left: .35rem; }
.site-header.is-overlay:not(.is-solid) .btn-sub { background: #fff; color: var(--ink); }
.site-header.is-overlay:not(.is-solid) .btn-sub:hover { background: #ece6da; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-actions .btn-sub, .header-actions .ig-link { display: none; }
  .wordmark-tag { display: none; }
  .wordmark-name { font-size: 1.55rem; }
}

/* ---------- media (images) ---------- */
.media { position: relative; overflow: hidden; background: #1e1c19; isolation: isolate; }
.media-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media.is-v .media-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  transform: scale(3.4); filter: blur(22px) brightness(.62) saturate(1.2);
}
.media.is-v .media-img { width: auto; height: 100%; aspect-ratio: 9 / 16; margin-inline: auto; }
/* crop the channel watermark (top-right) out of YouTube stills */
.media.is-still .media-img { transform: scale(1.12); transform-origin: 0 100%; }
.card:hover .media.is-still .media-img,
.story-lead:hover .media.is-still .media-img,
.story-row:hover .media.is-still .media-img { transform: scale(1.17); }
.facade .media.is-still .media-img, .pl-item .media.is-still .media-img { transform: scale(1.18); }
.badge-time {
  position: absolute; right: .65rem; bottom: .65rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .5rem .35rem .45rem; border-radius: 6px;
  background: rgba(10, 9, 8, .72); color: #fff;
  font: 600 .72rem/1 var(--sans); letter-spacing: .02em;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.badge-time .icon { width: 10px; height: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative; isolation: isolate;
  display: flex; align-items: flex-end; min-height: min(94svh, 900px);
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s var(--ease), visibility 0s; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide.is-active .hero-media img { animation: hero-zoom 10s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.hero-media.is-still img { transform: scale(1.22); transform-origin: 12% 100%; }
.hero-slide.is-active .hero-media.is-still img { animation-name: hero-zoom-still; }
@keyframes hero-zoom-still { from { transform: scale(1.3); } to { transform: scale(1.22); } }
.hero-slide::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 8, 5, .9) 0%, rgba(10, 8, 5, .5) 38%, rgba(10, 8, 5, .08) 68%),
    linear-gradient(to right, rgba(10, 8, 5, .45), transparent 60%);
}

/* portrait pictures: blurred backdrop + framed photo on the right */
.is-portrait .hero-media img, .hero-slide.is-active.is-portrait .hero-media img { animation: none; transform: scale(1.25); filter: blur(28px) brightness(.5) saturate(1.15); }
.is-pillar .hero-media img, .hero-slide.is-active.is-pillar .hero-media img { transform: scale(3.4); }
.hero-portrait {
  position: absolute; right: var(--edge); top: calc(var(--header-h) + 2rem); bottom: 8rem; z-index: 0;
  aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease) .2s, transform 1.2s var(--ease) .2s;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.is-active .hero-portrait { opacity: 1; transform: none; }
.is-portrait .hero-inner { max-width: min(840px, 56%); }

.hero-content { padding: calc(var(--header-h) + 4rem) 0 calc(clamp(3rem, 7vh, 5rem) + 76px); }
.hero-inner { max-width: 840px; }
.hero-inner > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-active .hero-inner > * { opacity: 1; transform: none; }
.is-active .hero-inner > :nth-child(2) { transition-delay: .08s; }
.is-active .hero-inner > :nth-child(3) { transition-delay: .16s; }
.is-active .hero-inner > :nth-child(4) { transition-delay: .22s; }
.is-active .hero-inner > :nth-child(5) { transition-delay: .28s; }

/* slide navigation */
.hero-nav { position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 4vh, 2.25rem); z-index: 5; display: flex; align-items: center; gap: 2rem; }
.hero-tabs { flex: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.25rem; }
.hero-tab {
  position: relative; display: flex; align-items: baseline; gap: .55rem; min-width: 0;
  padding: 1rem 0 .2rem; border: 0; background: none; text-align: left; cursor: pointer;
  color: rgba(255, 255, 255, .55); font: 500 .85rem/1.3 var(--sans); transition: color .3s;
}
.hero-tab::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.hero-tab .bar { position: absolute; top: 0; left: 0; width: 0; height: 2px; border-radius: 2px; background: #fff; }
.hero-tab:hover, .hero-tab.is-active { color: #fff; }
.hero-tab.is-active .bar { animation: hero-progress 7s linear forwards; }
.hero.is-paused .hero-tab.is-active .bar { animation-play-state: paused; }
.hero.is-stopped .hero-tab.is-active .bar { animation: none; width: 100%; }
@keyframes hero-progress { to { width: 100%; } }
.hero-tab .num { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; opacity: .75; }
.hero-tab .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-ctrl { display: flex; gap: .4rem; flex: none; }
.hero-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, color .2s, border-color .2s;
}
.hero-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-btn .icon { width: 16px; height: 16px; }
.hero-btn .i-play, .hero.is-stopped .hero-btn .i-pause { display: none; }
.hero.is-stopped .hero-btn .i-play { display: block; }

@media (max-width: 760px) {
  .hero-portrait { display: none; }
  .is-portrait .hero-media img, .hero-slide.is-active.is-portrait .hero-media img { filter: none; transform: none; }
  .is-portrait .hero-inner { max-width: none; }
  .hero-content { padding-bottom: calc(2.5rem + 56px); }
  .hero-nav { gap: 1rem; }
  .hero-tabs { gap: .5rem; }
  .hero-tab { padding-top: 1.1rem; }
  .hero-tab .num, .hero-tab .lbl, .hero-ctrl [data-hero="prev"], .hero-ctrl [data-hero="next"] { display: none; }
}
.hero .kicker { color: #fff; opacity: .9; }
.hero .kicker-dot::before { background: var(--accent); }
.hero-title {
  font: 400 clamp(2.8rem, 6.6vw, 5.8rem)/.98 var(--display);
  letter-spacing: -.015em; margin: 1.1rem 0 1.25rem; text-wrap: balance;
}
.hero-title.is-long { font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.02; }
.hero-dek { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.86); max-width: 38rem; }
.hero-meta { margin-top: 1.1rem; font-size: .85rem; color: rgba(255,255,255,.72); display: flex; gap: .55rem; flex-wrap: wrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }


/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head .section-title { margin-top: .8rem; }
.section-head-side { display: flex; align-items: center; gap: 1rem; }
.section-head p.lede { max-width: 30rem; }

/* ---------- story cards ---------- */
.card, .story-lead, .story-row { display: block; text-decoration: none; color: inherit; }
.card .media { aspect-ratio: 3 / 2; border-radius: var(--r); }
.card-body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.card-title { font: 400 1.6rem/1.1 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.card-title span, .u-line span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.card:hover .card-title span, .story-lead:hover .card-title span, .story-row:hover .card-title span { background-size: 100% 1px; }
.card:hover .media-img, .story-lead:hover .media-img, .story-row:hover .media-img, .dest:hover img { transform: scale(1.045); }
.card-dek { font-size: .95rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.latest { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.story-lead .media { aspect-ratio: 3 / 2; border-radius: var(--r); }
.story-lead .card-title { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.04; }
.story-lead .card-dek { font-size: 1.05rem; -webkit-line-clamp: 3; max-width: 40rem; }
.story-list { display: flex; flex-direction: column; }
.story-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.15rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.story-row:first-child { border-top: 0; padding-top: 0; }
.story-row .media { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
.story-row .card-body { padding-top: .1rem; gap: .45rem; }
.story-row .card-title { font-size: 1.35rem; line-height: 1.12; }
.story-row .badge-time { right: .4rem; bottom: .4rem; }
@media (max-width: 900px) {
  .latest { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .story-row { grid-template-columns: 104px minmax(0, 1fr); }
  .story-row .card-title { font-size: 1.2rem; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.75rem; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }

/* ---------- destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dest {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r);
  overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: #222;
}
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.dest::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,8,5,.86) 0%, rgba(10,8,5,.35) 42%, rgba(10,8,5,0) 70%); }
.dest-body { position: absolute; inset: auto 0 0 0; padding: 1.3rem; }
.dest-body > span, .short-place, .pl-item > span, .pl-meta { display: block; }
.dest-count { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.dest-name { font: 400 clamp(1.7rem, 2.3vw, 2.15rem)/1 var(--display); margin: .5rem 0 .45rem; }
.dest-blurb { font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.82); }
.dest-arrow {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.dest-arrow .icon { width: 18px; height: 18px; }
.dest:hover .dest-arrow { background: #fff; color: var(--ink); transform: rotate(-45deg); }
/* odd count (9, 13…): first destination becomes a large 2×2 tile */
.dest-grid.has-feature { grid-auto-rows: clamp(220px, 22vw, 300px); }
.dest-grid.has-feature .dest { aspect-ratio: auto; }
.dest-grid.has-feature .dest:first-child { grid-column: span 2; grid-row: span 2; }
.dest-grid.has-feature .dest:first-child .dest-body { padding: 1.8rem; }
.dest-grid.has-feature .dest:first-child .dest-name { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.dest-grid.has-feature .dest:first-child .dest-blurb { font-size: .95rem; max-width: 26rem; }
@media (max-width: 1000px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .dest-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .dest-grid::-webkit-scrollbar { display: none; }
  .dest { scroll-snap-align: start; }
  .dest-grid.has-feature { grid-auto-rows: auto; }
  .dest-grid.has-feature .dest { aspect-ratio: 4 / 5; }
  .dest-grid.has-feature .dest:first-child { grid-column: auto; grid-row: auto; }
}

/* ---------- dark band ---------- */
.band-dark { background: var(--night); color: var(--night-ink); }
.band-dark .kicker { color: #e4876f; }
.band-dark .lede, .band-dark .card-dek { color: var(--night-mute); }
.band-dark .meta { color: var(--night-mute); }
.band-dark .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.band-dark .btn-outline:hover { border-color: #fff; }

.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(2rem, 5vw, 4.5rem); }
.theme-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.theme-intro .section-title { margin: .8rem 0 1.1rem; }
.theme-intro .btn { margin-top: 1.8rem; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.theme-grid .card .media { aspect-ratio: 16 / 10; }
.theme-grid .card-title { font-size: 1.5rem; }
@media (max-width: 960px) {
  .theme { grid-template-columns: minmax(0, 1fr); }
  .theme-intro { position: static; }
}
@media (max-width: 560px) { .theme-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- shorts rail ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 17.5vw, 224px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  padding-bottom: .25rem; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-sm { grid-auto-columns: clamp(150px, 14vw, 180px); padding-inline: 0; scroll-padding-inline: 0; }
.short {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r);
  overflow: hidden; isolation: isolate; scroll-snap-align: start;
  border: 0; padding: 0; background: #222; color: #fff; text-align: left; cursor: pointer;
}
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.short::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,8,5,.88) 0%, rgba(10,8,5,.2) 45%, rgba(10,8,5,0) 65%, rgba(10,8,5,.35) 100%); }
.short:hover img { transform: scale(1.05); }
.short-body { position: absolute; inset: auto 0 0 0; padding: .95rem; }
.short-title { font: 600 .9rem/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short-place { font-size: .74rem; color: rgba(255,255,255,.78); margin-top: .35rem; }
.short-top { position: absolute; top: .7rem; left: .7rem; right: .7rem; display: flex; justify-content: space-between; align-items: center; }
.short-tag { font: 700 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .5rem; border-radius: 6px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.short .badge-time { position: static; }
.short-play {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
.short-play .icon { width: 20px; height: 20px; margin-left: 3px; }
.short:hover .short-play, .short:focus-visible .short-play { opacity: 1; transform: scale(1); }

.rail-controls { display: flex; gap: .5rem; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s, opacity .2s; }
.rail-btn:hover { border-color: var(--ink); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn .icon { width: 18px; height: 18px; }
@media (max-width: 560px) { .rail-controls { display: none; } }
.band-dark .rail-btn { border-color: rgba(255,255,255,.25); }
.band-dark .rail-btn:hover { border-color: #fff; }

/* ---------- watch (video + playlist) ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.player-frame { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { margin-top: 1.4rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.player-title { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); max-width: 36rem; margin-top: .6rem; }
.playlist { display: flex; flex-direction: column; gap: .2rem; }
.playlist-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 .6rem .8rem; font-size: .8rem; color: var(--night-mute); }
.playlist-head strong { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--night-ink); }
.pl-item {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: .9rem; align-items: start;
  padding: .6rem; border-radius: 12px; border: 0; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .2s;
}
.pl-item:hover { background: rgba(255,255,255,.06); }
.pl-item[aria-current="true"] { background: rgba(255,255,255,.1); }
.pl-item .media { aspect-ratio: 16 / 9; border-radius: 8px; }
.pl-item .badge-time { right: .35rem; bottom: .35rem; font-size: .66rem; padding: .25rem .35rem; }
.pl-title { font: 600 .9rem/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-meta { font-size: .76rem; color: var(--night-mute); margin-top: .3rem; }
.pl-item[aria-current="true"] .pl-meta::before { content: 'Sedang diputar · '; color: #e4876f; }
@media (max-width: 960px) { .watch { grid-template-columns: minmax(0, 1fr); } }

/* ---------- facade (click to play) ---------- */
.facade { position: relative; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: #000; cursor: pointer; color: #fff; }
.facade .media { position: absolute; inset: 0; }
.facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 45%); pointer-events: none; }
.facade-play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.facade-play .icon { width: 30%; height: 30%; margin-left: 6%; }
.facade:hover .facade-play { transform: translate(-50%, -50%) scale(1.07); background: var(--accent); color: #fff; }
.facade-label { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 2; display: flex; gap: .6rem; align-items: center; font: 600 .85rem/1 var(--sans); }
.facade-label span { opacity: .75; font-weight: 500; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.collage figure { aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.collage figure:nth-child(2) { transform: translateY(2.5rem); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.about .section-title { margin: .8rem 0 1.4rem; }
.about-text p { color: var(--ink-2); font-size: 1.08rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.25rem; border-top: 1px solid var(--line); }
.stat { padding: 1.3rem 1rem 0 0; }
.stat + .stat { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.stat-num { font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display); }
.stat-label { font-size: .8rem; color: var(--ink-3); margin-top: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-2); background: transparent; text-decoration: none; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .collage { max-width: 520px; }
}

/* ---------- follow band (above footer) ---------- */
.follow-band { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(2.75rem, 5vw, 3.75rem) 0; }
.follow-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.follow-text { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.follow-icon {
  width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.follow-icon .icon { width: 30px; height: 30px; }
.follow-title { font: 400 clamp(1.6rem, 2.8vw, 2.3rem)/1.1 var(--display); margin: .55rem 0 .4rem; }
.follow-title a { text-decoration: none; color: var(--accent); }
.follow-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.follow-text p { color: var(--ink-2); font-size: .95rem; }
.follow-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 560px) {
  .follow-text { align-items: flex-start; }
  .follow-icon { width: 52px; height: 52px; border-radius: 15px; }
  .follow-actions, .follow-actions .btn { width: 100%; }
}

/* ---------- footer ---------- */
.social-row { display: flex; gap: .5rem; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--night-ink); border: 1px solid rgba(255,255,255,.2); transition: background-color .2s, border-color .2s, color .2s; }
.social-row a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.social-row .icon { width: 19px; height: 19px; }
.site-footer { background: var(--night); color: var(--night-ink); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand p { color: var(--night-mute); font-size: .92rem; max-width: 22rem; margin: 1.1rem 0 1.6rem; }
.footer-col h2 { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--night-mute); margin-bottom: 1.1rem; }
.footer-col a { display: inline-block; padding: .3rem 0; font-size: .94rem; text-decoration: none; color: var(--night-ink); opacity: .86; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: #e4876f; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: var(--night-mute); }
.footer-bottom a { color: inherit; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- page head (archive) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.page-title { font: 400 clamp(2.8rem, 6vw, 5rem)/1 var(--display); letter-spacing: -.015em; margin: .9rem 0 1rem; text-wrap: balance; }
.page-head .lede { max-width: 40rem; }

.dest-head { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem); }
.dest-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.dest-head .lede { max-width: 32rem; }
.dest-head .chips { margin-top: 1.6rem; }
.dest-stats { display: flex; gap: 2.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.dest-stats strong { display: block; font: 400 2.4rem/1 var(--display); }
.dest-stats span { font-size: .8rem; color: var(--ink-3); }
.dest-collage { position: relative; padding: 0 0 9% 14%; }
.dest-collage figure { overflow: hidden; background: var(--bg-2); }
.dest-collage img { width: 100%; height: 100%; object-fit: cover; }
.dest-collage .is-still img { transform: scale(1.12); transform-origin: 0 100%; }
.dc-main { aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: var(--shadow-lg); }
.dc-side { position: absolute; left: 0; bottom: 0; width: 31%; aspect-ratio: 9 / 16; border-radius: 16px; border: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.dest-collage.single { padding: 0; display: flex; justify-content: center; }
.dest-collage.single .dc-side { position: static; width: min(62%, 360px); aspect-ratio: 4 / 5; border: 0; border-radius: 20px; }
@media (max-width: 860px) {
  .dest-head-grid { grid-template-columns: minmax(0, 1fr); }
  .dest-collage { max-width: 560px; }
}

/* ---------- toolbar / filters ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding-block: .6rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 .95rem; border-radius: 999px; border: 1px solid transparent; background: none; font: 500 .88rem/1 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.tab:hover { color: var(--ink); background: var(--bg-2); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.field { position: relative; display: flex; align-items: center; }
.field .icon { position: absolute; left: .9rem; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.input, .select {
  height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font: 400 .88rem/1 var(--sans); color: var(--ink); padding: 0 1rem;
  transition: border-color .2s;
}
.input { width: 190px; padding-left: 2.4rem; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7870' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; }
.input:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem 0 1.75rem; font-size: .88rem; color: var(--ink-3); }
.result-bar button { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.empty { padding: 4rem 0 2rem; text-align: center; color: var(--ink-3); }
.empty h2 { font: 400 2rem/1.1 var(--display); color: var(--ink); margin-bottom: .6rem; }
.load-more { display: flex; justify-content: center; margin-top: 3.5rem; }
@media (max-width: 760px) {
  .toolbar { position: static; }
  .filters { width: 100%; }
  .filters .field { flex: 1 1 100%; }
  .input { width: 100%; }
  .select { flex: 1; }
}

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 80; }
.article-head { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.article-head .crumbs { justify-content: center; }
.article-title { font: 400 clamp(2.5rem, 5.6vw, 4.6rem)/1.02 var(--display); letter-spacing: -.015em; max-width: 960px; margin: 1rem auto 1.25rem; text-wrap: balance; }
.article-dek { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 42rem; margin: 0 auto; }
.byline { display: flex; justify-content: center; align-items: center; gap: .85rem; margin-top: 2rem; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 400 1.15rem/1 var(--display); flex: none; }
.byline strong { color: var(--ink); font-weight: 600; display: block; }
.byline-text { text-align: left; line-height: 1.4; }

.article-media { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.article-media .player-frame { border-radius: 18px; box-shadow: var(--shadow-lg); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2.5rem, 5vw, 5rem); width: min(1080px, 100% - 2 * var(--gutter)); margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.prose { font: 400 1.24rem/1.78 var(--text-serif); color: #262420; max-width: 680px; }
.prose > * + * { margin-top: 1.35em; }
.prose > p:first-child::first-letter { float: left; font: 400 4.6em/.8 var(--display); color: var(--accent); padding: .08em .1em 0 0; }
.prose h2 { font: 400 2rem/1.15 var(--display); color: var(--ink); margin-top: 2em; }
.prose ul { padding-left: 0; }
.prose li { position: relative; padding-left: 1.6rem; }
.prose li + li { margin-top: .6em; }
.prose li::before { content: ''; position: absolute; left: .2rem; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose blockquote { font: 400 1.9rem/1.25 var(--display); color: var(--ink); border-left: 2px solid var(--accent); padding-left: 1.4rem; font-style: italic; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { font: 400 .85rem/1.5 var(--sans); color: var(--ink-3); margin-top: .7rem; }
.prose-note {
  font: 400 .98rem/1.6 var(--sans); color: var(--ink-2);
  padding: 1.25rem 1.4rem; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface);
}
.prose-note strong { color: var(--ink); }

.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.5rem; }
.aside-card h2 { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.facts { display: grid; gap: .95rem; margin-bottom: 1.5rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding-bottom: .95rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); }
.facts dd { font-weight: 600; text-align: right; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { color: var(--accent); }
.share { margin-top: 1.5rem; }
.share-row { display: flex; gap: .45rem; }
.share-row a, .share-row button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s, background-color .2s, color .2s; }
.share-row a:hover, .share-row button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-row .icon { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .prose { max-width: none; }
}
@media (max-width: 560px) { .prose { font-size: 1.14rem; } }

.article-foot { width: min(1080px, 100% - 2 * var(--gutter)); margin: 3.5rem auto 0; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.pager a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: center; text-decoration: none; padding: .75rem; border-radius: var(--r); transition: background-color .2s; }
.pager a:hover { background: var(--bg-2); }
.pager .media { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
.pager small { display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .45rem; }
.pager strong { font: 400 1.2rem/1.15 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager .next { grid-column: 2; grid-template-columns: minmax(0, 1fr) 88px; text-align: right; }
.pager .next .media { order: 2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(12, 10, 8, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.drawer { margin: 0 0 0 auto; width: min(400px, 92vw); height: 100dvh; max-height: none; background: var(--bg); display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); padding: 0 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem .25rem; font: 400 1.7rem/1 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-label { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 2rem 0 .75rem; }
.drawer-dest { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.drawer-dest a { display: flex; gap: .65rem; align-items: center; padding: .4rem; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.drawer-dest a:hover { background: var(--bg-2); }
.drawer-dest img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }

.search { margin: 9vh auto auto; width: min(680px, 92vw); max-height: 80vh; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.search[open] { display: flex; flex-direction: column; animation: pop-in .3s var(--ease); }
@keyframes pop-in { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.search-field { display: flex; align-items: center; gap: .75rem; padding: 0 1.1rem; border-bottom: 1px solid var(--line); }
.search-field > .icon { width: 22px; height: 22px; color: var(--ink-3); }
.search-field input { flex: 1; height: 68px; border: 0; background: none; font: 400 1.2rem/1 var(--sans); color: var(--ink); outline: none; }
.search-results { overflow-y: auto; padding: .6rem; }
.search-group { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: .9rem .6rem .5rem; }
.search-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .85rem; align-items: center; width: 100%; padding: .5rem .6rem; border-radius: 12px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.search-item:hover, .search-item:focus-visible { background: var(--bg-2); outline: none; }
.search-item img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.search-item strong { display: block; font: 500 .94rem/1.3 var(--sans); }
.search-item span { font-size: .78rem; color: var(--ink-3); }
.search-foot { padding: .85rem 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; }
.search-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.search-empty { padding: 2rem 1rem; text-align: center; color: var(--ink-3); font-size: .92rem; }

.video-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #fff; }
.video-modal::backdrop { background: rgba(8, 7, 6, .9); }
.video-modal[open] { display: grid; place-items: center; animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; } }
.vm-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; }
.vm-frame { background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vm-frame.is-portrait { height: min(80dvh, 820px); aspect-ratio: 9 / 16; max-width: 92vw; }
.vm-frame.is-landscape { width: min(1200px, 94vw); aspect-ratio: 16 / 9; max-height: 80dvh; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-caption { display: flex; align-items: center; gap: 1rem; max-width: min(1200px, 94vw); font-size: .9rem; }
.vm-caption strong { font-weight: 600; }
.vm-caption a { color: #fff; opacity: .75; white-space: nowrap; }
.vm-close { position: fixed; top: 1rem; right: 1rem; color: #fff; background: rgba(255,255,255,.1); }
.vm-close:hover { background: rgba(255,255,255,.22); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: .88rem; padding: .8rem 1.2rem; border-radius: 999px; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
