:root {
  --accent: #58f29d;
  --accent-two: #52a8ff;
  --accent-three: #ffb84d;
  --page-bg: #05070c;
  --text: #f5f7fb;
  --muted: #aeb7c8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(12, 18, 29, 0.78);
  --panel-strong: rgba(16, 24, 39, 0.94);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, #06070a, #0b1118 42%, #050607 100%);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: -30%;
  z-index: -3;
  content: "";
  background:
    linear-gradient(116deg, rgba(88, 242, 157, 0.18), transparent 22%, rgba(255, 184, 77, 0.08) 48%, transparent 64%),
    linear-gradient(274deg, transparent 14%, rgba(82, 168, 255, 0.15), transparent 56%);
  opacity: 0.72;
  pointer-events: none;
}

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

img,
iframe {
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 12, 0.48);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header:focus-within {
  border-bottom-color: rgba(88, 242, 157, 0.24);
  background: rgba(5, 7, 12, 0.86);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two) 52%, var(--accent-three));
  color: #031009;
  font-size: 0.82rem;
  font-weight: 950;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 5, 8, 0.62);
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.header-cta,
.button,
.text-link,
.project-card a,
.contact-links a,
.footer-links a {
  font-weight: 800;
}

.header-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.18), rgba(255, 255, 255, 0.08));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 72vh;
  padding: 112px clamp(18px, 5vw, 72px) 24px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.95) 0%, rgba(5, 7, 12, 0.76) 42%, rgba(5, 7, 12, 0.38) 72%, rgba(5, 7, 12, 0.82) 100%),
    linear-gradient(0deg, #05070c 0%, rgba(5, 7, 12, 0.18) 48%, rgba(5, 7, 12, 0.66) 100%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px),
    linear-gradient(110deg, rgba(88, 242, 157, 0.14), transparent 30%, rgba(82, 168, 255, 0.12));
  mix-blend-mode: screen;
  opacity: 0.46;
  animation: scanDrift 12s linear infinite;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.hero-content {
  max-width: 720px;
  padding: 42px 0 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 660px;
  color: #d8deea;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions,
.tool-row,
.section-heading,
.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: #031009;
  box-shadow: 0 14px 36px rgba(88, 242, 157, 0.22);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-meta-row span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #cfd7e6;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.hero-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
}

.hero-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 58%);
}

.hero-frame .play-dot {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.hero-frame .video-type {
  z-index: 2;
}

.hero-panel-copy {
  padding: 16px 18px 14px;
}

.hero-panel-copy small {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-three);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-copy strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
}

.hero-panel-copy p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-rail {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-rail a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(8, 13, 20, 0.94);
}

.hero-rail a:hover {
  background: rgba(18, 28, 41, 0.96);
}

.hero-rail span {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

.hero-rail strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.25;
}

.play-dot {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 0 0 8px rgba(88, 242, 157, 0.12);
}

.play-dot::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #04110a;
  content: "";
}

.play-dot--large {
  width: 56px;
  height: 56px;
}

.hero-stats {
  width: min(1240px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent);
}

.hero-stats div {
  padding: 14px 18px 0 0;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  position: relative;
}

.notice-band,
.section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.notice-band {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.notice-band span {
  color: var(--accent-three);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice-band p {
  margin: 0;
}

.section {
  padding: clamp(54px, 9vw, 110px) 0;
}

.channel-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(28px, 5vw, 58px);
}

.lane {
  position: relative;
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(7, 12, 18, 0.82);
  overflow: hidden;
}

.lane::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 78px;
  height: 12px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-two), var(--accent-three));
  opacity: 0.86;
}

.lane--feature {
  background:
    linear-gradient(135deg, rgba(88, 242, 157, 0.18), rgba(82, 168, 255, 0.08)),
    rgba(7, 12, 18, 0.88);
}

.lane span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-three);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lane strong {
  display: block;
  max-width: 520px;
  font-size: clamp(1.12rem, 2vw, 1.72rem);
  line-height: 1.08;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: end;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 26px;
}

.text-link,
.project-card a {
  color: var(--accent);
}

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

.video-card,
.project-card,
.post-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.video-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 242, 157, 0.34);
  background:
    linear-gradient(180deg, rgba(88, 242, 157, 0.09), transparent 34%),
    var(--panel-strong);
}

.video-card--wide {
  grid-column: span 2;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.video-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
}

.video-thumb .play-dot {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
}

.video-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-copy,
.project-card,
.post-card {
  padding: 18px;
}

.video-copy p,
.project-card p {
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row span,
.project-card span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--accent-three);
  font-size: 0.72rem;
  font-weight: 800;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

.short-list {
  display: grid;
  gap: 12px;
}

.short-list a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.short-list span {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

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

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

.page-main {
  padding-top: 110px;
}

.page-hero {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 30px;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.tool-row {
  justify-content: space-between;
  margin-bottom: 22px;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.segmented button {
  min-width: 84px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.segmented button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: min(340px, 82vw);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card time {
  color: var(--accent-three);
  font-size: 0.8rem;
  font-weight: 900;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 560px;
  margin: 7px 0 0;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

@keyframes ambientShift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(2%, 1%, 0) rotate(4deg);
  }
}

@keyframes scanDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 80px, 120px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: grid;
    justify-self: stretch;
    border-radius: 8px;
    background: rgba(5, 7, 12, 0.94);
    backdrop-filter: blur(18px);
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 28px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-content {
    padding: 38px 0 0;
  }

  .hero-panel {
    max-width: 560px;
  }

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

  .hero-stats strong,
  .hero-stats span {
    overflow-wrap: anywhere;
  }

  .section-intro,
  .section-split,
  .channel-lanes,
  .contact-panel,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .video-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.9rem, 14vw, 3.7rem);
    line-height: 0.96;
  }

  .hero {
    padding-top: 84px;
  }

  .hero-content {
    padding-top: 22px;
  }

  .hero-actions,
  .tool-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .search-box input {
    width: 100%;
  }

  .short-list a {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .hero-rail a {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hero-rail {
    display: none;
  }

  .hero-stats div {
    padding-right: 10px;
  }
}
