:root {
  --bg: #000;
  --text: #f8fbff;
  --muted: #98a3b3;
  --soft: #c8d0dc;
  --line: rgba(220, 232, 255, 0.16);
  --line-strong: rgba(220, 232, 255, 0.34);
  --accent: #4fb7ff;
  --accent-strong: #8fd7ff;
  --surface: rgba(8, 12, 18, 0.78);
  --header-height: 62px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 22%, rgba(39, 123, 197, 0.18), transparent 26%),
    linear-gradient(180deg, #020407 0%, #000 58%, #020407 100%);
}

.site-header {
  position: relative;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--header-height);
  padding: 0 clamp(18px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68) 72%, transparent);
  backdrop-filter: blur(14px);
}

.brand-mark,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-right: 16px;
}

.mark::before,
.mark::after,
.mark span::before {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  height: 8px;
  background: var(--text);
  transform: skewX(-28deg);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.22);
}

.mark::before {
  top: 8px;
  width: 38px;
}

.mark::after {
  top: 20px;
  width: 30px;
}

.mark span::before {
  top: 32px;
  width: 20px;
}

.mark.small {
  transform: scale(0.82);
  transform-origin: left center;
}

.brand-text {
  display: grid;
  gap: 2px;
  text-transform: uppercase;
}

.brand-text strong,
.footer-brand strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.brand-text span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(16px, 3vh, 28px) clamp(20px, 5vw, 72px) clamp(22px, 4vh, 36px);
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: min(980px, 100%);
  margin: 0 auto;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 900px;
  margin: clamp(12px, 2vh, 18px) auto 0;
  color: var(--soft);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 520;
  line-height: 1.5;
  text-wrap: balance;
}

.projects-section {
  width: min(560px, 100%);
  margin: clamp(22px, 4vh, 34px) auto 0;
}

.projects-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.project-item {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.placeholder-image {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 215, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #050910;
  overflow: hidden;
  position: relative;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.placeholder-image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.placeholder-image::before,
.placeholder-image::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.placeholder-image::before {
  inset: 18px;
  border: 1px solid rgba(220, 232, 255, 0.12);
  border-radius: 6px;
}

.placeholder-image::after {
  inset: auto 22px 22px;
  height: 42px;
  background: repeating-linear-gradient(90deg, rgba(143, 215, 255, 0.34) 0 2px, transparent 2px 13px);
  opacity: 0.7;
}

.project-image {
  background: #050910;
}

.project-image::before {
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.46) 100%);
}

.project-image::after {
  display: none;
}

.blurred-preview img {
  filter: blur(4px) saturate(0.82) brightness(0.82);
  transform: scale(1.04);
}

.blurred-preview::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34)),
    rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(0.5px);
}

.blurred-preview::after {
  content: "Coming Soon";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  height: auto;
  color: rgba(248, 251, 255, 0.92);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
  background: transparent;
  opacity: 1;
}

.project-item:hover .placeholder-image {
  border-color: rgba(143, 215, 255, 0.78);
  box-shadow: 0 18px 70px rgba(23, 103, 188, 0.16);
  transform: translateY(-3px);
}

.project-item p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.project-item h2 {
  max-width: 300px;
  margin: 0 0 5px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.1;
}

.project-item span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 40px) 20px;
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
}

.footer-brand {
  align-items: flex-start;
  max-width: 430px;
}

.footer-brand div {
  display: grid;
  gap: 8px;
}

.footer-brand strong {
  text-transform: uppercase;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.company-details {
  display: grid;
  gap: 5px;
  margin: 0;
  color: rgba(200, 208, 220, 0.76);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  color: rgba(200, 208, 220, 0.68);
  font-size: 12px;
}

.footer-bottom a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding: 0 18px;
  }

  .footer-bottom {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .projects-section {
    width: min(335px, 100%);
  }

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

@media (max-width: 620px) {
  .brand-text strong {
    font-size: 14px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .mark {
    width: 42px;
    height: 42px;
    padding-right: 13px;
  }

  .hero {
    align-content: start;
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1;
    white-space: normal;
    text-wrap: balance;
  }

  .projects {
    gap: 14px;
  }

  .footer-brand {
    gap: 10px;
  }
}

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