/* One viewport: landing, horizontal works shelf and project view. */
:root {
  color-scheme: dark;
  --paper: #0b0c0f;
  --ink: #f2ede4;
  --muted: #a5a5a4;
  --rule: #434348;
  --accent: #ff087d;
  --surface: #17181c;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-font: "Oswald", "Arial Narrow", var(--sans);
  font-family: var(--sans);
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.mast, .shell { width: min(1560px, 100%); margin-inline: auto; padding-inline: 52px; }
.mast { position: relative; z-index: 5; display: flex; flex: none; align-items: center; justify-content: space-between; gap: 32px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 15px; flex: none; white-space: nowrap; font: 650 27px/1.15 var(--sans); letter-spacing: -.055em; }
.brand-icon { display: block; flex: none; width: 20px; height: 20px; background: var(--accent); }
.brand-icon svg { display: none; }
.mast::after { content: ""; order: 1; flex: 1; height: 1px; min-width: 20px; margin-right: 12px; background: #c9c4ba; opacity: .68; }
.mast > nav { order: 2; display: flex; align-items: center; gap: 32px; font-size: 14px; white-space: nowrap; }
.mast > nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mast > nav a:hover { color: var(--accent); }
body[data-view="works"] #works-nav, body[data-view="case"] #works-nav { color: var(--accent); }
.shell { display: flex; flex: 1; flex-direction: column; min-height: 0; padding-bottom: 24px; overflow: hidden; }
.home-view, .works-view, .case-view { display: flex; flex: 1; flex-direction: column; width: 100%; min-height: 0; overflow: hidden; }

/* The landing has a single hero and always fits the available viewport. */
.hero { position: relative; isolation: isolate; flex: 1; min-height: 0; width: 100%; overflow: hidden; }
.hero-accent { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-accent::before { content: ""; position: absolute; top: -100px; left: 47%; width: 22%; height: 84%; background: var(--accent); transform: skewX(-21deg); }
.hero-accent::after { content: ""; position: absolute; left: 47%; right: -12px; bottom: 7%; height: 28px; background: var(--accent); transform: skewX(-21deg); }
.hero-copy { position: absolute; top: clamp(18px, 4vh, 48px); left: 0; z-index: 2; width: 66%; pointer-events: none; }
.hero-title { display: flex; flex-direction: column; width: max-content; max-width: none; margin: 0; font-family: var(--display-font); font-size: min(12.3vw, 22vh, 188px); font-weight: 700; line-height: .98; letter-spacing: -.043em; text-transform: uppercase; }
.hero-title span { display: block; white-space: nowrap; }
.hero-disciplines { display: flex; align-items: center; gap: 22px; width: max-content; max-width: 100%; margin-top: clamp(15px, 2.4vh, 26px); font-size: clamp(11px, 1.1vw, 16px); letter-spacing: .25em; line-height: 1.5; }
.hero-disciplines::after { content: ""; flex: none; width: 108px; height: 1px; background: #c9c4ba; }
.hero-actions { display: flex; align-items: center; gap: 28px; width: max-content; max-width: 100%; margin-top: clamp(20px, 3.4vh, 34px); pointer-events: auto; }
.hero-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; padding: 12px 23px; background: var(--accent); color: #fff6f4; font-size: clamp(17px, 1.5vw, 23px); font-weight: 650; letter-spacing: -.035em; }
.hero-primary svg { display: block; flex: none; width: 36px; height: 26px; }
.hero-primary:hover { background: #f42892; }
.hero-secondary { display: inline-flex; align-items: center; min-height: 42px; border-bottom: 1px solid #d7d0c4; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hero-secondary:hover { color: var(--accent); border-color: var(--accent); }
.hero-media { position: absolute; top: 7%; right: 0; z-index: 1; width: 59%; height: min(84%, 668px); min-width: 0; min-height: 0; background: #080a0b; }
.hero-media shot-painting { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }

/* A separate horizontal collection; the page itself never scrolls. */
.works-heading { display: flex; flex: none; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 0 18px; }
.works-heading h1 { font: 600 clamp(30px, 3.3vw, 48px)/1.1 var(--sans); letter-spacing: -.055em; }
.underlink { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; color: var(--ink); border-bottom: 1px solid #7c7b76; font-size: 12px; line-height: 1.5; }
.underlink:hover { color: var(--accent); border-color: var(--accent); }
.work-rail { display: flex; flex: 1; align-items: center; gap: 24px; min-width: 0; min-height: 0; width: 100%; padding: 12px 2px 22px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-color: var(--accent) #25252b; scrollbar-width: thin; }
.work-rail::-webkit-scrollbar { height: 3px; }
.work-rail::-webkit-scrollbar-track { background: #25252b; }
.work-rail::-webkit-scrollbar-thumb { background: var(--accent); }
.work-rail .card { position: relative; display: flex; flex: 0 0 clamp(290px, 32vw, 490px); flex-direction: column; min-width: 0; max-width: calc(100vw - 48px); max-height: 100%; scroll-snap-align: start; }
.card-frame { position: relative; flex: 0 1 auto; width: 100%; min-height: 0; aspect-ratio: 16 / 9 !important; overflow: hidden; background: #050608; }
.card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.play { position: absolute; bottom: 11px; left: 11px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #ffffffe0; background: #08090baa; color: var(--ink); transition: background .18s ease; }
.play svg { width: 14px; height: 14px; margin-left: 1px; }
.card:hover .play, .card:focus-visible .play { background: var(--accent); }
.card-caption { display: flex; flex: none; align-items: start; justify-content: space-between; gap: 12px; padding-top: 12px; }
.card-caption > div { display: flex; flex-direction: column; min-width: 0; }
.card-caption .kicker { margin-top: 7px; padding-left: 22px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.card-caption h2 { display: flex; order: -1; align-items: baseline; gap: 11px; margin: 0; font: 550 19px/1.3 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.card-caption h2::before { content: "/"; flex: none; color: var(--accent); font-size: 1.3em; font-weight: 650; line-height: 1; }
.card-room { display: block; padding-left: 22px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.card-arrow { display: none; }
.works-bottom { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 24px; min-height: 77px; margin-top: 12px; border-top: 1px solid var(--rule); }
.room-filter { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.room-filter::-webkit-scrollbar { display: none; }
.filter-button { flex: none; min-height: 44px; padding: 5px 13px; background: transparent; border: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.filter-button:first-child { padding-left: 0; }
.filter-button:hover, .filter-button[aria-pressed="true"] { color: var(--ink); }
.filter-button[aria-pressed="true"]::before { content: "/"; color: var(--accent); margin-right: 7px; font-weight: 650; }
.rail-controls { display: flex; flex: none; align-items: center; gap: 16px; }
.rail-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #4c4c4f; background: transparent; font-size: 23px; line-height: 1; }
.rail-controls button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rail-controls button:disabled, .rail-controls button[aria-disabled="true"] { opacity: .28; }
.collection-count { min-width: 72px; text-align: center; color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 450; letter-spacing: .1em; text-transform: uppercase; }
.kicker span { color: var(--accent); }
.kicker i { display: none; }

/* Each project retains its full video and an independently scrollable note. */
.back { display: inline-flex; flex: none; align-items: center; align-self: start; gap: 7px; min-height: 38px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.back:hover { color: var(--ink); }
.case-heading { display: flex; flex: none; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.case-heading h1 { max-width: 900px; margin-top: 7px; font: 550 clamp(27px, 3.3vw, 43px)/1.1 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
.case-hall { flex: none; margin-bottom: 3px; }
.case-grid { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) minmax(225px, 290px); gap: 28px; min-height: 0; align-items: stretch; }
.case-media { height: 100%; min-width: 0; min-height: 0; }
shot-painting { display: block; min-width: 0; }
.case-media shot-painting { height: 100%; min-height: 0; }
.case-still { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-note { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 5px 4px 10px 22px; border-left: 1px solid #36373a; font-size: 13px; line-height: 1.7; scrollbar-width: thin; scrollbar-color: #5a555a transparent; }
.description { margin: 10px 0 22px; color: var(--muted); }
.role { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #36373a; border-bottom: 1px solid #36373a; font-size: 12px; }
.role strong { flex-shrink: 0; font-weight: 500; }
.role span { color: var(--muted); text-align: right; }
.moment { margin: 22px 0; }
.moment-button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; margin-top: 8px; padding: 11px 12px; text-align: left; border: 1px solid #36373a; background: var(--surface); font-size: 12px; line-height: 1.5; }
.moment-button:hover { border-color: var(--accent); }
.moment-button span:first-child { color: var(--accent); font-variant-numeric: tabular-nums; }
.process-links { display: grid; gap: 8px; padding-top: 16px; font-size: 12px; }
.process-links a { text-decoration: underline; text-underline-offset: 4px; }
footer { display: none; }

@media (max-width: 1180px) {
  .mast, .shell { padding-inline: 34px; }
  .mast { min-height: 68px; gap: 24px; }
  .mast > nav { gap: 26px; font-size: 13px; }
  .brand { gap: 12px; font-size: 23px; }
  .brand-icon { width: 17px; height: 17px; }
  .hero-title { font-size: min(12.8vw, 22vh, 160px); }
  .hero-media { top: 8%; width: 58%; height: 82%; }
  .hero-disciplines { gap: 13px; margin-top: 20px; font-size: 11px; }
  .hero-disciplines::after { width: 67px; }
  .hero-actions { gap: 19px; margin-top: 25px; }
  .hero-primary { min-height: 54px; padding-inline: 17px; gap: 15px; font-size: 17px; }
  .hero-primary svg { width: 30px; }
  .hero-secondary { min-height: 37px; font-size: 12px; }
  .case-grid { gap: 22px; grid-template-columns: minmax(0, 1fr) 245px; }
}
@media (max-width: 900px) {
  .mast, .shell { padding-inline: 26px; }
  .hero-title { font-size: min(13.5vw, 21vh); }
  .hero-disciplines { font-size: 10px; letter-spacing: .2em; }
  .hero-disciplines::after { width: 30px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 13px; margin-top: 24px; }
  .hero-primary { min-height: 52px; font-size: 16px; }
  .hero-secondary { min-height: 31px; font-size: 12px; }
  .hero-accent::after { height: 24px; }
  .work-rail { gap: 20px; }
  .works-bottom { gap: 12px; }
  .filter-button { padding-inline: 9px; font-size: 12px; }
  .rail-controls { gap: 9px; }
  .case-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
  .case-note { padding-left: 15px; }
}
@media (max-width: 700px) and (min-height: 551px) {
  .mast { min-height: 61px; gap: 15px; }
  .mast, .shell { padding-inline: 21px; }
  .mast::after { display: none; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-icon { width: 14px; height: 14px; }
  .mast > nav { margin-left: auto; gap: 18px; font-size: 12px; }
  .shell { padding-bottom: 16px; }
  .hero { display: flex; flex-direction: column; justify-content: center; padding-bottom: 17px; }
  .hero-copy { position: relative; top: auto; left: auto; width: 100%; flex: none; }
  .hero-title { font-size: min(17.2vw, 10.8vh, 110px); line-height: .98; letter-spacing: -.04em; }
  .hero-disciplines { margin-top: 15px; font-size: 10px; letter-spacing: .22em; }
  .hero-disciplines::after { width: 58px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 20px; margin-top: 19px; }
  .hero-primary { min-height: 50px; padding: 10px 15px; gap: 15px; font-size: 15px; }
  .hero-primary svg { width: 28px; height: 22px; }
  .hero-secondary { min-height: 34px; font-size: 11px; }
  .hero-media { position: relative; top: auto; right: auto; flex: 0 1 auto; width: 100%; height: min(calc(68.7vw + 16px), calc(100% - 250px)); margin-top: 24px; min-height: 160px; }
  .hero-accent::before { left: 62%; top: 0; width: 25%; height: 40%; opacity: .9; }
  .hero-accent::after { left: 19px; right: -8px; bottom: 2%; height: 26px; }
  .works-heading { padding: 13px 0 14px; }
  .works-heading h1 { font-size: 32px; }
  .works-heading .underlink { font-size: 11px; }
  .work-rail { gap: 18px; padding-bottom: 18px; }
  .work-rail .card { flex-basis: min(82vw, 470px); max-width: calc(100vw - 42px); }
  .card-caption h2 { font-size: 19px; }
  .works-bottom { flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; min-height: 106px; margin-top: 10px; }
  .room-filter { justify-content: space-between; gap: 2px; }
  .filter-button { font-size: 11px; padding-inline: 7px; }
  .rail-controls { justify-content: space-between; }
  .rail-controls button { width: 40px; height: 40px; }
  .case-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 13px; }
  .case-heading h1 { margin-top: 4px; font-size: 29px; }
  .case-hall { margin: 0; font-size: 11px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(95px, 27%); gap: 14px; }
  .case-note { padding: 13px 4px 4px 0; border-left: 0; border-top: 1px solid #36373a; font-size: 12px; }
  .back { min-height: 34px; margin-bottom: 5px; }
  .description { margin-top: 7px; margin-bottom: 14px; }
  .moment { margin: 14px 0; }
}
@media (max-height: 550px) {
  .mast { min-height: 48px; gap: 20px; }
  .mast, .shell { padding-inline: 22px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand-icon { width: 14px; height: 14px; }
  .mast > nav { gap: 22px; font-size: 12px; }
  .shell { padding-bottom: 10px; }
  .hero-copy { top: 3%; width: 66%; }
  .hero-title { font-size: min(13vw, 24vh, 125px); }
  .hero-media { top: 3%; width: 58%; height: 92%; }
  .hero-disciplines { margin-top: 10px; font-size: 9px; gap: 15px; }
  .hero-disciplines::after { width: 55px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 19px; margin-top: 14px; }
  .hero-primary { min-height: 44px; padding: 8px 13px; gap: 16px; font-size: 14px; }
  .hero-primary svg { width: 27px; height: 21px; }
  .hero-secondary { min-height: 32px; font-size: 11px; }
  .hero-accent::before { top: -60px; height: 95%; }
  .hero-accent::after { bottom: 1%; height: 16px; }
  .works-heading { padding: 8px 0 9px; }
  .works-heading h1 { font-size: 27px; }
  .work-rail { gap: 20px; padding: 7px 2px 10px; }
  .work-rail .card { flex-basis: clamp(250px, 33vw, 390px); }
  .card-caption { padding-top: 7px; }
  .card-caption h2 { font-size: 15px; }
  .card-caption .kicker { margin-top: 4px; font-size: 8px; }
  .works-bottom { min-height: 51px; margin-top: 7px; }
  .filter-button { min-height: 40px; font-size: 11px; padding-inline: 9px; }
  .rail-controls { gap: 10px; }
  .rail-controls button { width: 36px; height: 36px; font-size: 20px; }
  .collection-count { min-width: 62px; font-size: 10px; }
  .back { min-height: 29px; margin: 0 0 4px; font-size: 11px; }
  .case-heading { gap: 20px; margin-bottom: 9px; }
  .case-heading h1 { margin-top: 3px; font-size: 24px; }
  .case-hall { font-size: 11px; }
  .case-note { font-size: 11px; padding-top: 0; }
  .description { margin: 5px 0 12px; }
  .role { padding-block: 9px; font-size: 11px; }
  .moment { margin: 13px 0; }
}
@media (max-width: 359px) {
  .mast, .shell { padding-inline: 14px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-icon { width: 12px; height: 12px; }
  .mast > nav { gap: 14px; font-size: 11px; }
  .hero-actions { gap: 15px; }
  .hero-primary { min-height: 46px; padding-inline: 11px; font-size: 14px; gap: 9px; }
  .hero-primary svg { width: 25px; }
  .hero-secondary { font-size: 10px; }
  .filter-button { padding-inline: 6px; font-size: 10px; }
  .filter-button[aria-pressed="true"]::before { margin-right: 4px; }
  .work-rail .card { max-width: calc(100vw - 28px); }
  .case-heading h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
