/* Justin Salem Meyer — refined Contact sheet (white). See DESIGN.md.
   Heading face: Minion Pro, hosted through Justin's existing Adobe Fonts kit. */
@layer reset, base, layout, components, pages;

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-pro-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-pro-latin-600-normal.woff2") format("woff2"); }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  img, svg { display: block; max-width: 100%; height: auto; }
  button, input, select, textarea { font: inherit; }
  ol, ul { margin: 0; padding: 0; }
  figure, blockquote, dl, dd { margin: 0; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    color-scheme: light;
    --cream: #FFFFFF; /* page: fully white per Justin, Nov 5 (was brand cream #F9F8F4) */
    --paper: #FFFFFF;
    --ink: #222222;
    --ink-soft: #4B4741;
    --rule: #DEDAD0;
    --rule-strong: #BDB7AA;
    --footer-rule: #DDDDDD;
    --serif: "minion-pro", Georgia, serif;
    --sans: "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
    --gutter: clamp(1.25rem, 5vw, 4.5rem);
    --wide: 84rem;
    --text: 40rem;
    --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem;
    --space-5: clamp(4rem, 9vw, 8rem);
    --space-6: clamp(6rem, 14vw, 12rem);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
  }
  html { scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
  body { min-height: 100svh; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  ::selection { background: var(--ink); color: var(--cream); }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: var(--rule-strong); cursor: pointer; transition: text-decoration-color .2s var(--ease-out); }
  a:hover { text-decoration-color: currentColor; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 1px; }
  h1, h2, h3, p { margin: 0; }
  h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; letter-spacing: -.012em; overflow-wrap: anywhere; }
  h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; }
  h1 em { font-style: italic; color: var(--ink-soft); }
  h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.06; }
  /* Justin, Nov 22: on phones the headings step clearly above everything else. */
  @media (max-width: 40rem) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.3rem; line-height: 1.08; }
  }
  h3 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  p { max-width: 62ch; }
  .muted { color: var(--ink-soft); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@layer layout {
  .site-nav, .page, .site-footer-inner { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
  .site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 94%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out); }
  .site-header.is-scrolled { border-bottom-color: var(--rule); }
  .site-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); min-height: 5.5rem; }
  .site-mark { display: block; width: clamp(12rem, 22vw, 17rem); }
  .site-mark img { width: 100%; }
  .site-links { display: flex; justify-content: center; gap: clamp(1rem, 2.4vw, 2.25rem); list-style: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
  .site-links a { text-decoration: none; padding-block: .5rem; }
  .site-links a:hover { text-decoration: underline; text-decoration-color: currentColor; }
  .site-cta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); padding: .7rem 1.1rem; }
  .site-cta:hover { background: var(--ink); color: var(--cream); }
  .page { padding-block: var(--space-4) var(--space-6); }
  .section { margin-block-start: var(--space-6); scroll-margin-block-start: 6rem; }
  .section-head { display: grid; gap: var(--space-2); max-width: var(--text); margin-block-end: var(--space-4); }
  .section-head p { color: var(--ink-soft); }
  .site-footer { border-top: 1px solid var(--footer-rule); background: var(--paper); }
  .site-footer-inner { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: var(--space-4); align-items: end; padding-block: var(--space-5); font-size: .95rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; margin-block: var(--space-2); }
  .footer-links a { padding-block: .35rem; }
  .footer-also { color: var(--ink-soft); }

  @media (max-width: 62rem) {
    .site-nav { grid-template-columns: 1fr auto; row-gap: 0; padding-block: .9rem; min-height: 0; }
    .site-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-block: .5rem .25rem; scrollbar-width: none; gap: 1.25rem; }
    .site-links::-webkit-scrollbar { display: none; }
  }
  /* Justin, Nov 22: on phones the logo leads; the menu and header button sit quieter beneath it. */
  @media (max-width: 30rem) {
    .site-links { gap: .9rem; font-size: .66rem; letter-spacing: .1em; color: var(--ink-soft); flex-wrap: wrap; overflow: visible; }
    .site-mark { width: min(100%, 15rem); }
    .site-cta { padding: .5rem .65rem; font-size: .68rem; letter-spacing: .1em; }
    /* Launch audit: 44px touch targets on phones, same look (inline padding; the button's hit area). */
    .site-cta { position: relative; }
    .site-links a { padding-block: .95rem; }
    .site-cta::after { content: ""; position: absolute; inset: -.3rem -.25rem; }
    .site-mark { padding-block: .3rem; margin-block: -.3rem; }
    .site-footer-inner { grid-template-columns: 1fr; }
    .footer-mark { width: 10rem; }
  }
}

@layer components {
  .skip-link { position: absolute; inset-block-start: .5rem; inset-inline-start: 1rem; z-index: 30; transform: translateY(-200%); background: var(--ink); color: var(--cream); padding: .6rem 1rem; }
  .skip-link:focus { transform: none; }
  .lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; max-width: 34em; }
  @media (max-width: 40rem) { .lede { font-size: 1.2rem; } }
  .meta, .frame-no, figcaption { overflow-wrap: anywhere; font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .button { display: inline-flex; align-items: center; min-height: 3rem; padding: .8rem 1.6rem; background: var(--ink); color: var(--cream); border: 1px solid var(--ink); text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }
  .button:hover { background: transparent; color: var(--ink); }
  .button-quiet { background: transparent; color: var(--ink); }
  .button-quiet:hover { background: var(--ink); color: var(--cream); }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
  .text-link { font-size: .98rem; }
  .links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-block-start: var(--space-3); font-size: .98rem; }
  .facts { color: var(--ink-soft); font-size: .98rem; }

  /* A frame: photograph plus its contact-sheet number, nothing more. */
  .frame { position: relative; }
  .frame img { width: 100%; background: #ECE8DE; }
  .frame-link { display: block; }
  .frame-link:hover img, .frame-link:focus-visible img { opacity: .9; }
  .frame figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-block-start: .7rem; }
  .sheet { list-style: none; display: grid; gap: clamp(.75rem, 1.6vw, 1.5rem); }
  .sheet .frame-no { display: block; padding-block-start: .45rem; }
  .sheet img { aspect-ratio: 2 / 3; object-fit: cover; }

  .js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  /* Launch audit: the opening photograph of a page shows at once (mobile LCP). */
  .js .reveal.frame-hero, .js .reveal.hub-lead { opacity: 1; transform: none; transition: none; }
}

@layer pages {
  /* Home: opening */
  .opening { display: grid; gap: var(--space-5); }
  .opening-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-4); align-items: end; padding-block: clamp(1.5rem, 5vw, 4.5rem) 0; }
  .opening-text { display: grid; gap: var(--space-3); }
  .frame-hero img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0%; }
  .opening-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
  .opening-pair .frame-tall { padding-block-start: var(--space-5); }
  .opening-pair .frame-wide { margin-block-end: var(--space-5); }

  /* Vertical-hero option: a portrait frame beside the opening copy. */
  .opening-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; padding-block-start: var(--space-2); }
  .opening-split .opening-text { gap: var(--space-3); }
  .frame-hero-vertical { justify-self: end; width: min(100%, 38rem, calc((100svh - 12rem) * 2 / 3)); }
  .frame-hero-vertical img { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; }
  /* Square-hero option (Nov 2): photo first, a 1:1 frame taking more than half the banner. */
  .opening-split-square { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); }
  .frame-hero-square { order: -1; justify-self: stretch; width: 100%; }
  .frame-hero-square img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; object-position: 50% 50%; }
  /* Justin, Nov 23: the home photo starts right under the menu bar, so the menu sits balanced above it.
     Computers first; phones and tablets too after his iPhone screenshot that afternoon. */
  .page-home .page, .page-home .opening-split { padding-block-start: 0; }
  /* Justin, Nov 23: Elli's words under the homepage headline, set like the other client quotes. */
  .opening-quote p { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.3; max-width: 24em; text-wrap: pretty; }
  .opening-quote cite { display: block; margin-block-start: .6rem; font-style: normal; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  /* Justin, Nov 23: Let's talk comes right after the prices; a clear break, then Elli's words and her wedding. */
  .opening-story { display: grid; gap: var(--space-3); margin-block-start: var(--space-4); }
  /* Review-only chooser for Justin's hero folder picks. */
  .frame .hero-picker { align-items: flex-start; padding-block-start: .35rem; }
  .hero-picker > span { white-space: nowrap; }
  .hero-picker ul { display: flex; flex-wrap: wrap; gap: .2rem; list-style: none; margin: 0; padding: 0; }
  .hero-picker a { display: inline-grid; place-items: center; min-width: 1.9rem; min-height: 1.9rem; font-family: var(--sans); font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
  .hero-picker a:hover { color: var(--ink); border-color: var(--rule); }
  .hero-picker a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }

  /* Approach */
  .approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-5); align-items: start; border-top: 1px solid var(--rule); padding-block-start: var(--space-5); }
  .pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; max-width: 14em; }
  .pull cite { display: block; margin-block-start: var(--space-3); font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  .approach-list { display: grid; gap: var(--space-4); }
  .notes { display: grid; gap: var(--space-3); }
  .notes div { display: grid; gap: .45rem; padding-block-start: var(--space-3); border-top: 1px solid var(--rule); }
  .notes dt { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
  .notes dd { color: var(--ink-soft); max-width: 46ch; }

  /* Portfolios */
  .sheet-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-family { grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr; align-items: end; }
  .sheet-family img { aspect-ratio: auto; }

  /* Featured stories, set below the fold on purpose */
  .story-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; }
  .story-feature + .story-feature { margin-block-start: var(--space-5); padding-block-start: var(--space-5); border-top: 1px solid var(--rule); }
  .story-photo { display: block; text-decoration: none; }
  .story-photo img { aspect-ratio: 2 / 3; object-fit: cover; }
  .story-photo .frame-no { display: block; padding-block-start: .6rem; }
  .story-text { display: grid; gap: var(--space-3); align-content: center; }
  .story-text h3 { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 400; letter-spacing: -.01em; text-transform: none; line-height: 1.08; }
  .story-text p { color: var(--ink-soft); }
  .story-strip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .sheet-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Offer */
  .investment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-5); border-top: 1px solid var(--rule); padding-block-start: var(--space-5); }
  .steps { list-style: none; counter-reset: step; display: grid; gap: var(--space-3); margin-block-start: var(--space-4); }
  .steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--space-2); row-gap: .35rem; }
  .steps li::before { content: counter(step); grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--ink-soft); }
  .steps p { color: var(--ink-soft); }
  .offers { display: grid; gap: var(--space-3); }
  .offers-title { margin-block-end: var(--space-2); }
  /* The groom is at the source frame's left edge; keep as much of him as the crop allows. */
  .sheet img.focus-right { object-position: 30% 30%; }
  /* The forest family stands left of centre; keep both parents inside the phone crop. */
  .sheet img.focus-left { object-position: 42% 50%; }
  .footer-mark { width: 13rem; }
  .offer { display: grid; grid-template-columns: 10.5rem 1fr; grid-template-rows: auto 1fr; align-items: start; gap: .4rem var(--space-3); padding-block: var(--space-3); border-top: 1px solid var(--rule); }
  .offer h3 { grid-column: 1; }
  .offer .price { grid-column: 1; grid-row: 2; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
  .offer ul { grid-column: 2; grid-row: 1 / span 2; list-style: none; display: grid; gap: .3rem; color: var(--ink-soft); }

  .far { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-5); align-items: end; }
  .far .frame img { aspect-ratio: 3 / 2; object-fit: cover; }
  .far-text { display: grid; gap: var(--space-3); padding-block-end: var(--space-4); }

  /* Justin, Nov 16: his hazy beach photo (ZZ6_8052) behind the "Planning something?" callout.
     The 20% white wash keeps every line at WCAG AA over the clouds; narrow screens switch to
     the sky-only crop so the darker tree line never sits behind the links. */
  .ask { display: grid; gap: var(--space-5); align-items: center; background: linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)), url("/assets/img/photos/ask-ZZ6_8052-2560.webp") 50% 60% / cover no-repeat var(--paper); padding: var(--space-5) clamp(1.5rem, 6vw, 6rem); }
  /* Justin, Nov 17: every page, the homepage included, uses the same left-aligned callout
     (views/partials/ask.html, .story-ask). */
  .ask-text { display: grid; gap: var(--space-3); }

  /* Story page */
  .story-head { display: grid; gap: var(--space-3); max-width: 46rem; padding-block: clamp(1.5rem, 5vw, 4.5rem) var(--space-5); }
  .story-head .meta a { text-decoration: none; }
  .story-head .meta a:hover { text-decoration: underline; }
  .page-story .frame-hero img { aspect-ratio: auto; }
  .sheet-index { grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); gap: .9rem .6rem; background: var(--paper); padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--rule); }
  .sheet-index img { aspect-ratio: 2 / 3; object-fit: cover; }
  .sheet-index .frame-no { font-size: .72rem; letter-spacing: .06em; padding-block-start: .3rem; color: var(--ink); }
  .sheet-index { grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
  @media (max-width: 40rem) { .sheet-index { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem .35rem; padding: .75rem; } .sheet-index .frame-no { font-size: .75rem; } }
  .thumb { display: block; text-decoration: none; transition: opacity .2s var(--ease-out); }
  .sheet-index:hover .thumb { opacity: .6; }
  .sheet-index .thumb:hover, .sheet-index .thumb:focus-visible { opacity: 1; }
  .chapter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding-block-start: var(--space-3); border-top: 1px solid var(--rule); margin-block-end: var(--space-4); }
  /* Order-preserving flow: portraits three across, landscapes full width,
     short rows centred so the published sequence never leaves a ragged hole. */
  .chapter-frames { --cols: 3; --gap-x: clamp(1rem, 2.5vw, 2.25rem); display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(1.5rem, 4vw, 3.5rem) var(--gap-x); }
  .story-frame { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); }
  .story-frame.is-landscape { flex-basis: 100%; }
  /* Compact gallery (Behind the scenes): smaller frames, three up on wide
     screens, landscapes share rows instead of spanning the page. */
  .chapter-frames-compact { max-width: 72rem; margin-inline: auto; align-items: center; }
  .chapter-frames-compact .story-frame.is-landscape { flex-basis: calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); }
  .story-frame { scroll-margin-block-start: 7rem; }
  .story-frame:target img { outline: 1px solid var(--ink); outline-offset: 6px; }
  .story-ask { grid-template-columns: 1fr; text-align: left; }

  @media (max-width: 60rem) {
    .opening-split { grid-template-columns: 1fr; gap: var(--space-4); }
    .opening-split .opening-text { padding: 0; }
    .frame-hero-vertical, .frame-hero-square { justify-self: stretch; width: 100%; order: -1; }
    .opening-split-square { grid-template-columns: 1fr; }
    .opening-copy, .approach, .investment, .far, .story-feature, .story-strip { grid-template-columns: 1fr; }
    .opening-pair { grid-template-columns: 1fr 1fr; }
    .opening-pair .frame-tall, .opening-pair .frame-wide { padding: 0; margin: 0; }
    .sheet-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet-family { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .story-strip .story-text { order: -1; }
    .chapter-frames { --cols: 2; }
    .sheet-family img { aspect-ratio: 4 / 5; object-fit: cover; }
    /* Group shots run full width at their own shape, so nobody is cropped out of the family. */
    .sheet-family .frame-span { grid-column: 1 / -1; }
    .sheet-family .frame-span img { aspect-ratio: 3 / 2; }
    .ask { background-image: linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)), url("/assets/img/photos/ask-ZZ6_8052-sky-2560.webp"); background-position: 70% 50%; }
    /* Justin, Nov 22: once the opening stacks under the photo, its first line is the page's headline. */
    .page-home .opening-text .lede { font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.4rem); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; max-width: 22em; }
  }
  @media (max-width: 40rem) {
    /* Justin, Nov 22: quotes and sub-heads sit clearly below the section headings on phones. */
    .pull p { font-size: 1.65rem; }
    .story-text h3 { font-size: 1.75rem; }
    .notes dt { font-size: 1.35rem; }
    .page-home .frame-hero img { aspect-ratio: 4 / 5; object-position: 42% 0%; }
    .page-home .frame-hero-vertical img { aspect-ratio: 2 / 3; object-position: 50% 50%; }
    .page-home .frame-hero-square img { aspect-ratio: 1 / 1; object-position: 50% 50%; }
    .opening-pair { grid-template-columns: 1fr; gap: var(--space-4); }
    .sheet-strip { grid-template-columns: repeat(6, 42vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: .5rem; }
    .sheet-strip li { scroll-snap-align: start; }
    .chapter-frames { --cols: 1; }
    .offer { grid-template-columns: 1fr; }
    .offer ul { grid-column: 1; grid-row: auto; }
  }

  /* Site Building: shared page heads, listings, hubs and guides (same tokens). */
  .page-head { display: grid; gap: var(--space-3); max-width: 46rem; padding-block: clamp(1.5rem, 5vw, 4.5rem) var(--space-5); }
  .page-head .meta a { text-decoration: none; }
  .page-head .meta a:hover { text-decoration: underline; }
  /* /what-now/: Justin's after-session instructions (rebuilt from his current page, Nov 17). */
  .what-now > p { max-width: 46rem; }
  .what-now-list { display: grid; gap: var(--space-3); max-width: 46rem; margin-block: var(--space-4); padding-inline-start: 1.25rem; list-style: disc; }
  .kicker { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  .post-text { display: grid; gap: var(--space-2); }
  .post-text h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-block-start: var(--space-3); }
  .credits { list-style: none; columns: 2 16rem; column-gap: var(--space-5); max-width: 52rem; padding-block: var(--space-4) 0; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
  .credits li { break-inside: avoid; padding-block: .15rem; }
  .filters ul, .pager ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; }
  .filters { margin-block-end: var(--space-4); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
  .filters a, .pager a { text-decoration: none; padding-block: .4rem; }
  .filters a[aria-current], .pager a[aria-current] { text-decoration: underline; text-decoration-color: currentColor; }
  .pager { margin-block-start: var(--space-5); font-variant-numeric: tabular-nums; }
  .pager a { display: inline-grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; border: 1px solid transparent; }
  .pager a[aria-current] { border-color: var(--ink); text-decoration: none; }
  .cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) clamp(1rem, 2.5vw, 2.25rem); }
  .card a { display: grid; gap: .6rem; text-decoration: none; }
  .card img, .card-blank { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #ECE8DE; transition: opacity .3s var(--ease-out); }
  .card-blank { display: block; }
  .card a:hover img { opacity: .85; }
  .card-title { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; }
  .card a:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  /* Hub opening: copy beside one large gallery frame, like the home split. */
  .hub-open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; padding-block: var(--space-3) var(--space-5); }
  .hub-head { padding-block: 0; max-width: 34rem; }
  .hub-pull { margin-block: var(--space-3) var(--space-2); }
  .hub-pull p { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
  .hub-lead img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 30%; max-height: calc(100svh - 10rem); }
  .hub-sheet { margin-block-start: 0; }
  .hub-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding-block-start: var(--space-2); border-top: 1px solid var(--rule); }
  .hub-links a { text-decoration: none; padding-block: .35rem; display: inline-block; }
  .hub-links a:hover { text-decoration: underline; }
  [id] { scroll-margin-block-start: 7rem; }
  .faq { border-top: 1px solid var(--rule); padding-block-start: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-5); }
  .home-faq-head { display: grid; gap: var(--space-3); align-content: start; }
  .words { display: grid; gap: var(--space-4); }
  .quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-5); }
  .quote p { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.3; max-width: 30em; }
  .quote cite { display: block; margin-block-start: var(--space-2); font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  .post-nav { display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--rule); padding-block-start: var(--space-3); }
  .post-nav-link { display: grid; gap: .3rem; text-decoration: none; max-width: 24rem; }
  .post-nav-next { margin-inline-start: auto; text-align: right; }
  .post-nav-title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
  .about-open { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: var(--space-5); align-items: start; padding-block-start: var(--space-4); }
  .about-open .page-head { padding-block-start: 0; }
  .about-portrait { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .about-pull { margin-block: var(--space-5); }
  .about-pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-4); align-items: end; }
  .about-facts { display: grid; gap: var(--space-3); max-width: 46rem; border-top: 1px solid var(--rule); padding-block-start: var(--space-5); }
  /* Contact: form first under a short headline (left), Justin's details on the right. */
  .contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; padding-block-start: var(--space-2); }
  .contact-head { padding-block: 0; }
  .contact-head h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
  .contact-side { display: grid; gap: var(--space-4); align-content: start; }
  .contact-also { padding-block-start: var(--space-3); border-top: 1px solid var(--rule); }
  .guide-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
  .guide-frames { display: grid; gap: var(--space-3); }
  .pricing-note { margin-block-start: var(--space-4); }
  .missing { min-height: 40vh; }
  @media (max-width: 60rem) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-open { grid-template-columns: 1fr; gap: var(--space-4); padding-block-start: 0; }
    .hub-lead { order: -1; }
    .faq, .quotes, .about-open, .about-pair, .contact-layout, .guide-body { grid-template-columns: 1fr; }
    .about-portrait { width: 12rem; }
  }
  @media (max-width: 40rem) {
    .cards { grid-template-columns: 1fr; }
    .post-nav { flex-direction: column; }
    .post-nav-next { text-align: left; margin-inline-start: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
