/* APLO — local typography and shared site styles. */
@font-face {
  font-family: Montserrat;
  src: url('fonts/Montserrat-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url('fonts/Montserrat-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1b1a17;
  --muted: #625b51;
  --paper: #f8f6f2;
  --stone: #ece7de;
  --rule: #cdc5b8;
  --black: #151513;
  --white: #fffdf8;
  --gutter: clamp(20px, 5vw, 110px);
  --section-space: clamp(64px, 9vw, 152px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 Montserrat, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
img, picture { display: block; }
img { width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.02;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(46px, 7.4vw, 114px); }
h2 { font-size: clamp(34px, 5.15vw, 76px); }
h3 { font-size: clamp(20px, 2.15vw, 33px); font-weight: 500; letter-spacing: -.04em; line-height: 1.18; }
em { color: var(--muted); font-weight: 400; }
.eyebrow {
  margin-bottom: clamp(15px, 2.4vw, 32px);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.skip {
  position: fixed;
  z-index: 5;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
}
.skip:focus { transform: none; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid #ffffff20;
  background: var(--black);
  color: var(--white);
}
.brand { display: block; flex-shrink: 0; }
.brand-wordmark {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); font-size: 13px; }
nav a { display: block; padding: 9px 0; white-space: nowrap; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-underline-offset: .55em; }
.nav-contact { margin-left: clamp(0px, 1.8vw, 36px); font-weight: 600; }

.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(14px, 2vw, 32px) var(--gutter) 0;
}
.hero-frame {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 70svh, 810px);
  display: grid;
  align-items: end;
  background: #45453d;
}
.hero-image, .hero-frame::after { position: absolute; inset: 0; }
.hero-image { z-index: -2; }
.hero-image img { height: 100%; object-position: center 53%; }
.hero-frame::after {
  content: '';
  z-index: -1;
  background:
    linear-gradient(0deg, #110f0eed 0%, #110f0e7a 31%, #110f0e0d 67%),
    linear-gradient(90deg, #110f0e8a 0%, #110f0e32 45%, transparent 72%);
}
.hero-copy { padding: clamp(25px, 4.7vw, 78px); }
.hero h1 { font-size: clamp(44px, 6.9vw, 104px); }
.hero h1 em { color: #f6f0e5; }
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(22px, 3.4vw, 48px);
}
.hero-bottom p { max-width: 33ch; font-size: clamp(13px, 1.25vw, 18px); }
.hero-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  padding: 12px 17px;
  border: 1px solid #fffdf8a8;
  background: #17151240;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.hero-link:hover { background: var(--white); color: var(--ink); }
.hero-link span { font-size: 16px; line-height: 1; }
.hero-strip {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 12px 0;
  color: #e1d8c9;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section { padding: var(--section-space) var(--gutter); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 38px;
  margin-bottom: clamp(30px, 4.4vw, 68px);
}
.film { display: block; min-width: 0; }
.film-image, .photo-link {
  position: relative;
  overflow: hidden;
  background: #ded8cc;
}
.film-image { aspect-ratio: 16 / 9; }
.film-image img { height: 100%; }
.film-image img, .photo-link img { transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.film:hover img, .photo-link:hover img { transform: scale(1.035); }
.play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  padding-left: 2px;
}
.film-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.film-caption strong { display: block; font-size: clamp(13px, 1.4vw, 19px); font-weight: 550; line-height: 1.25; }
.film-caption small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.film-caption > span:last-child { color: var(--muted); font-size: 10px; white-space: nowrap; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid currentColor;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
}
.text-link:hover { color: var(--muted); }

.studio-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(32px, 7vw, 115px);
}
.studio-intro h1 { max-width: 13ch; font-size: clamp(38px, 5.3vw, 82px); }
.studio-intro p { max-width: 39ch; margin-top: clamp(18px, 2.4vw, 34px); font-size: clamp(15px, 1.4vw, 19px); }
.service-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.service-list li { padding: clamp(17px, 2.4vw, 34px) 0; border-top: 1px solid var(--rule); }
.service-list h2 { margin-bottom: 8px; font-size: clamp(23px, 2.35vw, 35px); letter-spacing: -.045em; }
.service-list p { max-width: 45ch; color: var(--muted); font-size: 14px; }

.page-intro { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(34px, 4vw, 65px); }
.intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(20px, 3vw, 44px);
  font-size: clamp(14px, 1.4vw, 18px);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 17px;
  min-height: 44px;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.outline { background: transparent; }
.outline:hover { color: var(--white); background: var(--ink); }
.dark { border-color: var(--ink); background: var(--ink); color: var(--white); }

.work-section { padding-top: 0; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--rule);
  padding: 16px 0 clamp(20px, 3vw, 38px);
}
.filters button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
}
.filters button:hover { border-color: var(--rule); }
.filters button.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.portfolio-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.work-group { margin-bottom: clamp(40px, 6vw, 98px); }
.group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 15px;
  margin-bottom: clamp(18px, 2.4vw, 35px);
}
.group-title h2 { font-size: clamp(25px, 3.45vw, 54px); }
.row-actions { flex-shrink: 0; }
.row-buttons { display: flex; gap: 5px; }
.row-buttons button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}
.row-buttons button:hover:not(:disabled) { border-color: var(--ink); }
.row-buttons button:disabled { opacity: .4; }
.work-grid {
  --card-gap: clamp(12px, 2vw, 28px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3);
  gap: var(--card-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a89b87 transparent;
  padding: 6px 6px 14px;
  margin: -6px -6px 0;
}
.work-grid .film { scroll-snap-align: start; scroll-margin-left: 6px; }
.work-grid .film:focus-visible { outline-offset: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 36px); }
.photo-link:first-child { grid-column: 1 / -1; }
.photo-link picture, .photo-link img { height: 100%; }
.photo-link img { aspect-ratio: 4 / 3; }
.photo-link:first-child img { aspect-ratio: 2 / 1; }
.photo-link > span { position: absolute; bottom: 12px; right: 12px; padding: 6px 10px; background: var(--paper); font-size: 11px; }
dialog {
  max-width: 94vw;
  max-height: 94vh;
  padding: 52px 14px 16px;
  border: 1px solid #ffffff35;
  background: var(--black);
  color: var(--white);
}
dialog::backdrop { background: #10100fed; }
dialog img { width: auto; max-width: 85vw; max-height: 72vh; object-fit: contain; margin: auto; }
dialog p { max-width: 62ch; margin: 12px auto 0; font-size: 12px; text-align: center; }
.close-dialog { position: absolute; top: 7px; right: 12px; padding: 8px; border: 0; background: transparent; color: inherit; font-size: 13px; }
.dialog-open { overflow: hidden; }

.founders { background: var(--black); color: var(--white); text-align: center; }
.founders .section-heading { justify-content: center; }
.founders .eyebrow { color: #d2c5b3; }
.founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 7vw, 105px); max-width: 1080px; margin: auto; }
.founder-grid article { border-top: 1px solid #ffffff40; padding-top: 24px; }
.founder-grid h3 { margin-bottom: 8px; }
.founder-grid .eyebrow { margin-bottom: 14px; }
.founder-grid p:last-child { max-width: 43ch; margin: auto; color: #e1d8c9; font-size: 14px; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 7vw, 108px);
  background: var(--stone);
}
.contact h2 { font-size: clamp(34px, 4.6vw, 68px); }
.contact-email {
  justify-self: start;
  max-width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  font-size: clamp(16px, 1.8vw, 25px);
  font-weight: 550;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--muted); }
footer { padding: clamp(28px, 4.8vw, 75px) var(--gutter) 24px; background: var(--black); color: var(--white); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.footer-top { padding-bottom: clamp(22px, 4vw, 60px); font-size: 12px; }
.footer-top > a:last-child:hover { text-decoration: underline; text-underline-offset: .35em; }
.footer-bottom { color: #d1c7b8; border-top: 1px solid #ffffff35; padding-top: 16px; font-size: 10px; }
.footer-bottom > span { flex-shrink: 0; }
.not-found { min-height: 58vh; }
.not-found-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }

@media (max-width: 900px) {
  .work-grid { grid-auto-columns: calc((100% - var(--card-gap)) / 2.15); }
}
@media (max-width: 720px) {
  .studio-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1050px) {
  .page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(235px, 34%);
    align-items: end;
    column-gap: clamp(25px, 4vw, 60px);
  }
  .page-intro h1 { font-size: clamp(56px, 6.5vw, 108px); }
  .intro-row { flex-direction: column; align-items: start; gap: 14px; margin-top: 0; padding-bottom: 5px; }
}
@media (max-width: 640px) {
  header { gap: 12px; min-height: 65px; }
  .brand-wordmark { font-size: 30px; }
  nav { gap: clamp(8px, 2.5vw, 17px); font-size: 11px; }
  .nav-contact { margin-left: 0; }
  .hero { padding: 0; }
  .hero-frame { min-height: clamp(450px, 70svh, 640px); }
  .hero-image img { object-position: 59% 48%; }
  .hero-frame::after { background: linear-gradient(0deg, #110f0ef5 0%, #110f0eaa 32%, #110f0e14 77%); }
  .hero h1 { font-size: clamp(29px, 8.5vw, 50px); }
  .hero-copy { padding: 24px var(--gutter) 30px; }
  .hero-bottom { align-items: start; flex-direction: column; gap: 16px; }
  .hero-strip { padding-inline: var(--gutter); min-height: 53px; font-size: 9px; letter-spacing: .055em; }
  .section-heading, .intro-row { align-items: start; flex-direction: column; gap: 14px; }
  .contact, .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-auto-columns: 83%; }
  .group-title { gap: 8px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-link:first-child img { aspect-ratio: 4 / 3; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 365px) {
  header { flex-wrap: wrap; }
  nav { flex-basis: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
