/* Photography page (/photography).
   A timeline of posts (one cover each) on a slowly turning drum, an index of spaces with a reel that scrolls
   by itself, scattered postcards, a short about. Plain white sheet, Instrument Serif for the voice, Instrument Sans for the furniture,
   small uppercase sans for the furniture, mono for numbers. */
:root {
  --pl: max(var(--pad), env(safe-area-inset-left, 0px));
  --pr: max(var(--pad), env(safe-area-inset-right, 0px));
  --paper: #ffffff;
  --bg: #ffffff;
  --ink: #171819;
  --muted: #64748b;
  --faint: #cbd5e1;
  --line: #e2e8f0;
  --pad: clamp(16px, 4vw, 64px);
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0; font-weight: 400; font-variant-numeric: tabular-nums; }
.side { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }

/* ---------- Page transitions (match helomus.com) ---------- */
.pt { position: fixed; inset: 0; z-index: 200; background: var(--ink); pointer-events: none;
  transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-io); }
.from-pt:not(.is-ready) .pt { transform: scaleY(1); transition: none; }
.from-pt.is-ready .pt { transition-duration: .75s; }
.is-leaving .pt { transform: scaleY(1); }

/* Arriving from helomus.com through the camera "click": the flash fades, then the lens opens */
.iris { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; pointer-events: none; overflow: hidden; }
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }
.iris-hole { position: absolute; inset: 0; background: #111; --iris: 0px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px)); }
.iris-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.from-shot .iris { display: grid; }
.from-shot .iris-flash { opacity: .55; }
.from-shot.is-ready .iris-flash { animation: iris-unflash .25s ease-out both; }
.from-shot.is-ready .iris-hole { animation: iris-open .6s cubic-bezier(.16, 1, .3, 1) .08s both; }
.from-shot.is-shot .iris { display: none; }
@keyframes iris-unflash { from { opacity: .55; } to { opacity: 0; } }
@keyframes iris-open { from { --iris: 0px; } to { --iris: 90vmax; } }

/* ---------- Top: a hairline, then small uppercase furniture ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--pr) 10px var(--pl);
  background: var(--bg); font-size: 14px;
  transition: transform .45s var(--ease);
}
/* a light rule under the header, the full width of the page */
.top::after { content: ""; position: absolute; left: var(--pl); right: var(--pr); bottom: 0; height: 1px; background: var(--line); }
/* The switch back to product design, next to the name: the same bare icon and label as on helomus.com */
.role-switch { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); transition: color .2s ease; }
.role-switch:hover, .role-switch:focus-visible { color: var(--ink); }
.role-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.role-switch:hover svg { transform: rotate(180deg); }
.role-switch.is-switching svg { transform: rotate(360deg); }
.role-switch::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); z-index: 2; padding: 4px 10px; border-radius: 0; white-space: nowrap;
  font-size: 12px; line-height: 16px; color: var(--ink); background: linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .8));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
  opacity: 0; transform: translate(-50%, -4px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.role-switch:hover::after, .role-switch:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .role-switch::after { display: none; } }
.top.is-tucked { transform: translateY(-110%); }
.top-left { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.brand { display: flex; align-items: center; height: 32px; flex: none; }
.avatar { display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f1f5f9; transition: transform .2s ease; }
.brand:active .avatar { transform: scale(.96); }
.cam { display: block; width: auto; height: 26px; transition: transform .2s ease; }
.brand:active .cam { transform: scale(.94); }
.top-sep { width: 1px; height: 22px; background: var(--line); }
/* the live clock, the same as helomus.com: ticks light up one by one, like a second hand */
.clock { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink); }
.clock-time { font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.clock-zone { color: var(--muted); }
.sv-head .clock { text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 20px;
  position: absolute; left: max(var(--pl), 28vw); top: 50%; transform: translateY(-50%); }  /* lines up with the About text */
.spinner { width: 14px; height: 14px; color: var(--muted); flex: none; }
.ticker path { stroke: #d3dae4; animation: tick-on 8s step-end infinite; }
.ticker path:nth-child(2) { animation-delay: 1s; }
.ticker path:nth-child(3) { animation-delay: 2s; }
.ticker path:nth-child(4) { animation-delay: 3s; }
.ticker path:nth-child(5) { animation-delay: 4s; }
.ticker path:nth-child(6) { animation-delay: 5s; }
.ticker path:nth-child(7) { animation-delay: 6s; }
.ticker path:nth-child(8) { animation-delay: 7s; }
@keyframes tick-on { 0% { stroke: var(--ink); } 12.5% { stroke: #d3dae4; } }
.views { display: flex; gap: 22px; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.views button { text-transform: inherit; letter-spacing: inherit; transition: color .2s; }
.views button:hover, .views button[aria-pressed="true"] { color: var(--ink); }
.top-right { justify-self: end; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.talk { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .2s; }
.back:hover { color: var(--ink); }
.back svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.back:hover svg { transform: rotate(180deg); }

/* ---------- 1. Timeline ---------- */
.lookback { position: relative; }
.lb-sticky { touch-action: pan-y; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.hero { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 24px; padding: clamp(92px, 13vh, 130px) var(--pr) 0 var(--pl); }
.title { display: grid; justify-items: center; text-align: center; font-family: var(--f-serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 108px); line-height: .95; letter-spacing: -.02em; }
.title-sub { font-family: var(--f-sans); font-style: normal; font-weight: 400; font-size: max(15px, .19em); line-height: 1.4; color: var(--muted); letter-spacing: 0; margin-top: .55em; text-wrap: balance; max-width: 30em; padding: 0 12px; }
.ix-hero { padding-left: 0; padding-right: 0; padding-bottom: clamp(40px, 6vw, 90px); }
.drum { position: relative; perspective: 1600px; perspective-origin: 50% 50%; }
.tl-photo { position: absolute; left: 50%; top: 50%; aspect-ratio: var(--ar); margin: 0; cursor: pointer; will-change: transform; transform-origin: 50% 50%; }
.tl-photo img, .tl-photo video { display: block; pointer-events: none; position: relative; width: 100%; height: 100%; object-fit: cover; background: var(--line); }
/* A post with more than one photo: a second sheet peeks out behind the cover */
.tl-photo.is-set::before { content: ""; position: absolute; inset: 0; background: #eef1f5; transform: translate(7px, -7px); transition: transform .35s var(--ease); }
.tl-photo.is-set:hover::before { transform: translate(11px, -11px); }
.tl-tip { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; padding: 5px 9px 4px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .18s; }
.tl-tip.is-on { opacity: 1; }
.ruler { width: 100%; height: 64px; display: block; }
.needle { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); white-space: nowrap; text-align: center; }

/* ---------- A space ---------- */
.space { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.space[hidden] { display: none; }
.space.is-open { animation: svIn .55s var(--ease) backwards; }
@keyframes svIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.sv-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)) 14px max(var(--pad), env(safe-area-inset-left, 0px));
  background: linear-gradient(var(--bg) 70%, rgba(255, 255, 255, 0)); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.sv-head .muted { color: var(--muted); }
.sv-close { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.sv-title { padding: clamp(60px, 9vw, 140px) max(var(--pad), env(safe-area-inset-right, 0px)) 0 max(var(--pad), env(safe-area-inset-left, 0px)); text-align: center; }
.sv-title h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(48px, 8vw, 140px); line-height: .92; letter-spacing: -.025em; }
.sv-title p { margin-top: 14px; color: var(--muted); }
.sv-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 50vw, 860px) minmax(0, 1fr); padding: clamp(48px, 6vw, 96px) max(var(--pad), env(safe-area-inset-right, 0px)) 0 max(var(--pad), env(safe-area-inset-left, 0px)); }
.sv-photos { grid-column: 2; display: grid; gap: 14px; }
.sv-photos figure { cursor: zoom-in; }
.sv-photos img, .sv-photos video { display: block; width: 100%; height: auto; background: var(--line); }
.sv-photos video { object-fit: cover; }
.sv-photos figcaption { margin-top: 6px; color: var(--muted); }
.sv-rail { grid-column: 3; justify-self: end; position: sticky; top: 90px; align-self: start; display: grid; gap: 6px; width: 56px; }
.sv-rail button { display: block; opacity: .35; transition: opacity .2s; outline-offset: 2px; }
.sv-rail button.is-on, .sv-rail button:hover { opacity: 1; }
.sv-rail img { width: 100%; height: auto; }
.space.is-single .sv-rail, .space.is-single .sv-photos figcaption { display: none; }
.space.is-single .sv-photos img, .space.is-single .sv-photos video { width: auto; max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); margin: 0 auto; }
.sv-next { display: block; width: calc(100% - 2 * max(var(--pad), env(safe-area-inset-left, 0px))); margin: clamp(80px, 10vw, 160px) auto 0; padding: 10px 0 max(40px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ink); text-align: center; }
.sv-next .mono { color: var(--muted); }
.sv-next strong { display: block; margin-top: 18px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: .95; letter-spacing: -.02em; transition: color .3s; }
.sv-next:hover strong { color: var(--muted); }

/* ---------- About: short, one narrow column (after mdsvmr.com/about) ---------- */
.ab { width: min(520px, calc(100% - var(--pl) - var(--pr))); margin: 0 0 0 max(var(--pl), 28vw); padding: clamp(40px, 8vw, 110px) 0 0; font-size: 14px; line-height: 1.6; }
.ab-sec + .ab-sec, .ab-actions + .ab-sec { margin-top: 30px; }
.ab-sec h3 { font-size: 14px; font-weight: 500; color: var(--ink); }
.ab-sec p { margin-top: 4px; color: var(--muted); }
.ab-rows { margin-top: 6px; }
.ab-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.ab-row:first-child { border-top: 0; }
.ab-row button, .ab-links a { text-align: left; color: var(--ink); text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.ab-row button:hover, .ab-links a:hover { text-decoration-color: var(--muted); }
.ab-row span:first-child { color: var(--ink); }
.ab-row span:last-child { text-align: right; color: var(--muted); }
.ab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
/* the same pill buttons as on helomus.com */
.ab-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 9999px; background: #f1f5f9; color: #171717; font-family: var(--f-sans); font-weight: 400; font-size: 14px; line-height: 20px; transition: transform .2s ease, background-color .2s; }
.ab-btn:hover { background: #e7edf4; }
.ab-btn:active { transform: scale(.97); }
.ab-btn .icon { width: 18px; height: 18px; flex: none; }
.ab-btn-dark { background: #171717; color: #fff; }
.ab-btn-dark:hover { background: #2b2b2b; }
@media (max-width: 809px) { .ab-btn { height: 40px; font-size: 16px; } }
.ab-links { margin-top: 18px; color: var(--muted); }
.ab-inline { color: var(--ink); text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 4px; }
.ab-inline:hover { text-decoration-color: var(--ink); }
/* the same buttons as the top of helomus.com: a dark "Let's Talk" with the waving hand, a light "Chat" with the Telegram mark */
@media (max-width: 809px) { .ab { margin-left: var(--pl); padding-top: 28px; } }

/* ---------- One photo ---------- */
.viewer { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer[hidden] { display: none; }
.v-top, .v-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px max(var(--pad), env(safe-area-inset-right, 0px)) 16px max(var(--pad), env(safe-area-inset-left, 0px)); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.v-top { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.v-bottom { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.v-place { color: var(--muted); margin-left: 8px; }
.v-btn { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.v-btn:hover { color: var(--ink); }
.v-btn[disabled] { opacity: .3; cursor: default; }
.v-stage { min-height: 0; padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) 0 max(var(--pad), env(safe-area-inset-left, 0px)); }
.v-stage video { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.v-stage video[hidden], .v-stage img[hidden] { display: none; }
.v-stage img { width: 100%; height: 100%; object-fit: contain; animation: vIn .45s var(--ease) both; }
@keyframes vIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Phones ---------- */
@media (max-width: 809px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; }
  .top-sep, .clock, .top-right { display: none; }
  .views { gap: 14px; }
  .hero { padding-top: 110px; }
  .title { font-size: clamp(40px, 12vw, 60px); }
  .needle { bottom: 70px; transform: translateX(-50%); max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
  .sv-head { grid-template-columns: minmax(0, 1fr) auto; }
  .sv-head > :nth-child(2), .sv-head > :nth-child(3) { display: none; }
  .sv-body { grid-template-columns: minmax(0, 1fr); }
  .sv-photos { grid-column: 1; }
  .sv-rail { display: none; }
}


/* The label that follows the pointer */
.ctag { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; padding: 4px 7px 3px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.ctag.is-on { opacity: 1; }

/* ---------- Surf ---------- */
.sf { position: relative; flex: 1; min-height: 220px; margin: clamp(12px, 2.2vh, 26px) calc(-1 * var(--pr)) 0 calc(-1 * var(--pl)); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.sf.is-drag { cursor: grabbing; }
.sf-item { position: absolute; left: 0; top: 0; display: block; will-change: transform; cursor: pointer; }
.sf.is-drag .sf-item { cursor: grabbing; }
.sf-item img { width: 100%; height: auto; background: var(--line); pointer-events: none; transition: filter .3s; }
.sf.has-hover .sf-item img { filter: grayscale(1) opacity(.55); }
.sf.has-hover .sf-item.is-hover img { filter: none; }
.sf-foot { flex: none; display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 max(18px, env(safe-area-inset-bottom, 0px)); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }

/* ---------- Index: a plain list, hairlines between rows ---------- */
.ix { padding: 0 0 max(80px, env(safe-area-inset-bottom, 0px)); }
.ix-bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; font-size: 13px; color: var(--muted); }
.ix-sort button { color: var(--muted); transition: color .2s; }
.ix-sort button:hover, .ix-sort button[aria-pressed="true"] { color: var(--ink); }
.ix-g { margin-bottom: 44px; }
.ix-y { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--ink); font-size: 13px; font-weight: 400; color: var(--ink); }
.ix-y span:last-child { color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.ix-list li { border-top: 1px solid var(--line); }
.ix-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 220px) 96px 90px 130px; gap: 20px; align-items: baseline; width: 100%; padding: 16px 0 14px; text-align: left; transition: color .25s, opacity .25s; }
.ix-no { color: var(--muted); }
.ix-title { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.01em; transition: transform .35s var(--ease); }
.ix-place, .ix-kind, .ix-date, .ix-n { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-n { text-align: right; }
.ix-thumb { display: none; }
.ix-list:hover .ix-row { opacity: .35; }
.ix-list .ix-row:hover, .ix-list .ix-row:focus-visible { opacity: 1; }
.ix-row:hover .ix-title { transform: translateX(6px); }
.peek { position: fixed; left: 0; top: 0; z-index: 80; width: clamp(180px, 16vw, 260px); height: auto; pointer-events: none; opacity: 0; transition: opacity .2s; background: var(--line); }
.peek.is-on { opacity: 1; }

.info { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.info[hidden] { display: none; }
.info.is-open { animation: svIn .55s var(--ease) backwards; }
.info-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; padding: clamp(60px, 10vw, 150px) var(--pr) 0 var(--pl); }
.statement { grid-column: 1 / span 6; font-family: var(--f-serif); font-size: clamp(30px, 3.4vw, 56px); line-height: 1.08; letter-spacing: -.015em; max-width: 13em; text-wrap: balance; }
.info-col { grid-column: span 3; display: grid; gap: 14px; align-content: start; }
.info-col h3 { font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.steps { display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); }
.steps .mono { color: var(--muted); line-height: 20px; }
.links { display: grid; gap: 6px; font-size: 15px; }
.links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--faint); transition: text-decoration-color .2s; }
.links a:hover { text-decoration-color: var(--ink); }
.sun { display: grid; gap: 2px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.sun .mono { color: var(--ink); font-size: 12px; }
.info-foot { padding: clamp(80px, 10vw, 160px) var(--pr) max(24px, env(safe-area-inset-bottom, 0px)) max(var(--pl), 28vw); font-size: 14px; color: var(--muted); }  /* lines up with the About text */
@media (max-width: 809px) { .info-foot { padding-left: var(--pl); } }


/* Surf fills the screen under the header; Index is a page of its own */
html[data-view="surf"] body { overflow: hidden; overscroll-behavior: none; }
.v-surf { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: 56px; }
.v-surf[hidden], .v-index[hidden], .lookback[hidden] { display: none; }
.v-surf .sf { margin: 0; }
.v-surf .sf-foot { padding-left: var(--pl); padding-right: var(--pr); }
.v-index { padding: 0 var(--pr) 0 var(--pl); animation: viewIn .55s var(--ease) both; }
.v-surf { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 809px) {
  .info-body { grid-template-columns: minmax(0, 1fr); }
  .statement, .info-col { grid-column: 1 / -1; }
}

/* ---------- A post: the same motion as the helomus.com case studies ---------- */
/* content sharpens into view */
.rv { opacity: 0; filter: blur(10px); transform: translateY(14px);
  transition: opacity .9s var(--ease) var(--rv-delay, 0ms), filter .9s var(--ease) var(--rv-delay, 0ms), transform .9s var(--ease) var(--rv-delay, 0ms); }
.rv.in { opacity: 1; filter: none; transform: none; }
.space .sv-body { padding-bottom: 18vh; }
/* minimap: every photo, small, with a frame where you are; click to jump */
.sv-map { position: fixed; top: 112px; right: var(--pr); width: 4.8vw; min-width: 56px; height: min(62vh, 560px); overflow: hidden; z-index: 3; cursor: pointer;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.sv-map-track { position: relative; display: grid; gap: 3px; padding: calc(min(62vh, 560px) * .14) 0; transition: transform .5s var(--ease); }
.sv-map-track span { display: block; background: var(--line) center / cover no-repeat; }
.sv-map-track .sv-map-view { position: absolute; left: 0; right: 0; top: 0; background: none; border: 1px solid var(--ink); pointer-events: none; transition: opacity .2s; }
/* next / previous post: keep scrolling past the end */
.sv-shade { position: fixed; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; }
.sv-nav { position: fixed; z-index: 5; opacity: 0; pointer-events: none; font-size: 14px; color: var(--ink); text-align: left; transition: opacity .3s ease .1s; }
.sv-nav.is-on { opacity: 1; pointer-events: auto; transition-delay: 0s; }
.sv-nav-label { white-space: nowrap; transform: translateY(50%); filter: blur(2px); transition: transform .4s var(--ease), filter .4s var(--ease); }
.sv-nav.is-on .sv-nav-label { transform: none; filter: none; transition-duration: .6s; transition-delay: .1s; }
.sv-nav--next { left: var(--pl); right: var(--pr); bottom: 0; height: 18vh; display: flex; align-items: center; gap: 24px; }
.sv-nav-line { position: relative; flex: 1; height: 1px; background: rgba(23, 24, 25, .2); }
.sv-nav-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.sv-nav-name { color: var(--muted); white-space: nowrap; font-family: var(--f-serif); font-size: 18px; }
.sv-nav--prev { left: var(--pl); top: 56px; height: 36px; display: flex; align-items: center; }
.sv-nav--prev .sv-nav-label { transform: translateY(-50%);
  background-image: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--p, 0%), #a3aec0 var(--p, 0%), #a3aec0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sv-nav--prev.is-on .sv-nav-label { transform: none; }
@media (max-width: 809px) {
  .ix-row { grid-template-columns: 30px minmax(0, 1fr) 52px; grid-template-areas: "no title thumb" "no meta thumb"; column-gap: 12px; row-gap: 4px; align-items: start; padding: 14px 0; }
  .ix-list:hover .ix-row { opacity: 1; }
  .ix-row:hover .ix-title { transform: none; }
  .ix-no { grid-area: no; padding-top: 6px; }
  .ix-title { grid-area: title; font-size: 24px; }
  .ix-kind { grid-area: meta; }
  .ix-place, .ix-date, .ix-n { display: none; }
  .ix-thumb { display: block; grid-area: thumb; width: 52px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
  .sv-map { display: none; }
  .space .sv-body { padding-bottom: 16vh; }
  .sv-nav--next { height: 16vh; gap: 16px; }
}
/* ---------- Index: one column of covers (HeloArch "Vertical") ---------- */
.v-index { position: relative; padding: 0; }
.vx-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.vx-left { position: absolute; left: var(--pl); top: 0; bottom: 0; width: min(34vw, 560px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(110px, 16vh, 170px) 0 clamp(28px, 5vh, 56px); }
.vx-intro { font-family: var(--f-serif); font-size: clamp(26px, 2.6vw, 44px); line-height: 1.12; letter-spacing: -.01em; color: var(--muted); text-wrap: balance; }
.vx-intro span { color: var(--ink); }
.vx-count { font-family: var(--f-serif); font-size: clamp(40px, 4.4vw, 72px); line-height: 1; color: var(--ink); }
.vx-cur { color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.vx-col { position: absolute; top: 50%; }
.vx-tile { position: absolute; left: 0; top: 0; display: block; padding: 0; transform-origin: 0 50%; will-change: transform; background: var(--line); cursor: pointer; }
.vx-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vx-info { position: absolute; }
.vx-info.is-in > * { animation: vxIn .6s var(--ease) both; }
.vx-info.is-in > :nth-child(2) { animation-delay: .06s; }
.vx-info.is-in > :nth-child(3) { animation-delay: .12s; }
@keyframes vxIn { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
.vx-kind { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.vx-name { margin-top: 10px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3vw, 52px); line-height: 1; letter-spacing: -.015em; color: var(--ink); }
.vx-desc { margin-top: 18px; max-width: 30em; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 809px) {
  .vx-left { width: auto; right: var(--pr); padding-top: 72px; padding-bottom: 20px; }
  .vx-intro { display: none; }
  .vx-left { justify-content: flex-end; }
  .vx-count { font-size: 32px; text-align: right; }
  .vx-name { font-size: 24px; margin-top: 6px; }
  .vx-kind { font-size: 11px; }
  .vx-desc { margin-top: 10px; font-size: 12px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; filter: none; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sv-label-off { visibility: hidden; }  /* still names the dialog for screen readers */
.sv-head > .sv-close { grid-column: -2 / -1; }
/* Close lines up with the right edge of the About text */
@media (min-width: 810px) {
  .sv-head > .sv-close { position: absolute; top: 50%; transform: translateY(-50%); grid-column: auto;
    right: max(var(--pr), calc(100% - max(var(--pl), 28vw) - 520px)); }
}

/* ---------- Cinematic intro: the sea, a glowing wordmark, then the timeline ---------- */
.cine { display: none; }
.cine-on .cine { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: #050505; color: #fff;
  overflow: hidden; touch-action: none; transition: opacity .9s var(--ease-io), visibility 0s linear .9s; }
/* (the page under the intro keeps its own layout: no overflow lock, so the timeline is already in place as the intro fades) */
.cine-frame { position: relative; width: min(100vw - 2 * var(--pl), (100dvh - 2 * clamp(56px, 11vh, 120px)) * 2.2); aspect-ratio: 2.2 / 1;
  border-radius: 14px; overflow: hidden; background: #111; isolation: isolate;
  transform: scale(1.06); filter: blur(14px) brightness(1.5) saturate(.6); opacity: 0;
  transition: transform 2.6s cubic-bezier(.16, 1, .3, 1), filter 2.2s cubic-bezier(.16, 1, .3, 1), opacity 1.2s ease; }
@media (max-width: 809px) { .cine-frame { width: calc(100vw - 2 * var(--pl)); aspect-ratio: 16 / 11; border-radius: 12px; } }
.cine-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  transform: scale(1); transition: transform 14s linear; }
.cine-mist { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.95), rgba(236,242,240,.85));
  opacity: 1; transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
/* the title, set like the opening credits of a film */
.cine-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); display: grid; justify-items: center; gap: clamp(10px, 1.6vw, 22px);
  text-align: center; pointer-events: none; color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.35), 0 1px 18px rgba(0,0,0,.18); }
.cine-by { font-family: var(--f-sans); font-weight: 400; font-size: clamp(9px, .85vw, 12px); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; }
.cine-word { font-family: var(--f-sans); font-weight: 500; font-size: clamp(20px, 2.4vw, 36px); line-height: 1; letter-spacing: 1.1em; padding-left: 1.1em; text-transform: uppercase; }
.cine-tag { font-family: var(--f-serif); font-style: italic; font-size: clamp(16px, 1.8vw, 27px); line-height: 1.1; }
.cine-by, .cine-tag { opacity: 0; filter: blur(10px); transform: translateY(6px);
  transition: opacity 1.4s ease, filter 1.6s cubic-bezier(.16, 1, .3, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.cine-by { transition-delay: .5s; }
.cine-tag { transition-delay: 2.1s; }
.cine-word .ch { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.2em);
  transition: opacity 1.2s ease, filter 1.4s cubic-bezier(.16, 1, .3, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.cine.is-in .cine-by, .cine.is-in .cine-tag { opacity: .92; filter: none; transform: none; }
.cine-pill { position: absolute; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; line-height: 16px;
  box-shadow: 0 6px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(8px); transition: opacity .8s ease 1.4s, transform .8s var(--ease) 1.4s; }
.cine-nav { top: max(18px, env(safe-area-inset-top, 0px)); }
.cine-nav button { padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.cine-nav button:hover { background: rgba(0,0,0,.06); }
.cine-cap { bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 12px)); padding: 6px 6px 6px 16px; gap: 14px; white-space: nowrap; }
.cine-enter { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
@media (max-width: 809px) { .cine-cap { white-space: normal; width: calc(100vw - 2 * var(--pl)); justify-content: space-between; text-align: left; } }
/* playing */
.cine.is-in .cine-frame { opacity: 1; transform: scale(1); filter: none; }
.cine.is-in .cine-mist { opacity: 0; }
.cine.is-in .cine-v { transform: scale(1.07); }
.cine.is-in .cine-word .ch { opacity: 1; filter: blur(0); transform: none; }
.cine.is-in .cine-pill { opacity: 1; transform: none; }
/* the clip ends: a breath of mist, then it starts again */
.cine.is-loop .cine-mist { opacity: .9; transition-duration: .6s; }
/* leaving: the frame opens out to the page */
.cine.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.cine.is-out .cine-frame { transform: scale(1.12); filter: blur(10px) brightness(1.4); transition-duration: .9s; }
.cine.is-out .cine-pill { opacity: 0; transition-delay: 0s; transition-duration: .3s; }
@media (prefers-reduced-motion: reduce) {
  .cine-frame, .cine-v, .cine-mist, .cine-word .ch, .cine-by, .cine-tag, .cine-pill { transition: opacity .3s ease !important; transform: none !important; filter: none !important; }
}
@media (max-width: 809px) { .cine-word { letter-spacing: .8em; padding-left: .8em; font-size: 20px; } .cine-by { font-size: 8.5px; } .cine-tag { font-size: 15px; } .cine-title { gap: 9px; } }
/* the way in: plain text, like the rest of the page's furniture */
.cine-cap { background: none; box-shadow: none; padding: 6px 0; gap: 28px; color: rgba(255,255,255,.72);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; width: auto; }
.cine-enter { background: none; padding: 0; border-radius: 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; transition: border-color .2s ease; }
.cine-cap:hover .cine-enter { border-color: #fff; }
@media (max-width: 809px) { .cine-cap { width: auto; white-space: nowrap; gap: 20px; font-size: 10px; } }

/* fonts as on the page itself: Instrument Serif for the name, Instrument Sans for everything else; the way in like "→ Let's talk" */
.cine-word { font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: .5em; padding-left: .5em; }
.cine-tag { font-family: var(--f-sans); font-style: normal; font-weight: 400; font-size: clamp(14px, 1.15vw, 17px); letter-spacing: 0; opacity: .9; }
.cine-by { font-family: var(--f-sans); font-weight: 400; }
.cine-cap { font-family: var(--f-sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.7); gap: 24px; }
.cine-enter { border: 0; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 809px) { .cine-word { font-size: 28px; letter-spacing: .4em; padding-left: .4em; } .cine-tag { font-size: 13px; } .cine-cap { font-size: 13px; gap: 18px; } }
.cine-enter { color: rgba(255,255,255,.62); text-decoration-color: rgba(255,255,255,.16); transition: color .2s ease, text-decoration-color .2s ease; }
.cine-cap:hover .cine-enter { color: rgba(255,255,255,.9); text-decoration-color: rgba(255,255,255,.4); }
/* HELOMUS glows, a soft bloom of light around the letters as in the reference */
.cine-word { color: #fffef8;
  text-shadow: 0 0 2px rgba(255,255,250,.95), 0 0 8px rgba(255,255,245,.85), 0 0 18px rgba(255,252,235,.7), 0 0 38px rgba(255,248,225,.55), 0 0 80px rgba(255,245,215,.4), 0 0 140px rgba(255,240,205,.3); }
.cine.is-in .cine-word { animation: cine-glow 4.8s ease-in-out 2.6s infinite alternate; }
@keyframes cine-glow { from { filter: brightness(1); } to { filter: brightness(1.12) drop-shadow(0 0 10px rgba(255,250,235,.35)); } }
@media (prefers-reduced-motion: reduce) { .cine.is-in .cine-word { animation: none; } }
/* a slow push in: the film drifts closer and the title grows a little, so nothing sits still */
.cine.is-in .cine-v { transition: none; animation: cine-push 16s ease-in-out infinite alternate; }
@keyframes cine-push { from { transform: scale(1); } to { transform: scale(1.14); } }
.cine-title { scale: .94; }
.cine.is-in .cine-title { animation: cine-title-in 18s cubic-bezier(.22, .61, .36, 1) forwards; }
@keyframes cine-title-in { from { scale: .94; } to { scale: 1.08; } }
@media (prefers-reduced-motion: reduce) { .cine.is-in .cine-v, .cine.is-in .cine-title { animation: none; } .cine-title { scale: 1; } }

/* the sound of the sea: a plain text switch in the corner, as quiet as the way in */
.cine-sound { position: absolute; left: var(--pl); bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 12px)); padding: 6px 0;
  font-family: var(--f-sans); font-size: 14px; color: rgba(255,255,255,.62); text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,.16); opacity: 0; transition: opacity .8s ease 1.4s, color .2s ease, text-decoration-color .2s ease; }
.cine-sound:hover { color: rgba(255,255,255,.9); text-decoration-color: rgba(255,255,255,.4); }
.cine.is-in .cine-sound { opacity: 1; }
.cine.is-out .cine-sound { opacity: 0; transition-delay: 0s; }
@media (max-width: 809px) { .cine-sound { font-size: 13px; } }
.cine-sound { bottom: auto; top: max(18px, calc(env(safe-area-inset-top, 0px) + 10px)); }
/* the sound switch sits just above the film, centred */
.cine { --fh: min((100vw - 2 * var(--pl)) / 2.2, 100dvh - 2 * clamp(56px, 11vh, 120px)); }
.cine-sound { left: 50%; translate: -50% 0; top: calc(50dvh - var(--fh) / 2 - 40px); }
@media (max-width: 809px) { .cine { --fh: calc((100vw - 2 * var(--pl)) * 11 / 16); } }

/* film gate: the frame's corners are soft, rounded and a little uneven, like the edge of a projected film frame */
.cine-frame { border-radius: 0; background: transparent; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202200%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%224%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%222168%22%20height%3D%22968%22%20rx%3D%2258%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202200%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%224%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%222168%22%20height%3D%22968%22%20rx%3D%2258%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E") 0 0 / 100% 100% no-repeat; }
.cine-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 120% at 50% 50%, transparent 58%, rgba(0,0,0,.28) 82%, rgba(0,0,0,.6) 100%);
  box-shadow: inset 0 0 26px 6px rgba(0,0,0,.55); }
.cine-title { z-index: 2; }
.cine-mist { z-index: 3; }
/* a faint gate weave: the frame drifts by a pixel, as film does in a projector */
.cine.is-in .cine-frame { animation: cine-weave 7s steps(28) infinite; }
@keyframes cine-weave { 0%,100% { translate: 0 0; } 20% { translate: .4px -.6px; } 45% { translate: -.5px .3px; } 70% { translate: .3px .6px; } }
@media (max-width: 809px) { .cine-frame { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201600%201100%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%229%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%221572%22%20height%3D%221072%22%20rx%3D%2252%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201600%201100%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%229%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%221572%22%20height%3D%221072%22%20rx%3D%2252%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E"); } }
@media (prefers-reduced-motion: reduce) { .cine.is-in .cine-frame { animation: none; } }

/* 16:9: the whole film, as tall as the screen allows */
.cine { --bar: clamp(56px, 9vh, 96px); --fw: min(100vw - 2 * var(--pl), (100dvh - 2 * var(--bar)) * 16 / 9); --fh: calc(var(--fw) * 9 / 16); }
.cine-frame { width: var(--fw); aspect-ratio: 16 / 9; -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201600%20900%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%224%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2213%22%20y%3D%2213%22%20width%3D%221574%22%20height%3D%22874%22%20rx%3D%2246%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201600%20900%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%224%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2213%22%20y%3D%2213%22%20width%3D%221574%22%20height%3D%22874%22%20rx%3D%2246%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E"); }
.cine-v { object-position: 50% 50%; }
.cine-sound { top: calc(50dvh - var(--fh) / 2 - 38px); }
@media (max-width: 809px) { .cine { --fw: calc(100vw - 2 * var(--pl)); --fh: calc(var(--fw) * 11 / 16); } .cine-frame { aspect-ratio: 16 / 11; } }
@media (max-width: 809px) { .cine-frame { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201600%201100%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%229%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%221572%22%20height%3D%221072%22%20rx%3D%2252%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201600%201100%22%20preserveAspectRatio%3D%22none%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.004%20.009%22%20numOctaves%3D%222%22%20seed%3D%229%22%2F%3E%3CfeDisplacementMap%20in%3D%22SourceGraphic%22%20scale%3D%227%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%224.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%221572%22%20height%3D%221072%22%20rx%3D%2252%22%20fill%3D%22%23fff%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E"); } }
.cine { --bar: clamp(72px, 15vh, 170px); }
/* Sound above, Scroll / Enter below, the same distance from the film */
.cine-on .cine { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.6vh, 26px); }
.cine-sound, .cine-cap { position: static; left: auto; top: auto; bottom: auto; translate: none; transform: none; flex: none; }
.cine-sound { order: -1; }
.cine-frame { flex: none; }
.cine-cap { padding: 6px 0; }
.cine-sound { color: rgba(255,255,255,.34); text-decoration-color: rgba(255,255,255,.1); }
.cine-sound:hover { color: rgba(255,255,255,.75); text-decoration-color: rgba(255,255,255,.3); }

/* the sound switch is a small speaker, as quiet as before */
.cine-sound { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; text-decoration: none; }
.cine-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Scroll / Enter back at the foot of the screen; the speaker mirrors it at the top, so both sit the same distance from the film */
.cine-sound, .cine-cap { position: absolute; left: 50%; translate: -50% 0; }
.cine-sound { top: max(16px, calc(env(safe-area-inset-top, 0px) + 10px)); bottom: auto; }
.cine-cap { bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 10px)); top: auto; }
/* smoother in and out: no snap at the start of a move */
.cine-frame { transition: transform 2.6s cubic-bezier(.33, 0, .2, 1), filter 2.2s cubic-bezier(.33, 0, .2, 1), opacity 1.2s ease; }
.cine { transition: opacity 1s cubic-bezier(.65, 0, .35, 1), visibility 0s linear 1s; }
.cine.is-out .cine-frame { transition: transform 1s cubic-bezier(.65, 0, .35, 1), filter 1s cubic-bezier(.65, 0, .35, 1); }
/* the gate weave glides instead of stepping */
.cine.is-in .cine-frame { animation: cine-weave 9s ease-in-out infinite; }
@keyframes cine-weave { 0%,100% { translate: 0 0; } 25% { translate: .35px -.45px; } 50% { translate: -.4px .25px; } 75% { translate: .25px .4px; } }
