/* Coverline - fashion photographer portfolio, laid out like a magazine. */
:root {
  --paper: #f4f1ec;
  --ink: #0d0d0d;
  --mute: #6b6760;
  --accent: #1f3bff;
  --line: #0d0d0d22;
  --serif: "Bodoni Moda", Georgia, serif;
  --gutter: 40px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: "Inter Tight", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { padding: 0 var(--gutter); }
.mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.display { font-family: var(--serif); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; }

/* the accent: at most one blue thing per screen, never in the cover, never as a background or a filled button */
.display em { font-style: italic; font-weight: 700; text-transform: lowercase; color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
.link, .site-header .nav a { background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .35s ease; }
.link:hover, .site-header .nav a:hover { background-size: 100% 1px; }
.avail::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--gutter); color: #fff; will-change: transform; }
.site-header .logo { color: var(--ink); font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.site-header .nav { display: flex; gap: 28px; margin-left: auto; margin-right: 40px; }
/* past the cover the header comes back on paper when you scroll up */
.site-header.is-solid { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding-top: 18px; padding-bottom: 18px; }
.site-header.is-solid .logo { color: var(--ink); }

/* ---------- burger (phones) ---------- */
.burger { display: none; position: relative; width: 30px; height: 16px; margin-left: 22px; border: 0; background: none; color: inherit; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; background: currentColor;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1), top .45s cubic-bezier(.7, 0, .2, 1), opacity .25s; }
.burger span:nth-child(1) { top: 1px; height: 3px; }
.burger span:nth-child(2) { top: 7px; height: 2px; }
.burger span:nth-child(3) { top: 13px; height: 1px; }
.menu-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.site-header.menu-open { transform: none !important; background: none; border-color: transparent; color: var(--ink); }
.site-header.menu-open .logo { color: var(--ink); }

/* ---------- phone menu: a contents page ---------- */
.menu { position: fixed; inset: 0; z-index: 4; background: var(--paper); visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.menu-in { height: 100%; display: flex; flex-direction: column; padding: 96px var(--gutter) 28px; overflow-y: auto; }
.menu-in > .mono { border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.menu-toc a { display: grid; grid-template-columns: 34px auto 1fr auto; align-items: baseline; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-toc b { font-family: var(--serif); font-weight: 900; font-size: clamp(38px, 12vw, 64px); line-height: 1; text-transform: uppercase; }
.menu-toc .dots { border-bottom: 1px dotted var(--mute); }
.menu-toc i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.menu-foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; line-height: 2; }
.menu-foot .bar { display: flex; align-items: flex-end; gap: 12px; }
.menu-foot .code { width: 80px; height: 34px; fill: var(--ink); }
/* the rows come in one after another */
.menu-toc a, .menu-foot { opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.menu.is-open .menu-toc a, .menu.is-open .menu-foot { opacity: 1; transform: none; transition: opacity .5s calc(.3s + var(--i) * .08s), transform .6s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .08s); }

/* ---------- cover (hero): paper over the photo, the letters are holes ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background-color: #222; background-position: var(--focus, 50% 30%); background-size: cover; background-repeat: no-repeat; }
/* --focus on the cover is the face's spot in the photo (x y), so the face stays in view on every screen.
   On wider screens a landscape photo can be enlarged (--wide-size) and placed (--wide-focus) to set the face in the middle of the clear half. */
@media (min-width: 811px) { .hero { background-size: var(--wide-size, cover); background-position: var(--wide-focus, var(--focus, 50% 30%)); } }
.band { position: absolute; margin: 0; }
.hero .band { inset: 0 50% 0 0; }
/* the real words stay in the page for search engines and screen readers; the SVG draws them */
.band .l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.band svg { position: absolute; inset: 0; display: block; }
/* a soft shade at the top, so the white header and labels stay readable on light photos */
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, 0)); }
/* on scroll the photo fades into the paper, the cut-out goes with it: a blank page under the next one */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--paper); opacity: var(--fade, 0); pointer-events: none; }
/* before the intro starts: only paper */
.intro .hero { --fade: 1; }
.intro .hero .cover, .intro .hero .meta, .intro .site-header { visibility: hidden; }
.hero .meta { position: absolute; z-index: 3; color: #fff; }
.hero .m1 { right: var(--gutter); top: 90px; text-align: right; }
.hero .m2 { right: var(--gutter); bottom: 32px; text-align: right; }
.hero .issue { font-family: var(--serif); font-weight: 900; font-size: 64px; line-height: 1; }

/* cover lines on the left, like a magazine cover */
.cover { position: absolute; z-index: 3; left: var(--gutter); top: 120px; bottom: 32px; width: min(300px, calc(22.5vw - 72px));
  display: flex; flex-direction: column; color: var(--ink); }
.cover .kicker { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; }
.cover .rule { height: 2px; background: var(--ink); margin: 22px 0; width: 56px; }
.cover .line { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.cover .line b { display: block; font-family: var(--serif); font-weight: 900; font-size: 22px; text-transform: uppercase; line-height: 1.05; transition: color .3s; }
.cover .line span { font-size: 13px; color: var(--mute); }
.cover .line i { float: right; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.cover .line:hover b { color: var(--accent); }
.cover .rule + .line { margin-top: auto; }
.cover .bar { margin-top: auto; display: flex; align-items: flex-end; gap: 14px; }
.cover .code { width: 110px; height: 46px; fill: var(--ink); }
@media (max-width: 1100px) { .cover .line span { display: none; } .cover .line b { font-size: 16px; } }

/* the cover stays put, the contents page slides over it */
.stack .hero { position: sticky; top: 0; z-index: 0; }
.stack .contents { position: relative; z-index: 1; background: var(--paper); box-shadow: 0 -30px 60px rgba(0, 0, 0, .18); }

/* ---------- in this issue ---------- */
.contents { padding-top: 120px; padding-bottom: 100px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(40px, 7vw, 112px); }
.toc a { display: grid; grid-template-columns: 80px 1fr 200px 80px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.toc a > .mono:first-child { color: var(--accent); }
.toc .t { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.05; text-transform: uppercase; transition: color .3s, transform .4s; }
.toc a:hover .t { color: var(--accent); transform: translateX(16px); }
.toc img { position: absolute; right: 22%; top: 50%; width: 220px; height: 280px; object-fit: cover; pointer-events: none; z-index: 2; opacity: 0;
  border: 6px solid #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  transform: translate(var(--fx, 120px), calc(-50% + 90px)) rotate(calc(var(--r, -3deg) + var(--spin, 24deg))) scale(.8);
  transition: transform .3s ease-in, opacity .2s; }
/* thrown onto the page: it flies in with a spin and lands at its own angle and spot (set per row in main.js) */
.toc a:hover img { opacity: 1; transform: translate(var(--dx, 0), calc(-50% + var(--dy, 0px))) rotate(var(--r, -3deg)) scale(1);
  transition: transform .65s cubic-bezier(.18, .9, .3, 1.25), opacity .15s; }

/* ---------- selected work: strips ---------- */
.work { padding-top: 120px; padding-bottom: 120px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card .img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.card .s { position: absolute; top: 0; bottom: 0; overflow: hidden; transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.card .s > div { position: absolute; top: 0; bottom: 0; background: center / cover no-repeat; }
/* covers rest split into strips and come together into one photo on hover (phones: in the middle of the screen) */
.card .s:nth-child(odd) { transform: translateY(-8%); }
.card .s:nth-child(even) { transform: translateY(8%); }
.card:hover .s, .card:focus-visible .s, .card.is-whole .s { transform: none; }
/* each card is a magazine cover: masthead, issue number, the story's title, client and season */
.card .cv { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 14px 16px 16px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.card .img { container-type: inline-size; }
/* the masthead spans the cover's width, like a real magazine title */
.card .cv-mast { font-family: var(--serif); font-weight: 900; font-size: 15.5cqi; line-height: .8; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.card .cv-no { margin-top: 10px; }
.card .cover-t { margin-top: auto; font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 3.2vw, 44px); line-height: .9; text-transform: uppercase; }
.card .cv-foot { margin-top: 12px; }
.card .cap { display: flex; justify-content: space-between; padding-top: 12px; }

/* ---------- work: back issues ---------- */
.page-head { padding-top: 150px; }
.page-head h1 { font-size: clamp(48px, 9vw, 150px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0 0; }
.filters button { border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--mute); cursor: pointer; padding: 4px 0;
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 1px no-repeat; transition: color .3s, background-size .35s; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"] { background-size: 100% 1px; }
.filters sup { font-size: 9px; vertical-align: 4px; }
.archive { padding-bottom: 40px; }
.archive .grid { row-gap: 56px; }
.card.is-out { opacity: 0; transform: scale(.96); transition: opacity .3s, transform .3s; }
.card[hidden] { display: none; }

/* ---------- story page ---------- */
.series-hero .band { inset: 0 50% 0 0; }
.story-intro { padding-top: 110px; padding-bottom: 90px; display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 60px; }
.credits div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.credits div:first-child { border-top: 2px solid var(--ink); }
.credits dt { color: var(--mute); }
.lead { max-width: 760px; }
.lead-big { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.1; margin-bottom: 28px; }
.lead p + p { color: var(--mute); max-width: 560px; font-size: 17px; }
.spread { display: grid; gap: 80px; padding-bottom: 120px; }
.spread figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.spread .g-full img { aspect-ratio: 3 / 2; }
.spread figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; }
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.g-offset { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
.pull { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(28px, 3vw, 46px); line-height: 1.1; max-width: 14ch; padding-bottom: 60px; }
.next { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; border-top: 2px solid var(--ink); padding-top: 40px; }
.next-t .display { display: block; font-size: clamp(56px, 9vw, 150px); margin-top: 16px; transition: color .3s; }
.next-t:hover .display { color: var(--accent); }
.next .card { max-width: 420px; justify-self: end; width: 100%; }

/* story page, layout B (report): the title on paper, one wide photo, then text and photos take turns */
.story-head { padding-top: 150px; padding-bottom: 36px; }
.story-head h1 { font-size: clamp(64px, 14vw, 240px); margin-top: 18px; }
.story-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: #ddd; }
.report { display: grid; gap: 80px; padding-bottom: 120px; }
.report figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.report .g-full img { aspect-ratio: 3 / 2; }
.report figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; }
.r-text { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.r-text p { font-size: 17px; color: var(--mute); max-width: 460px; }
.r-text p:first-letter { float: left; font-family: var(--serif); font-weight: 900; font-size: 74px; line-height: .8; padding: 6px 10px 0 0; color: var(--ink); }
.r-quote { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.05; text-align: center; max-width: 18ch; justify-self: center; }

/* ---------- about: interview ---------- */
.qa { max-width: 720px; }
.qa h2 { font-size: clamp(40px, 5vw, 80px); margin-bottom: 34px; }
.qa .q { font-weight: 600; margin-top: 30px; }
.qa .q + p { color: var(--mute); font-size: 17px; margin-top: 8px; }
.qa .pull { padding: 40px 0 10px; max-width: 18ch; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 120px; }
.lists .sec-head h2 { font-size: clamp(36px, 4vw, 64px); }
.lists .row { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lists .row b { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 2.2vw, 32px); text-transform: uppercase; line-height: 1.1; }
.lists .row .mono:first-child { color: var(--accent); }

/* ---------- book a shoot: order form ---------- */
.page-head .avail { display: block; margin-bottom: 18px; }
.booking { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; padding-top: 50px; padding-bottom: 80px; align-items: start; }
.order { display: grid; gap: 34px; max-width: 720px; position: relative; }
.field { border: 0; min-width: 0; }
.field label, .field legend { display: block; color: var(--mute); margin-bottom: 6px; padding: 0; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; padding: 6px 0 10px; outline: none; transition: border-color .3s; }
.field textarea { resize: none; overflow: hidden; min-height: 54px; }
.field input::placeholder { color: #0d0d0d40; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
/* no yellow autofill tint */
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--paper) inset; -webkit-text-fill-color: var(--ink); }
.err { color: var(--accent); margin-top: 8px; display: none; }
.field.is-bad .err { display: block; }
.field.is-bad input, .field.is-bad textarea { border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1px solid var(--ink); padding: 10px 16px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.chip:hover span { background: #0d0d0d0d; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.send { justify-self: start; border: 0; background: var(--ink); color: var(--paper); padding: 18px 28px; cursor: pointer; transition: transform .3s; }
.send:hover { transform: translateX(6px); }
.order.is-sent > :not(.thanks) { display: none; }
.thanks .display { font-size: clamp(56px, 8vw, 120px); margin-bottom: 18px; }
.thanks p + p { font-size: 17px; color: var(--mute); }
.desk-note { color: var(--mute); margin-top: 24px; max-width: 320px; }

/* ---------- 404 ---------- */
.lost .m2 { max-width: 300px; }
.lost .m2 p { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 28px; line-height: 1.1; margin-bottom: 12px; }
.lost .m1 .issue { font-size: clamp(32px, 4vw, 64px); }

/* pages without a cover photo: the header is ink on paper */
.no-hero .site-header { color: var(--ink); }
.no-hero .site-header .logo { color: var(--ink); }

/* ---------- as seen in ---------- */
.seen { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 28px 0; overflow: hidden; }
.seen-track { display: flex; width: max-content; animation: seen 60s linear infinite; }
.seen-row { display: flex; flex: none; }
.seen span { padding-right: clamp(48px, 7vw, 120px); white-space: nowrap; font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; color: var(--mute); }

/* ---------- services ---------- */
.services { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.services h2 { font-size: clamp(48px, 6vw, 96px); margin-top: 14px; }
.svc { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 60px 1fr; }
.svc h3 { font-family: var(--serif); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1.1; }
.svc p { color: var(--mute); grid-column: 2; max-width: 420px; }

/* ---------- quote + pile of prints ---------- */
.notes { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.notes blockquote { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: -.01em; margin: 22px 0 28px; max-width: 12ch; }
.pile { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 5; justify-self: center; touch-action: pan-y; }
/* a print: thin white edge, a soft shadow, a gloss that moves when the print moves */
.print { position: absolute; inset: 0; padding: 8px; border: 0; background: #fff; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 34px rgba(0, 0, 0, .16);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.print img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.print::after { content: ""; position: absolute; inset: 8px; pointer-events: none; mix-blend-mode: screen; opacity: var(--gloss, .18);
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .12) 54%, transparent 64%) var(--sx, 50%) 0 / 300% 100% no-repeat;
  transition: opacity .3s; }
.print.is-held { cursor: grabbing; transition: box-shadow .3s; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 30px 60px rgba(0, 0, 0, .25); }
.print:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- book a shoot + footer ---------- */
.contact { padding-top: 140px; padding-bottom: 60px; }
.contact .big { font-size: clamp(64px, 16vw, 260px); display: block; margin-top: 12px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 80px; padding: 24px 0 30px; }

/* ---------- phones and small tablets ---------- */
@media (max-width: 810px) {
  :root { --gutter: 20px; }
  .site-header .nav { display: none; }
  .burger { display: block; }
  .site-header .logo { color: #fff; }
  /* face on top, paper with the title at the bottom */
  .hero .band { inset: 56% 0 0 0; }
  .hero .m2 { top: 76px; bottom: auto; left: var(--gutter); right: auto; text-align: left; }
  .hero .m1, .cover { display: none; }
  .toc a { grid-template-columns: 48px 1fr; }
  .toc a > span:nth-child(n+3) { display: none; }
  .toc img { display: none; }
  .grid, .services { grid-template-columns: 1fr; }
  .page-head { padding-top: 110px; }
  .story-intro, .g-pair, .g-offset, .next, .r-text, .lists, .booking { grid-template-columns: 1fr; }
  .booking { gap: 60px; }
  .story-head { padding-top: 110px; }
  .story-wide img { aspect-ratio: 4 / 3; }
  .report { gap: 50px; padding-bottom: 80px; }
  .story-intro { padding-top: 70px; padding-bottom: 60px; gap: 40px; }
  .spread { gap: 50px; padding-bottom: 80px; }
  .pull { padding-bottom: 0; }
  .next .card { justify-self: start; }
  .services { gap: 30px; }
  .notes { grid-template-columns: 1fr; gap: 50px; padding-top: 80px; padding-bottom: 80px; }
  .pile { width: min(340px, 78vw); }
  .contents, .work, .services { padding-top: 80px; padding-bottom: 80px; }
  .contact { padding-top: 100px; }
}

@media (min-width: 560px) and (max-width: 810px) { .archive .grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 420px) { .site-header .book { display: none; } }

/* ---------- full-screen photo (story galleries): the photo alone on paper, with its caption and page number ---------- */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: grid; grid-template-rows: auto 1fr auto;
  padding: 20px var(--gutter); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; }
.lb-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none;
  transform: scale(.97); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.lightbox.is-open .lb-stage img.is-in { transform: none; opacity: 1; }
.lb-btn { border: 0; background: none; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 10px 0; }
.lb-btn:hover { color: var(--accent); }
.lb-close { position: relative; width: 28px; height: 28px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; background: currentColor; }
.lb-close::before { height: 3px; margin-top: -1.5px; transform: rotate(45deg); }
.lb-close::after { height: 1px; margin-top: -.5px; transform: rotate(-45deg); }
.lb-cap { text-align: center; }
.lb-cap span + span { color: var(--accent); margin-left: 14px; }

/* ---------- cursor: a camera focus point (mouse screens only, added by main.js) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .print, .has-cursor label, .has-cursor .chip span, .has-cursor [data-zoom] { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor .box { transition: opacity .2s; position: absolute; left: 0; top: 0; width: var(--s, 18px); height: var(--s, 18px); transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1); }
/* the cross */
.cursor .box::before, .cursor .box::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); transition: opacity .25s, width .3s, height .3s; }
.cursor .box::before { width: 100%; height: 1px; }
.cursor .box::after { width: 1px; height: 100%; }
/* the four corner brackets of the focus frame */
.cursor i { position: absolute; width: 10px; height: 10px; border: 0 solid currentColor; opacity: 0; transition: opacity .25s; }
.cursor i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.cursor i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.cursor i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.cursor i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.cursor .label { position: absolute; left: calc(var(--s, 18px) / 2 + 8px); top: calc(var(--s, 18px) / 2 + 4px); font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .25s, left .35s, top .35s; }
/* over a photo: the frame grabs the shot */
.cursor.is-view { --s: 72px; }
.cursor.is-view i, .cursor.is-view .label { opacity: 1; }
.cursor.is-view .box::before { width: 9px; }
.cursor.is-view .box::after { height: 9px; }
/* over a link or button: a small dot */
.cursor.is-link { --s: 14px; }
.cursor.is-link .box::before { height: 14px; width: 14px; border-radius: 50%; }
.cursor.is-link .box::after { opacity: 0; }
.cursor.is-down .box { transform: translate(-50%, -50%) scale(.85); }
/* over the pile: a hand that waves hello, and closes into a grip while you hold a print */
.cursor .hand { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0; transform: scale(.6); transform-origin: 50% 90%;
  transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.cursor .hand .shut { display: none; }
/* the hand is always the accent blue (no colour flipping), with a thin light edge so it reads on dark photos too */
.cursor.is-drag { mix-blend-mode: normal; color: var(--accent); }
.cursor.is-drag .hand, .cursor.is-drag .label { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.cursor.is-drag .box { opacity: 0; }
.cursor.is-drag .hand { opacity: 1; transform: none; animation: wave .9s ease-in-out .1s; }
.cursor.is-drag .label { opacity: 1; left: 22px; top: 14px; }
.cursor.is-drag.is-down .open { display: none; }
.cursor.is-drag.is-down .shut { display: inline; }
.cursor.is-drag.is-down .hand { transform: scale(.9) rotate(-8deg); animation: none; }
@keyframes wave { 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

@keyframes seen { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .seen-track { animation: none; }
}
