/* lock.css: only what's special about the Lock page.
   The nav, b&w colors, bottom links, footer and lightbox come from project.css, shared with every page.
   Layout: the word LOCK splits open like a bolt to reveal the video; oversized type and full-bleed bands. */
:root {
  /* follow project.css colors, so b&w switches this page too */
  --paper: var(--bg); --ink: var(--fg); --rule: var(--fg); --red: #d0251c;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
:root[data-theme="dark"] .band.dark .tag { color: #666666; }

/* this page runs edge to edge, so undo the shared side padding and centered column */
body.lock { padding-left: 0; padding-right: 0; font-size: 18px; line-height: 1.55; }
body.lock > nav { margin-inline: 0; }
body.lock > footer { padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
body.lock main { max-width: none; padding: 0; overflow-x: clip; position: relative; }
:where(body.lock) section { margin-top: 0; padding-left: 0; }
:where(body.lock) section p + p { margin-top: 0; }
video { display: block; max-width: 100%; }
.mtitle { display: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* opening: LO | CK split */
.open { position: relative; overflow: hidden; background: var(--paper); display: flex; justify-content: center; }
.open video { width: 56%; height: auto; aspect-ratio: 1280 / 814; object-fit: contain; background: #000; }
.half { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--paper); display: flex; align-items: center; transition: transform 1.1s cubic-bezier(.75, 0, .2, 1), background .3s; }
.half span { font-family: var(--display); font-size: min(17vw, 250px); line-height: .8; letter-spacing: -.01em; padding-inline: 2vw; }
.half.l { left: 0; justify-content: flex-end; }
.half.r { right: 0; justify-content: flex-start; }
.open.apart .half.l { transform: translateX(-56%); }
.open.apart .half.r { transform: translateX(56%); }

.intro { padding-block: 56px 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lede { font-size: clamp(20px, 2vw, 25px); line-height: 1.3; }
.meta { font-size: 15px; display: grid; gap: 0; border-top: 3px solid var(--rule); }
.meta div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.meta dt, .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.band { padding-block: 72px; }
.band.dark { background: var(--ink); color: var(--paper); }
.band.dark .tag { color: #9a9a9a; }
.band.red { background: var(--red); color: #fff; }
.band.red .tag { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.big { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; margin-bottom: 18px; max-width: 30ch; }
.split p:not(.big):not(.tag) { max-width: 62ch; }

.pull { padding-block: 88px 64px; }
.huge { font-family: var(--display); font-size: clamp(42px, 6.5vw, 96px); line-height: .9; max-width: 11ch; }
.after { max-width: 62ch; margin-top: 28px; margin-left: auto; }

/* the two photos: a smaller centered pair with the captions underneath */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.duo figcaption { font-size: 14px; margin-top: 8px; }

.build { padding-block: 72px; }
.build ol { list-style: none; counter-reset: b; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.build li { counter-increment: b; border-top: 3px solid var(--rule); padding-top: 12px; }
.build li::before { content: counter(b, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--red); }
.build h3 { font-family: var(--display); font-weight: normal; font-size: 30px; line-height: 1; margin: 6px 0 10px; }
.build p { font-size: 16px; }

.verbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 18px; }
.verb { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: .85; margin-bottom: 12px; }
.verbs p:not(.verb) { font-size: 17px; max-width: 30ch; }

.circuit { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: start; }
.circuit p:not(.tag) { margin-top: 10px; max-width: 60ch; }
.paths { margin-top: 20px; font-family: var(--mono); font-size: 14px; border-top: 3px solid var(--rule); }
.paths div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.paths dt { color: var(--red); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; padding-top: 2px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.next { border-left: 3px solid var(--red); padding-left: 14px; }
.next b { font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* panels slide the last bit into place; always visible */
.slide.ready { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.slide.ready.from-l:not(.in) { transform: translateX(-6%); }
.slide.ready.from-r:not(.in) { transform: translateX(6%); }

@media (max-width: 820px) {
  .intro, .split, .circuit { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .build ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verbs { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .duo { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 28px; }
  .mtitle { display: block; font-family: var(--display); font-weight: normal; font-size: 22vw; line-height: .85; padding: 12px max(20px, env(safe-area-inset-left, 0px)) 16px; }
  .open video { width: 100%; }
  .open.apart .half.l { transform: translateX(-101%); }
  .open.apart .half.r { transform: translateX(101%); }
}
@media (max-width: 480px) { .build ol { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .slide { transform: none !important; }
}
