:root {
  --viewport-offset-bottom: 0px;
  --footer-viewport-gap: 28px;
}

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

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-image: url('Background.png');
  /* Path to your image */
  background-color: #000000;
  background-size: cover;
  /* Cover the entire viewport */
  background-position: center;
  /* Center the image in the viewport */
  background-repeat: no-repeat;
  /* Do not repeat the image */
  color: #000000;
  overflow-x: hidden;
}

body.dark-page {
  background-color: #000;
  background-image: none;
  color: #D2F059;
}

body.dark-page .dark-page__main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  box-sizing: border-box;
}

.dark-page__content {
  max-width: 760px;
  width: min(760px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.dark-page__content h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.08em;
}

.dark-page__content p {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
}

body {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + var(--footer-viewport-gap, 0px) + 16px);
}

canvas {
  display: block;
}

.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 100vh;
  padding: 180px 10vw 120px;
  box-sizing: border-box;
}

.about-canvas-wrapper {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

.about-threejs {
  width: min(520px, 45vw);
  height: min(520px, 60vh);
  border: none;
  border-radius: 0;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.about-content {
  flex: 1 1 0;
  max-width: 500px;
  color: #D2F059;
}

.about-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.about-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    text-align: left;
    padding: 160px 2rem 100px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-threejs {
    width: min(420px, 75vw);
    height: min(420px, 55vh);
  }
}

header {
  position: fixed;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  top: 10px;
  background: transparent;
  z-index: 1000;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.hero-model {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.hero-model__canvas {
  width: 100%;
  height: 100%;
  max-height: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  background: none;
  overflow: hidden;
}

.hero-model__canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.interaction-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #D2F059;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 1004;
}

.interaction-hint.is-visible {
  opacity: 1;
}

.interaction-hint.is-fading {
  opacity: 0;
}


.lighting-launcher {
  position: fixed;
  left: 2.5%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 58px + 5vh);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: min(360px, 70vw);
  z-index: 1003;
}

.lighting-toggle {
  padding: 10px 18px;
  border-radius: 0;
  border: none;
  background: #D2F059;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(6px);
}

.lighting-launcher .lighting-toggle {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
}

.lighting-toggle:hover,
.lighting-toggle:focus-visible {
  background: #000;
  color: #D2F059;
  outline: none;
}

.pose-toggle {
  position: fixed;
  right: 2.5%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 58px + 5vh);
  z-index: 1003;
  padding: 10px 18px;
  border: 0;
  background: #D2F059;
  color: #000;
  font: 0.95rem 'Inter', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.pose-toggle:hover,
.pose-toggle:focus-visible {
  background: #000;
  color: #D2F059;
  outline: none;
}

.pose-controls {
  position: fixed;
  top: 50%;
  right: 2.5%;
  z-index: 1004;
  width: min(330px, 90vw);
  padding: 20px;
  transform: translateY(-50%);
  background: linear-gradient(140deg, rgba(10, 14, 6, 0.88), rgba(58, 78, 32, 0.62));
  color: #D2F059;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.pose-controls[hidden] {
  display: none;
}

.pose-controls__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pose-controls__header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.pose-controls__close,
.pose-controls__reset {
  border: 0;
  color: #D2F059;
  background: rgba(210, 240, 89, 0.12);
  font: inherit;
  cursor: pointer;
}

.pose-controls__close {
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
}

.pose-controls__bone,
.pose-controls__axis {
  display: grid;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.pose-controls__bone {
  margin-bottom: 16px;
}

.pose-controls select {
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(210, 240, 89, 0.55);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #D2F059;
  font: inherit;
}

.pose-controls__axis {
  grid-template-columns: 16px 1fr 42px;
  margin: 10px 0;
}

.pose-controls__axis input {
  accent-color: #D2F059;
}

.pose-controls__axis output {
  text-align: right;
}

.pose-controls__reset {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  letter-spacing: 0.06em;
}

.pose-controls__close:hover,
.pose-controls__close:focus-visible,
.pose-controls__reset:hover,
.pose-controls__reset:focus-visible {
  background: #D2F059;
  color: #000;
  outline: none;
}

.lighting-controls {
  position: fixed;
  top: 50%;
  left: 2.5%;
  transform: translate(-24px, -50%);
  width: min(480px, 90vw);
  background: linear-gradient(140deg, rgba(10, 14, 6, 0.72), rgba(58, 78, 32, 0.28));
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  color: #D2F059;
  max-height: min(75vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1003;
}

.lighting-controls__content {
  flex: 1 1 auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Lighting Controls */
.lighting-controls__content::-webkit-scrollbar {
  width: 6px;
}

.lighting-controls__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.lighting-controls__content::-webkit-scrollbar-thumb {
  background: #D2F059;
  border-radius: 0;
}

.lighting-controls__content::-webkit-scrollbar-thumb:hover {
  background: #adc649;
}

.lighting-controls.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.lighting-controls__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.lighting-controls__header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.lighting-close {
  background: none;
  border: none;
  color: #D2F059;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.lighting-close:hover,
.lighting-close:focus-visible {
  background: rgba(210, 240, 89, 0.15);
  color: #fff;
  outline: none;
}

.lighting-controls__description {
  margin: 0 0 18px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(210, 240, 89, 0.8);
}

.lighting-description {
  margin: 0;
  max-width: min(360px, 70vw);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #D2F059;
  text-align: left;
}

.lighting-description:empty {
  display: none;
}

.lighting-controls__group {
  margin-bottom: 18px;
}

.lighting-controls__group:last-of-type {
  margin-bottom: 0;
}

.lighting-controls__group h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lighting-slider {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.lighting-slider:last-of-type {
  margin-bottom: 0;
}

.lighting-color {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.lighting-color input[type="color"] {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 0;
  background: rgba(210, 240, 89, 0.1);
  cursor: pointer;
  padding: 0;
}

.lighting-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 0;
  background: rgba(210, 240, 89, 0.3);
  outline: none;
}

.lighting-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #D2F059;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(210, 240, 89, 0.2);
}

.lighting-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #D2F059;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(210, 240, 89, 0.2);
}

.lighting-slider__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.lighting-panel-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
  }

  .lighting-toggle {
    left: auto;
    bottom: auto;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .lighting-launcher {
    left: 2.5%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 58px + 5vh);
    max-width: min(320px, 82vw);
  }

  .lighting-controls {
    width: 95%;
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 24px);
    transform: translate(-50%, 20px);
    max-height: min(70vh, 420px);
  }

  .lighting-controls__content {
    padding: 20px;
  }

  .lighting-description {
    font-size: 0.82rem;
  }

  .lighting-controls.is-visible {
    transform: translate(-50%, 0);
  }

  .lighting-slider {
    grid-template-columns: 100px 1fr 44px;
    gap: 10px;
  }

  .lighting-color {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }
}

.logo {
  position: absolute;
  top: 10px;
  left: 0;
  width: 150px;
  /* Default size */
  height: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  display: flex;
  justify-content: flex-end;
}

nav li {
  display: inline;
  margin-right: 20px;
}

nav li:last-child {
  margin-right: 0;
}

nav a {
  text-decoration: none;
  color: #D2F059;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
}

nav a:hover {
  color: #aaa;
}


footer {
  position: fixed;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + var(--footer-viewport-gap, 0px) + 5vh);
  margin: 0;
  background: #D2F059;
  /* Match the original footer color */
  overflow: hidden;
  height: 20px;
  /* Match the original footer height */
  border: none;
  border-radius: 0;
  /* Rounded corners, adjust radius as needed */
  z-index: 900;
  box-sizing: border-box;
}

.project-launcher {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + var(--footer-viewport-gap, 0px) + 60px + 5vh);
  width: min(720px, 92vw);
  z-index: 950;
  pointer-events: none;
}

.project-launcher__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 22px 0;
  /* Horizontal padding moved to grid */
  border-radius: 0;
  background: #000000;
  border: none;
  box-shadow: none;
  pointer-events: auto;
}

.project-launcher__title {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d2f059;
  opacity: 0.8;
}

.project-launcher__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  padding: 0 clamp(18px, 4vw, 28px);
  /* Padding moved here */
}

.project-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 18px);
  border-radius: 0;
  background: #D2F059;
  color: #000;
  text-decoration: none;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
  overflow: visible;
}

.project-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 0;
  background: none;
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

.project-button__label {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* New Cinematic Previews */
#preview-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 92vw);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: none;
  border: none;
  background: transparent;
  box-sizing: border-box !important;
}

.project-preview-img.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-view-toggle {
  position: fixed;
  right: var(--project-view-toggle-right, clamp(18px, 3vw, 38px));
  top: 88px;
  z-index: 980;
  display: flex;
  align-items: center;
  border: 1px solid rgba(210, 240, 89, 0.55);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.project-view-toggle__button {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 9px 13px;
  background: transparent;
  color: #D2F059;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.project-view-toggle__button.is-active {
  background: #D2F059;
  color: #000;
}

body.portfolio-3d .project-launcher--grid {
  left: clamp(18px, 6vw, 84px);
  top: 50%;
  bottom: auto;
  width: min(560px, 88vw);
  transform: translateY(-50%);
}

body.portfolio-3d .project-launcher--grid .project-launcher__inner {
  padding: clamp(16px, 3vw, 22px);
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(5px);
}

body.portfolio-3d .project-launcher--grid .project-launcher__grid {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0;
}

body.portfolio-3d .project-launcher--grid .project-button {
  justify-content: flex-start;
  min-height: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(210, 240, 89, 0.2);
  background: transparent;
  box-shadow: none;
  color: #D2F059;
  text-align: left;
}

body.portfolio-3d .project-launcher--grid .project-button:last-child {
  border-bottom: 0;
}

body.portfolio-3d .project-launcher--grid .project-button::before {
  display: none;
}

body.portfolio-3d .project-launcher--grid .project-button__label {
  width: 100%;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {

  .project-button:hover,
  .project-button:focus-visible {
    background: #000;
    color: #D2F059;
    border-color: #D2F059;
    /* Removed transform to prevent centering trap for preview */
  }

  .project-button:hover::before,
  .project-button:focus-visible::before {
    opacity: 1;
  }

  body.portfolio-3d .project-launcher--grid .project-button:hover,
  body.portfolio-3d .project-launcher--grid .project-button:focus-visible {
    background: rgba(210, 240, 89, 0.08);
    color: #D2F059;
  }

}

@media (max-width: 900px) {
  .project-view-toggle {
    right: 18px;
    top: 78px;
  }

  .project-launcher {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + var(--footer-viewport-gap, 0px) + 80px + 5vh);
  }

  .project-launcher__inner {
    gap: 14px;
  }

  .project-launcher__grid {
    grid-template-columns: 1fr;
  }

  .project-button {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  body.portfolio-3d .project-launcher--grid {
    left: 16px;
    top: 52%;
    width: calc(100vw - 32px);
    max-width: 420px;
  }

  body.portfolio-3d .project-launcher--grid .project-button {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {

  .project-launcher__inner,
  .project-preview-img {
    width: min(420px, 94vw);
  }
}

/* ──────────────────────────────────────
   City Waypoint Markers
   ────────────────────────────────────── */

.city-waypoints {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 950;
}

.city-waypoint {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  will-change: transform, left, top, opacity;
}

/* ── Label (top) ── */
.city-waypoint__label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  white-space: nowrap;
  order: -1; /* label sits above the stem */
  margin-bottom: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 59, 59, 0.22);
  border-radius: 0;
  background: rgba(5, 5, 5, 0.58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.city-waypoint__number {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #D2F059;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 1px;
}

.city-waypoint__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #D2F059;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ── Vertical stem ── */
.city-waypoint__stem {
  display: block;
  width: 1.5px;
  height: 80px;
  background: linear-gradient(to bottom, #FF3B3B, rgba(255, 59, 59, 0.15));
  transition: height 0.35s ease;
}

/* ── Glowing dot (bottom) ── */
.city-waypoint__dot {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF3B3B;
  box-shadow:
    0 0 8px 2px rgba(255, 59, 59, 0.6),
    0 0 20px 4px rgba(255, 59, 59, 0.25);
  flex-shrink: 0;
  order: 1; /* dot sits below the stem */
}

/* Outer pulse ring */
.city-waypoint__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 59, 59, 0.5);
  transform: translate(-50%, -50%);
  animation: waypoint-pulse 2.4s ease-out infinite;
}

/* Inner bright core */
.city-waypoint__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7);
}

@keyframes waypoint-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* ── Hover state ── */

.city-waypoint:hover .city-waypoint__dot {
  box-shadow:
    0 0 14px 4px rgba(255, 59, 59, 0.8),
    0 0 36px 8px rgba(255, 59, 59, 0.35);
}

.city-waypoint:hover .city-waypoint__stem {
  height: 96px;
}

.city-waypoint:hover .city-waypoint__title {
  color: #D2F059;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .city-waypoint__stem {
    height: 50px;
  }

  .city-waypoint:hover .city-waypoint__stem {
    height: 60px;
  }

  .city-waypoint__title {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .city-waypoint__number {
    font-size: 0.8rem;
  }

  .city-waypoint__dot {
    width: 11px;
    height: 11px;
  }

  .city-waypoint__dot::before {
    width: 22px;
    height: 22px;
  }

  .city-waypoint__dot::after {
    width: 5px;
    height: 5px;
  }
}

/* Hide waypoints when mobile menu is open */
body.menu-open .city-waypoints {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

:root.is-instagram-webview {
  --footer-viewport-gap: 0px;
  --music-player-instagram-gap: clamp(16px, 4vw, 28px);
  --project-launcher-instagram-gap: clamp(28px, 5vw, 44px);
}

:root.is-instagram-webview body {
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}

:root.is-instagram-webview .lighting-launcher {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 48px + 5vh);
}

:root.is-instagram-webview .project-launcher {
  width: 95%;
}

body.menu-open footer {
  z-index: 0;
  pointer-events: none;
}

#footerCloseButton {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: #D2F059;
  color: black;
  border: none;
  border-radius: 0;
  padding: 0 12px;
  cursor: pointer;
}

#footerCloseButton:hover {
  background-color: #adc649;
  /* New background color on hover */
  /* You can also change other properties like color, border, etc., if needed */
}

.footer-content {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 45px 0 35px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  /* Align text vertically in the center */
  height: 100%;
  /* Fill the parent's height */
}

.footer-text {
  display: inline-block;
  line-height: 20px;
  /* Match the original compact line-height */
  position: relative;
  padding-left: 4px;
  color: black;
  /* Match scrolling text color used on other pages */
}

.footer-clock {
  background-color: #D2F059;
  /* Ensures matching background color */
  position: absolute;
  left: 0;
  /* Align all the way to the left edge of the footer */
  border: none;
  border-radius: 0;
  /* Rounded corners on the right side only */
  padding: 0 10px;
  /* Adjust padding as needed */
  z-index: 1002;
  /* Ensure it's above the scrolling text */
  color: black;
  /* Text color */
  font-family: 'Inter', sans-serif;
  /* Match font style */
  height: 20px;
  /* Match the height of the footer */
  line-height: 20px;
  /* Center the text vertically */
  width: auto;
  /* Adjust width as necessary */
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  padding: 12px 0 12px 12px;
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 3200;
  transition: transform 0.3s ease;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  touch-action: manipulation;
}

.hamburger-menu:active {
  transform: scale(0.96);
}

.line {
  width: 32px;
  height: 3px;
  background-color: #D2F059;
  margin: 0;
  border-radius: 0;
  transition: transform 0.35s ease, opacity 0.3s ease, background-color 0.35s ease;
  transform-origin: center;
}

body.menu-open .hamburger-menu .line {
  background-color: #000;
}

body.menu-open .hamburger-menu .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .hamburger-menu .line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}

body.menu-open .hamburger-menu .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.horizontal-gallery {
  display: flex;
  height: 100vh;
  /* Full viewport height */
  overflow-x: auto;
  /* Enable horizontal scrolling */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on touch devices */
  scroll-snap-type: none;
  /* Allow continuous wheel-driven movement */
  scroll-behavior: auto;
  z-index: 1;
  /* Lower than the header */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
  /* Allow native horizontal panning on touch devices */
}

.horizontal-gallery.is-dragging {
  cursor: grabbing;
}

.gallery-image {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100vh;
  /* Full viewport height */
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  /* Snap each slide to the viewport */
}

.gallery-image img {
  height: 100%;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  /* Keep aspect ratio while filling the height */
  -webkit-user-drag: none;
}

.portfolio-menu {
  margin-top: 100px;
  float: left;
  width: 33.33%;
  height: 100vh;
  /* Full viewport height */
  background: #cbcbcb;
  /* Gray background */
  overflow-y: auto;
  /* Enable vertical scrolling if needed */
  position: fixed;
  border-top-right-radius: 10px;
  /* 10px border radius on the top-right corner */
  border-bottom-right-radius: 10px;
  /* 10px border radius on the bottom-right corner */
  /* Add additional styling based on your preference */
}

.portfolio-tab {
  height: 100vh;
  background-color: red;
}

.portfolio-menu a {
  display: block;
  color: black;
  padding: 16px;
  text-decoration: none;
  border-bottom: none;
}

.portfolio-menu a:last-child {
  border-bottom: none;
  /* This removes the stroke from the last link */
}

.portfolio-menu a:hover {
  background: #D2F059;
  /* Adjust hover effect as desired */
}

.portfolio-gallery {
  margin-left: 33.33%;
  /* Offset by the width of the menu */
  width: 66.66%;
  height: 100vh;
  /* Full viewport height */
  overflow-y: auto;
  /* Enable vertical scrolling */
  background: #fff;
  /* Change as needed */
  /* Add additional styling based on your preference */
}

.portfolio-gallery img {
  width: 100%;
  display: block;
  /* Adjust image styling as needed */
}

.portfolio-menu a.active {
  background-color: #D2F059;
  /* Active link background color */
  color: #000000;
  /* Active link text color */
}

@media (max-width: 768px) {

  /* Example for tablets */
  .logo img {
    width: 120px;
    /* Smaller size for smaller screens */
  }
}

@media (max-width: 480px) {

  /* Example for mobile phones */
  .logo img {
    width: 100px;
    /* Even smaller size for mobile screens */
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
    position: fixed;
    top: 10px;
    right: 2.5%;
    z-index: 3200;
  }

  body.menu-open .lighting-launcher,
  body.menu-open .lighting-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  nav ul {
    position: fixed;
    inset: 0;
    height: 100dvh;
    min-height: 100dvh;
    transform: translateY(100%);
    background: #D2F059;
    /* Solid green background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: calc(env(safe-area-inset-top, 0px) + 72px) 24px calc(env(safe-area-inset-bottom, 0px) + 40px);
    transition: transform 0.5s ease;
    z-index: 3000;
    pointer-events: none;
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }

  nav ul.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  nav li {
    display: block;
    margin: 0;
  }

  nav a {
    color: #000;
    padding: 10px 20px;
    display: block;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body.menu-scroll-lock {
    overflow: hidden;
    touch-action: none;
  }
}

.draggable-image {
  cursor: move;
}

/* For smaller screens */
@media (max-width: 600px) {
  .slide {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .portfolio-menu {
    width: 100%;
    height: auto;
    position: relative;
  }

  .portfolio-gallery {
    margin-left: 0;
    width: 100%;
  }
}



.music-player {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 110px);
  transform: translateX(-50%);
  width: min(720px, 92vw);
  padding: 6px;
  z-index: 1200;
  pointer-events: none;
}

.music-player__glass {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.75rem);
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(210, 240, 89, 0.08));
  border: none;
  border-radius: 0;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  pointer-events: auto;
  color: #0b0b15;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.music-player__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.music-player__title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D2F059;
}

.music-player__artist {
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #aaa;
}

.music-player__controls {
  --player-control-gap: clamp(0.6rem, 1.4vw, 1.05rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--player-control-gap);
  flex-wrap: nowrap;
}

.music-player__button {
  --player-control-size: clamp(40px, 5vw, 52px);
  flex: 0 0 var(--player-control-size);
  width: var(--player-control-size);
  aspect-ratio: 1 / 1;
  border-radius: 0;
  border: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  color: rgba(11, 11, 21, 0.78);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
}

.music-player__icon {
  width: clamp(18px, 2.6vw, 26px);
  height: clamp(18px, 2.6vw, 26px);
  display: block;
  fill: currentColor;
  transition: transform 0.2s ease;
  transform: translateY(0);
}

.music-player__icon--seek {
  width: clamp(20px, 3vw, 28px);
}

.music-player__button[data-action="play"] .music-player__icon {
  width: clamp(22px, 3.2vw, 30px);
  transform: translateX(1.5px);
}

.music-player__button[data-action="pause"] .music-player__icon {
  width: clamp(20px, 2.8vw, 26px);
}

.music-player__button:hover,
.music-player__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  outline: none;
}

.music-player__button:active {
  transform: scale(0.96);
}

.music-player__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.music-player__time {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(11, 11, 21, 0.65);
  letter-spacing: 0.06em;
  min-width: 40px;
}

.music-player__bar {
  position: relative;
  height: 6px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.music-player__bar-fill {
  --progress: 0%;
  position: absolute;
  inset: 0;
  width: var(--progress);
  background: linear-gradient(90deg, rgba(210, 240, 89, 0.9), rgba(120, 180, 255, 0.9));
  transition: width 0.2s ease;
}

.music-player--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.music-player--disabled .music-player__glass {
  filter: grayscale(0.3);
}

audio#audioElement {
  display: none;
}

body.no-scroll-mobile {
  overflow: hidden;
}

body.menu-open .music-player {
  z-index: 200;
}

body.menu-open .music-player__glass {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .music-player__glass {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .music-player__meta {
    align-items: center;
  }

  .music-player__progress {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .music-player {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 100px);
    width: 95vw;
  }

  .music-player__button {
    --player-control-size: 48px;
  }
}

@media (max-width: 768px) {
  :root.is-instagram-webview .music-body .music-player {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--viewport-offset-bottom, 0px) + 100px);
    top: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 540px) {
  .music-player__controls {
    gap: 0.5rem;
  }

  .music-player__button {
    --player-control-size: 44px;
  }

  .music-player__glass {
    gap: 1rem;
  }
}

/* Experimental page */
body.experimental-full {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

#glb-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

#glb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  width: min(85vw, 1400px);
  max-height: 80vh;
}

@media (max-width: 900px) {
  #glb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #glb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    width: 84vw;
    max-height: 70vh;
  }

  .glb-item-label {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

.glb-item {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.glb-item:hover,
.glb-item:focus-visible {
  transform: scale(1.3);
  z-index: 5;
  outline: none;
}

.glb-item:hover model-viewer,
.glb-item:focus-visible model-viewer {
  filter: drop-shadow(0 0 18px rgba(210, 240, 89, 0.6));
}

.glb-item model-viewer {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: transparent;
  --poster-color: transparent;
  pointer-events: none;
  transition: filter 0.25s ease;
}

.glb-item-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #D2F059;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.glb-item:hover .glb-item-label,
.glb-item:focus-visible .glb-item-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Weekly favorites page */
body.weekly-body {
  min-height: 100%;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.84)),
    url('Background.png');
  background-attachment: fixed;
  color: #D2F059;
}

.weekly-main {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 150px 0 150px;
}

.weekly-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  min-height: 42vh;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(210, 240, 89, 0.24);
}

.weekly-kicker,
.weekly-now__label,
.weekly-pill,
.weekly-card__meta {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.weekly-hero h1 {
  max-width: 920px;
  margin: 12px 0 18px;
  color: #D2F059;
  font-size: clamp(3rem, 10vw, 8.8rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: 0;
}

.weekly-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(210, 240, 89, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.weekly-now {
  display: grid;
  gap: 9px;
  padding: 18px 0;
  border-top: 1px solid rgba(210, 240, 89, 0.5);
  border-bottom: 1px solid rgba(210, 240, 89, 0.5);
}

.weekly-now strong {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 200;
  line-height: 1.1;
}

.weekly-now span:last-child {
  color: rgba(210, 240, 89, 0.68);
  line-height: 1.45;
}

.weekly-controls {
  position: sticky;
  top: 82px;
  z-index: 800;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
}

.weekly-week-switcher,
.weekly-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.weekly-filter {
  justify-content: flex-end;
}

.weekly-week-switcher__button,
.weekly-filter__button,
.weekly-link,
.weekly-card__details a {
  appearance: none;
  border: 1px solid rgba(210, 240, 89, 0.42);
  border-radius: 0;
  background: transparent;
  color: #D2F059;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.weekly-week-switcher__button,
.weekly-filter__button {
  padding: 10px 12px;
}

.weekly-week-switcher__button.is-active,
.weekly-filter__button.is-active,
.weekly-week-switcher__button:hover,
.weekly-filter__button:hover,
.weekly-link:hover,
.weekly-card__details a:hover {
  border-color: #D2F059;
  background: #D2F059;
  color: #000;
}

.weekly-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin: 22px 0 30px;
  min-height: 430px;
}

.weekly-feature__media,
.weekly-feature__image,
.weekly-feature__video {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.weekly-feature__image img,
.weekly-feature__video img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), filter 0.55s ease;
}

.weekly-feature__image:hover img,
.weekly-feature__video:hover img {
  transform: scale(1.035);
  filter: saturate(1.2) contrast(1.08);
}

.weekly-feature__video {
  width: 100%;
  border: 0;
  color: #000;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
}

.weekly-feature__video span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 12px 14px;
  background: #D2F059;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.weekly-feature iframe {
  display: block;
  width: 100%;
  min-height: 430px;
  height: 100%;
  border: 0;
}

.weekly-feature__content {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(210, 240, 89, 0.08);
  border: 1px solid rgba(210, 240, 89, 0.18);
}

.weekly-pill {
  width: fit-content;
  margin-bottom: 16px;
  color: #000;
  background: #D2F059;
  padding: 8px 10px;
}

.weekly-feature__content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 200;
  line-height: 0.95;
}

.weekly-feature__creator {
  margin: 14px 0 20px;
  color: rgba(210, 240, 89, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weekly-feature__content p:not(.weekly-feature__creator) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.58;
}

.weekly-link {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 14px;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.weekly-card {
  min-width: 0;
  border: 1px solid rgba(210, 240, 89, 0.18);
  background: rgba(0, 0, 0, 0.52);
}

.weekly-card__button {
  display: grid;
  width: 100%;
  gap: 10px;
  padding: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #D2F059;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
}

.weekly-card__button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.weekly-card__button:hover img,
.weekly-card__button:focus-visible img {
  opacity: 1;
}

.weekly-card__button:focus-visible {
  outline: 1px solid #D2F059;
  outline-offset: 3px;
}

.weekly-card__meta,
.weekly-card__button strong,
.weekly-card__button span:not(.weekly-card__meta) {
  margin-inline: 14px;
}

.weekly-card__button strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 200;
  line-height: 1.15;
}

.weekly-card__button span:not(.weekly-card__meta) {
  color: rgba(210, 240, 89, 0.64);
  font-size: 0.88rem;
}

.weekly-card__details {
  padding: 0 14px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}

.weekly-card__details p {
  margin: 0 0 12px;
}

.weekly-card__details a {
  display: inline-flex;
  padding: 8px 10px;
}

.weekly-empty {
  margin: 0;
  padding: 40px 0;
  color: rgba(210, 240, 89, 0.74);
}

@media (max-width: 960px) {
  .weekly-hero,
  .weekly-feature,
  .weekly-controls {
    grid-template-columns: 1fr;
  }

  .weekly-controls {
    top: 76px;
  }

  .weekly-filter {
    justify-content: flex-start;
  }

  .weekly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .weekly-main {
    width: min(100% - 28px, 620px);
    padding-top: 148px;
  }

  .weekly-hero {
    min-height: auto;
    gap: 24px;
  }

  .weekly-hero h1 {
    font-size: clamp(3rem, 18vw, 5.6rem);
  }

  .weekly-controls {
    position: static;
    margin-inline: -2px;
    background: transparent;
  }

  .weekly-feature,
  .weekly-feature__media,
  .weekly-feature__image,
  .weekly-feature__video,
  .weekly-feature__content,
  .weekly-feature__image img,
  .weekly-feature__video img,
  .weekly-feature iframe {
    min-height: 320px;
  }

  .weekly-grid {
    grid-template-columns: 1fr;
  }
}
