:root {
  color-scheme: dark;
  --background: #111110;
  --text: #f5f1e9;
  --muted: #b7b2aa;
  --accent: #ff8753;
  --line: #393631;
  --sans: "Inter", "Aptos", "Helvetica Neue", sans-serif;
  font-family: var(--sans);
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; }
.shell { width: min(100% - 112px, 1330px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 4; top: 12px; left: 12px; transform: translateY(-160%); background: var(--text); color: var(--background); padding: 12px; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: #141413; border-bottom: 1px solid #2d2925; }
.header-inner, .footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .81rem; letter-spacing: .135em; font-weight: 600; white-space: nowrap; }
.brand strong { color: var(--accent); font-weight: 750; }
.brand-mark { position: relative; width: 33px; height: 33px; overflow: hidden; mix-blend-mode: screen; }
.brand-mark img { position: absolute; width: 283%; left: -83%; top: -42%; filter: contrast(1.26); }
nav { display: flex; align-items: center; gap: 34px; font-size: .875rem; color: #e2dcd2; }
nav a:hover, footer a:hover { color: var(--accent); }
.nav-contact { padding: 11px 16px; border: 1px solid #665447; border-radius: 3px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #24130e; min-height: clamp(580px, 46vw, 760px); display: grid; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 51%; z-index: -2; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(12,12,13,.91) 0%,rgba(12,12,13,.77) 22%,rgba(13,11,12,.30) 58%,transparent 79%),linear-gradient(0deg,rgba(13,11,11,.68),transparent 29%); }
.hero-inner { position: relative; display: flex; align-items: center; padding-block: 82px 105px; }
.hero-copy { max-width: 710px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .81rem; text-transform: uppercase; letter-spacing: .175em; color: var(--accent); font-weight: 750; }
.eyebrow > span { width: 19px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
h1 { margin: 24px 0 23px; font-size: clamp(5.25rem, 9.3vw, 9.5rem); line-height: .85; font-weight: 720; letter-spacing: -.09em; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--accent); letter-spacing: -.09em; }
.hero-description { max-width: 365px; color: #e3dacf; font-size: 1.08rem; line-height: 1.6; margin-bottom: 26px; }
.primary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 3px; background: var(--accent); color: #19120e; padding: 12px 20px; font-size: .9rem; font-weight: 750; cursor: pointer; transition: background .2s; }
.primary-button:hover { background: #ffac87; }
.play-icon { display: block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-logo { position: absolute; right: 9px; bottom: 64px; width: clamp(125px, 12vw, 183px); aspect-ratio: 260 / 157; overflow: hidden; mix-blend-mode: screen; }
.hero-logo img { position: absolute; width: 115.38%; left: -7.7%; top: -29%; filter: contrast(1.28); }
.hero-caption { position: absolute; margin: 0; bottom: 32px; right: 0; display: flex; align-items: center; gap: 10px; color: #f4eee4; font-size: .8rem; letter-spacing: .045em; }
.hero-caption span { display: inline-block; width: 18px; height: 1px; background: var(--accent); }
.hero-caption b { color: var(--accent); }

.work { padding-block: 72px 85px; }
.work-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .98; letter-spacing: -.075em; font-weight: 700; margin: 14px 0 10px; }
h2 > span { color: var(--accent); }
.work-description, .contact > p:not(.eyebrow) { font-size: 1rem; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.filters button { min-height: 40px; border: 1px solid var(--line); border-radius: 3px; padding: 6px 14px; background: none; color: var(--muted); font-size: .875rem; cursor: pointer; }
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: #191816; border-color: var(--text); }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 28px 16px; }
.project { grid-column: span 2; min-width: 0; }
.project:nth-child(-n+2), .project-grid[data-filter="image"] .project { grid-column: span 3; }
.project-grid[data-filter="video"] .project { grid-column: span 2; }
.project-button { width: 100%; padding: 0; border: none; background: none; cursor: pointer; text-align: left; }
.project-visual { position: relative; display: block; overflow: hidden; background: #262320; aspect-ratio: 1.66; border-radius: 3px; }
.project-visual img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-button:hover img { transform: scale(1.045); }
.media-mark { display: grid; position: absolute; left: 15px; bottom: 15px; width: 41px; height: 41px; place-content: center; background: #141211d9; color: #fff4e9; border: 1px solid #ffffff70; border-radius: 50%; }
.project-button:hover .media-mark { background: var(--accent); color: #19120e; border-color: var(--accent); }
.media-mark .play-icon { margin-left: 2px; }
.expand-icon { width: 11px; height: 11px; border: 1px solid currentColor; display: block; }
.project-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 12px; }
.project-title { font-size: 1.23rem; font-weight: 680; letter-spacing: -.035em; }
.project-type { font-size: .82rem; color: var(--muted); }
.about { background: #1a1816; border-block: 1px solid #322c27; }
.about-inner { padding-block: 72px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 36px; }
.about-inner > p { margin: 0; max-width: 530px; line-height: 1.7; color: #ddd5cb; font-size: 1.1rem; }
.contact { padding-block: 85px 95px; }
.contact .primary-button { margin-top: 21px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
footer .brand { color: var(--text); }
footer small { font-size: .8rem; }

.viewer { width: min(870px, calc(100% - 36px)); max-height: calc(100% - 32px); padding: 23px; border: 1px solid #524338; border-radius: 5px; color: var(--text); background: #151312; }
.viewer::backdrop { background: #080707dc; }
.viewer-header { display: flex; gap: 12px; align-items: start; justify-content: space-between; margin-bottom: 17px; }
.viewer h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0; }
.viewer-close { min-width: 44px; min-height: 44px; font-size: 1.8rem; line-height: 1; border: 1px solid #675244; background: transparent; border-radius: 3px; cursor: pointer; }
.viewer-close:hover { color: var(--accent); }
#viewer-media video, #viewer-media img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #090808; }
#viewer-description { margin: 15px 0 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .hero-image { object-position: 63% center; }
  .project-info { display: grid; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand { gap: 6px; font-size: .65rem; letter-spacing: .085em; }
  .brand-mark { width: 25px; height: 25px; }
  nav { gap: 12px; font-size: .81rem; }
  .nav-contact { padding: 6px 0; border: 0; }
  .hero { min-height: 570px; }
  .hero-inner { align-items: end; padding-block: 90px 75px; }
  .hero-image { object-position: 67% center; }
  .hero::before { background: linear-gradient(90deg,#0c0b0bdd,transparent 100%),linear-gradient(0deg,#100c0bd9, transparent 80%); }
  h1 { font-size: clamp(4.25rem, 15vw, 6.5rem); }
  .hero-logo { top: 24px; bottom: auto; right: 0; width: 104px; }
  .hero-caption { right: auto; left: 0; bottom: 21px; }
  .work { padding-block: 51px 58px; }
  .work-header { display: block; }
  .filters { margin-top: 21px; }
  .project-grid { grid-template-columns: 1fr; gap: 25px; }
  .project-grid .project, .project-grid[data-filter] .project { grid-column: span 1; }
  .project-info { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 10px; padding-block: 49px; }
  .contact { padding-block: 57px; }
  .footer-inner { flex-wrap: wrap; gap: 9px 20px; padding-block: 15px; }
}
@media (max-width: 350px) { nav { gap: 7px; } .brand { letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
