/* ============================================================
   HASAN MAHDI — The Proof Sheet
   A photographer's contact sheet laid on white paper. The interface
   is ink: hairline rules, frame numbers down the margins, rebate
   perforations, everything squared off. The photographs are the only
   colour in the building, and they arrive by developing in.
   ============================================================ */

:root {
  color-scheme: light;

  /* ink on paper */
  --paper: #f7f7f5;
  --paper-2: #eceae5;
  --paper-3: #e2e0da;
  --ink: #0b0b0a;
  --ink-soft: #2e2e2b;
  --graphite: #6a6a64;
  --pencil: #9d9d96;
  --rule: #d2d0c9;
  --rule-soft: #e4e2dc;

  /* type */
  --display: 'Instrument Serif', 'Times New Roman', Didot, serif;
  --ui: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* scale */
  --t-xs: 0.66rem;
  --t-sm: 0.78rem;
  --t-base: clamp(0.94rem, 0.9rem + 0.22vw, 1.04rem);
  --t-lead: clamp(1.08rem, 0.98rem + 0.58vw, 1.44rem);
  --t-h3: clamp(1.32rem, 1.05rem + 1.3vw, 2rem);
  --t-h2: clamp(1.95rem, 1.1rem + 3.6vw, 4.6rem);
  --t-h1: clamp(3rem, 0.4rem + 12.4vw, 15rem);

  /* rhythm */
  --gutter: clamp(18px, 4.2vw, 68px);
  --rail: 0px;
  --plate: clamp(64px, 10vh, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 1100px) { :root { --rail: 46px } }

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--ui);
  font-size: var(--t-base);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit }
::selection { background: var(--ink); color: var(--paper) }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 300; transform: translateY(-200%);
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--mono); font-size: var(--t-sm); letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { transform: translateY(0) }

/* ---------- paper grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: var(--grain-src); background-size: 170px 170px;
}

/* ---------- margin rails ---------- */
.rail {
  position: fixed; top: 0; bottom: 0; width: var(--rail); z-index: 60;
  pointer-events: none; display: none; border-inline: 1px solid var(--rule-soft);
}
@media (min-width: 1100px) { .rail { display: block } }
.rail.left { left: 0; border-left: 0 }
.rail.right { right: 0; border-right: 0 }
.rail-txt {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .42em; text-transform: uppercase; color: var(--pencil); white-space: nowrap;
}
.rail.right .rail-txt { transform: translate(-50%, -50%) }
.rail-ticks { position: absolute; inset: 0; display: grid; grid-auto-rows: 1fr }
.rail-ticks i { border-bottom: 1px solid var(--rule-soft); position: relative }
.rail-ticks i::after { content: ''; position: absolute; right: 0; bottom: -1px; width: 9px; height: 1px; background: var(--rule) }
.rail-count {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-family: var(--mono); font-size: var(--t-xs); color: var(--ink);
  writing-mode: vertical-rl; letter-spacing: .2em;
}

/* ---------- loupe ---------- */
.loupe {
  position: fixed; z-index: 150; pointer-events: none;
  width: 184px; height: 184px; margin: -92px 0 0 -92px; border-radius: 50%;
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rule), 0 18px 40px rgba(0,0,0,.18);
  background-repeat: no-repeat; background-color: var(--paper-2);
  opacity: 0; transform: scale(.7);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.loupe.on { opacity: 1; transform: scale(1) }
.loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 26px rgba(0,0,0,.16) }
.loupe-x { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; transform: translate(-50%,-50%); opacity: .5 }
.loupe-x::before, .loupe-x::after { content: ''; position: absolute; background: var(--paper); mix-blend-mode: difference }
.loupe-x::before { left: 50%; top: 0; bottom: 0; width: 1px }
.loupe-x::after { top: 50%; left: 0; right: 0; height: 1px }
@media (hover: none), (pointer: coarse) { .loupe { display: none } }

/* ---------- cursor + progress ---------- */
.cur {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink);
  opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cur.on { opacity: 1 }
.cur.wide { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: transparent; border: 1px solid var(--ink) }
@media (hover: none), (pointer: coarse) { .cur { display: none } }

.prog { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; background: var(--ink); transform: scaleX(0); transform-origin: left }

/* ---------- shared ---------- */

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: max(var(--gutter), calc(var(--rail) + 18px)) }
.plate { padding-block: var(--plate); position: relative }
.plate-tight { padding-block: clamp(22px, 4vh, 50px) var(--plate) }

.eyebrow {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .34em; text-transform: uppercase;
  color: var(--graphite); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--ink); flex: none }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance }
h2 { font-size: var(--t-h2); line-height: .96; letter-spacing: -.012em }
h3 { font-size: var(--t-h3); line-height: 1.1 }
p { margin: 0 }
.ital { font-style: italic }
.lede { font-size: var(--t-lead); line-height: 1.45; max-width: 36ch; color: var(--ink-soft); font-weight: 300 }
.hair { height: 1px; background: var(--rule); width: 100% }
.rebate {
  height: 14px; width: 100%;
  background-image: radial-gradient(circle at 7px 7px, var(--paper-3) 3.2px, transparent 3.4px);
  background-size: 22px 14px;
}

.lnk {
  position: relative; display: inline-block; font-family: var(--mono); font-size: var(--t-sm);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 3px 0 5px;
}
.lnk::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.lnk:hover::after, .lnk:focus-visible::after { transform: scaleX(1); transform-origin: left }

.blk {
  position: relative; z-index: 0; overflow: hidden; cursor: pointer; display: inline-block; text-align: center;
  font-family: var(--mono); font-size: var(--t-sm); letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--ink); background: none; color: var(--ink);
  padding: 15px 28px; transition: color .4s var(--ease);
}
.blk::before {
  content: ''; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.blk:hover, .blk:focus-visible { color: var(--paper) }
.blk:hover::before, .blk:focus-visible::before { transform: translateY(0) }

/* ---------- developing: prints come up in the tray ---------- */

.js .dev { opacity: 0; filter: contrast(2.1) brightness(1.34) saturate(.2); transform: scale(1.02) }
.js .dev.fixed-up { transition: opacity 1.05s var(--ease), filter 1.5s var(--ease), transform 1.5s var(--ease) }
.js .dev.up { opacity: 1; filter: none; transform: none }

.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform 1s var(--ease) }
.js .rv.in { opacity: 1; transform: none }
.js .rv-d1 { transition-delay: .08s } .js .rv-d2 { transition-delay: .16s }

/* ---------- header ---------- */

.hdr {
  position: fixed; left: 0; right: 0; top: 0; z-index: 130;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(var(--gutter), calc(var(--rail) + 18px)) 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: transform .55s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.hdr.solid { background: var(--paper); border-bottom-color: var(--rule) }
.hdr.hide { transform: translateY(-130%) }
.mark { display: flex; align-items: baseline; gap: 10px; min-width: 0 }
.mark b { font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: var(--ink); font-weight: 400 }
.mark i { font-family: var(--mono); font-style: normal; font-size: var(--t-xs); letter-spacing: .2em; color: var(--pencil); white-space: nowrap }
.hdr nav { display: flex; gap: clamp(6px, 1.4vw, 22px) }
.hdr nav a {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); padding: 7px 10px; position: relative; z-index: 0; transition: color .35s; white-space: nowrap;
}
.hdr nav a::before {
  content: ''; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease);
}
.hdr nav a:hover { color: var(--paper) }
.hdr nav a:hover::before { transform: scaleY(1) }
.hdr nav a[aria-current="page"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: var(--ink) }

.burger { display: none; background: none; border: 1px solid var(--ink); width: 44px; height: 34px; position: relative; cursor: pointer; flex: none }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .4s var(--ease) }
.burger span:nth-child(1) { top: 12px } .burger span:nth-child(2) { top: 19px }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg) }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg) }

.sheet-nav {
  position: fixed; inset: 0; z-index: 125; background: var(--paper);
  display: grid; align-content: center; gap: 2px; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); overflow-y: auto;
}
.sheet-nav[data-open] { clip-path: inset(0 0 0 0) }
.sheet-nav a { font-family: var(--display); font-size: clamp(1.9rem, 10vw, 3.4rem); color: var(--ink); line-height: 1.22; display: flex; align-items: baseline; gap: 14px }
.sheet-nav a small { font-family: var(--mono); font-size: .56rem; letter-spacing: .24em; color: var(--pencil) }
.sheet-foot { margin-top: 26px; display: grid; gap: 5px; font-family: var(--mono); font-size: var(--t-sm); color: var(--graphite) }

/* ============================================================
   HOME — masthead over a running strip
   ============================================================ */

.mast {
  position: relative; min-height: 100svh;
  padding-block: calc(env(safe-area-inset-top, 0px) + clamp(92px, 13vh, 160px)) 0;
  display: flex; flex-direction: column; justify-content: center;
}
/* centred flex children overflow both ends when the content is taller than the
   box, which clips the top on short landscape phones; `safe` pins it to the
   start instead. .strip clips its own horizontal overflow, so .mast does not
   need overflow:hidden at all. */
@supports (justify-content: safe center) { .mast { justify-content: safe center } }
@media (max-height: 560px) and (orientation: landscape) {
  .mast { min-height: auto; padding-block: calc(env(safe-area-inset-top, 0px) + 86px) 0 }
  .mast-ttl { font-size: clamp(2.4rem, 9vw, 5rem) }
  .strip-f { width: clamp(140px, 20vw, 240px) }
  .reel { height: clamp(300px, 80vh, 460px) }
  .slide img { height: clamp(220px, 70vh, 420px) }
}
.mast-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end }
.mast-meta { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); display: grid; gap: 4px; text-align: right }
.mast-meta b { color: var(--ink); font-weight: 400 }

.mast-ttl { font-family: var(--display); font-size: var(--t-h1); line-height: .8; letter-spacing: -.035em; color: var(--ink); margin: clamp(12px, 2.4vh, 30px) 0 0 }
.mast-ttl .l { display: block; overflow: hidden }
.mast-ttl .l > span { display: block }
.mast-ttl .l:nth-child(2) { text-align: right; font-style: italic; letter-spacing: -.02em; margin-top: -.06em }

.strip { position: relative; margin-top: clamp(22px, 4.5vh, 58px); border-block: 1px solid var(--ink); background: var(--paper-2); overflow: hidden }
.strip-in { display: flex; gap: 10px; padding: 10px; width: max-content; will-change: transform }
.strip-f { position: relative; flex: none; width: clamp(160px, 24vw, 400px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); border: 1px solid var(--ink) }
.strip-f img { width: 100%; height: 100%; object-fit: cover }
.strip-f b { position: absolute; left: 6px; bottom: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--paper); background: var(--ink); padding: 1px 5px }
.mast-foot { display: flex; justify-content: flex-end; align-items: flex-start; gap: clamp(16px, 4vw, 60px); flex-wrap: wrap; padding-block: clamp(18px, 3.2vh, 38px) }
.mast-foot p { max-width: 44ch; font-weight: 300 }
.scrollcue { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--graphite); display: flex; align-items: center; gap: 10px; white-space: nowrap }
.scrollcue i { width: 44px; height: 1px; background: var(--rule); position: relative; overflow: hidden; display: block }
.scrollcue i::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: cue 2.4s var(--ease-io) infinite }
@keyframes cue { 0% { transform: translateX(-100%) } 60%, 100% { transform: translateX(100%) } }

/* ---------- statement ---------- */

.stmt { font-family: var(--display); font-size: clamp(1.5rem, 1rem + 2.6vw, 3.4rem); line-height: 1.16; color: var(--ink); max-width: 20ch }
.stmt .w { opacity: .16; transition: opacity .45s linear }
.stmt .w.lit { opacity: 1 }
.stmt-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: end }

/* ---------- banner: the photographer ---------- */

.banner { position: relative; padding-block: 0 var(--plate) }
.banner-in { position: relative; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2) }
.banner-meta { background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap }

/* ---------- showcase: the home edit, at size ---------- */

.show { display: grid; gap: clamp(44px, 8vh, 120px) }
.show-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(18px, 3.6vw, 64px); align-items: center; cursor: pointer }
.show-item:nth-child(even) .show-fig { order: 2 }
.show-fig { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2) }
.show-fig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease) }
.show-item:nth-child(3n) .show-fig img { aspect-ratio: 3 / 4 }
.show-item:nth-child(3n+2) .show-fig img { aspect-ratio: 1 }
.show-item:hover .show-fig img { transform: scale(1.035) }
.show-meta { display: grid; gap: clamp(7px, 1.3vh, 15px); align-content: center; min-width: 0 }
.show-meta .n { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--pencil) }
.show-meta h3 { font-size: clamp(1.7rem, 1rem + 2.7vw, 3.6rem); line-height: 1.02 }
.show-meta p { color: var(--graphite) }
.show-meta .open { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; margin-top: 4px }
.show-meta .open::after { content: ''; width: 24px; height: 1px; background: var(--ink); transition: width .35s var(--ease) }
.show-item:hover .show-meta .open::after { width: 44px }

/* ---------- numbers ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: clamp(32px, 6vh, 80px) }
.stat { padding: clamp(16px, 2.6vw, 30px) clamp(10px, 1.6vw, 20px) clamp(16px, 2.6vw, 26px) 0; border-right: 1px solid var(--rule); display: grid; gap: 6px; min-width: 0 }
.stat:last-child { border-right: 0 }
.stat b { font-family: var(--display); font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: .9; color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums }
.stat span { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }

/* ---------- services ---------- */

.svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-bottom: clamp(22px, 4vh, 48px) }
.svc-list { border-top: 1px solid var(--ink) }
.svc {
  border-bottom: 1px solid var(--rule); position: relative; cursor: pointer;
  display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, .85fr) 118px;
  gap: clamp(8px, 2vw, 28px); align-items: center; padding-block: clamp(15px, 2.7vw, 32px);
  transition: padding-inline .45s var(--ease), background .45s var(--ease);
}
.svc:hover, .svc.open { background: var(--paper-2); padding-inline: clamp(8px, 1.6vw, 22px) }
.svc-n { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; color: var(--pencil) }
.svc-name { font-family: var(--display); font-size: clamp(1.45rem, 3.1vw, 2.9rem); line-height: 1; color: var(--ink) }
.svc-lead { font-size: var(--t-sm); color: var(--graphite) }
.svc-go { justify-self: end; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--graphite); display: flex; align-items: center; gap: 9px; white-space: nowrap }
.svc-go svg { width: 18px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; overflow: visible }
.svc-go svg path { transition: transform .4s var(--ease) }
.svc:hover .svc-go { color: var(--ink) }
.svc:hover .svc-go svg path { transform: translateX(5px) }
.svc-body { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease) }
.svc.open .svc-body { grid-template-rows: 1fr }
.svc-body > div { overflow: hidden }
.svc-body-in { padding-top: clamp(14px, 2.2vw, 24px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start }
.svc-body p { max-width: 52ch; color: var(--ink-soft) }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none }
.svc-meta li { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--rule); padding: 5px 10px; color: var(--graphite) }
.svc-cta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px }
.svc-shot { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-3); border: 1px solid var(--ink) }
.svc-shot img { width: 100%; height: 100%; object-fit: cover }

.svc-brief { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink) }
.svc-brief li { border-bottom: 1px solid var(--rule) }
.svc-brief a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding-block: clamp(14px, 2.2vw, 24px); transition: padding-inline .4s var(--ease), background .4s }
.svc-brief a:hover { background: var(--paper-2); padding-inline: 14px }
.svc-brief .n { font-family: var(--mono); font-size: var(--t-xs); color: var(--pencil) }
.svc-brief .t { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--ink); line-height: 1 }
.svc-brief .d { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); text-align: right }

.peek {
  position: fixed; z-index: 95; width: clamp(190px, 18vw, 300px); aspect-ratio: 3 / 4;
  pointer-events: none; overflow: hidden; opacity: 0; border: 1px solid var(--ink);
  transform: translate(-50%, -50%) scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease);
  box-shadow: 0 20px 50px rgba(0,0,0,.18); background: var(--paper-2);
}
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1) }
.peek img { width: 100%; height: 100%; object-fit: cover }
@media (hover: none), (pointer: coarse) { .peek { display: none } }

/* ============================================================
   GALLERY — three ways to look
   ============================================================ */

.gal-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-block: clamp(16px, 3vh, 34px) clamp(14px, 2.6vh, 26px) }
.chips { display: flex; gap: 0; flex-wrap: wrap; min-width: 0; border: 1px solid var(--ink) }
.chip {
  background: none; border: 0; border-right: 1px solid var(--rule); color: var(--graphite); cursor: pointer;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 14px; transition: color .3s, background .3s;
}
.chip:last-child { border-right: 0 }
.chip:hover { color: var(--ink); background: var(--paper-2) }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper) }
.gal-bar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.gal-note { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite) }

.modes { display: flex; border: 1px solid var(--ink); flex-wrap: wrap }
.modes button {
  background: none; border: 0; border-right: 1px solid var(--rule); cursor: pointer; padding: 10px 13px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--graphite); transition: color .3s, background .3s; display: flex; align-items: center; gap: 7px;
}
.modes button:last-child { border-right: 0 }
.modes button:hover { background: var(--paper-2); color: var(--ink) }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--paper) }
.modes svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; flex: none }

/* --- grid --- */
.grid { position: relative; width: 100%; transition: height .6s var(--ease) }
.grid.no-anim .cell { transition: none }
.cell {
  position: absolute; top: 0; left: 0; overflow: hidden; cursor: pointer; background: var(--paper-2);
  transition: transform .7s var(--ease), width .7s var(--ease), height .7s var(--ease), opacity .45s;
  border: 1px solid var(--ink);
}
.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease) }
.cell:hover img, .cell:focus-visible img { transform: scale(1.04) }
.cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 11px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  background: var(--paper); border-top: 1px solid var(--ink);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.cell:hover figcaption, .cell:focus-visible figcaption { transform: none }
.cell figcaption b { font-family: var(--display); font-size: 1.02rem; color: var(--ink); font-weight: 400 }
.cell figcaption span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin-top: 1px }
.cell figcaption i { font-family: var(--mono); font-style: normal; font-size: 9px; color: var(--pencil) }
.cell.ghost { opacity: 0; pointer-events: none; transform: scale(.95) }
.cap-l { min-width: 0 }

/* --- reel: grab and spin --- */
.reel { position: relative; height: clamp(360px, 62vh, 640px); perspective: 1500px; overflow: hidden; touch-action: pan-y; cursor: grab }
.reel:active { cursor: grabbing }
.reel-stage { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform }
.reel-card {
  position: absolute; left: 50%; top: 50%; width: clamp(165px, 22vw, 300px); aspect-ratio: 2 / 3;
  margin: 0; cursor: pointer; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2);
}
.reel-card img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .5s }
.reel-card.front img { opacity: 1 }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: var(--paper); border-top: 1px solid var(--ink) }
.reel-cap b { font-family: var(--display); font-size: .94rem; color: var(--ink); font-weight: 400; display: block; line-height: 1.1 }
.reel-cap span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }
.reel-ui { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap }
.rline { flex: 1 1 120px; height: 1px; background: var(--rule); position: relative; min-width: 60px }
.rline i { position: absolute; top: -1px; height: 3px; background: var(--ink); transition: left .35s var(--ease), width .35s var(--ease) }
.rbtn { background: none; border: 1px solid var(--ink); color: var(--ink); width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .3s, color .3s }
.rbtn:hover { background: var(--ink); color: var(--paper) }
.reel-hint { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); white-space: nowrap }

/* --- carousel: a plain slider --- */
.slider { position: relative }
.slide-track {
  display: flex; gap: clamp(10px, 1.4vw, 20px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-block: 2px; scrollbar-width: none;
}
.slide-track::-webkit-scrollbar { display: none }
.slide {
  flex: 0 0 min(960px, 86vw); scroll-snap-align: center; position: relative;
  overflow: hidden; background: var(--paper-2); border: 1px solid var(--ink); cursor: pointer; margin: 0;
}
.slide img { width: 100%; height: clamp(300px, 60vh, 640px); object-fit: cover }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: var(--paper); border-top: 1px solid var(--ink); display: grid; gap: 1px }
.slide figcaption b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); font-weight: 400 }
.slide figcaption span { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }
.slider-ui { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap }
.slide-count { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap }
@media (prefers-reduced-motion: reduce) { .slide-track { scroll-behavior: auto } }

/* ---------- frame viewer ---------- */

.lb {
  position: fixed; inset: 0; z-index: 180; background: var(--paper);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lb[data-open] { opacity: 1; visibility: visible }
.lb-top, .lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: clamp(10px, 2vw, 22px) var(--gutter); flex-wrap: wrap }
.lb-top { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2vw, 22px)); border-bottom: 1px solid var(--rule) }
.lb-bot { border-top: 1px solid var(--rule) }
.lb-stage { position: relative; display: grid; place-items: center; padding: clamp(8px, 2vw, 26px) clamp(6px, 4vw, 70px); min-height: 0; overflow: hidden }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; border: 1px solid var(--ink); transition: opacity .5s var(--ease), filter .6s var(--ease) }
.lb-stage img.in { opacity: 1 }
.lb[data-mono] .lb-stage img { filter: grayscale(1) contrast(1.06) }
.lb-ttl { font-family: var(--display); font-size: clamp(1.05rem, 2.2vw, 1.7rem); color: var(--ink) }
.lb-sub { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite) }
.lb-count { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink); font-variant-numeric: tabular-nums }
.lb-tools { display: flex; gap: 8px; align-items: center }
.lb-tgl { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 8px 12px; cursor: pointer; transition: background .3s, color .3s }
.lb-tgl[aria-pressed="true"] { background: var(--ink); color: var(--paper) }
.lb-x { background: none; border: 1px solid var(--ink); color: var(--ink); width: 42px; height: 42px; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .3s, color .3s }
.lb-x:hover { background: var(--ink); color: var(--paper) }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink); cursor: pointer; padding: 18px 4px; opacity: .45; transition: opacity .3s }
.lb-arrow:hover { opacity: 1 }
.lb-arrow.prev { left: 0 } .lb-arrow.next { right: 0 }
.lb-arrow svg { width: clamp(18px, 4vw, 24px); height: clamp(18px, 4vw, 24px); fill: none; stroke: currentColor; stroke-width: 1.2 }

/* ---------- process ---------- */

.proc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 78px) }
.proc-steps { position: relative; border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 44px) }
.proc-line { position: absolute; left: -1px; top: 0; width: 1px; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0) }
.step { padding-block: clamp(16px, 3vw, 32px); display: grid; gap: 7px; position: relative }
.step + .step { border-top: 1px solid var(--rule-soft) }
.step::before {
  content: ''; position: absolute; left: calc(-1 * clamp(20px, 3vw, 44px) - 3.5px); top: calc(clamp(16px, 3vw, 32px) + 9px);
  width: 7px; height: 7px; background: var(--paper); border: 1px solid var(--rule); border-radius: 50%; transition: background .4s, border-color .4s;
}
.step.lit::before { background: var(--ink); border-color: var(--ink) }
.step b { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; color: var(--pencil); font-weight: 400 }
.step p { color: var(--graphite); max-width: 48ch }

/* ---------- words ---------- */

.words { display: grid; gap: clamp(18px, 4vh, 38px); justify-items: center; text-align: center }
.quote-wrap { display: grid; grid-template-areas: 'q'; width: 100%; justify-items: center }
.quote-item { grid-area: q; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; display: grid; gap: 16px; justify-items: center; margin: 0 }
.quote-item[data-on] { opacity: 1; transform: none; pointer-events: auto }
.quote { max-width: 24ch; font-family: var(--display); font-size: clamp(1.4rem, 1rem + 2.4vw, 3rem); line-height: 1.16; color: var(--ink); font-style: italic; margin: 0 }
.quote-by { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--ink) }
.quote-by span { color: var(--graphite) }
.words-dots { display: flex; gap: 6px }
.words-dots button { width: 30px; height: 2px; border: 0; padding: 0; background: var(--rule); cursor: pointer; transition: background .35s }
.words-dots button[aria-selected="true"] { background: var(--ink) }

/* ---------- studio ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: center }
.about-frames { position: relative }
.about-frames .f1 { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--ink); background: var(--paper-2) }
.about-frames .f2 { position: absolute; right: -6%; bottom: -11%; width: 44%; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: -14px -14px 0 var(--paper) }
.about-frames img { width: 100%; height: 100%; object-fit: cover }
.about-frames .tagf { position: absolute; left: -12px; top: 18px; writing-mode: vertical-rl; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--graphite) }
.about-copy { display: grid; gap: clamp(14px, 2.2vw, 26px); align-content: start }
.sig { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3.8vw, 2.3rem); color: var(--ink) }

.kit { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 78px) }
.kit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink) }
.kit-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: baseline; padding-block: clamp(12px, 1.8vw, 18px); border-bottom: 1px solid var(--rule-soft) }
.kit-list b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); font-weight: 400 }
.kit-list span { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--graphite) }

/* ---------- contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px) }
.cside { display: grid; gap: clamp(16px, 2.6vw, 30px); align-content: start }
.cblock { display: grid; gap: 5px; min-width: 0 }
.cblock small { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--graphite) }
.cblock b { font-family: var(--display); font-size: clamp(1.05rem, 2.1vw, 1.5rem); color: var(--ink); font-weight: 400; overflow-wrap: anywhere }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.copy-btn { background: none; border: 1px solid var(--rule); color: var(--graphite); font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; cursor: pointer; transition: background .3s, color .3s, border-color .3s }
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink) }

.form { display: grid; gap: clamp(8px, 1.4vw, 16px) }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px) }
.field { position: relative; display: block; min-width: 0 }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 21px 0 9px; color: var(--ink); font-size: var(--t-base); border-radius: 0; appearance: none;
  transition: border-color .35s;
}
.field textarea { resize: vertical; min-height: 92px }
.field select { cursor: pointer }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink) }
.field span.lab {
  position: absolute; left: 0; top: 20px; font-family: var(--mono); font-size: var(--t-sm);
  letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); pointer-events: none;
  transition: transform .4s var(--ease), color .4s; transform-origin: left;
}
.field input:focus + .lab, .field textarea:focus + .lab, .field select:focus + .lab,
.field input:not(:placeholder-shown) + .lab, .field textarea:not(:placeholder-shown) + .lab,
.field select[data-filled] + .lab { transform: translateY(-19px) scale(.8); color: var(--ink) }
.field .err { display: block; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); min-height: 1em; margin-top: 4px }
.field .err:not(:empty)::before { content: '\2715  ' }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--ink); border-bottom-width: 2px }

.submit { margin-top: 8px; justify-self: start; padding: 17px 40px }
.form-sent { display: none; border: 1px solid var(--ink); padding: clamp(18px, 3vw, 32px); gap: 10px; background: var(--paper-2) }
.form-sent[data-on] { display: grid }
.form-sent b { font-family: var(--display); font-size: 1.5rem; color: var(--ink); font-weight: 400 }
.form-sent .note { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite) }
#sentAgain { background: none; border: 0; padding: 0; cursor: pointer }

.faq { margin-top: clamp(28px, 5vh, 56px); border-top: 1px solid var(--ink) }
.faq details { border-bottom: 1px solid var(--rule) }
.faq summary { cursor: pointer; list-style: none; padding-block: clamp(14px, 2.2vw, 22px); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--display); font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: var(--ink) }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--graphite); transition: transform .35s var(--ease) }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq p { padding-bottom: clamp(14px, 2.2vw, 22px); color: var(--graphite); max-width: 60ch }

/* ---------- page heads ---------- */

.pagehead { padding-block: calc(env(safe-area-inset-top, 0px) + clamp(104px, 18vh, 196px)) clamp(20px, 4vh, 46px) }
.pagehead .wrap { display: grid; gap: clamp(12px, 2.2vh, 22px) }
.pagettl { font-family: var(--display); font-size: clamp(2.2rem, 1rem + 6.6vw, 6.6rem); line-height: .88; letter-spacing: -.03em; color: var(--ink); margin: 0 }

/* ---------- closing band + footer ---------- */

.band { border-top: 1px solid var(--ink); background: var(--ink); color: var(--paper) }
.band h2, .band .eyebrow { color: var(--paper) }
.band .eyebrow::before { background: var(--paper) }
.band-in { padding-block: clamp(40px, 7vh, 88px); display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 4vw, 56px); flex-wrap: wrap }
.band .blk { border-color: var(--paper); color: var(--paper) }
.band .blk::before { background: var(--paper) }
.band .blk:hover { color: var(--ink) }

.foot { padding-block: clamp(32px, 5vh, 70px) clamp(18px, 3vh, 34px) }
.foot-name { font-family: var(--display); font-size: clamp(2.2rem, 14vw, 14rem); line-height: .78; text-align: center; color: var(--ink); letter-spacing: -.03em; margin-bottom: clamp(20px, 4vh, 52px); user-select: none }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); border-top: 1px solid var(--rule); padding-top: 18px }
.foot-row a:hover { color: var(--ink) }
.clock { font-variant-numeric: tabular-nums }

/* ---------- page transition ---------- */

.wipe { position: fixed; inset: 0; z-index: 240; pointer-events: none; display: grid; grid-template-columns: repeat(3, 1fr) }
.wipe span { background: var(--ink); transform: scaleY(0); transform-origin: bottom; will-change: transform }
/* no fill-mode and no delay: if a browser freezes animations before they start,
   the blades rest at scaleY(0) instead of holding the page behind a curtain */
.wipe[data-out] span { animation: blade .68s var(--ease) }
.wipe[data-out] span:nth-child(2) { animation-duration: .76s }
.wipe[data-out] span:nth-child(3) { animation-duration: .84s }
@keyframes blade { from { transform: scaleY(1) } to { transform: scaleY(0) } }
.wipe[data-in] span { animation: none; transform: scaleY(1); transform-origin: top; transition: transform .4s var(--ease-io) }
.wipe[data-in] span:nth-child(2) { transition-delay: .04s }
.wipe[data-in] span:nth-child(3) { transition-delay: .08s }
@media (prefers-reduced-motion: reduce) { .wipe { display: none } }

/* ============================================================
   RESPONSIVE — checked at 320, 375, 390, 430, 768, 1024, 1280, 1920
   ============================================================ */

@media (max-width: 1240px) {
  .show-item { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) }
}

@media (max-width: 1100px) {
  .svc { grid-template-columns: 50px minmax(0, 1fr) 106px }
  .svc-lead { display: none }
  .about-grid, .proc, .contact, .kit, .stmt-grid { grid-template-columns: 1fr }
  .about-frames { max-width: 540px }
  .stmt { max-width: 26ch }
}

@media (max-width: 960px) {
  .show-item, .show-item:nth-child(even) .show-fig { grid-template-columns: 1fr; order: 0 }
  .show { gap: clamp(38px, 6vh, 64px) }
  .show-item:nth-child(3n) .show-fig img,
  .show-item:nth-child(3n+2) .show-fig img { aspect-ratio: 4 / 3 }
}

@media (max-width: 860px) {
  .hdr nav { display: none }
  .hdr > .blk { display: none }
  .burger { display: block }
  .svc-body-in { grid-template-columns: 1fr }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .stat:nth-child(2) { border-right: 0 }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--rule) }
}

@media (max-width: 640px) {
  .mast-ttl .l:nth-child(2) { text-align: left }
  .mast-meta { text-align: left }
  .frow { grid-template-columns: 1fr }
  .svc { grid-template-columns: 34px minmax(0, 1fr); row-gap: 4px }
  .svc-go { grid-column: 2; justify-self: start }
  .gal-bar { align-items: flex-start }
  .band-in { flex-direction: column; align-items: stretch }
  .band .blk { width: 100% }
  .kit-list li { grid-template-columns: 1fr; gap: 3px }
  .svc-brief a { grid-template-columns: 40px minmax(0, 1fr) }
  .svc-brief .d { display: none }
  .reel-hint { display: none }
  .lb-top, .lb-bot { padding-inline: 16px }
  .lb-sub { max-width: 100% }
}

@media (max-width: 480px) {
  .chips { width: 100% }
  .chip { flex: 1 1 auto; text-align: center; padding: 9px 10px }
  .modes { width: 100% }
  .modes button { flex: 1 1 auto; justify-content: center; padding: 10px 8px; gap: 5px }
  .gal-bar-right { width: 100%; flex-direction: column; align-items: stretch; gap: 10px }
  .slide { flex-basis: 88vw }
  .slide img { height: clamp(240px, 46vh, 400px) }
  .slider-ui, .reel-ui { gap: 10px }
  .rline { order: 3; flex-basis: 100%; margin-top: 4px }
  .lb-top { gap: 8px }
  .lb-ttl { font-size: 1rem }
  .quote { max-width: 20ch }
}

@media (max-width: 380px) {
  :root { --gutter: 16px }
  .mark i { display: none }
  .stats { grid-template-columns: 1fr }
  .stat { border-right: 0; border-top: 1px solid var(--rule) }
  .stat:first-child { border-top: 0 }
  .strip-f { width: 150px }
  .sheet-nav a { font-size: 1.85rem }
}

@media print { .cur, .loupe, .prog, .hdr, .wipe, .grain, .rail { display: none } }

/* ============================================================
   THE SHOT — the opening sequence
   The page loads the way a frame is taken: viewfinder, autofocus
   lock, the focal-plane curtains closing and opening, the flash,
   then the page revealed as the photograph.

   It rests at display:none, so if the script never runs nothing
   appears; and app.js removes the node on a timer, so a frozen
   animation can never leave the page behind a curtain.
   ============================================================ */

.shot { display: none }
.shot[data-run] { display: block; position: fixed; inset: 0; z-index: 260; pointer-events: none }

/* the viewfinder plate */
.shot-body {
  position: absolute; inset: 0; background: var(--paper);
  animation: vfIn .42s var(--ease), vfOut .3s var(--ease) 1.3s forwards;
}
@keyframes vfIn { from { opacity: .4; filter: blur(7px) } to { opacity: 1; filter: blur(0) } }
@keyframes vfOut { to { opacity: 0 } }

/* crop marks, one per corner */
.shot-corner { position: absolute; width: clamp(26px, 5vw, 54px); height: clamp(26px, 5vw, 54px); animation: cropIn .5s var(--ease) backwards }
.shot-corner::before, .shot-corner::after { content: ''; position: absolute; background: var(--ink) }
.shot-corner::before { width: 100%; height: 1px }
.shot-corner::after { width: 1px; height: 100% }
.shot-corner.tl { left: clamp(16px, 4vw, 48px); top: clamp(16px, 4vw, 48px) }
.shot-corner.tr { right: clamp(16px, 4vw, 48px); top: clamp(16px, 4vw, 48px); animation-delay: .04s }
.shot-corner.tr::before { right: 0 } .shot-corner.tr::after { right: 0 }
.shot-corner.bl { left: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); animation-delay: .08s }
.shot-corner.bl::before { bottom: 0 } .shot-corner.bl::after { bottom: 0 }
.shot-corner.br { right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); animation-delay: .12s }
.shot-corner.br::before { right: 0; bottom: 0 } .shot-corner.br::after { right: 0; bottom: 0 }
@keyframes cropIn { from { opacity: 0; transform: scale(1.5) } to { opacity: 1; transform: none } }

/* the autofocus area: racks in, then snaps shut on the subject */
.shot-af {
  position: absolute; left: 50%; top: 50%; width: clamp(130px, 24vw, 260px); aspect-ratio: 3 / 2;
  margin: 0; border: 1px solid var(--ink); transform: translate(-50%, -50%);
  animation: afRack .46s var(--ease) backwards, afLock .34s var(--ease) .5s backwards;
}
@keyframes afRack { from { opacity: 0; transform: translate(-50%, -50%) scale(1.75) } to { opacity: 1; transform: translate(-50%, -50%) scale(1) } }
@keyframes afLock {
  0% { transform: translate(-50%, -50%) scale(1) }
  55% { transform: translate(-50%, -50%) scale(.76) }
  70% { transform: translate(-50%, -50%) scale(.8) }
  100% { transform: translate(-50%, -50%) scale(.78) }
}
.shot-af i { position: absolute; background: var(--ink) }
.shot-af i:nth-child(1), .shot-af i:nth-child(2) { width: 9px; height: 1px; left: 50%; margin-left: -4.5px }
.shot-af i:nth-child(1) { top: -5px } .shot-af i:nth-child(2) { bottom: -5px }
.shot-af i:nth-child(3), .shot-af i:nth-child(4) { width: 1px; height: 9px; top: 50%; margin-top: -4.5px }
.shot-af i:nth-child(3) { left: -5px } .shot-af i:nth-child(4) { right: -5px }

/* the viewfinder readout */
.shot-read {
  position: absolute; left: 0; right: 0; bottom: clamp(34px, 8vh, 92px);
  display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2.4vw, 26px);
  flex-wrap: wrap; padding-inline: 18px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase;
  color: var(--graphite); animation: readIn .4s var(--ease) .16s backwards;
}
.shot-read b { color: var(--ink); font-weight: 400; letter-spacing: .3em }
.shot-read em { font-style: normal; color: var(--ink); display: inline-flex; align-items: center; gap: 7px }
.shot-read em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: afBlink .34s steps(1) 3 }
@keyframes readIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes afBlink { 0%, 50% { opacity: 1 } 51%, 100% { opacity: .15 } }

/* the focal-plane curtains */
.shot-curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transform: translateY(-101%) }
.shot-curtain.top { top: 0; animation: curtainTop .46s var(--ease-io) .92s forwards }
.shot-curtain.bot { bottom: 0; transform: translateY(101%); animation: curtainBot .46s var(--ease-io) .92s forwards }
@keyframes curtainTop {
  0% { transform: translateY(-101%) } 34% { transform: translateY(0) }
  50% { transform: translateY(0) } 100% { transform: translateY(-101%) }
}
@keyframes curtainBot {
  0% { transform: translateY(101%) } 34% { transform: translateY(0) }
  50% { transform: translateY(0) } 100% { transform: translateY(101%) }
}

/* the flash, at the moment the curtains meet */
.shot-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flashPop .3s linear 1.06s forwards }
@keyframes flashPop { 0% { opacity: 0 } 18% { opacity: .95 } 100% { opacity: 0 } }

@media (prefers-reduced-motion: reduce) { .shot { display: none !important } }

/* ============================================================
   THE LENS — a technical drawing of a lens, built in CSS 3D.
   Outlined rings stacked on the Z axis, an SVG iris that opens
   with the scroll, and the whole barrel tilting to the pointer.
   ============================================================ */

.lens-sec { position: relative }
.lens-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center }
.lens-stage {
  perspective: 1200px; perspective-origin: 50% 46%;
  display: grid; place-items: center; padding-block: clamp(16px, 4vh, 50px);
  touch-action: pan-y;
}
.lens {
  position: relative; width: min(100%, clamp(240px, 38vw, 460px)); aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--rz, 0px));
}
.lens-ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid var(--ink); background: none;
  width: calc(100% * var(--s)); height: calc(100% * var(--s));
  transform: translateZ(var(--z));
}
.lens-ring.knurl { border-style: dashed }
.lens-ring.thick { border-width: 2px }
.lens-glass {
  position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; border-radius: 50%;
  transform: translateZ(-26px);
  background:
    radial-gradient(60% 55% at 34% 30%, var(--paper) 0%, transparent 58%),
    radial-gradient(120% 120% at 50% 50%, var(--paper-2) 0%, var(--paper-3) 62%, var(--ink) 140%);
  border: 1px solid var(--ink);
}
.lens-iris { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; transform: translateZ(-24px); color: var(--ink); overflow: visible }
.lens-iris svg { width: 100%; height: 100%; display: block }
.lens-iris .hole { transform: scale(var(--ap, .72)) rotate(calc(var(--ap, .72) * 22deg)); transform-origin: 50% 50%; transform-box: fill-box }
.lens-spokes { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; transform: translateZ(-23px); border-radius: 50%; opacity: .5 }
.lens-spokes i {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 50%; background: var(--ink);
  transform-origin: 50% 0; transform: rotate(calc(var(--i) * 45deg));
}
.lens-mount { position: absolute; inset: 0; margin: auto; width: 86%; height: 86%; border-radius: 50%; border: 1px solid var(--rule); transform: translateZ(-70px) }

.lens-read { display: grid; gap: clamp(10px, 1.8vh, 18px); align-content: center }
.lens-dial { display: flex; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding-block: clamp(12px, 2vh, 20px) }
.lens-dial div { display: grid; gap: 3px; min-width: 0 }
.lens-dial small { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--pencil) }
.lens-dial b { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.3rem); color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums }
.lens-hint { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--graphite) }
@media (hover: none), (pointer: coarse) { .lens-hint em { display: none } }

/* ============================================================
   BURST — the motor drive. A stack of frames that fans out
   as the section scrolls past.
   ============================================================ */

.burst-stage {
  position: relative; display: grid; place-items: center; perspective: 1100px;
  height: clamp(340px, 54vh, 560px); margin-top: clamp(20px, 4vh, 44px);
  /* the spread scales with the viewport, so the fan never leaves the page */
  --sp: clamp(52px, 10.5vw, 148px);
  --spy: clamp(10px, 2vw, 26px);
}
.burst-f {
  position: absolute; width: clamp(120px, 17vw, 215px); aspect-ratio: 3 / 4;
  border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  transform:
    translate3d(calc(var(--x, 0) * var(--sp) * var(--p, 0)), calc(var(--y, 0) * var(--spy) * var(--p, 0)), calc(var(--d, 0px) * var(--p, 0)))
    rotate(calc(var(--r, 0deg) * var(--p, 0)));
  transition: transform .18s linear;
}
.burst-f img { width: 100%; height: 100%; object-fit: cover }
.burst-f b {
  position: absolute; left: 0; bottom: 0; font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  color: var(--paper); background: var(--ink); padding: 2px 6px;
}
.burst-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); border-top: 1px solid var(--ink); padding-top: 14px }
.burst-meta b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums }

/* ============================================================
   RUNNING BAND — places, on a loop. CSS only, so it cannot stall.
   ============================================================ */

.marq { overflow: hidden; border-block: 1px solid var(--ink); background: var(--paper-2); padding-block: clamp(10px, 1.8vh, 20px) }
.marq-in { display: flex; width: max-content; animation: marq 46s linear infinite }
.marq-in span {
  font-family: var(--display); font-size: clamp(1.3rem, 3.4vw, 2.6rem); line-height: 1;
  padding-inline: clamp(12px, 2.2vw, 30px); color: var(--ink); white-space: nowrap;
  display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px);
}
.marq-in span::after { content: '\2733'; font-size: .36em; color: var(--graphite); transform: translateY(-.3em) }
.marq-in span:nth-child(even) { font-style: italic; color: var(--graphite) }
@keyframes marq { to { transform: translateX(-50%) } }
.marq:hover .marq-in { animation-play-state: paused }
@media (prefers-reduced-motion: reduce) { .marq-in { animation: none } }

@media (max-width: 960px) {
  .lens-grid { grid-template-columns: 1fr }
  .lens-stage { order: -1 }
}
@media (max-width: 560px) {
  .burst-stage { height: clamp(280px, 46vh, 380px) }
  .burst-f { width: clamp(104px, 30vw, 150px) }
}

/* ============================================================
   AUTOFOCUS BRACKETS — two opposite corner marks snap onto any
   frame under the pointer, the way an AF point locks in a
   viewfinder. Pure CSS, no script.
   ============================================================ */

.show-fig::before, .show-fig::after,
.cell::before, .cell::after,
.slide::before, .slide::after,
.strip-f::before, .strip-f::after {
  content: ''; position: absolute; z-index: 3; pointer-events: none;
  width: clamp(16px, 3vw, 30px); height: clamp(16px, 3vw, 30px);
  border: 0 solid var(--paper);
  mix-blend-mode: difference;
  opacity: 0; transform: scale(1.9);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.show-fig::before, .cell::before, .slide::before, .strip-f::before {
  left: 9px; top: 9px; border-top-width: 1.5px; border-left-width: 1.5px;
}
.show-fig::after, .cell::after, .slide::after, .strip-f::after {
  right: 9px; bottom: 9px; border-bottom-width: 1.5px; border-right-width: 1.5px;
}
.show-item:hover .show-fig::before, .show-item:hover .show-fig::after,
.cell:hover::before, .cell:hover::after,
.cell:focus-visible::before, .cell:focus-visible::after,
.slide:hover::before, .slide:hover::after,
.strip-f:hover::before, .strip-f:hover::after {
  opacity: 1; transform: none;
}
.show-fig::after, .cell::after { transition-delay: .05s }
@media (hover: none), (pointer: coarse) {
  .show-fig::before, .show-fig::after, .cell::before, .cell::after,
  .slide::before, .slide::after, .strip-f::before, .strip-f::after { display: none }
}

/* ============================================================
   INSTRUMENTS — a family of line-drawn camera diagrams, one per
   page. Each carries data-inst; app.js feeds it --p, the section's
   scroll progress, and every instrument reads --p its own way.
   Optional data-tilt adds pointer tilt in 3D.
   ============================================================ */

.inst { position: relative; perspective: 1000px; display: grid; place-items: center; padding-block: clamp(14px, 3vh, 36px) }
.inst-body { position: relative; width: min(100%, clamp(230px, 34vw, 400px)); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) }
.inst-read { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--graphite); margin-top: clamp(10px, 2vh, 20px); text-align: center }
.inst-read b { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.9rem); letter-spacing: 0; color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums }
.inst-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center }
.inst-copy { display: grid; gap: clamp(10px, 1.8vh, 20px); align-content: center }
@media (max-width: 960px) { .inst-grid { grid-template-columns: 1fr } .inst { order: -1 } }

/* --- shared rim + hub --- */
.rim { position: absolute; inset: 0; border: 1px solid var(--ink); border-radius: 50% }
.rim.in1 { inset: 7% ; border-color: var(--rule) }
.rim.in2 { inset: 15%; border-style: dashed; border-color: var(--rule) }
.hub { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ink) }

/* ticks + ring labels, both generated by app.js */
.ticks i {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 10px; background: var(--ink); margin: -5px 0 0 -.5px;
  transform: rotate(var(--a)) translateY(calc(var(--rr, 44) * -1%));
  transform-origin: 50% 50%;
}
.ticks i.major { height: 17px; width: 1.5px; background: var(--ink) }
.ticks i.minor { opacity: .4 }
.ring-labels span {
  position: absolute; left: 50%; top: 50%; margin: -7px 0 0 0;
  transform: rotate(var(--a)) translateY(calc(var(--rr, 34) * -1%)) rotate(calc(var(--a) * -1));
  font-family: var(--mono); font-size: clamp(8px, 1.5vw, 11px); letter-spacing: .06em; color: var(--graphite);
  transform-origin: 50% 50%; white-space: nowrap;
}
.ring-labels span.on { color: var(--ink) }

/* --- 1. shutter dial --- */
.hand {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 40%; background: var(--ink);
  transform-origin: 50% 100%; margin-left: -1px; margin-top: -40%;
  transform: rotate(calc(-162deg + var(--p, 0) * 324deg));
  transition: transform .5s var(--ease);
}
.hand::after { content: ''; position: absolute; left: -2.5px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink) }

/* --- 2. exposure triangle --- */
.tri { position: absolute; inset: 9%; }
.tri svg { width: 100%; height: 100%; overflow: visible }
.tri path, .tri line { fill: none; stroke: var(--ink); stroke-width: 1 }
.tri svg { transform: rotate(calc(var(--p, 0) * 118deg)); transform-origin: 50% 50%; transition: transform .6s var(--ease) }
.tri .edge { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset .6s var(--ease) }
.tri .guide { stroke: var(--rule) }
.tri-label { position: absolute; font-family: var(--mono); font-size: clamp(8px, 1.6vw, 11px); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite) }
.tri-label.t { left: 50%; top: -4%; transform: translateX(-50%) }
.tri-label.l { left: -2%; bottom: 2% } .tri-label.r { right: -2%; bottom: 2% }

/* --- 3. light meter --- */
.meter { position: absolute; inset: 0 }
.meter .needle {
  position: absolute; left: 50%; bottom: 22%; width: 1.5px; height: 56%; background: var(--ink);
  transform-origin: 50% 100%; margin-left: -.75px;
  transform: rotate(calc(-52deg + var(--p, 0) * 52deg));
  transition: transform .6s var(--ease);
}
.meter .scale { position: absolute; left: 8%; right: 8%; bottom: 22%; height: 1px; background: var(--rule) }
.meter .zero { position: absolute; left: 50%; bottom: 22%; width: 1px; height: 14px; background: var(--ink); margin-left: -.5px }
.meter-ev i { font-style: normal }
.meter-ev { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: clamp(8px, 1.5vw, 11px); color: var(--pencil); padding-inline: 4% }

/* --- 4. film cassette --- */
.cass { position: absolute; inset: 14% 0; display: flex; align-items: center; gap: 0 }
.cass-can { position: relative; flex: none; width: 38%; height: 100%; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper) }
.cass-can::before { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: 0; transform: translate(-50%,-50%); border: 1px solid var(--rule); border-radius: 50% }
.cass-can::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; transform: translate(-50%,-50%); background: var(--ink); border-radius: 50% }
.cass-neck { flex: none; width: 5%; height: 42%; border-block: 1px solid var(--ink) }
.cass-film {
  position: relative; height: 62%; overflow: hidden; border: 1px solid var(--ink); border-left: 0;
  width: calc(6% + var(--p, 0) * 51%); background: var(--paper-2);
  transition: width .5s var(--ease);
}
.cass-film::before, .cass-film::after {
  content: ''; position: absolute; left: 0; right: 0; height: 18%;
  background-image: radial-gradient(circle at 5px 50%, var(--ink) 1.6px, transparent 1.8px);
  background-size: 12px 100%;
}
.cass-film::before { top: 6% } .cass-film::after { bottom: 6% }

/* --- 5. rule of thirds --- */
.thirds { position: absolute; inset: 10%; border: 1px solid var(--ink) }
.thirds i { position: absolute; background: var(--rule) }
.thirds i.v { top: 0; bottom: 0; width: 1px; transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform .6s var(--ease) }
.thirds i.h { left: 0; right: 0; height: 1px; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .6s var(--ease) }
.thirds i.v:nth-of-type(1) { left: 33.33% } .thirds i.v:nth-of-type(2) { left: 66.66% }
.thirds i.h:nth-of-type(3) { top: 33.33% } .thirds i.h:nth-of-type(4) { top: 66.66% }
.thirds b {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper);
  opacity: var(--p, 0); transition: opacity .5s var(--ease) .2s;
}
.thirds b:nth-of-type(1) { left: 33.33%; top: 33.33% } .thirds b:nth-of-type(2) { left: 66.66%; top: 33.33% }
.thirds b:nth-of-type(3) { left: 33.33%; top: 66.66% } .thirds b:nth-of-type(4) { left: 66.66%; top: 66.66% }

@keyframes draw { to { stroke-dashoffset: 0 } }
@media (prefers-reduced-motion: reduce) {
  .hand, .meter .needle, .cass-film, .thirds i, .thirds b { transition: none }
}

/* ============================================================
   WHATSAPP — a floating ink button, drawn like the rest of the
   furniture. Sits inside the margin rail, never over it.
   ============================================================ */

.wa {
  position: fixed; z-index: 110;
  right: calc(var(--rail) + clamp(14px, 2.4vw, 26px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 2.4vw, 26px));
  display: flex; align-items: center; gap: 0;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  padding: 0; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  transition: gap .4s var(--ease), padding .4s var(--ease), background .3s, color .3s;
}
.wa svg { width: 22px; height: 22px; margin: 13px; fill: currentColor; flex: none; transition: transform .4s var(--ease) }
.wa span {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .22em; text-transform: uppercase;
  max-width: 0; opacity: 0; white-space: nowrap;
  transition: max-width .45s var(--ease), opacity .3s var(--ease), margin .45s var(--ease);
}
.wa:hover, .wa:focus-visible { background: var(--ink); color: var(--paper) }
.wa:hover span, .wa:focus-visible span { max-width: 140px; opacity: 1; margin-right: 18px }
.wa:hover svg, .wa:focus-visible svg { transform: scale(1.06) }
@media (hover: none), (pointer: coarse) {
  .wa span { display: none }
  .wa svg { margin: 12px }
}
@media print { .wa { display: none } }

/* --- 6. angle of view --- */
.aov { position: absolute; inset: 14% 6% }
.aov svg { width: 100%; height: 100%; overflow: visible }
.aov path, .aov line, .aov circle { fill: none; stroke: var(--rule); stroke-width: 1; transition: stroke .45s var(--ease), stroke-width .45s var(--ease) }
.aov g.v.on line, .aov g.v.on path { stroke: var(--ink); stroke-width: 1.4 }
.aov .arc { stroke-dasharray: 2 3 }
.aov g.v.on .arc { stroke-dasharray: none }
.aov .node { fill: var(--ink); stroke: none }
.aov .axis { stroke: var(--rule-soft) }
.aov-key { position: absolute; right: 0; top: 0; display: grid; gap: 5px; text-align: right }
.aov-key i { font-family: var(--mono); font-style: normal; font-size: clamp(8px, 1.5vw, 11px); letter-spacing: .14em; color: var(--pencil); transition: color .4s }
.aov-key i.on { color: var(--ink) }

/* --- 7. lighting plan --- */
.plan { position: absolute; inset: 10% }
.plan svg { width: 100%; height: 100%; overflow: visible }
.plan circle, .plan rect, .plan path, .plan line { fill: none; stroke: var(--ink); stroke-width: 1 }
.plan .subject { fill: var(--paper-2) }
.plan .beam { stroke: var(--rule); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset .7s var(--ease) }
.plan g.lampset.on .beam { stroke: var(--ink) }
.plan .lamp { fill: var(--paper) }
.plan g.lampset.on .lamp { fill: var(--ink) }
.plan .cam { fill: var(--ink) }
.plan-key { position: absolute; left: 0; bottom: -4%; display: flex; gap: clamp(8px, 1.6vw, 18px); flex-wrap: wrap }
.plan-key i { font-family: var(--mono); font-style: normal; font-size: clamp(8px, 1.5vw, 11px); letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); transition: color .4s }
.plan-key i.on { color: var(--ink) }

/* --- 8. histogram --- */
.hist { position: absolute; inset: 16% 8% 22%; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--ink) }
.hist i {
  flex: 1 1 0; min-width: 0; background: var(--ink);
  height: calc(var(--h, .2) * 100%); transform: scaleY(var(--p, 0)); transform-origin: 50% 100%;
  transition: transform .6s var(--ease);
}
.hist i:nth-child(odd) { opacity: .72 }
.hist-axis i { font-style: normal }
.hist-axis { position: absolute; left: 8%; right: 8%; bottom: 10%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: clamp(8px, 1.5vw, 11px); letter-spacing: .14em; text-transform: uppercase; color: var(--pencil) }
.hist-clip { position: absolute; right: 8%; top: 8%; font-family: var(--mono); font-size: clamp(8px, 1.5vw, 11px); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }
.hist-clip b { color: var(--ink); font-weight: 400 }

/* ============================================================
   INTERACTIVE PIECES — things you can actually work.
   ============================================================ */

/* ---------- 1. the camera: drawn in SVG so the geometry is exact ---------- */
.cam-stage { perspective: 1100px; display: grid; place-items: center; padding-block: clamp(10px, 2vh, 26px) }
.cam3d {
  position: relative; width: min(100%, clamp(300px, 44vw, 560px)); aspect-ratio: 4 / 3;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
/* clipped, not visible: three 3D-transformed layers inside one preserve-3d
   parent were letting the edges of their backing surfaces draw as long
   strokes running off past the body */
.cam-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden }
.cam-svg .ln { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round }
.cam-svg .fill { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6 }
.cam-svg .soft { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.6 }
.cam-svg .hair { fill: none; stroke: var(--rule); stroke-width: 1 }
.cam-svg .dash { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3 }
.cam-svg .glass { stroke: var(--ink); stroke-width: 1.6 }
.cam-svg.lens { transform: translateZ(18px) }
.cam-svg.deep { transform: translateZ(-10px) }

.cam-shutter {
  position: absolute; left: 65%; top: 18.6%; width: 8%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper-3); cursor: pointer; padding: 0;
  transform: translateZ(30px); transition: transform .12s var(--ease-io), background .2s;
}
.cam-shutter:hover { background: var(--paper-3) }
.cam-stage[data-fire] .cam-shutter { transform: translateZ(30px) scale(.82) }
.cam-svg.hint { pointer-events: none; animation: pressNudge 1.9s var(--ease-io) infinite }
.cam-svg.hint .arr { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round }
.cam-svg.hint .arrh { fill: var(--ink) }
.cam-svg.hint .arrp { fill: var(--ink) }
.cam-svg.hint .arrt { font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .26em; fill: var(--paper) }
.cam-stage[data-used] .cam-svg.hint { opacity: 0; transition: opacity .45s var(--ease) }
/* the nudge travels toward the button, which pulls the eye far harder than
   a fade on its own */
@keyframes pressNudge {
  0%, 100% { transform: translateZ(34px) translate(0, 0) }
  50%      { transform: translateZ(34px) translate(-4px, 2.5px) }
}

/* and the button itself sends out a ring until it has been used */
.cam-shutter::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--ink); opacity: 0;
  animation: shutterRipple 1.9s var(--ease-io) infinite;
}
.cam-stage[data-used] .cam-shutter::after { display: none }
@keyframes shutterRipple {
  0%   { transform: scale(.75); opacity: .75 }
  70%  { transform: scale(1.85); opacity: 0 }
  100% { transform: scale(1.85); opacity: 0 }
}
@keyframes pressPulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

.cam-flash { position: absolute; inset: -20%; background: #fff; opacity: 0; pointer-events: none; border-radius: 50% }
.cam-stage[data-fire] .cam-flash { animation: camPop .32s linear }
@keyframes camPop { 0% { opacity: 0 } 16% { opacity: .92 } 100% { opacity: 0 } }

.cam-out { display: grid; gap: 10px; justify-items: center; margin-top: clamp(14px, 2.6vh, 26px) }
.cam-print { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 2; border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden }
.cam-print img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), filter 1.1s var(--ease); filter: contrast(2) brightness(1.3) saturate(.2) }
.cam-print img.in { opacity: 1; filter: none }
.cam-print .empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--pencil) }
.cam-print.has .empty { display: none }
.cam-count { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--graphite) }
.cam-count b { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0; color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums }

/* ---------- 2. the focus ring ---------- */
.foc-stage {
  position: relative; display: grid; place-items: center;
  /* the side padding gives the turn arrow somewhere to live without
     spilling out of the grid column */
  padding: clamp(22px, 4vh, 46px) clamp(18px, 5%, 54px) clamp(62px, 8vh, 86px);
}
/* the wrap is square so the ring is a circle, not an ellipse */
.foc-wrap { position: relative; width: min(100%, clamp(280px, 30vw, 430px)); aspect-ratio: 1 }
.foc-img { position: absolute; left: 50%; top: 50%; width: 68%; height: 86%; transform: translate(-50%, -50%); overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2) }
.foc-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(calc((1 - var(--f, 0)) * 15px)) saturate(calc(.35 + var(--f, 0) * .65)) contrast(calc(.9 + var(--f, 0) * .18));
  transform: scale(calc(1.08 - var(--f, 0) * .08));
  transition: filter .12s linear, transform .12s linear;
}
.foc-lock {
  position: absolute; left: 50%; top: 100%; margin-top: clamp(16px, 2.6vh, 26px);
  transform: translateX(-50%) translateY(6px);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); padding: 8px 14px;
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.foc-wrap[data-locked] .foc-lock { opacity: 1; transform: translateX(-50%) translateY(0) }
.foc-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink);
  cursor: grab; touch-action: none; transform: rotate(var(--rot, 0deg));
}
.foc-ring:active { cursor: grabbing }
/* each tick is a full-size box that rotates about the centre and draws its
   mark at the top edge, so no radius has to be hard-coded */
.foc-ring i { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none }
.foc-ring i::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 11px; margin-left: -.5px; background: var(--ink) }
.foc-ring i.big::before { height: 18px; width: 1.5px; margin-left: -.75px }
.foc-knob { position: absolute; inset: 0; pointer-events: none }
.foc-knob::before { content: ''; position: absolute; left: 50%; top: -11px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--ink) }
.foc-mark { position: absolute; left: 50%; top: -26px; width: 1.5px; height: 17px; background: var(--ink); margin-left: -.75px }

/* the nudge: a curved arrow that says which way to turn it */
.foc-hint { position: absolute; inset: -11%; pointer-events: none; animation: hintPulse 2.8s var(--ease-io) infinite }
.foc-hint svg { width: 100%; height: 100%; overflow: visible }
.foc-hint path { fill: none; stroke: var(--ink); stroke-width: 1.4 }
.foc-hint polygon { fill: var(--ink) }
.foc-hint text { font-family: var(--mono); font-size: 7px; letter-spacing: .3em; fill: var(--graphite); text-transform: uppercase }
.foc-wrap[data-touched] .foc-hint { opacity: 0; transition: opacity .5s var(--ease) }
@keyframes hintPulse { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }

/* ---------- 3. the film roll ---------- */
.roll { position: relative; overflow: hidden; border-block: 1px solid var(--ink); background: var(--paper-2); padding-block: 12px }
.roll-in { display: flex; align-items: center; gap: 10px; padding-inline: 12px; width: max-content; transform: translateX(calc(var(--p, 0) * -1 * var(--pull, 0px))); transition: transform .25s linear }
.roll-can { position: relative; flex: none; width: clamp(70px, 9vw, 110px); aspect-ratio: 3 / 4; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper) }
.roll-can::before { content: ''; position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(calc(var(--p, 0) * 900deg)); border: 1px dashed var(--rule); border-radius: 50%; transition: transform .3s linear }
.roll-can::after { content: ''; position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--ink); border-radius: 50% }
.roll-f { position: relative; flex: none; width: clamp(130px, 17vw, 240px); aspect-ratio: 3 / 2; border: 1px solid var(--ink); background: var(--paper-3); overflow: hidden; cursor: pointer }
.roll-f img { width: 100%; height: 100%; object-fit: cover }
.roll-f b { position: absolute; left: 5px; bottom: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--paper); background: var(--ink); padding: 1px 5px }
.roll-perf { position: absolute; left: 0; right: 0; height: 9px; background-image: radial-gradient(circle at 6px 50%, var(--paper-3) 2px, transparent 2.2px); background-size: 14px 100%; pointer-events: none; z-index: 2 }
.roll-perf.t { top: 0 } .roll-perf.b { bottom: 0 }

/* ---------- 4. the viewfinder ---------- */
.vf-win { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border: 1.5px solid var(--ink); background: var(--paper-2); cursor: crosshair; touch-action: none }
.vf-win img { position: absolute; left: 0; top: 0; width: 148%; max-width: none; height: 148%; object-fit: cover; transform: translate3d(var(--tx, -16.22%), var(--ty, -16.22%), 0); transition: transform .14s linear }
.vf-mark { position: absolute; pointer-events: none; border: 0 solid var(--paper); mix-blend-mode: difference; width: 26px; height: 26px }
.vf-mark.a { left: 14px; top: 14px; border-top-width: 1.5px; border-left-width: 1.5px }
.vf-mark.b { right: 14px; top: 14px; border-top-width: 1.5px; border-right-width: 1.5px }
.vf-mark.c { left: 14px; bottom: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px }
.vf-mark.d { right: 14px; bottom: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px }
.vf-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; mix-blend-mode: difference }
.vf-cross::before, .vf-cross::after { content: ''; position: absolute; background: var(--paper) }
.vf-cross::before { left: 50%; top: 0; bottom: 0; width: 1px }
.vf-cross::after { top: 50%; left: 0; right: 0; height: 1px }
.vf-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase;
  color: var(--paper); background: rgba(11,11,10,.72); padding: 8px 15px;
  pointer-events: none; white-space: nowrap; animation: pressPulse 2.6s var(--ease-io) infinite;
}
.vf-win[data-used] .vf-hint { display: none }
.vf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none }
.vf-win[data-fire] .vf-flash { animation: camPop .3s linear }
.vf-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; min-height: 72px; align-items: center }
.vf-shot { width: 58px; height: 72px; border: 1px solid var(--ink); background-size: 148% 148%; background-repeat: no-repeat; animation: shotIn .5s var(--ease) }
@keyframes shotIn { from { opacity: 0; transform: translateY(-8px) scale(.9) } to { opacity: 1; transform: none } }
.vf-empty { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--pencil) }

/* ---------- 5. the album ---------- */
.alb { position: relative; perspective: 1800px; aspect-ratio: 3 / 2; max-width: 760px; margin-inline: auto; touch-action: pan-y }
.alb-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--rule); z-index: 1 }
.alb-side { position: absolute; top: 0; bottom: 0; width: 50%; border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden }
.alb-side.l { left: 0 }
.alb-side.r { right: 0 }
.alb-side img { width: 100%; height: 100%; object-fit: cover }
.alb-page {
  position: absolute; right: 0; top: 0; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(var(--a, 0deg)); cursor: grab;
}
.alb-page:active { cursor: grabbing }
.alb-page.anim { transition: transform .55s var(--ease) }
.alb-face { position: absolute; inset: 0; backface-visibility: hidden; border: 1px solid var(--ink); background: var(--paper); overflow: hidden }
.alb-face img { width: 100%; height: 100%; object-fit: cover }
.alb-face.back { transform: rotateY(180deg) }
.alb-curl { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.22), transparent 38%); opacity: var(--curl, 0) }
.alb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px; background: var(--paper); border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }
.alb-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite) }
.alb-ui b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums }

@media (max-width: 640px) {
  .vf-shot { width: 48px; height: 60px }
  .alb { aspect-ratio: 4 / 3 }
}

/* ---------------------------------------------------------------- clips
   Behind-the-scenes frames carry a muted, looping H.264 cut alongside the
   still. The poster is what loads with the page; the clip itself only
   arrives when someone hovers it, opens it, or scrolls it into the rail. */
.vbadge {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px 3px 5px; background: var(--ink); color: var(--paper);
  pointer-events: none;
}
.vbadge svg { width: 11px; height: 11px; fill: currentColor; display: block }
.vbadge i { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: .1em }
.vbadge.sm { padding: 5px; right: 6px; top: 6px }
.cell-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; background: var(--ink);
}
.lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--ink); background: var(--ink) }
.lb[data-vid] #lbImg { display: none }

.bts-rail {
  display: flex; gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 4px clamp(16px, 5vw, 72px) 20px; scrollbar-width: none;
}
.bts-rail::-webkit-scrollbar { display: none }
.bts-card {
  position: relative; flex: none; margin: 0; cursor: pointer;
  width: clamp(168px, 19vw, 248px); aspect-ratio: 9 / 16;
  border: 1px solid var(--ink); background: var(--paper-3);
  overflow: hidden; scroll-snap-align: center;
}
.bts-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper-3) }
.bts-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 26px 10px 9px; color: var(--paper);
  background: linear-gradient(to bottom, transparent, rgba(11, 11, 10, .82));
}
.bts-card figcaption b { display: block; font-family: var(--display); font-size: 1rem; font-weight: 400; line-height: 1.15 }
.bts-card figcaption span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-top: 2px }
.bts-card:hover, .bts-card:focus-visible { outline: none }
.bts-card:hover::after, .bts-card:focus-visible::after {
  content: ''; position: absolute; inset: 0; z-index: 4;
  border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px var(--paper);
}
@media (max-width: 640px) {
  .bts-card { width: clamp(150px, 56vw, 220px) }
}

/* ---------------------------------------------------------- work menu
   Nine pages will not fit across a header, so the four categories hang off
   Work. Hover opens it with a pointer; :focus-within opens it from the
   keyboard. Touch devices never see it — they get the full sheet menu. */
.navdrop { position: relative; display: inline-flex }
.navmenu {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px);
  display: grid; min-width: 212px; padding: 6px 0;
  background: var(--paper); border: 1px solid var(--ink);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 60;
}
.navdrop:hover .navmenu, .navdrop:focus-within .navmenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.navmenu a {
  padding: 9px 16px; font-family: var(--ui); font-size: var(--t-sm);
  letter-spacing: .02em; text-transform: none; white-space: nowrap; color: var(--ink);
}
.navmenu a i { font-style: italic; font-family: var(--display); font-size: 1.06rem }
.navmenu a::before { left: 0; right: 0 }
.navdrop > a::after { content: ''; display: inline-block; width: 4px; height: 4px; margin-left: 7px; vertical-align: 2px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-1px) }

/* ---------------------------------------------------------- category strips
   Five frames from one strand of the work: the first one large, the rest
   stacked beside it, collapsing to two columns and then to one. */
.catgrid {
  display: grid; gap: clamp(8px, 1.1vw, 16px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 15vw, 220px);
}
.catf {
  position: relative; margin: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--ink); background: var(--paper-2);
}
.catf:first-child { grid-column: span 2; grid-row: span 2 }
.catf img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease) }
.catf:hover img, .catf:focus-visible img { transform: scale(1.045) }
.catf figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 22px 10px 8px; color: var(--paper);
  background: linear-gradient(to bottom, transparent, rgba(11, 11, 10, .8));
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.catf:hover figcaption, .catf:focus-visible figcaption { transform: none }
.catf figcaption b { display: block; font-family: var(--display); font-size: 1rem; font-weight: 400; line-height: 1.15 }
.catf figcaption span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .82; margin-top: 2px }
.catsec .svc-head { margin-bottom: clamp(18px, 3vh, 36px) }
.catsec .blk { margin-top: clamp(22px, 4vh, 44px) }
.cat-n { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; color: var(--pencil) }

@media (max-width: 860px) {
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 28vw, 200px) }
  .catf:first-child { grid-column: span 2; grid-row: span 1 }
}
@media (max-width: 480px) {
  .catgrid { grid-auto-rows: clamp(118px, 34vw, 190px) }
  .catf figcaption { transform: none; padding-top: 18px }
}

/* ---------------------------------------------------------- the banner
   A split, not a letterbox: a vertical portrait cannot be cropped to 16/7
   without cutting it off at the chin, which is exactly what it used to do.
   Picture on one side, the facts on the other, stacked on a phone. */
.banner-in {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  align-items: stretch; overflow: visible;
}
.banner-fig { position: relative; margin: 0; overflow: hidden; border-right: 1px solid var(--ink);
  background: var(--paper-2); min-height: clamp(340px, 46vh, 580px) }
.banner-fig img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  aspect-ratio: 4 / 5; min-height: 100%;
}
.banner-body {
  display: grid; align-content: center; gap: clamp(12px, 1.8vh, 20px);
  padding: clamp(22px, 3.4vw, 54px);
}
.banner-body h2 { font-size: clamp(1.6rem, 1rem + 2.3vw, 3.1rem); line-height: 1.02 }
.banner-body > p { color: var(--graphite); max-width: 44ch }
.banner-facts {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink); margin-top: clamp(4px, 1vh, 12px);
}
.banner-facts li {
  display: grid; gap: 4px; min-width: 0;
  padding: clamp(12px, 1.8vw, 20px) clamp(8px, 1.2vw, 16px) 0 0;
  border-right: 1px solid var(--rule);
}
.banner-facts li:last-child { border-right: 0 }
.banner-facts b {
  font-family: var(--display); font-weight: 400; color: var(--ink); line-height: .9;
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.6rem); font-variant-numeric: tabular-nums;
}
.banner-facts span { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); line-height: 1.35 }
.banner-in .banner-meta { position: absolute; right: 0; top: 0; z-index: 4 }

@media (max-width: 860px) {
  .banner-in { grid-template-columns: minmax(0, 1fr) }
  .banner-fig { border-right: 0; border-bottom: 1px solid var(--ink); min-height: 0 }
  .banner-fig img { aspect-ratio: 5 / 4; object-position: center 20%; min-height: 0 }
  .banner-in .banner-meta { position: static; justify-self: start; margin: 0 clamp(22px, 3.4vw, 54px) clamp(22px, 3.4vw, 54px) }
}
@media (max-width: 420px) {
  .banner-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .banner-facts li:nth-child(2) { border-right: 0 }
  .banner-facts li:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-right: 0 }
}

/* a portrait reads better in a portrait finder */
.vf-win.tall { aspect-ratio: 4 / 5 }
@media (max-width: 640px) { .vf-win.tall { aspect-ratio: 1 } }

/* ---------------------------------------------------------- category pages
   One lead frame beside the terms of the work, then the gallery locked to
   that strand, then a way across to the other three. */
.catlead {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 60px); align-items: center;
}
.catlead-fig { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2) }
.catlead-fig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block }
.catlead-copy { display: grid; gap: clamp(12px, 2vh, 22px); align-content: center; min-width: 0 }
.catlead-meta { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule) }
.catlead-meta li {
  padding: clamp(8px, 1.2vh, 13px) 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em;
  text-transform: uppercase; color: var(--graphite); display: flex; align-items: center; gap: 12px;
}
.catlead-meta li::before { content: ''; width: 14px; height: 1px; background: var(--ink); flex: none }

.catlinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px) }
.catlink {
  display: grid; gap: 12px; border: 1px solid var(--ink); background: var(--paper-2);
  padding: 10px 10px 14px; transition: background .4s var(--ease), transform .4s var(--ease);
}
.catlink:hover { background: var(--paper-3); transform: translateY(-3px) }
.catlink-fig { display: block; overflow: hidden; background: var(--paper-3) }
.catlink-fig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; display: block; transition: transform .9s var(--ease) }
.catlink:hover .catlink-fig img { transform: scale(1.05) }
.catlink-txt { display: grid; gap: 3px; padding-inline: 4px }
.catlink-txt b { font-family: var(--display); font-weight: 400; font-size: clamp(1.02rem, .9rem + .5vw, 1.35rem); color: var(--ink); line-height: 1.1 }
.catlink-txt i { font-style: normal; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }

@media (max-width: 860px) {
  .catlead { grid-template-columns: minmax(0, 1fr) }
  .catlinks { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .catlinks .catlink:last-child { grid-column: 1 / -1 }
  .catlinks .catlink:last-child .catlink-fig img { aspect-ratio: 16 / 7 }
}
@media (max-width: 480px) {
  .catlinks { grid-template-columns: minmax(0, 1fr) }
  .catlinks .catlink:last-child .catlink-fig img { aspect-ratio: 3 / 2 }
}

/* ------------------------------------------------------- frame viewer, fitted
   --lb-chrome is everything in the viewer that is not the picture: the top
   bar, the bottom bar and the stage's own padding. Subtracting it from the
   window gives the picture a cap that does not depend on a percentage
   resolving against a grid row, which is what used to fail. min() keeps the
   percentage as well, so whichever is the tighter of the two wins. */
.lb { --lb-chrome: 206px }
@media (max-width: 860px) { .lb { --lb-chrome: 168px } }
@media (max-width: 480px) { .lb { --lb-chrome: 140px } }
@media (max-height: 560px) and (orientation: landscape) { .lb { --lb-chrome: 128px } }

.lb-stage img,
.lb-stage video {
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--lb-chrome));
  max-height: min(100%, calc(100dvh - var(--lb-chrome)));
  object-fit: contain;
}

/* ------------------------------------------------------------------ credit */
.foot-by {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; text-align: center;
  margin-top: clamp(18px, 3vh, 30px); padding-top: clamp(16px, 2.6vh, 26px);
  border-top: 1px solid var(--rule);
}
.foot-by span {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em;
  text-transform: uppercase; color: var(--graphite);
}
.foot-by a {
  font-family: var(--display); font-size: clamp(1.15rem, .95rem + .9vw, 1.75rem);
  line-height: 1; color: var(--ink); position: relative; padding-bottom: 3px;
}
.foot-by a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(1); transform-origin: left;
  transition: transform .4s var(--ease);
}
.foot-by a:hover::after { transform: scaleX(0); transform-origin: right }

/* ---------------------------------------------------------------- social
   Line-art glyphs in the site's own ink: a bordered square that inverts on
   hover, like every other control here. No brand colours anywhere. */
.soc { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap }
.soc a {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--ink); color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.soc a:hover, .soc a:focus-visible { background: var(--ink); color: var(--paper) }
.soc svg { width: 17px; height: 17px; display: block; overflow: visible }

.soc.lg { flex-direction: column; align-items: stretch; gap: 8px; width: 100% }
.soc.lg a {
  width: auto; height: auto; justify-items: start;
  grid-auto-flow: column; grid-template-columns: 17px auto;
  align-items: center; gap: 11px; padding: 10px 14px;
}
.soc.lg i {
  font-style: normal; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .12em; text-transform: none; white-space: nowrap;
}


/* Responsive portfolio refinement: content first, generous photographs, compact controls. */
main, .wrap, .inst-copy, .lens-read, .banner-body { min-width: 0 }
main img { cursor: zoom-in }
.portfolio-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 28px }
.portfolio-card { display: grid; gap: 20px; align-content: start }
.portfolio-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.portfolio-card > div { display: grid; gap: 12px }
.portfolio-card h2 { font-size: clamp(1.8rem, 3vw, 3rem) }
.portfolio-card p { max-width: 48ch; color: var(--graphite) }
.service-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); padding-block: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 100px }
.service-card > figure { margin: 0 }
.service-card img { width: 100%; max-height: 520px; object-fit: contain; object-position: top }
.service-card > div { display: grid; align-content: center; gap: 18px; min-width: 0 }
.service-card h2 { font-size: clamp(1.8rem, 3.8vw, 3.6rem) }
.category-selection { margin-top: 32px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite) }
.category-reel { margin-block: 12px 28px; min-width: 0 }
.category-reel .reel { height: clamp(320px, 48vw, 510px) }
.category-reel .reel-stage { transition: transform .5s var(--ease) }
.category-reel .reel-card { width: clamp(160px, 21vw, 260px); backface-visibility: hidden }
.category-reel .reel-hint { display: inline; white-space: normal; text-align: center }
.rbtn, .lb-x, .burger { min-width: 44px; min-height: 44px }
.banner-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.banner-fig img { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; display: block }
.banner-fig { min-height: 0; align-self: center; border: 0 }
.banner-body > p { font-size: .93rem; line-height: 1.65 }
.framing-section { padding-bottom: clamp(20px, 4vh, 48px) }
.framing-section + .plate { padding-top: clamp(24px, 4vh, 48px) }
.foc-img { height: auto; aspect-ratio: 853 / 1280 }
.foc-img img { object-position: center; cursor: default }
.strip-f b, .burst-f b, .roll-f > b, .cell figcaption > i, .show-meta > .n, .rail-count { display: none }
.lb { inset: 0; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto }
.lb-top { flex-wrap: nowrap; min-width: 0 }
.lb-top > div:first-child { min-width: 0 }
.lb-ttl, .lb-top .lb-sub { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.lb-tools { flex: none }
.lb-stage { padding: 6px 30px; min-height: 0; min-width: 0 }
.lb-stage img, .lb-stage video { grid-area: 1 / 1; display: block; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; border: 0 }
.lb-stage [hidden], .lb[data-vid] .lb-stage img { display: none }
.lb-bot { padding-block: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); font-size: .65rem }
.lb-arrow { z-index: 3; min-width: 30px; min-height: 44px }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px }
@media (max-width: 860px) {
  .service-card { grid-template-columns: minmax(0, 1fr) }
  .service-card img { max-height: 60svh }
  .banner-fig img { aspect-ratio: auto; width: 100%; height: auto; min-height: 0; max-height: none }
  .banner-in .banner-meta { margin: 0 20px 20px }
}
@media (max-width: 640px) {
  :root { --plate: 38px; --gutter: 18px; --t-base: .93rem; --t-lead: 1rem; --t-h2: clamp(1.9rem, 8vw, 2.65rem) }
  .mast { min-height: auto; justify-content: flex-start; padding-top: calc(env(safe-area-inset-top, 0px) + 100px) }
  .mast-top { gap: 12px }
  .mast-top .eyebrow { font-size: .6rem; letter-spacing: .13em }
  .mast-meta { font-size: .6rem; letter-spacing: .1em }
  .mast-ttl { font-size: clamp(4.5rem, 21vw, 8rem); margin-top: 22px; line-height: .9 }
  .mast-ttl .l:nth-child(2) { margin-top: 0 }
  .mast-foot { padding-block: 18px 28px }
  .strip { margin-top: 26px }
  .strip-f { width: 58vw; aspect-ratio: 4 / 3 }
  .banner { padding-bottom: 28px }
  .banner-body { padding: 22px 4px; gap: 12px }
  .banner-body > p { font-size: .87rem; line-height: 1.6 }
  .banner-facts { margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .banner-facts li { padding: 12px 8px }
  .banner-facts b { font-size: 1.6rem }
  .banner-facts span { font-size: .58rem; letter-spacing: .08em }
  .banner-in .banner-meta { margin-inline: 4px }
  .inst-grid, .lens-grid { gap: 24px }
  .inst-copy p, .lens-read > p:not(.eyebrow):not(.lens-hint) { font-size: .9rem; line-height: 1.65 }
  .lens-stage { width: min(100%, 330px); margin-inline: auto; height: 320px }
  .foc-stage { padding: 34px 24px 48px }
  .foc-wrap { width: min(100%, 290px) }
  .focus-section .inst-grid { gap: 12px }
  .cam3d { width: min(100%, 330px) }
  .cam-stage { min-width: 0; overflow: clip; padding-inline: 12px }
  .catsec .svc-head { gap: 16px; margin-bottom: 22px }
  .category-reel .reel { height: 340px; perspective: 1000px }
  .category-reel .reel-card { width: 166px }
  .reel-ui { margin-top: 8px }
  .reel { height: 360px }
  .portfolio-categories { grid-template-columns: minmax(0, 1fr); gap: 36px }
  .portfolio-card { gap: 16px }
  .pagehead { padding-top: calc(env(safe-area-inset-top, 0px) + 104px); padding-bottom: 24px }
  .gal-bar { align-items: flex-start; gap: 12px }
  .gal-bar-right, .modes { max-width: 100%; flex-wrap: wrap }
  .modes button { min-height: 44px; padding: 8px 12px; font-size: .65rem }
  .burst-stage { height: 290px }
  .vf-win.tall { aspect-ratio: 3 / 4; max-height: 68svh }
  .vf-shots { margin-top: 12px }
  .sheet-nav { padding-top: 80px; padding-bottom: max(24px, env(safe-area-inset-bottom)); gap: 5px }
  .sheet-nav a { font-size: clamp(1.6rem, 7vw, 2.1rem) }
  .sheet-foot { margin-top: 16px }
  .mark { min-width: 0; gap: 8px }
  .mark i { font-size: .55rem; letter-spacing: .08em }
  .wa { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)) }
  .lb-top { padding: max(8px, env(safe-area-inset-top)) 10px 8px; gap: 8px }
  .lb-top .lb-sub { font-size: .56rem; letter-spacing: .04em }
  .lb-tgl { font-size: .6rem; padding: 8px; min-height: 44px }
  .lb-bot { padding-inline: 12px; gap: 4px }
  .lb-bot .lb-sub { font-size: .55rem; letter-spacing: .03em }
  .foot-row { font-size: .58rem; letter-spacing: .06em }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-height: 560px) and (orientation: landscape) {
  .sheet-nav { align-content: start; padding-top: 65px }
  .sheet-nav a { font-size: 1.4rem }
  .lb-bot { display: none }
  .lb { grid-template-rows: auto minmax(0, 1fr) }
}
@media (prefers-reduced-motion: reduce) { .category-reel .reel-stage { transition: none } }

.vf-win { touch-action: pan-y }
.vf-shot { position: relative; overflow: hidden; height: auto; background-image: none }
.vf-shot img { position: absolute; inset: 0 auto auto 0; width: 148%; max-width: none; height: 148%; object-fit: cover }
@media (max-width: 640px) { .vf-shot { height: auto } }


/* The videographer: retain the supplied portrait's complete composition. */
.motion-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 88px); margin-bottom: 32px }
.motion-portrait { width: 100%; max-width: 440px; margin: 0 }
.motion-portrait img { display: block; width: 100%; height: auto; object-fit: contain }
.motion-copy { display: grid; gap: 18px; min-width: 0 }
.motion-copy .lede { max-width: 42ch }
@media (max-width: 640px) {
  .motion-feature { grid-template-columns: minmax(0, 1fr); gap: 24px }
  .motion-portrait { max-width: none }
  .motion-copy { gap: 14px }
}


/* Manual focus now belongs to the introductory portrait. */
.intro-focus { position: relative; overflow: hidden }
.intro-focus-image { filter: blur(calc((1 - var(--f, 1)) * 12px)); transition: filter .12s linear }
.intro-focus-controls { position: absolute; width: 82%; aspect-ratio: 1; left: 9%; top: 50%; transform: translateY(-50%); color: white; mix-blend-mode: difference }
.intro-focus .foc-ring { border-color: currentColor }
.intro-focus .foc-ring i::before, .intro-focus .foc-knob::before { background: currentColor }
.intro-focus .foc-hint { inset: -8% }
.intro-focus .foc-hint path { stroke: currentColor }
.intro-focus .foc-hint polygon, .intro-focus .foc-hint text { fill: currentColor }
.intro-focus .foc-lock { top: auto; bottom: 20px; margin: 0 }
.category-reel .reel-stage { transition: none }
.category-reel .reel-ui { justify-content: center; gap: 20px }
.category-reel .reel-toggle { min-width: 64px; min-height: 44px }
@media (max-width: 640px) { .category-reel .reel-ui { gap: 12px } .category-reel .reel-hint { flex: 1; font-size: .56rem } }
@media (prefers-reduced-motion: reduce) { .intro-focus-image { filter: none; transition: none } }


/* A quiet focus control keeps the face and typography in the foreground. */
.banner-in { border: 0; background: transparent; gap: clamp(28px, 5vw, 76px); grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) }
.banner-body { padding: 44px 0; gap: 22px }
.banner-body h2 { font-size: clamp(2.8rem, 4.5vw, 5.2rem); line-height: 1 }
.banner-body > p { max-width: 38ch; font-size: clamp(.94rem, 1.1vw, 1.08rem); line-height: 1.75 }
.banner-body > .eyebrow { font-size: .6rem; letter-spacing: .17em }
.banner-facts { margin-block: 8px; border-color: var(--rule) }
.banner-in .banner-meta { top: 0; font-size: .58rem; background: transparent; border: 1px solid var(--rule); color: var(--graphite); padding: 8px 12px }
.intro-focus-image { filter: blur(calc((1 - var(--f, 1)) * 5px)) }
.intro-focus::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.48)); pointer-events: none }
.intro-focus-controls { width: clamp(88px, 24%, 122px); left: auto; right: 24px; top: auto; bottom: 24px; transform: none; color: #fff; mix-blend-mode: normal; z-index: 2; border-radius: 50%; background: rgba(0,0,0,.18) }
.intro-focus-controls::after { content: 'FOCUS'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; letter-spacing: .15em; pointer-events: none; text-shadow: 0 1px 4px #000 }
.intro-focus .foc-hint { display: none }
.intro-focus .foc-ring { border-width: 1px; border-color: rgba(255,255,255,.65) }
.intro-focus .foc-ring i::before { height: 5px; opacity: .65 }
.intro-focus .foc-ring i.big::before { height: 9px; width: 1px }
.intro-focus .foc-knob::before { width: 8px; height: 8px; top: -4px; margin-left: -4px }
.intro-focus-caption { position: absolute; left: 22px; bottom: 28px; z-index: 2; display: grid; gap: 5px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4) }
.intro-focus-caption span { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase }
.intro-focus-caption small { font-size: .72rem; opacity: .75 }
.intro-focus .foc-lock { display: none }
@media (max-width: 860px) {
  .banner-in { grid-template-columns: minmax(0, 1fr); gap: 0 }
  .banner-body { padding: 26px 0 12px; gap: 16px }
  .banner-body > p { font-size: .94rem; line-height: 1.7 }
  .banner-body h2 { font-size: clamp(2.6rem, 10vw, 3.7rem) }
  .banner-in .banner-meta { margin: 8px 0 0 }
}
@media (max-width: 380px) {
  .intro-focus-controls { right: 16px; bottom: 20px }
  .intro-focus-caption { left: 16px; bottom: 22px }
  .intro-focus-caption small { font-size: .65rem }
}
@media (prefers-reduced-motion: reduce) { .intro-focus-image { filter: none } }

/* Category hierarchy: prominent titles, quiet supporting descriptions. */
body[data-page="home"] .catsec .cat-n {
  font-size: clamp(.8rem, .7rem + .2vw, 1rem);
  letter-spacing: .12em;
  color: var(--graphite);
  margin-bottom: 10px;
}
body[data-page="home"] .catsec h2 {
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
body[data-page="home"] .catsec .lede {
  font-size: clamp(.8rem, .76rem + .12vw, .9rem);
  line-height: 1.65;
  max-width: 34ch;
}
body[data-page="home"] .catsec .svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
@media (max-width: 860px) {
  body[data-page="home"] .catsec .svc-head { grid-template-columns: minmax(0, 1fr); gap: 14px }
  body[data-page="home"] .catsec .lede { max-width: 48ch }
}
@media (max-width: 640px) {
  body[data-page="home"] .catsec h2 { font-size: clamp(2.3rem, 9.5vw, 3.6rem) }
  body[data-page="home"] .catsec .cat-n { font-size: .8rem; letter-spacing: .08em; margin-bottom: 8px }
  body[data-page="home"] .catsec .lede { font-size: .8rem; line-height: 1.65 }
}

/* Compact social links beneath the mobile navigation's contact details. */
.sheet-social { margin-top: 14px; gap: 10px }
.sheet-nav .sheet-social a { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; line-height: 1; font-size: 1rem }
.sheet-nav .sheet-social svg { display: block; width: 19px; height: 19px }

/* Give the camera's exposed photograph more room on phones. */
@media (max-width: 640px) {
  .cam-stage { padding-inline: 0 }
  .cam-out { width: 100%; margin-top: 20px }
  .cam-print { width: 100%; aspect-ratio: 3 / 4; max-height: 70svh }
  .cam-print img { object-fit: contain }
}
/* Let category previews follow the photographs instead of shallow fixed rows. */
@media (max-width: 860px) {
  .catgrid { grid-auto-rows: auto; align-items: start; gap: 12px }
  .catgrid .catf { align-self: start; min-width: 0 }
  .catgrid .catf:first-child { grid-column: 1 / -1; grid-row: auto }
  .catgrid .catf img { display: block; width: 100%; height: auto; object-fit: contain }
}
@media (max-width: 640px) {
  .catgrid { width: calc(100% + 12px); margin-inline: -6px; gap: 10px }
  .catgrid .catf figcaption { padding-inline: 10px; padding-bottom: 10px }
}
/* Keep both About portraits inside their layout space, above the biography. */
.about-frames { padding-right: 6%; padding-bottom: 14% }
.about-frames .f2 { right: 0; bottom: 0 }
.about-copy { min-width: 0 }
.about-copy .stmt { line-height: 1.3 }

@media (max-width: 1100px) {
  .about-grid { gap: 32px }
  .about-frames { width: 100%; max-width: 540px }
}
@media (max-width: 640px) {
  .about-grid { gap: 26px }
  .about-frames .tagf { display: none }
  .about-frames .f2 { box-shadow: -9px -9px 0 var(--paper) }
  .about-copy .stmt { max-width: 100% }
}
/* Masonry coordinates already include spacing; default figure margins cause overflow. */
.grid .cell { margin: 0; max-width: 100% }
#gridWrap { width: 100%; max-width: 100%; min-width: 0 }
#gallery .grid { min-width: 0; max-width: 100% }
@media (max-width: 640px) {
  #gallery .gal-bar > * { min-width: 0; max-width: 100% }
  #gallery .gal-bar-right { width: 100% }
  #gallery .gal-note { overflow-wrap: anywhere }
  #gallery .modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0 }
  #gallery .modes button { min-width: 0; justify-content: center; padding-inline: 5px; gap: 5px; font-size: .6rem; letter-spacing: .06em }
}

/* A matching return-to-top control on the opposite side of WhatsApp. */
.back-top {
  position: fixed; z-index: 110;
  left: calc(var(--rail) + clamp(14px, 2.4vw, 26px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 2.4vw, 26px));
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transition: background .25s, color .25s;
}
.back-top svg { width: 22px; height: 22px }
.back-top:hover, .back-top:focus-visible { background: var(--ink); color: var(--paper) }
@media (max-width: 640px) {
  .back-top { left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); width: 44px; height: 44px }
}
@media print { .back-top { display: none } }


/* A small curved cue disappears after the visitor's first manual turn. */
.intro-focus .foc-hint { display: block; inset: -14%; opacity: .85; visibility: visible; animation: focusTurnCue 2.8s ease-in-out infinite; transition: opacity .3s, visibility .3s }
.intro-focus[data-focus-turned] .foc-hint { opacity: 0; visibility: hidden; animation: none }
@keyframes focusTurnCue { 0%, 100% { transform: rotate(-4deg) } 50% { transform: rotate(7deg) } }
@media (prefers-reduced-motion: reduce) { .intro-focus .foc-hint { animation: none } }

/* Larger exposed photograph on desktop, matching the camera column. */
@media (min-width: 641px) {
  .cam-out { width: 100%; margin-top: 24px }
  .cam-print { width: min(100%, 390px); aspect-ratio: 4 / 5; max-height: 54svh }
  .cam-print img { object-fit: contain }
}
@media (min-width: 641px) {
  .cam3d { width: min(100%, clamp(280px, 38vw, 480px)) }
}
/* Keep the desktop framing exercise balanced with its accompanying text. */
@media (min-width: 641px) {
  .framing-section .vf-win.tall,
  .framing-section .vf-shots { width: min(88%, 560px); margin-inline: auto }
}

/* Carousel photos retain their own portrait, square or landscape proportions. */
.slide-track { position: relative; align-items: flex-start; --slide-height: clamp(260px, 56vh, 580px) }
.slide { flex: 0 0 auto; width: min(calc(var(--slide-height) * var(--photo-ratio, 1)), 100%); max-width: 100%; scroll-snap-align: start }
.slide img { width: 100%; height: auto; aspect-ratio: var(--photo-ratio, 1); object-fit: contain }
.slide figcaption { position: static; overflow-wrap: anywhere }
@media (max-width: 640px) {
  .slide-track { --slide-height: clamp(240px, 55svh, 460px) }
  .slide { flex-basis: auto }
}


/* Desktop: camera and introduction share the left column; the print stands right. */
.camera-layout { padding-block: 0; row-gap: 0; min-width: 0 }
.camera-layout > .inst-copy { width: 100%; margin-bottom: 24px }
@media (min-width: 961px) {
  .camera-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'copy camera' 'print camera';
    column-gap: clamp(32px, 5vw, 80px); row-gap: 20px;
    align-items: center;
  }
  .camera-layout > .inst-copy { grid-area: copy; margin-bottom: 0 }
  .camera-layout > .cam3d { grid-area: camera }
  .camera-layout > .cam-out { grid-area: print; margin-top: 0; align-self: center }
}

@media (min-width: 961px) {
  .camera-layout > .cam3d { width: min(100%, 620px) }
}
/* Larger desktop camera and exposed print with a simpler introduction. */
@media (min-width: 961px) {
  .camera-layout > .cam3d { width: min(100%, 720px) }
  .camera-layout .cam-print { width: min(100%, 520px); max-height: 68svh }
}

.wa[hidden] { display: none }

@media (max-width: 640px) {
  .mast-ttl .l:nth-child(2) { text-align: right }
}
/* Clearly frame the enquiry form at every screen size. */
body[data-page="contact"] #form {
  min-width: 0; max-width: 100%;
  border: 1px solid var(--ink);
  padding: clamp(20px, 2.5vw, 36px);
  background: var(--paper);
}
body[data-page="contact"] #form[hidden] { display: none }
@media (max-width: 640px) {
  body[data-page="contact"] #form { padding: 20px 16px; gap: 14px }
  body[data-page="contact"] #form .submit { width: 100%; justify-self: stretch; padding-inline: 16px }
}

/* Explicit navigation for the horizontal behind-the-scenes strip. */
.bts-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px }
.bts-controls .reel-hint { display: block; white-space: normal; text-align: center }
.bts-controls .rbtn { flex: none; min-width: 44px; min-height: 44px }
.bts-controls .rbtn:disabled { opacity: .3; cursor: default }
@media (max-width: 640px) { .bts-controls .reel-hint { font-size: .56rem; letter-spacing: .1em } }


/* Hold the opening camera until the first view is ready, then expose the page. */
.shot[data-run] { background: var(--paper) }
.preloading #shot .shot-body,
.shot[data-run]:not([data-ready]) .shot-body { animation: vfIn .42s var(--ease) }
.preloading #shot .shot-curtain,
.shot[data-run]:not([data-ready]) .shot-curtain { animation: none }
.preloading #shot .shot-flash,
.shot[data-run]:not([data-ready]) .shot-flash { animation: none; opacity: 0 }
.shot[data-ready] { background: transparent }
.shot[data-ready] .shot-body { animation: vfOut .3s var(--ease) .12s forwards }
.shot[data-ready] .shot-curtain.top { animation: curtainTop .46s var(--ease-io) forwards }
.shot[data-ready] .shot-curtain.bot { animation: curtainBot .46s var(--ease-io) forwards }
.shot[data-ready] .shot-flash { animation: flashPop .3s linear .14s forwards }
