:root {
  --bg: #191919;
  --panel: #202020;
  --text: #f5f5f2;
  --muted: #8e8e8e;
  --line: rgba(255, 255, 255, .16);
  --accent: #df1124;
  --shadow: rgba(0, 0, 0, .5);
  --ui: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Orbitron", "JetBrains Mono", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 44%, rgba(118, 30, 36, .22), transparent 24rem),
    linear-gradient(180deg, #202020 0%, #171717 70%, #151515 100%);
  font-family: var(--ui);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(1720px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(18, 18, 18, .72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.brand {
  font-size: clamp(1.65rem, 2.1vw, 2.35rem);
  font-weight: 800;
  letter-spacing: .02em;
}

.brand span {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.6rem);
  justify-content: flex-start;
  padding-left: 4vw;
}

.desktop-nav a {
  color: #aaa;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.outline-btn,
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 60px;
  padding: 0 1.7rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.outline-btn:hover,
.solid-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .42);
}

.solid-btn {
  background: #f6f6f2;
  color: #191919;
  border-color: #f6f6f2;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(38%, .82fr);
  align-items: center;
  width: min(1720px, calc(100% - 12vw));
  min-height: 920px;
  margin: 0 auto;
  padding-top: 112px;
}

.hero::after {
  position: absolute;
  inset: auto -12vw 0;
  height: 255px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(16, 16, 16, .92) 62%, #191919);
  pointer-events: none;
  z-index: 3;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 1040px;
  padding-top: 40px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 5.55vw, 6.95rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: .01em;
}

.hero-copy p {
  max-width: 760px;
  margin: 76px 0 0;
  color: var(--muted);
  font-size: clamp(.92rem, 1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.55rem;
  margin-top: 70px;
}

.portrait-wrap {
  position: absolute;
  inset: 0 -7vw 0 auto;
  width: min(57vw, 1060px);
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
}

.portrait-wrap::before {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 56%;
  content: "";
  background: linear-gradient(90deg, #202020 0%, rgba(32, 32, 32, .84) 38%, transparent 100%);
  z-index: 2;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.06) brightness(.82);
  opacity: .92;
}

.stats {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: min(1720px, calc(100% - 12vw));
  margin: -78px auto 0;
  padding: 0 0 72px;
}

.stats article {
  text-align: center;
}

.stats strong {
  display: block;
  color: #fbfbf8;
  font-size: clamp(3.2rem, 4.6vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

.stats strong span {
  color: var(--accent);
}

.stats p {
  margin: 24px 0 0;
  color: #9a9a9a;
  font-size: clamp(.82rem, .9vw, 1rem);
  font-weight: 700;
  letter-spacing: .01em;
}

.content-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
}

.content-band > div {
  min-height: 260px;
  padding: clamp(2rem, 4vw, 4rem);
  background: #181818;
}

.content-band h2 {
  margin: 0 0 1.2rem;
  color: #f1f1ef;
  font-size: .95rem;
  letter-spacing: .12em;
}

.content-band h2 a {
  transition: color .2s ease;
}

.content-band h2 a:hover {
  color: var(--accent);
}

.content-band p {
  margin: 0;
  color: #9d9d9d;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 6vw;
  background: #111;
  color: #9b9b9b;
  font-weight: 700;
}

.site-footer span {
  color: #f4f4f1;
}

.site-footer a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #f5f5f2;
  font-size: .9rem;
  font-weight: 800;
}

.social-links a:hover {
  border-color: rgba(255, 255, 255, .42);
  color: var(--accent);
}

.admin-page {
  min-height: 100vh;
  padding: 48px 6vw;
  background: #151515;
}

.admin-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .1);
  background: #1f1f1f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.admin-card.narrow {
  width: min(480px, 100%);
  margin-top: 12vh;
}

.admin-card h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

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

.field {
  display: grid;
  gap: .55rem;
  margin-bottom: 1rem;
}

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

label {
  color: #b8b8b8;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  color: #fff;
  background: #141414;
  font: 600 1rem/1.45 var(--ui);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}

.message {
  margin: 0 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(223, 17, 36, .35);
  color: #fff;
  background: rgba(223, 17, 36, .12);
}

@media (max-width: 1180px) {
  .site-header,
  .hero,
  .stats {
    width: min(100% - 7vw, 1100px);
  }

  .site-header {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 16px;
  }

  .desktop-nav {
    justify-content: center;
    gap: clamp(1rem, 2.4vw, 1.8rem);
    min-width: 0;
    padding-left: 0;
  }

  .desktop-nav a {
    font-size: .82rem;
  }

  .top-contact {
    min-height: 52px;
    max-width: 164px;
    padding-inline: 1rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 68px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 8.4vw, 6.2rem);
  }

  .hero-copy p {
    margin-top: 56px;
  }

  .hero-actions {
    margin-top: 54px;
  }

  .portrait-wrap {
    width: 58vw;
    opacity: .76;
  }

  .stats {
    margin-top: 0;
    padding-bottom: 64px;
  }

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .top-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
  }

  .hero {
    display: block;
    padding-top: 122px;
  }

  .hero-copy {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 11.4vw, 5.8rem);
  }

  .hero-copy p {
    max-width: 680px;
    margin-top: 48px;
  }

  .hero-actions {
    margin-top: 42px;
  }

  .portrait-wrap {
    inset: 0 -20vw 0 auto;
    width: 86vw;
    opacity: .44;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.3rem 1rem;
  }

  .stats p {
    margin-top: 12px;
  }
}

@media (max-width: 760px) {
  .site-header {
    inset: 14px 0 auto;
    padding: 12px 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5.8rem);
  }

  .outline-btn,
  .solid-btn {
    min-height: 54px;
    padding-inline: 1.2rem;
  }

  .portrait-wrap {
    inset: 0 -32vw 0 auto;
    width: 98vw;
    opacity: .38;
  }

  .content-band,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
