/* Photographs and rendered objects: the five-tab file, the city blocks, the plates that open the inner
   pages, the closing room and the dark footer, plus the phone menu. Behaviour is in lib/features.js.
   The pictures, the clips and data/img.js come from imagery/ship.py. Palette and type from dossier.css. */
:root { --night: #141310; --chalk: #f4f1e9; }

/* ---------- a 2:1 picture that always covers its box ----------
   .pic is the box. .pic-2 keeps the picture's own shape (so a reveal's positions hold at any size),
   covers the box, and is lined up inside it by --x and --y (0 = left or top, 1 = right or bottom). */
.pic { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.pic-2 { --pw: max(100cqw, 200cqh); position: absolute; width: var(--pw); height: calc(var(--pw) / 2); left: calc((100cqw - var(--pw)) * var(--x, 1)); top: calc((100cqh - var(--pw) / 2) * var(--y, .5)); }
.pic-2 img, .pic-2 video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- the five-tab file: each divider slides over the last one ---------- */
.file { --th: clamp(52px, 36px + 1.4vw, 72px); --ph: clamp(560px, min(100vh - var(--th), 61vw), 1400px); border-top: 1px solid var(--ink); }
.file-top { padding-top: 112px; }
.file-top .sec-h { margin-bottom: 58px; }
.file-stack { position: relative; padding-top: var(--th); }
.fp-at { display: block; height: 0; scroll-margin-top: var(--th); }
.fp-gap { height: 22vh; }
/* The text starts at the page's own margin, or sooner on a wide screen. --edge is where each object's left side
   falls: its place in the picture, less what the window crops. Small text stops 26px short of it. */
.fp { --edge: 100cqw; --wl: max(40px, min((100cqw - 1280px) / 2, 5.6cqw)); --tw: min((100cqw - 2 * var(--wl)) / 5, 340px);
  position: relative; height: var(--ph); container-type: size; background: var(--s); color: #fff; }
.fp[data-fp="list"] { --s: #22211e; --n: 0; --x: .5; --xs: .9; --edge: calc(50cqw - .107 * max(100cqw, 200cqh)); }
.fp[data-fp="owner"] { --s: #c9c4b9; --n: 1; --x: .5; --xs: .86; --y: .12; --edge: calc(50cqw - .108 * max(100cqw, 200cqh)); }
.fp[data-fp="debt"] { --s: #4f1711; --n: 2; --x: 1; --xs: .9; --edge: calc(100cqw - .53 * max(100cqw, 200cqh)); }
.fp[data-fp="directory"] { --s: #b9a789; --n: 3; --x: 1; --xs: 1; --edge: calc(100cqw - .531 * max(100cqw, 200cqh)); }
.fp[data-fp="proof"] { --s: #122847; --n: 4; --x: 1; --xs: .9; }
.fp-ink { color: var(--ink); }
.fp::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 46px; background: linear-gradient(rgba(20, 16, 8, 0), rgba(20, 16, 8, .05) 42%, rgba(20, 16, 8, .25)); opacity: calc(1 - var(--under, 0) * .72); pointer-events: none; }
.fp::after { content: ""; position: absolute; inset: 0; z-index: 4; background: #0b0a08; opacity: calc(var(--cover, 0) * .5); pointer-events: none; }

/* the tab is cut from the same surface: its texture is the strip rendered just above the picture */
.fp-tab { position: absolute; z-index: 3; bottom: calc(100% - 1px); left: calc(var(--wl) + var(--n) * var(--tw)); width: var(--tw); height: var(--th);
  color: inherit; filter: drop-shadow(0 -3px 5px rgba(20, 16, 8, .2)) brightness(calc(1 - var(--cover, 0) * .34)); }
.fp-tab > span { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--s); font: 500 clamp(19px, 8px + .9vw, 27px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap;
  --cap-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56C10 56 13 47 15 39L22 13C24 4 28 0 37 0H38V56Z'/%3E%3C/svg%3E");
  --cap-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 56' preserveAspectRatio='none'%3E%3Cpath d='M38 56C28 56 25 47 23 39L16 13C14 4 10 0 1 0H0V56Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--cap-l) left / 38px 100% no-repeat, var(--cap-r) right / 38px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 75px) 100% no-repeat;
  mask: var(--cap-l) left / 38px 100% no-repeat, var(--cap-r) right / 38px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 75px) 100% no-repeat; }
.fp-tab img { --pw: max(100cqw, 200cqh); position: absolute; bottom: 0; left: calc((100cqw - var(--pw)) * var(--x) - var(--wl) - var(--n) * var(--tw)); width: var(--pw); max-width: none; height: calc(var(--pw) / 18); }
.fp-tab b { position: relative; z-index: 1; font-weight: 500; }
/* The seal's tab stays as dark as the paper below it until the light sweeps across.
   A plain overlay, measured to match: a blend mode here cost first-time visitors a 250 ms frame. */
.fp[data-fp="proof"] .fp-tab > span::after { content: ""; position: absolute; inset: 0; background: rgba(0, 8, 29, .75); opacity: 0; transition: opacity 1.7s ease-in .5s; }
.fp.fx[data-fp="proof"]:not(.go) .fp-tab > span::after { opacity: 1; transition: none; }
.fp-tab:hover b, .fp-tab:focus-visible b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

.fp-t { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(30px, 7.4cqh, 84px) 40px clamp(24px, 5.2cqh, 60px) var(--wl); pointer-events: none; }
.fp-t > * { max-width: min(35cqw, max(470px, 28.4cqw)); }
.fp-t a { pointer-events: auto; }
.fp-t .kick { color: inherit; opacity: .84; }
.fp h3 { margin: clamp(12px, 2.6cqh, 24px) 0 clamp(10px, 2.2cqh, 20px); font: 500 clamp(36px, min(4cqw, 7.2cqh), 104px)/1.01 var(--serif); letter-spacing: -.026em; max-width: calc(var(--edge) - var(--wl) - 14px); text-wrap: balance; }
.fp-t p:not(.kick) { margin: 0; font-size: clamp(15px, min(1.15cqw, 2.35cqh), 23px); line-height: 1.55; max-width: min(25.5em, var(--edge) - var(--wl) - 26px); }
.fp-t .more { margin-top: clamp(12px, 2.4cqh, 24px); border-color: currentColor; }
.fp-n b { display: block; font: 500 clamp(72px, min(8.8cqw, 16.4cqh), 215px)/.84 var(--serif); letter-spacing: -.045em; margin-left: -.03em; }
.fp-n p:not(.kick) { margin-top: clamp(12px, 2.2cqh, 20px); max-width: min(24em, var(--edge) - var(--wl) - 26px); text-wrap: pretty; }
.fp-n small { display: block; margin-top: clamp(8px, 1.6cqh, 16px); max-width: min(37em, var(--edge) - var(--wl) - 26px); font: 400 clamp(11px, .8cqw, 14px)/1.5 var(--mono); opacity: .86; text-wrap: balance; }
.fp-n [data-k], .fp-n [data-n], .fp-n [data-s] { white-space: nowrap; }
/* the list's page leans left as it comes down, so its lowest lines have the least room */
.fp[data-fp="list"] .fp-n { --edge: calc(50cqw - .158 * max(100cqw, 200cqh)); }
.fp[data-fp="list"] .fp-n p:not(.kick) { max-width: min(24em, var(--edge) - var(--wl) + 8px); }
.fp[data-fp="list"] .fp-n small { max-width: min(37em, var(--edge) - var(--wl) - 14px); }

/* before and after. With motion on, features.js adds .fx and uncovers the second picture itself. */
.pic-2 > picture { position: absolute; inset: 0; display: block; }
.fp.fx:not([data-clip]) .fp-after { visibility: hidden; }
.fp.fx.go:not([data-clip]) .fp-after { visibility: visible; }
.fp video { opacity: 0; }
.fp video.on { opacity: 1; }
.fp.fx[data-clip] .fp-after { opacity: 0; transition: opacity .5s; }
.fp.fx[data-clip].done .fp-after { opacity: 1; }

/* on an ultra-wide window the picture stops growing, or it would lose its top and bottom; its left side fades into its own surface */
@container (min-aspect-ratio: 23/10) {
  .fp .pic-2, .fp .fp-tab img { --pw: 230cqh; --x: 1; -webkit-mask: linear-gradient(90deg, transparent, #000 26%); mask: linear-gradient(90deg, transparent, #000 26%); }
}

@media (min-width: 1100px) and (min-height: 640px) {
  .fp { position: sticky; top: var(--th); }
}
@media (max-width: 1099px) {
  .file { --th: 48px; }
  .file-top { padding-top: 84px; }
  .file-stack { padding-top: 0; }
  .fp-gap { display: none; }
  .fp-at { scroll-margin-top: 0; }
  .fp, .fp[data-fp], .fp[data-fp] .fp-n { --edge: 400cqw; }      /* here the words sit below the picture */
  .fp { --wl: 40px; --tw: 190px; height: auto; container-type: inline-size; padding-bottom: 1px; }
  .fp::before { display: none; }
  .fp-at + .fp { margin-top: 0; padding-top: 0; border-top: var(--th) solid transparent; background-clip: padding-box; }
  .fp-tab { bottom: auto; top: calc(var(--th) * -1 + 1px); left: calc(40px + var(--n) * (100cqw - 80px - var(--tw)) / 4); }
  .fp-tab > span { font-size: 18px; }
  .fp-tab img { --bh: calc(100cqw * 10 / 16); --pw: max(100cqw, 2 * var(--bh)); left: calc((100cqw - var(--pw)) * var(--xs) - 40px - var(--n) * (100cqw - 80px - var(--tw)) / 4); }
  .fp .pic { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .fp .pic-2 { --x: var(--xs) !important; }
  .fp .pic::after { content: ""; position: absolute; inset: auto 0 0; height: 13%; background: linear-gradient(transparent, var(--s)); }
  .fp-t { position: relative; inset: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px 56px; align-items: end; padding: 14px 40px 56px; }
  .fp-t > * { max-width: none; }
  .fp h3 { font-size: 46px; margin: 14px 0 16px; }
  .fp-t p:not(.kick) { font-size: 16px; }
  .fp-n b { font-size: 92px; }
}
@media (max-width: 640px) {
  .file { --th: 44px; }
  .file-top { padding-top: 72px; }
  .file-top .sec-h { margin-bottom: 34px; }
  .fp { --tw: 142px; }
  .fp-tab { left: calc(12px + var(--n) * (100cqw - 24px - var(--tw)) / 4); }
  .fp-tab > span { font-size: 16px; }
  .fp[data-fp="list"] .fp-tab picture { display: none; }
  .fp[data-fp="directory"] { --xs: .95; }
  .fp-tab img { --bh: calc(100cqw * .94); left: calc((100cqw - var(--pw)) * var(--xs) - 12px - var(--n) * (100cqw - 24px - var(--tw)) / 4); }
  .fp .pic { aspect-ratio: 1 / .94; }
  .fp-t { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 8px 20px 44px; }
  .fp h3 { font-size: 38px; }
  .fp-n b { font-size: 84px; }
}

/* ---------- inside a dossier: the sample pages lie on a walnut desk ----------
   The wood is one picture that repeats from top to bottom, so it keeps its grain at any height. desk-shade is
   the shade round a patch of window light: strong on the wood, light on the paper, lined up across both. */
.on-desk { position: relative; isolation: isolate; border-top: 1px solid #14100c; background: #3b2c23; color: var(--chalk);
  --sheet: #fdfbf6; --k-bg: #fdfbf6; --k-bg-2: #f7f3ea; --k-dlab-halo: #fdfbf6; --k-amber: #875400;
  --shadow: 1px 1px 2px rgba(12, 7, 3, .5), 7px 6px 12px rgba(12, 7, 3, .34), 26px 20px 44px rgba(12, 7, 3, .42); }
.desk { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.desk picture { display: block; width: max(100%, 900px); }
.desk img { display: block; width: 100%; height: auto; }
.desk::after, .on-desk::after { content: ""; position: absolute; inset: 0; background: url("../img/desk-shade.webp") 0 0 / 100% 100%; pointer-events: none; }
.desk::after { opacity: .4; }
.on-desk::after { z-index: 10; opacity: .12; }
.on-desk .sec-h, .on-desk .keys { position: relative; z-index: 11; }              /* words on the page itself, above its shade */
.on-desk .sec-h .kick { color: inherit; opacity: .78; }
.on-desk .sec-dek, .on-desk .keys p { color: #e2dccf; }
.on-desk .sec-h mark { color: var(--ink); background: linear-gradient(transparent 12%, #ffe252 12%, #ffe252 94%, transparent 94%); padding: 0 .1em; }
.on-desk .keys { border-color: rgba(244, 241, 233, .7); }
.on-desk .in-desk .keys li + li { border-color: rgba(244, 241, 233, .28); }
.on-desk .keys b { color: #fff; }
.on-desk .keys .key { background: var(--chalk); color: var(--ink); }
.on-desk .sheet, .on-desk .spread { color: var(--ink); }
.on-desk .clip { color: #b9bcc0; filter: drop-shadow(2px 2px 1.5px rgba(12, 7, 3, .45)); }
/* a second page under the list, and the other pages of the open brief under the spread */
.in-desk::before { content: ""; grid-area: list; align-self: stretch; margin-right: -64px; border-radius: 3px; background: #efe9db; box-shadow: var(--shadow); transform: rotate(-.75deg); }
.on-desk .spread { box-shadow: 1px 2px 0 #cfc7b4, 2px 4px 0 #f2ecdf, 3px 6px 0 #c5bca7, 4px 8px 0 #efe9db, 5px 10px 0 #bcb29c, var(--shadow); }
.on-desk .memo { background: #fffdf4; border-color: transparent; box-shadow: 1px 1px 1px rgba(30, 22, 10, .18), 9px 9px 20px rgba(30, 22, 10, .2); }
@media (min-width: 1101px) { .on-desk .s-list .sh-sub { max-width: calc(100% - 76px); } }      /* clear of the sold call on top of it */
@media (max-width: 1100px) {
  .desk::after, .on-desk::after { background-size: 900px 1440px; }
  .in-desk::before { margin-right: 0; }
}
@media (max-width: 640px) { .on-desk .s-dos .clip { display: none; } }      /* it would cover the date */

/* ---------- the city blocks: the mark as eleven cities, and one window onto any of them ---------- */
.blocks { background: var(--night); color: var(--chalk); padding: 116px 0; }
.blocks mark, .room mark, .plate mark { color: var(--ink); background: linear-gradient(transparent 12%, #ffe252 12%, #ffe252 94%, transparent 94%); padding: 0 .1em; }
.blocks .kick, .room .kick, .plate .kick { color: inherit; opacity: .74; }
.bl-in { display: grid; grid-template-columns: minmax(430px, 1fr) minmax(0, 720px); gap: 40px clamp(56px, 6.1vw, 88px); align-items: stretch; }   /* 430px: "the twelfth block." fits on one line */
.bl-copy { display: flex; flex-direction: column; }
.bl-copy h2 { margin: 22px 0 20px; font: 500 56px/1.04 var(--serif); letter-spacing: -.024em; text-wrap: balance; }
.bl-copy > p:not(.kick) { margin: 0; max-width: 27em; color: #cfcabd; }
.bl-names { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.bl-names button { padding: 3px 0; border: 0; background: none; color: #cfcabd; font: 500 20px/1.3 var(--serif); letter-spacing: -.01em; cursor: pointer; }
.bl-names button:hover, .bl-names button:focus-visible { color: #fff; }
.bl-names button[aria-pressed="true"] { color: var(--ink); background: #ffe252; padding: 3px 7px; margin: 0 -7px; }
.bl-card { margin-top: auto; padding-top: 40px; }
.bl-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0; padding-bottom: 12px; border-bottom: 1.5px solid var(--chalk); }
.bl-card-h b { font: 500 30px/1.1 var(--serif); letter-spacing: -.02em; }
.bl-card-h span { flex: none; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a9a497; }
.bl-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; padding: 18px 0 20px; border-bottom: 1px solid #3b3933; font-variant-numeric: tabular-nums; }
.bl-card dt { font-size: 14px; color: #cfcabd; }
.bl-card dd { margin: 6px 0 0; font: 500 44px/1 var(--serif); letter-spacing: -.03em; }
.bl-card dd small { display: block; margin-top: 7px; font: 400 14px/1.4 var(--sans); letter-spacing: 0; color: #cfcabd; }
.bl-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; min-height: 28px; }
.bl-links .more { border-color: currentColor; color: #fff; background: none; border-width: 0 0 1.5px; padding: 0 0 2px; font: 600 16px/1.6 var(--sans); cursor: pointer; }
.bl-cap { margin: 22px 0 0; min-height: 3.1em; font: 400 11px/1.55 var(--mono); color: #a9a497; }

.bl-box { container-type: inline-size; align-self: start; }
.bl-mark { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, calc(100cqw * 13 / 45)); gap: calc(100cqw * 3 / 45); margin: 0; padding: 0; list-style: none; }
.bl-mark > li { position: relative; }
.bl { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; overflow: hidden; background: #2a2822; color: #fff; cursor: pointer; font: inherit; text-align: left; }
.bl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.bl span { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 11px 10px; font: 500 clamp(11px, 2.1cqw, 15px)/1.15 var(--sans); background: linear-gradient(rgba(8, 8, 6, 0), rgba(8, 8, 6, .5) 52%, rgba(8, 8, 6, .82)); transition: opacity .3s; }
.bl:focus-visible { outline: 2px solid #ffe252; outline-offset: 3px; }
/* a window: each block shows its own part of one big picture. Two layers, so one city can fade into the next */
.bl i { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; transition-delay: calc(var(--d, 0) * 55ms); background: var(--w) no-repeat; background-size: calc(100% * 45 / 9) calc(100% * 45 / 13); background-position: calc(var(--c) * 100% / 3) calc(var(--r) * 50%); }
.bl i.on { opacity: 1; }
.bl-mark.open .bl span { opacity: 0; }
@media (hover: hover) {
  .bl-mark:not(.open):has(.bl:hover) .bl:not(:hover) img { opacity: .38; }
  .bl-mark:not(.open) .bl:hover img { transform: scale(1.05); }
}
.bl-mark.point .bl:not(.at) img { opacity: .38; }
.bl-you { background: #ffe252; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(7px, 2cqw, 15px); font: 500 max(min(4.3cqw, 17px), min(3.6cqw, 26px))/1.02 var(--serif); letter-spacing: -.02em; text-decoration: none; }
.bl-you svg { align-self: flex-end; width: clamp(18px, 4cqw, 30px); height: clamp(18px, 4cqw, 30px); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.bl-you:hover svg { transform: translateX(4px); }
@media (max-width: 1200px) { .bl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: 56px; } .bl-copy h2 { font-size: 46px; } }
@media (max-width: 1099px) { .bl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: 44px; } }
@media (max-width: 959px) {
  .blocks { padding: 84px 0; }
  .bl-in { grid-template-columns: minmax(0, 1fr); }
  .bl-copy { display: contents; }
  .bl-copy > * { order: 1; }
  .bl-copy h2, .bl-copy > p:not(.kick) { margin: 0; }
  .bl-in { gap: 24px; }
  .bl-box { order: 2; max-width: 720px; width: 100%; }
  .bl-copy .bl-names { order: 3; margin: 6px 0 0; }
  .bl-copy .bl-card { order: 4; padding-top: 6px; }
}
@media (max-width: 640px) {
  .blocks { padding: 72px 0; }
  .bl-copy h2 { font-size: 40px; }
  .bl span { padding: 26px 4px 6px 6px; }
  .bl-names button { font-size: 18px; }
  .bl-card dd { font-size: 36px; }
  .bl-card-h b { font-size: 26px; }
}

/* ---------- Markets: the same eleven cities and the twelfth, standing in a row ----------
   One city widens by --grow. --open is how wide that makes it: its share of the row, less the gaps and a
   scrollbar. Its caption takes that width, so it is set before the city opens and never gets cut off. */
.row12 { border-bottom: 1px solid var(--ink); background: var(--night); }
.row12-in { --grow: 3.3; --open: calc((100vw - 104px) * .227); display: flex; gap: 8px; height: clamp(360px, 33vw, 560px); margin: 0; padding: 0; list-style: none; }
.row12-in > li { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1); }
.row12-in a { position: absolute; inset: 0; display: block; color: #fff; }
.row12-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row12-in a > span { position: absolute; left: 0; bottom: 0; width: min(330px, var(--open)); padding: 60px 16px 15px; opacity: 0; transition: opacity .25s; }
.row12-in a::after { content: ""; position: absolute; inset: auto 0 0; height: max(64%, 250px); background: linear-gradient(rgba(8, 8, 6, 0), rgba(8, 8, 6, .62) 46%, rgba(8, 8, 6, .88)); opacity: 0; transition: opacity .3s; }
.row12-in a > span { z-index: 1; }
.row12-in a > span b { display: block; font: 500 27px/1.1 var(--serif); letter-spacing: -.02em; }
.row12-in a > span small { display: block; margin-top: 6px; font: 400 13.5px/1.45 var(--sans); }
.row12-in a:focus-visible { outline: 2px solid #ffe252; outline-offset: -4px; }
.row12-you { background: #ffe252; }
.row12-you a { color: var(--ink); }
.row12-in .row12-you a > span { opacity: 1; width: 100%; padding: 16px clamp(8px, 1vw, 14px); bottom: auto; top: 0; }
.row12-you a::after { display: none; }
.row12-in .row12-you b { font-size: clamp(13px, 1.7vw, 27px); line-height: 1.04; }
.row12-you svg { position: absolute; right: 13px; bottom: 14px; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 761px) { .row12-in > .row12-you { flex: 0 0 calc((100% - 88px) / 12); } }      /* it keeps its width while a city widens */
@media (max-width: 1500px) { .row12-in { --grow: 4.4; --open: calc((100vw - 104px) * .28); } }
@media (hover: hover) and (min-width: 761px) {
  .row12-in > li:not(.row12-you):hover { flex-grow: var(--grow); }
  .row12-in > li:hover a > span { opacity: 1; transition-delay: .18s; }
  .row12-in > li:hover a::after { opacity: 1; }
}
@media (min-width: 761px) {
  .row12-in > li:not(.row12-you):focus-within { flex-grow: var(--grow); }
  .row12-in > li:focus-within a > span, .row12-in > li:focus-within a::after { opacity: 1; }
}
@media (max-width: 760px) {
  .row12-in { height: 330px; overflow-x: auto; scroll-snap-type: x proximity; gap: 6px; scrollbar-width: none; }
  .row12-in::-webkit-scrollbar { display: none; }
  .row12-in > li { flex: 0 0 172px; scroll-snap-align: start; }
  .row12-in a > span, .row12-in a::after { opacity: 1; }
  .row12-in a > span { width: 100%; padding: 40px 12px 12px; }
  .row12-in a > span b, .row12-in .row12-you b { font-size: 21px; }
  .row12-in a > span small { font-size: 12.5px; }
}
.row12-cap { padding-top: 12px; padding-bottom: 14px; color: #a9a497; font: 400 11px/1.55 var(--mono); }
.row12-cap i { margin-right: 8px; font: italic 500 14px/1 var(--serif); color: #fff; }
.creds { display: inline; }
.creds summary { display: inline; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none; color: inherit; }
.creds summary::-webkit-details-marker { display: none; }
.creds ul { columns: 2; column-gap: 40px; margin: 12px 0 2px; padding: 0; list-style: none; }
.creds li { margin: 0 0 5px; break-inside: avoid; }
@media (max-width: 760px) { .creds ul { columns: 1; } }

/* ---------- the plate that opens an inner page: one framed photograph, the title low on the left ----------
   Two rows: the frame with the title inside it, then the caption, however many lines that takes.
   The dark belongs to the title block, so at any size it reaches full strength just above the first line.
   --clear is the photo left bright above that line. */
.plate { --pad: 16px; --clear: 120px; position: relative; isolation: isolate; display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr); min-height: clamp(560px, min(52vw, 100vh - 82px), 820px); background: #0c0a07; color: #fff; overflow: hidden; border-bottom: 1px solid var(--ink); }
.plate > picture { position: absolute; inset: 0; }
.plate > picture img { position: absolute; left: 0; top: 0; width: 100%; height: var(--photo, 100%); object-fit: cover; object-position: var(--at, 50% 50%); }
.plate::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(rgba(12, 10, 7, .12), rgba(12, 10, 7, 0) 130px); }
.plate::after { content: ""; grid-area: 1 / 1; z-index: 2; margin: var(--pad) var(--pad) 0; border: 1px solid rgba(255, 255, 255, .55); outline: 1px solid rgba(255, 255, 255, .28); outline-offset: -6px; pointer-events: none; }
.plate-in { grid-area: 1 / 1; align-self: end; position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 90px; align-items: end; padding-top: var(--clear); padding-bottom: 46px; }
.plate-in::before { content: ""; position: absolute; z-index: 1; inset: 0 -50vw -110px; pointer-events: none;
  background: linear-gradient(rgba(12, 10, 7, 0) calc(var(--clear) - 116px), rgba(12, 10, 7, .16) calc(var(--clear) - 84px), rgba(12, 10, 7, .46) calc(var(--clear) - 36px), rgba(12, 10, 7, .62) calc(var(--clear) - 4px), rgba(12, 10, 7, .74) 62%, rgba(12, 10, 7, .9)); }
.plate-in > * { position: relative; z-index: 3; }
.plate .kick { opacity: 1; }
.plate h1 { font-size: 72px; margin: 20px 0 0; text-wrap: balance; }
.plate .lede { margin: 0; color: #f1ede3; text-wrap: pretty; }
.plate .toc a, .plate .toc a i { color: #fff; }
.plate .toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.plate-c { grid-area: 2 / 1; position: relative; z-index: 3; margin: 11px var(--pad); min-height: 17px; font: 400 10.5px/1.6 var(--mono); color: rgba(255, 255, 255, .8); text-wrap: balance; }
.plate-c i { margin-right: 8px; font: italic 500 14px/1 var(--serif); color: #fff; }
/* Contact: the request form rises into the photograph */
.plate-ask::before { background: linear-gradient(90deg, rgba(12, 10, 7, .6), rgba(12, 10, 7, .5) 26%, rgba(12, 10, 7, 0) 62%), linear-gradient(rgba(12, 10, 7, .12), rgba(12, 10, 7, 0) 130px); }
.plate-ask .plate-in { grid-template-columns: minmax(0, 1fr) 560px; }
.plate-ask .plate-c { margin-right: calc(max(40px, (100% - 1280px) / 2) + 560px + 28px); }
.plate-ask h1 { margin-bottom: 20px; }
.plate-ask + .ask .ask-in { padding-top: 0; }
.plate-ask + .ask .ask-copy { padding-top: 54px; }
.plate-ask + .ask .ask-steps { margin-top: 0; }
.plate-ask + .ask .form { position: relative; z-index: 4; margin-top: -400px; }
@media (max-width: 1100px) {
  .plate-in { column-gap: 48px; }
  .plate h1 { font-size: 56px; }
  .plate-ask .plate-in { grid-template-columns: minmax(0, 1fr); }
  .plate-ask .plate-c { margin-right: var(--pad); }
  .plate-ask + .ask .form { margin-top: 0; }
}
/* narrow: the photo stays clear at the top and ends below the headline, which shows more of it from side to side */
@media (max-width: 900px) {
  .plate { --clear: max(124px, min(max(36vw, 200px), 36vh, 320px)); --photo: calc(var(--clear) + 250px); min-height: 0; }
  .plate-in { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .plate-in::before { background: linear-gradient(rgba(12, 10, 7, 0) calc(var(--clear) - 116px), rgba(12, 10, 7, .16) calc(var(--clear) - 84px), rgba(12, 10, 7, .48) calc(var(--clear) - 36px), rgba(12, 10, 7, .66) calc(var(--clear) - 4px), rgba(12, 10, 7, .84) calc(var(--clear) + 120px), #0c0a07 calc(var(--clear) + 240px)); }
}
@media (max-width: 640px) {
  .plate { --pad: 10px; }
  .plate h1 { font-size: 46px; }
  .plate-in { padding-left: 30px; padding-right: 30px; padding-bottom: 32px; }
  .plate-c { margin-top: 9px; margin-bottom: 10px; line-height: 1.45; }
}

/* ---------- the closing room ---------- */
.room { position: relative; display: flex; align-items: center; min-height: clamp(600px, 50vw, 1240px); background: #3c362c; color: #fff; border-top: 1px solid var(--ink); overflow: hidden; }
.room .pic-2 { --y: .1; left: min(0px, calc(100cqw - 24px - var(--pw) * .872)); }      /* the twelve panes end at .863 of the picture: keep them all in view */
.room .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 17, 12, .46), rgba(20, 17, 12, .16) 46%, rgba(20, 17, 12, 0) 62%); }
.room .pic-2 > picture { transition: opacity 1.8s ease-in-out; }
.room.fx .r11, .room.fx .r12 { opacity: 0; }
.room.fx.sun .r11 { opacity: 1; }
.room.fx.all .r12 { opacity: 1; }
.room .btn-hl { background: #ffe252; border-color: #ffe252; }
.room .btn-hl:hover { background: #ffec8a; border-color: #ffec8a; }
.room-in { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.room-in > * { max-width: min(640px, 47vw); }
.room h2 { margin: 0 0 24px; font: 500 clamp(52px, 5.1vw, 92px)/1 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.room p { margin: 0 0 32px; font-size: 18px; max-width: min(28em, 47vw); color: #f1ede3; text-wrap: pretty; }
@media (max-width: 760px) {
  .room { align-items: flex-end; min-height: 760px; }
  .room .pic { bottom: 120px; }
  .room .pic::after { background: linear-gradient(rgba(28, 24, 18, 0) 48%, #2a251d 100%); }
  .room { background: #2a251d; }
  .room-in { padding-bottom: 52px; }
  .room-in > * { max-width: none; }
  .room h2 { font-size: 44px; margin-bottom: 16px; }
  .room p { font-size: 16.5px; margin-bottom: 24px; max-width: 28em; }
}

/* ---------- the footer: night, on a plan of the mark's own blocks ---------- */
.foot { position: relative; isolation: isolate; border-top: 0; padding: 76px 0 34px; background: var(--night); color: var(--chalk); overflow: hidden; }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='96'%3E%3Cpath d='M.5.5h53v77H.5z' fill='none' stroke='%23fff' stroke-opacity='.13'/%3E%3C/svg%3E") right 0 bottom 6px;
  -webkit-mask: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, .3) 70%, #000 92%); mask: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, .3) 70%, #000 92%); }
/* one of those blocks (each tile keeps its block in its top left corner, with 18px to spare on the right and below).
   Both hang from the bottom, so the block stays clear of the line above the small print on a footer of any height */
.foot::after { content: ""; position: absolute; z-index: -1; right: 18px; bottom: 120px; width: 54px; height: 78px; background: #ffe252; }
.foot .brand svg { color: var(--chalk); }
.foot-brand p, .foot-col { color: #cfcabd; }
.foot-col h4, .foot-base { color: #a9a497; }
.foot-col a:hover { color: #fff; }
.foot-base { border-color: #3b3933; padding-right: 110px; }
.foot .btn { background: #ffe252; border-color: #ffe252; color: var(--ink); }
.foot .btn:hover { background: #ffec8a; }
@media (max-width: 1500px) { .foot-top { padding-right: 60px; } }
@media (max-width: 1100px) { .foot-top { padding-right: 0; } .foot-base { padding-right: 80px; } }
@media (min-width: 641px) and (max-width: 760px) { .foot::after { bottom: 216px; } }      /* a row higher: the last line runs to three there */
@media (max-width: 640px) { .foot { padding-top: 56px; } .foot::before { background-position: right 0 top -30px; } .foot::after { top: 354px; bottom: auto; } .foot-base { padding-right: 0; } }

/* ---------- shown only when scripts are off ---------- */
.nojs { margin: 0; padding: 12px 40px; background: #ffe252; color: var(--ink); font: 500 15px/1.4 var(--sans); text-align: center; }
.nojs a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the phone menu ---------- */
.menu { display: none; margin-left: auto; }
.menu summary { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 14px; cursor: pointer; list-style: none; font: 600 15px/1 var(--sans); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 18px; height: 7px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.menu[open] summary::after { height: 0; border-bottom: 0; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 6px 40px 24px; background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); box-shadow: 0 18px 30px rgba(40, 32, 18, .14); }
.menu nav a { padding: 15px 0; border-bottom: 1px solid var(--rule); font: 500 22px/1.2 var(--serif); letter-spacing: -.01em; }
.menu nav a[aria-current="page"] { background: linear-gradient(#ffe252, #ffe252) left 2px center / 12px 17px no-repeat; padding-left: 26px; }
.menu nav .btn { display: inline-flex; margin-top: 20px; padding: 16px 20px; border: 0; background: var(--ink); color: #fff; font: 600 16px/1 var(--sans); letter-spacing: 0; }
@media (max-width: 1000px) { .menu { display: block; } .nav .links, .nav .nav-in > .btn { display: none; } }
@media (min-width: 1001px) and (max-width: 1080px) { .nav-in { gap: 28px; } .links { gap: 21px; } .nav .nav-in > .btn { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 420px) { .nav-in { gap: 16px; } .brand { gap: 9px; } .brand svg { width: 28px; height: 28px; } .nav .brand b { font-size: 20px; } .menu summary { padding-left: 4px; } }
@media (max-width: 350px) { .menu summary { gap: 0; font-size: 0; } .btn-lg { padding-left: 16px; padding-right: 16px; font-size: 15px; } }
@media (max-width: 640px) { .menu nav { padding-left: 20px; padding-right: 20px; } }

@media (prefers-reduced-motion: reduce) {
  .bl img, .bl i, .bl span, .row12-in > li, .row12-in a > span, .row12-in a::after, .room .pic-2 > picture, .fp-after { transition: none !important; }
}
