:root {
  --ink: #20201d;
  --muted: #6c7167;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --line: #e2e7df;
  --brand-blue: #255565;
  --brand-blue-80: #517784;
  --brand-blue-20: #d3dde0;
  --brand-brown: #9b7257;
  --sage: #8a9e8c;
  --sage-light: #edf0eb;
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── TOP BAR ─────────────────────────────────────────── */
.cat-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 54px);
  background: rgba(251, 251, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.cat-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-topbar__name {
  font-family: Laila, Georgia, serif;
  font-size: 24px;
  color: var(--brand-brown);
}

.cat-topbar__sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand-blue-80);
  display: block;
  margin-top: -2px;
}

.cat-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-20);
  border-radius: 999px;
  padding: 6px 16px;
  transition: background 180ms;
}

.cat-topbar__back:hover {
  background: var(--brand-blue-20);
}

.cat-topbar__nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.cat-topbar__nav a {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background 150ms, border-color 150ms, color 150ms;
}

.cat-topbar__nav a:hover,
.cat-topbar__nav a.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* ─── COVER ─────────────────────────────────────────────── */
.cat-cover {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a2422;
}

.cat-cover__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.cat-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(18, 24, 22, 0.92) 100%);
}

.cat-cover__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 0 0 80px;
  color: #fff;
}

.cat-cover__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.cat-cover__title {
  font-family: Laila, Georgia, serif;
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 8px;
}

.cat-cover__subtitle {
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.cat-cover__desc {
  max-width: 560px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.header__brand-icon {
  display: block;
  width: 36px;
  height: auto;
  flex: 0 0 auto;
}

/* ─── SECTION UTILITY ────────────────────────────────────── */
.cat-section {
  padding: 96px 0;
}

.cat-section--alt {
  background: var(--sage-light);
}

.cat-section--dark {
  background: var(--brand-blue);
  color: #fff;
}

.cat-section--white {
  background: #fff;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 14px;
}

.cat-section--dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 20px;
}

.section-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

.cat-section--dark .section-body {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── DESIGNER SPREAD ────────────────────────────────────── */
.designer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.designer-photo {
  position: relative;
}

.designer-photo__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
}

.designer-photo__caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(37, 85, 101, 0.88);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  padding: 16px 18px;
  border-radius: 4px;
}

.designer-text {
  padding-top: 12px;
}

.designer-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  font-weight: 300;
  color: var(--brand-blue);
  line-height: 1.3;
  border-left: 2px solid var(--brand-brown);
  padding-left: 22px;
  margin: 28px 0;
}

/* ─── LINE INTRO ─────────────────────────────────────────── */
.line-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.line-intro__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
}

.line-intro__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--brand-brown);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ─── PRODUCT HERO (full-bleed image + text side) ─────────── */
.prod-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.prod-hero--reverse {
  direction: rtl;
}

.prod-hero--reverse>* {
  direction: ltr;
}

.prod-hero__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: var(--line);
}

.prod-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
  background: var(--surface);
}

.cat-section--alt .prod-hero__content {
  background: var(--sage-light);
}

.prod-hero__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-blue-80);
  margin-bottom: 12px;
}

.prod-hero__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 22px;
  color: var(--ink);
}

.prod-hero__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 380px;
}

.prod-hero__quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: var(--brand-blue);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.prod-hero__quote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── FULL BLEED IMAGE ───────────────────────────────────── */
.full-bleed {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  background: var(--line);
  display: block;
}

/* ─── PRODUCT CARD GRID ──────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.prod-card {
  position: relative;
  overflow: hidden;
  background: var(--line);
}

.prod-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.prod-card:hover::after {
  opacity: 1;
}

.prod-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #e0dbd4;
  transition: transform 400ms ease;
}

.prod-card:hover .prod-card__img {
  transform: scale(1.04);
}

.prod-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #fff;
  z-index: 1;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
}

.prod-card:hover .prod-card__info {
  opacity: 1;
  transform: translateY(0);
}

.prod-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.prod-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
}

/* ─── 2-UP PRODUCT ───────────────────────────────────────── */
.prod-2up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.prod-2up__item {}

.prod-2up__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 20px;
}

.prod-2up__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue-80);
  margin-bottom: 8px;
}

.prod-2up__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 14px;
}

.prod-2up__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── DETAIL CALLOUT ─────────────────────────────────────── */
.detail-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.detail-callout__image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  background: #333;
}

.detail-callout__text {
  padding: clamp(40px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-callout__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.detail-callout__quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
}

.detail-callout__body {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.detail-callout__author {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-brown);
}

/* ─── EDITORIAL TEXT BLOCK ───────────────────────────────── */
.editorial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
}

.editorial__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}

.editorial__body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── STORY / HISTORY ────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.story-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
}

.story-text .section-title {
  font-style: italic;
}

.story-divider {
  width: 40px;
  height: 1px;
  background: var(--brand-brown);
  margin: 28px 0;
}

.story-highlight {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  padding: 20px 22px;
  border-radius: 0 4px 4px 0;
  margin-top: 28px;
}

.story-highlight strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.story-highlight p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── PRODUCT TEXT+IMAGE (mixed) ─────────────────────────── */
.prod-mixed {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.prod-mixed--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.prod-mixed--reverse .prod-mixed__image {
  order: 2;
}

.prod-mixed--reverse .prod-mixed__text {
  order: 1;
}

.prod-mixed__image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--paper);
}

.prod-mixed__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue-80);
  margin-bottom: 10px;
}

.prod-mixed__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 18px;
}

.prod-mixed__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.prod-detail-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prod-detail-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.prod-detail-list li::before {
  content: '';
  flex: 0 0 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-brown);
  margin-top: 7px;
}

/* ─── LINE DIVIDER ───────────────────────────────────────── */
.line-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 64px 0 56px;
}

.line-divider__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  white-space: nowrap;
  color: var(--ink);
}

.line-divider__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.line-divider__tag {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue-80);
}

/* ─── CHAIR DETAIL ───────────────────────────────────────── */
.chair-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.chair-detail__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
}

.chair-detail__specs {
  padding-top: 12px;
}

.spec-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.spec-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-item__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue-80);
  margin-bottom: 6px;
}

.spec-item__value {
  font-size: 14px;
  color: var(--muted);
}

/* ─── CTA ────────────────────────────────────────────────── */
.cat-cta {
  text-align: center;
  padding: 100px 20px;
  background: var(--brand-blue);
  color: #fff;
}

.cat-cta__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 16px;
}

.cat-cta__body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  margin: 0 auto 36px;
}

.cat-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms, background 180ms, color 180ms;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--brand-blue);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
}

/* ─── IMAGE PLACEHOLDER ──────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, #e8e4df, #d4cfc8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09890;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .cat-section {
    padding: 64px 0;
  }

  .designer-grid,
  .line-intro,
  .prod-hero,
  .prod-2up,
  .detail-callout,
  .story-grid,
  .chair-detail,
  .prod-mixed,
  .prod-mixed--reverse {
    grid-template-columns: 1fr;
  }

  .prod-hero {
    min-height: auto;
  }

  .prod-hero--reverse {
    direction: ltr;
  }

  .prod-hero__image {
    min-height: 300px;
  }

  .detail-callout__image {
    min-height: 260px;
  }

  .prod-mixed--reverse .prod-mixed__image {
    order: 0;
  }

  .prod-mixed--reverse .prod-mixed__text {
    order: 0;
  }

  .prod-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-topbar__nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .prod-grid {
    grid-template-columns: 1fr;
  }

  .cat-topbar {
    padding: 0 16px;
  }
}
/* --- Refactored Classes --- */

.cat-topbar__brand-container {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.cat-cover__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.cat-cover__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  object-position: center 40%;
}

.designer-photo__img--large {
  min-height: 480px;
}

.section-body--mt {
  margin-top: 16px;
}

.section-title--italic {
  font-style: italic;
}

.section-body--full {
  max-width: 100%;
}

.line-intro__media-container {
  position: relative;
}

.prod-hero__desc--mt {
  margin-top: 14px;
}

.full-bleed--trama {
  max-height: 580px;
}

.prod-hero__content--sage {
  background: var(--sage-light);
}

.full-bleed--frontier {
  max-height: 640px;
  object-fit: cover;
  object-position: center 80%;
}

.prod-hero--grid {
  min-height: auto;
  gap: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.prod-hero__grid-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 4px;
  background: var(--paper);
}

.prod-mixed__desc--mt {
  margin-top: 14px;
}

.cat-footer {
  padding: 32px 0;
  background: #1a2422;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.cat-footer__text {
  font-size: 12px;
  line-height: 1.8;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .cat-cover {
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }

  .cat-cover__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .cat-cover__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .prod-hero--grid {
    grid-template-columns: 1fr;
  }
}
