/* ============================================================
   Jennifer Tarabay Design — Curva Collection
   Design system · Luxe palette · Fraunces + Manrope
   ============================================================ */

:root {
  /* Luxe palette */
  --ivory:  #F0E9E3;
  --paper:  #F5F0EA;
  --greige: #D0C8BD;
  --mist:   #D9D9D9; /* reserved — part of the Luxe palette, currently unused */
  --taupe:  #AD9D8D;
  --wine:   #72393F;
  --wine-d: #5C2D33;
  --ink:    #332E2B;
  --ink-soft: #57504B;
  --ink-mute: #6E655E;

  --line: rgba(51, 46, 43, 0.16);
  --line-strong: rgba(51, 46, 43, 0.32);
  --line-ivory: rgba(240, 233, 227, 0.22);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Avenir Next", "Helvetica Neue", sans-serif;

  --wrap: 1400px;
  --gut: clamp(1.25rem, 4.5vw, 4.5rem);
  --sec: clamp(5rem, 11vh, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
}

/* anchored sections must clear the fixed header */
[id] { scroll-margin-top: 6.5rem; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--wine); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 em, h2 em, .display em {
  font-style: italic;
  font-weight: 340;
  color: var(--wine);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 1.6rem;
}

.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--wine);
  opacity: 0.55;
}

.kicker--bare::before { display: none; }

.h-xl { font-size: clamp(2.9rem, 7.2vw, 6.2rem); }
.h-lg { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.h-md { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h-sm { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 38em;
}

.statement {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.55rem, 3.1vw, 2.6rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.meta-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sec { padding-block: var(--sec); }
.sec--flush-top { padding-top: 0; }
.sec--hairline { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.02rem 2.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--wine); color: var(--ivory); }
.btn--solid:hover { background: var(--wine-d); }

.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--wine-d); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }

.btn--solid-ivory { background: var(--ivory); color: var(--ink); }
.btn--solid-ivory:hover { background: var(--greige); }

/* Text link with animated underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  padding-bottom: 0.35rem;
}

/* invisible hit-area extension — comfortable touch target without layout shift */
.tlink::before {
  content: "";
  position: absolute;
  inset: -0.7rem -0.4rem;
}

.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.tlink:hover::after { transform: scaleX(1); }

.tlink .arr { transition: transform 0.45s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.8rem 1.4rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.8rem;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-head.is-scrolled {
  background: rgba(240, 233, 227, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 5.25rem;
}

.brand { display: inline-block; line-height: 1.1; }

.brand__name {
  display: block;
  font-family: var(--serif);
  font-weight: 430;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__sub {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.6rem); }

.site-nav__link {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--wine); }

.site-nav .btn { padding: 0.72rem 1.6rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
  z-index: 130;
}

.burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90; /* below .site-head so the brand and close button stay visible */
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: var(--gut);
  padding-top: 6rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}

/* centered when there is room, scrollable when there is not */
.mobile-menu nav { margin-top: auto; }
.mobile-menu__foot { margin-bottom: auto; }

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}

.mobile-menu__link {
  display: block;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  color: var(--ink);
  padding: 0.55rem 0;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

.mobile-menu__link:hover { color: var(--wine); }

.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.25s; }

.mobile-menu__foot a { display: inline-block; padding-block: 0.55rem; }

.mobile-menu__foot {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.3s;
}

.mobile-menu.is-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__foot a:hover { color: var(--wine); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: flex; }
}

/* ------------------------------------------------------------
   Hero (home)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
  width: 100%;
}

.hero__title { margin-bottom: 1.9rem; }

.hero__copy { max-width: 33em; margin-bottom: 2.6rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__media { position: relative; }

/* passe-partout frame offset behind image */
.frame { position: relative; }

.frame::before {
  content: "";
  position: absolute;
  inset: clamp(1.1rem, 2vw, 1.8rem) clamp(-1.8rem, -2vw, -1.1rem) clamp(-1.8rem, -2vw, -1.1rem) clamp(1.1rem, 2vw, 1.8rem);
  border: 1px solid var(--taupe);
  opacity: 0.65;
  pointer-events: none;
}

.frame img { position: relative; width: 100%; object-fit: cover; }

.hero__media .frame img { aspect-ratio: 4 / 5; }

.hero__foot {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.2rem, 3vh, 2.4rem);
  pointer-events: none;
}

.hero__foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, var(--ink-mute), transparent);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 8rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 30rem; }
  .hero__media .frame img { aspect-ratio: 4 / 4.4; }
  .hero__foot { display: none; }
}

/* ------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------ */
.page-hero { padding-top: clamp(9.5rem, 18vh, 13rem); padding-bottom: clamp(3rem, 6vh, 5rem); }
.page-hero__title { max-width: 12em; }
.page-hero .lede { margin-top: 1.9rem; }

/* ------------------------------------------------------------
   Collection grid (home)
   ------------------------------------------------------------ */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.sec-head .lede { margin-top: 1.4rem; }

.sec-head__aside { flex-shrink: 0; padding-bottom: 0.5rem; }

@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
}

.pieces {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: clamp(3.5rem, 7vh, 6rem);
}

.piece { position: relative; }

.piece:nth-child(1) { grid-column: 1 / span 7; }
.piece:nth-child(2) { grid-column: 9 / span 4; align-self: end; }
.piece:nth-child(3) { grid-column: 2 / span 4; margin-top: 12%; }
.piece:nth-child(4) { grid-column: 7 / span 6; }

@media (max-width: 900px) {
  .piece:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .piece:nth-child(even) { grid-column: 2 / -1; }
  .piece:nth-child(odd) { grid-column: 1 / span 11; }
}

.piece__media {
  position: relative;
  overflow: hidden;
  background: var(--greige);
}

.piece__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.piece:hover .piece__media img { transform: scale(1.045); }

.piece__index {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ivory);
  mix-blend-mode: difference;
  letter-spacing: 0.08em;
}

.piece__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
}

.piece__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--ink);
  transition: color 0.3s;
}

.piece:hover .piece__name { color: var(--wine); }

.piece__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.piece__link::before { content: ""; position: absolute; inset: 0; z-index: 2; }

/* ------------------------------------------------------------
   Dark band (bespoke home / craft)
   ------------------------------------------------------------ */
.band-dark {
  background: var(--ink);
  color: var(--greige);
}

.band-dark h2, .band-dark h3, .band-dark .display { color: var(--ivory); }
.band-dark h2 em, .band-dark h3 em, .band-dark .display em { color: var(--taupe); }
.band-dark .kicker { color: var(--taupe); }
.band-dark .kicker::before { background: var(--taupe); }
.band-dark .lede { color: var(--greige); }
.band-dark .meta-label { color: var(--taupe); }

.band-dark__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

@media (max-width: 900px) {
  .band-dark__grid { grid-template-columns: 1fr; }
}

.band-dark .frame::before { border-color: var(--taupe); opacity: 0.5; }

/* ------------------------------------------------------------
   Steps (how it works)
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  list-style: none;
}

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.band-dark .step { border-top-color: var(--line-ivory); }

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: 1.9rem;
  color: var(--wine);
  display: block;
  margin-bottom: 1rem;
}

.band-dark .step__num { color: var(--taupe); }

.step__title {
  font-family: var(--serif);
  font-weight: 430;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.band-dark .step__title { color: var(--ivory); }

.step p { font-size: 0.95rem; line-height: 1.7; }

/* Vertical timeline variant (process / bespoke pages) */
.timeline { max-width: 46rem; list-style: none; }

.tl-item {
  position: relative;
  padding: 0 0 3.2rem 3.4rem;
  border-left: 1px solid var(--line);
  margin-left: 0.6rem;
}

.tl-item:last-child { padding-bottom: 0.5rem; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -0.34rem;
  top: 0.42rem;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid var(--wine);
}

.tl-item__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--wine);
  display: block;
  margin-bottom: 0.4rem;
}

.tl-item h3 {
  font-size: 1.35rem;
  font-weight: 430;
  margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------
   Quote strip
   ------------------------------------------------------------ */
.quote-strip { text-align: center; }

.quote-strip .statement { max-width: 24em; margin-inline: auto; }

.quote-strip cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------
   Editorial rows (collection page)
   ------------------------------------------------------------ */
.ed-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vh, 4.5rem);
}

.ed-row + .ed-row { border-top: 1px solid var(--line); }

.ed-row__media { grid-column: 1 / span 6; }
.ed-row__body { grid-column: 8 / span 5; }

.ed-row--flip .ed-row__media { grid-column: 7 / span 6; order: 2; }
.ed-row--flip .ed-row__body { grid-column: 1 / span 5; order: 1; }

@media (max-width: 900px) {
  .ed-row__media, .ed-row--flip .ed-row__media { grid-column: 1 / -1; order: 0; }
  .ed-row__body, .ed-row--flip .ed-row__body { grid-column: 1 / -1; order: 1; }
}

.ed-row__media { position: relative; overflow: hidden; background: var(--greige); }

.ed-row__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.ed-row:hover .ed-row__media img { transform: scale(1.04); }

.ed-row__body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }

.ed-row__body .piece-tags { margin: 1.4rem 0 1.8rem; }

.ed-row__dims {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 1.8rem;
}

/* ------------------------------------------------------------
   Tags / chips
   ------------------------------------------------------------ */
.piece-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  white-space: nowrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
}

.status-chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

/* ------------------------------------------------------------
   Product page
   ------------------------------------------------------------ */
.product-hero { padding-top: clamp(9rem, 16vh, 12rem); }

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .product-hero__grid { grid-template-columns: 1fr; }
}

.product-hero__title { font-size: clamp(2.8rem, 5.6vw, 5rem); margin-bottom: 1.6rem; }

.product-hero__desc { margin-bottom: 2.4rem; }

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  margin-bottom: 2.4rem;
}

.product-meta div dt { margin-bottom: 0.4rem; }
.product-meta div dd { font-size: 0.95rem; color: var(--ink); }

.product-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Gallery */
.p-gallery { position: sticky; top: 7rem; }

@media (max-width: 900px) { .p-gallery { position: static; } }

.p-gallery__main {
  position: relative;
  overflow: hidden;
  background: var(--greige);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.p-gallery__main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity 0.35s var(--ease);
}

.p-gallery__main:hover .p-gallery__hint,
.p-gallery__main:focus-visible .p-gallery__hint { opacity: 1; }

/* touch devices get the affordance permanently — there is no hover to reveal it */
@media (hover: none) {
  .p-gallery__hint { opacity: 1; }
}

.p-gallery__hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(51, 46, 43, 0.72);
  color: var(--ivory);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.p-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.p-thumb {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--greige);
  border: 0;
  opacity: 0.62;
  transition: opacity 0.3s;
}

.p-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.p-thumb:hover { opacity: 0.85; }

.p-thumb.is-active { opacity: 1; }

.p-thumb.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--wine);
}

/* Product narrative */
.p-narrative {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
}

@media (max-width: 820px) { .p-narrative { grid-template-columns: 1fr; } }

.p-narrative h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 1.2rem; }
.p-narrative p + p { margin-top: 1.1rem; }

/* Materials list */
.mat-list { list-style: none; }

.mat-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.975rem;
}

.mat-list li::before {
  content: "—";
  color: var(--wine);
  flex-shrink: 0;
}

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }

.swatch { text-align: center; }

.swatch i {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-inline: auto;
}

.swatch span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* wood + fabric swatch fills */
.sw-oak    { background: linear-gradient(135deg, #C9A876, #B08F5F 55%, #C4A470); }
.sw-walnut { background: linear-gradient(135deg, #6B4A34, #543826 55%, #61432E); }
.sw-ash    { background: linear-gradient(135deg, #E4D5BC, #D3C1A4 55%, #DECFB4); }
.sw-linen  { background: linear-gradient(135deg, #E7DFD2, #D9CFBE); }
.sw-velvet { background: linear-gradient(135deg, #72393F, #5C2D33); }
.sw-boucle { background: radial-gradient(circle at 30% 30%, #EFE8DC 2px, transparent 2.6px) 0 0 / 8px 8px, #DDD3C4; }
.sw-stain  { background: linear-gradient(135deg, #AD9D8D, #8C7B6B); }
.sw-custom {
  background: var(--ivory);
  position: relative;
}
.sw-custom::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--wine);
}

/* Request band on product pages */
.request-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Prev / next product nav */
.p-nav { display: grid; grid-template-columns: 1fr 1fr; }

.p-nav a {
  padding: clamp(2.2rem, 5vh, 3.6rem) var(--gut);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.4s var(--ease);
}

.p-nav a:hover { background: var(--paper); }

.p-nav a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }

.p-nav__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.p-nav__name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink);
}

.p-nav a:hover .p-nav__name { color: var(--wine); }

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(38, 34, 31, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}

.lightbox__stage {
  max-width: min(88vw, 76rem);
  max-height: 86vh;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox__stage.is-zoomed { cursor: zoom-out; }

.lightbox__stage img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
  transform-origin: center;
}

.lightbox__stage.is-zoomed img { transform: scale(2.1); }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid var(--line-ivory);
  color: var(--ivory);
  font-size: 1.1rem;
  transition: background-color 0.3s, border-color 0.3s;
  background: rgba(38, 34, 31, 0.4);
}

.lightbox__btn:hover { background: rgba(240, 233, 227, 0.14); border-color: var(--ivory); }

.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

.lightbox__caption {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--greige);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Values blocks (about)
   ------------------------------------------------------------ */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.value-block { border-top: 1px solid var(--line); padding-top: 1.5rem; }

.value-block h3 {
  font-size: 1.25rem;
  font-weight: 430;
  margin: 1rem 0 0.65rem;
}

.value-block .step__num { margin-bottom: 0; }

.value-block p { font-size: 0.95rem; }

/* Mission / vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 820px) { .mv-grid { grid-template-columns: 1fr; } }

.mv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3.2rem);
}

.mv-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}

@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.55rem; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.65rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23332E2B' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.6rem;
  cursor: pointer;
}

.field textarea { min-height: 8.5rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--wine);
}

/* suppress the ring only for pointer focus; keyboard focus keeps the wine outline */
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible) {
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: 1; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 0.6rem;
}

.form-note { font-size: 0.85rem; color: var(--ink-mute); max-width: 26em; }

/* ------------------------------------------------------------
   Contact methods
   ------------------------------------------------------------ */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}

@media (max-width: 900px) { .contact-methods { grid-template-columns: 1fr; } }

.cm-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.cm-card:hover { border-color: var(--wine); transform: translateY(-3px); }

.cm-card h3 { font-size: 1.35rem; font-weight: 430; }

.cm-card p { font-size: 0.92rem; flex-grow: 1; }

.cm-card .tlink { align-self: flex-start; }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band {
  background: var(--greige);
  text-align: center;
}

.cta-band h2 { max-width: 14em; margin-inline: auto; }

.cta-band .lede { margin: 1.6rem auto 2.6rem; }

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-foot {
  background: var(--ink);
  color: var(--greige);
  padding-top: clamp(4rem, 8vh, 6.5rem);
}

.site-foot__word {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.6rem, 7.6vw, 6.8rem);
  line-height: 1.02;
  color: var(--ivory);
  letter-spacing: -0.015em;
  margin-bottom: clamp(2.8rem, 6vh, 4.5rem);
  text-wrap: balance;
}

.site-foot__word em { font-style: italic; color: var(--taupe); }

.site-foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
}

@media (max-width: 900px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-foot__grid { grid-template-columns: 1fr; } }

.site-foot__brand p { font-size: 0.92rem; max-width: 24em; margin-top: 1rem; }

.site-foot h3 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.3rem;
}

.site-foot ul { list-style: none; }

.site-foot ul li { margin-bottom: 0.25rem; }

.site-foot ul a {
  display: inline-block;
  padding-block: 0.4rem;
  font-size: 0.95rem;
  color: var(--greige);
  transition: color 0.3s;
}

.site-foot ul a:hover { color: var(--ivory); }

.site-foot__base {
  border-top: 1px solid var(--line-ivory);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--taupe);
}

.site-foot__base a { color: inherit; display: inline-block; padding-block: 0.4rem; }
.site-foot__base a:hover { color: var(--ivory); }

.site-foot__legal { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }

/* ------------------------------------------------------------
   Legal page
   ------------------------------------------------------------ */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.legal-nav .tag { padding: 0.7rem 1.15rem; }

.legal-sec { max-width: 46rem; padding-block: 2.6rem; border-top: 1px solid var(--line); }

.legal-sec h2 { font-size: 1.8rem; margin-bottom: 1.2rem; }

.legal-sec p + p { margin-top: 1rem; }

.legal-sec p { font-size: 0.975rem; }

/* ------------------------------------------------------------
   Phone ergonomics
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .site-head__bar { height: 4.5rem; }

  .hero { padding-top: 6.5rem; }

  /* full-width, easy-thumb CTAs */
  .hero__actions .btn,
  .product-hero__actions .btn,
  .cta-band__actions .btn,
  .form-foot .btn {
    width: 100%;
    justify-content: center;
    padding-block: 1.1rem;
  }

  /* stack the prev/next product links */
  .p-nav { grid-template-columns: 1fr; }
  .p-nav a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
    text-align: left;
    align-items: flex-start;
  }

  /* slightly tighter section rhythm on small screens */
  .sec-head { margin-bottom: 2.5rem; }

  /* keep the Made-to-Order chip on one line: give it the full row */
  .product-meta div:last-child { grid-column: 1 / -1; }
  .status-chip { white-space: nowrap; }
}

/* ------------------------------------------------------------
   Reveal animations
   ------------------------------------------------------------ */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rvd, 0s);
}

.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.maxw { max-width: 44em; }
.mx-auto { margin-inline: auto; }
