/* ============================================================
   Monte — Alpine
   Gallery-white, ink, no accent colour. Cormorant Garamond
   display over Jost. See /CLAUDE.md for the rules behind this.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink:            #14110f;
  --ink-soft:       #6b6762;
  --paper:          #ffffff;
  --paper-alt:      #f5f4f2;
  --hairline:       #e6e4e0;
  --hairline-alt:   #d7d4cf;

  --on-dark:        #ffffff;
  --on-dark-soft:   #d5d0c8;
  --on-dark-faint:  #a9a49c;
  --rule-dark:      #4a443d;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Jost', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --measure: 34rem;

  --header-h: 96px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute; 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: 50%; top: 0; transform: translate(-50%, -110%);
  z-index: 100; background: var(--ink); color: var(--paper);
  padding: 14px 24px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--light { color: #e4e0da; }

.spec {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spec--light { color: var(--on-dark-faint); }

.link {
  display: inline-block;
  font-size: clamp(11px, 1.1vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: opacity 0.25s var(--ease);
}
.link:hover { opacity: 0.55; }
.link--muted       { color: var(--ink-soft); border-bottom-color: var(--hairline-alt); }
.link--onDark      { color: var(--on-dark); border-bottom-color: var(--on-dark); }
.link--onDarkMuted { color: var(--on-dark-soft); border-bottom-color: var(--rule-dark); }


.btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 30px;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--outline      { border-color: currentColor; }
.btn--outline:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid        { background: var(--paper); color: var(--ink); }
.btn--solid:hover  { background: var(--on-dark-soft); }
.btn--outlineLight { border-color: var(--rule-dark); color: var(--on-dark); }
.btn--outlineLight:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--ink);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: flex; align-items: center; gap: 14px; }
.wordmark__mark { width: 58px; height: 17px; color: currentColor; }
.wordmark__text { font-size: 17px; font-weight: 500; letter-spacing: 0.34em; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.site-nav > a:not(.btn) {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.25s var(--ease);
}
.site-nav > a:not(.btn):hover { opacity: 0.6; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 12px; cursor: pointer; color: inherit;
}
.nav-toggle__bar { display: block; width: 24px; height: 1px; background: currentColor; }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url('../img/hero-table.jpg');
  background-size: cover;
  background-position: 50% 62%;
  color: var(--on-dark);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  text-align: center;
}
/* The table photo has a bright window dead centre, so the scrim is
   heaviest across the middle band where the headline sits. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 48%, rgba(10,9,8,0.62) 0%, rgba(10,9,8,0.30) 100%),
    linear-gradient(180deg, rgba(12,10,9,0.66) 0%, rgba(12,10,9,0.46) 34%, rgba(12,10,9,0.66) 100%);
}
.hero__body {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.6vw, 30px);
}
.hero__mark { width: clamp(180px, 22vw, 300px); height: auto; color: var(--on-dark); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.2vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero__lede {
  max-width: var(--measure);
  font-size: clamp(0.9rem, 1.2vw, 0.95rem);
  line-height: 1.85;
  color: #e4e0da;
}
.hero__cue {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: #cfc9c1;
}
.hero__cue svg { width: 12px; height: 34px; color: currentColor; }

/* ---------- chapter ---------- */
.chapter {
  /* Exactly one screen, so the whole photograph is visible without scrolling.
     The top padding clears the fixed header; the figure takes what is left. */
  height: 100svh;
  min-height: 600px;
  padding: calc(var(--header-h) + clamp(16px, 4vh, 48px)) var(--gutter) clamp(24px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 48px);
  text-align: center;
}
.chapter--alt { background: var(--paper-alt); }

.chapter__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.chapter__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.9rem);
  line-height: 1.02;
}
.chapter__lede {
  max-width: 46rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
}

.chapter__figure { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
/* `contain`, never `cover`: the figure shrinks with the viewport and the
   photograph scales down inside it rather than being cropped. */
.chapter__figure > img { flex: 1 1 0; min-height: 0; width: min(1120px, 100%); height: 100%; object-fit: contain; }
/* Cut-outs are trimmed to their alpha bounds, so they fill these boxes.
   Capped near their native width to avoid visible upscaling. */
.chapter__figure--pair {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: center;
  gap: 18px clamp(24px, 5vw, 72px);
  max-width: 1040px;
  width: 100%;
}
.chapter__figure--pair .cutout { height: 100%; object-position: 50% 100%; }
.chapter__figure--pair figcaption { grid-column: 1 / -1; justify-self: center; }
.cutout { width: 100%; height: auto; object-fit: contain; }
.chapter__figure--pair .cutout { max-width: 620px; }
.cutout--tall { max-width: 300px; }

/* dark full-bleed chapter */
.chapter--bleed {
  position: relative;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background-image: url('../img/pearl-nest.jpg');
  background-size: cover;
  background-position: 50% 50%;
  color: var(--on-dark);
}
.chapter--bleed__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,9,0.86) 0%, rgba(8,8,9,0.58) 46%, rgba(8,8,9,0.05) 80%);
}
.chapter--bleed__body {
  position: relative;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chapter--bleed .chapter__lede { color: var(--on-dark-soft); }

/* ---------- two-up ---------- */
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: var(--paper);
}
.tile {
  background: var(--paper-alt);
  padding: clamp(40px, 6vh, 64px) clamp(20px, 3vw, 48px) 0;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  overflow: hidden;
}
.two-up--plain .tile { background: var(--paper); border-top: 1px solid var(--hairline); padding-bottom: clamp(40px, 6vh, 64px); }
.tile__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1;
}
.tile__lede { font-size: clamp(0.95rem, 1.3vw, 1.06rem); color: var(--ink-soft); }
/* Both tiles crop to the same shape so the pair reads as one row. */
.tile > img {
  margin-top: clamp(24px, 4vh, 44px);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.two-up--plain .tile > img {
  margin-block: auto;
  max-width: 420px;
  aspect-ratio: auto;
  object-fit: contain;
}

/* ---------- colours ---------- */
/* Full height, or `cover` crops the top and bottom rows off the colour chart. */
.colours {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch;
  min-height: 100svh;
  background: var(--paper-alt);
}
.colours__body {
  padding: clamp(64px, 9vh, 110px) clamp(24px, 4vw, 64px) clamp(64px, 9vh, 110px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.colours__body .chapter__title { text-align: left; }
.colours__body .chapter__lede { max-width: var(--measure); }
.colours__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 18px;
  width: 100%;
  margin-block: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a463f;
}
.colours__image { width: 100%; height: 100%; min-height: 60svh; object-fit: cover; }

/* ---------- atelier ---------- */
.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(72px, 10vh, 120px) var(--gutter);
  align-items: start;
}
.atelier__quote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.atelier__aside { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.atelier__aside p { font-size: 0.875rem; line-height: 1.9; color: var(--ink-soft); }

/* ---------- trade / footer ---------- */
.trade { background: var(--ink); color: var(--on-dark); }
.trade__inner {
  padding: clamp(56px, 8vh, 88px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.trade__copy { display: flex; flex-direction: column; gap: 14px; }
.trade__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}
.trade__address {
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: #b6b1aa;
}
.trade__address a { border-bottom: 1px solid var(--rule-dark); }
.trade__address a:hover { color: var(--on-dark); }
.trade__actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.trade__legal {
  padding: 22px var(--gutter);
  border-top: 1px solid #262220;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a847c;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .site-nav.is-open { transform: none; }
  .site-nav > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
  .site-nav > .btn { margin-top: 18px; text-align: center; border-color: var(--ink); color: var(--ink); }

  .chapter { height: auto; min-height: 100svh; }
  .chapter__figure, .chapter__figure > img { flex: none; }
  .chapter__figure > img, .chapter__figure--pair .cutout { height: auto; }
  .chapter__figure--pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cutout--tall { display: none; }

  .two-up { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: auto; }

  .colours { grid-template-columns: minmax(0, 1fr); }
  .colours__body { padding-inline: var(--gutter); }
  .colours__image { min-height: 46svh; }

  .atelier { grid-template-columns: minmax(0, 1fr); }

  .trade__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
