/* Studio Shalev Ariel — design layer. Colors, type and spacing live in :root. */
:root {
  --ink: #000;
  --paper: #fff;
  --font: 'Inter Tight', Inter, system-ui, -apple-system, sans-serif;
  --max: 1280px;
  --gap-x: 48px;
  --gap-y: 50px;
  --card-ratio: 3 / 4;
  --hero-h: min(100svh, 900px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }
button { font: inherit; }
h1, h2 { margin: 0; font-weight: 700; }
.light { font-weight: 300; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* hero slider */
.hero { position: relative; height: var(--hero-h); overflow: hidden; background: #111; color: #fff; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover;  object-position: var(--pos, center); }
@media (max-width: 700px) and (orientation: portrait) { .slide img { object-position: var(--pos-m, var(--pos, center)); } }
.hero-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(0,0,0,.18); pointer-events: none; padding: 0 16px; }
.hero-title h1 { font-size: clamp(28px, 4.2vw, 48px); line-height: 1; letter-spacing: .01em; }
.hero-zones { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: 30% 1fr 30%; }
.hero-zones > * { display: block; height: 100%; border: 0; padding: 0; margin: 0; background: none; -webkit-tap-highlight-color: transparent; }
.hero-prev { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M24 10 14 20l10 10' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M24 10 14 20l10 10' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 20 20, w-resize; }
.hero-next { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M16 10l10 10-10 10' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 10l10 10-10 10' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 20 20, e-resize; }
.hero-link { cursor: pointer; }
.hero-prev:focus-visible, .hero-next:focus-visible, .hero-link:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.hero-ui { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 20px; pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.hero-cap { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.dots { display: flex; }
.dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,.45); }
.dots [aria-current="true"] span { background: #fff; }
@media (max-width: 600px) { .dots button { width: 28px; } .dots span { width: 16px; } .hero-ui { flex-direction: column; gap: 4px; } }

/* sticky bar */
.bar { position: sticky; top: 0; z-index: 5; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; min-height: 52px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.bar > :first-child { justify-self: start; }
.bar > :last-child { justify-self: end; }
.bar .mark { letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 520px) { .bar { font-size: 11px; gap: 8px; } }

/* work grid */
.work { padding: 56px 24px 0; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-bottom: 56px; }
.filters button { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; cursor: pointer; text-underline-offset: 6px; }
.filters [aria-pressed="true"] { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap-y) var(--gap-x); max-width: var(--max); margin: 0 auto; }
.card { position: relative; display: block; overflow: hidden; }
.card:hover { opacity: 1; }
.card .media { width: 100%; aspect-ratio: var(--card-ratio); height: auto; object-fit: cover; object-position: center 30%; background: #f2f2f2; }
.card[hidden] { display: none; }
.cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: rgba(255,255,255,.72); opacity: 0; transition: opacity .35s ease; }
.card:hover .cap, .card:focus-visible .cap { opacity: 1; }
.cap .cat { font-size: 12px; letter-spacing: .04em; }
.cap .title { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; }
@media (hover: none) { .cap { position: static; background: none; opacity: 1; padding: 18px 0 0; } }

/* contact */
.contact { margin: 180px auto 0; padding: 80px 24px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; max-width: var(--max); font-size: 14px; line-height: 1.7; }
.contact > div { display: flex; flex-direction: column; gap: 12px; }
.contact h2 { font-size: 14px; letter-spacing: .06em; }
.contact p { margin: 0; }
.foot { background: var(--ink); color: var(--paper); text-align: center; padding: 28px 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.foot .small { font-size: 11px; font-weight: 300; letter-spacing: .04em; opacity: .7; }

/* project page */
.proj { max-width: var(--max); margin: 0 auto; padding: 32px 24px 0; }
.crumbs { font-size: 12px; letter-spacing: .04em; margin-bottom: 48px; }
.proj-head { text-align: center; margin-bottom: 64px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.proj-head .cat { font-size: 12px; letter-spacing: .06em; }
.proj-head h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: .01em; text-transform: uppercase; }
.proj-head .meta { margin: 0; font-size: 13px; }
.proj-head .lead { margin: 8px 0 0; max-width: 620px; font-size: 15px; line-height: 1.7; }
.credits { list-style: none; padding: 0; margin: 0; font-size: 12px; line-height: 1.8; }
.film { margin: 0 auto 64px; max-width: 1100px; }
.film video { width: 100%; background: #000; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; background: #f2f2f2; }
.shot.wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; gap: 16px; } }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin: 96px 0 64px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pager [rel="next"] { text-align: right; }
.nf { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
