/*
 * Revival Jewels & Antiques: public site design system.
 * Register: ivory, ink, hairline gold, enormous photography, generous space, slow weighty motion.
 * Tokens from FACTS section 10. Hand-written; no framework. Motion lives behind html.js +
 * prefers-reduced-motion: no-preference; without either the site is a clean static page.
 */

/* ---------- Fonts (self-hosted, Latin subset of the Google Fonts TTFs, OFL) ---------- */
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/josefin-sans-300.ttf") format("truetype"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/josefin-sans-400.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-300.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-400.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-400-italic.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-500.ttf") format("truetype"); }

/* ---------- Tokens ---------- */
:root {
  --ivory: #F5F0E6;
  --paper: #FBF8F2;
  --ink: #141414;
  --charcoal: #3A3733;
  --stone: #8A8378;
  --gold: #B08D57;
  --gold-light: #D4B987;
  --hairline: #E3DBCC;
  /* Darker stone for small text on ivory: keeps WCAG AA (4.5:1) where --stone would not. */
  --stone-text: #6E675D;
  /* Deeper shade of --gold for small gold label text: 5:1 on ivory (AA); --gold itself stays for rules and the emblem. */
  --gold-text: #7F6033;

  --font-display: "Josefin Sans", "Gill Sans", "Century Gothic", sans-serif;
  --font-serif: "Cormorant Garamond", "Garamond", "Baskerville", "Times New Roman", serif;

  --h1: clamp(2.4rem, 5vw, 5.5rem);
  --h2: clamp(1.8rem, 3vw, 3rem);
  --h3: 1.5rem;

  --gutter: 16px;
  --grid-gap: 24px;
  --space-section: clamp(88px, 12vw, 200px);
  --header-h: 64px;
  --measure: 68ch;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* expo.out */
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* power2.out */
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --grid-gap: 40px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 132px; --gutter: 56px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: var(--h1); line-height: 1.05; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 400; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--charcoal); }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 12px 20px;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; color: var(--ivory); }
main:focus { outline: none; }

/* ---------- Small type: labels, eyebrows ---------- */
.eyebrow, .label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.eyebrow { color: var(--gold-text); margin: 0 0 20px; }
.label { color: var(--stone-text); margin: 0 0 16px; }
.optional { text-transform: none; letter-spacing: 0.02em; }

/* ---------- Rules and the emblem ---------- */
.rule { display: block; width: 72px; height: 1px; background: var(--hairline); border: 0; margin: 28px 0; }
.rule--gold { background: var(--gold); }
hr.rule { margin-inline: auto; }
.emblem { display: inline-block; width: 92px; line-height: 0; color: var(--gold); }
.emblem svg { width: 100%; height: auto; }
.emblem--small { width: 58px; margin-bottom: 18px; }
.emblem--gold { color: var(--gold); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 18px 36px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 0; cursor: pointer; min-height: 52px;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--ivory); }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover, .btn--primary:focus-visible { background: transparent; color: var(--ink); }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 6px; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
}
.link-arrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.link-arrow:hover { color: var(--ink); }

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--ink); color: var(--ivory); text-align: center;
  padding: 10px var(--gutter);
  font-family: var(--font-display); font-weight: 300; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.announcement p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.site-header__inner {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left mark right";
  align-items: center;
  position: relative;
}
.wordmark { grid-area: mark; display: block; width: 168px; color: currentColor; transform-origin: 50% 50%; }
.wordmark__svg { width: 100%; height: auto; }
.site-header__aside {
  font-family: var(--font-display); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; text-decoration: none;
}
.site-header__aside--left { grid-area: left; justify-self: start; display: none; }
.site-header__aside--right { grid-area: right; justify-self: end; }
.header-instagram { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; justify-content: flex-end; }
.header-instagram .icon { width: 20px; height: 20px; }
.header-instagram__label { display: none; }
.menu-toggle {
  grid-area: left; justify-self: start;
  width: 44px; height: 44px; margin-left: -10px; border: 0; background: transparent; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 22px; height: 1px; background: currentColor; position: relative; }
.menu-toggle__bars::before { content: ""; position: absolute; top: 7px; left: 0; width: 14px; }
.site-nav ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.site-nav a {
  font-family: var(--font-display); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; display: inline-block; padding: 8px 0;
  background: linear-gradient(var(--gold), var(--gold)) left calc(100% - 2px) / 0 1px no-repeat;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; color: var(--ink); }
.site-nav__extra { display: none; }

/* Without JS (and on desktop) the nav is a plain row under the wordmark. */
html.no-js .site-header__inner { height: auto; min-height: var(--header-h); grid-template-areas: "left mark right" "nav nav nav"; padding-bottom: 8px; }
html.no-js .site-nav { grid-area: nav; }

/* Phone and tablet with JS: the nav is a panel under the header. */
@media (max-width: 1023px) {
  html.js .menu-toggle { display: inline-flex; }
  html.js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid var(--hairline);
    padding: 24px var(--gutter) 32px;
    display: none;
  }
  html.js .site-header.nav-open .site-nav { display: block; }
  html.js .site-nav ul { flex-direction: column; align-items: center; gap: 4px; }
  html.js .site-nav a { font-size: 0.86rem; padding: 12px 0; }
  html.js .site-nav__extra { display: block; }
  html.js .site-header.nav-open { background: var(--ivory); border-bottom-color: var(--hairline); }
}

@media (min-width: 1024px) {
  .site-header__inner {
    grid-template-areas: "left mark right" "nav nav nav";
    grid-template-rows: 1fr auto;
    padding-top: 22px;
    padding-bottom: 14px;
  }
  html.no-js .site-header__inner { height: var(--header-h); padding-bottom: 14px; }
  .wordmark { width: 300px; }
  .site-header__aside--left { display: inline-block; }
  .header-instagram__label { display: inline; }
  .site-nav { grid-area: nav; }
  .site-nav ul { gap: 0 48px; }
}

/* Home: the header floats transparent over the hero until the page scrolls (site.js adds .is-scrolled). */
html.js .has-hero .site-header { background: transparent; border-bottom-color: transparent; }
html.js .has-hero .site-header.is-scrolled,
html.js .has-hero .site-header.nav-open { background: var(--ivory); border-bottom-color: var(--hairline); }
.site-header.is-scrolled .wordmark { transform: scale(0.85); }

/* ---------- Hero ---------- */
.hero { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 100svh; min-height: 520px; overflow: hidden; background: var(--paper); }
html.js .has-hero .hero { margin-top: calc(-1 * var(--header-h)); }
.hero__media, .hero__media picture { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero__copy {
  position: absolute; left: var(--gutter); right: var(--gutter);
  top: calc(var(--header-h) + 28px);
}
.hero__title { font-size: clamp(2.5rem, 10vw, 5.8rem); font-weight: 300; max-width: 11ch; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .word > span { display: inline-block; }
.hero__title-em { display: block; font-style: italic; font-weight: 400; }
.hero__rule { width: 96px; transform-origin: left center; }
.hero__link { margin-top: 4px; }
@media (min-width: 768px) {
  .hero { aspect-ratio: 16 / 9; min-height: 560px; }
  .hero__img { object-position: 50% 50%; }
  .hero__copy { top: 50%; transform: translateY(-38%); left: var(--gutter); right: auto; max-width: 60%; }
  .hero__title { font-size: clamp(2.6rem, 4.3vw, 5.4rem); max-width: none; }
}

/* ---------- Section scaffolding ---------- */
.section-head { text-align: center; padding: 0 var(--gutter); margin: 0 0 clamp(40px, 6vw, 72px); }
.section-head__title { font-size: var(--h2); }
.section-head__lede { font-style: italic; color: var(--charcoal); max-width: var(--measure); margin: 20px auto 0; font-size: 1.3rem; }
.empty-note { text-align: center; padding: 0 var(--gutter); color: var(--charcoal); font-style: italic; }
.empty-note a { font-style: normal; }

/* ---------- Cards ---------- */
.card { position: relative; }
.card__link { display: block; text-decoration: none; color: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.card--tall .card__media { aspect-ratio: 3 / 4; }
.card--landscape .card__media { aspect-ratio: 4 / 3; }
.card__media picture, .card__media img { width: 100%; height: 100%; }
.card__media img { object-fit: cover; }
.card__placeholder, .chapter__placeholder, .instagram-grid__placeholder, .piece__figure--empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--paper);
}
.card__flag {
  position: absolute; top: 14px; left: 14px; background: var(--ivory); color: var(--ink);
  padding: 7px 12px 6px; font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.card--sold .card__media img { opacity: 0.72; filter: saturate(0.7); }
.card__text { padding-top: 18px; text-align: center; }
.card__title { font-size: 1.3rem; font-weight: 400; line-height: 1.2; margin: 0 0 8px; }
.card__period { font-family: var(--font-display); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-text); margin: 0 0 6px; }
.card__price { font-family: var(--font-display); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.16em; margin: 0; }
.card--sold .card__price, .card--reserved .card__price { text-transform: uppercase; letter-spacing: 0.24em; color: var(--stone-text); font-size: 0.72rem; }

/* ---------- New arrivals strip ---------- */
.arrivals { padding: var(--space-section) 0; }
.arrivals__viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
.arrivals__track { list-style: none; margin: 0; display: flex; gap: var(--grid-gap); padding: 0 var(--gutter) 24px; width: max-content; }
.arrivals__item { width: 72vw; max-width: 420px; flex: none; scroll-snap-align: start; }
.arrivals__item--end { display: flex; }
.arrivals__end {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  aspect-ratio: 4 / 5; border: 1px solid var(--hairline); text-decoration: none; align-self: flex-start; width: 100%;
}
@media (min-width: 1024px) {
  .arrivals__item { width: clamp(280px, 26vw, 420px); }
  /* Pinned state (motion.js): the section grows by the strip's overflow and its stage sticks under the header
     while vertical scroll drives the track sideways. CSS sticky does the pinning, so nothing jumps (no layout shift). */
  html.motion-ready .arrivals.is-pinned { padding: 0; }
  html.motion-ready .arrivals.is-pinned .arrivals__stage { position: sticky; top: var(--header-h); padding: 40px 0; }
  html.motion-ready .arrivals.is-pinned .section-head { margin-bottom: 32px; }
  html.motion-ready .arrivals.is-pinned .arrivals__viewport { overflow: hidden; scroll-snap-type: none; }
  html.motion-ready .arrivals.is-pinned .arrivals__item { width: max(220px, min(26vw, calc((100vh - var(--header-h) - 300px) * 0.8))); }
}
.arrivals .card__media { aspect-ratio: 4 / 5; }

/* ---------- Chapters (Jewellery / Paintings / Furniture) ---------- */
.chapters { position: relative; background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.chapters__ticks { display: none; }
.chapter { display: grid; gap: 32px; padding: 64px var(--gutter); }
.chapter + .chapter { border-top: 1px solid var(--hairline); }
.chapter__frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); }
.chapter--furniture .chapter__frame { aspect-ratio: 4 / 3; }
.chapter__frame picture, .chapter__frame img { width: 100%; height: 100%; }
.chapter__frame img { object-fit: cover; }
.chapter__numeral { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.3em; color: var(--gold-text); margin: 0 0 18px; }
.chapter__title { font-size: var(--h1); }
.chapter__line { font-size: 1.45rem; font-style: italic; color: var(--charcoal); max-width: 26ch; margin-bottom: 36px; }
@media (min-width: 1024px) {
  html.motion-ready .chapters.is-pinned .chapters__ticks {
    display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0;
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%); z-index: 3;
    font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--stone-text);
  }
  .chapters__tick { position: relative; padding-left: 22px; transition: color 0.6s var(--ease-soft); }
  .chapters__tick::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--hairline); transition: width 0.6s var(--ease-soft), background 0.6s; }
  .chapters__tick.is-active { color: var(--ink); }
  .chapters__tick.is-active::before { width: 18px; background: var(--gold); }
  .chapter {
    min-height: 100vh; grid-template-columns: 7fr 5fr; align-items: center; gap: clamp(40px, 6vw, 120px);
    padding: 72px var(--gutter) 72px calc(var(--gutter) + 48px);
  }
  .chapter:nth-of-type(even) .chapter__media { order: 2; }
  .chapter__frame { aspect-ratio: auto; height: min(78vh, 860px); }
  .chapter--furniture .chapter__frame { aspect-ratio: auto; }
  /* Pinned state (motion.js): the section is several viewports tall and its stage sticks (CSS sticky, so no layout
     shift) while the chapters stack and crossfade inside it. */
  html.motion-ready .chapters.is-pinned .chapters__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  html.motion-ready .chapters.is-pinned .chapter {
    position: absolute; inset: 0; min-height: 0; border-top: 0; background: var(--paper);
    padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px;
  }
  html.motion-ready .chapters.is-pinned .chapter__frame { height: min(calc(100vh - var(--header-h) - 72px), 860px); }
}

/* ---------- Bands (Meet Celia, Private sourcing) ---------- */
.band { padding: var(--space-section) var(--gutter); }
.band--celia { display: grid; gap: 40px; align-items: center; }
.band__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.band__media picture, .band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__title { font-size: var(--h2); margin-bottom: 28px; }
.band__text { font-size: 1.35rem; max-width: 40ch; color: var(--charcoal); }
.band__copy .link-arrow { margin-top: 20px; }
.band__copy--centred { text-align: center; display: flex; flex-direction: column; align-items: center; }
.band__copy--centred .band__text { margin-inline: auto; margin-bottom: 40px; }
.band__copy--centred .band__title { max-width: 18ch; }
.band--sourcing { background: var(--ink); color: var(--ivory); }
.band--sourcing .band__text { color: #D9D2C5; }
.band--sourcing .eyebrow { color: var(--gold-light); }
.band--sourcing .btn { border-color: var(--ivory); color: var(--ivory); }
.band--sourcing .btn:hover, .band--sourcing .btn:focus-visible { background: var(--ivory); color: var(--ink); }
.band--sourcing a:hover { color: var(--ivory); }
@media (min-width: 1024px) {
  .band--celia { grid-template-columns: 5fr 6fr; gap: clamp(56px, 8vw, 160px); padding-left: 0; }
  .band--celia .band__media { height: min(92vh, 980px); aspect-ratio: auto; }
}

/* ---------- Instagram band ---------- */
.instagram-band { padding: var(--space-section) var(--gutter); }
.instagram-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.instagram-grid__item { aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.instagram-grid__item a, .instagram-grid__item picture, .instagram-grid__item img { display: block; width: 100%; height: 100%; }
.instagram-grid__item img { object-fit: cover; }
.instagram-band__follow { text-align: center; margin: 48px 0 0; }
@media (min-width: 1024px) {
  .instagram-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .instagram-grid--about { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Footer and newsletter ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--hairline); }
.newsletter { text-align: center; padding: var(--space-section) var(--gutter) clamp(72px, 9vw, 140px); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; align-items: center; }
.newsletter__title { font-size: var(--h2); margin-bottom: 16px; }
.newsletter__lede { font-style: italic; color: var(--charcoal); font-size: 1.3rem; margin-bottom: 40px; }
.subscribe-form { width: 100%; max-width: 620px; }
.field-line { display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); }
.field-line input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0;
  font-family: var(--font-display); font-weight: 300; font-size: 1rem; letter-spacing: 0.04em;
}
.field-line input::placeholder { color: var(--stone-text); opacity: 1; }
.field-line:focus-within { border-bottom-color: var(--gold); }
.field-line input:focus-visible { outline: none; }
.field-line__submit {
  border: 0; background: transparent; cursor: pointer; padding: 0 0 0 20px; min-height: 48px;
  font-family: var(--font-display); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.field-line__submit--arrow svg { width: 22px; height: 22px; }
.consent { font-family: var(--font-display); font-weight: 300; font-size: 0.78rem; line-height: 1.6; color: var(--stone-text); margin: 16px auto 0; max-width: var(--measure); }
.form-thanks { font-style: italic; font-size: 1.3rem; margin: 20px 0 0; }
.subscribe-form.is-done .field-line, .subscribe-form.is-done .consent { display: none; }
.site-footer__columns {
  display: grid; gap: 40px; padding: 72px var(--gutter);
  font-family: var(--font-display); font-weight: 300; font-size: 0.92rem; line-height: 1.8;
}
.site-footer__columns .label { color: var(--ink); }
.site-footer__brand img { width: 200px; margin-bottom: 20px; }
.site-footer__brand p { color: var(--charcoal); max-width: 34ch; }
.plain-list { list-style: none; margin: 0; }
.plain-list a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; }
.plain-list a:hover { background-size: 100% 1px; color: var(--ink); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px var(--gutter) 28px; border-top: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-text);
}
.site-footer__base p { margin: 0; }
@media (min-width: 768px) {
  .site-footer__columns { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Newsletter popup ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.55); }
.popup__dialog {
  position: relative; width: min(1080px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--paper); display: grid; grid-template-columns: 1fr;
}
.popup__body { padding: 56px 24px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.popup__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.popup__lede { font-size: 1.25rem; color: var(--charcoal); max-width: 32ch; margin-bottom: 28px; }
.popup__media { display: none; }
.popup__close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 48px; height: 48px;
  border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.popup__close svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .popup__dialog { grid-template-columns: 1fr 1fr; padding: 56px; gap: 56px; align-items: center; }
  .popup__body { padding: 0 24px; }
  .popup__media { display: block; aspect-ratio: 4 / 5; max-height: 70vh; overflow: hidden; }
  .popup__media img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Page intros (collections, sourcing, contact, legal, 404) ---------- */
.page-intro { text-align: center; padding: clamp(72px, 10vw, 160px) var(--gutter) clamp(48px, 6vw, 96px); display: flex; flex-direction: column; align-items: center; }
.page-intro__title { font-size: var(--h1); max-width: 18ch; }
.page-intro__lede { font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; color: var(--charcoal); max-width: var(--measure); margin: 28px auto 0; }
.page-intro__count { margin: 32px 0 0; }
.collection-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 36px 0 0; }
.collection-tabs__link { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-text); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.collection-tabs__link:hover { color: var(--ink); }
.collection-tabs__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.error-page__links { display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: center; justify-content: center; margin-top: 48px; }

/* ---------- Collection grid ---------- */
.collection { padding: 0 var(--gutter) var(--space-section); }
.grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; }
.grid--furniture { grid-template-columns: 1fr; }
.grid--paintings { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid { gap: 64px var(--grid-gap); }
  .grid--paintings, .grid--furniture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 88px var(--grid-gap); }
  .grid--furniture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .grid--jewellery, .grid--objects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.collection-next { display: grid; border-top: 1px solid var(--hairline); }
.collection-next__link { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px var(--gutter); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.collection-next__link .label { margin: 0; }
.collection-next__name { font-size: var(--h2); font-weight: 300; }
@media (min-width: 768px) {
  .collection-next { grid-template-columns: 1fr 1fr; }
  .collection-next__link { border-bottom: 0; }
  .collection-next__link + .collection-next__link { border-left: 1px solid var(--hairline); }
}

/* ---------- Piece page ---------- */
.breadcrumb { padding: 24px var(--gutter) 0; }
.breadcrumb ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-text); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--hairline); }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--ink); overflow-wrap: anywhere; }
.piece__layout { display: grid; gap: 40px; padding: 24px var(--gutter) var(--space-section); }
.piece__gallery { min-width: 0; }
.piece__images {
  list-style: none; margin: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; background: var(--paper);
}
.piece__images::-webkit-scrollbar { display: none; }
.piece__figure { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--paper); }
.piece--tall .piece__figure { aspect-ratio: 3 / 4; }
.piece--landscape .piece__figure { aspect-ratio: 4 / 3; }
.piece__figure picture, .piece__figure img { width: 100%; height: 100%; }
.piece__figure img { object-fit: contain; transform-origin: 50% 50%; }
.piece__figure--empty { aspect-ratio: 4 / 5; }
.piece__thumbs { list-style: none; margin: 12px 0 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.piece__thumb { display: block; width: 64px; aspect-ratio: 1; overflow: hidden; opacity: 0.55; border: 1px solid transparent; }
.piece__thumb.is-current { opacity: 1; border-color: var(--gold); }
.piece__thumb picture, .piece__thumb img { width: 100%; height: 100%; object-fit: cover; }
.piece__info { min-width: 0; }
.piece__title { font-size: clamp(2.1rem, 3.6vw, 3.6rem); margin-bottom: 20px; }
.piece__price { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.14em; margin: 0 0 24px; }
.piece[data-state="sold"] .piece__price, .piece[data-state="reserved"] .piece__price { text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.86rem; color: var(--stone-text); }
.piece__summary { font-size: 1.4rem; font-style: italic; color: var(--charcoal); max-width: 44ch; margin-bottom: 32px; }
.buy-form { margin: 0 0 16px; }
.buy-form__note { font-family: var(--font-display); font-weight: 300; font-size: 0.8rem; color: var(--stone-text); margin: 14px 0 0; }
.piece__ask { margin: 8px 0 0; }
.status-note { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 0; font-size: 1.15rem; color: var(--charcoal); }
.status-note .label { display: block; color: var(--ink); margin-bottom: 6px; }
.piece__section { border-top: 1px solid var(--hairline); padding: 32px 0; }
.piece__section:first-of-type { margin-top: 40px; }
.details { margin: 0; }
.details__row { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 10px 0; }
.details__row + .details__row { border-top: 1px solid var(--hairline); }
.details dt { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-text); padding-top: 6px; }
.details dd { margin: 0; }
.prose p { max-width: var(--measure); }
.prose--large p { font-size: 1.35rem; }
.story__prompt { font-style: italic; color: var(--stone-text); border-left: 1px solid var(--gold); padding-left: 20px; }
.related { padding: 0 var(--gutter) var(--space-section); }
.grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .piece__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .piece__gallery-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
  .piece__figure { max-height: calc(100vh - var(--header-h) - 128px); aspect-ratio: auto; height: calc(100vh - var(--header-h) - 128px); }
  .piece__figure--empty { height: 70vh; }
  .piece__figure[data-zoom] { cursor: zoom-in; }
  .piece__figure.is-zoomed { cursor: zoom-out; }
  .piece__figure.is-zoomed img { transform: scale(2.2); }
  .piece__thumb { width: 80px; }
  .grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Forms ---------- */
.enquiry-form { font-family: var(--font-display); font-weight: 300; font-size: 0.95rem; }
.form-grid { display: grid; gap: 24px 32px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--font-display); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--stone); background: transparent; border-radius: 0;
  padding: 12px 0; font-family: var(--font-display); font-weight: 300; font-size: 1rem; min-height: 48px;
}
.field textarea { border: 1px solid var(--stone); padding: 14px; resize: vertical; min-height: 140px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-color: var(--gold); }
.enquiry-form .consent { margin: 24px 0; text-align: left; }
.enquiry-form.is-done .form-grid, .enquiry-form.is-done .consent, .enquiry-form.is-done .btn { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}

/* ---------- About Celia ---------- */
.portrait-hero { display: grid; gap: 40px; align-items: center; padding: 0 0 var(--space-section); }
.portrait-hero__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.portrait-hero__media picture, .portrait-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.portrait-hero__copy { padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: flex-start; }
.portrait-hero__title { font-size: clamp(3.4rem, 9vw, 8rem); line-height: 1; margin-bottom: 28px; }
.portrait-hero__lede { font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 26ch; color: var(--charcoal); }
.prose-band, .legal section, .steps, .consultation, .contact, .shops, .sings, .contact-form { padding-inline: var(--gutter); }
.prose-band { display: grid; gap: 16px 40px; padding-bottom: var(--space-section); }
.shops { text-align: center; padding-block: var(--space-section); background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; align-items: center; }
.shops__text { font-size: 1.35rem; max-width: 44ch; margin: 24px auto 32px; color: var(--charcoal); }
.shops__list { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.14em; }
.shops__list a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; padding-bottom: 4px; }
.sings { padding-block: var(--space-section); }
.sings__grid { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr; gap: 32px; justify-items: center; }
.sings__item { width: 100%; min-width: 0; max-width: 420px; }
.sings .instagram-media { min-width: 0 !important; max-width: 100% !important; width: 100% !important; margin: 0 !important; background: var(--paper) !important; border: 1px solid var(--hairline) !important; border-radius: 0 !important; box-shadow: none !important; padding: 24px; font-family: var(--font-display); }
@media (min-width: 768px) { .sings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sings__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .portrait-hero { grid-template-columns: 6fr 5fr; gap: clamp(56px, 8vw, 140px); }
  .portrait-hero__media { height: calc(100vh - var(--header-h)); aspect-ratio: auto; }
  .portrait-hero__copy { padding: 0 var(--gutter) 0 0; }
  .prose-band { grid-template-columns: minmax(180px, 4fr) 8fr; }
}

/* ---------- Sourcing ---------- */
.page-intro--wide .page-intro__title { max-width: 22ch; }
.steps { padding-block: 0 var(--space-section); }
.steps > .label { text-align: center; display: block; margin-bottom: 48px; }
.steps__list { list-style: none; margin: 0; display: grid; gap: 48px; border-top: 1px solid var(--hairline); }
.steps__item { padding-top: 40px; }
.steps__numeral { display: block; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.3em; color: var(--gold-text); margin-bottom: 20px; }
.steps__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 300; margin-bottom: 16px; }
.steps__item p { color: var(--charcoal); max-width: 36ch; }
.image-band { display: grid; gap: 6px; grid-template-columns: 1fr; }
.image-band__item { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.image-band__item--wide { aspect-ratio: 16 / 9; }
.image-band__item picture, .image-band__item img { width: 100%; height: 100%; object-fit: cover; }
.consultation { padding-block: var(--space-section); display: grid; gap: 40px; }
@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
  .image-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .image-band__item--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .consultation { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(56px, 8vw, 140px); }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 72px; }
.contact__grid { display: grid; gap: 40px; border-top: 1px solid var(--hairline); padding-top: 48px; }
.contact__block p, .contact__block li { font-size: 1.25rem; }
.contact-form { padding-block: 72px var(--space-section); border-top: 1px solid var(--hairline); display: grid; gap: 40px; }
@media (min-width: 768px) { .contact__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contact-form { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(56px, 8vw, 140px); } }

/* ---------- Legal pages ---------- */
.legal { padding-bottom: var(--space-section); }
.legal section { display: grid; gap: 8px 40px; padding-block: 48px; border-top: 1px solid var(--hairline); }
.legal h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.legal ul { list-style: none; margin: 0 0 1em; }
.legal li { max-width: var(--measure); padding: 0 0 14px 22px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--gold); }
.legal .source { font-family: var(--font-display); font-weight: 300; font-size: 0.84rem; color: var(--stone-text); }
.legal section > :not(h2) { grid-column: 2; }
@media (max-width: 1023px) { .legal section > :not(h2) { grid-column: auto; } }
@media (min-width: 1024px) { .legal section { grid-template-columns: minmax(200px, 4fr) 8fr; } .legal section > h2 { grid-row: 1 / span 10; } }

/* ---------- Motion (only with JS and when the visitor has not asked for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__img { animation: hero-image 1.6s var(--ease-out) both; }
  html.js .hero__title .word > span { animation: word-rise 1.2s var(--ease-out) both; }
  html.js .hero__title .word:nth-child(1) > span { animation-delay: 0.30s; }
  html.js .hero__title .word:nth-child(2) > span { animation-delay: 0.36s; }
  html.js .hero__title .word:nth-child(3) > span { animation-delay: 0.42s; }
  html.js .hero__title-em .word:nth-child(1) > span { animation-delay: 0.48s; }
  html.js .hero__title-em .word:nth-child(2) > span { animation-delay: 0.54s; }
  html.js .hero__title-em .word:nth-child(3) > span { animation-delay: 0.60s; }
  html.js .hero__eyebrow { animation: soft-fade 1.2s var(--ease-soft) 0.2s both; }
  html.js .hero__rule { animation: rule-draw 1.4s var(--ease-out) 0.9s both; }
  html.js .hero__link { animation: soft-fade 1.2s var(--ease-soft) 1.1s both; }

  html.motion-ready .reveal-clip { clip-path: inset(0 0 100% 0); }
  html.motion-ready .reveal-clip.is-revealed { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-out); }

  .site-header { transition: background-color 0.6s var(--ease-soft), border-color 0.6s var(--ease-soft); }
  .wordmark { transition: transform 0.9s var(--ease-out); }
  .link-arrow::after { transition: width 0.6s var(--ease-out); }
  .link-arrow:hover::after { width: 44px; }
  .btn { transition: background-color 0.5s var(--ease-soft), color 0.5s var(--ease-soft); }
  .site-nav a, .plain-list a { transition: background-size 0.6s var(--ease-out); }
  .card__media img { transition: transform 1.4s var(--ease-out), opacity 0.6s; }
  .card__link:hover .card__media img { transform: scale(1.035); }
  .piece__thumb { transition: opacity 0.6s var(--ease-soft), border-color 0.6s; }
  .piece__figure img { transition: transform 0.9s var(--ease-out); }
  html.js .price-block { animation: soft-fade 1.2s var(--ease-soft) 0.3s both; }

  .popup .popup__backdrop { opacity: 0; transition: opacity 0.9s var(--ease-soft); }
  .popup .popup__dialog { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-soft), transform 1.1s var(--ease-out); }
  .popup.is-open .popup__backdrop { opacity: 1; }
  .popup.is-open .popup__dialog { opacity: 1; transform: none; }
}

@keyframes hero-image { from { transform: scale(1.08); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes word-rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes soft-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Reduced motion: everything static, no pinning, nothing hidden, no smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-clip { clip-path: none !important; }
  .chapters.is-pinned { height: auto !important; }
  .chapters.is-pinned .chapters__stage { position: static !important; height: auto !important; }
  .chapters.is-pinned .chapter { position: relative !important; }
  .arrivals.is-pinned { height: auto !important; }
}

/* Lenis (smooth scroll) housekeeping, per the Lenis README. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Print ---------- */
@media print {
  .site-header, .announcement, .newsletter, .popup, .menu-toggle, .enquiry-form, .buy-form { display: none !important; }
  body { background: #fff; }
}

/* Hero eyebrow sits over a pale photograph: ink with a soft ivory halo keeps it legible (7 Nov polish). */
.hero__eyebrow { color: var(--ink); text-shadow: 0 1px 14px rgba(245, 240, 230, 0.9), 0 0 2px rgba(245, 240, 230, 0.9); }
