/* Maps by Funk — site
   Brand tokens shared with the Atlas (video-atlas/web/styles.css). */

:root {
  --teal: #67cba6;
  --teal-deep: #468a71;
  --slate: #33444e;
  --off-white: #f4f4f4;
  --near-black: #111517;

  /* Derived surfaces — slate darkened/lightened, never a neutral grey */
  --bg: #1a2429;
  --surface: #23323a;
  --surface-hi: #2c3e47;
  --line: #3b4f59;
  --text: var(--off-white);
  --text-dim: #9db0ba;
  --text-faint: #6f8794;

  --f-display: "Lexend Deca", "Segoe UI", sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--teal);
  color: var(--near-black);
  padding: 8px 14px;
  border-radius: 8px;
}

.eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The diamond bullet — a brand motif */
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.faint {
  color: var(--text-faint);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: var(--teal);
  color: var(--near-black);
}
.btn-primary:hover {
  background: #7ed6b5;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sub {
  height: 38px;
  padding: 0 16px;
  background: var(--teal);
  color: var(--near-black);
}
.btn-sub:hover {
  background: #7ed6b5;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 21, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark em {
  font-style: normal;
  color: var(--teal);
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(103, 203, 166, 0.12), transparent 60%),
    linear-gradient(180deg, var(--slate) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-deco span {
  position: absolute;
  pointer-events: none;
}

.hero-deco .blob {
  width: 520px;
  height: 460px;
  right: -120px;
  top: -60px;
  background: var(--teal-deep);
  opacity: 0.22;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  filter: blur(2px);
}

.hero-deco .stripes {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: -90px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(103, 203, 166, 0.16) 0 10px,
    transparent 10px 22px
  );
  border-radius: 50%;
}

.hero-deco .diamond {
  width: 14px;
  height: 14px;
  border: 2px solid var(--teal);
  transform: rotate(45deg);
  opacity: 0.6;
}
.hero-deco .d1 { left: 46%; top: 54px; }
.hero-deco .d2 { left: 8%; top: 38%; width: 9px; height: 9px; background: var(--teal); border: 0; }
.hero-deco .d3 { right: 6%; bottom: 60px; width: 22px; height: 22px; opacity: 0.35; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  margin-bottom: 14px;
  text-wrap: balance;
}

.hero-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 16px;
}

.hero-tagline {
  color: var(--text-dim);
  margin: 0 0 28px;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface) center / cover no-repeat;
  box-shadow:
    0 0 0 1px var(--line),
    18px 18px 0 -2px rgba(103, 203, 166, 0.18),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  transition: transform 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.play svg {
  width: 32px;
  height: 32px;
  fill: var(--near-black);
  margin-left: 4px;
}
.hero-thumb:hover .play {
  transform: scale(1.08);
}

/* ---------- sections ---------- */

.section {
  padding: 80px 0;
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search {
  position: relative;
}
.search input {
  width: 260px;
  height: 40px;
  padding: 0 14px 0 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search input::placeholder {
  color: var(--text-faint);
}
.search input:focus {
  border-color: var(--teal);
  outline: none;
}
.search .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 2;
}

.sort {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
}
.sort button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 0 14px;
  height: 32px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
}
.sort button[aria-pressed="true"] {
  background: var(--surface-hi);
  color: var(--teal);
}

/* ---------- video grid ---------- */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 24px;
}

.card button {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
.card button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--surface) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card button:hover .thumb {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--teal), 0 16px 30px -14px rgba(0, 0, 0, 0.6);
}

.thumb .play {
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s;
}
.thumb .play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}
.card button:hover .thumb .play {
  opacity: 1;
  transform: scale(1);
}

.card h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  margin: 14px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card button:hover h3 {
  color: var(--teal);
}

.card .meta {
  color: var(--text-faint);
  font-size: 13px;
}

.empty {
  color: var(--text-dim);
  text-align: center;
  padding: 40px 0;
}

.more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- coming soon (before the first upload) ---------- */

[hidden] {
  display: none !important;
}

.hero-thumb.soon {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(103, 203, 166, 0.1) 0 10px, transparent 10px 22px),
    var(--surface);
}
.hero-thumb.soon img {
  width: 30%;
  max-width: 150px;
  opacity: 0.85;
}

.soon-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--near-black);
  border: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.soon-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% { opacity: 0.25; }
}

.soon-panel {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(103, 203, 166, 0.08), transparent 70%),
    var(--surface);
}
.soon-panel img {
  margin: 0 auto 18px;
}
.soon-panel h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.soon-panel p {
  color: var(--text-dim);
  margin: 0 auto 24px;
  max-width: 42ch;
}

/* ---------- atlas teaser ---------- */

.atlas {
  background: var(--near-black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.atlas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.atlas-copy p:not(.eyebrow) {
  color: var(--text-dim);
  margin: 16px 0 28px;
  max-width: 46ch;
}

.atlas-art svg {
  width: 100%;
  color: var(--teal);
  background: var(--slate);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.atlas-art .pins circle {
  fill: var(--teal);
}
.atlas-art .pin-ring circle {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  transform-origin: 168px 120px;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-art .pin-ring circle,
  .soon-chip::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- about ---------- */

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: 820px;
}

.about-mark {
  width: 96px;
  height: 96px;
  padding: 18px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

#about-text {
  color: var(--text-dim);
  margin: 16px 0 24px;
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.socials a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.socials a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--near-black);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- privacy and terms ---------- */

main.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
}

.legal h2 {
  font-size: 20px;
  margin-top: 36px;
}

.legal p,
.legal li {
  color: var(--text-dim);
}

.legal b {
  color: var(--text);
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

/* ---------- player ---------- */

.player {
  width: min(1100px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--near-black);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, 0.6);
}
.player::backdrop {
  background: rgba(10, 14, 16, 0.82);
  backdrop-filter: blur(4px);
}
.player-frame {
  aspect-ratio: 16 / 9;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
}
.player-bar a {
  text-decoration: none;
}
.player-bar button {
  border: 0;
  background: none;
  color: var(--text-dim);
}
.player-bar button:hover {
  color: var(--text);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 56px;
  }
  .hero-inner,
  .atlas-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-thumb {
    order: -1;
  }
  .nav {
    display: none;
  }
  .btn-sub {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .section {
    padding: 56px 0;
  }
  .wordmark {
    font-size: 13px;
  }
  .btn-sub span {
    display: none;
  }
  .btn-sub {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .tools,
  .search,
  .search input {
    width: 100%;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-mark {
    width: 72px;
    height: 72px;
    padding: 14px;
  }
}
