:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0d0d0d;
  --line: #262626;
  --line-strong: #f4f4f4;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --subtle: #707070;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --speed: 190ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

a,
button {
  cursor: pointer;
}

a:focus-visible {
  outline: 1px solid rgba(245, 245, 245, 0.72);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(16px);
  transition: background-color var(--speed) var(--ease);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-link img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.site-header nav a,
.contact-link,
.brand-link {
  transition:
    color var(--speed) var(--ease),
    opacity var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    text-shadow var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.brand-link:hover,
.brand-link:focus-visible {
  color: var(--text);
  text-shadow: 0 0 18px rgba(245, 245, 245, 0.18);
}

.brand-link:hover img,
.brand-link:focus-visible img {
  opacity: 0.88;
  transform: scale(1.035);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  align-content: start;
  width: min(var(--max), calc(100% - 40px));
  min-height: 560px;
  margin: 0 auto;
  padding: 86px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 180px;
  content: "";
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0), var(--bg) 82%);
  pointer-events: none;
}

.hero::before {
  position: absolute;
  top: 6%;
  right: -18%;
  width: min(620px, 54%);
  aspect-ratio: 1;
  content: "";
  background: url("assets/brl-icon.svg") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.hero-lockup {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1120px, 100%);
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  object-fit: contain;
  transition: opacity 240ms var(--ease), filter 240ms var(--ease);
}

.hero:hover::before {
  opacity: 0.13;
  transform: translate3d(-4px, -2px, 0) scale(1.01);
}

.hero:hover .hero-lockup {
  filter: drop-shadow(0 0 18px rgba(245, 245, 245, 0.08));
  opacity: 0.98;
}

.section-kicker,
.project-index {
  margin: 0;
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 920px;
  margin: 16px 0 0;
  font-size: 5.6rem;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tagline {
  margin: 30px 0 0;
  color: var(--text);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.05;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.mission h2,
.contact h2 {
  max-width: 940px;
  margin: 18px 0 0;
  font-size: 4.75rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-size: 4.15rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.035), rgba(245, 245, 245, 0) 42%),
    rgba(13, 13, 13, 0.72);
  transition:
    background-color var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    transform var(--speed) var(--ease);
  will-change: transform;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(244, 244, 244, 0.34);
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.055), rgba(245, 245, 245, 0) 48%),
    rgba(18, 18, 18, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(245, 245, 245, 0.08);
  transform: translateY(-4px);
}

.service-card h3 {
  max-width: 16ch;
  margin: 54px 0 18px;
  font-size: 1.45rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.service-card p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid rgba(245, 245, 245, 0.58);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    background-color var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.service-cta:hover,
.service-cta:focus-visible {
  border-color: rgba(245, 245, 245, 0.86);
  background: rgba(245, 245, 245, 0.055);
  box-shadow: 0 0 24px rgba(245, 245, 245, 0.1);
  transform: translateY(-2px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.project {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.78);
  transition:
    background-color var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    transform var(--speed) var(--ease);
  will-change: transform;
}

.project:hover,
.project:focus-within {
  border-color: rgba(244, 244, 244, 0.34);
  background: rgba(18, 18, 18, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(245, 245, 245, 0.08);
  transform: translateY(-4px);
}

.project h3 {
  margin: 46px 0 18px;
  font-size: 1.35rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.project-meta {
  margin: 16px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project .project-meta {
  margin: 16px 0 0;
  color: var(--subtle);
}

.project p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact {
  min-height: 420px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  margin-top: 34px;
  border-bottom: 2px solid var(--line-strong);
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 0 0 rgba(245, 245, 245, 0);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text);
  border-color: rgba(245, 245, 245, 0.72);
  text-shadow: 0 0 22px rgba(245, 245, 245, 0.16);
  transform: translateY(-3px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.social-links a {
  transition:
    color var(--speed) var(--ease),
    opacity var(--speed) var(--ease),
    text-shadow var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 16px rgba(245, 245, 245, 0.14);
  transform: translateY(-1px);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .site-header {
    width: min(var(--max), calc(100% - 28px));
    padding: 16px 0;
  }

  .brand-link span {
    display: none;
  }

  .site-header nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  .hero,
  .section,
  .site-footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: 640px;
    padding: 38px 0 58px;
  }

  .hero::before {
    top: 10%;
    right: -44%;
    width: 112%;
  }

  .hero-lockup {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  h1 {
    font-size: 4.45rem;
  }

  .tagline {
    font-size: 1.65rem;
  }

  .section {
    padding: 76px 0;
  }

  .mission h2,
  .contact h2,
  .section-heading h2 {
    font-size: 3rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 14px;
  }

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

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

  .service-card {
    min-height: 220px;
    padding: 24px;
  }

  .service-card h3 {
    margin-top: 42px;
  }

  .project {
    min-height: 220px;
    padding: 24px;
  }

  .project h3 {
    margin-top: 42px;
  }

  .contact-link {
    font-size: 1.45rem;
  }

  .site-footer {
    display: block;
  }

  .social-links {
    margin-bottom: 18px;
  }
}

@media (max-width: 430px) {
  .site-header nav {
    gap: 10px;
  }

  .site-header nav a {
    font-size: 0.72rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero {
    min-height: 560px;
  }

  .mission h2,
  .contact h2,
  .section-heading h2 {
    font-size: 2.25rem;
  }

  .contact-link {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .brand-link:hover img,
  .brand-link:focus-visible img,
  .hero:hover::before,
  .project:hover,
  .project:focus-within,
  .service-card:hover,
  .service-card:focus-within,
  .service-cta:hover,
  .service-cta:focus-visible,
  .contact-link:hover,
  .contact-link:focus-visible,
  .site-header nav a:hover,
  .site-header nav a:focus-visible,
  .social-links a:hover,
  .social-links a:focus-visible {
    transform: none;
  }
}
