/* ==========================================================================
   Rich B. Caliente: site mockup
   Dark gallery: near-black rooms, warm off-white type, one accent.
   Two typefaces only: Syne for headings, Inter for everything else.
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --text: #f2efe9;
  --text-2: rgba(242, 239, 233, 0.72);
  --mute: rgba(242, 239, 233, 0.46);
  --line: rgba(242, 239, 233, 0.12);
  --accent: #ffc20e; /* sun yellow, pulled from the paintings */
  --tiffany: #0abab5; /* nav hover line */

  --f-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, blockquote { font-family: var(--f-display); font-weight: 700; text-wrap: balance; }

/* small uppercase label (class name kept from v1 so markup didn't need to change) */
.mono { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.wrap { padding-inline: var(--gutter); }

/* ---------- Top bar + nav ---------- */
.ship-bar {
  position: relative; z-index: 60;
  background: var(--bg-2); color: var(--text-2); border-bottom: 1px solid var(--line);
  height: 32px; display: grid; place-items: center;
}
.ship-bar span { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; }
@media (max-width: 760px) { .ship-bar { padding: 0 var(--gutter); } .ship-bar span { font-size: 10px; letter-spacing: 0.04em; white-space: nowrap; } }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: top .4s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-offset { top: 32px; }
.nav.is-scrolled { top: 0; background: rgba(11, 11, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .sig { width: 204px; height: 64px; object-fit: contain; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 36px); margin: 0; padding: 0; }
.nav a.link { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); position: relative; transition: color .3s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); }
.nav a.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--tiffany); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a.link:hover::after, .nav a.link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .menu-btn { display: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* full-screen menu (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font-family: var(--f-display); font-size: clamp(40px, 12vw, 96px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.menu .close { position: absolute; top: 24px; right: var(--gutter); }

/* eight nav items: switch to the menu button before they crowd the logo (they fit from about 1240px) */
@media (max-width: 1240px) {
  .nav ul { display: none; }
  .nav .menu-btn { display: block; }
}
@media (max-width: 760px) {
  .nav .sig { width: 180px; height: 58px; }
  .nav { padding-right: calc(var(--gutter) + 8px); } /* keeps the Menu button off the edge */
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--text); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.is-big span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Page transition: a quiet fade through black ---------- */
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--bg); opacity: 0; }
.wipe.is-in { transition: opacity .45s var(--ease); opacity: 1; }
.wipe.is-cover { opacity: 1; }
.wipe.is-out { transition: opacity .6s var(--ease); opacity: 0; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.pill:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill.solid:hover { background: var(--accent); border-color: var(--accent); }
.pill .arrow { transition: transform .45s var(--ease); }
.pill:hover .arrow { transform: translateX(4px); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* ---------- Marquee ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee .track { display: inline-flex; animation: marquee 60s linear infinite; }
.marquee .item {
  display: inline-flex; align-items: center; gap: 48px; padding-right: 48px;
  font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--mute);
}
.marquee .item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mute); }

.eyebrow { color: var(--mute); margin: 0 0 24px; }

/* ==========================================================================
   HOME: intro: b-roll video behind a dark mesh, logo on top; on scroll the painting
   appears inside the signature, which grows until the painting fills the screen,
   then the painting pulls back into its frame on a dark wall (intro.js)
   ========================================================================== */
.intro { position: relative; height: 400vh; }
.intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-shade { /* dark overlay + vignette */
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 50% 50%, rgba(11,11,11,.35), rgba(11,11,11,.85)),
    rgba(11, 11, 11, 0.45);
}
.intro-grid { /* fine mesh you see the video through, plus a faint larger studio grid */
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(242,239,233,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,239,233,.06) 1px, transparent 1px),
    linear-gradient(rgba(11,11,11,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,11,.55) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 4px 4px, 4px 4px;
  background-position: center;
}
.intro-logo {
  position: absolute; inset: 0 0 90px; display: grid; place-content: center; justify-items: center; gap: 0; text-align: center; --logo-w: min(62vw, 640px, 80vh);
  opacity: var(--logo-o, 1); transform: scale(var(--logo-s, 1));
}
.intro-logo img { width: var(--logo-w); width: round(down, var(--logo-w), 1px); height: auto; } /* no filter and a whole-pixel width: iOS Safari drew a seam at the right edge of the filtered SVG */
.intro-logo .mono { color: var(--text-2); margin: calc(18px - 0.25 * var(--logo-w)) 0 0; } /* a third of the logo image is empty below the strokes; pull the line up to sit under them */
.intro .scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--text-2); opacity: var(--logo-o, 1); }
.nav .sig { transition: opacity .4s; }
.nav.on-intro .sig { opacity: 0; pointer-events: none; }
.nav.on-intro.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.rm .intro { height: 100vh; }

/* The dark room the film fades into: a bare wall with only a trace of ambient light */
.intro-room {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--room-o, 0);
  background: radial-gradient(70% 60% at 50% 45%, rgba(255, 255, 255, 0.025), transparent 70%), var(--bg);
}
/* The painting. intro.js sets its rect (full-bleed, then the frame) and the mask: the
   signature (--ms/--mx/--my, growing) unioned with a plain layer whose alpha (--fill)
   closes the gaps between the strokes. --fr brings in the frame's shadow and edge. */
.intro-work {
  position: absolute; margin: 0; box-sizing: border-box; background: #050505; pointer-events: none; overflow: hidden;
  -webkit-mask-image: url(../img/signature-mask.png), linear-gradient(rgba(0, 0, 0, var(--fill, 0)), rgba(0, 0, 0, var(--fill, 0)));
  mask-image: url(../img/signature-mask.png), linear-gradient(rgba(0, 0, 0, var(--fill, 0)), rgba(0, 0, 0, var(--fill, 0)));
  -webkit-mask-size: var(--ms, 0) auto, 100% 100%; mask-size: var(--ms, 0) auto, 100% 100%;
  -webkit-mask-position: var(--mx, 0) var(--my, 0), 0 0; mask-position: var(--mx, 0) var(--my, 0), 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  box-shadow: 0 34px 70px rgba(0, 0, 0, calc(0.85 * var(--fr, 0))), 0 0 0 1px rgba(255, 255, 255, calc(0.12 * var(--fr, 0)));
}
.intro-work.is-full { -webkit-mask-image: none; mask-image: none; }
.intro-work .canvas { position: relative; width: 100%; height: 100%; overflow: hidden; }
.intro-work img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.intro .caption {
  position: absolute; left: 0; right: 0; margin: 0; text-align: center; display: grid; gap: 4px;
  opacity: var(--cap-o, 0); transform: translateY(calc((1 - var(--cap-o, 0)) * 12px));
}
.intro .caption b { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); }
.intro .caption span { color: var(--mute); }
.frame-link { position: absolute; display: none; }
.frame-link.is-live { display: block; }
.scroll-cue .line { width: 1px; height: 40px; background: var(--mute); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Statement */
.statement { padding: clamp(110px, 16vw, 220px) var(--gutter); text-align: center; border-top: 1px solid var(--line); }
.statement h2 {
  margin: 0 auto; max-width: 20ch;
  font-size: clamp(32px, 4.6vw, 68px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
}
.statement p { margin: 28px auto 0; max-width: 52ch; color: var(--text-2); font-size: 17px; }

/* ==========================================================================
   HOME: sections
   ========================================================================== */
.dark { background: var(--bg-2); }

/* Heritage */
.heritage { position: relative; padding: clamp(90px, 12vw, 170px) 0 0; overflow: hidden; }
.heritage .route {
  font-size: clamp(40px, 6.4vw, 104px); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  margin: 0 0 clamp(48px, 6vw, 88px); max-width: 14ch;
}
.heritage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.heritage .photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 78vh; }
.heritage .photo img { position: relative; top: -7.5%; width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); }
.heritage .photo.small { position: absolute; width: 40%; aspect-ratio: 1; right: -5%; bottom: -9%; border: 6px solid var(--bg-2); }
.heritage .photo-wrap { position: relative; margin-bottom: 10%; }
.heritage .copy p { font-size: 17px; line-height: 1.75; margin: 0 0 1.2em; color: var(--text-2); }
.heritage .copy p strong { color: var(--text); font-weight: 500; }
.heritage .copy p.mono { font-size: 11px; color: var(--mute); margin-bottom: 1.8em; }
.heritage .marquee { margin-top: clamp(80px, 10vw, 140px); }
@media (max-width: 860px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage .photo.small { right: 4%; }
}

/* Works: a salon-style hang: varied sizes and offsets, every image uncropped */
.works { padding: clamp(90px, 12vw, 170px) var(--gutter); border-top: 1px solid var(--line); }
.works .big { margin: 0; font-size: clamp(40px, 6.4vw, 104px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.salon { columns: 3 280px; column-gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(20px, 3vw, 40px); }
.hang {
  display: block; break-inside: avoid; position: relative;
  width: var(--w, 100%); margin: var(--mt, 0) 0 clamp(14px, 1.6vw, 24px) var(--ml, 0);
}
/* the hang: a slight variation in width and drop, like works on a gallery wall */
.hang:nth-child(5n+2) { --w: 92%; --ml: auto; --mt: clamp(8px, 1.4vw, 20px); }
.hang:nth-child(5n+4) { --w: 94%; --ml: 3%; }
.hang img {
  width: 100%; height: auto; border-radius: 4px;
  box-shadow: 0 34px 60px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(242,239,233,.04);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), filter .5s;
  filter: brightness(.92);
}
.hang:hover img { transform: translateY(-6px); filter: brightness(1); box-shadow: 0 50px 80px -36px rgba(0,0,0,1), 0 0 0 1px rgba(242,239,233,.08); }
.hang.end {
  --w: 100%; --ml: 0; --mt: 0; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  border: 1px dashed rgba(242,239,233,.2); border-radius: 4px; transition: border-color .4s, background .4s;
}
.hang.end span:first-child { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.hang.end .mono { color: var(--mute); }
.hang.end:hover { border-color: rgba(242,239,233,.5); background: var(--bg-2); }
@media (max-width: 640px) {
  .salon { columns: 1; }
  .salon .hang { --w: 100%; --ml: 0; --mt: 0; } /* one column: every piece full width and centred */
  .hang.end { aspect-ratio: auto; padding: 48px 0; }
}

/* Mission */
.mission { position: relative; padding-block: clamp(90px, 12vw, 170px); overflow: hidden; } /* padding-block keeps the .wrap gutter */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.mission .orb { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.mission .orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15) translateY(var(--py, 0)); }
.mission .orb-wrap { position: relative; max-width: 520px; }
.mission blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(28px, 3.2vw, 48px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.mission p.small { max-width: 44ch; color: var(--text-2); margin-top: 28px; }
@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; } }

/* News teaser + cards */
.news-cta {
  position: relative; overflow: hidden; display: grid; align-content: end;
  min-height: clamp(420px, 58vh, 620px); padding-block: clamp(80px, 10vw, 150px); border-top: 1px solid var(--line);
}
/* photo hung on the right, muted, fading into the page on the left and at the top and bottom */
.news-cta .media {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 540px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to top, transparent 0%, #000 25%), linear-gradient(to bottom, transparent 0%, #000 20%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to top, transparent 0%, #000 25%), linear-gradient(to bottom, transparent 0%, #000 20%);
  mask-composite: intersect;
}
.news-cta .media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: saturate(.55) contrast(1.05) brightness(.6); }
.news-cta a { position: relative; display: grid; justify-items: start; gap: 28px; }
.news-cta .eyebrow { margin: 0 0 18px; }
.news-cta h2 { margin: 0; font-size: clamp(48px, 9vw, 150px); font-weight: 700; letter-spacing: -0.04em; line-height: .95; transition: color .4s; }
.news-cta a:hover h2 { color: var(--accent); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(40px, 6.4vw, 104px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.section-head .mono { color: var(--mute); }

/* Contact / Acquire */
.contact { position: relative; padding: clamp(100px, 13vw, 190px) 0; text-align: center; }
.contact .mono { color: var(--mute); }
.contact h2 { margin: 16px auto 0; font-size: clamp(40px, 6.4vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.contact p { max-width: 46ch; margin: 24px auto 44px; color: var(--text-2); }
.contact form { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.contact .field { display: grid; gap: 8px; }
.contact .field.full { grid-column: 1 / -1; }
.contact input, .contact textarea, .contact select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; outline: none;
  transition: border-color .3s;
}
.contact input:focus, .contact textarea:focus, .contact select:focus { border-color: rgba(242,239,233,.5); }
.contact textarea { min-height: 130px; resize: vertical; }
.contact .actions { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 14px; }
.contact .sent { grid-column: 1 / -1; text-align: center; color: var(--accent); min-height: 1.5em; }
.contact .sent a { text-decoration: underline; text-underline-offset: 3px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: people never see it, bots fill it */
.contact button:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) { .contact form { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--bg); padding: 64px var(--gutter) 28px; border-top: 1px solid var(--line); }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-bottom: 56px; text-align: center; }
.footer .cols h4 { margin: 0 0 14px; color: var(--mute); font-family: var(--f-body); font-weight: 500; }
.footer .cols a { display: block; margin: 6px 0; color: var(--text-2); transition: color .3s; }
.footer .cols a:hover { color: var(--text); }
.footer .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mute); }
.footer .legal .credit { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.footer .legal .credit:hover { text-decoration-color: #b09a72; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   Inner pages (Gallery / News / collection pages)
   ========================================================================== */
.page-hero { position: relative; padding: 170px var(--gutter) 48px; }
.page-hero h1 { margin: 0; font-size: clamp(40px, 11vw, 180px); font-weight: 700; letter-spacing: -0.04em; line-height: .95; }
.page-hero .sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.page-hero .sub p { max-width: 44ch; margin: 0; font-size: 17px; color: var(--text-2); }
.page-hero .sub .mono { color: var(--mute); }

/* Collection pages (RBC9ELEVEN, Happy Hearts): copy alongside uncropped plates */
.collection {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: 20px var(--gutter) clamp(90px, 12vw, 170px);
}
.collection .copy { position: sticky; top: 120px; }
.collection .copy p { font-size: 17px; line-height: 1.75; margin: 0 0 1.2em; color: var(--text-2); max-width: 52ch; }
.collection .copy .pill { margin-top: 12px; }
.collection .copy .emblem { display: block; width: 96px; height: auto; margin-top: clamp(36px, 4vw, 56px); } /* a collection's mark, kept small under the copy (Happy Hearts) */
.collection .plates { columns: 2 240px; column-gap: clamp(14px, 1.6vw, 24px); }
.collection .plates.single { columns: 1; max-width: 640px; }
.collection .plates img {
  display: block; width: 100%; height: auto; margin-bottom: clamp(14px, 1.6vw, 24px); break-inside: avoid; border-radius: 4px;
  box-shadow: 0 34px 60px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(242,239,233,.04);
}
/* feature layout (RBC9ELEVEN): the film with the copy under it on the left, a carousel of photographs on the right */
.collection.feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.collection.feature .copy { position: static; }
.collection .film { margin: 0 0 clamp(28px, 3vw, 44px); }
.collection .film video { display: block; width: 100%; max-width: 1024px; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.95), 0 0 0 1px rgba(242,239,233,.05); outline: none; }
.collection .film figcaption { display: flex; justify-content: space-between; gap: 16px; max-width: 1024px; margin-top: 12px; color: var(--mute); }
.carousel { position: sticky; top: 120px; }
.carousel .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 0;
  border-radius: 4px; background: var(--bg-2); box-shadow: 0 34px 60px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(242,239,233,.04);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.carousel .track img.fit { object-fit: contain; } /* a landscape photograph shown whole, on the dark panel */
.carousel .ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.carousel .ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-2); font-size: 16px; transition: background .3s, color .3s, border-color .3s; }
.carousel .ctl button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.carousel .dots { display: flex; gap: 8px; }
.carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.carousel .dots i.on { background: var(--text); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .carousel .track { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .collection, .collection.feature { grid-template-columns: 1fr; }
  .collection .copy { position: static; }
  .carousel { position: static; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: rgba(242,239,233,.4); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip sup { font-size: 9px; margin-left: 4px; opacity: .6; }

/* ---------- Gallery ---------- */
.toolbar {
  position: sticky; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  top: 78px; padding: 16px var(--gutter);
  background: linear-gradient(var(--bg) 78%, rgba(11,11,11,0));
}
/* on phones the chips wrap to several rows; stuck to the top they would cover the tiles */
@media (max-width: 760px) { .toolbar { position: static; background: none; } }
.grid { padding: 20px var(--gutter) 120px; columns: 3 320px; column-gap: clamp(14px, 1.6vw, 24px); }
.piece { break-inside: avoid; margin-bottom: clamp(14px, 1.6vw, 24px); cursor: pointer; }
.piece .img { position: relative; border-radius: 4px; overflow: hidden; background: var(--bg-3); }
.piece .img img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.piece:hover .img img { transform: scale(1.04); }
.piece.is-hidden { display: none; }
.piece.placeholder .img { aspect-ratio: 4 / 5; display: grid; place-items: center; background: transparent; border: 1px dashed rgba(242,239,233,.2); }
.piece.placeholder .img span { text-align: center; color: var(--mute); padding: 20px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1.4fr 1fr;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox .lb-img { position: relative; display: grid; place-items: center; padding: 70px 40px; background: var(--bg-2); overflow: hidden; }
.lightbox .lb-img img { max-height: calc(100vh - 140px); width: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.lightbox .lb-info { padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.lightbox #lb-cat { color: var(--mute) !important; margin: 0; }
.lightbox h2 { margin: 0; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
.lightbox dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.lightbox dt { color: var(--mute); }
.lightbox dd { margin: 0; }
.lightbox .lb-close { position: absolute; top: 24px; right: var(--gutter); z-index: 2; }
.lightbox .lb-nav { display: flex; gap: 10px; margin-top: auto; }
.lightbox .lb-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: background .3s, color .3s; }
.lightbox .lb-nav button:hover { background: var(--text); color: var(--bg); }
.lightbox .pill { align-self: flex-start; }
@media (max-width: 860px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 55vh auto; overflow-y: auto; }
  .lightbox .lb-img { padding: 60px 16px 16px; }
  .lightbox .lb-img img { max-height: 48vh; }
  .lightbox .lb-info { padding-top: 28px; }
}

/* video player overlay (news rows that link to a video hosted on the site) */
.vbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 64px var(--gutter); background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.vbox.is-open { opacity: 1; visibility: visible; }
.vbox video { width: min(1100px, 100%); max-height: calc(100vh - 128px); background: #000; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); outline: none; }
.vbox .close { position: absolute; top: 24px; right: var(--gutter); color: var(--text-2); }
.vbox .close:hover { color: var(--text); }

/* news */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news-list { padding: 0 var(--gutter) 140px; }
.news-list .row-head { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding-bottom: 14px; color: var(--mute); border-bottom: 1px solid var(--line); }
.year { margin: 0; padding: 48px 0 8px; font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.story {
  position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.story .date { color: var(--mute); }
.story h4 {
  margin: 0; font-family: var(--f-display); font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25;
  color: var(--text-2); text-wrap: balance; transition: color .4s, transform .55s var(--ease);
}
/* the title is the link, and reads as one: underlined, warming to the accent on hover */
.story h4 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(242,239,233,.35); text-underline-offset: 5px; transition: text-decoration-color .3s; }
.story h4 a::after { content: ""; position: absolute; inset: 0; } /* whole row opens the main article */
.story:hover h4 { color: var(--text); transform: translateX(10px); }
.story:hover h4 a { text-decoration-color: var(--accent); }
.story .src, .story .also { margin: 10px 0 0; color: var(--mute); }
.story .src .read { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.story:hover .src .read { color: var(--text); text-decoration-color: var(--accent); }
.story .also { margin-top: 4px; }
.story .also a { position: relative; z-index: 1; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.story .also a:hover { color: var(--text); text-decoration-color: var(--accent); }
@media (max-width: 760px) {
  .news-list .row-head { display: none; }
  .story { grid-template-columns: 1fr; gap: 8px; }
  .story:hover h4 { transform: none; }
}

/* Lead image (News, Acquisitions): the photo hangs on the right, muted under the studio mesh, and a mask fades it
   into the page on the left (where the title sits) and at the top and bottom */
.lead-hero {
  position: relative; overflow: hidden; display: grid; align-content: end;
  min-height: clamp(560px, 92vh, 980px); padding: 170px var(--gutter) clamp(40px, 5vw, 72px);
}
.lead-hero .media {
  position: absolute; top: clamp(70px, 11vh, 120px); right: 0; bottom: 0; width: min(66%, 1180px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 48%), linear-gradient(to top, transparent 0%, #000 32%), linear-gradient(to bottom, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 48%), linear-gradient(to top, transparent 0%, #000 32%), linear-gradient(to bottom, transparent 0%, #000 16%);
  mask-composite: intersect;
}
.lead-hero .media img {
  position: absolute; top: -4%; left: 0; width: 100%; height: 108%; object-fit: cover; object-position: var(--focus, 50% 10%);
  filter: saturate(.5) contrast(1.06) brightness(.62);
  transform: translateY(var(--py, 0));
  animation: hero-settle 2.4s var(--ease) both;
}
@keyframes hero-settle { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
.lead-hero .shade { /* keeps the nav readable over the top of the photo */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,11,11,.55), rgba(11,11,11,0) 22%);
}
.lead-hero .inner { position: relative; }
.lead-hero h1 { margin: 0; font-size: clamp(40px, 11vw, 180px); font-weight: 700; letter-spacing: -0.04em; line-height: .95; }
.lead-hero .lede { margin: 28px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.75; color: var(--text-2); }
@media (max-width: 760px) {
  /* stacked: photo across the top, fading down into the text */
  .lead-hero .media {
    width: 100%; top: 60px; bottom: auto; height: 72%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 38%, transparent 86%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 38%, transparent 86%);
  }
}

/* ---------- Acquisitions: the process ---------- */
.steps { padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(90px, 12vw, 170px); }
.step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line);
}
.step:nth-child(even) .visual { order: -1; }
.step .num { margin: 0; color: var(--mute); }
.step h2 { margin: 14px 0 24px; font-size: clamp(32px, 4vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.step p { font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 52ch; margin: 0 0 1.1em; }
.step .note { font-size: 14px; color: var(--mute); }
.step figure { margin: 0; }
.step figure img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.95), 0 0 0 1px rgba(242,239,233,.05); }
.promises { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: promise; }
.promises li {
  display: flex; align-items: baseline; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.01em;
}
.promises li::before { counter-increment: promise; content: counter(promise, decimal-leading-zero); font-family: var(--f-body); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--accent); }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .visual { order: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}
