:root {
  color-scheme: dark;
  --nav-height: clamp(4.5rem, 7vw, 6.25rem);
  --page-black: #050505;
  --ink: #11110f;
  --paper: #f1f0eb;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--page-black);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-black);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--page-black);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 clamp(1rem, 4vw, 4rem);
}

.nav-link {
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.35rem;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(12.5rem, 24vw, 22rem);
  min-height: 2.75rem;
  color: white;
  text-decoration: none;
}

.brand:focus-visible {
  outline: 2px solid white;
  outline-offset: 0.35rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--nav-height));
  overflow: hidden;
  background: #172017;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 5, 0.7) 0%, rgba(4, 7, 5, 0.2) 58%, transparent 100%),
    linear-gradient(0deg, rgba(4, 7, 5, 0.38) 0%, transparent 48%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  bottom: clamp(2.75rem, 9vh, 6.5rem);
  left: clamp(1.25rem, 6vw, 6rem);
  max-width: 56rem;
  opacity: 0;
  animation: hero-reveal 1.25s cubic-bezier(0.22, 1, 0.36, 1) 280ms forwards;
}

.hero h1 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6.6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.93;
  text-wrap: balance;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 200ms ease, gap 200ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  gap: 1rem;
  border-color: white;
}

.hero-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 0.5rem;
}

.companies {
  scroll-margin-top: 1rem;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem);
  background: var(--paper);
  color: var(--ink);
}

.section-heading p {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

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

.company-card {
  display: flex;
  min-height: clamp(17rem, 32vw, 31rem);
  margin: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--page-black);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.company-logo-link {
  display: grid;
  flex: 1;
  padding: clamp(2rem, 5vw, 5rem);
  place-items: center;
}

.company-logo-link img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.company-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 1.25rem 2.75rem rgba(17, 17, 15, 0.16);
}

.company-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 0.4rem;
}

.company-logo-link:focus-visible,
.company-actions a:focus-visible {
  outline: 2px solid white;
  outline-offset: -0.4rem;
}

.company-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.company-actions a {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.company-actions a:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.company-actions a:hover {
  color: white;
}

.company-profile {
  min-height: calc(100svh - var(--nav-height));
  background: var(--paper);
  color: var(--ink);
}

.profile-hero {
  display: grid;
  min-height: clamp(22rem, 48vw, 38rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem);
  place-items: center;
  background: var(--page-black);
}

.profile-hero img {
  width: min(55rem, 78vw);
  max-height: 17rem;
  object-fit: contain;
}

.profile-copy {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(18rem, 1.3fr);
  gap: clamp(3rem, 9vw, 9rem);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem);
}

.profile-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.profile-summary {
  align-self: end;
}

.profile-summary p {
  max-width: 47rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.45rem);
  line-height: 1.3;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.profile-links a {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  border-bottom-width: 2px;
}

.site-footer {
  display: flex;
  align-items: center;
  min-height: 11rem;
  padding: 2rem clamp(1.25rem, 6vw, 6rem);
  background: var(--page-black);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 42rem) {
  :root {
    --nav-height: 4.75rem;
  }

  .navbar {
    padding-inline: 1rem;
  }

  .brand {
    width: min(14.5rem, 70vw);
  }

  .nav-link {
    font-size: 0.6875rem;
  }

  .hero-image {
    object-position: 55% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(4, 7, 5, 0.78) 0%, rgba(4, 7, 5, 0.08) 74%);
  }

  .hero-content {
    bottom: 2.5rem;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13.5vw, 4.25rem);
  }

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

  .company-card {
    min-height: 17rem;
  }

  .company-logo-link {
    min-height: 13rem;
  }

  .company-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero {
    min-height: 21rem;
  }

  .profile-hero img {
    width: 100%;
  }

  .profile-copy {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content {
    opacity: 1;
    animation: none;
  }

  .nav-link::after,
  .hero-link,
  .company-card {
    transition: none;
  }
}
