:root {
  color-scheme: dark;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tech-font: "Audiowide", ui-sans-serif, system-ui, sans-serif;
  --glitch-font: "Rubik Glitch", var(--tech-font);
  --bg: #000000;
  --panel: #05080b;
  --panel-strong: #070d12;
  --text: #ffffff;
  --muted: #b8d8ed;
  --soft: #6ea4c4;
  --line: #10283a;
  --accent: #1793d1;
  --accent-strong: #48bfff;
  --accent-soft: rgba(23, 147, 209, 0.18);
  --banner-pattern: url("assets/syntos-check-bg.png");
  --amber: var(--accent);
  --green: #1793d1;
  --red: #1793d1;
  --teal: #1793d1;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

@font-face {
  font-display: swap;
  font-family: "Audiowide";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/audiowide-regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Rubik Glitch";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/rubik-glitch-regular.ttf") format("truetype");
}

body[data-page="home"],
body[data-page="omni-kage"],
body[data-page="meme-maker"],
body[data-page="voidfox"],
body[data-page="icy-void"],
body[data-page="socials"] {
  --banner-pattern: url("assets/syntos-check-bg.png");
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.5;
}

body::selection {
  background: var(--accent);
  color: #000000;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(23, 147, 209, 0.28);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 28px;
  font-family: var(--tech-font);
  font-size: clamp(1.45rem, 2.6vw, 2.24rem);
  font-weight: 400;
}

.brand-logo {
  width: clamp(62px, 7vw, 96px);
  height: clamp(62px, 7vw, 96px);
  object-fit: contain;
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 26svh;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-color: #000000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.46)),
    var(--banner-pattern);
  background-position: center;
  background-repeat: repeat;
  background-size: auto, 132px 132px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.36);
  content: "";
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.2vw, 44px);
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.hero-logo {
  width: clamp(130px, 20vw, 304px);
  height: clamp(130px, 20vw, 304px);
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

.hero h1 {
  max-width: none;
  color: var(--text);
  font-family: var(--glitch-font);
  font-size: clamp(4.1rem, 9vw, 10.5rem);
  font-weight: 400;
  text-shadow:
    2px 0 0 rgba(23, 147, 209, 0.82),
    -2px 0 0 rgba(72, 191, 255, 0.48),
    0 5px 26px rgba(0, 0, 0, 0.62);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  background: var(--accent);
  color: #000000;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(23, 147, 209, 0.46);
  background: rgba(23, 147, 209, 0.12);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(72, 191, 255, 0.7);
  background: rgba(23, 147, 209, 0.2);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #020406;
}

.signal-strip a {
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 4px;
  padding: 20px 32px;
  border-right: 1px solid var(--line);
}

.signal-strip a:last-child {
  border-right: 0;
}

.signal-strip a:hover,
.signal-strip a:focus-visible,
.signal-strip a[aria-current="page"] {
  background: #07111a;
}

.signal-strip a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.signal-strip strong {
  font-size: 1rem;
}

.signal-strip span {
  color: var(--soft);
  font-size: 0.92rem;
}

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

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 2.6rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: rgba(23, 147, 209, 0.78);
  color: var(--text);
  background: #061624;
}

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

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none;
}

.project-card.is-featured {
  grid-column: span 2;
}

.project-media {
  position: relative;
  display: grid;
  min-height: 248px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000000;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-media:hover img,
.project-media:focus-visible img {
  transform: scale(1.025);
}

.project-media-icon {
  background: #02080c;
}

.project-media-icon img {
  width: 48%;
  height: 48%;
  object-fit: contain;
  transform: none;
}

.project-media-icon:hover img,
.project-media-icon:focus-visible img {
  transform: none;
}

.channel-media {
  align-content: center;
  gap: 18px;
  justify-items: center;
  background: #02080c;
  color: var(--text);
  font-size: 1.36rem;
  font-weight: 900;
}

.theme-media {
  align-content: center;
  gap: 10px;
  justify-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url("assets/syntos-check-bg.png");
  background-size: auto, 116px 116px;
  color: var(--text);
  font-family: var(--tech-font);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  text-shadow:
    1px 0 0 rgba(23, 147, 209, 0.86),
    0 0 24px rgba(23, 147, 209, 0.55);
}

.play-mark {
  position: relative;
  width: 76px;
  height: 52px;
  border-radius: 8px;
  background: var(--red);
}

.play-mark::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
  content: "";
  transform: translate(-42%, -50%);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 14px;
}

.project-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(23, 147, 209, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(23, 147, 209, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card h3,
.personal-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.34rem;
  line-height: 1.2;
}

.project-card p,
.personal-grid p {
  color: var(--muted);
}

.project-card p {
  margin: 12px 0 22px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-links a {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(23, 147, 209, 0.62);
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 800;
}

.project-links a:hover,
.project-links a:focus-visible {
  background: rgba(23, 147, 209, 0.16);
}

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

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

.personal-grid article {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.personal-grid p {
  margin: 12px 0 0;
}

.detail-view {
  min-height: calc(100svh - 142px);
}

.back-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--accent-strong);
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.detail-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.detail-heading h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--tech-font);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.detail-heading .button {
  width: fit-content;
}

.detail-body {
  max-width: 860px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-body h2 {
  margin: 34px 0 10px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.detail-body p {
  margin: 0 0 16px;
}

.detail-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.detail-body li {
  margin: 8px 0;
}

.detail-body a {
  color: var(--accent-strong);
  font-weight: 800;
}

.detail-body pre {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.detail-body code {
  color: var(--text);
}

.meme-maker-lead {
  color: var(--text);
  font-size: 1.16rem;
}

.meme-showcase,
.music-panel,
.meme-example-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.meme-showcase {
  display: grid;
  gap: 16px;
  margin: 24px 0 36px;
  padding: 18px;
}

.meme-showcase-copy h2,
.meme-music h2 {
  margin-top: 0;
}

.meme-showcase video,
.meme-example-card video,
.meme-example-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000000;
}

.meme-showcase video {
  border: 1px solid rgba(23, 147, 209, 0.26);
  border-radius: 8px;
}

.music-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.music-details {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.music-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.music-meta div {
  min-width: 0;
}

.music-meta dt {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.music-meta dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 900;
}

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

.music-links a {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(23, 147, 209, 0.62);
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 800;
}

.music-links a:hover,
.music-links a:focus-visible {
  background: rgba(23, 147, 209, 0.16);
}

.music-panel audio {
  width: 100%;
}

.meme-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.meme-example-card {
  overflow: hidden;
}

.meme-example-body {
  padding: 18px;
}

.meme-example-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
}

.meme-example-body p {
  margin: 10px 0 0;
}

.meme-maker-page pre {
  font-size: 0.82rem;
  line-height: 1.45;
}

.loading-text {
  color: var(--soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  background: #000000;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

@media (max-width: 940px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 34svh;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .signal-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-strip a:nth-child(3) {
    border-right: 0;
  }

  .signal-strip a:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .project-grid,
  .personal-grid,
  .meme-example-grid {
    grid-template-columns: 1fr;
  }

  .project-card.is-featured {
    grid-column: span 1;
  }

  .music-details {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero-content,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-content {
    padding: 26px 0 29px;
    gap: 14px;
  }

  .hero-logo {
    width: clamp(84px, 26vw, 120px);
    height: clamp(84px, 26vw, 120px);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.3rem);
  }

  .button,
  .site-footer {
    width: 100%;
  }

  .detail-heading .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip a,
  .signal-strip a:nth-child(2) {
    min-height: 84px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }

  .signal-strip a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .project-media {
    min-height: 202px;
  }

  .meme-showcase,
  .music-panel,
  .meme-example-body {
    padding: 14px;
  }

  .music-meta {
    grid-template-columns: 1fr;
  }
}
