:root {
  --bg: #050505;
  --panel: #0b0d10;
  --panel-soft: #11151b;
  --text: #f2f2f2;
  --muted: #8b95a1;
  --line: #7c8794;
  --cyan: #00e5ff;
  --violet: #7c3aed;
  --danger: #ff3b3b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 10%, rgba(0, 229, 255, 0.08), transparent 30%),
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 80%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1;
}

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

.scanline {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.035) 50%, transparent 100%);
  height: 120px;
  opacity: 0.25;
  animation: scan 9s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes scan {
  0% {
    transform: translateY(-150px);
  }

  100% {
    transform: translateY(110vh);
  }
}

.topbar {
  position: relative;
  z-index: 3;
  height: 28px;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 135, 148, 0.35);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.topbar-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.topbar-track span {
  padding-right: 54px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.33%);
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid rgba(124, 135, 148, 0.45);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-mark {
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(124, 135, 148, 0.5);
  background: rgba(11, 13, 16, 0.7);
  overflow: hidden;
  position: relative;
  color: var(--cyan);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--cyan);
  border-style: solid;
}

.logo-mark::before {
  left: -4px;
  top: -4px;
  border-width: 2px 0 0 2px;
}

.logo-mark::after {
  right: -4px;
  bottom: -4px;
  border-width: 0 2px 2px 0;
}

.logo-mark img {
  width: 140%;
  height: 110%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.25));
}

nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  display: inline-block;
  border: 1px solid rgba(124, 135, 148, 0.6);
  padding: 10px 16px;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: 0.2s ease;
}

nav a:hover,
.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18);
}

main,
footer {
  position: relative;
  z-index: 3;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 20px;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  position: relative;
  padding: 64px 56px;
  background: linear-gradient(180deg, rgba(17, 21, 27, 0.55) 0%, rgba(5, 5, 5, 0.28) 100%);
  border: 1px solid rgba(124, 135, 148, 0.3);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cyan);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(56px, 9vw, 124px);
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  border: 1px solid var(--line);
  padding: 14px 20px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

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

.hero-card {
  border: 1px solid rgba(124, 135, 148, 0.55);
  background: linear-gradient(145deg, rgba(17, 21, 27, 0.92), rgba(5, 5, 5, 0.65));
  min-height: 430px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  opacity: 0.65;
}

.frame-preview {
  position: absolute;
  inset: 48px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.22), transparent),
    linear-gradient(315deg, rgba(0, 229, 255, 0.18), transparent),
    #080a0d;
}

.frame-preview::before,
.frame-preview::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(242, 242, 242, 0.65);
  border-style: solid;
  z-index: 3;
}

.frame-preview::before {
  top: 18px;
  left: 18px;
  border-width: 2px 0 0 2px;
}

.frame-preview::after {
  right: 18px;
  bottom: 18px;
  border-width: 0 2px 2px 0;
}

.frame-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.frame-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: frameCycle 20s infinite;
}

.frame-slide:nth-child(1) {
  animation-delay: 0s;
}

.frame-slide:nth-child(2) {
  animation-delay: 4s;
}

.frame-slide:nth-child(3) {
  animation-delay: 8s;
}

.frame-slide:nth-child(4) {
  animation-delay: 12s;
}

.frame-slide:nth-child(5) {
  animation-delay: 16s;
}

.frame-slide:nth-child(6) {
  animation-delay: 20s;
}

.frame-slide {
  animation-duration: 24s;
}

@keyframes frameCycle {
  0% {
    opacity: 0;
  }

  3% {
    opacity: 1;
  }

  14% {
    opacity: 1;
  }

  17% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.frame-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.22), transparent),
    linear-gradient(315deg, rgba(0, 229, 255, 0.18), transparent),
    #080a0d;
}

.frame-brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.frame-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.05);
}

.frame-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  text-align: left;
  padding: 26px 22px 20px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.85) 75%);
}

.frame-caption strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.frame-caption .timecode {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .frame-slide {
    animation: none;
    opacity: 1;
  }

  .frame-slide:not(:first-child) {
    display: none;
  }
}

.timecode {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-top: 18px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 38px;
  border-bottom: 1px solid rgba(124, 135, 148, 0.35);
  padding-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  min-height: 260px;
  border: 1px solid rgba(124, 135, 148, 0.5);
  background: rgba(11, 13, 16, 0.72);
  padding: 24px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.small-card {
  min-height: 210px;
}

.card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 1px;
  background: var(--cyan);
}

.card span {
  color: var(--cyan);
  font-size: 12px;
}

.card h3 {
  font-size: 24px;
  margin: 28px 0 14px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.projects {
  display: grid;
  gap: 24px;
}

.project {
  border: 1px solid rgba(124, 135, 148, 0.5);
  background: rgba(11, 13, 16, 0.74);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 270px;
  overflow: hidden;
}

.project-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.20), transparent 45%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.24), transparent 50%),
    #10151b;
  display: grid;
  place-items: center;
  color: rgba(242, 242, 242, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right: 1px solid rgba(124, 135, 148, 0.5);
}

.project-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.project-content {
  padding: 32px;
}

.project-content h3 {
  font-size: 36px;
  margin-bottom: 16px;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

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

.tag {
  border: 1px solid rgba(124, 135, 148, 0.5);
  color: var(--cyan);
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about p {
  color: var(--muted);
  margin-bottom: 18px;
}

.quote {
  border-left: 2px solid var(--cyan);
  padding-left: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

.legal-box {
  border: 1px solid rgba(124, 135, 148, 0.5);
  background: rgba(11, 13, 16, 0.72);
}

.legal-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(124, 135, 148, 0.3);
}

.legal-row:last-child {
  border-bottom: none;
}

.legal-label {
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: start;
}

.legal-value {
  color: var(--text);
  font-size: 14px;
}

footer {
  border-top: 1px solid rgba(124, 135, 148, 0.45);
  padding: 38px 20px;
  color: var(--muted);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(14px);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {

  .hero,
  .about,
  .project {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 24px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  }

  nav ul {
    display: none;
  }

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

  .section {
    padding: 68px 18px;
  }

  .hero-card {
    min-height: 320px;
  }

  .frame-preview {
    inset: 34px;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    margin-top: 16px;
  }

  .project-visual {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(124, 135, 148, 0.5);
  }

  .legal-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}