:root {
  --bg: #14171c;
  --surface: #1e232b;
  --surface-2: #2a313c;
  --text: #e6e8eb;
  --muted: #b3b8c0;
  --accent: #c4a35a;
  --accent-2: #8b9aa8;
  --danger: #d97a6c;
  --max: 72rem;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--accent);
}

a:hover {
  color: #ddc07a;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  top: 0.75rem;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-2);
  padding: 1rem;
}

.wordmark {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.wordmark:visited {
  color: var(--text);
}

nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

nav[aria-label="Primary"] a {
  text-decoration: none;
  color: var(--muted);
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

main {
  flex: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0;
}

.lede,
.muted {
  color: var(--muted);
}

.hero-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 6.5rem;
  gap: 0.5rem;
}

.hero-collage .collage-tile {
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--accent-2);
}

.collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-tile--1,
.collage-tile--2 {
  grid-column: 1 / -1;
  grid-row: span 2;
}

@media (min-width: 48rem) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }

  nav[aria-label="Primary"] {
    margin-top: 0;
  }

  main {
    padding: 2rem 1.5rem 4rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-collage {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: unset;
    grid-template-rows: repeat(10, minmax(3.25rem, 8vw));
    grid-template-areas:
      "b  b  b  h  h  h"
      "b  b  b  h  h  h"
      "b  b  b  c  c  c"
      "b  b  b  c  c  c"
      "f1 f1 f2 f2 p  p"
      "f1 f1 f2 f2 p  p"
      "s  s  n  n  l  l"
      "s  s  n  n  l  l"
      "w  w  m  m  g  g"
      "w  w  m  m  g  g";
  }

  .collage-tile--1  { grid-column: auto; grid-row: auto; grid-area: b; }
  .collage-tile--2  { grid-column: auto; grid-row: auto; grid-area: h; }
  .collage-tile--3  { grid-column: auto; grid-row: auto; grid-area: f1; }
  .collage-tile--4  { grid-column: auto; grid-row: auto; grid-area: f2; }
  .collage-tile--5  { grid-column: auto; grid-row: auto; grid-area: c; }
  .collage-tile--6  { grid-column: auto; grid-row: auto; grid-area: l; }
  .collage-tile--7  { grid-column: auto; grid-row: auto; grid-area: s; }
  .collage-tile--8  { grid-column: auto; grid-row: auto; grid-area: n; }
  .collage-tile--9  { grid-column: auto; grid-row: auto; grid-area: p; }
  .collage-tile--10 { grid-column: auto; grid-row: auto; grid-area: w; }
  .collage-tile--11 { grid-column: auto; grid-row: auto; grid-area: m; }
  .collage-tile--12 { grid-column: auto; grid-row: auto; grid-area: g; }

  .hero-collage .collage-tile--3,
  .hero-collage .collage-tile--7,
  .hero-collage .collage-tile--11 { transform: rotate(-1.2deg); }
  .hero-collage .collage-tile--4,
  .hero-collage .collage-tile--8,
  .hero-collage .collage-tile--12 { transform: rotate(1.1deg); z-index: 1; }
  .hero-collage .collage-tile:hover,
  .hero-collage .collage-tile:focus-visible {
    transform: rotate(0deg) scale(1.03);
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage .collage-tile,
  .hero-collage .collage-tile:hover,
  .hero-collage .collage-tile:focus-visible { transform: none; }
}

.specialties {
  margin: 0;
  padding-left: 1.25rem;
}

.specialties li {
  margin: 0.35rem 0;
}

.contact-teaser {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.video-list {
  display: grid;
  gap: 1rem;
}

.video-row {
  scroll-margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-2);
}

.video-row a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.video-row a:visited {
  color: var(--text);
}

.video-row img {
  width: 7.5rem;
  height: 5.6rem;
  object-fit: cover;
  background: var(--surface-2);
}

.video-row h3 {
  color: var(--accent);
}

.contact-card {
  background: var(--surface);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-card p {
  margin: 0.4rem 0;
}

form {
  background: var(--surface);
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

input,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--accent-2);
  padding: 0.55rem 0.65rem;
  width: 100%;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-weight: 400;
  font-size: 0.9rem;
  min-height: 1.1em;
}

button {
  font: inherit;
  font-weight: 650;
  background: var(--accent);
  color: #1a1408;
  border: 0;
  padding: 0.7rem 1rem;
  cursor: pointer;
  width: fit-content;
}

button:hover {
  background: #ddc07a;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

#contact-fallback {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
}

#full-message {
  min-height: 10rem;
  margin: 0.75rem 0;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
  padding: 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer p {
  margin: 0.25rem 0;
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 72rem) {
  header {
    padding-left: calc((100% - var(--max)) / 2);
    padding-right: calc((100% - var(--max)) / 2);
  }
}
