:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-raised: #111722;
  --bg-soft: #17202b;
  --text: #f6f2e8;
  --muted: #aeb6bd;
  --line: rgba(246, 242, 232, 0.14);
  --accent: #e9c46a;
  --accent-strong: #f4a261;
  --cool: #2dd4bf;
  --danger: #e76f51;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(45, 212, 191, 0.12), transparent 30rem),
    linear-gradient(180deg, #080a0f 0%, #0f131a 50%, #080a0f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand {
  width: auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(42px, 5vw, 56px);
}

.nav {
  gap: 4px;
}

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

.nav a:hover,
.nav a:focus-visible {
  background: rgba(246, 242, 232, 0.08);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 84px);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cool);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 8ch;
  font-size: clamp(4.6rem, 14vw, 10rem);
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions,
.contact-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

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

.button-secondary {
  background: rgba(246, 242, 232, 0.06);
  color: var(--text);
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.signal-grid,
.hero-frame,
.media-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signal-grid {
  position: absolute;
  inset: 60px 22px 20px 80px;
  background:
    linear-gradient(rgba(246, 242, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 242, 232, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.58;
}

.hero-frame {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(233, 196, 106, 0.18), transparent 48%),
    repeating-linear-gradient(135deg, rgba(246, 242, 232, 0.08) 0 1px, transparent 1px 16px),
    var(--bg-raised);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero-frame span,
.media-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-frame img,
.hero-frame video,
.hero-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.hero-frame-one {
  inset: 20px 0 auto 42px;
  aspect-ratio: 16 / 10;
  width: min(92%, 520px);
}

.hero-frame-two {
  right: 36px;
  bottom: 26px;
  aspect-ratio: 16 / 9;
  width: min(78%, 430px);
  background:
    linear-gradient(145deg, rgba(231, 111, 81, 0.18), transparent 48%),
    repeating-linear-gradient(90deg, rgba(45, 212, 191, 0.11) 0 1px, transparent 1px 20px),
    var(--bg-soft);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.capability-grid article,
.timeline article {
  min-height: 208px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 232, 0.045);
}

.capability-grid span {
  color: var(--accent);
  font-weight: 800;
}

.capability-grid p,
.timeline p,
.project-description,
.project-genre {
  color: var(--muted);
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 242, 232, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: rgba(233, 196, 106, 0.64);
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.9);
}

.project-gallery {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #0b0f16;
}

.gallery-feature,
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-feature {
  aspect-ratio: var(--media-aspect, 16 / 9);
  display: grid;
  place-items: center;
  max-height: 620px;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.18), transparent 50%),
    repeating-linear-gradient(135deg, rgba(246, 242, 232, 0.07) 0 1px, transparent 1px 14px),
    #141b26;
}

.gallery-nav {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: stretch;
}

.gallery-arrow {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 232, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  border-color: rgba(233, 196, 106, 0.64);
  background: rgba(233, 196, 106, 0.12);
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-item {
  display: grid;
  aspect-ratio: 16 / 9;
  flex: 0 0 clamp(128px, 18vw, 178px);
  place-items: center;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(233, 196, 106, 0.18), transparent 42%),
    #101722;
  color: inherit;
  cursor: pointer;
  padding: 0;
  scroll-snap-align: start;
}

.gallery-item.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, 0.56);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: rgba(45, 212, 191, 0.72);
}

.gallery-feature img,
.gallery-feature video,
.gallery-feature iframe,
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.gallery-feature.media-contain img {
  align-self: center;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #05070b;
}

.gallery-feature.is-portrait {
  width: min(100%, calc(620px * 1078 / 1965));
  max-height: none;
  height: 620px;
  justify-self: center;
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.media-placeholder.video {
  background:
    radial-gradient(circle at center, rgba(233, 196, 106, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(246, 242, 232, 0.07) 0 1px, transparent 1px 18px),
    #101722;
}

.media-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.72);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.media-placeholder > .media-label {
  position: static;
}

.project-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
}

.project-meta,
.project-platforms,
.project-ai {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta {
  justify-content: space-between;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-genre,
.project-description {
  margin: 0;
}

.project-platforms span,
.project-ai span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(246, 242, 232, 0.07);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-ai span {
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: #c8fff6;
}

.project-links a {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.timeline article {
  min-height: 190px;
}

.timeline strong {
  color: var(--accent);
  font-size: 1.05rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact h2 {
  max-width: 900px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .section,
  .footer {
    width: min(100% - 24px, var(--max));
  }

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

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-media {
    order: -1;
    min-height: 390px;
  }

  .capability-grid,
  .timeline,
  .project-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .gallery-feature {
    max-height: 620px;
    min-height: 290px;
  }

  .contact-actions {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero-frame-one {
    left: 0;
    width: 96%;
  }

  .hero-frame-two {
    right: 0;
    width: 82%;
  }

  .signal-grid {
    inset: 48px 0 20px 24px;
  }

  .gallery-strip {
    gap: 8px;
  }

  .gallery-nav {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .gallery-arrow {
    min-height: 80px;
  }

  .gallery-feature {
    max-height: 560px;
    min-height: 220px;
  }

  .gallery-item {
    min-height: 92px;
  }

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