:root {
  color-scheme: dark;
  --page-edge: clamp(24px, 5vw, 96px);
  --shell-width: min(1600px, calc(100% - (var(--page-edge) * 2)));
  --header-height: 72px;
  --footer-height: 62px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Geologica", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  width: var(--shell-width);
  min-height: var(--header-height);
  padding-inline: clamp(10px, 1.4vw, 24px);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(18px, 2.4vw, 36px);
  border-bottom: 1px solid rgb(255 255 255 / 84%);
  transform: translateX(-50%);
}

.logo-link {
  display: block;
  flex: 0 0 auto;
}

.logo {
  width: 84px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-20px, 4px);
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.home-link {
  width: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}

.header-actions {
  justify-self: end;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-family: Inter, Arial, sans-serif;
}

.projects-menu {
  position: relative;
  display: inline-flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: center;
}

.nav-trigger,
.nav-link,
.projects-menu > a,
nav > a,
.project-dropdown a {
  position: relative;
  width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: inherit;
}

.nav-link::before,
nav > a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(clamp(16px, 2.4vw, 30px) / -2);
  width: 1px;
  height: 16px;
  background: rgb(255 255 255 / 72%);
  transform: translate(-50%, -50%);
}

.project-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 132px;
  padding: 18px 0 12px;
  border-top: 1px solid rgb(255 255 255 / 72%);
  border-bottom: 1px solid rgb(255 255 255 / 38%);
  background: #000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.projects-menu:hover .project-dropdown,
.projects-menu:focus-within .project-dropdown,
.projects-menu.is-open .project-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.project-dropdown a {
  width: 100%;
  min-height: 28px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.project-dropdown a:hover,
.project-dropdown a:focus-visible,
.nav-trigger:hover,
.nav-trigger:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
nav > a:hover,
nav > a:focus-visible {
  color: #fff;
  outline: none;
}

.language-toggle {
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}

.language-toggle:hover {
  border-color: #fff;
}

.home-link:hover,
.home-link:focus-visible {
  color: #fff;
  outline: none;
}

main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 32px) var(--page-edge)
    calc(var(--footer-height) + 32px);
}

.wordmark-lockup {
  width: min(930px, 84vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  filter: invert(1);
  user-select: none;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: 6.25rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}

.contact-main,
.projects-main,
.privacy-main {
  align-items: center;
  width: var(--shell-width);
  margin-inline: auto;
}

.contact-panel,
.project-panel,
.projects-panel,
.privacy-panel {
  width: min(680px, 100%);
}

.page-kicker {
  margin: 0 0 22px;
  color: rgb(255 255 255 / 62%);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.contact-copy,
.project-copy,
.project-subtitle,
.projects-copy {
  max-width: 520px;
  margin: 26px 0 34px;
  color: rgb(255 255 255 / 72%);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0;
}

.projects-panel {
  width: min(920px, 100%);
}

.projects-heading {
  max-width: 680px;
}

.project-row {
  min-height: 122px;
  margin-top: clamp(34px, 5vw, 70px);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  border-top: 1px solid rgb(255 255 255 / 62%);
  border-bottom: 1px solid rgb(255 255 255 / 38%);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  text-decoration: none;
}

.project-number,
.project-row-status {
  color: rgb(255 255 255 / 58%);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.project-row-main {
  display: grid;
  gap: 10px;
}

.project-row-main strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.project-row-main span {
  color: rgb(255 255 255 / 68%);
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: 0;
}

.project-row:hover,
.project-row:focus-visible {
  border-color: rgb(255 255 255 / 86%);
  outline: none;
}

.project-main {
  align-items: center;
  width: var(--shell-width);
  margin-inline: auto;
}

.project-subtitle {
  margin-bottom: 18px;
  color: #fff;
}

.project-copy {
  margin-top: 0;
}

.project-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 62%);
  border-bottom: 1px solid rgb(255 255 255 / 42%);
  color: rgb(255 255 255 / 74%);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgb(255 255 255 / 72%);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.contact-email:hover {
  border-color: #fff;
}

.privacy-main {
  align-items: flex-start;
}

.privacy-panel {
  width: min(760px, 100%);
  padding-block: clamp(24px, 4vw, 56px);
}

.privacy-panel h1 {
  text-align: left;
}

.privacy-updated,
.privacy-intro,
.privacy-section p {
  max-width: 660px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(0.94rem, 1.4vw, 1.08rem);
  font-weight: 300;
  line-height: 1.7;
}

.privacy-updated {
  margin-top: 18px;
  color: rgb(255 255 255 / 48%);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-intro {
  margin-top: 34px;
  color: #fff;
}

.privacy-section {
  max-width: 660px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 38%);
}

.privacy-section h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.privacy-section .contact-email {
  margin-top: 16px;
}

.site-footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  width: var(--shell-width);
  min-height: var(--footer-height);
  padding-inline: clamp(10px, 1.4vw, 24px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  border-top: 1px solid rgb(255 255 255 / 56%);
  color: rgb(255 255 255 / 72%);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.site-footer > :last-child {
  justify-self: end;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.footer-nav a {
  color: rgb(255 255 255 / 78%);
  font: inherit;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  outline: none;
}

@media (max-width: 980px) {
  :root {
    --page-edge: 32px;
  }

  h1 {
    font-size: 4.75rem;
  }

  .wordmark-lockup {
    width: min(760px, 84vw);
  }
}

@media (max-width: 640px) {
  :root {
    --page-edge: 16px;
    --header-height: 120px;
    --footer-height: 104px;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 66px 46px;
    padding-inline: 10px;
    column-gap: 0;
    row-gap: 0;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
  }

  .logo {
    width: 70px;
    transform: translate(-12px, 4px);
  }

  .language-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .home-link {
    grid-column: 1;
    grid-row: 2;
    width: 72px;
    justify-self: start;
    font-size: 0.66rem;
  }

  .header-actions {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: end;
  }

  nav {
    gap: 16px;
  }

  .nav-trigger,
  .nav-link,
  nav > a {
    width: 72px;
    font-size: 0.66rem;
  }

  .nav-link::before,
  nav > a + a::before {
    left: -8px;
    height: 14px;
  }

  .project-dropdown {
    min-width: 116px;
  }

  .projects-menu {
    min-height: 46px;
  }

  .project-dropdown a {
    font-size: 0.62rem;
  }

  .language-toggle {
    min-width: 36px;
    height: 26px;
    padding-inline: 8px;
    font-size: 0.66rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    row-gap: 7px;
    padding-block: 10px;
  }

  .site-footer > :last-child {
    justify-self: start;
  }

  .footer-nav {
    order: -1;
    justify-self: center;
  }

  main {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: calc(var(--footer-height) + 28px);
  }

  .wordmark-lockup {
    width: min(560px, 88vw);
  }

  h1 {
    font-size: 3.35rem;
    text-align: left;
  }

  .contact-main {
    align-items: flex-start;
  }

  .privacy-main {
    align-items: flex-start;
  }

  .project-main {
    align-items: flex-start;
  }

  .projects-main {
    align-items: flex-start;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 460px) {
  .nav-trigger,
  .nav-link,
  nav > a {
    width: 68px;
  }

  .site-footer {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 2.75rem;
  }
}
