@charset "UTF-8";

/* ============================================================
   MAX — design system
   ============================================================ */
:root {
  --ink: #060708;
  --ink-2: #0a0c0f;
  --panel: #0e1013;
  --panel-2: #13161b;
  --line: rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.055);
  --text: #f3f1ea;
  --muted: #9198a1;
  --dim: #666c75;
  --accent: #d8ff5c;
  --accent-soft: rgba(216,255,92,.14);
  --mint: #5eead4;
  --indigo: #7c8cff;

  --sans: "Inter", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient light + grain */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 40% at 18% 6%, rgba(216,255,92,.10), transparent 62%),
    radial-gradient(46% 38% at 86% 2%, rgba(124,140,255,.13), transparent 60%),
    radial-gradient(52% 44% at 70% 74%, rgba(94,234,212,.07), transparent 64%);
  filter: blur(10px);
  animation: drift 26s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #0a0c0f; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

/* ============================================================
   nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6,7,8,.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav-logo {
  color: var(--text);
  font-weight: 600;
  letter-spacing: .3em;
  text-decoration: none;
  font-size: 11.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  position: relative;
  color: var(--dim);
  text-decoration: none;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-status { display: inline-flex; align-items: center; gap: 9px; color: var(--dim); }
.nav-status i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(216,255,92,.8);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  box-shadow: 0 0 12px rgba(216,255,92,.55);
}

/* ============================================================
   hero
   ============================================================ */
.hero {
  padding: clamp(84px, 12vw, 150px) 0 clamp(28px, 4vw, 48px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
}
h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(64px, 15vw, 196px);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .16em;
}
h1 .solid {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #b9b6ab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 .ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243,241,234,.34);
}
.tagline {
  margin: 34px 0 0;
  max-width: 44ch;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.95;
  color: var(--muted);
  font-weight: 400;
}
.tagline b { color: var(--text); font-weight: 500; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 38px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.hero-meta span:first-child::before { background: var(--accent); }
.hero-meta b { color: var(--muted); font-weight: 500; }

.page-head { padding: clamp(64px, 9vw, 110px) 0 0; }
.page-head h1 {
  font-size: clamp(48px, 9vw, 108px);
  line-height: .92;
}
.page-head .tagline { margin-top: 22px; }

/* hairline divider (replaces caution tape) */
.caution {
  height: 1px;
  margin: clamp(40px, 6vw, 72px) 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  border: 0;
}

/* ============================================================
   section head
   ============================================================ */
.sec-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(48px, 7vw, 76px) 0 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}
.sec-head b {
  color: var(--text);
  font-weight: 500;
  letter-spacing: .28em;
}
.sec-head .num { color: var(--accent); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line-soft); }
.sec-head:first-of-type { margin-top: 40px; }

/* ============================================================
   category cards
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 288px;
  padding: 34px 34px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 55%),
    var(--panel);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.cat .thumb {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.cat .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.05) brightness(.75);
}
.cat .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,8,.35) 0%, rgba(6,7,8,.9) 78%),
    linear-gradient(90deg, rgba(6,7,8,.75), transparent 70%);
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 30%), rgba(216,255,92,.11), transparent 62%);
  transition: opacity .4s;
}
.cat:hover {
  transform: translateY(-4px);
  border-color: rgba(216,255,92,.28);
  box-shadow: var(--shadow);
}
.cat:hover::before { opacity: 1; }
.cat:hover .thumb { opacity: 1; transform: scale(1); }

.cat .idx {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--dim);
}
.cat .idx b { color: var(--accent); font-weight: 500; }
.cat .en {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat h2 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
}
.cat p {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 400;
}
.cat .meta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.cat .meta .go {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s, gap .3s var(--ease);
}
.cat:hover .meta .go { color: var(--accent); gap: 12px; }

/* ============================================================
   latest list
   ============================================================ */
.latest {
  border-top: 1px solid var(--line-soft);
}
.latest-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--text);
  transition: background .3s, padding .3s var(--ease);
}
.latest-item:hover { background: rgba(255,255,255,.022); padding-left: 16px; }
.latest-item time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--dim);
}
.latest-item .t { font-size: 16px; letter-spacing: -.01em; }
.latest-item .c {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.latest-item:hover .c { color: var(--accent); }

/* ============================================================
   post / player
   ============================================================ */
.post {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}
.post-head .id { color: var(--accent); }
.post-head .rec { display: inline-flex; align-items: center; gap: 8px; color: #ff8a80; }
.post-head .rec i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ff6b5e;
  box-shadow: 0 0 10px rgba(255,107,94,.8);
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000 center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,7,8,.1), rgba(6,7,8,.86));
  transition: opacity .4s;
}
.player .play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 88px);
  height: clamp(64px, 8vw, 88px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(6,7,8,.35);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease), background .4s, border-color .4s, color .4s;
}
.player:hover .play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0c0f;
}
.player .play svg { margin-left: 3px; }
.player:hover .scrim { opacity: .78; }
.player .caption {
  position: absolute;
  left: 26px; right: 26px; bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.player .caption .t {
  font-family: var(--sans);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
  color: #fff;
  line-height: 1.3;
  max-width: 34ch;
}
.player.loaded .scrim, .player.loaded .play, .player.loaded .caption { display: none; }

.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
}
.spec div {
  padding: 16px 24px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--mono);
}
.spec div:last-child { border-right: 0; }
.spec dt {
  margin: 0 0 7px;
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.spec dd { margin: 0; font-size: 12.5px; letter-spacing: .04em; color: var(--text); }
.spec dd a { color: var(--accent); text-decoration: none; }
.spec dd a:hover { text-decoration: underline; }

.post-body { padding: 28px 32px 32px; border-top: 1px solid var(--line-soft); }
.post-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 400;
}
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--text); font-weight: 500; }

/* ============================================================
   transcript
   ============================================================ */
.tx {
  border-top: 1px solid var(--line-soft);
  margin: 24px -32px -32px;
}
.tx-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.tx-bar .label { color: var(--text); letter-spacing: .24em; }
.tx-langs { display: flex; gap: 6px; margin-left: auto; }
.tx-langs button, .tx-toggle {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.tx-langs button:hover, .tx-toggle:hover { color: var(--accent); border-color: rgba(216,255,92,.45); }
.tx-langs button[aria-pressed="true"] {
  color: #0a0c0f;
  background: var(--accent);
  border-color: var(--accent);
}
.tx-doc-wrap { display: none; border-top: 1px solid var(--line-soft); }
.tx.tx-open .tx-doc-wrap { display: block; }

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-soft);
}
.chapters a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 11px;
  max-width: 100%;
  transition: color .25s, border-color .25s, background .25s;
}
.chapters a:hover {
  color: var(--accent);
  border-color: rgba(216,255,92,.4);
  background: rgba(216,255,92,.05);
}

.tx-doc {
  position: relative;
  max-height: 62vh;
  overflow-y: auto;
  padding: 30px 32px 40px;
  font-size: 15px;
  line-height: 1.95;
  color: #b6b3a9;
  font-weight: 400;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tx-doc::-webkit-scrollbar { width: 8px; }
.tx-doc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.tx-doc h1 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 20px;
  display: block;
  text-transform: none;
  font-weight: 600;
  -webkit-text-fill-color: currentColor;
  background: none;
}
.tx-doc h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 38px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.tx-doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.tx-doc h3 { font-size: 16px; color: var(--text); margin: 24px 0 8px; font-weight: 500; }
.tx-doc p { margin: 0 0 14px; }
.tx-doc ul, .tx-doc ol { margin: 0 0 16px; padding-left: 22px; }
.tx-doc li { margin-bottom: 6px; }
.tx-doc strong { color: var(--text); font-weight: 500; }
.tx-doc a { color: var(--accent); }
.tx-doc hr { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }
.tx-doc code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 6px;
}
.tx-loading {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--dim);
  padding: 26px 32px;
}

/* ============================================================
   gallery
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.shot {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel);
  aspect-ratio: 4 / 3;
}
.shot:nth-child(1), .shot:nth-child(6) { grid-column: span 3; aspect-ratio: 3 / 2; }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transition: transform .8s var(--ease), filter .4s;
}
.shot:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.06); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(6,7,8,.9));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.shot figcaption span { color: rgba(255,255,255,.45); }

/* ============================================================
   notes
   ============================================================ */
.notes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.note {
  padding: 26px 8px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s, padding .3s var(--ease);
}
.note:hover { background: rgba(255,255,255,.02); padding-left: 16px; padding-right: 16px; }
.note time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--dim);
  padding-top: 5px;
}
.note h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.015em; font-weight: 500; }
.note p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--muted); font-weight: 400; }
.note .tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(216,255,92,.28);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ============================================================
   link cards
   ============================================================ */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.link-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216,255,92,.28);
  background: linear-gradient(165deg, rgba(216,255,92,.07), rgba(255,255,255,.012));
}
.link-card .src {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.link-card h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 500; }
.link-card p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); font-weight: 400; flex: 1; }
.link-card .arrow { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--dim); transition: color .25s; }
.link-card:hover .arrow { color: var(--accent); }

/* ============================================================
   back / footer
   ============================================================ */
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .25s, gap .25s var(--ease);
}
.back:hover { color: var(--accent); gap: 14px; }

footer {
  margin-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
footer a { text-decoration: none; color: var(--dim); transition: color .25s; }
footer a:hover { color: var(--accent); }
footer .sig { color: var(--muted); }

/* ============================================================
   motion
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .shot { grid-column: span 2; }
  .shot:nth-child(1), .shot:nth-child(6) { grid-column: span 4; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .nav-status { display: none; }
  .nav-links {
    display: flex;
    gap: 18px;
    margin-left: auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat { min-height: 248px; padding: 28px 24px 22px; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec div:nth-child(2) { border-right: 0; }
  .spec div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .player .caption { flex-direction: column; align-items: flex-start; left: 18px; right: 18px; bottom: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot, .shot:nth-child(1), .shot:nth-child(6) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .note { grid-template-columns: 1fr; gap: 10px; }
  .latest-item { grid-template-columns: 92px 1fr; gap: 14px; }
  .latest-item .c { display: none; }
  .tx-langs { margin-left: 0; }
  .tx-doc { padding: 22px 20px 30px; }
  .chapters { padding: 16px 20px; }
  .tx-bar { padding: 14px 20px; }
  .tx { margin: 22px -20px -24px; }
  .post-body { padding: 22px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .nav-status i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cat, .cat .thumb, .shot img, .link-card { transition: none; }
}

/* ============================================================
   homepage feed: filters + cards
   ============================================================ */
.hero--compact { padding: clamp(44px, 7vw, 78px) 0 0; }
.hero--compact h1 { font-size: clamp(52px, 10vw, 132px); }
.hero--compact .tagline { margin-top: 24px; max-width: 48ch; }
.hero--compact .hero-meta { margin-top: 26px; }

.filters {
  position: sticky;
  top: 66px;
  z-index: 15;
  margin-top: clamp(30px, 5vw, 52px);
  background: rgba(6,7,8,.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-inner::-webkit-scrollbar { display: none; }
.filters button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.filters button:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.filters button[aria-pressed="true"] {
  color: #0a0c0f;
  background: var(--accent);
  border-color: var(--accent);
}
.filters button b {
  font-weight: 500;
  font-size: 9.5px;
  opacity: .55;
}
.filters .filters-end {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  padding-left: 14px;
}
.filters .filters-end:hover { color: var(--accent); }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 4vw, 36px) 0 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
}
[data-cat="train"] { --cat: var(--accent); }
[data-cat="ski"] { --cat: var(--mint); }
[data-cat="life"] { --cat: var(--indigo); }
[data-cat="english"] { --cat: #f0b86e; }

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--cat, var(--accent));
  opacity: 0;
  transition: opacity .35s;
}
.card:hover::after { opacity: .16; box-shadow: inset 0 0 0 1px var(--cat, var(--accent)); }

.card-video { grid-column: span 2; }
.card-video .player { border-radius: 0; }
.card-video .card-title { font-size: clamp(20px, 2.4vw, 27px); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.card-meta .tag { color: var(--cat, var(--accent)); }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.015em;
  font-weight: 500;
}
.card-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 400;
}
.card-more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .25s;
}
.card:hover .card-more { color: var(--cat, var(--accent)); }

.card-photo { padding: 0; }
.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.85) contrast(1.04);
  transition: transform .8s var(--ease), filter .4s;
}
.card-photo:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.06); }
.card-photo .card-body { padding: 16px 18px 18px; gap: 0; }
.card-photo .card-title { font-size: 14.5px; }

.card-note { background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.008)); }
.card-note .card-title { font-size: 17px; }

.is-hidden { display: none; }
.feed-grid.animating .card:not(.is-hidden) {
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.feed-empty {
  display: none;
  padding: 60px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.feed-empty.show { display: block; }

@media (max-width: 1000px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-video { grid-column: span 2; }
}
@media (max-width: 720px) {
  .hero--compact h1 { font-size: clamp(48px, 14vw, 76px); }
  .filters { top: 66px; }
  .filters-inner { height: 54px; }
  .filters .filters-end { display: none; }
  .feed-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-video { grid-column: span 1; }
  .card-video .card-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-grid.animating .card:not(.is-hidden) { animation: none; }
  .card, .card-photo img { transition: none; }
}

/* ============================================================
   homepage flourish
   ============================================================ */
.nav-inner--minimal { justify-content: space-between; }
.nav-inner--minimal .nav-status { margin-left: auto; }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: -120px;
  width: min(680px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(216,255,92,.22),
    rgba(94,234,212,.15),
    rgba(124,140,255,.26),
    rgba(216,255,92,.22));
  filter: blur(90px);
  opacity: .5;
  animation: spin 42s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero--compact h1 .solid {
  background: linear-gradient(100deg, #ffffff 0%, #cfccc2 36%, #ffffff 50%, #c6c3b9 66%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 10s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ticker {
  margin-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 14px 38px 14px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.tk-group span { display: inline-flex; align-items: center; gap: 38px; }
.tk-group span::after {
  content: "◆";
  font-size: 5px;
  color: var(--accent);
  opacity: .55;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.filters { margin-top: 0; }
.filters button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--mint));
  border-color: transparent;
  color: #08090a;
  box-shadow: 0 8px 24px rgba(216,255,92,.22);
}

.card {
  transform:
    perspective(1100px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease-out, border-color .35s, box-shadow .45s;
}
.card:hover {
  --ty: -4px;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 26px 54px rgba(0,0,0,.45);
}
.card-video .player,
.card-body { transform: translateZ(1px); }

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero--compact h1 .solid { animation: none; }
  .ticker-track { animation: none; }
  .card { transform: none; }
}

/* ============================================================
   seaside backdrop + light effects
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #060708 url("../assets/bg-coast.jpg") center / cover no-repeat;
  opacity: .62;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(6,7,8,.28), transparent 72%),
    linear-gradient(180deg, rgba(6,7,8,.48) 0%, rgba(6,7,8,.76) 42%, rgba(6,7,8,.94) 100%);
}

.nav {
  box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 16px 44px rgba(0,0,0,.34);
}
.filters { box-shadow: 0 14px 34px rgba(0,0,0,.3); }

/* cursor light */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(circle, rgba(216,255,92,.11), rgba(94,234,212,.05) 42%, transparent 70%);
  mix-blend-mode: screen;
  transition: opacity .35s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* card light sweep */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(255,255,255,.06) 44%,
    rgba(255,255,255,.16) 50%,
    rgba(255,255,255,.06) 56%,
    transparent 68%);
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
  transition: opacity .4s ease, background-position 1s var(--ease);
}
.card:hover::before { opacity: 1; background-position: -30% 0; }

/* hero light beam */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  top: -30%;
  width: 60%;
  height: 150%;
  pointer-events: none;
  background: conic-gradient(from 210deg at 68% 32%,
    transparent 0deg,
    rgba(216,255,92,.07) 16deg,
    rgba(255,255,255,.05) 26deg,
    transparent 44deg);
  filter: blur(18px);
  opacity: .8;
}

@media (max-width: 720px) {
  .bg { opacity: .55; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card::before { transition: none; }
  .cursor-glow { display: none; }
}
