:root {
  --ink: #111;
  --paper: #f7f4ef;
  --accent: #8a6a3b;
  --rule: #1110;
  --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --hero-photo-ratio: 4 / 5;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  margin-left: 2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-header nav a:hover { color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }

.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

.lede {
  font-size: 1.1rem;
  max-width: 52ch;
  color: #333;
}

.houses { padding: 5rem 0; border-bottom: 1px solid var(--ink); }

.houses h2,
.about h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 2.5rem;
}

.house-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.house-card {
  padding: 1.75rem;
  border: 1px solid var(--ink);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.house-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.house-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.ownership {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 1rem;
}

.house-card p:last-child { margin: 0; color: #333; }

/* Timeline: 1825–2025, eight 25-year segments. Ticks at 0/12.5/…/100%. */
.timeline {
  position: relative;
  height: 10px;
  margin: 0.25rem 0 1.1rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)) 0 50% / 100% 1px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) 100% 0 / 1px 100% no-repeat,
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 12.5%);
}
.timeline-dot {
  position: absolute;
  top: 50%;
  left: var(--pos, 0%);
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}

/* Craft badge */
.badge-row { margin: 0 0 0.9rem; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

/* Price + Heat meters */
.stats {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 1rem;
}
.stats .stat { display: flex; align-items: baseline; gap: 0.5rem; }
.stats dt {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}
.stats dd { margin: 0; }
.meter {
  letter-spacing: 2px;
  font-size: 0.95rem;
  line-height: 1;
}
.meter span { color: #d9d4c9; }
.meter.price .on { color: var(--accent); }
.meter.heat .on { color: #c0392b; }

/* Creative director line */
.director {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #555;
  margin: 0 0 0.9rem;
  font-style: italic;
}

/* Exclusivity panel — deliberately boxed off to feel separate from the other stats */
.exclusivity-panel {
  border: 1px solid rgba(0, 0, 0, 0.4);
  padding: 0.7rem 0.85rem;
  margin: 0 0 1rem;
  background: rgba(0, 0, 0, 0.015);
}
.ex-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.35rem;
}
.exclusivity-panel .meter.ex {
  margin: 0;
}
.meter.ex .on { color: #2c3e50; }

.about { padding: 5rem 0; max-width: 60ch; }

.site-footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Links inside house cards */
.house-card h3 a {
  color: inherit;
  text-decoration: none;
}
.house-card h3 a:hover { color: var(--accent); }

.meta .fi {
  width: 1.1em;
  height: 0.8em;
  vertical-align: -0.05em;
  margin-right: 0.3em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-size: cover;
}

.house-card .more {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.house-card .more a {
  color: var(--accent);
  text-decoration: none;
}
.house-card .more a:hover { text-decoration: underline; }

/* Brand lockup as a link on sub-pages */
.brand a {
  color: inherit;
  text-decoration: none;
  letter-spacing: inherit;
}

/* House detail page */
.house-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem;
}

.house-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 240px; min-width: 0; }

.hero-portrait {
  flex: 0 0 260px;
  margin: 0;
}
.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: var(--hero-photo-ratio);
  height: auto;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--ink);
}
.hero-portrait figcaption {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}
.hero-portrait figcaption .credit {
  display: block;
  margin-top: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #666;
  font-size: 0.65rem;
}
.hero-portrait figcaption .credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .house-hero { flex-direction: column; align-items: stretch; }
  .hero-portrait { flex: 0 0 auto; max-width: 320px; }
}

.house-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  margin: 0 0 0.75rem;
}

.house-sub {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.house-page article section {
  margin-bottom: 2.75rem;
}

.house-page article h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
}

.house-page p { margin: 0 0 0.9rem; color: #222; }

main.house-page {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  column-gap: 4rem;
  align-items: start;
  justify-content: center;
}
main.house-page > article { min-width: 0; }
.house-timeline {
  align-self: start;
  margin-top: 5rem;
}
.house-timeline > h2 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink);
}

.milestones {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.milestones::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: rgba(17, 17, 17, 0.22);
}
.milestones li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
}
.milestones li::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.4px solid var(--ink);
  transform: translateX(-50%);
}
.milestone-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.milestone-year {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.milestone-text {
  display: block;
  color: #222;
  font-size: 0.88rem;
  line-height: 1.5;
}

.milestones li.is-landmark .milestone-year,
.milestones li.is-landmark .milestone-text {
  color: var(--accent);
  font-style: italic;
}
.milestones li.is-landmark::before {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1100px) {
  main.house-page {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .house-timeline {
    order: 2;
    margin-top: 0;
  }
  main.house-page > article { order: 1; }
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain-list li {
  padding: 0.35rem 0;
}

.section-intro {
  font-style: italic;
  color: #555;
  margin: 0 0 1.25rem;
}

.signature-pieces {
  list-style: none;
  padding: 0;
  margin: 0;
}
.signature-pieces li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.signature-pieces li:last-child { border-bottom: none; }
.signature-pieces li p {
  margin: 0.35rem 0 0;
}
.piece-year {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.5rem;
}

.house-page .note {
  color: #777;
  font-size: 0.9rem;
}

.visual-identity {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem;
}

.house-timeline .identity-marks { gap: 1rem; }
.house-timeline .identity-mark img { max-height: 56px; max-width: 100%; }
.house-timeline .palette-swatches { flex-direction: column; gap: 0.5rem; }
.house-timeline .palette-swatches li { font-size: 0.78rem; gap: 0.45rem; }
.house-timeline .palette-swatches .swatch { width: 1.1rem; height: 1.1rem; }
.house-timeline .palette-swatches code { font-size: 0.7rem; }
.house-timeline .trademark-notice { font-size: 0.7rem; line-height: 1.5; }

.identity-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-end;
  margin: 0;
  padding: 0;
}

.identity-mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.identity-mark img {
  display: block;
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 220px;
}

.identity-mark figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.palette-swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
}

.palette-swatches li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.palette-swatches .swatch {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 2px;
  flex-shrink: 0;
}

.palette-swatches code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #666;
}

.trademark-notice {
  font-size: 0.78rem;
  color: #777;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

.trademark-notice a {
  color: #777;
  text-decoration: underline;
}

.trademark-notice a:hover { color: var(--accent); }

.piece-figure {
  margin: 0.4rem 1.25rem 0.6rem 0;
  max-width: 110px;
  float: left;
}

.signature-pieces li {
  display: flow-root;
}

.piece-figure-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.piece-figure-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 17, 17, 0.12);
  transition: opacity 0.2s ease;
}

.piece-figure-trigger:hover img { opacity: 0.85; }

.piece-figure-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.piece-figure figcaption {
  display: none;
}

.piece-credit {
  display: block;
  font-size: 0.72rem;
  color: #999;
  margin-top: 0.15rem;
  font-style: normal;
}

.piece-credit a {
  color: #999;
  text-decoration: underline;
}

.piece-credit a:hover { color: var(--accent); }

.image-dialog {
  border: none;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.image-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.image-dialog-close:hover { background: rgba(255, 255, 255, 0.2); }

.image-dialog-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.85rem 0 0;
  line-height: 1.5;
}

.image-dialog-caption a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.back-link a { color: var(--ink); text-decoration: none; }
.back-link a:hover { color: var(--accent); }

/* Hero photo slider — swaps in for .hero-portrait when a house has multiple photos */
.hero-slider {
  flex: 0 0 260px;
  margin: 0;
  position: relative;
  outline: none;
}
.hero-slider .slider-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--hero-photo-ratio);
  border: 1px solid var(--ink);
}
.hero-slider .slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.hero-slider .slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}
.hero-slider .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0.5;
  transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.slider-arrow svg { display: block; }
.hero-slider:hover .slider-arrow,
.hero-slider:focus-within .slider-arrow { opacity: 1; }
.slider-arrow:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.slider-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.slider-arrow.prev { left: 0.75rem; }
.slider-arrow.next { right: 0.75rem; }

.slider-captions {
  display: grid;
  margin-top: 0.6rem;
  text-align: center;
}
.slide-caption {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  visibility: hidden;
}
.slide-caption.is-active { visibility: visible; }
.slide-caption .credit {
  display: block;
  margin-top: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #666;
  font-size: 0.65rem;
}
.slide-caption .credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}
.slider-dot.is-active { background: var(--accent); border-color: var(--accent); }
.slider-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .hero-slider { flex: 0 0 auto; max-width: 320px; }
}

/* Secondary badges: couture status and heritage specialty */
.badge-row .badge + .badge { margin-left: 0.35rem; }
.badge-couture-official {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.badge-couture-correspondent {
  color: var(--accent);
  border-color: var(--accent);
}
.badge-specialty {
  color: #666;
  border-color: rgba(0, 0, 0, 0.3);
}

/* Creative director role label (Men / Women) */
.cd-role {
  display: inline-block;
  min-width: 3.5em;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--accent);
}

/* How-to-read legend above the grid */
.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem 1.8rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.02);
  margin: 0 0 0.75rem;
}
.legend > div { margin: 0; }
.legend dt {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.15rem;
}
.legend dd {
  margin: 0;
  font-size: 0.85rem;
  color: #333;
}
.legend-note {
  font-size: 0.75rem;
  color: #777;
  font-style: italic;
  margin: 0 0 2.5rem;
}

/* ── Construction-mode visual aids ───────────────────────────────────
   Apply via <body class="dev-boxed"> or <body class="dev-stripe"> on
   a house page during construction; remove the body class for prod.
   Only one mode should be active per page at a time. */

body.dev-boxed .house-page article section {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.75rem;
  margin: 3.25rem 0 0;
}

body.dev-boxed .house-page article > section:first-of-type {
  margin-top: 1.5rem;
}

body.dev-boxed .house-page article section h2 {
  display: block;
  background: transparent;
  padding: 0;
  margin: -3rem 0 0;
  border-bottom: none;
}

body.dev-stripe .house-page article section {
  border-left: 4px dashed var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2.75rem;
}

body.dev-tint .house-page article section {
  margin: 6.5rem 0 0;
  position: relative;
}

body.dev-tint .house-page article > section:first-of-type {
  margin-top: 1.5rem;
}

body.dev-tint .house-page article section > h2 {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  margin: 0;
  background: rgba(17, 17, 17, 0.04);
  padding: 0.25rem 1.25rem;
  border-bottom: none;
  border-radius: 4px;
  display: block;
}

.hero-founding {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin: 1rem 0 0;
  max-width: 32rem;
}

.hero-creative-director {
  margin-top: 1rem;
  max-width: 32rem;
}
.hero-creative-director p { font-size: 0.9rem; color: #333; line-height: 1.6; margin: 0 0 0.6rem; }
.hero-creative-director p:last-child { margin-bottom: 0; }
