:root {
  --glass: rgba(255, 255, 255, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.7);
  --glass-ink: #15171a;
  --veil: rgba(255, 255, 255, 0.47);
  --veil-2: rgba(255, 255, 255, 0.56);
  --deep: #191b1c;
  --paper: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--deep);
}

.bg {
  position: absolute;
  inset: -8%;
  background: #3b4247 url("../assets/hero.jpg") 50% 62% / cover no-repeat;
  filter: brightness(0.84) contrast(1.06) saturate(0.96);
  transform-origin: 50% 58%;
  animation: hero-breathe 11s ease-in-out infinite alternate;
}

.veil-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 230px;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 22, 0.42) 0%,
    rgba(18, 20, 22, 0.12) 55%,
    rgba(18, 20, 22, 0) 100%
  );
}

.veil-bot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 22, 0) 0%,
    rgba(18, 20, 22, 0.16) 46%,
    rgba(18, 20, 22, 0.42) 100%
  );
}

.nav {
  position: fixed;
  top: 16px;
  left: 15px;
  right: 16px;
  min-height: 33px;
  display: flex;
  align-items: stretch;
  gap: 7px;
  z-index: 20;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  backdrop-filter: blur(9px) saturate(1.1);
  color: var(--glass-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 6px 18px -10px rgba(10, 12, 14, 0.55);
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.pill:hover {
  background: var(--glass-hi);
}

.logo {
  padding: 0 15px;
  flex: 0 0 auto;
}

.logo b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.links {
  padding: 0 13px;
  gap: 28px;
  flex: 0 0 auto;
}

.links a,
.links button {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.012em;
  white-space: nowrap;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease);
}

.links a:hover,
.links button:hover {
  opacity: 1;
}

.tools {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.tools .pill {
  min-width: 100px;
  justify-content: center;
  gap: 9px;
  height: 33px;
  padding: 0 14px;
}

.tools svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.tools span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.012em;
}

.menu-toggle {
  display: none;
  min-width: 72px;
}

.hero-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 14;
}

.display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-weight: 700;
  color: var(--veil);
}

.display-kicker {
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--veil-2);
}

.display-main {
  margin-top: -0.08em;
  font-size: clamp(4.4rem, 14vw, 12.8rem);
  line-height: 0.82;
  letter-spacing: -0.048em;
  white-space: nowrap;
  overflow: hidden;
}

.sub {
  margin-top: 10px;
  font-size: clamp(1.4rem, 3.4vw, 2.55rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--veil-2);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 18px;
}

.about .btns {
  margin-top: 22px;
}

.btn {
  height: 49px;
  padding: 0 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  backdrop-filter: blur(9px) saturate(1.1);
  color: var(--glass-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.004em;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 10px 26px -14px rgba(10, 12, 14, 0.6);
  transition:
    background 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.btn:hover {
  background: var(--glass-hi);
  transform: translateY(-1px);
}

.btn.btn-red {
  background: #ff0000;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 10px 26px -14px rgba(180, 0, 0, 0.7);
}

.btn.btn-red:hover {
  background: #e10600;
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.search-panel {
  display: none;
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 24;
  width: min(420px, calc(100% - 32px));
  padding: 8px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 18px 40px -18px rgba(10, 12, 14, 0.7);
}

.search-panel.is-open {
  display: block;
}

.search-panel input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--glass-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

#videos,
#about {
  scroll-margin-top: 72px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-copy {
  max-width: 42rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}

.pills button {
  appearance: none;
  cursor: pointer;
  padding: 5px 9px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.pills button:hover {
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.4);
}

.pills button[aria-selected="true"] {
  color: #191b1c;
  border-color: transparent;
  background: var(--paper);
}

.pills button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.book-more {
  margin-top: 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111314;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 20, 22, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.card-body {
  padding: 16px 16px 18px;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.empty {
  display: none;
  margin-top: 28px;
  color: var(--muted);
}

.empty.is-visible {
  display: block;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0 16px;
}

.about img {
  width: 100%;
  max-width: 280px;
  border-radius: 28px;
  background: #0c0d0e;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  font-weight: 700;
}

.modal {
  width: min(960px, calc(100% - 48px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.modal::backdrop {
  background: rgba(10, 12, 14, 0.72);
}

.modal-inner {
  width: 100%;
}

.modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-title {
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  margin-top: 16px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--glass-ink);
  font-size: 13px;
  font-weight: 700;
}

@keyframes hero-breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.09);
  }
}

@media (max-width: 980px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .links {
    display: none;
    position: absolute;
    top: 46px;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }

  .links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .tools .pill:not(.menu-toggle) span {
    display: none;
  }

  .tools .pill:not(.menu-toggle) {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .display-main {
    white-space: normal;
  }

  .btn {
    height: 44px;
    padding: 0 18px;
  }

  .video-grid,
  .page,
  .site-footer {
    width: min(1180px, calc(100% - 28px));
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg {
    animation: none;
  }

  .pill,
  .btn,
  .card {
    transition: none;
  }
}
