/* ==========================================================================
   Khobare Studio — site.css
   Quiet-gallery design system: white canvas, ink type, hairlines, serif accents.
   The accent colour comes from theme-variables.css (editable in the admin).
   ========================================================================== */

:root {
  --bg: #fff;
  --ink: #0b0b0b;
  --text: #2b2b2b;
  --mute: #6d6d6d;
  --soft: #a3a3a3;
  --line: #e8e8e6;
  --panel: #f5f5f3;
  --dark: #0b0b0b;
  --accent: var(--accent-color, #f58a1f);
  --accent-ink: var(--accent-color-dark, #c96a0a);
  --pad: clamp(16px, 2.4vw, 40px);
  --hd: 62px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 500; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0; transition: top .2s; }
.skip-link:focus { top: 10px; }
main:focus { outline: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---- type ---------------------------------------------------------------- */
.display { font-size: clamp(2.7rem, 7.4vw, 8.6rem); line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.display em { font-size: 1.06em; letter-spacing: -.025em; }
.h2 { font-size: clamp(2rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.h2 em { font-size: 1.05em; }
.h3 { font-size: clamp(1.05rem, 1.35vw, 1.3rem); letter-spacing: -.01em; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.eyebrow.light { color: #8d8d8d; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: #444; max-width: 46ch; }
.tag { color: var(--soft); }
.muted { color: var(--mute); }

/* split-text reveal (JS wraps words) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
.is-in .w > span, .is-in.w > span { transform: none; }
.js [data-split]:not(.is-split) { opacity: 0; }

/* ---- generic reveal ------------------------------------------------------ */
.js [data-reveal]:not([data-reveal="img"]) { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not([data-reveal="img"]).is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] .media { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--ease); }
.js [data-reveal="img"] .media img { transform: scale(1.2); transition: transform 1.8s var(--ease), filter .6s; }
.js [data-reveal="img"].is-in .media { clip-path: inset(0); }
.js [data-reveal="img"].is-in .media img { transform: scale(1); }
.js-late [data-split], .js-late [data-reveal] { opacity: 1 !important; transform: none !important; }
.js-late [data-reveal="img"] .media { clip-path: none !important; }
.js-late [data-reveal="img"] .media img, .js-late .w > span { transform: none !important; }

/* ---- header -------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 120; height: var(--hd); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .5s var(--ease), box-shadow .3s; view-transition-name: site-header; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hd-grid { height: 100%; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 15px; letter-spacing: -.01em; }
.hd-logo { display: block; flex: none; line-height: 0; }
.hd-logo img { height: 34px; width: auto; display: block; }
.hd-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: clamp(18px, 2.4vw, 38px); }
.hd-nav a { position: relative; transition: color .25s; }
.hd-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.hd-nav a:hover::after, .hd-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd-nav a[aria-current="page"] { color: var(--ink); }
.hd-nav:hover a:not(:hover) { color: var(--soft); }
.hd-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font-size: 15px; }
.hd-toggle-bars { position: relative; width: 18px; height: 8px; }
.hd-toggle-bars::before, .hd-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.hd-toggle-bars::before { top: 0; } .hd-toggle-bars::after { top: 6.5px; }
body.menu-open .hd-toggle-bars::before { top: 3.2px; transform: rotate(45deg); }
body.menu-open .hd-toggle-bars::after { top: 3.2px; transform: rotate(-45deg); }

/* ---- full-screen menu ---------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 110; background: #fff; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s; overflow-y: auto; overscroll-behavior: contain; }
body.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
body.menu-open { overflow: hidden; }
.menu-inner { min-height: 100%; padding: calc(var(--hd) + clamp(24px, 5vh, 64px)) var(--pad) var(--pad); display: grid; grid-template-rows: 1fr auto; gap: 40px; position: relative; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); max-width: 100%; align-content: start; }
.menu-col .eyebrow { margin-bottom: 18px; }
.menu-col li { overflow: hidden; }
.menu-col li a { display: flex; gap: 14px; align-items: baseline; padding: 4px 0; font-size: clamp(1.25rem, 2.35vw, 2.4rem); letter-spacing: -.035em; line-height: 1.15; transform: translateY(110%); transition: transform .9s var(--ease), color .25s; }
body.menu-open .menu-col li a { transform: none; transition-delay: calc(var(--i, 0) * 28ms + 220ms); }
.menu-col .n { font-size: 11px; color: var(--soft); letter-spacing: .08em; min-width: 1.6em; transform: translateY(-.35em); }
.menu-col .menu-hub a { font-size: 15px; letter-spacing: 0; color: var(--mute); margin-bottom: 10px; }
.menu-col ul:hover li:not(.menu-hub):not(:hover) a { color: var(--soft); }
.menu-preview { position: absolute; right: var(--pad); top: calc(var(--hd) + clamp(24px, 5vh, 64px) + 34px); width: min(24vw, 380px); aspect-ratio: 4/5; overflow: hidden; background: var(--panel); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.menu-preview.is-on { opacity: 1; transform: none; }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }
.menu-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.menu-studio, .menu-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.menu-foot a { color: var(--ink); } .menu-foot a:hover { color: var(--mute); }

/* ---- buttons / links ----------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 0; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-size: 15px; letter-spacing: -.01em; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), transform .4s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light::before { background: var(--accent); }
.btn-light:hover { color: #000; }
.btn-solid { font-size: 16px; padding: 16px 28px; }
.link-arrow { position: relative; font-size: 15px; white-space: nowrap; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100%/100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow span { display: inline-block; transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---- layout primitives --------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 128px) var(--pad); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(20px, 3vw, 44px); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); }
.split-l { grid-column: 1 / 5; }
.split-r { grid-column: 5 / 13; min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: start; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: start; }
.grid-12 .tile { grid-column: span var(--span, 3); }

/* ---- page hero ----------------------------------------------------------- */
.page-hero { padding: calc(var(--hd) + clamp(28px, 5vw, 72px)) var(--pad) 0; }
.page-hero .display { font-size: clamp(2.6rem, 6.9vw, 8rem); max-width: 17ch; }
.ph-plain { padding-bottom: clamp(24px, 4vw, 56px); }
.ph-top .eyebrow { margin-bottom: clamp(16px, 2vw, 28px); }
.ph-top .eyebrow a:hover { color: var(--ink); }
.ph-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(24px, 3.4vw, 48px); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); margin-top: clamp(32px, 4.5vw, 64px); border-top: 1px solid var(--line); padding-top: 16px; }
.facts span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.facts strong { font-weight: 500; font-size: 1rem; line-height: 1.35; display: block; }
.ph-img { margin: clamp(28px, 4vw, 56px) calc(var(--pad) * -1) 0; }
.ph-img .media { aspect-ratio: 16 / 8.4; overflow: hidden; background: var(--ph, #eee); }
.ph-img img { width: 100%; height: 114%; object-fit: cover; will-change: transform; }
.crumbs { margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin: 0 .6em; color: var(--soft); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.intro-block { padding: clamp(56px, 8vw, 120px) var(--pad) 0; }
.intro-block .prose { margin-left: 0; width: 100%; max-width: 1180px; }
.prose.lead p { font-size: clamp(1.35rem, 2.3vw, 2.3rem); line-height: 1.27; letter-spacing: -.025em; color: var(--ink); margin-bottom: .9em; max-width: none; }
.prose.lead p:last-child { margin-bottom: 0; }

.chapter { padding: clamp(40px, 6vw, 96px) var(--pad); border-top: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.chapter:first-of-type { margin-top: clamp(32px, 5vw, 72px); }
.chapter .split-l { position: sticky; top: calc(var(--hd) + 28px); align-self: start; }
.chapter-no { display: block; font-size: 12px; letter-spacing: .1em; color: var(--mute); margin-bottom: 14px; }
.chapter .h2 { font-size: clamp(1.6rem, 2.7vw, 2.7rem); }

/* ---- prose --------------------------------------------------------------- */
.prose { font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.72; color: var(--text); max-width: 66ch; }
.prose > * + * { margin-top: 1.25em; }
.prose h3 { font-size: 1.3em; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin-top: 2em; }
.prose h4 { font-size: 1.05em; color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100%/100% 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 1px; }
.prose a:hover { background-size: 100% 100%; }
.prose ul, .prose ol { padding: 0; }
.prose li { position: relative; padding-left: 1.6em; margin-top: .55em; }
.prose ul li::before { content: "–"; position: absolute; left: 0; color: var(--mute); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-size: .72em; color: var(--mute); letter-spacing: .06em; }
.prose blockquote.pull { margin-left: 0; padding: .4em 0 .4em 0; }
.prose blockquote.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.prose blockquote.pull cite { display: block; margin-top: .8em; font-family: var(--font); font-style: normal; font-size: .8rem; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.prose code { background: var(--panel); padding: .1em .35em; border-radius: 0; font-size: .9em; }
.prose img { width: 100%; margin: 1.8em 0; }
.inline-fig { margin: 2em 0; max-width: none; }
.inline-fig .media { aspect-ratio: var(--ar); background: var(--ph); overflow: hidden; }
.inline-fig img { width: 100%; height: 100%; object-fit: cover; }
.inline-fig figcaption { font-size: 14px; padding-top: 10px; } .inline-fig figcaption span { color: var(--soft); }

/* ---- tiles (reference-style grid) --------------------------------------- */
.tile { margin: 0; min-width: 0; }
.tile .media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 4/3); background: var(--ph, #eee); }
.tile .media img { width: 100%; height: 100%; object-fit: cover; }
.tile .media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .5s; }
.tile:hover .media::after { background: rgba(0,0,0,.06); }
.js .tile.is-in .media:hover img, .no-js .tile .media:hover img { transform: scale(1.045); transition: transform 1.2s var(--ease); }
.tile figcaption { display: flex; flex-wrap: wrap; gap: 0 .65em; padding: 9px 0 26px; font-size: 15px; line-height: 1.35; }
.tile figcaption .t { color: var(--ink); }
.work-strip .tile figcaption { padding-bottom: 8px; }

.svc-card { display: block; }
.svc-card .media { aspect-ratio: 4/3; overflow: hidden; background: var(--ph, #eee); }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover img { transform: scale(1.05); }
.svc-card h3 { margin-top: 14px; font-size: clamp(1.15rem, 1.5vw, 1.45rem); letter-spacing: -.02em; line-height: 1.15; }
.svc-card p { margin-top: 6px; color: var(--mute); font-size: 15px; max-width: 38ch; }

/* ---- home ---------------------------------------------------------------- */
.hero { padding: calc(var(--hd) + clamp(36px, 8vh, 96px)) 0 clamp(48px, 8vh, 96px); overflow: hidden; }
.hero-top { padding: 0 var(--pad); }
.hero-eyebrow { display: flex; align-items: center; margin-bottom: clamp(18px, 3vh, 32px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb, 134,186,127), .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(var(--accent-color-rgb, 134,186,127), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb, 134,186,127), 0); } }
.hero-title { font-size: clamp(2.8rem, 8.2vw, 9.4rem); max-width: 14ch; }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: clamp(22px, 3.6vh, 44px); }
.hero-reel { --reel-h: clamp(230px, 46vh, 540px); margin-top: clamp(28px, 6vh, 72px); padding-left: var(--pad); overflow: hidden; }
.reel-track { display: flex; gap: 8px; width: max-content; will-change: transform; padding-right: var(--pad); }
.reel-item { flex: none; display: flex; flex-direction: column; height: var(--reel-h); width: calc((var(--reel-h) - 28px) * var(--ar)); }
.reel-item .media { flex: 1; overflow: hidden; background: var(--ph, #eee); }
.reel-item img { width: 100%; height: 100%; object-fit: cover; }
.reel-item .cap { font-size: 12px; color: var(--mute); padding-top: 8px; height: 28px; }
.js .reel-item { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 350ms); }
.js .is-ready .reel-item, .js-late .reel-item { opacity: 1; transform: none; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(10px, 1.8vw, 22px) 0; white-space: nowrap; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee span { font-size: clamp(2rem, 6.2vw, 6.5rem); letter-spacing: -.045em; line-height: 1.1; padding: 0 .25em; }
.marquee span:nth-of-type(even) { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.marquee i { width: .14em; height: .14em; border-radius: 50%; background: var(--ink); flex: none; font-size: clamp(2rem, 6.2vw, 6.5rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

.home-work { padding-top: clamp(48px, 6vw, 96px); }
.svc-group { margin-top: clamp(28px, 4vw, 56px); }
.svc-group-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.svc-list { border-top: 1px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: 56px 1.3fr 1.4fr 32px; gap: 16px; align-items: baseline; padding: clamp(14px, 1.6vw, 24px) 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease), opacity .4s; }
.svc-row .n { font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.svc-row .t { font-size: clamp(1.45rem, 3.1vw, 3.2rem); letter-spacing: -.04em; line-height: 1.05; }
.svc-row .d { color: var(--mute); font-size: 15px; max-width: 42ch; }
.svc-row .go { justify-self: end; transition: transform .5s var(--ease); }
.svc-row:hover { padding-left: clamp(8px, 1.6vw, 28px); }
.svc-row:hover .go { transform: translateX(6px); }
.svc-list:hover .svc-row:not(:hover) { opacity: .35; }
.float-preview { position: fixed; left: 0; top: 0; width: min(24vw, 340px); aspect-ratio: 4/5; z-index: 60; pointer-events: none; opacity: 0; transform: translate3d(0,0,0) scale(.88); transition: opacity .35s, scale .5s var(--ease); overflow: hidden; background: var(--panel); }
.float-preview.is-on { opacity: 1; }
.float-preview img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stats li { padding: 22px 16px 0 0; }
.stats .num { display: block; font-size: clamp(3.2rem, 9vw, 9rem); line-height: 1; letter-spacing: -.06em; }
.stats .lab { display: block; margin-top: 10px; color: var(--mute); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pad); }
.steps li { border-top: 1px solid var(--ink); padding-top: 16px; }
.steps .n { font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.steps h3 { font-size: clamp(1.3rem, 1.9vw, 1.8rem); letter-spacing: -.03em; margin: 28px 0 10px; }
.steps p { color: #555; font-size: 15.5px; line-height: 1.6; }
.ind-list { margin-top: 20px; font-size: clamp(1.5rem, 3.4vw, 3.4rem); line-height: 1.2; letter-spacing: -.04em; }
.ind-list span { color: var(--ink); transition: color .3s; }
.ind-list span + span::before { content: "/"; margin: 0 .35em; color: var(--soft); }
.ind-list:hover span:not(:hover) { color: var(--soft); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; border-top: 1px solid var(--line); }
.logo-wall li { display: grid; place-items: center; height: 108px; border-bottom: 1px solid var(--line); }
.logo-wall img { height: auto; max-height: 46px; width: auto; max-width: 124px; filter: grayscale(1) contrast(1.1); opacity: .55; transition: opacity .4s, filter .4s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px) var(--pad); }
.quote { margin: 0; padding-top: 18px; border-top: 1px solid var(--ink); }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.2rem, 1.75vw, 1.7rem); line-height: 1.3; letter-spacing: -.025em; }
.quote figcaption { margin-top: 16px; font-size: 14px; color: var(--mute); display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--ink); font-weight: 500; }

/* ---- 360 viewers (always rotating, draggable) ---------------------------- */
.spin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 8px; }
.spin-auto { position: relative; overflow: hidden; background: #fff; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spin-auto:active { cursor: grabbing; }
.spin-auto img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(calc(var(--fit, 1) * var(--z, 1))); transform-origin: center; }
.spin-auto.is-zoomed { cursor: move; touch-action: none; }
.spin-auto:fullscreen { background: #fff; }
.spin-auto:fullscreen img { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); }
.spin-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); }
.spin-ctrl button { flex: 1 1 auto; min-width: 44px; border: 0; border-right: 1px solid var(--line); background: transparent; padding: 11px 10px; font-size: 13px; letter-spacing: .02em; transition: background .25s, color .25s; }
.spin-ctrl button:last-child { border-right: 0; }
.spin-ctrl button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.spin-ctrl button:disabled { color: var(--soft); cursor: default; }
.spin-auto:focus-visible { outline-offset: -3px; }
.spin-frame { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.ph-spin .media, .spin-frame { padding-bottom: 0; }
.ph-spin .media { background: #fff; aspect-ratio: 16 / 8; border-bottom: 1px solid var(--line); }
.ph-spin .media img { height: 100%; }
.spin p { margin-top: 12px; font-size: 15px; color: var(--mute); } .spin strong { color: var(--ink); font-weight: 500; margin-right: 6px; }
.ph-video .media video { width: 100%; height: 114%; object-fit: cover; display: block; will-change: transform; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q { font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: -.02em; line-height: 1.25; font-weight: 500; }
.pm { position: relative; flex: none; width: 18px; height: 18px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq-item[open] .pm::after { transform: rotate(0); }
.faq-item .a { padding: 0 0 26px; color: var(--text); max-width: 64ch; line-height: 1.7; }
.faq-item .a p + p { margin-top: 1em; }
.faq-item .a ul { margin-top: .8em; } .faq-item .a li { padding-left: 1.3em; position: relative; margin-top: .4em; } .faq-item .a li::before { content: "–"; position: absolute; left: 0; color: var(--mute); }
.faq-item[open] .a { animation: faqIn .6s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
.faq-list { max-width: none; }

/* ---- work page ----------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-btn { border: 1px solid var(--line); border-radius: 0; padding: 9px 18px; background: #fff; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chip-btn sup { font-size: 10px; color: var(--mute); margin-left: 3px; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-btn.is-active sup { color: #aaa; }
.masonry { column-count: 4; column-gap: 8px; }
.masonry .tile { break-inside: avoid; display: inline-block; width: 100%; vertical-align: top; transition: opacity .4s; }
.masonry .tile[hidden] { display: none; }
.masonry .tile.is-out { opacity: 0; }
.work-all { padding-top: 0; }

/* ---- journal ------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 8px; align-items: start; }
.post-card.is-big { grid-column: span 2; }
.post-card[hidden] { display: none; }
.post-card .media { aspect-ratio: 3/2; overflow: hidden; background: var(--panel); }
.post-card.is-big .media { aspect-ratio: 16/9; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card .meta { display: flex; gap: 14px; margin: 14px 0 6px; font-size: 13px; color: var(--mute); }
.post-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.15; letter-spacing: -.03em; }
.post-card.is-big h3 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.post-card .sum { margin-top: 8px; color: var(--mute); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; }
.post-title { font-size: clamp(2.2rem, 5.2vw, 5.6rem) !important; max-width: 20ch !important; }
.post-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); padding: clamp(40px, 6vw, 96px) var(--pad); }
.toc { grid-column: 1 / 4; position: sticky; top: calc(var(--hd) + 28px); align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc ol { margin-top: 14px; border-left: 1px solid var(--line); }
.toc li + li { margin-top: 2px; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--mute); line-height: 1.35; transition: color .25s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.post-body { grid-column: 5 / 12; }
.post-layout:not(:has(.toc)) .post-body { grid-column: 4 / 11; }
.post-body h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; color: var(--ink); margin-top: 2em; }
.post-body h2:first-child { margin-top: 0; }
.post-body img { height: auto; }
.post-cta { margin: 0 var(--pad); padding: clamp(32px, 5vw, 72px); background: var(--panel); display: grid; gap: 14px; justify-items: start; }
.post-cta p:not(.eyebrow) { color: #555; max-width: 52ch; }
.post-cta .ph-actions { margin-top: 10px; }
.post-foot { padding: clamp(32px, 4vw, 56px) var(--pad); display: grid; gap: 28px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--mute); font-size: 14px; }
.share { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; }
.share a, .share button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); } .share a:hover, .share button:hover { text-decoration-color: var(--ink); }
.author { display: flex; gap: 16px; align-items: flex-start; font-size: 14.5px; color: #555; max-width: 60ch; padding-top: 24px; border-top: 1px solid var(--line); }
.author strong { color: var(--ink); font-weight: 500; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; margin: clamp(24px, 4vw, 56px) var(--pad) 0; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 28px 0; } .post-nav .pn-next { text-align: right; padding-left: 24px; } .post-nav .pn-prev { padding-right: 24px; }
.post-nav strong { display: block; margin-top: 8px; font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; transition: opacity .3s; }
.post-nav a:hover strong { opacity: .5; }

/* ---- contact ------------------------------------------------------------- */
.contact-card { display: grid; gap: 8px; font-size: 1.05rem; line-height: 1.5; }
.contact-card .eyebrow { margin-top: 22px; } .contact-card .eyebrow:first-child { margin-top: 0; }
.contact-card a { background: linear-gradient(currentColor, currentColor) 0 100%/100% 1px no-repeat; }
.contact-form { display: grid; gap: 26px; max-width: 720px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--soft); padding: 10px 0 12px; font: inherit; font-size: 1.15rem; background: transparent; border-radius: 0; outline: none; transition: border-color .3s; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 0; padding: 9px 18px; font-size: 14px; transition: all .3s; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.form-note { min-height: 1.5em; font-size: 15px; }
.form-note.ok { color: var(--accent-ink); } .form-note.err { color: #c0392b; }
.map-frame { aspect-ratio: 21/8; background: var(--panel); overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #fff; padding: 0 var(--pad) 24px; overflow: hidden; margin-top: clamp(32px, 6vw, 96px); }
.ft-cta { padding: clamp(72px, 11vw, 168px) 0 clamp(40px, 6vw, 88px); border-bottom: 1px solid #242424; }
.ft-cta-title { font-size: clamp(2rem, 5.6vw, 6rem); line-height: 1; letter-spacing: -.045em; max-width: 18ch; margin: 20px 0 clamp(24px, 3.4vw, 48px); overflow-wrap: break-word; }
.ft-cta-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.ft-mail { font-size: clamp(1.3rem, 3.6vw, 3.6rem); letter-spacing: -.04em; display: inline-block; background: linear-gradient(#fff, #fff) 0 100%/100% 1px no-repeat; padding-bottom: 6px; transition: background-size .6s var(--ease); }
.ft-mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--pad); padding: clamp(40px, 5vw, 72px) 0; font-size: 15px; line-height: 1.55; color: #cfcfcf; }
.ft-col .eyebrow { margin-bottom: 16px; }
.ft-col li + li { margin-top: 6px; }
.ft-col a { color: #cfcfcf; transition: color .25s; } .ft-col a:hover { color: #fff; }
.ft-studio address { margin-bottom: 14px; } .ft-studio p { margin-bottom: 12px; }
.ft-follow { margin-top: 28px; }
.ft-word { font-size: clamp(2.4rem, 9.4vw, 11rem); line-height: .9; letter-spacing: -.055em; font-weight: 500; color: #1b1b1b; white-space: nowrap; margin: 6px 0 clamp(14px, 2vw, 28px); user-select: none; overflow: hidden; }
.m-br { display: none; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: center; font-size: 13px; color: #9a9a9a; border-top: 1px solid #242424; padding-top: 18px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; justify-content: flex-end; }
.ft-legal a:hover { color: #fff; }

/* ---- cursor / lightbox --------------------------------------------------- */
.cursor { display: none; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; }
.cursor-label { font-size: 12px; letter-spacing: .02em; color: #fff; opacity: 0; transition: opacity .2s; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: grid; } .has-cursor a, .has-cursor button { cursor: pointer; } }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); mix-blend-mode: normal; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #fff; color: var(--ink); }
.lb::backdrop { background: #fff; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); font-size: 15px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--pad); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: lbImg .6s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.98); } }
.lb-btn { background: none; border: 0; padding: 8px 0; font-size: 15px; }
.lb-btn:hover { color: var(--mute); }
.lb-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 14px var(--pad) 18px; font-size: 14px; color: var(--mute); }
.lb-bottom strong { color: var(--ink); font-weight: 500; margin-right: 8px; }
.lb-nav { display: flex; gap: 24px; flex: none; }

/* ---- page transitions (cross-document view transitions) ------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .55s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .hd-nav { gap: 20px; font-size: 14.5px; }
  .masonry { column-count: 3; }
  .menu-cols { max-width: 100%; } .menu-preview { display: none; }
}
@media (max-width: 960px) {
  :root { --hd: 58px; }
  .hd-nav { display: none; }
  .hd-toggle { display: inline-flex; }
  .hd-logo img { height: 30px; }
  .split { display: block; }
  .split-l { margin-bottom: 20px; position: static !important; }
  .intro-block .prose { width: 100%; }
  .grid-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .spin-grid { grid-template-columns: 1fr; }
  .grid-12 .tile { grid-column: span 6; } .grid-12 .tile-s6 { grid-column: span 12; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { display: block; } .toc { position: static; margin-bottom: 40px; max-height: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  .svc-row { grid-template-columns: 40px 1fr 28px; } .svc-row .d { display: none; }
  .ph-img .media { aspect-ratio: 4/3; }
  .map-frame { aspect-ratio: 4/3; }
  .menu-cols { grid-template-columns: 1fr; gap: 28px; }
  .post-card.is-big { grid-column: span 2; }
}
@media (max-width: 600px) {
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .post-card.is-big { grid-column: auto; }
  .grid-12 .tile { grid-column: span 12; } .grid-12 .tile-s3 { grid-column: span 6; }
  .hero-title { font-size: clamp(2.5rem, 12.4vw, 4.4rem); }
  .page-hero .display { font-size: clamp(2.3rem, 11vw, 4rem); }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-word { font-size: 12.4vw; } .ft-links { margin-left: 0; justify-content: flex-start; }
  .hero-meta, .ph-meta { align-items: flex-start; }
  .btn { padding: 13px 18px; }
  .post-nav { grid-template-columns: 1fr; } .post-nav .pn-next { text-align: left; padding-left: 0; border-top: 1px solid var(--line); }
  .stats .num { font-size: 4rem; }
}
/* Reduced motion: keep gentle fades, counters, the typewriter and the logo/testimonial reels (each has a Pause button),
   but drop large movement: slides, scaling, blur, parallax, page transitions. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .w > span, .tw-c, .js [data-reveal]:not([data-reveal="img"]), .js [data-reveal="img"] .media img { transform: none !important; filter: none !important; }
  .js [data-reveal="img"] .media { clip-path: none !important; }
  .js [data-reveal="img"] .media { opacity: 0; transition: opacity .8s ease; }
  .js [data-reveal="img"].is-in .media { opacity: 1; }
  .btn::before { transition: none; }
  .hd-mark, .svc-card img, .post-card img, .tile .media img { transition: none !important; }
}
.reel-pause { background: none; border: 1px solid var(--line); border-radius: 0; padding: 6px 14px; font-size: 13px; color: var(--mute); transition: color .25s, border-color .25s; }
.reel-pause:hover { color: var(--ink); border-color: var(--ink); }
.is-paused .rl-track { animation-play-state: paused !important; }
@media print { .site-header, .menu, .cursor, .site-footer .ft-word { display: none !important; } .page-hero { padding-top: 0; } }

/* ---- typewriter headline ------------------------------------------------- */
.js [data-type] { visibility: hidden; }
.js [data-type].is-typing, .js [data-type].is-typed { visibility: visible; }
.tw-w { display: inline-block; white-space: nowrap; }
.tw-c { opacity: 0; display: inline-block; transform: translateY(.18em); filter: blur(6px); transition: opacity .35s ease, transform .5s var(--ease), filter .45s ease; }
.tw-c.on { opacity: 1; transform: none; filter: none; }
.tw-caret { display: inline-block; width: .06em; height: .82em; margin-left: .06em; background: var(--accent); vertical-align: -.06em; animation: caret 0.8s steps(1) infinite; }
.tw-caret.done { animation: caretOut .6s .5s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caretOut { to { opacity: 0; } }
.js-late [data-type] { visibility: visible !important; }
.js-late .tw-c { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ---- continuous reels: client logos + testimonial cards ------------------ */
.logo-reel, .quote-reel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rl-track { display: flex; width: max-content; animation: reel 60s linear infinite; }
.quote-reel .rl-track { animation-duration: 90s; }
.logo-reel:hover .rl-track, .quote-reel:hover .rl-track, .quote-reel:focus-within .rl-track { animation-play-state: paused; }
.rl-group { display: flex; flex: none; align-items: center; }
@keyframes reel { to { transform: translateX(-50%); } }
.logo-reel { border-block: 1px solid var(--line); }
.logo-reel li { display: grid; place-items: center; height: clamp(150px, 16vw, 230px); padding: 0 clamp(36px, 5vw, 88px); }
.logo-reel img { height: auto; width: auto; max-height: clamp(84px, 9vw, 140px); max-width: clamp(170px, 18vw, 300px); object-fit: contain; }
.quote-reel { padding: 6px 0 14px; }
.quote-reel .rl-group { align-items: stretch; gap: 14px; padding-right: 14px; }
.quote-reel .quote { width: min(430px, 82vw); flex: none; margin: 0; padding: 30px 30px 26px; border: 1px solid var(--line); border-radius: 0; background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; white-space: normal; transition: border-color .4s, transform .6s var(--ease), box-shadow .6s; }
.quote-reel .quote:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.25); }
.quote-reel .quote p { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.45; letter-spacing: -.015em; }

/* ---- auto-rotating 360 tiles on the Work page ---------------------------- */
.tile-spin .media { background: #fff; cursor: grab; }
.tile-spin .media img { object-fit: contain; }
.spin-badge { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 11px; letter-spacing: .08em; padding: 6px 10px; border-radius: 0; background: var(--ink); color: #fff; pointer-events: none; }

/* ---- original 360 players (WebRotate): iframes keep multi-row drag, zoom and hotspot pop-ups ---- */
.player-frame { position: relative; aspect-ratio: var(--ar, 4 / 3); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.player-frame iframe, .ph-player iframe, .tile-360 iframe, .lb-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ph-player .media { position: relative; height: 520px; aspect-ratio: auto; background: #fff; border-bottom: 1px solid var(--line); }
.tile-360 .media { background: #fff; }
.tile-360 .media iframe { pointer-events: auto; }
.tile-360 .media::after { display: none; }
.tile-open { position: absolute; inset: 0; z-index: 3; }
.lb-player .lb-stage { padding-bottom: 8px; }
.lb-player iframe { width: min(100%, 760px); height: min(100%, 640px); border: 1px solid var(--line); }
@media (max-width: 760px) { .ph-player .media { height: 520px; } }
.spin-grid .spin { width: 100%; max-width: 640px; justify-self: center; }
@media (max-width: 760px) { .masonry .tile-360 { display: block; column-span: all; max-width: 460px; margin: 0 auto 8px; } }
/* player full screen: the iframe itself fills the screen (native full screen, or this overlay where the browser refuses) */
iframe.is-fs { position: fixed !important; inset: 0; width: 100vw !important; height: 100dvh !important; max-width: none !important; z-index: 1000; background: #fff; border: 0; pointer-events: auto; }
.has-player-fs { overflow: hidden; }

/* lightbox: keep the photo contained between the top bar and the caption, with Prev/Next always visible */
.lb { overflow: hidden; }
.lb[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-stage { overflow: hidden; }
.lb-stage img { position: absolute; inset: 0 var(--pad); width: calc(100% - 2 * var(--pad)); height: 100%; max-width: none; max-height: none; object-fit: contain; }
.lb-bottom { position: relative; z-index: 2; background: #fff; align-items: center; }
.lb-bottom p { margin: 0; min-width: 0; }
.lb-bottom p { display: none; }
.lb-bottom { justify-content: flex-end; }
