:root {
  color-scheme: dark;
  --paper: #eeece7;
  --ink: #111111;
  --night: #0b0b0b;
  --light: #f6f5f2;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: "Helvetica Neue", "Arial", sans-serif;
  background: var(--night);
  color: var(--light);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-block: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.skip {
  background: var(--light);
  color: var(--night);
  left: var(--gutter);
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 5;
}
.skip:focus { top: 0.75rem; }

.masthead, .footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter);
}

.wordmark {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-decoration: none;
}

.wordmark span {
  display: block;
  font-size: 0.8em;
  letter-spacing: 0.21em;
  margin-top: 0.4rem;
}

nav { display: flex; align-items: center; gap: clamp(1rem, 3.1vw, 3.25rem); }
nav a {
  font-family: "Consolas", monospace;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

nav a:hover, .projects a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.nav-contact { border-bottom: 1px solid #696969; }

.hero {
  background: #131313;
  display: grid;
  min-height: min(49rem, 78svh);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, #080808 1%, #080808d9 19%, #08080818 76%),
    radial-gradient(ellipse at 71% 39%, #6e6b6644, transparent 43%),
    #141414;
}

.hero-art img {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.hero-art img { object-fit: cover; object-position: 61% 43%; }
.hero-art::after {
  background: linear-gradient(0deg, #080808ed 2%, #08080891 35%, transparent 72%),
    linear-gradient(90deg, #08080855, transparent 87%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-content {
  align-self: end;
  padding: clamp(3rem, 7vw, 7rem) var(--gutter) clamp(2rem, 5vw, 4.75rem);
}

.eyebrow {
  font: 0.875rem/1.4 "Consolas", monospace;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.6rem, 10.65vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.088em;
  line-height: 0.82;
  margin: 1.55rem 0 2.6rem;
}
.hero h1 span { display: block; }
.hero-bottom {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  justify-content: space-between;
}
.hero-bottom p { color: #dddcd9; font-size: clamp(1.05rem, 2vw, 1.4rem); }

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-weight: 600;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  transition: background-color 160ms, color 160ms;
}
.button:hover { background: var(--light); color: var(--night); }

.panel { padding: clamp(4.5rem, 9vw, 9rem) var(--gutter); }
.panel h2 {
  font-size: clamp(2.65rem, 6.1vw, 7rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
  margin-top: 0.8rem;
}
.work, .about { background: var(--paper); color: var(--ink); }
.formats {
  border-top: 1px solid #aaa7a1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: 1.45rem 0 0;
}
.formats li { font-weight: 600; }

.reel { margin-top: 3rem; }
.reel video { aspect-ratio: 16 / 9; background: var(--night); margin-top: 1rem; width: 100%; }
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.projects img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.projects h3 { margin: 0.85rem 0 0.4rem; }

.services, .about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.75rem, 5vw, 6rem); }
.service-list { border-top: 1px solid #505050; }
details { border-bottom: 1px solid #505050; }
summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  font-weight: 700;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  padding: 1.05rem 0;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; font: 1.35rem "Consolas", monospace; }
details[open] summary::after { content: "−" / ""; }
details p { color: #c7c6c3; max-width: 43ch; padding-bottom: 1.1rem; line-height: 1.55; }
.about-copy { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }
.about-copy p + p { margin-top: 1.15em; }
.founder-link { font-weight: 700; text-underline-offset: 0.2em; }

.contact { background: #171717; }
.contact .button, .contact > p:last-child { margin-top: 1.5rem; }
.contact > p:last-child, .footer p { color: #c7c6c3; }
.footer p { font-size: 0.9rem; }

@media (max-width: 780px) {
  .formats { grid-template-columns: 1fr 1fr; }
  .services, .about { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .masthead { align-items: start; flex-direction: column; gap: 0.55rem; padding-block: 1rem 0.45rem; }
  nav { justify-content: space-between; width: 100%; }
  .hero { min-height: min(38rem, 75svh); }
  .hero h1 { font-size: clamp(2.35rem, 12.25vw, 4.2rem); margin-bottom: 1.6rem; }
  .hero-art img { object-position: 51% 42%; }
  .footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
