/* Red's Painting, Inc. ------------------------------------------------------
   Paper, ink and one red. Newsreader for headlines, Instrument Sans for text.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-display.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-display.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-display-italic.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-display-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #F4F0E8;
  --paper-2: #ECE6DB;
  --paper-3: #E1D9CB;
  --ink: #181613;
  --ink-2: #211E1A;
  --black: #0F0D0B;
  --text: #1C1A17;
  --body: #46413A;
  --muted: #6A6359;
  --line: rgba(24, 22, 19, .14);
  --red: #A8141E;
  --red-deep: #8A0F17;
  --red-on-dark: #E56A6F;
  --on-dark: #EEE8DE;
  --on-dark-body: #C9C1B5;
  --on-dark-muted: #A79F93;
  --line-dark: rgba(238, 232, 222, .16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gut: clamp(20px, 4.2vw, 60px);
  --pad: clamp(84px, 11vw, 168px);
  --max: 1360px;
  --mast-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rh: 230px;           /* justified gallery row height */
  --gap: 10px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}
.dark a:focus-visible, .ink a:focus-visible, .dark button:focus-visible, .lb :focus-visible { outline-color: var(--on-dark); }
h1, h2, h3, p, dl, dd, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: italic; }
::selection { background: var(--red); color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 860px; }
.sec { padding-block: var(--pad); }
.sec-tight { padding-block: clamp(56px, 7vw, 104px); }
.paper { background: var(--paper); }
.warm { background: var(--paper-2); }
.dark { background: var(--black); color: var(--on-dark); }
.ink { background: var(--ink); color: var(--on-dark); }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }

/* Type ------------------------------------------------------------------- */
.display, .h1, .h2, .h3, .statement, .lede-serif, .chap, .quote blockquote p, .cover-type, .press-pub, .pj-nav-t, .h-serif {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 340; color: inherit;
}
.display { font-size: clamp(46px, 7.2vw, 112px); line-height: .98; letter-spacing: -.025em; font-weight: 300; }
.h1 { font-size: clamp(42px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.02em; font-weight: 300; max-width: 18ch; }
.h2 { font-size: clamp(31px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -.012em; font-weight: 320; max-width: 20ch; }
.h3 { font-size: clamp(25px, 2.1vw, 31px); line-height: 1.15; letter-spacing: -.005em; font-weight: 380; }
.h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.h3 a:hover { background-size: 100% 1px; }
.p { color: var(--body); max-width: 60ch; }
.p + .p { margin-top: 1.1em; }
.h2 + .p, .h1 + .p, .h2 + .facts { margin-top: 28px; }
.lede { font-size: clamp(17px, 1.35vw, 19px); margin-top: 28px; max-width: 56ch; }
.dark .p, .ink .p { color: var(--on-dark-body); }
.small { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.dark .small, .ink .small { color: var(--on-dark-muted); }
.label {
  font-family: var(--sans); font-size: 11px; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); margin-bottom: 22px;
}
.dark .label, .ink .label { color: var(--on-dark-muted); }
.cap { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 14px; max-width: 56ch; }
.dark .cap, .ink .cap { color: var(--on-dark-muted); }
.prose p { color: var(--body); max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: 380; font-size: 25px; margin: 44px 0 12px; }
.prose a, .p a { color: var(--red); text-underline-offset: 3px; }
.dark .p a, .ink .p a { color: var(--on-dark); }
.lede-serif { font-size: clamp(23px, 2.2vw, 31px); line-height: 1.3; margin-bottom: 28px; max-width: 26ch; color: var(--text); }
.rule-red { display: block; width: 56px; height: 1px; background: var(--red); margin: 0 auto 44px; }

/* Buttons and links -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 24px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--black); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.tlink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(24, 22, 19, .3); transition: gap .5s var(--ease), border-color .5s;
}
.tlink:hover { gap: 18px; border-color: var(--red); }
.tlink-light, .dark .tlink, .ink .tlink { color: var(--on-dark); border-color: rgba(238, 232, 222, .4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.center-row { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

/* Masthead ----------------------------------------------------------------- */
.mast {
  position: fixed; inset: 0 0 auto; z-index: 60; color: var(--text);
  background: rgba(244, 240, 232, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease);
}
.mast-in { height: var(--mast-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.brand-script { display: block; width: 92px; color: var(--red); transition: color .6s var(--ease); flex: none; }
.brand-script svg { display: block; width: 100%; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; transition: border-color .6s; }
.brand-name { font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; line-height: 1; }
.brand-desc { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.3; white-space: nowrap; transition: color .6s; }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 14px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { background: var(--red); }
.mast-cta { min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; min-height: 44px; padding: 0 2px; cursor: pointer; }
.menu-btn-bars { position: relative; width: 22px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

/* Overlay masthead over a dark hero or opening, until the reader scrolls past it. */
body[data-header="overlay"] .mast:not(.is-solid) { background: transparent; border-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-header="overlay"] .mast:not(.is-solid) .brand-script { color: #fff; }
body[data-header="overlay"] .mast:not(.is-solid) .brand-text { border-color: rgba(255, 255, 255, .3); }
body[data-header="overlay"] .mast:not(.is-solid) .brand-desc { color: rgba(255, 255, 255, .78); }
body[data-header="overlay"] .mast:not(.is-solid) .nav a[aria-current="page"]::after { background: #fff; }
body:not([data-header="overlay"]) main { padding-top: var(--mast-h); }

.menu { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--mast-h) + 28px) var(--gut) 36px; }
.menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.12; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.menu-foot { display: flex; flex-direction: column; gap: 16px; }
.menu-tel { color: var(--on-dark); text-decoration: none; font-size: 20px; text-align: center; min-height: 44px; display: grid; place-items: center; }
html.menu-open .mast { background: var(--ink); color: var(--on-dark); border-color: var(--line-dark); z-index: 80; }
html.menu-open .mast .brand-script { color: var(--on-dark); }
html.menu-open .mast-cta { visibility: hidden; }
html.menu-open, html.lb-open { overflow: hidden; }

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; max-height: 1100px; display: flex; align-items: flex-end; overflow: hidden; background: var(--black); color: #fff; isolation: isolate; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 10, 8, .86) 0%, rgba(12, 10, 8, .42) 30%, rgba(12, 10, 8, 0) 58%),
    linear-gradient(to bottom, rgba(12, 10, 8, .5) 0%, rgba(12, 10, 8, 0) 22%),
    linear-gradient(80deg, rgba(12, 10, 8, .55) 0%, rgba(12, 10, 8, 0) 55%); }
.hero-body { padding-top: calc(var(--mast-h) + 60px); padding-bottom: clamp(56px, 9vh, 96px); }
.hero .display { max-width: 11.5ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.hero-eyebrow { color: rgba(255, 255, 255, .86); margin-bottom: 26px; }
.hero-sub { font-family: var(--serif); font-style: italic; font-weight: 320; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.35; color: rgba(255, 255, 255, .9); margin-top: 26px; max-width: 34ch; }
.hero-credit { position: absolute; right: var(--gut); bottom: 28px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* Openings (dark or paper page tops) ---------------------------------------- */
.opening { padding: calc(var(--mast-h) + clamp(64px, 9vw, 128px)) 0 clamp(56px, 7vw, 96px); }
body:not([data-header="overlay"]) .opening { padding-top: clamp(64px, 9vw, 128px); }
.opening .h1 { max-width: 16ch; }
.opening-full { min-height: 100svh; display: flex; align-items: center; }
.opening-short { padding-bottom: clamp(40px, 5vw, 64px); }
.meta-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.meta-row dt { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-muted); }
.meta-row dd { font-family: var(--serif); font-size: 20px; line-height: 1.3; margin-top: 10px; color: var(--on-dark); }

/* Intro statement ------------------------------------------------------------ */
.intro-in { max-width: 980px; text-align: center; }
.statement { font-size: clamp(25px, 2.7vw, 39px); line-height: 1.38; font-weight: 300; letter-spacing: -.005em; }
.statement em { color: var(--red); }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 44px; }
.ticks li { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ticks li + li::before { content: "·"; margin-right: 28px; color: var(--red); }

/* Section heads ---------------------------------------------------------------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head .p { justify-self: end; }

/* Justified gallery -------------------------------------------------------------
   Each tile grows in proportion to its aspect ratio, so every row is one height. */
.jgrid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.jgrid::after { content: ""; flex-grow: 1000000; }
.tile {
  --ar: 1.5;
  position: relative; display: block; overflow: hidden; background: var(--paper-3);
  flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--rh)); min-width: 0;
  cursor: zoom-in;
}
.tile img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(15, 13, 11, 0); transition: background .6s var(--ease); pointer-events: none; }
.tile:hover::after { background: rgba(15, 13, 11, .08); }
/* Home: one large photo and four small, like a magazine spread. */
.spread { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gap); aspect-ratio: 2.3; }
.spread .tile { height: 100%; min-height: 0; }
.spread .tile:first-child { grid-row: 1 / span 2; }
.spread .tile picture, .spread .tile img { height: 100%; }
.spread .tile img { aspect-ratio: auto; object-fit: cover; }
.jgrid-lg { --rh: 300px; }
.lb-extra { display: none; }

/* Home: project rows -------------------------------------------------------- */
.pj { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.pj:last-of-type { border-bottom: 1px solid var(--line); }
.pj-num { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--red); margin-bottom: 14px; }
.pj-loc { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.pj-sum { color: var(--body); font-size: 15.5px; line-height: 1.65; margin: 18px 0 14px; max-width: 34ch; }
.pj-count { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }

/* Credits (shown live only when cleared) ---------------------------------- */
.credits { margin-top: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.credits div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.credits dt { color: var(--muted); }
.credits dd { color: var(--text); }

/* Work index ---------------------------------------------------------------- */
.index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.index a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: border-color .4s, background-color .4s; }
.index a:hover { border-color: var(--text); background: rgba(255, 255, 255, .35); }
.index-n { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--red); }
.index-c { font-size: 12px; color: var(--muted); }
.wk { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.wk-in { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.wk-sticky { position: sticky; top: calc(var(--mast-h) + 32px); }
.wk .jgrid { --rh: 210px; }

/* Project page ------------------------------------------------------------------ */
.pj-head { padding-bottom: clamp(40px, 5vw, 64px); }
.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.pj-head .h1 { max-width: 14ch; }
.pj-head-loc { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pj-lead .tile { --rh: 100vw; width: 100%; max-height: 92svh; }
.pj-lead .tile img { max-height: 92svh; }
.pj-body { align-items: start; }
.pj-facts { padding-top: 6px; }
.prose-lead > p:first-child { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.32; font-weight: 340; color: var(--text); max-width: 30ch; margin-bottom: 1.2em; }
.facts-stack { grid-template-columns: 1fr; margin-top: 0; }
.pj-press { margin-top: 28px; }
.pj-press .label { margin-bottom: 10px; }
.pj-press li { font-size: 15px; padding: 6px 0; }
.pj-press a { color: var(--red); text-underline-offset: 3px; }
.pj-gallery { padding-bottom: clamp(72px, 8vw, 120px); }
.pj-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; padding-block: 40px clamp(72px, 8vw, 112px); border-top: 1px solid var(--line); }
.pj-nav-a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-height: 44px; }
.pj-nav-a .label { margin: 0; }
.pj-nav-t { font-size: clamp(21px, 2vw, 28px); line-height: 1.2; transition: color .4s; }
.pj-nav-a:hover .pj-nav-t { color: var(--red); }
.pj-nav-all { text-align: center; }
.pj-nav-next { text-align: right; }

/* Two columns, facts, certificate ------------------------------------------------ */
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 40px 0 34px; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin-top: 6px; }
.cert { justify-self: center; width: 100%; max-width: 460px; }
.cert-card { background: #fff; padding: clamp(28px, 3.6vw, 52px); box-shadow: 0 40px 70px -44px rgba(24, 22, 19, .55); }
.detail { margin-top: clamp(40px, 5vw, 64px); }

/* Discretion, quotes ------------------------------------------------------------- */
.discretion .two { align-items: start; }
.discretion .h2 { max-width: 15ch; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px); margin-top: 12px; }
.quote { border-left: 1px solid var(--red); padding-left: clamp(22px, 2.6vw, 36px); }
.quote blockquote p { font-size: clamp(21px, 2vw, 27px); line-height: 1.38; font-weight: 320; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); }
.quote figcaption span { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--text); }

/* About ----------------------------------------------------------------------------- */
.page-about .opening, .page-contact .opening { background: var(--ink); color: var(--on-dark); }
.page-about .opening .h1 { max-width: 19ch; }
.story-head { margin-bottom: clamp(48px, 6vw, 80px); }
.story { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.chap { display: flex; align-items: baseline; gap: 16px; font-size: 27px; font-weight: 380; margin: 64px 0 18px; }
.chap:first-child { margin-top: 0; }
.chap-n { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.story-side { position: sticky; top: calc(var(--mast-h) + 32px); }
.holds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 60px); }
.hold { border-top: 1px solid var(--line); padding-top: 26px; }
.hold-n { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; color: var(--red); margin-bottom: 18px; }
.hold .h3 { margin-bottom: 14px; }
.hold .p { font-size: 15.5px; }

/* Press --------------------------------------------------------------------------------- */
.shelf { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 20px; align-items: start; }
.shelf-item { display: block; text-decoration: none; transition: transform .7s var(--ease); }
.shelf-item:hover { transform: translateY(-6px); }
.shelf-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .9); }
.shelf-name { display: block; margin-top: 14px; font-size: 12.5px; color: var(--on-dark-body); }
.cover-type { display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 14%; text-align: center; background: var(--paper-2); color: var(--text); border: 1px solid var(--line); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; font-weight: 400; }
.dark .cover-type { background: var(--ink-2); color: var(--on-dark); border-color: var(--line-dark); }
.cover-type-lg { font-size: clamp(24px, 2.4vw, 34px); }
.press-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.press-cover .tile { --rh: 300px; width: 100%; box-shadow: 0 32px 56px -34px rgba(24, 22, 19, .6); }
.press-cover .tile img { aspect-ratio: 3 / 4; }
.press-meta { margin-top: 20px; }
.press-pub { font-size: 25px; line-height: 1.15; font-weight: 380; }
.press-title { margin-top: 6px; font-size: 14.5px; color: var(--body); line-height: 1.5; }
.press-issue, .press-proj, .press-pages { margin-top: 6px; font-size: 13px; color: var(--muted); }
.press-proj a { color: var(--red); }

/* Inquire --------------------------------------------------------------------------- */
.inquire { background: var(--black); color: var(--on-dark); }
.inquire-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.inquire .h2 { max-width: 14ch; }
.inquire-intro .p { margin-top: 28px; max-width: 44ch; }
.contact-list { margin: 40px 0 22px; }
.contact-list div { padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact-list div:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-list a { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); color: var(--on-dark); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; word-break: break-word; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin-bottom: 30px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld-wide { grid-column: 1 / -1; }
.fld label { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.fld label span { color: var(--red-on-dark); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 0; appearance: none; -webkit-appearance: none;
  background: rgba(238, 232, 222, .05); border: 1px solid rgba(238, 232, 222, .22); color: var(--on-dark);
  font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .35s, background-color .35s;
}
.fld textarea { min-height: 128px; resize: vertical; }
.fld select { cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A79F93' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.fld select option { color: var(--text); background: var(--paper); }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(238, 232, 222, .4); }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: rgba(238, 232, 222, .4); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--on-dark); background-color: rgba(238, 232, 222, .09); }
.fld [aria-invalid="true"] { border-color: var(--red-on-dark); }
.form-err { margin-top: 16px; color: var(--red-on-dark); font-size: 14px; }
.form-note { margin-top: 14px; }
.form-note a { color: var(--on-dark-body); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.office { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.office .label { margin-bottom: 12px; }

/* Footer ------------------------------------------------------------------------------ */
.foot { background: var(--black); color: var(--on-dark-muted); padding: 80px 0 32px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1fr); gap: 48px; }
.foot-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--on-dark); text-decoration: none; }
.foot-logo svg { width: 110px; height: auto; color: #D3192A; }
.foot-logo span { font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--line-dark); }
.foot-brand p { margin: 18px 0 26px; max-width: 34ch; font-size: 15px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col .label { margin-bottom: 12px; }
.foot-col a { color: var(--on-dark); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-col address { margin-top: 10px; font-size: 14.5px; line-height: 1.6; }
.foot-legal { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 12.5px; letter-spacing: .02em; }
.foot-legal a { color: var(--on-dark); text-underline-offset: 3px; }

/* Lightbox ----------------------------------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #0C0A08; color: var(--on-dark); }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(12px, 2vw, 24px); flex: none; }
.lb-cap { font-size: 13px; line-height: 1.4; color: var(--on-dark-body); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-cap b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--on-dark); margin-right: 8px; }
.lb-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lb-count { font-size: 12px; letter-spacing: .1em; color: var(--on-dark-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.lb-btn { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--on-dark); cursor: pointer; transition: border-color .3s, background-color .3s; }
.lb-btn:hover { border-color: var(--line-dark); background: rgba(238, 232, 222, .06); }
.lb-btn svg, .lb-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb-btn[aria-pressed="true"] { border-color: var(--on-dark-muted); }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; display: grid; place-items: center; user-select: none; -webkit-user-select: none; }
.lb-img { max-width: none; max-height: none; transform-origin: 50% 50%; will-change: transform; cursor: zoom-in; opacity: 0; transition: opacity .35s ease; -webkit-user-drag: none; }
.lb-img.is-ready { opacity: 1; }
.lb-img.is-zoomed { cursor: grab; }
.lb-img.is-dragging { cursor: grabbing; }
.lb-img.anim { transition: transform .32s var(--ease), opacity .35s ease; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 13, 11, .45); border: 1px solid rgba(238, 232, 222, .22); color: var(--on-dark); cursor: pointer; transition: background-color .3s, opacity .3s; }
.lb-arrow:hover { background: rgba(238, 232, 222, .14); }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }
.lb.is-zoomed .lb-arrow { opacity: 0; pointer-events: none; }
.lb-hint { flex: none; text-align: center; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); padding: 8px 12px 14px; }
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .only-touch { display: inline; } .only-mouse { display: none; } .lb-arrow { display: none; } }

/* Reveal on scroll (progressive) ---------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: settle 5s var(--ease) both; }
  .hero-body > * { animation: rise 1.4s var(--ease) both; }
  .hero-body > :nth-child(2) { animation-delay: .15s; }
  .hero-body > :nth-child(3) { animation-delay: .3s; }
  .hero-body > :nth-child(4) { animation-delay: .45s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Responsive ---------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .brand-desc { display: none; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  :root { --mast-h: 72px; --rh: 190px; }
  .nav, .mast-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .pj, .wk-in { grid-template-columns: minmax(0, 1fr); }
  .wk-sticky { position: static; }
  .press-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sec-head .p { justify-self: start; }
}
@media (max-width: 900px) {
  .two, .story, .inquire-grid { grid-template-columns: minmax(0, 1fr); }
  .story-side { position: static; }
  .holds, .quotes, .office { grid-template-columns: minmax(0, 1fr); }
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .cert { justify-self: start; }
}
@media (max-width: 700px) {
  :root { --rh: 128px; --gap: 6px; }
  body { font-size: 16px; }
  .brand-script { width: 76px; }
  .brand-text { padding-left: 12px; }
  .brand-name { font-size: 10px; letter-spacing: .24em; }
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; aspect-ratio: auto; }
  .spread .tile { aspect-ratio: 4 / 3; height: auto; }
  .spread .tile:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .jgrid-lg, .wk .jgrid { --rh: 132px; }
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .pj-nav { grid-template-columns: 1fr 1fr; }
  .pj-nav-all { display: none; }
  .hero-credit { display: none; }
  .ticks { flex-direction: column; align-items: center; gap: 8px; }
  .ticks li + li::before { content: none; }
  .actions .btn { flex: 1 1 100%; }
  .lb-bar { padding: 8px 10px; }
  .lb-cap { font-size: 12px; }
  .lb-count { margin-right: 2px; }
  .credits div { grid-template-columns: 96px 1fr; }
}
@media (max-width: 700px) {
  /* Bigger photos on phones: landscapes run full width, portraits sit two to a row */
  .jgrid-lg, .wk .jgrid { --rh: 210px; }
  .hero-img { object-position: 38% 72%; }
  /* Work index: each house becomes a strip you swipe through */
  .wk .jgrid { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; gap: 8px; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 6px; }
  .wk .jgrid::-webkit-scrollbar { display: none; }
  .wk .jgrid::after { content: none; }
  .wk .tile { flex: 0 0 auto; height: 62vw; max-height: 330px; width: min(84vw, calc(var(--ar) * min(62vw, 330px))); scroll-snap-align: start; scroll-margin-left: var(--gut); }
  .wk .tile picture, .wk .tile img { height: 100%; }
  .wk .tile img { aspect-ratio: auto; }
  .wk-swipe { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .wk-in { gap: 18px; }
  .wk .pj-sum { margin-bottom: 8px; }
}
.wk-swipe { display: none; }

@media (max-width: 480px) {
  .meta-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Area pages (/beverly-hills/, /malibu/, /manhattan-beach/, /venice/, /westside/) ----------------- */
.hero-area { min-height: 88svh; }
.hero-area .h1 { max-width: 17ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }
/* Long headlines sit over the photo, so the left side is shaded a little more than on the home page. */
.hero-area .hero-shade { background:
  linear-gradient(to top, rgba(12, 10, 8, .86) 0%, rgba(12, 10, 8, .42) 30%, rgba(12, 10, 8, 0) 58%),
  linear-gradient(to bottom, rgba(12, 10, 8, .5) 0%, rgba(12, 10, 8, 0) 22%),
  linear-gradient(80deg, rgba(12, 10, 8, .72) 0%, rgba(12, 10, 8, .45) 40%, rgba(12, 10, 8, 0) 66%); }
.area-intro .two, .area-faq .two { align-items: start; }
.area-intro .h2 { max-width: 15ch; }
.area-copy .p { max-width: 62ch; }
.area-work .credits a { color: var(--red); text-underline-offset: 3px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list div { padding: 24px 0; border-top: 1px solid var(--line); }
.faq-list dt { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 25px); line-height: 1.25; font-weight: 380; }
.faq-list dd { margin-top: 10px; color: var(--body); max-width: 60ch; }
.faq-list a { color: var(--red); text-underline-offset: 3px; white-space: nowrap; }
.area-links { margin-top: clamp(56px, 7vw, 96px); }
.area-links .label { margin-bottom: 0; }
.area-links .index { margin-top: 18px; }
/* Work page: a quiet row of links to the area pages */
.by-area { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-top: 28px; font-size: 13.5px; }
.by-area .label { margin: 0 6px 0 0; }
.by-area a { color: var(--muted); text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.by-area a:hover { color: var(--red); }
@media (max-width: 700px) {
  .hero-area { min-height: 100svh; }
  .hero-area .hero-shade { background:
    linear-gradient(to top, rgba(12, 10, 8, .9) 0%, rgba(12, 10, 8, .66) 42%, rgba(12, 10, 8, .2) 72%, rgba(12, 10, 8, 0) 88%),
    linear-gradient(to bottom, rgba(12, 10, 8, .5) 0%, rgba(12, 10, 8, 0) 22%); }
  .hero-area .hero-sub { font-size: 18px; margin-top: 18px; }
  .hero-area .hero-eyebrow { margin-bottom: 18px; }
  .hero-area .actions { margin-top: 28px; }
}

/* Ways into the editions */
.btn-edition { gap: 12px; }
.btn-edition svg, .tlink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pj-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pj-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.edition-home .two { align-items: center; }
.bookcover { display: block; perspective: 2000px; text-decoration: none; justify-self: center; width: min(400px, 78vw); }
.bookcover-inner { position: relative; display: block; aspect-ratio: 3 / 4; transform: rotateY(-20deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 1.1s var(--ease); box-shadow: 30px 40px 70px -20px rgba(0, 0, 0, .75); }
.bookcover:hover .bookcover-inner, .bookcover:focus-visible .bookcover-inner { transform: rotateY(-6deg) rotateX(2deg); }
.bookcover-inner picture, .bookcover-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bookcover-inner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 8, 6, .85), rgba(10, 8, 6, .1) 55%), linear-gradient(to right, rgba(0, 0, 0, .35), rgba(255, 255, 255, .08) 3%, rgba(0, 0, 0, 0) 7%); }
.bookcover-inner::after { content: ""; position: absolute; top: 1.5%; bottom: 1.5%; right: -14px; width: 14px; transform: rotateY(90deg); transform-origin: left; background: repeating-linear-gradient(to bottom, #EFEAE1 0 2px, #D9D2C5 2px 3px); }
.bookcover-txt { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 8%; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.bookcover-logo { position: absolute; z-index: 2; top: 7%; left: 8%; width: 30%; color: #fff; }
.bookcover-logo svg { width: 100%; height: auto; display: block; }
.bookcover-k { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.bookcover-t { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.bookcover-s { font-family: var(--serif); font-style: italic; font-size: 17px; opacity: .88; }

/* The Edition: page-turn magazine ------------------------------------------------------
   Type inside pages scales with the page (container units), with a floor for phones. */
.page-edition { overflow: hidden; background: #0C0A08; }
.page-edition .mast, .page-edition .foot, .page-edition .skip, .page-edition .menu { display: none !important; }
.page-edition main { padding-top: 0 !important; }
.ed { position: fixed; inset: 0; display: flex; flex-direction: column; color: var(--on-dark);
  background: radial-gradient(120% 90% at 50% 42%, #2B2723 0%, #161310 55%, #0B0908 100%); }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px clamp(10px, 2vw, 24px); flex: none; }
.ed-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark); text-decoration: none; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; min-width: 0; }
.ed-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.ed-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.ed-title { flex: 1; min-width: 0; text-align: center; font-family: var(--serif); font-size: 18px; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-title-k { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red-on-dark); margin-right: 12px; vertical-align: 2px; }
.ed-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.ed-count { font-size: 12px; letter-spacing: .08em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: 4px; }
.ed-stage { position: relative; flex: 1 1 auto; min-height: 0; margin: 4px clamp(8px, 4vw, 72px) 0; display: grid; place-items: center; }
.ed-frame { position: relative; }
.ed-book { position: relative; }
.ed-frame::before { content: ""; position: absolute; left: 3%; right: 3%; top: 6%; bottom: 1%; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85); pointer-events: none; }
.ed[data-mode="single"] .ed-frame::before { left: 6%; right: 6%; }
.ed-foot { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 12px max(14px, env(safe-area-inset-bottom)); flex: none; }
.ed-nav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--on-dark); background: rgba(238, 232, 222, .06); border: 1px solid rgba(238, 232, 222, .24); transition: background-color .3s, border-color .3s; }
.ed-nav:hover { background: rgba(238, 232, 222, .14); border-color: rgba(238, 232, 222, .5); }
.ed-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ed-hint { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); text-align: center; min-width: 0; transition: opacity .8s; }
.ed-hint.is-done { opacity: 0; }
.ed-noscript { position: absolute; inset: auto 0 40% 0; text-align: center; color: var(--on-dark); }
.ed-noscript a { color: var(--on-dark); }

/* Pages */
.pg { position: relative; overflow: hidden; background: #F7F3EC; color: var(--text); container-type: size; user-select: none; -webkit-user-select: none; }
.pg::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pg-l::after { background: linear-gradient(to left, rgba(20, 16, 12, .18), rgba(20, 16, 12, .04) 4%, transparent 9%); }
.pg-r::after { background: linear-gradient(to right, rgba(20, 16, 12, .18), rgba(20, 16, 12, .04) 4%, transparent 9%); }
.ed[data-mode="single"] .pg::after, .pg-cover::after, .pg-back::after { background: none; }
.pg img { max-width: none; pointer-events: none; -webkit-user-drag: none; }
.pg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-half { width: 200%; }
.pg-l .pg-half { left: 0; }
.pg-r .pg-half { left: -100%; }
.pg-full::before, .pg-spread.pg-r::before { content: ""; position: absolute; inset: 55% 0 0 0; z-index: 1; background: linear-gradient(to top, rgba(10, 8, 6, .62), rgba(10, 8, 6, 0)); pointer-events: none; }
.pg-cap { position: absolute; z-index: 2; left: 7cqw; right: 7cqw; bottom: 8.5cqh; margin: 0; color: rgba(255, 255, 255, .92); font-size: clamp(11px, 2.1cqw, 15px); line-height: 1.45; max-width: 60ch; }
.pg-spread.pg-l .pg-cap { display: none; }

.pg-folio { position: absolute; z-index: 2; bottom: 3.6cqh; display: flex; gap: 1.6cqw; align-items: baseline; font-size: clamp(9px, 1.7cqw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pg-folio b { font-weight: 600; color: var(--text); letter-spacing: .04em; }
.pg-folio-l { left: 6cqw; }
.pg-folio-r { right: 6cqw; flex-direction: row-reverse; }
.pg-folio.is-light, .pg-folio.is-light b { color: rgba(255, 255, 255, .85); }

/* Covers */
.pg-cover { background: #15120F; color: #fff; }
.pg-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 8, 6, .82) 0%, rgba(10, 8, 6, .35) 38%, rgba(10, 8, 6, 0) 62%), linear-gradient(to bottom, rgba(10, 8, 6, .45), rgba(10, 8, 6, 0) 24%); }
.pg-cover-txt { position: absolute; z-index: 2; left: 8cqw; right: 8cqw; bottom: 9cqh; display: flex; flex-direction: column; gap: 1.6cqh; }
.pg-cover-logo { position: absolute; z-index: 2; top: 7cqh; left: 8cqw; width: clamp(80px, 24cqw, 190px); color: #fff; }
.pg-logo svg { display: block; width: 100%; height: auto; }
.pg-kicker { font-size: clamp(9px, 1.9cqw, 13px); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.pg-cover-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 11.5cqw, 92px); line-height: .98; letter-spacing: -.02em; }
.pg-cover-sub { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 3.4cqw, 26px); color: rgba(255, 255, 255, .88); }

/* Text, opener and contents pages */
.pg-pad { position: absolute; inset: 0; padding: 12cqh 10cqw 12cqh; display: flex; flex-direction: column; overflow: hidden; }
.pg-label { font-size: clamp(9px, 1.8cqw, 12px); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin: 0 0 3cqh; }
.pg-h { margin: 0; font-family: var(--serif); font-weight: 320; font-size: clamp(26px, 7.4cqw, 54px); line-height: 1.05; letter-spacing: -.012em; }
.pg-loc { margin: 2.2cqh 0 0; font-size: clamp(10px, 1.9cqw, 13px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pg-body { margin-top: 4.5cqh; }
.pg-body p { margin: 0; font-size: clamp(14px, 2.6cqw, 19px); line-height: 1.62; color: var(--body); }
.pg-body p + p { margin-top: 1.1em; }
.pg-body p:first-child { font-family: var(--serif); font-size: clamp(17px, 3.4cqw, 25px); line-height: 1.38; color: var(--text); }
.pg-sign { font-family: var(--serif); font-style: italic; color: var(--text) !important; }
.pg-meta { margin-top: auto; padding-top: 2cqh; font-size: clamp(10px, 1.8cqw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pg-num { margin: 0 0 2cqh; font-family: var(--serif); font-size: clamp(40px, 16cqw, 120px); line-height: 1; font-weight: 300; color: var(--red); }
.pg-sum { margin: 4cqh 0 0; font-family: var(--serif); font-size: clamp(17px, 3.4cqw, 25px); line-height: 1.38; }
.pg-link { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: clamp(10px, 1.9cqw, 13px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--red); pointer-events: auto; }
.pg-credits { margin-top: 3.5cqh; display: grid; gap: .8cqh; font-size: clamp(12px, 2.1cqw, 15px); }
.pg-credits div { display: grid; grid-template-columns: 34% 1fr; gap: 10px; }
.pg-credits dt { color: var(--muted); }
.pg-toc { list-style: none; margin: 3cqh 0 0; padding: 0; display: grid; gap: 0; }
.pg-toc li { display: grid; grid-template-columns: 9cqw 1fr auto; align-items: baseline; gap: 2cqw; padding: 2cqh 0; border-top: 1px solid var(--line); }
.pg-toc-n { font-size: clamp(10px, 1.9cqw, 13px); font-weight: 600; letter-spacing: .14em; color: var(--red); }
.pg-toc-t { font-family: var(--serif); font-size: clamp(16px, 3.3cqw, 24px); line-height: 1.2; }
.pg-toc-t em { display: block; font-family: var(--sans); font-style: normal; font-size: clamp(9px, 1.6cqw, 11.5px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .6cqh; }
.pg-toc-p { font-family: var(--serif); font-size: clamp(14px, 2.6cqw, 19px); color: var(--muted); }

/* Photo layouts */
/* StPageFlip sets display:block on each page, so layouts live in an inner box */
.pg-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4cqh; padding: 8cqh 8cqw 11cqh; }
.pg-fig { margin: 0; }
.pg-fig-frame { position: relative; width: 100%; overflow: hidden; background: var(--paper-3); }
.pg-pair .pg-in { justify-content: stretch; }
.pg-pair .pg-fig { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.pg-pair .pg-fig-frame { flex: 1 1 auto; min-height: 0; aspect-ratio: auto !important; }
.pg-plate .pg-fig-frame { max-height: 70cqh; }
.pg-fig-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-fig figcaption { margin-top: 1.4cqh; font-size: clamp(11px, 1.9cqw, 14px); line-height: 1.45; color: var(--muted); }

/* Endpaper and back cover */
.pg-end-in, .pg-back-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10cqw; gap: 2.4cqh; }
.pg-end .pg-logo { width: clamp(90px, 34cqw, 240px); color: var(--red); }
.pg-end-name { margin: 0; font-size: clamp(10px, 2cqw, 14px); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.pg-end-line { margin: 0; font-size: clamp(9px, 1.7cqw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pg-back { background: #15120F; color: var(--on-dark); }
.pg-back .pg-logo { width: clamp(90px, 30cqw, 220px); color: #D3192A; }
.pg-back-h { margin: 1.5cqh 0 1cqh; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 5.6cqw, 42px); line-height: 1.15; max-width: 16ch; }
.pg-btn { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 clamp(18px, 4cqw, 30px); background: var(--red); color: #fff; text-decoration: none; font-size: clamp(10px, 1.9cqw, 12.5px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pg-tel { pointer-events: auto; color: var(--on-dark); text-decoration: none; font-family: var(--serif); font-size: clamp(18px, 3.6cqw, 26px); min-height: 44px; display: inline-flex; align-items: center; }
.pg-next { pointer-events: auto; margin-top: 2cqh; display: flex; flex-direction: column; gap: .6cqh; color: var(--on-dark); text-decoration: none; border-top: 1px solid var(--line-dark); padding-top: 2.4cqh; min-width: 60%; }
.pg-next span { font-size: clamp(9px, 1.7cqw, 11.5px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.pg-next b { font-family: var(--serif); font-weight: 340; font-size: clamp(18px, 3.8cqw, 28px); }
.pg-back-legal { position: absolute; bottom: 4cqh; left: 0; right: 0; margin: 0; font-size: clamp(8.5px, 1.5cqw, 11px); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Press scans */
.pg-scan { background: #E9E4DA; }
.pg-contain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* One-page mode (phones, tall tablets): slightly smaller text so an opening page never overflows */
.ed[data-mode="single"] .pg-pad { padding: 9cqh 8cqw 10cqh; }
.ed[data-mode="single"] .pg-body { margin-top: 3cqh; }
.ed[data-mode="single"] .pg-body p { font-size: clamp(13px, 3.4cqw, 17px); line-height: 1.55; }
.ed[data-mode="single"] .pg-body p:first-child { font-size: clamp(15.5px, 4.2cqw, 21px); line-height: 1.34; }
.ed[data-mode="single"] .pg-in { padding: 6cqh 6cqw 9cqh; gap: 3cqh; }

@media (max-width: 700px) {
  .ed-title { display: none; }
  .ed-back span { max-width: 46vw; }
  .ed-stage { margin: 0; }
  .ed-foot { gap: 12px; padding-top: 8px; }
  .ed-nav { width: 44px; height: 44px; }
}

/* Page turn between projects ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: rp-turn-out .9s cubic-bezier(.45, .05, .2, 1) both; transform-origin: 0% 50%; z-index: 2; }
  ::view-transition-new(root) { animation: rp-under .9s ease both; z-index: 1; }
  html:active-view-transition-type(back)::view-transition-old(root) { animation-name: rp-turn-back; transform-origin: 100% 50%; }
  @keyframes rp-turn-out {
    0% { transform: perspective(2600px) rotateY(0); filter: brightness(1); }
    100% { transform: perspective(2600px) rotateY(-92deg); filter: brightness(.82); }
  }
  @keyframes rp-turn-back {
    0% { transform: perspective(2600px) rotateY(0); filter: brightness(1); }
    100% { transform: perspective(2600px) rotateY(92deg); filter: brightness(.82); }
  }
  @keyframes rp-under { from { filter: brightness(.72); } to { filter: none; } }
}

/* Press flip books: credit line under the viewer bar */
.ed-credit { flex: none; margin: 0; padding: 0 16px 8px; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 240, 232, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
