* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(.contact-dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-sans); }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 400; }
a { color: inherit; }
a:hover { color: var(--acid); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button, input, img { max-width: 100%; }
img { display: block; }
[hidden] { display: none !important; }

.gutter, .band { padding-inline: var(--page-gutter); }
.band { border-top: 1px solid var(--line); }
.wrap { max-width: var(--content-max); margin-inline: auto; }
.mono { font: 500 13px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 10px 16px; background: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { padding-block: 24px; }
.header-links { display: flex; justify-content: flex-end; gap: 12px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 20px; border: 1px solid var(--ink-muted); border-radius: var(--radius-pill); background: transparent; text-decoration: none; transition: border-color var(--ease-ui); }
.pill:hover { color: var(--ink); border-color: var(--ink); }
.header-links .pill:first-child { font: 500 13px/16px var(--font-mono); letter-spacing: .06em; }
.header-links .icon { display: none; }
.fixed-brand { position: fixed; z-index: 20; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 16px; border-radius: var(--radius-pill); background: var(--scrim); }
.fixed-brand img { width: 124px; height: auto; }

.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: max(780px, 100svh); padding-block: 80px 160px; gap: 56px; }
.hero h1 { width: 100%; max-width: var(--measure-statement); font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .35em; text-align: right; text-wrap: balance; color: var(--acid); }
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; }
.hero-links a { display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--ink-muted); text-decoration: none; }
.hero-links a:hover { color: var(--acid); }

.service { padding-block: 96px; }
.service-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "copy media" "order media"; gap: 24px 64px; align-items: start; }
.service-copy { grid-area: copy; display: grid; gap: 24px; }
.service h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -.05em; }
.service-copy p { max-width: 44ch; font-size: 20px; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tags li { padding: 4px 12px; border: 1px solid var(--ink-muted); border-radius: var(--radius-pill); }
.order { grid-area: order; justify-self: start; min-height: 44px; padding: 12px 0; border: 0; background: transparent; }
.order:hover { color: var(--acid); }

.gallery { grid-area: media; display: grid; gap: 16px; --ratio: 16 / 9; --play-size: 80px; }
.gallery.vertical { --ratio: 9 / 16; --play-size: 72px; grid-template-columns: minmax(0, 340px) minmax(0, 110px); justify-content: end; align-items: start; }
.stage, .thumbnail { position: relative; overflow: hidden; aspect-ratio: var(--ratio); background: var(--surface); }
.stage-poster, .stage video, .thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage video { object-fit: contain; }
.ratio-label { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 4px 12px; background: var(--scrim); border-radius: var(--radius-pill); pointer-events: none; }
.ratio-label, .stage-caption, .thumbnail .mono { font-size: 11px; line-height: 14px; letter-spacing: .04em; }
.ratio-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: var(--play-size); height: var(--play-size); padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--scrim); }
.play-button .icon { width: 24px; height: 24px; }
.play-button:not(:disabled):hover { color: var(--acid); border-color: var(--acid); }
.play-button:disabled { opacity: .56; }
.play-button[data-mode="pause"]:not(:hover):not(:focus-visible) { opacity: 0; }
.stage:hover .play-button[data-mode="pause"] { opacity: 1; }
@media (hover: none) {
  .play-button[data-mode="pause"]:not(:hover):not(:focus-visible) { opacity: 1; }
}
.stage:has(video[controls]) .stage-caption { visibility: hidden; }
.stage-caption { position: absolute; inset: auto 0 0; display: grid; gap: 10px; padding: 16px; background: var(--scrim); pointer-events: none; }
.stage-meta { display: flex; justify-content: space-between; gap: 12px; }
.clip-count { color: var(--ink-muted); white-space: nowrap; }
.clip-status { color: var(--ink-muted); text-transform: none; }
.clip-status:empty { display: none; }
.progress { height: 2px; background: var(--line); }
.progress span { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vertical .thumbnails { grid-template-columns: minmax(0, 1fr); }
.thumbnail { display: grid; place-items: center; padding: 0; border: 2px solid var(--line); background: var(--surface-2); transition: border-color var(--ease-ui); }
.thumbnail:hover { border-color: var(--ink); }
.thumbnail[aria-pressed="true"] { border-color: var(--acid); }
.thumbnail .icon { z-index: 1; width: 16px; height: 16px; filter: drop-shadow(0 0 2px var(--bg)); }
.thumbnail .mono { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px; overflow: hidden; background: var(--scrim); text-overflow: ellipsis; white-space: nowrap; }
.thumbnail:focus-visible { z-index: 1; }

.contact { padding-block: 140px 160px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); align-items: center; gap: 64px; }
.contact h2 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.08; letter-spacing: -.055em; }
.contact h2 span { display: block; }
.contact h2 span:first-child { color: var(--ink-muted); }
.slate { --stripe: 32px; --stripe-height: 64px; position: relative; min-width: 0; padding-top: 36px; }
.slate-arm, .slate-stripe { height: var(--stripe-height); border: 2px solid var(--ink); background: repeating-linear-gradient(45deg, var(--acid) 0 var(--stripe), var(--bg) var(--stripe) calc(2 * var(--stripe))); }
.slate-arm { position: absolute; z-index: 1; inset: 0 0 auto; background: repeating-linear-gradient(135deg, var(--acid) 0 var(--stripe), var(--bg) var(--stripe) calc(2 * var(--stripe))); transform: rotate(-13deg); transform-origin: 0 100%; transition: transform .18s cubic-bezier(.6, 0, .9, .4); }
.slate:is(:hover, :focus-within, :active) .slate-arm { transform: none; }
.slate-stripe { position: relative; border-bottom: 0; }
.slate-body { border: 2px solid var(--ink); }
.slate-row, .slate-link { display: flex; border-bottom: 2px solid var(--ink); }
.slate-row > div { flex: 1; min-width: 0; padding: 12px 20px; }
.slate-row > div + div { border-left: 2px solid var(--ink); }
.slate-credits > div { display: grid; gap: 8px; padding-block: 16px; }
.slate-take > div { display: flex; justify-content: space-between; gap: 4px; }
.slate span, .slate-take { color: var(--ink-muted); font: 400 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.slate-take { color: var(--ink); }
.slate strong { font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.slate-link { align-items: center; gap: 16px; padding: 24px 20px; text-decoration: none; transition: color var(--ease-ui), background var(--ease-ui); }
.slate-link:last-child { border-bottom: 0; }
.slate-link span:first-child { flex: 0 0 88px; }
.slate-link strong { flex: 1; min-width: 0; font-size: clamp(22px, 2.6vw, 36px); }
.slate-link span:last-child { color: inherit; font-size: 24px; }
.slate-link:is(:hover, :active) { background: var(--acid); color: var(--on-acid); }
.slate-link:is(:hover, :active) span { color: inherit; }

.site-footer { padding-block: 40px calc(82px + env(safe-area-inset-bottom)); }
.footer-layout, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-layout { justify-content: space-between; }
.footer-links { font-size: 12px; letter-spacing: .08em; }
.footer-links a { padding-block: 14px; text-decoration: none; }
.footer-links a:last-child, .site-footer small { color: var(--ink-muted); }
.footer-links a:last-child:hover { color: var(--acid); }
.site-footer small { font-size: 14px; }
.hello { display: none; }

.contact-dialog { position: fixed; max-width: 920px; width: calc(100% - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); overscroll-behavior: contain; }
.contact-dialog[open] { animation: dialog-arrive .32s ease-out both; }
.contact-dialog::backdrop { background: var(--scrim); }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(var(--dialog-travel, 16px)); } to { opacity: 1; transform: none; } }
.dialog-layout { position: relative; display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 520fr); }
.dialog-banner { display: grid; grid-template-areas: "topic" "art" "title"; align-content: start; justify-items: start; gap: 20px; min-height: 520px; padding: 28px; background: var(--acid); color: var(--on-acid); }
.dialog-topic { grid-area: topic; font-size: 11px; line-height: 14px; letter-spacing: .08em; }
.dialog-topic.has-topic { border-radius: var(--radius-pill); padding: 4px 12px; background: var(--bg); color: var(--ink); }
.dialog-banner img { grid-area: art; width: 180px; height: auto; margin-bottom: 8px; }
.dialog-banner h2 { grid-area: title; font-size: 40px; line-height: 1.05; letter-spacing: -.055em; }
.dialog-banner h2 span { display: block; }
.dialog-close { position: absolute; z-index: 1; top: 20px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink-muted); border-radius: 50%; background: transparent; }
.dialog-close:hover { border-color: currentColor; }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog-content { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 84px 32px 32px; }
#contact-form { display: grid; gap: 20px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields label { display: grid; align-content: start; gap: 8px; color: var(--ink-muted); font: 500 11px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.fields input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--ink-muted); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.2 var(--font-sans); }
.fields input::placeholder { color: var(--ink-muted); opacity: 1; }
.fields input:focus-visible { border-color: var(--acid); outline-offset: 2px; }
.fields input[aria-invalid="true"] { border-color: var(--rec); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acid); cursor: pointer; }
.consent label { display: block; cursor: pointer; }
.consent a { text-underline-offset: 3px; }
.field-error, .form-status { color: var(--rec); font: 400 13px/1.4 var(--font-sans); letter-spacing: normal; text-transform: none; }
.field-error:empty, .form-status:empty { display: none; }
.consent .field-error { display: block; }
.form-status[data-state="pending"] { color: var(--ink-muted); }
.send { justify-self: start; min-height: 56px; padding: 0 32px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); }
.send:enabled:hover { background: var(--acid); }
.send:disabled { opacity: .4; }
.dialog-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; line-height: 16px; }
.dialog-contacts span { color: var(--ink-muted); }
.dialog-contacts a { text-transform: none; }
.dialog-success { display: grid; align-content: center; justify-items: start; gap: 28px; flex: 1; }
.dialog-success p { font-size: 44px; line-height: 1.1; letter-spacing: -.05em; }
.dialog-success button { min-height: 48px; padding-inline: 24px; }

.policy { max-width: 780px; margin: 0 auto; padding-block: 40px 96px; }
.policy-brand { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; }
.policy h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: -.05em; margin-bottom: 20px; }
.policy h2 { font-size: 26px; line-height: 1.2; margin: 32px 0 12px; }
.policy p + p { margin-top: 12px; }
.policy nav { margin-top: 36px; }
.policy .policy-note { color: var(--ink-muted); }

@media (max-width: 1023px) {
  .service-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "order" "media"; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .slate { width: 100%; max-width: 640px; }
}

@media (max-width: 767px) {
  :root { --page-gutter: 20px; }
  .site-header { padding-block: 16px; }
  .header-links { gap: 8px; }
  .header-links .pill { width: 44px; padding: 0; }
  .header-links .icon { display: block; }
  .header-links .pill span { display: none; }
  .fixed-brand img { width: 108px; }
  .hero { min-height: max(640px, 100svh); padding-block: 64px 136px; gap: 40px; }
  .hero h1 { font-size: 30px; letter-spacing: -.05em; }
  .hero-links { display: grid; width: 100%; justify-content: stretch; gap: 0; font-size: 12px; }
  .hero-links a { justify-content: space-between; min-height: 48px; border-top: 1px solid var(--line); color: var(--ink); }
  .hero-links a span:last-child { color: var(--ink-muted); }
  .service { padding-block: 64px; }
  .service-layout { grid-template-areas: "copy" "media" "order"; }
  .service h2 { font-size: 36px; }
  .service-copy p { font-size: 17px; }
  .gallery, .gallery.vertical { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 24px; --play-size: 64px; }
  .vertical .thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-caption { padding: 12px 14px; gap: 8px; }

  .contact { padding-block: 88px 96px; }
  .contact h2 { font-size: 42px; }
  .slate { --stripe: 22px; --stripe-height: 44px; padding-top: 24px; }
  .slate-row > div { padding: 10px 12px; }
  .slate-credits > div { padding: 12px 14px; gap: 6px; }
  .slate-credits strong { font-size: 19px; }
  .slate-take > div:last-child { display: none; }
  .slate-link { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 14px; }
  .slate-link strong { grid-row: 2; grid-column: 1 / -1; font-size: 26px; }
  .slate-link span:last-child { grid-row: 1; grid-column: 2; font-size: 20px; }
  .site-footer { padding-top: 32px; padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .footer-layout { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 0 20px; }
  .hello { position: fixed; z-index: 21; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--acid); color: var(--on-acid); font-size: 12px; }
  .hello .icon { width: 16px; height: 16px; }
  .hello:is(:hover, :active) { box-shadow: var(--glow-acid); }

  .contact-dialog { --dialog-travel: 24px; inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - max(16px, env(safe-area-inset-top))); margin: 0; border: 0; }
  .dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .dialog-banner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "topic topic" "title art"; align-content: space-between; align-items: end; gap: 14px 12px; min-height: 152px; padding: 20px 20px 24px; }
  .dialog-topic { margin-right: 44px; }
  .dialog-banner h2 { font-size: 32px; }
  .dialog-banner img { width: 96px; height: auto; margin: 0; }
  .dialog-close { top: 12px; right: 12px; border: 1.5px solid var(--on-acid); color: var(--on-acid); }
  .dialog-close:focus-visible { outline-color: var(--on-acid); }
  .dialog-content { padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fields input { font-size: 17px; }
  .send { width: 100%; }
  .dialog-contacts { border: 0; padding-top: 0; }
  .dialog-success p { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
