:root {
  --bg: #000000;
  --bg-soft: #070707;
  --surface: rgba(10, 10, 10, 0.72);
  --surface-strong: rgba(15, 15, 15, 0.88);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --accent: #ee3f2c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --max-width: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rubik", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(238, 63, 44, 0.18), transparent 24%),
    linear-gradient(180deg, #020202 0%, #000000 100%);
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }

.site-shell {
  width: min(calc(100vw - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.site-header,
.site-footer,
.section-grid,
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 20px;
  backdrop-filter: blur(24px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-logo {
  width: 252px;
  max-width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  clip-path: var(--clip);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

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

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-light {
  background: #fff;
  color: #000;
}

.button-nav {
  min-height: 40px;
  padding: 0 15px;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
}

main {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.legal-page {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 600px;
  padding-top: 18px;
}

.hero-compact {
  min-height: auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.hero-compact .hero-copy {
  padding-top: 0;
  max-width: 720px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.hero h1,
.section-heading h2,
.contact-strip h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.2rem, 5.4vw, 4rem);
  max-width: 10ch;
}

.hero-text {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 60ch;
}

.consult-card {
  position: relative;
  align-self: flex-start;
  width: min(100%, 390px);
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 30px rgba(255, 255, 255, 0.03),
    0 18px 50px rgba(0, 0, 0, 0.34);
}

.consult-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%);
}

.consult-kicker {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.consult-text {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.97rem;
}

.consult-button {
  margin-top: 18px;
  align-self: flex-start;
}

.section-grid,
.contact-strip {
  padding: 32px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading h2,
.contact-strip h2 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

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

.projects-grid,
.legal-layout {
  display: grid;
  gap: 16px;
}

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

.feature-card {
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-card,
.project-card {
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

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

.project-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

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

.project-card-accent {
  background:
    linear-gradient(180deg, rgba(56, 12, 8, 0.92), rgba(18, 18, 18, 0.88)),
    var(--surface-strong);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-stack {
  color: var(--muted);
  font-size: 0.84rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  background: rgba(238, 63, 44, 0.14);
  color: #ff8d80;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.project-card h3,
.legal-card h2 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.project-points,
.legal-list,
.contact-list {
  display: grid;
  gap: 10px;
}

.project-points {
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-points li,
.legal-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.project-points li::before,
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.text-link {
  color: #fff;
  font-weight: 700;
}

.feature-card p,
.site-footer p,
.project-card p,
.legal-card p,
.legal-card li,
.contact-list dd {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-warning {
  border-color: rgba(238, 63, 44, 0.35);
}

.legal-note {
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-list {
  margin: 0;
}

.contact-list div {
  display: grid;
  gap: 4px;
}

.contact-list dt {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list dd {
  margin: 0;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

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

.site-footer p { font-size: 0.95rem; }
.footer-copy { white-space: nowrap; }

@media (max-width: 1024px) {
  .feature-grid,
  .contact-strip,
  .projects-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100vw - 20px), var(--max-width));
    padding-top: 14px;
  }

  .site-header,
  .site-footer,
  .section-grid,
  .contact-strip {
    padding: 16px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header {
    position: relative;
    top: 0;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 190px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding: 32px;
  }

  .hero-copy {
    gap: 18px;
    padding-top: 8px;
    max-width: 360px;
  }

  .hero-text {
    font-size: 0.96rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
  }

  .consult-card {
    width: 100%;
    padding: 22px;
  }

  .section-heading h2,
  .contact-strip h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}
