:root {
  color-scheme: dark;
  --base: #010101;
  --text: #fff;
  --muted: #b9b9b9;
  --rule: #303030;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: system-ui, sans-serif;
  background: var(--base);
  color: var(--text);
}

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

html { scroll-behavior: smooth; }

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

body { margin: 0; }
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.frame {
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  background: #fff;
  color: #010101;
  transform: translateY(-200%);
}

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

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner, .brand, .header-link {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 4.5rem;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  gap: .625rem;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
  line-height: 1.2;
}

.brand img { flex: none; }

.header-link {
  min-height: 44px;
  padding-inline: .25rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.header-link:hover, .site-footer a:hover { text-decoration: underline; }

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.25rem, 7vw, 7rem) clamp(2.75rem, 6.5vw, 5.5rem);
}

.hero-copy { align-self: center; }

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(3.25rem, 10vw, 8.25rem);
  font-weight: 720;
  line-height: .9;
  letter-spacing: -.082em;
}

h1 span { display: block; }

.hero p {
  max-width: 25ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.3125rem);
  line-height: 1.5;
}

.hero p, .contact p, .site-footer { color: var(--muted); }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  padding: .7rem 1.3rem;
  border: 1px solid #fff;
  background: #fff;
  color: #010101;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #dedede; border-color: #dedede; }

.hero-media {
  display: grid;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  background: #080808;
}

.hero-media > * { grid-area: 1 / 1; }

.hero-media :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Abstract roofline and facade, kept entirely in CSS until media is available. */
.media-placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 62% 26%, #272727, transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #ffffff0d calc(12.5% - 1px) 12.5%),
    repeating-linear-gradient(0deg, transparent 0 calc(16.666% - 1px), #ffffff0d calc(16.666% - 1px) 16.666%),
    #0b0b0b;
}

.media-placeholder::before,
.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 10% 8% 0 8%;
}

.media-placeholder::before {
  background: #707070;
  clip-path: polygon(0 53%, 49% 1%, 100% 45%, 100% 100%, 99.6% 100%, 99.6% 45.3%, 49% 1.6%, 0.4% 53.3%, 0.4% 100%, 0 100%);
}

.media-placeholder::after {
  background:
    linear-gradient(90deg, transparent 48.8%, #a2a2a2 49%, #121212 49.6% 100%),
    repeating-linear-gradient(90deg, #151515 0 7.9%, #333 7.9% 8%, #1a1a1a 8% 8.25%),
    #151515;
  clip-path: polygon(.4% 53.3%, 49% 1.7%, 99.6% 45.5%, 99.6% 100%, .4% 100%);
}

.contact {
  display: grid;
  gap: .75rem 2rem;
  align-items: end;
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  border-block: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 3.375rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.contact p { margin-top: .75rem; line-height: 1.5; }

.email {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.email:hover { color: var(--muted); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding-block: .875rem;
  font-size: .875rem;
}

.site-footer small { font-size: inherit; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  h1 { font-size: clamp(3.5rem, 8.35vw, 8.25rem); }
  .hero-media { min-height: 23rem; }
  .contact { grid-template-columns: 1fr auto; }
}
