:root {
  --ink: #1d1b1e;
  --paper: #faf9f7;
  --theater: #0c0b0f;
  --muted: #59555c;
  --focus: #9260e7;
  --gutter: clamp(1.2rem, 5vw, 5rem);
  --section-space: clamp(3.6rem, 8vw, 7rem);
  --header-height: clamp(3.75rem, 6vw, 4.5rem);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  inset: .65rem auto auto .65rem;
  z-index: 2;
  padding: .6rem .9rem;
  background: var(--paper);
  transform: translateY(-150%);
}

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

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

.header, .hero {
  background: var(--theater);
  color: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand { flex: none; }
.brand img { width: clamp(6.6rem, 13vw, 8.1rem); height: auto; }

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.4vw, 2.6rem);
}

.header nav a {
  padding-block: .55rem;
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
}

.header nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 100rem);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  background: #050506;
}

.hero-poster, .hero-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-poster { object-fit: cover; }
.hero-player { opacity: 0; pointer-events: none; }
.hero-player.is-ready { opacity: 1; pointer-events: auto; }
video.hero-player { object-fit: contain; }

.play-control {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #19171be6;
  color: white;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: .13rem;
  border-block: .3rem solid transparent;
  border-left: .47rem solid currentColor;
}

.hero-fallback { position: relative; width: 3.75rem; }
.hero-fallback:hover, .work-card:hover .play-control { background: var(--ink); }

.features, .work, .clients {
  padding-top: var(--section-space);
}

.intro {
  margin-bottom: clamp(1.7rem, 4vw, 3.6rem);
  text-align: center;
}

.intro h1 {
  font-size: clamp(2.65rem, 6vw, 5.1rem);
  font-weight: 680;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.intro p {
  margin-top: .65rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.feature-grid, .work-grid {
  display: grid;
  gap: clamp(.85rem, 1.7vw, 1.5rem);
}

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

.feature img {
  width: 100%;
  height: auto;
  border-radius: .5rem;
  background: #ded7d3;
}

.feature figcaption {
  margin-top: .75rem;
  font-size: clamp(1rem, 2.1vw, 1.375rem);
  font-weight: 610;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.work h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.1;
}

.work-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.work-card { display: block; text-decoration: none; }

.work-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: .4rem;
  background: #e6e2df;
}

.work-preview img { width: 100%; height: 100%; object-fit: cover; }
.work-preview .play-control { position: absolute; inset: auto .55rem .55rem auto; }

.work-label {
  display: block;
  margin-top: .65rem;
  font-size: .9375rem;
  line-height: 1.35;
  font-weight: 550;
}

.work-card:hover .work-label { text-decoration: underline; text-underline-offset: .25em; }

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.logo-row li { display: grid; min-height: 3rem; place-items: center; }

.logo-row img {
  width: auto;
  height: auto;
  max-width: min(100%, 8.5rem);
  max-height: 2.5rem;
  filter: grayscale(1) brightness(0);
  opacity: .7;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding-top: var(--section-space);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.95rem;
  padding: .6rem 1.2rem;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-button:hover { background: #413842; }
.footer { padding: 2.25rem 0 1.75rem; color: var(--muted); text-align: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: .65rem;
  font-size: .9375rem;
  text-underline-offset: .25em;
}

dialog {
  width: min(65rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(.75rem, 2.3vw, 1.45rem);
  border: 0;
  border-radius: .65rem;
  background: var(--theater);
  color: var(--paper);
}

dialog::backdrop { background: #08070ce8; }
body:has(dialog[open]) { overflow: hidden; }

.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
}

.dialog-bar h2 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); }

.dialog-bar button {
  padding: .48rem .74rem;
  border: 0;
  border-radius: .3rem;
  background: #302d33;
  color: var(--paper);
}

.dialog-media { aspect-ratio: 16 / 9; max-height: 71dvh; background: #050506; }
.dialog-media video { display: block; width: 100%; height: 100%; }

.dialog-fallback {
  display: inline-block;
  margin-top: .75rem;
  color: #d8d3db;
  font-size: .875rem;
  text-underline-offset: .22em;
}

@media (min-width: 50rem) and (min-height: 37rem) {
  .hero-stage { width: min(100%, 100rem, calc((100svh - var(--header-height)) * 16 / 9)); }
}

@media (max-width: 63rem) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 38rem) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 19rem); }
  .logo-row img { max-width: 6.9rem; max-height: 2.1rem; }
}
