:root {
  color-scheme: light dark;
  --canvas: #f1f1ed;
  --surface: #e8e8e3;
  --ink: #171716;
  --muted: #676761;
  --line: #cecec7;
  --accent: #2457d6;
  --page-x: clamp(1.25rem, 4vw, 4.5rem);
  --page-max: 96rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #151515;
    --surface: #20201f;
    --ink: #f1f1ed;
    --muted: #aaa9a3;
    --line: #3b3b38;
    --accent: #7695ea;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.6rem 0.85rem;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-180%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.applications,
.contact,
footer {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.site-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: block;
  width: 7.5rem;
  flex: 0 0 auto;
}

.site-logo picture,
.hero-logo {
  display: block;
}

.site-logo img {
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  font-size: 0.9rem;
}

nav a,
.text-link,
.application a,
.contact-links a {
  text-decoration: none;
}

nav a,
.text-link,
.application a {
  position: relative;
}

nav a::after,
.text-link::after,
.application a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

nav a:hover::after,
.text-link:hover::after,
.application a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: calc(100dvh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 6rem);
  padding-top: clamp(2.5rem, 7vh, 5rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.hero-logo {
  width: min(100%, 44rem);
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}

.hero-logo img {
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 21ch;
  margin-bottom: 2rem;
  font-size: clamp(2.1rem, 4.4vw, 4.85rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 1.08;
}

.text-link {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-art {
  min-height: 32rem;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}

.applications {
  padding-top: clamp(6rem, 13vw, 12rem);
  padding-bottom: clamp(6rem, 11vw, 10rem);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading p,
.contact > p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.application-list {
  border-top: 1px solid var(--line);
}

.application {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(18rem, 1.5fr) minmax(8rem, 0.55fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.25rem, 5vw, 4.25rem);
  border-bottom: 1px solid var(--line);
}

.application-logo {
  width: clamp(4rem, 6vw, 5.25rem);
  aspect-ratio: 1;
}

.application-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.application-details h3 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.application-details p {
  max-width: 30rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.application-details span,
.application-status {
  color: var(--muted);
  font-size: 0.88rem;
}

.application > a,
.application-status {
  justify-self: end;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.application > a {
  color: var(--accent);
  font-weight: 600;
}

.contact {
  padding-top: clamp(6rem, 12vw, 11rem);
  padding-bottom: clamp(7rem, 14vw, 13rem);
}

.contact h2 {
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}

.contact-links a:first-child {
  color: var(--accent);
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.contact-links a {
  transition: opacity 180ms var(--ease);
}

.contact-links a:hover {
  opacity: 0.62;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .site-header {
    min-height: 4rem;
  }

  .site-logo {
    width: 6.25rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-logo {
    width: 100%;
    margin-bottom: 3.25rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .hero-art {
    min-height: 58vw;
    max-height: 25rem;
  }

  .applications,
  .contact {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-heading {
    margin-bottom: 3.5rem;
  }

  .application {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 2.5rem;
  }

  .application > a,
  .application-status {
    justify-self: start;
    margin-top: 0;
  }

  .contact-links {
    margin-top: 3.5rem;
  }

  .contact-links a:first-child {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
