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

:root {
  color-scheme: dark;
  --canvas: #141312;
  --surface: #22201e;
  --ink: #f4f0e9;
  --quiet: #beb7ae;
  --line: #47423c;
  --paper: #eeebe3;
  --paper-ink: #191613;
  --paper-quiet: #514a43;
  --accent: #ff554d;
  --page-gutter: clamp(20px, 4.25vw, 76px);
  --section-space: clamp(66px, 8vw, 128px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: "Source Sans 3", Arial, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: #ff554d40; touch-action: manipulation; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
section[id] { scroll-margin-block-start: 20px; }
::selection { color: var(--paper-ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1512px, 100% - var(--page-gutter) * 2); margin-inline: auto; }
.skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 4;
  inset: 12px auto auto 12px;
  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: 20px; font-weight: 770; letter-spacing: -.025em; }
.mark { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; flex: none; }
.header nav { display: flex; flex-wrap: wrap; column-gap: clamp(16px, 3.2vw, 48px); }
.header nav a, .back-top { color: var(--quiet); font-size: 17px; }
.header nav a:hover, .wordmark:hover, .back-top:hover { color: var(--accent); }
.back-top { gap: 10px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1fr);
  grid-template-areas: "title frame" "actions frame";
  grid-template-rows: 1fr auto;
  margin-block-start: clamp(14px, 3.2vw, 52px);
}
.hero-copy { grid-area: title; z-index: 1; align-self: end; padding-block: 36px 0; }
.hero h1 {
  font-size: clamp(74px, 11vw, 176px);
  font-weight: 890;
  line-height: .78;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.hero-label { margin-top: clamp(19px, 2.7vw, 44px); font-size: clamp(20px, 2vw, 30px); line-height: 1.15; }
.heading-period { color: var(--accent); }
.hero-figure { grid-area: frame; min-width: 0; }
.hero-frame { aspect-ratio: 1.45; overflow: hidden; background: #310f0d; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero-figure figcaption { margin-top: 9px; color: var(--quiet); font-size: 15px; text-align: end; }
.hero-bottom { grid-area: actions; align-self: end; z-index: 1; padding-block: clamp(24px, 3vw, 44px) 25px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px clamp(15px, 2.2vw, 32px); }
.hero-link, .category-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  color: var(--quiet);
  transition: color .18s ease;
}
.hero-link:hover, .category-back:hover { color: var(--accent); }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 10px 21px;
  font-size: 18px;
  font-weight: 730;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease, transform .14s var(--ease-out);
}
.action-contact { background: var(--accent); color: var(--paper-ink); }
.action-contact:hover { background: var(--paper); }
.action:active { transform: scale(.97); }
.arrow { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { width: 1px; height: 13px; background: currentColor; top: 2px; left: 8px; }
.arrow::after { width: 8px; height: 8px; border-right: 1px solid; border-bottom: 1px solid; left: 4.5px; bottom: 3px; transform: rotate(45deg); }
.arrow-up { transform: rotate(180deg); }
.arrow-diagonal { transform: rotate(225deg); }
.arrow-left { transform: rotate(90deg); }

.projects { padding-block: var(--section-space); }
.section-head h2, .services h2, .gallery-heading h1 {
  font-size: clamp(52px, 7.6vw, 116px);
  line-height: .93;
  font-weight: 850;
  letter-spacing: -.04em;
}
.project-entrances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(25px, 3.6vw, 56px);
}
.projects .project-entrances { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; }
.project-entrance { display: block; min-width: 0; }
.project-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.projects .project-entrance:first-child .project-image { aspect-ratio: 1.16; }
.projects .project-entrance:last-child .project-image { aspect-ratio: 16 / 9; }
.project-image img, .work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .48s var(--ease-out); }
.project-label {
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
  padding-block: 11px 1px;
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  transition: color .18s ease;
}
.project-label .arrow { margin-inline-start: auto; align-self: center; color: var(--accent); transition: transform .24s var(--ease-out); }
.project-entrance:is(:hover, :focus-visible) .project-label { color: var(--accent); }
.project-entrance:is(:hover, :focus-visible) .arrow-diagonal { transform: translate(3px, -3px) rotate(225deg); }

.services { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.services-inner { padding-block: var(--section-space); }
.services .heading-period { color: #b72922; }
.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 { 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: var(--paper-quiet); font-size: .55em; font-weight: 550; letter-spacing: 0; }
.rate-details { max-width: 45ch; color: var(--paper-quiet); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.42; }

.about-inner { padding-block: var(--section-space); }
.about-heading { margin-bottom: clamp(25px, 4vw, 57px); }
.about h2 { color: var(--quiet); font-size: clamp(18px, 1.55vw, 23px); font-weight: 680; }
.about-lead { margin-top: 9px; font-size: clamp(39px, 6.6vw, 101px); font-weight: 850; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.about-content { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 6vw, 100px); }
.about-photo { width: 100%; height: auto; filter: grayscale(1); }
.about-copy { display: grid; gap: 15px; max-width: 52ch; color: var(--quiet); font-size: clamp(18px, 1.43vw, 22px); line-height: 1.44; }
.about-copy p:first-child { color: var(--ink); font-size: clamp(21px, 1.8vw, 27px); font-weight: 690; line-height: 1.2; }

.contact-section { background: var(--accent); color: var(--paper-ink); color-scheme: light; }
.contact-section :focus-visible { outline-color: var(--paper-ink); }
.contact-section ::selection { background: var(--paper-ink); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .65fr); align-items: end; gap: 30px clamp(28px, 5vw, 78px); padding-block: clamp(54px, 7vw, 108px); }
.contact-callout { display: grid; justify-items: start; gap: clamp(19px, 3vw, 38px); }
.contact-callout h2 { max-width: 12ch; font-size: clamp(46px, 8vw, 120px); font-weight: 880; line-height: .86; letter-spacing: -.04em; }
.contact-callout .heading-period { color: currentColor; }
.contact-callout .action-contact { background: var(--paper-ink); color: var(--ink); }
.contact-callout .action-contact:hover { background: var(--paper); color: var(--paper-ink); }
.contacts { display: grid; gap: 5px; }
.contacts h3 { font-size: 18px; font-weight: 700; }
.contacts address { display: grid; justify-items: start; font-size: clamp(18px, 1.5vw, 22px); font-style: normal; }
.contacts a { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(23px, 2.65vw, 41px); font-weight: 790; line-height: 1.14; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contacts a:hover { text-decoration: underline; text-underline-offset: .15em; }

.gallery { min-height: 67vh; padding-block: clamp(25px, 4vw, 62px) var(--section-space); }
.gallery-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; margin-bottom: clamp(24px, 3.5vw, 56px); }
.gallery-heading h1 { min-width: 0; overflow-wrap: anywhere; }
.category-heading h1 { font-size: clamp(45px, 7vw, 105px); }
.category-back { margin-bottom: clamp(12px, 2vw, 24px); }
.gallery-links { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 3vw, 36px); }
.gallery-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--quiet); font-size: 19px; transition: color .18s ease; }
.gallery-links a:hover { color: var(--ink); }
.gallery-links a[aria-current="page"] { color: var(--accent); font-weight: 730; }
.gallery-folders { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); margin-top: 0; }
.gallery-folders .project-label { align-items: center; flex-wrap: wrap; font-size: clamp(25px, 2.8vw, 38px); }
.project-count { color: var(--quiet); font-size: 16px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.65vw, 26px); align-items: start; }
.work-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-grid.vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid + .work-grid { margin-top: clamp(30px, 4vw, 58px); }
.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-card:focus-visible img, .project-entrance:focus-visible img { transform: scale(1.035); }
.work-title { display: block; padding-block: 8px 12px; font-size: clamp(17px, 1.7vw, 25px); font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
.film-play {
  position: absolute;
  inset: auto clamp(8px, 1.4vw, 18px) clamp(8px, 1.4vw, 18px) auto;
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  transition: color .18s ease, background-color .18s ease;
}
.work-card:is(:hover, :focus-visible) .film-play { background: var(--accent); color: var(--paper-ink); }
.play-icon { width: 0; height: 0; border-block: 6px solid transparent; border-left: 9px solid currentColor; margin-left: 3px; }
.gallery-empty { margin-top: 20px; color: var(--quiet); }

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::backdrop { background: #000a; backdrop-filter: blur(4px); }
.dialog-panel {
  --dialog-padding: clamp(13px, 2.5vw, 27px);
  position: relative;
  width: min(100% - 32px, 1000px);
  max-height: 92dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--dialog-padding);
  background: var(--surface);
}
.dialog-panel:has(video) { width: min(100% - 32px, 1000px, var(--video-max-width, 117.333dvh) + 2 * var(--dialog-padding)); }
.contact-panel { width: min(100% - 32px, 475px); }
.contact-options { display: grid; }
.contact-options a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 54px; font-size: 20px; }
.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: center; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { min-width: 0; font-size: clamp(23px, 3.1vw, 42px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.dialog-head h2:focus { outline: none; }
.dialog-head form { flex: none; }
.close { display: block; 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:last-child { text-align: end; }
.viewer-navigation button:hover { color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .project-entrance:hover img, .work-card:hover img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-frame img { animation: opening-frame 850ms var(--ease-out) both; }
  .hero-copy { animation: opening-title 680ms var(--ease-out) both; }
  .dialog-panel { opacity: 1; transform: translateY(0); transition: opacity .18s var(--ease-out), transform .22s var(--ease-out); }
  @starting-style { dialog[open] .dialog-panel { opacity: 0; transform: translateY(10px); } }
}
@keyframes opening-frame { from { opacity: .8; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@keyframes opening-title { from { opacity: .86; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@supports (animation-timeline: view()) {
  @media (min-width: 781px) and (prefers-reduced-motion: no-preference) {
    .hero-figure {
      animation: frame-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes frame-exit { from { transform: translateY(0); } to { transform: translateY(24px); } }

@media (max-width: 1000px) {
  .work-grid.vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); }
}
@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; }
  .about-content { grid-template-columns: 1fr; }
  .about-copy { max-width: 62ch; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "frame" "actions"; grid-template-rows: auto; margin-block-start: 0; }
  .hero-copy { padding-block: 25px 22px; }
  .hero h1 { font-size: clamp(61px, 17.4vw, 105px); }
  .hero-label { margin-top: 17px; }
  .hero-frame { aspect-ratio: 1.37; }
  .hero-bottom { padding-block: 13px 0; }
  .hero-figure figcaption { font-size: 14px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-callout h2 { max-width: 14ch; text-wrap: balance; }
  .work-grid.vertical, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid.wide { grid-template-columns: 1fr; }
}
@media (max-width: 530px) {
  .header { min-height: 68px; }
  .header nav a, .back-top { font-size: 16px; }
  .wordmark { font-size: 18px; }
  .projects .project-entrances { grid-template-columns: 1fr; }
  .projects .project-entrance:first-child .project-image { aspect-ratio: 3 / 2; }
  .gallery-folders { grid-template-columns: 1fr; }
  .gallery-folders .project-image { aspect-ratio: 1.68; }
}
@media (max-width: 400px) {
  .header { align-items: start; flex-direction: column; padding-top: 3px; }
  .header nav { column-gap: 22px; }
  .rate { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 350px) {
  :root { --page-gutter: 16px; }
  .hero h1 { font-size: clamp(52px, 17vw, 60px); }
  .hero-actions { column-gap: 12px; }
  .action { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
