:root {
  --bg: #090909;
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #f5f7fa;
  --muted: #b8bec9;
  --accent: #d83939;
  --accent-soft: rgba(216, 57, 57, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 57, 57, 0.22), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #0b0b0d 0%, #101114 45%, #090909 100%);
  min-height: 100vh;
}

body.mobile-menu-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.06), transparent 35%, rgba(255,255,255,0.04) 60%, transparent 100%);
  opacity: 0.8;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-radius: var(--radius);
}

.glossy-surface {
  position: relative;
  overflow: hidden;
}

.glossy-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 28%, transparent 68%, rgba(255,255,255,0.05));
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(17,17,22,0.62), rgba(9,9,14,0.42));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #d83939 65%, #5f0c0c);
  box-shadow: 0 0 30px rgba(216,57,57,0.55);
  flex: 0 0 auto;
}

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

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

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

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

.nav-link,
.nav-cta,
.button,
.mobile-menu-link,
.mobile-menu-close,
.text-link {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.nav-cta,
.button-primary {
  background: linear-gradient(180deg, rgba(216,57,57,0.95), rgba(151,22,22,0.95));
  color: white;
  box-shadow: 0 18px 30px rgba(216,57,57,0.28);
}

.button-secondary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2d0d0;
  font-weight: 600;
}

.text-link:hover,
.nav-cta:hover,
.button:hover,
.mobile-menu-link:hover,
.mobile-menu-close:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-menu-panel {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 0 34px;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-close {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
}

.mobile-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 420px);
}

.mobile-menu-link {
  width: 100%;
  padding: 16px 18px;
  border-radius: 22px;
  text-align: center;
  font-size: clamp(1.15rem, 5vw, 2rem);
  font-weight: 600;
  color: #f4f5f8;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-link.is-active {
  background: rgba(255,255,255,0.12);
}

.mobile-menu-cta {
  width: min(100%, 420px);
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.hero-section,
.page-shell {
  padding: 24px 0 34px;
}

.hero-shell,
.split-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 32px;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.15rem, 4vw, 4.4rem);
  line-height: 1.02;
  margin: 14px 0 18px;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.content-panel p,
.project-card p,
.feature-card p,
.footer-note,
.metric-box span,
.card-body p {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow,
.project-type,
.visual-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #f0d7d7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.image-card img {
  width: calc(100% - 24px);
  margin: 12px auto 12px;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.22);
  object-fit: cover;
  background: rgba(255,255,255,0.03);
  aspect-ratio: 4 / 3;
}

.hero-visual,
.hero-side-image,
.gallery-card {
  align-self: stretch;
}

.hero-visual img,
.hero-side-image img {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.service-card img,
.project-card img {
  aspect-ratio: 16 / 10;
}

.gallery-card img {
  aspect-ratio: 1 / 1;
}

.card-body {
  padding: 10px 18px 20px;
}

.card-body h3,
.card-body h2,
.content-panel h2,
.section-heading h2,
.cta-shell h2 {
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-spacing {
  padding: 28px 0;
}

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

.feature-grid,
.project-grid,
.contact-grid,
.two-column-grid,
.split-section,
.service-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.split-section,
.contact-grid,
.two-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.project-card,
.service-card,
.content-panel,
.page-hero,
.cta-shell,
.metrics-panel,
.large-card {
  padding: 24px;
}

.feature-card h3,
.project-card h3,
.service-card h3 {
  font-size: 1.2rem;
}

.metrics-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
}

.metric-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.detail-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.92rem;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #99a1ad;
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer {
  padding: 10px 0 28px;
}

.footer-shell {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 980px) {
  .hero-shell,
  .split-hero,
  .feature-grid,
  .project-grid,
  .service-grid,
  .gallery-grid,
  .split-section,
  .contact-grid,
  .two-column-grid,
  .cta-shell,
  .footer-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 0 10px;
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(22,22,28,0.58), rgba(10,10,14,0.34));
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .brand {
    padding: 16px 18px 16px 20px;
    gap: 14px;
  }

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

  .brand-copy small {
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 84px;
    height: auto;
    min-height: 76px;
    border: none;
    border-radius: 0 36px 36px 0;
    background: transparent;
    box-shadow: none;
  }

  .menu-toggle span {
    width: 24px;
    height: 3px;
    margin: 3px 0;
    background: #f6f2ed;
  }

  .hero-shell,
  .split-hero,
  .page-hero {
    padding: 24px;
  }
}

@media (min-width: 769px) {
  .mobile-menu-overlay {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero-shell,
  .split-hero,
  .page-hero,
  .feature-card,
  .project-card,
  .service-card,
  .content-panel,
  .cta-shell,
  .metrics-panel,
  .footer-shell {
    padding: 18px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
