:root {
  --bg: #05070e;
  --panel: #0a0e1a;
  --panel-2: rgba(21, 26, 40, 0.7);
  --text: #e9eef7;
  --muted: #9aabc7;
  --accent: #7ee0c9;
  --accent-2: #7cb7ff;
  --border: #1b2235;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(126, 224, 201, 0.12), transparent 32%), radial-gradient(circle at 80% 10%, rgba(124, 183, 255, 0.15), transparent 28%), var(--bg);
  color: var(--text);
  font-family: "Manrope", "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

p {
  margin: 0 0 12px;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  backdrop-filter: blur(10px);
  background: rgba(5, 7, 14, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav.scrolled {
  background: rgba(5, 7, 14, 0.92);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041120;
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav__cta {
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06101f;
  font-weight: 700;
}

.hero {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 40px 0 0;
  background: radial-gradient(600px circle at calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.2) * 100%), rgba(126, 224, 201, 0.25), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  position: relative;
  z-index: 1;
}

.hero__text h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.lede {
  color: var(--muted);
  max-width: 680px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03121f;
  box-shadow: 0 18px 40px rgba(126, 224, 201, 0.2);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.button:hover {
  transform: translateY(-2px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  color: var(--muted);
  margin: 2px 0 0;
}

.hero__panel {
  background: linear-gradient(135deg, rgba(126, 224, 201, 0.08), rgba(124, 183, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  padding: 24px;
  border-radius: calc(var(--radius) + 6px);
  display: grid;
  gap: 14px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-weight: 600;
  width: fit-content;
}

.hero__panel__card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero__team h4 {
  margin: 4px 0 4px;
}

.hero__team .eyebrow {
  margin: 0;
}

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

.mini-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mini-avatar {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #041120;
  font-weight: 800;
  font-size: 20px;
  overflow: hidden;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.projects {
  background: linear-gradient(180deg, rgba(126, 224, 201, 0.06), rgba(124, 183, 255, 0.08));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  display: grid;
  gap: 0;
  grid-template-rows: auto 1fr;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.project-card__image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

.project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.45) 100%);
  transition: background 0.25s ease;
}

.project-card__image--gradient1 {
  background: linear-gradient(135deg, #0f1b2e, #1f3e45, #0e1620);
}

.project-card__image--gradient2 {
  background: linear-gradient(135deg, #11152a, #1f2045, #11183a);
}

.project-card__image--gradient3 {
  background: linear-gradient(135deg, #102233, #1b3d4e, #0c1b27);
}

.project-card__image--gradient4 {
  background: linear-gradient(135deg, #141226, #21264c, #13172f);
}

.project-card__image--gradient5 {
  background: linear-gradient(135deg, #0f1a24, #18413f, #0a0f1c);
}

.project-card__image--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.project-card__image--photo::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.45) 100%);
}

.project-carousel {
  display: grid;
  gap: 14px;
}

.project-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.project-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.project-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, clamp(320px, 30vw, 380px));
  gap: 20px;
  align-items: stretch;
  padding: 6px;
}

.project-carousel .project-card {
  scroll-snap-align: start;
}

.project-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: var(--muted);
}

.media-gallery {
  display: grid;
  gap: 12px;
}

.media-gallery__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  scrollbar-width: none;
}

.media-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.media-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  align-items: stretch;
}

.media-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  align-items: stretch;
  scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(126, 224, 201, 0.08), rgba(11, 16, 32, 0.95));
}

.media-card--accent1 {
  background: linear-gradient(135deg, rgba(126, 224, 201, 0.16), rgba(15, 23, 38, 0.95));
}

.media-card--accent2 {
  background: linear-gradient(135deg, rgba(124, 183, 255, 0.16), rgba(11, 16, 36, 0.95));
}

.media-card--accent3 {
  background: linear-gradient(135deg, rgba(255, 184, 122, 0.16), rgba(18, 18, 32, 0.95));
}

.media-card--photo {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.25);
}

.media-card--photo img {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  inset: 0;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
  display: block;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.media-card__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-card:hover img {
  filter: blur(2px) brightness(0.65);
}

.media-card:hover .media-card__label {
  opacity: 1;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.download-panel p {
  margin: 0;
}
.project-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  color: #f7fbff;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.project-card:hover .project-card__hover {
  opacity: 1;
}

.project-card:hover .project-card__image img {
  filter: blur(3px) brightness(0.65);
}

.project-card:hover .project-card__image::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.project-card__meta {
  padding: 18px;
}

.project-card__meta h3 {
  margin: 6px 0 8px;
}

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

.tag-row span {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.profile {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
}

.avatar {
  width: 102px;
  height: 102px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041120;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  overflow: hidden;
}

.avatar--photo,
.mini-avatar.avatar--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.06);
}

.cta {
  padding: 90px 0 110px;
}

.cta__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 28px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(126, 224, 201, 0.12), rgba(124, 183, 255, 0.1));
  box-shadow: var(--shadow);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer {
  padding: 26px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bg-glow {
  position: fixed;
  inset: -30%;
  background: radial-gradient(1000px circle at 20% 0%, rgba(126, 224, 201, 0.18), transparent 50%), radial-gradient(900px circle at 80% 10%, rgba(124, 183, 255, 0.16), transparent 45%);
  z-index: -1;
  filter: blur(40px);
}

.projects .container::after,
.team .container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 14, 0.6));
  opacity: 0.2;
}

.projects .container,
.team .container {
  position: relative;
}

.detail-hero {
  padding: 140px 0 60px;
}

.detail-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.detail-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.meta-row .pill {
  background: rgba(255, 255, 255, 0.08);
}

.panel {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: linear-gradient(135deg, #0f182e, #0a0f1d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
  object-fit: cover;
}

.video-frame .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.stack h3 {
  margin: 0 0 10px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 600;
}

.panel ul {
  color: var(--muted);
  padding-left: 18px;
}

.panel ul li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 110px;
  }

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

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

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