:root {
  --bg: #111318;
  --bg-soft: #1a1f29;
  --surface: rgba(25, 31, 41, 0.72);
  --surface-strong: rgba(32, 39, 51, 0.92);
  --text: #f5f2eb;
  --muted: #c6c0b4;
  --line: rgba(245, 242, 235, 0.12);
  --accent: #f06a3a;
  --accent-soft: #f0c45b;
  --max-width: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(240, 106, 58, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(240, 196, 91, 0.18), transparent 24%),
    linear-gradient(180deg, #0e1015 0%, #141922 48%, #0f141c 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
}

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: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent);
}

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

p,
li {
  color: var(--muted);
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: rgba(14, 16, 21, 0.72);
}

.site-nav a,
.eyebrow,
.project-topline,
.stat-label,
.contact-link span {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: 42px 0 54px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  min-height: 70vh;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.project-card,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 38px;
  border-radius: 34px;
  height: 100%;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border-radius: 28px;
  height: 100%;
}

.profile-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  max-height: 320px;
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--accent-soft);
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 12px;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 52ch;
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.hero-meta {
  margin: 12px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #2f6bff 0%, #5aa2ff 100%);
  color: #f5fbff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-strong);
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--accent-soft);
}

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

.section-heading p {
  max-width: 62ch;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  grid-column: span 6;
  padding: 24px;
  border-radius: 24px;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface);
}

.project-media {
  position: relative;
  margin: -8px -8px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.project-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080a0d;
}

.video-preview-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.08), rgba(7, 10, 14, 0.38)),
    transparent;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.video-preview-button:hover .video-preview-icon,
.video-preview-button:focus-visible .video-preview-icon {
  transform: scale(1.06);
}

.video-preview-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease;
}

.video-preview-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-38%, -50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #f5f2eb;
}

.project-media.is-playing .video-preview-button {
  opacity: 0;
  pointer-events: none;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.feature-card,
.wip-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

.tab-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.tab-media {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.tab-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080a0d;
}

.tab-logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.tab-logo img {
  display: block;
  max-width: min(100%, 260px);
  height: auto;
}

.cq-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.cq-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.tab-panel h3,
.feature-card h3 {
  margin-bottom: 12px;
}

.inline-link {
  color: var(--accent-soft);
}

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

.feature-card {
  padding: 24px;
  border-radius: 28px;
}

.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgb(67, 176, 255) 0%, rgb(1, 100, 220) 100%);
}

.feature-media img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}

.ww-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.ww-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.contact-section {
  padding-bottom: 72px;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.contact-link strong {
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

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

@media (max-width: 960px) {
  .hero,
  .wip-grid,
  .feature-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-column: span 12;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 16px;
  }

  .site-header,
  .site-footer {
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .hero-copy,
  .hero-panel,
  .project-card,
  .wip-card,
  .feature-card,
  .contact-panel {
    border-radius: 22px;
  }

  .hero-copy,
  .project-card,
  .feature-card {
    padding: 22px;
  }

  .project-topline {
    flex-direction: column;
    gap: 6px;
  }

  .cq-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-link strong {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }
}
