/* Self-hosted, latin subset only. swap so text paints immediately in a
   fallback rather than sitting invisible while the woff2 lands. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/montserrat-200.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/montserrat-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}

:root {
  --bg:      #0e0e10;
  --surface: #16161a;
  --line:    #26262c;
  --text:    #ece9e4;
  --muted:   #8f8b85;
  --accent:  #c7a17a;

  --display: "Montserrat", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 1280px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--text);
  color: var(--bg);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: rgba(14, 14, 16, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__mark {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: .22em;
  font-size: .9rem;
}

.nav nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav nav a { transition: color .2s ease; }
.nav nav a:hover { color: var(--text); }

/* --------------------------------------------------------------- hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad) 0;
}

.hero__name {
  font-family: var(--display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: clamp(.72rem, 1.6vw, .9rem);
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  text-indent: .42em; /* balance the trailing letter-space */
}

.hero__line {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.4rem, 7.2vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
}

.hero__sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

/* ----------------------------------------------------- featured video */
.featured { margin: 0; }

.featured__cap {
  display: grid;
  gap: .55rem;
  padding-top: 1.6rem;
  max-width: 62ch;
}
.featured__cap h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}
.featured__cap p { color: var(--muted); font-size: .95rem; }

.tag {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ------------------------------------------------------ facade embeds */
.facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  aspect-ratio: 16 / 9;   /* holds the box before the image paints: no CLS */
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.86) saturate(.94);
  transition: filter .45s ease, transform .6s cubic-bezier(.2,.6,.2,1);
}

.facade:hover img,
.facade:focus-visible img {
  filter: brightness(1) saturate(1);
  transform: scale(1.028);
}

/* play button */
.facade__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(236, 233, 228, .75);
  border-radius: 50%;
  background: rgba(14, 14, 16, .38);
  backdrop-filter: blur(2px);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.facade__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--text);
}
.facade--lg .facade__play { width: 88px; height: 88px; }
.facade--lg .facade__play::after { border-width: 11px 0 11px 18px; }

.facade:hover .facade__play,
.facade:focus-visible .facade__play {
  background: rgba(199, 161, 122, .92);
  border-color: var(--accent);
  transform: scale(1.06);
}
.facade:hover .facade__play::after,
.facade:focus-visible .facade__play::after { border-left-color: #0e0e10; }

.facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------- work */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad) 0;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.2rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pill {
  font: inherit;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem 1rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
}
.pill:hover { color: var(--text); border-color: #3a3a42; }
.pill.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 2.2vw, 1.8rem);
}

.card { display: grid; gap: .7rem; align-content: start; }
.card[hidden] { display: none; }

.card h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: .01em;
  line-height: 1.3;
}
.card p {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.55;
}

.grid__empty {
  color: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

/* -------------------------------------------------------------- about */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5.5rem, 13vw, 10rem) var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.about__side {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.about__portrait {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1;         /* holds the square before it paints: no CLS */
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  filter: saturate(.92);
}

.about__body {
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
}
.about__body a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .2s ease;
}
.about__body a:hover { color: var(--accent); }

/* ------------------------------------------------------------ contact */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5.5rem, 13vw, 10rem) var(--pad) clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.contact__line {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: -.01em;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .85rem 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* --------------------------------------------------------------- foot */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }

  /* One column: the portrait would otherwise blow up to full width */
  .about { grid-template-columns: 1fr; }
  .about__portrait { width: 180px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }

  .work__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  /* Wrap the pills onto a second row rather than letting them scroll off the
     edge. A horizontal strip hides categories behind a swipe nobody makes. */
  .filters { width: 100%; }

  .facade--lg .facade__play { width: 62px; height: 62px; }
  .facade--lg .facade__play::after { border-width: 8px 0 8px 13px; }

  .foot { flex-direction: column; }
}
