:root {
  --bg: #f9f9f9;
  --ink: #1a1c1c;
  --muted: #5e5e5e;
  --line: #e5e5e5;
  --red: #be0000;
  --red-deep: #910000;
  --black: #000000;
  --white: #ffffff;
  --max: 1280px;
  --pad: 20px;
  --stack: 80px;
  --nav: 80px;
  --font-headline: "Hanken Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-label: "JetBrains Mono", ui-monospace, monospace;
}

@media (min-width: 768px) {
  :root {
    --pad: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: flex;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  border-radius: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  border-radius: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.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;
}

/* Nav */

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--white);
}

body:has(.page) .site-nav {
  position: relative;
  color: var(--ink);
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 72px;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  cursor: pointer;
}

.nav-burger-icon,
.nav-burger-icon::before,
.nav-burger-icon::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.nav-burger-icon {
  position: relative;
}

.nav-burger-icon::before,
.nav-burger-icon::after {
  position: absolute;
  left: 0;
}

.nav-burger-icon::before {
  top: -7px;
}

.nav-burger-icon::after {
  top: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-pages {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-pages a,
.nav-contact {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, currentColor 48%, transparent);
  border: 0;
  background: none;
  min-height: 0;
  padding: 0;
}

.nav-pages a:hover,
.nav-contact:hover,
.nav-pages a[aria-current="page"],
.nav-contact[aria-current="page"] {
  color: currentColor;
  background: none;
}

@media (max-width: 767px) {
  .nav-burger {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 4px var(--pad) 20px;
    background: var(--black);
  }

  body:has(.page) .nav-links {
    background: var(--bg);
  }

  .nav-pages {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked + .nav-burger .nav-burger-icon {
    background: transparent;
  }

  .nav-toggle:checked + .nav-burger .nav-burger-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-burger .nav-burger-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 40px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
  transition: color 0.3s ease;
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--black);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--black);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav) + 32px) var(--pad) 96px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.hero-logo {
  width: min(280px, 64vw);
  height: auto;
  margin: 0 0 48px;
  display: block;
  transform: scale(1.12);
  clip-path: inset(8% 6% 8% 6%);
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 40rem;
  margin: 0 0 48px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue i {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 80px;
  }
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  background: #f3f3f3;
}

.card h2,
.page h1 {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card h2 {
  font-size: 24px;
  line-height: 32px;
}

.card p,
.page-lead {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .cards-2,
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Inner pages */

.page {
  padding-top: 48px;
  padding-bottom: var(--stack);
}

.page h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.page-lead {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 28px;
}

.titles {
  margin-top: 48px;
}

.titles h2 {
  margin: 0 0 32px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.titles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.titles li + li {
  margin-top: 32px;
}

.titles h3 {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.01em;
}

.titles p {
  margin: 0;
  color: var(--muted);
}

.page .cards {
  margin-top: 48px;
}

.text-link {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.text-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.shots {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.shots figcaption {
  margin-top: 12px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

/* Contact */

.contact-kicker {
  margin: 0 0 16px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-page h1 {
  margin: 0 0 48px;
  max-width: 10em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.contact-address {
  margin: 0;
  max-width: 22em;
  font-style: normal;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
}

.contact-address span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 800px) {
  .contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 48px;
    align-items: end;
  }

  .contact-kicker,
  .contact-page h1 {
    grid-column: 1;
  }

  .contact-page h1 {
    margin-bottom: 0;
    font-size: 64px;
    line-height: 1.05;
  }

  .contact-address {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  scroll-margin-top: 24px;
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.app-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.app-index a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.app-index a span {
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}

.page .app-index {
  margin-bottom: 48px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 48px;
}

.company-contact {
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.company-contact a {
  color: var(--ink);
}

.company-contact span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.app-index a:hover span {
  color: var(--ink);
}

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

  .btn-secondary,
  .btn-secondary::before {
    transition: none;
  }
}
