@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3.otf") format("opentype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #111110;
  --surface: #1b1b19;
  --ink: #f3efe8;
  --paper: #eeebe3;
  --paper-ink: #181716;
  --quiet: #b7b2aa;
  --line: #3d3b37;
  --accent: #ff554d;
  --paper-accent: #bb261f;
  --page-gutter: clamp(20px, 5vw, 88px);
  --section-space: clamp(64px, 8vw, 124px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: "Source Sans 3", Arial, sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--paper-ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(1440px, 100% - var(--page-gutter) - var(--page-gutter)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 3;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--paper-ink);
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 16px;
  min-height: 76px;
}
.wordmark, .header nav a, .back-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .18s ease;
}
.wordmark { gap: 9px; font-size: 19px; font-weight: 760; letter-spacing: -.025em; }
.mark { inline-size: .58em; block-size: .58em; background: var(--accent); border-radius: 50%; flex: none; }
.header nav { display: flex; flex-wrap: wrap; column-gap: clamp(14px, 3.6vw, 44px); }
.header nav a, .back-top { color: var(--quiet); font-size: 17px; }
.header nav a:hover, .wordmark:hover, .back-top:hover { color: var(--ink); }
.wordmark:hover .mark { box-shadow: 0 0 0 3px #ff554d38; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(490px, 73svh, 800px);
  background-color: var(--surface);
  background-image: linear-gradient(90deg, #000c, #0002 85%), linear-gradient(0deg, #000b, transparent 70%), url("assets/hero.webp");
  background-position: center, center, center 47%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(88px, 14vw, 204px);
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--canvas));
  backdrop-filter: blur(7px);
  mask-image: linear-gradient(to bottom, transparent, #000 65%);
}
.hero-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: clamp(18px, 2.2vw, 30px); padding-block: 48px clamp(36px, 6vw, 86px); }
.hero-label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(58px, 12.5vw, 190px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 46px;
  border-bottom: 1px solid #fff9;
  font-size: 17px;
}
.hero-link:hover { border-bottom-color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(16px, 2.4vw, 36px); }
.hero-link .arrow, .heading-period { color: var(--accent); }
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 17px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease;
}
.arrow { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { width: 1px; height: 12px; background: currentColor; top: 2px; left: 7px; }
.arrow::after { width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; left: 4px; bottom: 3px; transform: rotate(45deg); }
.arrow-up { transform: rotate(180deg); }

.film-play {
  position: absolute;
  inset: auto 16px 16px auto;
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  transition: background-color .18s ease;
}
.play-icon {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
  margin-left: 3px;
}

.projects { padding-block: clamp(36px, 5.2vw, 78px) var(--section-space); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.section-head h2, .services h2 {
  font-size: clamp(52px, 7.65vw, 112px);
  line-height: .9;
  font-weight: 850;
  letter-spacing: -.04em;
}
.project-entrances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 36px);
  margin-top: clamp(22px, 4vw, 56px);
}
.project-entrance { position: relative; display: block; overflow: hidden; background: var(--surface); }
.project-entrance img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1) brightness(.77);
  transition: filter .25s ease, transform .65s var(--ease-out);
}
.project-entrance:hover img, .project-entrance:focus-visible img {
  filter: grayscale(.25) brightness(.86);
  transform: scale(1.035);
}
.project-entrance::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #000c); pointer-events: none; }
.project-entrance span {
  position: absolute;
  z-index: 1;
  inset: auto auto clamp(12px, 2vw, 28px) clamp(14px, 2.6vw, 36px);
  color: #fff;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.035em;
}
.project-entrance:is(:hover, :focus-visible) span { color: var(--accent); }

.gallery { padding-block: clamp(32px, 6vw, 84px) var(--section-space); }
.gallery-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.gallery-heading h1 {
  font-size: clamp(64px, 10vw, 144px);
  line-height: .88;
  font-weight: 850;
  letter-spacing: -.04em;
}
.gallery-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(16px, 2.5vw, 36px); }
.gallery-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--quiet); font-size: 19px; }
.gallery-links a:hover { color: var(--ink); }
.gallery-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.gallery-folders { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery-folders .project-entrance span {
  right: 16px;
  font-size: clamp(26px, 3.4vw, 48px);
  overflow-wrap: anywhere;
}
.category-heading h1 {
  min-width: 0;
  font-size: clamp(36px, 7vw, 104px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.category-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: 12px clamp(16px, 3vw, 40px);
  color: var(--quiet);
  font-size: 19px;
}
.category-back:hover { color: var(--accent); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
  align-items: start;
}
.work-grid.vertical { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.work-grid + .work-grid { margin-top: clamp(20px, 4vw, 52px); }
.work-card { display: block; min-width: 0; }
.work-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: var(--work-ratio, 4 / 3);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.035); }
.work-card:is(:hover, :focus-visible) .film-play { background: var(--accent); color: var(--paper-ink); }
.work-title {
  display: block;
  padding-top: 8px;
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 680;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.gallery-empty { margin-top: 28px; color: var(--quiet); }

.services { background: #e8e7e3; color: var(--paper-ink); color-scheme: light; }
.services-inner { padding-block: var(--section-space); }
.services .heading-period { color: var(--paper-accent); }
.rates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 56px);
  padding: 0;
  margin: clamp(30px, 4vw, 64px) 0 0;
}
.rate { display: grid; align-content: start; gap: 9px; padding-top: 17px; border-top: 1px solid #a69b90; }
.rate h3 { margin: 0; font-size: clamp(22px, 2.15vw, 34px); font-weight: 740; line-height: 1.12; letter-spacing: -.025em; }
.rate-value { font-size: clamp(29px, 3.4vw, 52px); font-variant-numeric: tabular-nums; font-weight: 830; line-height: 1.05; letter-spacing: -.028em; }
.rate-value span { color: #514a43; font-size: .55em; font-weight: 550; letter-spacing: 0; }
.rate-details { max-width: 45ch; color: #514a43; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.42; }

.about { background: #000; color: var(--ink); }
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px clamp(24px, 5vw, 72px);
  padding-block: var(--section-space);
}
.about-inner { padding-block: clamp(52px, 7vw, 104px); }
.about-heading { margin-bottom: clamp(24px, 3.5vw, 48px); }
.about h2 {
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 720;
  line-height: 1.15;
}
.about-lead {
  margin-top: 12px;
  font-size: clamp(36px, 6.5vw, 96px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.04em;
}
.about-lead span { color: var(--accent); white-space: nowrap; }
.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.about-photo { width: 100%; height: auto; filter: grayscale(1); }
.about-copy {
  display: grid;
  gap: clamp(12px, 1.1vw, 18px);
  max-width: 54ch;
  color: var(--quiet);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.42;
}
.about-copy p:first-child {
  color: var(--ink);
  font-size: clamp(20px, 1.85vw, 28px);
  font-weight: 680;
  line-height: 1.2;
}
.contact-section {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(0deg, #111e, #1119),
    linear-gradient(90deg, #111a, #1114 65%, #111b),
    url("assets/hero.webp") 60% 51% / cover no-repeat var(--surface);
}
.contact-section::before, .contact-section::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: min(32%, 150px);
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.contact-section::before {
  inset-block-start: 0;
  background: linear-gradient(to top, transparent, #000);
  mask-image: linear-gradient(to top, transparent, #000 65%);
}
.contact-section::after {
  inset-block-end: 0;
  background: linear-gradient(to bottom, transparent, var(--canvas));
  mask-image: linear-gradient(to bottom, transparent, #000 65%);
}
.contact-callout {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
}
.contact-callout h2 { font-size: clamp(38px, 5vw, 76px); font-weight: 850; line-height: .98; letter-spacing: -.04em; }
.action-contact { background: var(--accent); color: var(--paper-ink); }
.action-contact:hover { background: var(--paper); }
.contacts { display: grid; align-content: center; gap: 8px; }
.contacts h3 { margin: 0; font-size: 18px; line-height: 1.2; color: var(--quiet); }
.contacts address { display: grid; justify-items: start; font-size: 19px; font-style: normal; color: var(--quiet); }
.contacts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: clamp(23px, 2.7vw, 38px); font-weight: 730; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contacts a:hover { color: var(--accent); }
.back-top { gap: 9px; }
.footer { min-height: 88px; }

body:has(dialog[open]) { overflow: hidden; }
dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  border: 0;
}
dialog[open] { display: grid; place-items: center; }
.dialog-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.dialog-panel {
  --dialog-padding: clamp(14px, 2.5vw, 28px);
  position: relative;
  width: min(100% - 32px, 960px);
  max-height: 92dvh;
  overflow: auto;
  padding: var(--dialog-padding);
  background: var(--surface);
}
.dialog-panel:has(video) {
  width: min(100% - 32px, 960px, var(--video-max-width, 117.333dvh) + 2 * var(--dialog-padding));
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
.contact-panel { width: min(100% - 32px, 460px); }
.contact-options { display: grid; }
.contact-options a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  min-height: 52px;
  font-size: 19px;
}
.contact-options a + a { border-top: 1px solid var(--line); }
.contact-options a:hover { color: var(--accent); }
.contact-options span { color: var(--quiet); font-size: 16px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.dialog-head h2 { font-size: clamp(27px, 4.2vw, 54px); line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.dialog-head h2:focus { outline: none; }
.close {
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
}
.close::before, .close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.close::after { transform: rotate(-45deg); }
.close:hover { color: var(--accent); }
.close:focus-visible { outline: none; background: var(--accent); color: var(--paper-ink); border-radius: 50%; }
#dialog-media { display: grid; gap: 10px; }
#dialog-media img, #dialog-media video { width: 100%; object-fit: contain; background: #080808; }
#dialog-media img { max-height: 66dvh; }
#dialog-media video { display: block; }
.media-error { color: var(--quiet); margin-top: 12px; font-size: 17px; }
.media-error a { text-decoration: underline; text-underline-offset: .17em; }

.viewer-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--quiet);
  font-size: 15px;
}
.viewer-navigation button { border: 0; background: transparent; padding: 8px 0; min-height: 44px; color: var(--ink); text-align: start; }
.viewer-navigation button:hover { color: var(--accent); }

@media (max-width: 880px) {
  .work-grid.vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .rates { grid-template-columns: 1fr; gap: 20px; }
  .rate { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .rate-details { grid-column: 1 / -1; max-width: 60ch; }
}
@media (max-width: 400px) {
  .rate { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 760px) {
  .about-lead { font-size: clamp(36px, 8vw, 62px); }
  .about-content { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .work-grid, .work-grid.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid.wide { grid-template-columns: 1fr; }
  .header { min-height: 64px; }
  .header nav a, .back-top { font-size: 16px; }
  .wordmark { font-size: 17px; gap: 7px; }
  .hero { min-height: clamp(450px, 68svh, 640px); background-position: center, center, 59% center; }
  .hero-label { font-size: 13px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer { min-height: 68px; }
}
@media (max-width: 480px) {
  .project-entrances { grid-template-columns: 1fr; }
  .header { align-items: start; flex-direction: column; padding-top: 4px; }
  .header nav { column-gap: 18px; }
}
@media (max-width: 350px) {
  :root { --page-gutter: 16px; }
  .header nav { column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
