:root {
  --bg: #040404;
  --bg-soft: #0b0b0b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f5f2ed;
  --muted: #b8aea4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d70000;
  --accent-strong: #ff2b2b;
  --container-width: 1180px;
  --section-space: 5.5rem;
  --radius: 1.4rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 0, 0, 0.26), transparent 22%),
    radial-gradient(circle at 85% 18%, rgba(215, 0, 0, 0.12), transparent 18%),
    linear-gradient(180deg, #000 0%, var(--bg-soft) 38%, var(--bg) 100%);
}

body.gallery-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 3.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 3.85rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 70%;
}

.site-nav {
  margin-left: 0;
  justify-self: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.35rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent-strong);
}

.nav-list a[aria-current="page"] {
  color: var(--accent-strong);
}

.page-content {
  padding-bottom: var(--section-space);
}

.hero {
  padding: 5rem 0 2rem;
}

.page-home .hero {
  padding-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-stage {
  padding: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-home-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.hero-copy,
.hero-panel,
.summary-card,
.content-block,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.hero-copy-home {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  max-width: none;
  padding: 0;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 100%;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06)),
    rgba(215, 0, 0, 0.06);
}

.signal-orb {
  width: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-strong), var(--accent) 60%, #8e0000 100%);
  box-shadow: 0 0 80px rgba(215, 0, 0, 0.35);
}

.hero-media-shell {
  width: 100%;
  aspect-ratio: 2.55 / 1;
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at center, rgba(215, 0, 0, 0.18), transparent 45%),
    #020202;
  overflow: hidden;
}

.hero-media-column {
  display: flex;
  width: 100%;
  justify-content: center;
}

.hero-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-media-embed {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.site-header-home {
  width: 100%;
  margin-top: 0;
}

.section-shell {
  padding: var(--section-space) 0 0;
}

.section-label,
.card-tag {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Arial Black", "Avenir Next Condensed", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.2rem, 4.3vw, 3.8rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.page-lead,
.section-note,
.hero-panel p,
.summary-card p,
.content-block p,
.site-footer p,
label {
  color: var(--muted);
  line-height: 1.65;
}

.page-lead {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button-link,
.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(215, 0, 0, 0.75);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.button-link-secondary {
  background: transparent;
  border-color: var(--line);
}

.section-heading {
  margin-bottom: 2rem;
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.form-status {
  display: none;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  line-height: 1.5;
}

.form-status.is-success,
.form-status.is-invalid,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  border-color: rgba(50, 180, 90, 0.45);
  color: #d7f7df;
  background: rgba(28, 92, 48, 0.2);
}

.form-status.is-invalid,
.form-status.is-error {
  border-color: rgba(215, 0, 0, 0.4);
  color: #ffd7d7;
  background: rgba(122, 10, 10, 0.18);
}

.summary-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card {
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.recent-projects-grid .summary-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.recent-projects-grid .card-tag {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}

.project-thumb-button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at center, rgba(215, 0, 0, 0.16), transparent 42%),
    #090909;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

.project-thumb-button span {
  padding: 1rem;
}

.project-thumb-button img,
.project-thumb-button video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.project-gallery-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-panel-list {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-panel-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.info-panel-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.info-panel-item .card-tag,
.info-panel-item p {
  margin-bottom: 0;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-project-name {
  margin-bottom: 0;
}

.gallery-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
}

.gallery-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.gallery-media-main {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at center, rgba(215, 0, 0, 0.14), transparent 42%),
    #0a0a0a;
  overflow: hidden;
}

.gallery-media-main span {
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.gallery-media-main img,
.gallery-media-main video,
.gallery-thumb-button img,
.gallery-thumb-button video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 8rem));
  justify-content: center;
  gap: 0.75rem;
}

.gallery-thumb-button {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090909;
  cursor: pointer;
}

.gallery-thumb-button.is-active {
  border-color: rgba(215, 0, 0, 0.75);
  box-shadow: 0 0 0 1px rgba(215, 0, 0, 0.22);
}

.gallery-thumb-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at center, rgba(215, 0, 0, 0.14), transparent 42%),
    #0a0a0a;
  color: var(--muted);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.service-chip {
  display: grid;
  place-items: center;
  min-height: auto;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
}

.page-home .contact-form,
.page-contact .contact-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.text-link {
  display: inline-flex;
  grid-column: 1 / -1;
  margin-top: 1rem;
  color: var(--accent-strong);
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 7rem;
}

.content-block {
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.contact-summary-layout,
.contact-page-layout {
  align-items: stretch;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-group-full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

input::placeholder,
textarea::placeholder {
  color: #8f8478;
}

.form-actions {
  display: flex;
}

.content-grid-single {
  grid-template-columns: 1fr;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-grid,
  .section-layout {
    grid-template-columns: 1fr;
  }

  .hero-home-layout {
    align-items: stretch;
  }

  .hero-media-column {
    justify-content: center;
  }

  .hero-media-shell {
    width: 100%;
  }

  .section-copy {
    position: static;
  }

  .summary-grid,
  .content-grid,
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .toolbar {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
    padding: 0.75rem 0;
  }

  .site-nav {
    justify-self: center;
  }

  .brand {
    justify-self: center;
    height: 3.2rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-stage {
    padding: 0;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .summary-grid,
  .content-grid,
  .contact-form,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery-modal {
    padding: 1rem;
  }

  .gallery-arrow {
    width: 2.75rem;
  }
}
