/* Phone motion and flow (2026-11-04). One vocabulary for every page: pictures open from a short mask,
   sideways runs snap and pull focus, pages crossfade. JS adds the classes, so no-JS shows everything. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* hero: the wall drifts slower than the page */
.hb-wall { transform: translate3d(0, var(--py, 0px), 0); }

/* big banner titles break to two lines on phones only */
.pf-br { display: none; }

@media (max-width: 860px) {
  a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

  .m-rv { clip-path: inset(14% 0 0 0); opacity: 0; transform: translateY(16px); transition: clip-path .8s cubic-bezier(.16,1,.3,1), opacity .35s linear, transform .8s cubic-bezier(.16,1,.3,1); }
  .m-rv.in { clip-path: inset(0); opacity: 1; transform: none; }
  .photo-grid button.m-rv:nth-child(even) { transition-delay: .06s; }

  /* homepage pictures use the same reveal, no stagger, so normal scrolling never shows half-open blocks */
  .ft-f.rv { clip-path: inset(14% 0 0 0); opacity: 0; transform: translateY(16px); transition: clip-path .8s cubic-bezier(.16,1,.3,1), opacity .35s linear, transform .8s cubic-bezier(.16,1,.3,1); transition-delay: 0s !important; }
  .ft-f.rv.in { clip-path: inset(0); opacity: 1; transform: none; }

  /* sideways runs: one frame at a time */
  .pf-scroll, .run-scroll { scroll-snap-type: x mandatory; scroll-padding-inline: var(--sp-edge, 20px); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .pf-i, .run-i { transform-origin: 50% 50%; will-change: transform, opacity; }
  .st-row { overscroll-behavior-x: contain; }

  /* banner title: two lines, bigger, one letter over the first frame */
  .pf-br { display: inline; }
  .pf-t { font-size: 21vw; line-height: .9; }
  .pf-open { margin-right: -7vw; }
  .run-title { margin-right: 3vw; }

  .hb-t { font-size: 13.2vw !important; }
}
@media (max-width: 760px) {
  :root { --mast: 64px; }
  /* Home, Filigree: one wide picture, then the rest on one line at one height, all at their native ratio */
  #work .ly-film .ft-f { flex: var(--r) 1 0; aspect-ratio: auto; }   /* the picture sets the height, so a frame can never stand taller than it */
  #work .ly-film .ft-f:first-child { flex: 1 1 100%; }
  .mast .mast-in { height: 64px; }
  /* same Menu button on every page */
  .mast .menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
  .mast .menu-btn i { display: block; width: 18px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  /* wedding row: no fade mask, it stops the row repainting when the field changes */
  .anc { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .m-rv, .ft-f.rv { clip-path: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .pf-i, .run-i { will-change: auto; }
}

/* Filigree banner on phones: sticks while scrolling carries the frames across */
@media (max-width: 860px) {
  .pf.pf-sticky { overflow: visible; }
  .pf-sticky .pf-scroll { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; scroll-snap-type: none; }
  .pf-sticky .pf-track { height: 100%; align-items: center; padding: calc(var(--nav-h, 64px) + 8px) var(--sp-edge, 20px) 24px; will-change: transform; }
  .pf-sticky .pf-i { height: min(74svh, 112vw); }
  .pf-sticky .pf-i.s { height: min(52svh, 80vw); align-self: center; }
  .pf-sticky .pf-i.st { margin-bottom: 16svh; }
  .pf-sticky .pf-i.sb { margin-top: 16svh; }
  .pf-sticky .pf-go { align-self: center; margin-left: 8vw; margin-right: 4vw; }
}

/* Orlando landing page: same type and rows as Work, one short paragraph per section */
.lp-h1 { max-width: 11em; font-size: clamp(52px, 8.4vw, 150px) !important; line-height: .94 !important; letter-spacing: -0.04em !important; text-wrap: balance; }
.lp-lede { grid-column: 1 / 9 !important; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.28; letter-spacing: -0.018em; color: inherit; }
.lp-body { margin-top: clamp(48px, 7vw, 110px); }
.lp-t { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-gap); padding: 0 var(--sp-edge); margin-bottom: clamp(16px, 2vw, 28px); align-items: baseline; }
.lp-h { grid-column: 1 / 5; margin: 0; font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.028em; }
.lp-t p { grid-column: 5 / 12; margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; max-width: 44em; }
.lp a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.lp .st-f a { text-decoration: none; }
.lp-sec + .lp-sec { margin-top: clamp(64px, 8vw, 130px); }
.lp-facts { padding: 0 var(--sp-edge); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-gap); row-gap: 12px; }
.lp-facts .lp-h { grid-row: 1 / 3; }
.lp-facts p { grid-column: 5 / 12; margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; max-width: 44em; }
.colophon a, .foot a { color: inherit; text-decoration: none; }
@media (max-width: 860px) { .foot a, .colophon a { display: inline-block; padding: 15px 0; margin: -15px 0; } }
.colophon a:hover, .foot a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .lp-h1 { font-size: 13.4vw !important; }
  .lp-lede { grid-column: 1 / -1 !important; }
  .lp-t, .lp-facts { display: block; }
  .lp-t p, .lp-facts p { margin-top: 10px; }
}

/* Photography chapters: the page takes each chapter's colour; every chapter moves its own way. Pictures keep their shape. */
html.ph-live .ph-world { background: var(--f, #14110E); color: #F2EEE6; transition: background-color .9s cubic-bezier(.16,1,.3,1); }
html.ph-on .nav, html.ph-on .nav.scrolled { --white: #F2EEE6; background: var(--f, #14110E); color: #F2EEE6; transition: background-color .9s cubic-bezier(.16,1,.3,1); }
html.ph-on.run-on .nav, html.ph-on.run-on .nav.scrolled { background: transparent; }
.ph-scene { position: relative; }
.ph-t { margin: 0; font-weight: 500; font-size: clamp(50px, 9.6vw, 190px); line-height: .92; letter-spacing: -0.04em; color: #F2EEE6; font-variant-ligatures: none; text-wrap: balance; }
.ph-i { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ph-i img { display: block; width: auto; height: 100%; max-width: none; }
.ph-i:focus-visible { outline: 2px solid #F2EEE6; outline-offset: 3px; }

/* drift: rows slide against each other as the page scrolls */
.ph-drift { padding: clamp(70px, 9vw, 150px) 0; overflow: clip; }
.ph-drift .ph-t { padding: 0 var(--edge, 56px); margin-bottom: clamp(20px, 3vw, 44px); }
/* every other chapter sets its title flush right */
.ph-drift:nth-of-type(even) .ph-t { text-align: right; }
.ph-row { display: flex; gap: clamp(8px, 1vw, 16px); width: max-content; padding: 0 var(--edge, 56px); will-change: transform; }
.ph-row + .ph-row { margin-top: clamp(8px, 1vw, 16px); }
.ph-row .ph-i { flex: none; height: clamp(190px, 27vw, 480px); }
.ph-row.one .ph-i { height: clamp(250px, 36vw, 640px); }

/* deck and dissolve: the section holds still while pictures arrive */
.ph-deck { height: calc(100svh + (var(--n) - 1) * 42svh); }
.ph-dissolve { height: calc(100svh + (var(--n) - 1) * 56svh); }
.ph-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ph-stage .ph-t { position: absolute; z-index: 40; left: var(--edge, 56px); bottom: clamp(20px, 3vw, 44px); max-width: 7em; pointer-events: none; mix-blend-mode: normal; }
.ph-pile { position: absolute; inset: calc(var(--nav-h, 64px) + 6px) 0 clamp(14px, 2vw, 28px); }
.ph-pile .ph-i { position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; aspect-ratio: auto; display: flex; align-items: center; will-change: transform, opacity; }
.ph-pile .ph-i { width: 0; justify-content: center; }
.ph-pile .ph-i img { height: 100%; flex: none; box-shadow: 0 10px 40px rgba(0,0,0,.28); }
.ph-deck .ph-pile { left: 22%; }
.ph-dissolve .ph-pile .ph-i img { box-shadow: none; }

/* pan: Crater Lake goes by slowly */
.ph-pan { padding: 0 !important; }
.ph-pan .panos { position: absolute; top: calc(var(--nav-h, 64px) + 6px); bottom: 24px; left: 0; display: flex !important; gap: 14px; width: max-content !important; max-width: none !important; padding: 0 var(--edge, 56px); will-change: transform; }
.ph-pan .pano { flex: none; height: 100%; width: auto !important; aspect-ratio: auto !important; margin: 0 !important; padding: 0; overflow: visible; background: none; }
.ph-pan .pano img { position: static !important; display: block; height: 100% !important; width: auto !important; max-width: none !important; object-fit: contain; }
.ph-pan .pano::after, .ph-pan .pano::before { display: none !important; }
html.ph-live .ph-world + * { margin-top: 0; }

@media (max-width: 860px) {
  .ph-t { font-size: 14vw; }
  .ph-row .ph-i { height: 44vw; }
  .ph-row.one .ph-i { height: 62vw; }
  .ph-deck .ph-pile { left: 0; }
  .ph-pile { inset: calc(var(--nav-h, 64px) + 6px) 0 auto; height: min(68svh, 118vw); }
  .ph-stage .ph-t { bottom: 22px; left: 20px; right: 20px; max-width: none; font-size: 11.6vw; }
  .ph-pan .panos { top: 24%; bottom: 30%; }
}

/* Portraits, in motion on phones: holds like the Work banner */
@media (max-width: 860px) {
  .por-run.run-sticky { overflow: visible; }
  .run-sticky .run-scroll { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; scroll-snap-type: none; }
  .run-sticky .run-track { height: 100%; min-height: 0; align-items: center; padding: calc(var(--nav-h, 64px) + 8px) var(--sp-edge, 20px) 24px; will-change: transform; }
  .run-sticky .run-i { height: min(74svh, 112vw); }
}
