/* Zivara Atelier — homepage sections after the story. */

/* ------------------------------------------------------------- section chrome */
.rail, .compact, .forecast, .showroom, .occasions, .accordion, .trends, .saga {
  padding: clamp(52px, 6.5vw, 104px) var(--pad);
}

.rail__head, .compact__head, .forecast__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.rail--tight { padding-top: 0; }

.rail__nav { display: flex; gap: 10px; }

.rail__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.rail__btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

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

.btn--wine { background: var(--forest); color: #fff; }
.btn--wine:hover { background: var(--forest-deep); transform: translateY(-2px); }

/* ------------------------------------------------------------------ saga */
.saga { background: var(--paper); overflow: hidden; }

.saga__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(10px, 2vw, 26px);
}

.saga__link { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--forest); }

.saga__stage { position: relative; padding: 40px 0 20px; }
.saga__stage:hover .saga__track { animation-play-state: paused; }

.saga__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(10px, 1.4vw, 20px);
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--pad);
}

.saga__track::-webkit-scrollbar { display: none; }

.saga__card { scroll-snap-align: center; }

/* snapping only where a finger is doing the scrolling — on a desktop it
   fights the slow drift and the row never moves */
@media (hover: none) {
  .saga__track { scroll-snap-type: x proximity; }
}

.saga__card {
  flex: 0 0 clamp(150px, 15vw, 226px);
  will-change: transform;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  transform: translateY(26px) rotate(0deg);
  box-shadow: 0 18px 40px rgba(20, 16, 14, 0.08);
  cursor: pointer;
}

.saga__card img { width: 100%; height: 100%; object-fit: cover; }

.saga__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 24, 0.62), transparent 46%);
}

.saga__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.02em;
}

.saga__nav { display: none; }

/* on a touch screen the arrows are pointless — the row is swiped */
@media (hover: none) {
  .rail__nav { display: none; }
}

/* ------------------------------------------------------------------ product rail */
.prow, .qrow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

/* drifting rails: content duplicated by JS, shifted by CSS */
.prow--auto { display: block; overflow: hidden; }

.prow__inner {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  width: max-content;
  will-change: transform;
}

.prow--auto .pcard { flex: 0 0 clamp(210px, 17vw, 268px); }

.prow--left .prow__inner { animation: drift-left 90s linear infinite; }
.prow--right .prow__inner { animation: drift-right 90s linear infinite; }

.prow--auto:hover .prow__inner,
.prow--auto:focus-within .prow__inner { animation-play-state: paused; }

@keyframes drift-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes drift-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* the slow rolls keep going even with reduced motion: they are the section's layout,
   not a transition — the story pinning above is what honours the preference */

.prow::-webkit-scrollbar, .qrow::-webkit-scrollbar { display: none; }

.pcard, .qcard { scroll-snap-align: start; }

.pcard__link { display: block; }

.pcard__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
}

.pcard__img {
  object-position: 50% 0%;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s var(--ease), transform 0.9s var(--ease);
}

.pcard__img--b { opacity: 0; }
.pcard:hover .pcard__img--b { opacity: 1; }
.pcard:hover .pcard__img--a { transform: scale(1.03); }

.pcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pcard__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.pcard__wish.is-on { color: #9E1B24; }

.pcard__quick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 30, 24, 0.82);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.pcard:hover .pcard__quick { transform: translateY(0); }

.pcard__rank {
  display: block;
  margin: 12px 0 2px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.pcard__meta {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #6B655D;
}

.pcard__name {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.3;
}

.pcard__price { font-size: 13px; letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ bridal */
.bridal {
  position: relative;
  background: var(--forest-deep);
  color: #fff;
  padding: clamp(56px, 7vw, 110px) 0;
  margin: clamp(30px, 4vw, 60px) 0;
}

.bridal__wave { display: block; width: 100%; height: clamp(40px, 6vw, 86px); position: absolute; left: 0; z-index: 2; pointer-events: none; }
.bridal__wave--top { top: -1px; }
.bridal__wave--bottom { bottom: -1px; }

.bridal__inner {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: clamp(18px, 3vw, 46px);
  padding: 0 var(--pad);
  align-items: stretch;
}

.bridal__anchor { position: relative; border-radius: 12px; overflow: hidden; min-height: 420px; }
.bridal__anchor img { width: 100%; height: 100%; object-fit: cover; }

.bridal__anchor::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10, 20, 16, 0.78), transparent);
}

.bridal__anchor-link {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.bridal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.bridal__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  margin: 0;
}

.bridal .rail__btn { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #fff; }
.bridal .rail__btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.bridal__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bridal__rail::-webkit-scrollbar { display: none; }

.bcard { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 10px 14px; display: flex; flex-direction: column; }
.bcard h3, .bcard p { min-height: 0; }
.bcard p { min-height: 2.4em; }
.bcard img { border-radius: 7px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0%; width: 100%; }
.bcard h3 { font-family: var(--serif); font-weight: 400; font-size: 15px; margin: 10px 0 4px; line-height: 1.3; }
.bcard p { margin: 0 0 8px; font-size: 11.5px; color: #5B554E; line-height: 1.4; }
.bcard__price { font-size: 13.5px; display: block; margin-bottom: 10px; }

.bcard__add {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px;
  margin-top: auto;
  background: var(--gold);
  color: #1F1916;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ------------------------------------------------------------------ compact modules */
.compact__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.compact__bar { width: 3px; height: 28px; background: var(--gold); display: inline-block; }

.qrow { grid-auto-columns: minmax(320px, 1fr); }

.qcard {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--paper);
}

.qcard__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 7px; }
.qcard__body { display: flex; flex-direction: column; position: relative; }
.qcard__meta { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.qcard__name { font-family: var(--serif); font-weight: 400; font-size: 15px; margin: 6px 0; line-height: 1.3; }
.qcard__price { font-size: 13px; margin-top: auto; }

.qcard__add {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
}

/* ------------------------------------------------------------------ forecast */
.forecast__title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 400;
  margin: 0;
  line-height: 1.05;
}

.forecast__side { max-width: 420px; }
.forecast__side p { color: var(--muted); margin: 0 0 16px; }

.forecast__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}

.forecast__card { position: relative; }
.forecast__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 200px 200px 8px 8px;
}
.forecast__card span {
  display: block;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ showroom */
.showroom { background: var(--paper-2); }

.showroom__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(22px, 3vw, 40px); }

.showroom__grid {
  display: grid;
  grid-template-columns: 150px 1fr 390px;
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
}

.showroom__panel { padding-top: clamp(8px, 1.4vw, 22px); }

.showroom__thumbs { display: flex; flex-direction: column; gap: 12px; }
.showroom__script { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; margin-bottom: 6px; }

.thumb {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.thumb.is-active { border-color: var(--forest); transform: translateX(4px); }

.showroom__stage { position: relative; display: grid; place-items: start center; }
.showroom__model {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.5s var(--ease);
}
.showroom__stamp {
  position: absolute;
  left: 10px;
  bottom: 16px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
}

.showroom__rating { margin: 0 0 10px; color: var(--gold); letter-spacing: 0.1em; font-size: 13px; }
.showroom__rating span { color: var(--muted); letter-spacing: 0.06em; font-size: 11px; margin-left: 8px; }

.showroom__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  line-height: 1.15;
}

.showroom__price { font-size: 18px; margin: 0 0 8px; }
.showroom__meta { color: var(--muted); font-size: 12px; margin: 0 0 22px; }

.sizes, .swatches { margin-bottom: 20px; }
.sizes__label { display: block; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.sizes__row { display: flex; gap: 8px; flex-wrap: wrap; }

.size {
  min-width: 48px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.size.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

.swatches__row { display: flex; gap: 10px; }

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sw);
  cursor: pointer;
}
.swatch.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--forest); }

.showroom__buy { display: flex; align-items: center; gap: 14px; }

.btn--wine { border-radius: 999px; }
.btn--wine span { margin-left: 6px; }

.qty { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.qty button { border: 0; background: none; cursor: pointer; font-size: 15px; }

/* ------------------------------------------------------------------ occasions */
.occasions__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.05;
}
.occasions__title .script { text-transform: none; }

.occasions__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.edit { position: relative; border-radius: 10px; overflow: hidden; }

/* the whole card is the link, not just the words inside it */
.edit__link { display: block; color: inherit; text-decoration: none; }
/* 4:5 crops a 3:4 file top and bottom — bias the window upward so the
   head stays inside the card */
.edit img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; transition: transform 0.9s var(--ease); }
.edit:hover img { transform: scale(1.05); }

.edit__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 30, 24, 0.72), transparent);
}
.edit__body h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; margin: 0 0 4px; }
.edit__body span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ------------------------------------------------------------------ accordion */
.accordion__row { display: flex; gap: 10px; height: 440px; }

.panel {
  position: relative;
  display: block;
  flex: 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: flex 0.7s var(--ease);
}

.panel:hover,
.panel:focus-visible { flex: 4; }
.panel:hover img,
.panel:focus-visible img { filter: none; }

.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(100%); transition: filter 0.6s var(--ease); }
.panel.is-active { flex: 4; }
.panel.is-active img { filter: none; }

.panel__n, .panel__label, .panel__cta {
  position: absolute;
  z-index: 2;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.panel__n { top: 16px; left: 14px; writing-mode: horizontal-tb; }
.panel__label { bottom: 18px; left: 14px; }
.panel__cta { display: none; bottom: 18px; right: 16px; writing-mode: horizontal-tb; }
.panel.is-active .panel__label { writing-mode: horizontal-tb; font-family: var(--serif); font-size: 20px; letter-spacing: 0.02em; text-transform: none; }
.panel.is-active .panel__cta { display: block; }

/* ------------------------------------------------------------------ film */
.film__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }

.film__stage {
  position: relative;
  height: min(82vh, 720px);
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
}

.film__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; opacity: 0; transition: opacity 0.9s var(--ease); }
.film__scene.is-active { opacity: 1; }

.film__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 16, 0.72), rgba(10, 20, 16, 0.08) 55%), linear-gradient(to right, rgba(10, 20, 16, 0.55), transparent 55%); }

.film__title {
  position: absolute;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 400;
  margin: 0;
  max-width: 40%;
  line-height: 1.05;
}

.film__cta {
  position: absolute;
  right: var(--pad);
  bottom: 130px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.film__dock {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(16, 26, 22, 0.55);
  backdrop-filter: blur(12px);
}

.film__thumb { border: 1px solid transparent; border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.film__thumb img { width: 64px; height: 84px; object-fit: cover; border-radius: 6px; opacity: 0.72; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.film__thumb.is-active { border-color: var(--gold); }
.film__thumb.is-active img { opacity: 1; transform: translateY(-4px); }

.film__count {
  position: absolute;
  left: var(--pad);
  bottom: 30px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------------ trends */
/* percentages plus a gap overflow the page; fr sizes take the gap into account */
.trends { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 35fr) minmax(0, 30fr); gap: clamp(18px, 3vw, 46px); align-items: start; }

.trends__title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.trends__sub { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 28px 0 10px; }
.trends__left p { color: var(--muted); max-width: 380px; }

.trends__stack img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.trends__count { display: block; margin-top: 12px; font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }

.trends__right h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 18px; }
.trends__right ul { list-style: none; margin: 0; padding: 0; }
.trends__right li { border-top: 1px solid var(--line); }
.trends__right li:last-child { border-bottom: 1px solid var(--line); }
.trends__right a { display: flex; justify-content: space-between; padding: 13px 0; font-size: 12.5px; letter-spacing: 0.06em; }
.trends__right em { font-style: normal; color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0 0; }

.footer__inner { padding: 0 var(--pad) clamp(30px, 4vw, 56px); display: grid; gap: 8px; }
.footer__line { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); margin: 0; }

.footer__pano { margin: 0; }
.footer__pano img { width: 100%; height: clamp(140px, 22vw, 260px); object-fit: cover; display: block; }

/* ------------------------------------------------------------------ editorial pages */
.page { padding: clamp(28px, 4vw, 64px) var(--pad) clamp(48px, 6vw, 96px); }
.page__head { max-width: 900px; margin-bottom: clamp(20px, 3vw, 40px); }
.page__title { font-family: var(--serif); font-size: clamp(34px, 5vw, 72px); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }

.prose { max-width: 680px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; color: #2C2722; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); margin: 2em 0 0.5em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }

.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform__wide { grid-column: 1 / -1; }
.cform label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cform input, .cform textarea {
  font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.cform__trap { position: absolute; left: -9999px; }
.cform button { grid-column: 1 / -1; justify-self: start; }
.cform__note { grid-column: 1 / -1; font-size: 13px; color: var(--forest); min-height: 1.2em; }

.searchbar { display: flex; gap: 10px; max-width: 620px; margin: 0 0 clamp(22px, 3vw, 38px); }
.searchbar input { flex: 1; font: inherit; font-size: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 999px; }

.pagelist { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.pagelist li { border-top: 1px solid var(--line); }
.pagelist li:last-child { border-bottom: 1px solid var(--line); }
.pagelist a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 17px; }

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

/* ------------------------------------------------------------------ shop tools */
.shoptools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
}

.shoptools__count { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.shoptools__sort { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.shoptools__sort select {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  padding: 10px 14px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

@media (max-width: 560px) {
  .shoptools { justify-content: flex-start; gap: 10px; }
  .shoptools__sort { margin-left: auto; }
}

/* ------------------------------------------------------------------ shop pages */
.piece, .collection, .missing { padding: clamp(24px, 4vw, 64px) var(--pad) clamp(48px, 6vw, 96px); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(18px, 2.4vw, 34px); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--forest); }

.piece__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 64px); align-items: start; }

.piece__hero img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--paper-2); }

.piece__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.piece__thumb { border: 1px solid transparent; border-radius: 8px; padding: 0; background: none; cursor: pointer; overflow: hidden; width: 84px; }
.piece__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.piece__thumb.is-active { border-color: var(--forest); }

.piece__panel { position: sticky; top: 96px; }
.piece__name { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 40px); font-weight: 400; line-height: 1.12; margin: 0 0 14px; }
.piece__price { font-size: clamp(17px, 1.5vw, 22px); margin: 0 0 8px; }
.piece__meta { color: var(--muted); font-size: 12.5px; margin: 0 0 26px; }

.piece__buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 26px; }
.piece__ship { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.piece__accordion { border-top: 1px solid var(--line); }
.piece__accordion details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.piece__accordion summary { cursor: pointer; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; list-style: none; }
.piece__accordion summary::-webkit-details-marker { display: none; }
.piece__accordion summary::after { content: "+"; float: right; }
.piece__accordion details[open] summary::after { content: "−"; }
.piece__accordion p { color: var(--muted); margin: 12px 0 0; font-size: 13.5px; }

.collection__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.collection__title { font-family: var(--serif); font-size: clamp(32px, 5vw, 72px); font-weight: 400; margin: 0; text-transform: uppercase; letter-spacing: -0.02em; }
.collection__count { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 clamp(20px, 3vw, 36px); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

.shopgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 16vw, 260px), 1fr));
  gap: clamp(14px, 1.6vw, 26px) clamp(10px, 1.2vw, 20px);
}

/* ------------------------------------------------------------------ the bag */
.loadmore { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: clamp(26px, 3vw, 48px); }
.loadmore__note { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.bag {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  z-index: 120;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column;
  padding: 22px;
}

.bag.is-open { transform: none; }
.bag__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.bag__head h2 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin: 0; }
.bag__close { border: 0; background: none; font-size: 24px; cursor: pointer; line-height: 1; }

.bag__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.bag__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.bag__name { font-family: var(--serif); font-size: 14px; margin: 0 0 4px; line-height: 1.3; }
.bag__meta { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.bag__remove { border: 0; background: none; padding: 0; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-decoration: underline; }

.bag__empty { color: var(--muted); font-size: 13px; padding: 24px 0; }
.bag__foot { border-top: 1px solid var(--line); padding-top: 16px; }
.bag__row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.bag__note { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; }
.bag__foot .btn { width: 100%; justify-content: center; }

.bag__veil { position: fixed; inset: 0; background: rgba(12, 20, 16, 0.42); z-index: 110; }
body.bag-open { overflow: hidden; }

/* grid and flex children must be allowed to shrink, or a wide rail inside them
   pushes the whole page sideways on a phone */
.bridal__inner > *, .bridal__body, .bridal__rail,
.trends > *, .piece__grid > *, .showroom__grid > *,
.rail__head > *, .section-head > *, .compact__head > *, .forecast__head > *,
.film__head > * { min-width: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .showroom__grid { grid-template-columns: 96px 1fr 320px; }
  .trends { grid-template-columns: 1fr 1fr; }
  .trends__right { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .bridal__inner { grid-template-columns: 1fr; }
  .bridal__anchor { min-height: 320px; }
  .forecast__grid { grid-template-columns: 1fr; }
  .showroom__grid { grid-template-columns: 1fr; }
  .showroom__thumbs { flex-direction: row; order: 2; }
  .showroom__panel { order: 3; }
  .occasions__grid { grid-template-columns: repeat(2, 1fr); }
  .accordion__row { height: 360px; }
  .panel__label { writing-mode: horizontal-tb; }
  .film__title { max-width: 70%; font-size: clamp(26px, 7vw, 40px); }
  .film__cta { display: none; }
  .trends { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .piece__grid { grid-template-columns: 1fr; }
  .piece__panel { position: static; }
  .piece__thumbs { overflow-x: auto; }
}

@media (min-width: 1900px) {
  :root { --pad: clamp(80px, 7vw, 220px); }
  .cat-grid { gap: 22px; }
  .prow, .qrow { grid-auto-columns: minmax(280px, 1fr); }
  .shopgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .film__stage { height: min(76vh, 900px); }
}

@media (max-width: 600px) {
  /* nothing readable below 12px on a phone */
  .eyebrow, .pcard__meta, .qcard__meta, .chip, .cat__label, .story__sub,
  .story__trust li, .film__count, .panel__n, .pcard__rank, .crumbs,
  .sizes__label, .edit__body span, .panel__label, .panel__cta,
  .announce, .marquee__track { font-size: 12px; letter-spacing: 0.1em; }

  .announce { height: 38px; }
  .story__shop { font-size: 11.5px; }
}

@media (max-width: 560px) {
  .prow, .qrow { grid-auto-columns: 74%; }
  .qrow { grid-auto-columns: 88%; }
  .occasions__grid { grid-template-columns: 1fr; }
  .accordion__row { height: 300px; }
  .film__thumb img { width: 46px; height: 60px; }
}


/* ---------------------------------------------------- phone tap targets */
@media (max-width: 900px) {
  .pcard__wish,
  .pcard__wish svg,
  .pcard__wish span { min-width: 44px; min-height: 44px; }

  .pcard__wish {
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center;
    border-radius: 999px;
  }

  .nav__tools a { min-height: 44px; }
}


/* --------------------------------------------------------- sticky buy bar */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(20, 16, 14, 0.08);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
}

.buybar.is-up { transform: none; }

.buybar__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buybar__price { font-family: var(--serif); font-size: 17px; }
.buybar__name {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buybar .btn { margin-left: auto; min-height: 46px; padding: 0 22px; font-size: 10px; }

@media (max-width: 900px) {
  .buybar { display: flex; }
}


/* ------------------------------------------------- phone ergonomics pass
   every control a thumb has to hit gets a 40-44px target, and the smallest
   micro-labels come up to the 12px readable floor */
@media (max-width: 900px) {
  .story__shop,
  .bridal__anchor-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .bcard__add,
  .qcard__add { min-width: 44px; min-height: 44px; }

  .qcard__add { display: grid; place-items: center; }

  .swatch { width: 40px; height: 40px; }

  .bag__close { width: 44px; height: 44px; display: grid; place-items: center; }

  .qty button,
  .qty__btn,
  .bag__qty button { min-width: 40px; min-height: 40px; }

  .pcard__meta,
  .pcard__rank,
  .pcard__name,
  .pcard__price,
  .chip,
  .crumbs,
  .eyebrow,
  .sizes__label,
  .panel__label,
  .panel__cta,
  .story__trust li,
  .film__count,
  .cat__label,
  .edit__body span { font-size: 12px; }
}


/* readable floor on catalogue cards at every width */
.pcard__quick,
.pcard__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
}


.chip,
.eyebrow { font-size: 12px; }

.brand__sub { font-size: 10px; }


/* ============================================ phone layout for the rails
   A drifting marquee is a desktop idea: on a phone the same rows are swiped
   with a finger, one comfortable card at a time, and the headings stack
   instead of being pushed to opposite corners. */
@media (max-width: 900px) {
  .prow--auto {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .prow--auto::-webkit-scrollbar { display: none; }

  .prow--auto .pcard {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: center;
  }

  .prow__inner { display: contents; animation: none !important; }

  .rail__head,
  .compact__head,
  .forecast__head,
  .saga__head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .rail__nav { display: none; }

  .categories, .rail, .compact, .forecast, .showroom,
  .occasions, .accordion, .saga, .trends {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .rail--tight { padding-top: 0; }

  .saga__card { flex: 0 0 74vw; }

  .saga__card::after {
    background: linear-gradient(to top,
      rgba(8, 26, 20, 0.84) 0%,
      rgba(8, 26, 20, 0.30) 38%,
      rgba(8, 26, 20, 0) 62%);
  }

  .saga__label { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }

  /* nothing on a phone may be set below 12px */
  .pcard__desc,
  .pcard__meta,
  .pcard__price,
  .pcard__rank,
  .pcard__quick,
  .saga__label,
  .rail__btn,
  .compact__meta,
  .qcard__meta { font-size: 12px; }

  .pcard__name { font-size: 14.5px; }
}


/* ================================ phone layout: showroom, edits, forecast, film
   Each of these was a multi-column desktop block. On a phone they become one
   column, and the thumbnails and edits become swipe rows. */
@media (max-width: 900px) {
  .showroom__intro { flex-direction: column; align-items: flex-start; gap: 10px; }

  .showroom__grid { grid-template-columns: 1fr; gap: 18px; }

  .showroom__thumbs {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .showroom__thumbs::-webkit-scrollbar { display: none; }
  .showroom__script { display: none; }
  .thumb { flex: 0 0 88px; scroll-snap-align: start; }

  .size { flex: 1 1 28%; min-width: 56px; min-height: 46px; }

  .showroom__buy { display: flex; gap: 12px; align-items: stretch; }
  .showroom__buy .btn { flex: 1; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .occasions__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .occasions__grid::-webkit-scrollbar { display: none; }
  .occasions__grid .edit { flex: 0 0 72vw; scroll-snap-align: center; }

  .forecast__grid { grid-template-columns: 1fr; gap: 24px; }

  .film__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .film__stage { height: 60svh; }

  .qcard { grid-template-columns: 1fr; }
  /* the product photographs are portrait 3:4 — a landscape crop took the head
     off every one of them, so the phone keeps the native shape */
  .qcard__img img { aspect-ratio: 3 / 4; object-position: 50% 0%; }

  .qcard__add {
    position: static;
    width: 100%;
    height: 46px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}


/* ================================== phone layout: the attention accordion
   Six expanding panels only work when they have width. On a phone they
   become an index: one row each, photograph behind, name and arrow on it. */
@media (max-width: 900px) {
  .showroom__model {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 0%;
    max-height: none;
    border-radius: 10px;
  }

  /* a 132px strip cut every face off. On a phone these are portrait cards in
     a swipe row, the same shape as the rest of the site, with a scrim so the
     label and the arrow stay readable over the photograph. */
  .accordion__row {
    flex-direction: row;
    height: auto;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .accordion__row::-webkit-scrollbar { display: none; }

  .panel,
  .panel.is-active {
    flex: 0 0 72vw;
    width: auto;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    scroll-snap-align: center;
  }

  .panel img { filter: none; object-position: 50% 8%; }

  .panel::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(to top, rgba(8, 26, 20, 0.78), rgba(8, 26, 20, 0));
    pointer-events: none;
  }

  .panel__label,
  .panel.is-active .panel__label {
    writing-mode: horizontal-tb;
    font-family: var(--serif);
    font-size: 19px;
    letter-spacing: 0.01em;
    text-transform: none;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }

  /* label over the arrow, not beside it — the card is 72vw wide */
  .panel__label,
  .panel.is-active .panel__label { bottom: 46px; left: 16px; right: 16px; }

  .panel__cta,
  .panel.is-active .panel__cta {
    display: block;
    position: absolute;
    left: 16px;
    right: auto;
    bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
}


/* ============================================ phone type and tap floor
   Nothing under 12px, nothing under 44px to hit. */
@media (max-width: 900px) {
  .brand__sub,
  .nav__links a,
  .eyebrow,
  .section-note,
  .crumbs,
  .pcard__desc,
  .pcard__meta,
  .pcard__rank,
  .pcard__quick,
  .film__count,
  .panel__n,
  .qcard__meta,
  .saga__link,
  .loadmore__note,
  .saga__label { font-size: 12px; }

  .brand a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav__toggle { min-width: 44px; min-height: 44px; }
  .saga__link { display: inline-flex; align-items: center; min-height: 44px; }
  .rail__head .section-title { font-size: clamp(26px, 7.6vw, 34px); }
}


@media (max-width: 900px) {
  .btn,
  .nav__tools a,
  .shoptools__sort,
  .story__copy .eyebrow { font-size: 12px; }

  .story__actions .btn { font-size: 12px; }
}


/* the bridal rail on a phone: one card at a time, the next one peeking */
@media (max-width: 900px) {
  .bridal__rail {
    grid-auto-columns: 76vw;
    scroll-snap-type: x proximity;
    gap: 12px;
  }

  .bcard { scroll-snap-align: center; }
}


/* ================================== phone layout: the film
   The chapter stills are landscape 16:9. Held in a tall portrait box they
   lost two thirds of their width and cut the model out of her own frame, so
   on a phone the picture keeps its own shape and the captions move
   underneath it instead of sitting on top of a crop. */
@media (max-width: 700px) {
  .film__stage {
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--forest, #0F3D2E);
  }

  .film__stage::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .film__scene {
    bottom: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 50% 50%;
  }

  .film__veil {
    bottom: auto;
    aspect-ratio: 16 / 9;
    background: linear-gradient(to top, rgba(10, 20, 16, 0.35), rgba(10, 20, 16, 0) 45%);
  }

  .film__title,
  .film__count,
  .film__dock {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
  }

  .film__title {
    order: 1;
    max-width: none;
    padding: 16px var(--pad) 0;
    font-size: 26px;
    line-height: 1.1;
  }

  .film__count {
    order: 2;
    padding: 8px var(--pad) 0;
    color: rgba(255, 255, 255, 0.72);
  }

  .film__dock {
    order: 3;
    margin: 14px var(--pad) var(--pad);
    padding: 0;
    gap: 8px;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .film__dock::-webkit-scrollbar { display: none; }

  .film__thumb { flex: 0 0 auto; }

  /* a landscape still in a landscape thumbnail keeps the whole composition */
  .film__thumb img { width: 74px; height: 42px; opacity: 0.6; }

  .film__thumb.is-active img { transform: none; opacity: 1; }

  /* the trends column shows the same still, so it also keeps its own shape */
  .trends__stack img { aspect-ratio: 16 / 9; }
}


/* ================================== the closing photograph
   A 16:9 picture of four standing figures cannot live in a 140px band: any
   band shorter than the picture cuts the heads off the people in it. So the
   picture keeps its own shape and the band becomes the picture. */
.footer__pano img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 50%;
}
