/* ===================================================
   ONELEG PORTFOLIO — styles.css
   =================================================== */

/* Same display font as the home page */
@font-face {
  font-family: 'AfterDis';
  src: url('../css/fonts/after_disaster-webfont.woff2') format('woff2'),
       url('../css/fonts/after_disaster-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #0d0d0f;
  --surface:    #161618;
  --surface-2:  #1e1e21;
  --border:     #2a2a2e;
  /* gold + green sampled from the home page's button images */
  --accent:       #ddb334;
  --accent-hover: #c49b22;
  --accent-dim:   rgba(221, 179, 52, 0.15);
  --accent-ink:   #1a1508; /* text/icons sitting on a gold fill */
  --green:        #518d38;
  --text:       #e8e8ea;
  --text-muted: #888;
  --radius:     12px;
  --font:       'Inter', system-ui, sans-serif;
  --font-display: 'AfterDis', 'Inter', system-ui, sans-serif;
  --display-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  /* same dotted grid texture the home page lays over its video */
  background: url('../img/grid.png'), var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

/* ===================================================
   NAVBAR
   =================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-shadow: var(--display-shadow);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   LANDING (intro + 2x2 work grid, all above the fold)
   =================================================== */

.landing {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(64px + 1.25rem) 1.5rem 1.5rem;
  display: flex;
  /* static grey backdrop: keeps focus on the moving tile previews */
  background:
    url('../img/grid.png'),
    radial-gradient(ellipse 90% 70% at 50% 0%, #26262a 0%, #18181b 55%, var(--bg) 100%);
}

.landing__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.intro__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: var(--display-shadow);
}

.hero__alias {
  color: var(--accent);
}

.intro__tagline {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: #c8c8cc; /* lighter than --text-muted to read over the video */
  margin-top: 0.4rem;
  text-shadow: var(--display-shadow);
}

.dot {
  color: var(--accent);
  margin: 0 0.3rem;
}

/* ===== 2x2 TILE GRID ===== */

.tiles {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 560px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.3s, filter 0.3s;
}

.tile:hover,
.tile:focus-within {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.6s;
}

.tile:hover .tile__bg {
  opacity: 0.75;
  transform: scale(1.03);
}

/* readable gradient under the text */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 15, 0.96) 0%,
    rgba(13, 13, 15, 0.7) 45%,
    rgba(13, 13, 15, 0.15) 100%
  );
  pointer-events: none;
}

.tile__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.4rem 1.6rem;
  /* the whole tile is clickable through .tile__open's overlay,
     interactive children opt back in with z-index */
}

.tile__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: var(--display-shadow);
}

.tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0.15rem 0 0.6rem;
  text-shadow: var(--display-shadow);
}

.tile__stats {
  list-style: none;
  font-size: 0.875rem;
  color: #c8c8cc;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.tile__stats strong {
  color: var(--text);
  font-weight: 700;
}

.tile__stats .dot {
  margin: 0 0.15rem;
}

.tile__open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* stretch the link over the whole tile */
.tile__open::before {
  content: '';
  position: absolute;
  inset: -100vh -100vw; /* clipped by .tile's overflow */
  z-index: 1;
}

.tile__open span {
  transition: transform 0.2s;
}

.tile__open:hover span {
  transform: translateX(4px);
}

.tile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* when a tile has two links, show both as pills */
.tile__links .tile__open {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(13, 13, 15, 0.55);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tile__links .tile__open:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* only the first link stretches over the tile; the extra one sits above it */
.tile__open--extra {
  position: relative;
  z-index: 3;
}

.tile__open--extra::before {
  content: none;
}

.tile__open--extra:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tile__open:focus-visible {
  outline: none;
}

.tile:has(.tile__open:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* voice samples sit above the stretched link so they stay playable */
.tile__samples {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.audio-player--mini {
  padding: 0.45rem 0.6rem;
  gap: 0.6rem;
}

.audio-player--mini .audio-player__btn {
  width: 28px;
  height: 28px;
}

/* thumbnail tile: 2x2 collage of the first thumbnails */
.tile__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.6s;
}

.tile:hover .tile__collage {
  opacity: 0.8;
  transform: scale(1.03);
}

.tile__collage > span {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.025) 14px 28px),
    var(--surface-2);
}

.tile__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================
   DETAIL PANELS (native <dialog>)
   =================================================== */

.panel {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 2rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel::backdrop {
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel[open] .panel__box {
  animation: panel-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

body:has(.panel[open]) {
  overflow: hidden;
}

.panel__box.section {
  position: relative;
  background: url('../img/grid.png'), var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.panel__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -1.5rem -1.5rem 0 1rem;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.panel__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ===== LONG-FORM / SHORT-FORM TABS ===== */

.tabs {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1.75rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tabs__tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tabs__tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.tabs__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabs__count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
}

.tabs__tab[aria-selected="true"] .tabs__count {
  background: rgba(26, 21, 8, 0.18);
  color: var(--accent-ink);
}

.tab-panel__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.tab-panel .carousel {
  margin-top: 1.25rem;
}

#shorts .shorts-strip {
  margin-top: 1.25rem;
}

@media (max-width: 480px) {
  .tabs {
    display: flex;
  }

  .tabs__tab {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ===== THUMBNAIL GRID ===== */

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.thumb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.thumb:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  transform: translateY(-2px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.thumb--ghost {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-style: dashed;
}

.thumb--ghost:hover {
  border-color: var(--accent);
  transform: none;
}

.thumb--ghost:hover .card__ghost-icon {
  color: var(--accent);
}

/* ===================================================
   BUTTONS
   =================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

/* textured green button from the home page, same 60% -> 100% hover fade */
.btn--primary {
  position: relative;
  isolation: isolate;
  background: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  padding: 0.75rem 2.25rem;
  border-radius: 0;
  text-shadow: var(--display-shadow);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/forums.png') center / 100% 100% no-repeat;
  opacity: 0.6;
  transition: opacity 0.4s;
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* ===================================================
   SECTIONS
   =================================================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section__icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-shadow: var(--display-shadow);
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.3rem;
}

.section__actions {
  margin-top: 1.25rem;
}

/* ===================================================
   CAROUSEL
   =================================================== */

.carousel {
  position: relative;
  margin-top: 2.5rem;
  padding-bottom: 3rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.5rem));
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ===================================================
   CARDS
   =================================================== */

.card {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  position: relative;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.card__badge--complete {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
}

.card__watch-btn {
  margin-bottom: 1.25rem;
}

.card__badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
  text-shadow: var(--display-shadow);
}

.card__meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.9rem;
  min-height: 1.2em;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  min-height: 1em;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.card__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card__media-placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Background video card */
.card--bg-video {
  overflow: hidden;
  padding: 0;
  border-color: transparent;
}

.card__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}

.card--bg-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 15, 0.95) 0%,
    rgba(13, 13, 15, 0.6) 50%,
    rgba(13, 13, 15, 0.35) 100%
  );
  z-index: 1;
}

.card--bg-video .card__content {
  position: relative;
  z-index: 2;
  padding: 2rem 2.25rem;
}

.card--bg-video:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.card--bg-video .tag {
  background: rgba(30, 30, 33, 0.75);
  backdrop-filter: blur(4px);
}

/* Audio players */
.card__audio-samples {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(30, 30, 33, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s;
}

.audio-player:hover {
  border-color: rgba(221, 179, 52, 0.4);
}

.audio-player__btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: var(--accent-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.audio-player__btn:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

.audio-player__track {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.audio-player__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-player__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.audio-player__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.audio-player__time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.8em;
  text-align: right;
}

/* Ghost card */
.card--ghost {
  background: transparent;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  cursor: default;
}

.card--ghost:hover {
  border-color: var(--accent);
}

.card__ghost-inner {
  text-align: center;
  color: var(--text-muted);
}

.card__ghost-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.6rem;
  color: var(--border);
  line-height: 1;
  transition: color 0.2s;
}

.card--ghost:hover .card__ghost-icon {
  color: var(--accent);
}

/* Video cards */
.card--video {
  padding: 1.5rem 1.75rem;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  margin-top: 0.75rem;
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

.video-placeholder small {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  opacity: 0.6;
}

/* ===================================================
   HIRE ME + BEE
   =================================================== */

.hire {
  position: relative;
  flex-shrink: 0;
}

/* The home page's bee drifts in from the top right and settles beside the button.
   The bee only fills the middle ~66% of the square gif, hence the negative margin. */
.hire__bee {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-right: -12px;
  pointer-events: none;
  animation:
    bee-fly-in 3.2s cubic-bezier(0.25, 0.6, 0.3, 1) 1s both,
    bee-hover 2.6s ease-in-out 4.2s infinite;
}

/* replay after a card closes: flies in straight away */
.hire__bee--replay {
  animation:
    bee-fly-in 3.2s cubic-bezier(0.25, 0.6, 0.3, 1) both,
    bee-hover 2.6s ease-in-out 3.2s infinite;
}

@keyframes bee-fly-in {
  0%   { opacity: 0; transform: translate(260px, -220px) rotate(-8deg); }
  15%  { opacity: 1; }
  45%  { transform: translate(150px, -70px) rotate(6deg); }
  75%  { transform: translate(30px, -26px) rotate(-3deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@keyframes bee-hover {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hire__bee { animation: none; }
}

@media (max-width: 480px) {
  .hire__bee {
    width: 64px;
    height: 64px;
    margin-top: -32px;
    margin-right: -10px;
  }
}

/* ===================================================
   SHORT-FORM SUB-SECTION
   =================================================== */

.shorts-subsection {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.shorts-subsection__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-shadow: var(--display-shadow);
}

.shorts-subsection__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  margin-bottom: 1.5rem;
}

.shorts-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.shorts-strip::-webkit-scrollbar {
  height: 6px;
}

.shorts-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.short-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.short-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.short-card__wrapper {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--surface-2);
}

.short-card__wrapper iframe,
.short-card__wrapper video,
.short-card__wrapper blockquote {
  width: 100%;
  height: 100%;
}

.short-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}

.short-card__caption {
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.short-card--ghost {
  flex: 0 0 130px;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  cursor: default;
}

.short-card--ghost:hover {
  border-color: var(--accent);
}

.short-card--ghost .card__ghost-icon {
  font-size: 1.8rem;
}

/* ===================================================
   FOOTER
   =================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}

.footer__inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-shadow: var(--display-shadow);
}

.footer__sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__links.open {
    max-height: 320px;
  }

  .nav__links li:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .nav__link {
    display: block;
    padding: 1rem 1.5rem;
  }

  .carousel-btn--prev { left: 0; }
  .carousel-btn--next { right: 0; }

  .section {
    padding: 4rem 1rem;
  }

  .landing {
    padding: calc(64px + 1rem) 1rem 1.5rem;
  }

  /* stack tiles; Video + Thumbnails stay first */
  .tiles {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(280px, auto);
    min-height: 0;
  }

  .panel {
    padding: 0.75rem;
  }

  .panel__box.section {
    padding: 2.25rem 1.25rem 1.75rem;
  }

  .panel__close {
    margin: -1.25rem -0.5rem 0 0.75rem;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tile__samples {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}
