/* Photography establishes the scene; native outlines demonstrate the camera and library. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero { display: flex; align-items: center; min-height: min(800px,100svh); padding-block: 128px 96px; }
.hero-content { min-width: 0; }
.hero h1 { font-size: clamp(72px,8vw,120px); }
.hero-description { max-width: 390px; }
.library-story { display: grid; grid-template-columns: .9fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto 56px; }
.scene-example { display: flex; flex-direction: column; height: 520px; min-width: 0; }
.scene-example > img { width: 100%; min-height: 0; flex: 1; object-fit: contain; background: #e9eae5; }
.scene-example figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0 0; font-size: 13px; color: var(--muted); }
.scene-example button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--carbon); font-size: 14px; white-space: nowrap; }
.scene-example button:hover { text-decoration: underline; text-underline-offset: 4px; }
.library-preview { display: flex; flex-direction: column; height: 520px; width: 100%; min-width: 0; padding: 24px; color: var(--paper); background: var(--carbon); }
.outline-heading { display: flex; justify-content: space-between; gap: 24px; color: #bdbdbd; font-size: 12px; padding-bottom: 14px; border-bottom: 1px solid #ffffff28; }
.outline-heading > span:last-child { font-variant-numeric: tabular-nums; }
.pose-preview-art { position: relative; flex: 1; min-height: 0; }
.pose-preview-art img { width: 100%; height: 100%; object-fit: contain; }
.preview-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; }
.preview-footer > div:first-child { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.pose-code { font: 400 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.preview-footer .pose-code { color: #aaa; }
.preview-controls { display: flex; gap: 4px; }
.preview-controls button { border: 0; background: transparent; color: #f5f5f5; min-width: 44px; min-height: 44px; font-size: 20px; border-radius: 4px; transition: background .2s; }
.preview-controls button:hover { background: #ffffff12; }
.preview-controls .motion-toggle { font-size: 16px; }
.guide-demo { --outline-opacity: .75; }
.demo-viewfinder { background: #151515; }
.demo-viewfinder .scene-photo, .demo-viewfinder .camera-outline { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-viewfinder .scene-photo { opacity: 0; object-fit: cover; filter: brightness(.72); transition: opacity .3s; transform: none !important; }
.demo-viewfinder .camera-outline { opacity: var(--outline-opacity); object-fit: contain; padding: 16px 8px 8px; transform: none !important; transition: opacity .25s; }
.guide-demo.scene-on .scene-photo { opacity: 1; }
.guide-demo.outline-off .camera-outline { opacity: 0; }
.demo-grid { opacity: .15; }
.guide-demo[data-stage='1'] .demo-grid { opacity: .4; }
.demo-top { gap: 20px; }
.demo-top > span:first-child { min-width: 0; max-width: 80%; }
.demo-top > span:last-child { flex-shrink: 0; }
.demo-bottom > span:first-child { font-size: 18px; }
.camera-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 4px 12px 12px; }
.camera-switches { display: flex; gap: 8px; flex-wrap: wrap; }
.camera-switches button { min-height: 44px; padding: 8px 10px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #bdbdbd; font-size: 13px; }
.camera-switches button[aria-pressed='true'] { color: #fff; border-bottom-color: #fff; }
.timer-button { flex-shrink: 0; width: 58px; height: 58px; border: 2px solid #f5f5f5; border-radius: 50%; padding: 5px; background: transparent; }
.timer-button > span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #f5f5f5; transition: border-radius .2s, transform .2s; }
.timer-button:hover > span { transform: scale(.92); }
.timer-button.counting > span { width: 55%; height: 55%; margin: 22.5%; border-radius: 3px; }
.timer-label { color: #bdbdbd; font: 400 12px/1.6 ui-monospace, SFMono-Regular, monospace; }
.countdown-number { position: absolute; z-index: 4; inset: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; font: 500 90px/1 var(--display); text-shadow: 0 2px 12px #111; }
.opacity-control { display: flex; align-items: center; gap: 12px; padding: 0 12px 10px; color: #bdbdbd; font-size: 12px; }
.opacity-control label { flex-shrink: 0; }
.opacity-control input { width: 100%; min-width: 40px; min-height: 44px; accent-color: #f5f5f5; }
.opacity-control output { min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.demo-label { line-height: 1.7; min-height: 32px; }
.library-jump { margin-top: 24px; border-color: var(--line); }
.library-jump:hover { border-color: var(--carbon); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.pose-filters { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pose-filters button { min-height: 44px; padding: 8px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 14px; color: var(--muted); }
.pose-filters button[aria-pressed='true'] { color: var(--carbon); border-bottom-color: var(--carbon); }
.pose-search { max-width: 240px; width: 100%; }
.pose-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--carbon); font: inherit; font-size: 14px; }
.pose-search input::placeholder { color: var(--muted); }
.pose-search input:focus-visible { outline: 2px solid var(--carbon); outline-offset: 2px; }
.pose-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 22px; }
.pose-card { min-width: 0; border: 0; padding: 0; background: transparent; text-align: left; }
.pose-thumb { display: block; aspect-ratio: 2/3; background: #111; overflow: hidden; border: 2px solid transparent; border-radius: 4px; transition: border-color .2s; }
.pose-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: opacity .2s; }
.pose-card:hover .pose-thumb img { opacity: .8; }
.pose-card.selected .pose-thumb { border-color: #777; }
.pose-card.selected .pose-card-label > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.pose-card-label { display: block; padding-top: 12px; }
.pose-card-label > span:first-child { display: block; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pose-card-label .pose-code { display: block; margin-top: 4px; }
.library-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.library-count { font-size: 13px; color: var(--muted); }
.expand-library { min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--carbon); background: transparent; font-size: 14px; }
.expand-library[hidden], .library-empty[hidden] { display: none; }
.library-empty { width: 100%; font-size: 15px; color: var(--muted); }
.loading-copy { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(64px,8vw,90px); }
  .pose-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .hero { display: flex; align-items: flex-end; min-height: min(880px,100svh); padding: 110px var(--gutter) 84px; }
  .hero-content { width: 100%; max-width: none; }
  .hero h1 { font-size: clamp(54px,15.2vw,94px); }
  .hero-description { max-width: 340px; font-size: 15px; }
  .hero-content:before { inset-block-start: -24px; }
  .library-story { grid-template-columns: .8fr 1.2fr; gap: 12px; margin-bottom: 36px; }
  .scene-example, .library-preview { height: 340px; }
  .scene-example figcaption { padding-top: 8px; }
  .scene-example figcaption > span { display: none; }
  .scene-example button { font-size: 13px; white-space: normal; text-align: left; }
  .library-preview { padding: 12px; }
  .outline-heading { font-size: 11px; gap: 8px; padding-bottom: 8px; }
  .preview-footer { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; }
  .preview-footer > div:first-child { font-size: 12px; gap: 6px; flex-wrap: wrap; }
  .preview-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
  .preview-controls button { min-width: 0; }
  .guide-demo { max-width: 420px; }
  .demo-bottom > span:first-child { font-size: 17px; }
  .camera-controls { padding-inline: 10px; }
  .opacity-control { padding-inline: 10px; gap: 8px; }
  .opacity-control label { max-width: 100px; white-space: normal; }
  .library-toolbar { align-items: start; flex-direction: column; gap: 18px; }
  .pose-filters { width: 100%; gap: 4px 18px; }
  .pose-search { max-width: none; }
  .pose-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 12px; }
  .pose-thumb img { padding: 4px; }
  .pose-card-label > span:first-child { font-size: 13px; }
  .pose-card-label .pose-code { font-size: 10px; }
  .library-bottom { gap: 10px; }
}
@media (max-width: 360px), (max-height: 650px) and (max-width: 740px) {
  .hero { padding-block: 110px 70px; }
  .hero h1 { font-size: 50px; }
  .hero-promise { font-size: 30px; }
  .hero .eyebrow { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .pose-preview-art img, .camera-outline { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .library-preview, .guide-demo { background: Canvas; }
  .pose-preview-art, .pose-thumb, .demo-viewfinder { forced-color-adjust: none; background: #111; }
  .preview-controls button, .camera-switches button, .pose-filters button, .timer-button { border: 1px solid ButtonText; }
  .preview-controls button, .preview-footer, .outline-heading { color: CanvasText; }
  .timer-button > span { background: ButtonText; }
  .pose-card.selected .pose-thumb { outline: 2px solid Highlight; }
}
