:root {
  --bg: #08080c;
  --bg-elevated: #101017;
  --bg-soft: #17171f;
  --text: #f7f7f4;
  --muted: #b8b8bf;
  --muted-2: #7f8088;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #e16d2f;
  --orange-strong: #f07a35;
  --logo-gray: #9c9ca3;
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, Inter, Avenir Next, Segoe UI, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: clip;
}

:where(h1, h2, h3, p, .lead, .eyebrow, .section-inner, .hero-content, .grid-two > *, .service-card, .content-card, .person-card, .legal-card, .stat, .footer-inner > *) {
  overflow-wrap: anywhere;
  hyphens: auto;
}

:where(.section-inner, .hero-content, .grid-two, .grid-two > *, .service-grid, .card-grid, .values-grid, .stats-grid, .service-card, .content-card, .person-card, .legal-card, .stat, .footer-inner, .footer-inner > *) {
  min-width: 0;
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 88px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 154px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button:hover,
.contact-button:hover,
.button:focus-visible,
.contact-button:focus-visible {
  background: var(--orange-strong);
  color: #050508;
  transform: translateY(-1px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(240, 122, 53, 0.72);
  background: rgba(240, 122, 53, 0.1);
  color: var(--text);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0;
  gap: 4px;
  flex-direction: column;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button[aria-expanded="true"] {
  border-color: rgba(240, 122, 53, 0.68);
  background: rgba(240, 122, 53, 0.1);
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  width: 100%;
  min-width: 0;
}

.section {
  position: relative;
  padding: 96px 24px;
}

.section.tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100svh - 112px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.glow {
  position: relative;
  overflow: hidden;
}

.hero::before,
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero::after,
.glow::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,109,47,0.42), rgba(225,109,47,0.08) 48%, transparent 72%);
  filter: blur(18px);
  opacity: 0.8;
  left: 42%;
  top: 30%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}

.eyebrow {
  color: var(--orange);
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
.display {
  margin: 0;
  max-width: 980px;
  font-size: clamp(3.25rem, 7.3vw, 6rem);
  line-height: 0.96;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 24px;
  max-width: 850px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.grid-two h2 {
  max-width: 100%;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.18;
}

h1,
h2,
h3,
.display {
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.service-grid,
.card-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.content-card,
.person-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
  padding: 24px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

a.service-card:hover,
a.service-card:focus-visible {
  border-color: rgba(240, 122, 53, 0.62);
  background: rgba(255,255,255,0.055);
  transform: translateY(-2px);
}

.service-card {
  min-height: 190px;
}

.service-card .index {
  display: block;
  color: var(--orange);
  font-weight: 850;
  margin-bottom: 24px;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--orange);
}

.band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.stat {
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

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

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.accordion-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-weight: 800;
}

.accordion-panel {
  display: none;
  padding: 18px 0 0;
}

.accordion-panel.open {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 24px;
  background: #050508;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-links,
  .contact-button {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel.open {
    display: grid;
    gap: 8px;
    flex: 0 0 100%;
    padding: 0 0 24px;
  }

  .mobile-panel a {
    border-top: 1px solid var(--line);
    padding: 16px 0;
    color: var(--text);
    font-weight: 800;
  }

  .grid-two,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .card-grid,
  .values-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-logo {
    width: 132px;
  }

  .section {
    padding: 72px 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 52px 24px 64px;
  }

  h1,
  .display {
    font-size: clamp(2.35rem, 10.8vw, 4.5rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 10.5vw, 3.4rem);
    line-height: 1.03;
  }

  .hero::after,
  .glow::after {
    width: min(640px, 120vw);
    height: min(640px, 120vw);
  }
}
