/* ==========================================================================
   Yuvraj Chawla — "Contact Sheet"
   Warm darkroom paper, film strips, grease pencil, prints that develop.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --paper: #eeeae2;
  --paper-2: #e5dfd3;
  --paper-3: #d9d2c4;
  --ink: #161513;
  --ink-2: #4d4840;
  --muted: #857e72;
  --rule: rgba(22, 21, 19, 0.14);
  --safelight: #d1371c;
  --film: #1a1714;
  --edge: #e2a23a;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(18px, 3.6vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background-color: var(--paper);
  /* static paper tooth — painted once, never animated */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .08 0 0 0 0 .07 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--safelight); color: var(--paper); }
:focus-visible { outline: 2px solid var(--safelight); outline-offset: 3px; }

.display {
  font-family: var(--display);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display em, em.display {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 300;
}
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; }
.muted { color: var(--muted); }
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size 0.5s var(--ease); }
.u:hover { background-size: 0 1px; background-position: 100% 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* ---------- Reveal (IntersectionObserver adds .is-in) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Prints develop: negative → positive, once. */
.dev img { filter: invert(1) grayscale(1) contrast(0.85) brightness(1.05); transition: filter 2.2s var(--ease) 0.15s; }
.dev.is-in img { filter: none; }

/* ---------- Header ---------- */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
}
.mark { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.mark em { font-style: italic; font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1; }
.site-nav { display: flex; gap: clamp(16px, 2.6vw, 34px); align-items: center; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-book { padding: 7px 12px; border: 1px solid var(--ink); border-radius: 99px; }
.nav-book::after { display: none; }
.nav-book:hover { background: var(--ink); color: var(--paper); }

.book-pill {
  position: fixed; right: var(--gutter); bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: var(--ink); color: var(--paper); border-radius: 99px;
  transform: translateY(160%); transition: transform 0.6s var(--ease);
}
.book-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--safelight); box-shadow: 0 0 0 0 rgba(209,55,28,.6); animation: pulse 2.4s infinite; }
.book-pill.show { transform: none; }
.is-book .book-pill { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(209,55,28,0); } 100% { box-shadow: 0 0 0 0 rgba(209,55,28,0); } }

/* ---------- Light table (home hero) ---------- */
.table {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden; display: grid; place-items: center; text-align: center;
  touch-action: pan-y;
}
.table__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 74px;
  display: flex; justify-content: space-between; color: var(--muted); z-index: 1;
}
.table__title {
  position: relative; z-index: 1; pointer-events: none;
  font-size: clamp(76px, 17vw, 300px); line-height: 0.8; display: grid; margin-top: -2vh;
}
.table__title .l1, .table__title .l2 { display: block; animation: rise 1.2s var(--ease) both; }
.table__title .l2 { animation-delay: 0.12s; margin-left: 0.9em; }
.table__sub {
  position: absolute; z-index: 1; left: 50%; top: calc(50% + clamp(120px, 15vw, 250px));
  transform: translateX(-50%); width: min(90vw, 460px);
  font-family: var(--display); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; color: var(--ink-2);
  font-variation-settings: "opsz" 24, "SOFT" 100;
  animation: fade 1.4s var(--ease) 0.4s both;
}
.table__down { position: absolute; bottom: 22px; left: var(--gutter); z-index: 1; color: var(--muted); }
.table__down:hover { color: var(--ink); }
.hint { color: var(--safelight); }

.print {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 2;
  padding: clamp(5px, 0.55vw, 9px); padding-bottom: clamp(5px, 0.55vw, 9px);
  background: #fbf9f4;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 24px -8px rgba(40,30,20,.35);
  transform: translate3d(0,0,0) rotate(var(--r));
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
  animation: drop 0.9s var(--ease) both; animation-delay: calc(0.35s + var(--i) * 0.08s);
  will-change: transform;
}
.print img { pointer-events: none; width: 100%; }
.print.lifted { cursor: grabbing; box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 30px 50px -16px rgba(40,30,20,.45); }
@keyframes drop { from { opacity: 0; translate: 0 -40px; scale: 1.12; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Statement ---------- */
.intro { padding: clamp(110px, 18vh, 220px) var(--gutter); display: grid; grid-template-columns: 1fr 5fr; gap: 24px; }
.intro__text { font-size: clamp(34px, 5.4vw, 92px); line-height: 1.02; max-width: 15.5em; }
.intro__text em { color: var(--ink-2); }

/* ---------- Section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; flex-wrap: wrap-reverse; }
.sec-head h2 { font-size: clamp(54px, 8.5vw, 150px); }

/* ---------- Rolls (contact sheets) ---------- */
.rolls { padding: 0 var(--gutter) clamp(90px, 14vh, 170px); }
.roll {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2.6fr; gap: clamp(20px, 3vw, 48px);
  align-items: center; padding: clamp(28px, 4.5vh, 48px) 0; border-bottom: 1px solid var(--rule);
}
.roll__title { font-size: clamp(42px, 5vw, 86px); margin: 10px 0 8px; transition: font-variation-settings 0.6s var(--ease); }
.roll:hover .roll__title { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-style: italic; }
.roll__tag { font-family: var(--display); font-style: italic; color: var(--ink-2); font-size: 18px; font-variation-settings: "opsz" 18, "SOFT" 100; }
.roll__go { display: inline-flex; gap: 8px; margin-top: 22px; }
.roll__go b { font-weight: 400; transition: transform 0.4s var(--ease); }
.roll:hover .roll__go b { transform: translateX(6px); }
.soon { color: var(--safelight); align-items: center; }
.soon i { width: 7px; height: 7px; border-radius: 50%; background: var(--safelight); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.film {
  --cell: clamp(118px, 12.5vw, 196px);
  position: relative; background: var(--film); color: var(--edge);
  padding: 4px 0; overflow: hidden; border-radius: 2px;
  box-shadow: 0 18px 30px -22px rgba(0,0,0,.6);
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px; z-index: 2;
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--paper-2) 9px 17px);
  mask: linear-gradient(#000, #000); border-radius: 2px;
}
.film::before { top: 7px; } .film::after { bottom: 7px; }
.film__edge { display: flex; justify-content: space-between; padding: 17px 14px 0; font-size: 9px; letter-spacing: 0.18em; opacity: 0.85; white-space: nowrap; gap: 20px; }
.film__edge--b { padding: 0 14px 17px; }
.film__track {
  position: relative; display: flex; gap: 10px; padding: 8px 14px;
  transition: transform 1.2s var(--ease);
}
.roll:hover .film__track { transform: translateX(-28px); }
.film__cell { flex: 0 0 var(--cell); }
.film__no { display: block; font-size: 9px; letter-spacing: 0.14em; margin-bottom: 4px; }
.film__no i { font-style: normal; opacity: 0.6; margin-left: 2px; }
.film__frame { aspect-ratio: 3 / 2; overflow: hidden; background: #2a2622; }
.film__frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.25) saturate(0.85); transition: filter 0.8s var(--ease), transform 1.2s var(--ease); }
.roll:hover .film__frame img { filter: none; }
.film__frame--blank { background: linear-gradient(135deg, #3a2d22, #22190f 60%, #3b2a1a); }
.pencil {
  position: absolute; z-index: 3; pointer-events: none;
  left: calc(14px + var(--pick) * (var(--cell) + 10px) - var(--cell) * 0.16);
  top: 2px; width: calc(var(--cell) * 1.32); height: calc(100% + 4px);
  overflow: visible;
}
.pencil path {
  fill: none; stroke: var(--safelight); stroke-width: 3.2; stroke-linecap: round; opacity: 0.92;
  stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.4s var(--ease) 0.3s;
}
.is-in .pencil path { stroke-dashoffset: 0; }
.roll--soon .film__track { opacity: 0.9; }

/* ---------- Develop feature ---------- */
.develop { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 110px); align-items: center; padding: clamp(40px, 8vh, 100px) var(--gutter) clamp(110px, 18vh, 220px); }
.develop__img { box-shadow: 0 30px 60px -36px rgba(30,20,10,.6); background: #fbf9f4; padding: 10px; }
.develop__text h2 { font-size: clamp(44px, 6vw, 104px); margin: 18px 0 28px; }
.develop__text p:not(.mono) { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 36em; margin-bottom: 26px; }

/* ---------- Sessions ---------- */
.sessions { padding: 0 var(--gutter) clamp(90px, 14vh, 170px); }
.sessions__list { list-style: none; }
.sessions__list li {
  display: grid; grid-template-columns: 70px 1.3fr 1.5fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  transition: background-color 0.5s var(--ease), padding 0.5s var(--ease);
}
.sessions__list li:hover { background: var(--paper-2); padding-left: 14px; padding-right: 14px; }
.sessions__list h3 { font-size: clamp(30px, 3.4vw, 56px); }
.sessions__list p { color: var(--ink-2); max-width: 38em; }
.sessions__list a:hover { color: var(--safelight); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--paper); padding: clamp(80px, 14vh, 150px) var(--gutter) 34px; }
.foot-cta .mono { color: #9b9388; }
.foot-big { display: inline-block; margin-top: 22px; font-size: clamp(50px, 9vw, 168px); line-height: 0.92; max-width: 11em; transition: color 0.4s; }
.foot-big:hover { color: var(--edge); }
.foot-big .dot { display: inline-block; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--safelight); margin-left: 0.08em; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(70px, 12vh, 140px); padding-top: 26px; border-top: 1px solid rgba(238,234,226,.16); }
.foot-grid div { display: flex; flex-direction: column; gap: 6px; }
.foot-grid .muted { color: #8b8378; margin-bottom: 6px; }
.foot-grid a:hover { color: var(--edge); }

/* ---------- Roll page ---------- */
.g-head { padding: 120px var(--gutter) 0; }
.g-meta { display: flex; gap: 28px; color: var(--muted); flex-wrap: wrap; }
.g-meta a { color: var(--ink); }
.g-title { font-size: clamp(72px, 15vw, 270px); line-height: 0.84; margin: clamp(26px, 5vh, 50px) 0 clamp(30px, 5vh, 56px); }
.g-sub { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 4vw, 70px); padding-bottom: clamp(50px, 9vh, 90px); }
.g-tag { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2vw, 30px); font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1; }
.g-intro { font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-2); max-width: 40em; }
.g-cover { padding: 0 var(--gutter); }
.g-cover .frame__img { width: 100%; display: block; }
.g-cover img { width: 100%; max-height: 92vh; object-fit: cover; }
.g-cover figcaption, .frame figcaption { display: flex; gap: 16px; margin-top: 14px; align-items: baseline; }
.g-cover figcaption span:last-child, .frame figcaption span:last-child { font-family: var(--display); font-style: italic; font-size: clamp(15px, 1.15vw, 18px); color: var(--ink-2); font-variation-settings: "opsz" 18, "SOFT" 100; max-width: 46ch; }
.frame figcaption .mono, .g-cover figcaption .mono { color: var(--safelight); }
.g-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 2vw, 32px);
  row-gap: clamp(70px, 14vh, 170px); padding: clamp(90px, 16vh, 180px) var(--gutter);
  align-items: start;
}
.frame.drop { margin-top: clamp(80px, 18vh, 220px); }
.frame__img { display: block; width: 100%; position: relative; cursor: zoom-in; }
.frame__img img { width: 100%; }

.g-next { display: block; padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(90px, 14vh, 160px); border-top: 1px solid var(--rule); }
.g-next__title { display: block; font-size: clamp(60px, 11vw, 200px); margin: 14px 0 40px; transition: font-variation-settings 0.6s var(--ease); }
.g-next:hover .g-next__title { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-style: italic; }
.g-next .film__track { transition: transform 1.4s var(--ease); }
.g-next:hover .film__track { transform: translateX(-40px); }
.g-next .film__frame img { filter: sepia(0.25) saturate(0.85); }

/* ---------- Loupe ---------- */
.loupe {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(22,21,19,.35);
  box-shadow: 0 0 0 6px rgba(251,249,244,.85), 0 18px 40px -10px rgba(0,0,0,.45);
  background-repeat: no-repeat; background-color: var(--paper-2);
  opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.35s var(--ease);
}
.loupe.on { opacity: 1; scale: 1; }
.loupe::after { content: "×2.4"; position: absolute; left: 50%; bottom: -26px; translate: -50% 0; font: 500 10px var(--mono); letter-spacing: .08em; color: var(--ink); background: var(--paper); padding: 2px 6px; border-radius: 99px; }

/* ---------- Viewer ---------- */
.viewer {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh;
  background: var(--paper); color: var(--ink);
  display: none; grid-template-rows: auto 1fr auto auto;
}
.viewer[open] { display: grid; animation: fade 0.45s var(--ease); }
.viewer::backdrop { background: var(--paper); }
.viewer__top, .viewer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--gutter); }
.viewer__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fbf9f4; padding: 8px; box-shadow: 0 30px 60px -30px rgba(30,20,10,.5); transition: opacity 0.35s, transform 0.5s var(--ease); }
.viewer__stage img.swap { opacity: 0; transform: translateY(10px); }
.viewer__hit { position: absolute; top: 0; bottom: 0; width: 35%; cursor: w-resize; }
.viewer__hit.prev { left: 0; } .viewer__hit.next { right: 0; cursor: e-resize; }
.viewer__cap { font-family: var(--display); font-style: italic; font-size: clamp(17px, 1.4vw, 22px); color: var(--ink-2); max-width: 60ch; font-variation-settings: "opsz" 24, "SOFT" 100; }
.viewer__nav { display: flex; gap: 8px; }
.viewer__nav button { width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; font-size: 15px; transition: background 0.3s, color 0.3s; }
.viewer__nav button:hover { background: var(--ink); color: var(--paper); }
.viewer__strip { display: flex; gap: 6px; padding: 10px var(--gutter) 18px; overflow-x: auto; scrollbar-width: none; background: var(--film); }
.viewer__strip button { flex: 0 0 auto; width: 74px; aspect-ratio: 3/2; overflow: hidden; opacity: 0.45; outline-offset: 2px; transition: opacity 0.3s; }
.viewer__strip button.on { opacity: 1; outline: 2px solid var(--safelight); }
.viewer__strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about { padding: 130px var(--gutter) clamp(90px, 14vh, 170px); }
.about__title { font-size: clamp(48px, 7.4vw, 136px); max-width: 12em; margin: 22px 0 clamp(60px, 10vh, 120px); }
.about__grid { display: grid; grid-template-columns: 5fr 5fr 3fr; gap: clamp(20px, 4vw, 60px); align-items: start; }
.about__a, .about__b { background: #fbf9f4; padding: 9px; box-shadow: 0 24px 50px -30px rgba(30,20,10,.55); }
.about__a { transform: rotate(-1.4deg); }
.about__b { transform: rotate(2deg); margin-top: 40%; }
.about__copy p:not(.mono) { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); margin-bottom: 1.1em; }
.about__copy p:first-child { font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); color: var(--ink); line-height: 1.2; font-variation-settings: "opsz" 48; }

/* ---------- Book ---------- */
.book { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 110px); padding: 130px var(--gutter) clamp(90px, 14vh, 170px); align-items: start; }
.book__intro { position: sticky; top: 40px; }
.book__title { font-size: clamp(58px, 8vw, 148px); margin: 22px 0 30px; }
.book__lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 30em; }
.book__direct { margin-top: 44px; display: grid; gap: 14px; }
.book__direct div { display: grid; grid-template-columns: 110px 1fr; }

.order {
  background: #fbf9f4; padding: clamp(22px, 3.4vw, 46px);
  box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 40px 70px -40px rgba(30,20,10,.5);
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px;
  position: relative;
}
.order::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--rule); pointer-events: none; }
.order__head { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.order__head b { font-weight: 500; color: var(--safelight); }
.f { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f > span, .f legend { color: var(--muted); }
.f b { color: var(--safelight); font-weight: 400; }
.f input, .f textarea {
  font-family: var(--display); font-size: 21px; font-variation-settings: "opsz" 24;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 6px 0 10px; color: var(--ink); outline: none; width: 100%;
  transition: border-color 0.3s;
}
.f textarea { resize: vertical; line-height: 1.4; }
.f input::placeholder, .f textarea::placeholder { color: #b4ac9f; font-style: italic; }
.f input:focus, .f textarea:focus { border-color: var(--ink); }
.f input[type="date"] { min-height: 44px; }
.f legend { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 99px;
  font-family: var(--display); font-size: 18px; font-variation-settings: "opsz" 18; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--safelight); outline-offset: 2px; }
.order__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 8px; }
.send {
  display: inline-flex; align-items: center; gap: 14px; padding: 17px 26px 17px 28px;
  background: var(--ink); color: var(--paper); border-radius: 99px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: background 0.3s, gap 0.4s var(--ease);
}
.send:hover { background: var(--safelight); gap: 22px; }
.send[disabled] { opacity: 0.6; }
.order__note { color: var(--muted); }
.order__note.ok { color: var(--ink); }
.order__note.err { color: var(--safelight); }
.hp { position: absolute; left: -9999px; }

.thanks { min-height: 80vh; padding: 160px var(--gutter) 100px; display: grid; align-content: center; gap: 22px; }
.thanks h1 { font-size: clamp(56px, 9vw, 160px); }

/* ---------- View transitions ---------- */
::view-transition-old(root) { animation: vt-out 0.42s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .roll { grid-template-columns: 1fr; }
  .film { --cell: 140px; }
  .sessions__list li { grid-template-columns: 44px 1fr; }
  .sessions__list p, .sessions__list a { grid-column: 2; }
  .develop, .book, .g-sub, .intro { grid-template-columns: 1fr; }
  .book__intro { position: static; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__copy { grid-column: 1 / -1; order: -1; }
  .about__b { margin-top: 30%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-nav a:not(.nav-book):first-child { display: none; }
  .table__meta span:nth-child(2) { display: none; }
  .print { width: calc(var(--w) * 1.9); }
  .print:nth-of-type(4), .print:nth-of-type(8) { display: none; }
  .table__title .l2 { margin-left: 0.4em; }
  .g-grid { grid-template-columns: 1fr; row-gap: 60px; }
  .g-grid .frame { grid-column: 1 / -1 !important; }
  .frame.drop { margin-top: 0; }
  .order { grid-template-columns: 1fr; }
  .film { --cell: 112px; }
  .roll:hover .film__track { transform: none; }
  .loupe { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .book-pill { left: var(--gutter); right: var(--gutter); justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .dev img { filter: none; }
  @view-transition { navigation: none; }
}

/* Keep the develop feature within one screen */
.develop__img img { width: 100%; aspect-ratio: 4 / 5; max-height: 86vh; object-fit: cover; }

/* A lone portrait: its caption moves into the empty half, set large */
.frame.solo { position: relative; }
.frame.solo figcaption {
  position: absolute; top: 50%; translate: 0 -50%; left: calc(100% + clamp(30px, 5vw, 90px));
  width: min(34vw, 30ch); flex-direction: column; gap: 14px;
}
.frame.solo--l figcaption { left: auto; right: calc(100% + clamp(30px, 5vw, 90px)); text-align: right; align-items: flex-end; }
.frame.solo figcaption span:last-child { font-size: clamp(24px, 2.3vw, 38px); line-height: 1.18; color: var(--ink); font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1; }
@media (max-width: 700px) {
  .frame.solo figcaption { position: static; translate: none; width: auto; flex-direction: row; text-align: left; align-items: baseline; }
  .frame.solo figcaption span:last-child { font-size: 17px; color: var(--ink-2); }
}

/* Grid items can't resolve % heights; size the photo against the viewport instead */
.viewer__stage img { max-height: calc(100dvh - 230px); width: auto; }
.book__direct dd, .foot-grid a[href^="mailto"] { text-transform: none; }

/* Phone light table: prints sit in a top band and a bottom band, clear of the type */
@media (max-width: 700px) {
  .print:nth-of-type(1) { --x: 3%;  --y: 15%; }
  .print:nth-of-type(2) { --x: 37%; --y: 12%; }
  .print:nth-of-type(3) { --x: 72%; --y: 14%; --w: 12vw; }
  .print:nth-of-type(5) { --x: 4%;  --y: 75%; }
  .print:nth-of-type(6) { --x: 37%; --y: 80%; }
  .print:nth-of-type(7) { --x: 68%; --y: 74%; }
  .print:nth-of-type(9) { display: none; }
  .table__sub { top: calc(50% + 96px); }
}
