:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0a0a0a;
  --ink: #f2eee8;
  --muted: #aaa29a;
  --faint: #5f5953;
  --line: rgba(242, 238, 232, 0.16);
  --accent: #c6a874;
  --field: #111;
  --max: 1120px;
  --font-narrow: "Nimbus Sans Narrow", "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed", sans-serif;
}

@font-face {
  font-family: "Nimbus Sans Narrow";
  src: url("assets/NimbusSansNarrow-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-narrow);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--accent);
  color: #050505;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-5rem);
  border: 1px solid var(--line);
  background: #111;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0));
  pointer-events: none;
}

.brand,
.top-nav a,
.panel-nav a {
  pointer-events: auto;
}

.brand {
  display: block;
  width: min(100%, 1748px);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
}

.top-nav {
  display: none;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:focus-visible,
.top-nav a:hover,
.brand:focus-visible,
.brand:hover {
  color: var(--ink);
  outline: none;
}

.panel-nav {
  position: fixed;
  z-index: 10;
  right: 0.8rem;
  top: 50%;
  display: grid;
  gap: 0.55rem;
  transform: translateY(-50%);
}

.panel-nav a {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(242, 238, 232, 0.52);
  border-radius: 50%;
  opacity: 0.55;
}

.panel-nav a[aria-current="true"],
.panel-nav a:focus-visible,
.panel-nav a:hover {
  background: var(--ink);
  opacity: 1;
  outline: none;
}

.intro-sequence {
  background: #020202;
}

.photo-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 5.25rem 1rem 2.5rem;
  scroll-snap-align: start;
}

.photo-panel::after {
  display: none;
  content: "";
}

.photo-panel picture {
  display: block;
  width: min(100%, 76vh, 920px);
  max-height: 76svh;
}

.photo-panel img {
  width: 100%;
  max-height: 76svh;
  object-fit: contain;
  object-position: var(--focus, center center);
  border: 0;
  background: transparent;
}

main {
  background: var(--bg);
}

.form-result {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.form-result h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 0.98;
}

.sequence-statement {
  display: grid;
  min-height: 70svh;
  padding: clamp(4.5rem, 12vw, 8rem) 1rem;
  place-items: center;
  scroll-snap-align: start;
}

.sequence-statement h1 {
  width: min(100%, var(--max));
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 0.98;
  text-align: center;
}

.content-section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.intro-note {
  border-top: 0;
}

.section-kicker {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h2 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 9vw, 4.7rem);
  font-weight: 400;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
  font-weight: 400;
}

p {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.split {
  display: grid;
  gap: 2rem;
}

.collab-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.collab-grid article {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.form-section {
  display: grid;
  gap: 2.5rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

input,
select,
textarea,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

input,
select,
textarea {
  min-height: 3rem;
  background: var(--field);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(198, 168, 116, 0.18);
}

button {
  min-height: 3.25rem;
  margin-top: 0.5rem;
  background: var(--ink);
  color: #050505;
  cursor: pointer;
}

button:focus-visible,
button:hover {
  background: var(--accent);
  outline: none;
}

.about-section {
  display: grid;
  gap: 2rem;
}

.about-section picture {
  display: block;
}

.about-section img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-section {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 6rem;
}

.contact-links {
  display: grid;
  gap: 0.85rem;
}

.contact-links a {
  width: fit-content;
  color: var(--ink);
  text-decoration-color: var(--faint);
  text-underline-offset: 0.3em;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

@media (min-width: 720px) {
  .top-nav {
    display: flex;
  }

  .photo-panel {
    padding-inline: 2.5rem;
  }

  .photo-panel picture {
    width: min(70vw, 1050px);
    max-height: 78svh;
  }

  .photo-panel img {
    max-height: 78svh;
  }

  .split,
  .form-section,
  .about-section,
  .contact-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1fr);
    align-items: start;
  }

  .collab-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
