/* ===== House of Euphoria — tokens from the Figma file ===== */
:root {
  --bg-deep: #1F0405;
  --bg-oxblood: #340306;
  --bg-wine: #3A0107;
  --burgundy: #761420;
  --accent: #AC1F28;
  --ivory: #FCEFE6;
  --blush: #F0CCCC;
  --caption: #C49E9E; /* Figma: #A88484 — brightened for legibility on oxblood */
  --logo: #F6E8D8;
  --placeholder: #898585;
  --placeholder-alt: #A29E9E;

  --serif-display: "Cormorant Garamond", "Times New Roman", serif;
  --serif-body: "EB Garamond", Georgia, serif;

  --gutter: 20px;
  --header-h: 81px;
  --content-max: 560px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ivory);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 3px; }

/* Touch: no grey tap flash, no double-tap zoom delay on interactive elements */
a, button, [role="button"], .card, .frame { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ===== Type ===== */
.label {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: normal;
}
.label--muted { color: var(--caption); }
.headline {
  font-family: var(--serif-display);
  font-weight: 300;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.04;
}
.headline--xl { font-size: clamp(32px, 11.2vw, 44px); }
.headline--lg { font-size: clamp(26px, 8.65vw, 34px); }
.body { color: var(--blush); font-size: clamp(15px, 4.1vw, 16px); line-height: 1.5; }
.body + .body { margin-top: 24px; }
.italic { font-style: italic; }

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.rule { height: 1px; width: 100%; background: var(--ivory); opacity: .35; border: 0; margin: 0; }
.placeholder { background: var(--placeholder); width: 100%; }
.placeholder--alt { background: var(--placeholder-alt); }
img.placeholder { object-fit: cover; background: var(--bg-oxblood); }

/* ===== Framed editorial imagery (Home + Our Story) =====
   Every photo sits in a clipped box with a fine ivory hairline floating
   6px outside it, like a mounted print. Arches echo the hammam doorway. */
:root { --hairline: rgba(252, 239, 230, .34); }
.frame { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.frame__img {
  position: relative; overflow: hidden; aspect-ratio: var(--ar, 3 / 4);
  background: var(--bg-oxblood);
  outline: 1px solid var(--hairline); outline-offset: 6px;
  transition: outline-color .5s ease, outline-offset .6s var(--ease-out);
}
.frame__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
/* soft vignette so every image settles into the oxblood */
.frame__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(31, 4, 5, .38) 100%);
}
@media (hover: hover) { .frame__img:hover img, .frame:hover .frame__img img { transform: scale(1.04); } }
@media (hover: hover) { .frame:hover .frame__img, .frame__img:hover { outline-color: rgba(252, 239, 230, .7); outline-offset: 9px; } }
.frame--arch .frame__img { border-radius: 999px 999px 0 0; }

.frame__cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-top: 4px; color: var(--caption);
}
.frame__cap .label { font-size: 10px; letter-spacing: 2.6px; color: var(--ivory); white-space: nowrap; }
/* narrow phones: stack number over title so paired captions never collide */
@media (max-width: 480px) {
  .diptych .frame__cap { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.frame__cap .italic { font-size: 15px; color: var(--blush); }
.frame__cap--center { justify-content: center; }

/* centred ornament: rule — diamond — rule */
.ornament {
  position: relative; display: block; width: 120px; height: 9px; margin: 0 auto;
  background: linear-gradient(var(--hairline), var(--hairline)) left center / 50px 1px no-repeat,
              linear-gradient(var(--hairline), var(--hairline)) right center / 50px 1px no-repeat;
}
.ornament::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  background: var(--accent); transform: translate(-50%, -50%) rotate(45deg);
}

/* Arch carousel (setupTriptych in main.js).
   A fixed-height stage: its height comes only from its width, so tapping an
   arch never moves anything around it. Every arch is the same box (40% wide);
   the side slots are the same box scaled down and shifted, so a rotation is
   just a transform change: no layout, no reflow. */
.triptych {
  position: relative; height: 0;
  padding-bottom: calc(60% + 40px);   /* centre arch: 40% wide x 3:2 tall = 60%, + caption */
  -webkit-user-select: none; user-select: none;
}
.triptych .frame {
  position: absolute; left: 30%; bottom: 0; width: 40%;
  transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.65, 0, .25, 1), opacity .45s ease;
  will-change: transform;
}
.triptych .frame[data-pos="center"] { transform: none; z-index: 2; }
.triptych .frame[data-pos="left"]   { transform: translate(-91%, -26px) scale(.68); z-index: 1; cursor: pointer; }
.triptych .frame[data-pos="right"]  { transform: translate(91%, -26px) scale(.68); z-index: 1; cursor: pointer; }
/* captions: only the centre arch shows its number */
.triptych .frame__cap { transition: opacity .35s ease; }
.triptych .frame:not([data-pos="center"]) .frame__cap { opacity: 0; }

/* matched pair */
.diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (min-width: 900px) {

  .diptych { gap: 32px; }
}

/* Lookbook spread (Our Story): two photos butted together inside one
   hairline-framed print, wide + narrow, mirrored on the second look. */
.looks { display: flex; flex-direction: column; align-items: center; gap: 48px; padding-top: 8px; padding-bottom: 72px; }
.look { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.look__print {
  display: grid; grid-template-columns: 3fr 2fr; gap: 5px;
  width: 100%; aspect-ratio: 10 / 9;
  outline: 1px solid var(--hairline); outline-offset: 8px;
  transition: outline-color .5s ease, outline-offset .6s var(--ease-out);
}
.look--reverse .look__print { grid-template-columns: 2fr 3fr; }
.look__single { width: 100%; outline-offset: 8px; }
@media (hover: hover) { .look:hover .look__print { outline-color: rgba(252, 239, 230, .7); outline-offset: 11px; } }
.look__img { position: relative; overflow: hidden; background: var(--bg-oxblood); }
.look__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.look__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(31, 4, 5, .38) 100%);
}
@media (hover: hover) { .look__img:hover img { transform: scale(1.04); } }
.look__cap { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.look__cap .label { font-size: 10px; letter-spacing: 2.6px; color: var(--caption); }
.look__cap .italic { font-size: clamp(18px, 5.6vw, 22px); line-height: 1.25; color: var(--blush); text-wrap: balance; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg-oxblood);
  transition: background-color .4s ease;
}
.site-header__bar {
  height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 12px; max-width: 1200px; margin: 0 auto;
}
.site-header { transition: background-color .4s ease, box-shadow .4s ease; }
.site-header.is-scrolled {
  background: rgba(52, 3, 6, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(10, 1, 2, .45);
}
.site-header__side { display: flex; align-items: center; gap: 28px; }
.site-header__side--right { justify-content: flex-end; gap: 20px; }

/* Monogram with a whisper of a wordmark beneath it */
.site-header__logo { flex-direction: column; align-items: center; gap: 5px; }
.site-header__logo img { transition: transform .6s var(--ease-out), filter .6s ease; }
.site-header__logo:hover img { transform: translateY(-1px); filter: drop-shadow(0 0 10px rgba(243, 217, 164, .35)); }
.site-header__wordmark {
  font-family: var(--serif-display); font-weight: 500; font-size: 8px; letter-spacing: 3.6px;
  text-transform: uppercase; color: var(--caption); white-space: nowrap; padding-left: 3.6px;
}

/* Editorial menu toggle: two unequal lines that even out on hover */
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; }
.burger { display: flex; flex-direction: column; gap: 6px; width: 22px; }
.burger span { display: block; height: 1px; background: var(--ivory); transition: width .4s var(--ease-out); }
.burger span:first-child { width: 22px; }
.burger span:last-child { width: 13px; }
.menu-toggle:hover .burger span:last-child { width: 22px; }
.menu-toggle__label { font-size: 10px; letter-spacing: 2.6px; }

/* Text links: a red underline draws out from the centre; the current page wears the diamond */
.site-header__nav { display: none; gap: 28px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; height: 44px;
  font-size: 11px; letter-spacing: 2.8px; transition: color .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--blush); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px;
  background: var(--accent); transform: translateX(-50%) rotate(45deg);
}
.site-header__enquire { display: none; }

/* Hairline with a red diamond under the monogram */
.site-header__rule {
  position: relative; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 239, 230, .35) 18%, rgba(252, 239, 230, .35) 82%, transparent);
}
.site-header__rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  background: var(--accent); box-shadow: 0 0 0 3px var(--bg-oxblood);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* very narrow phones (Galaxy Fold, older 320px Androids): tighten the bar */
@media (max-width: 340px) {
  .site-header__bar { padding: 0 4px; }
  .menu-toggle__label { display: none; }
  .site-header__wordmark { font-size: 7.5px; letter-spacing: 2.6px; padding-left: 2.6px; }
}
@media (min-width: 900px) {
  .site-header__bar { padding: 0 32px; }
  .site-header .menu-toggle { display: none; }
  .site-header .site-header__nav, .site-header .site-header__enquire { display: inline-flex; }
}
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s ease;
}
.icon-btn:hover { opacity: .7; }
.logo-link { display: inline-flex; transition: opacity .2s ease; }
.logo-link:hover { opacity: .8; }

/* ===== Buttons & links ===== */
.btn {
  display: flex; align-items: center; justify-content: center;
  height: 48px; width: 100%;
  border: 1px solid var(--ivory);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
@media (hover: hover) { .btn:hover { background: var(--ivory); color: var(--bg-oxblood); } }
.btn--accent { background: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .btn--accent:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); } }
.btn-row { display: flex; gap: 12px; width: 100%; }
.btn-row .btn { flex: 1 1 0; }

.editorial-link {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 8px; height: 44px;
}
.editorial-link__label { display: inline-flex; align-items: center; gap: 16px; }
.editorial-link__label img { transition: transform .3s var(--ease-out); }
.editorial-link:hover .editorial-link__label img { transform: translateX(5px); }
.editorial-link .rule { transform-origin: left; transition: opacity .3s ease; }
.editorial-link:hover .rule { opacity: 1; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-oxblood); padding: 48px 0 24px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.site-footer__promise { font-style: italic; font-size: 18px; line-height: 1.4; color: var(--blush); max-width: 320px; text-wrap: balance; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 28px; width: 100%; }
.site-footer__links a { position: relative; height: 44px; white-space: nowrap; display: inline-flex; align-items: center; transition: color .2s ease; }
.site-footer__links a:hover { color: var(--blush); }
.site-footer__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: 8px; width: 26px; height: 2px; background: var(--accent);
}
.copyright {
  font-family: var(--serif-display); font-size: 12px; letter-spacing: 1.2px; color: var(--caption);
}

/* ===== Full-screen menu ===== */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg-wine);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.menu__header { background: var(--bg-oxblood); }
.menu__content { flex: 1; display: flex; flex-direction: column; padding-top: 64px; padding-bottom: 32px; overflow-y: auto; }
.menu__nav { margin-top: 32px; }
.menu__item { display: block; }
.menu__link {
  display: flex; align-items: center; gap: 16px; height: clamp(64px, 20vw, 90px);
  font-family: var(--serif-display); font-weight: 300; font-style: italic; font-size: clamp(32px, 11.2vw, 44px); line-height: normal;
  color: rgba(252, 239, 230, .5);
  transition: color .3s ease, padding-left .35s var(--ease-out);
}
@media (hover: hover) { .menu__link:hover { color: var(--ivory); padding-left: 8px; } }
/* Current page: full ivory, with a fine line drawn in front of it like a bookmark */
.menu__link[aria-current="page"] { color: var(--ivory); }
.menu__link[aria-current="page"]::before {
  content: ""; flex: none; width: 28px; height: 1px; background: var(--blush);
  transform-origin: left; transform: scaleX(0);
  transition: transform .7s var(--ease-out) .35s;
}
.menu.open .menu__link[aria-current="page"]::before { transform: scaleX(1); }
.menu__signature { margin-top: auto; padding-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.menu__promise { font-style: italic; font-size: 20px; line-height: 1.35; color: var(--blush); max-width: 290px; }

/* Stagger menu items in */
.menu .menu__item, .menu .menu__signature, .menu .menu__eyebrow {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.menu.open .menu__eyebrow { opacity: 1; transform: none; transition-delay: .08s; }
.menu.open .menu__item:nth-child(1) { opacity: 1; transform: none; transition-delay: .14s; }
.menu.open .menu__item:nth-child(2) { opacity: 1; transform: none; transition-delay: .2s; }
.menu.open .menu__item:nth-child(3) { opacity: 1; transform: none; transition-delay: .26s; }
.menu.open .menu__signature { opacity: 1; transform: none; transition-delay: .34s; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease, transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== HOME ===== */
.hero {
  position: relative;
  height: max(620px, calc(100svh - var(--header-h)));
  background: var(--placeholder); overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero__bg { position: absolute; inset: -8% 0 0 0; background: var(--bg-deep); will-change: transform; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .62; /* sits back against the deep oxblood so the headline leads */
}
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(31,4,5,.13) 0%, rgba(31,4,5,.06) 45%, rgba(31,4,5,.96) 100%);
}
.hero__statement { position: relative; padding-bottom: 52px; gap: 24px; }
.hero__promise { font-style: italic; font-size: 20px; line-height: 1.3; max-width: 280px; }
.hero__sig-rule { width: 64px; height: 1px; background: var(--ivory); }
.hero__scroll {
  position: absolute; right: 16px; bottom: 32px;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.hero .stagger { opacity: 0; transform: translateY(20px); animation: rise 1.2s var(--ease-out) forwards; }
.hero .stagger:nth-child(1) { animation-delay: .2s; }
.hero .stagger:nth-child(2) { animation-delay: .45s; }
.hero .stagger:nth-child(3) { animation-delay: .65s; }
.hero .stagger:nth-child(4) { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.invitation { background: var(--bg-oxblood); padding: 64px 0; }
.invitation .placeholder { height: clamp(280px, 99vw, 390px); }

.gallery { background: var(--bg-oxblood); padding: 16px 0 80px; overflow-x: hidden; overflow-x: clip; }
.gallery__heading {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; padding-bottom: 48px;
}
.gallery__body { display: flex; flex-direction: column; gap: 56px; }
.gallery__line {
  font-style: italic; font-size: clamp(17px, 5.1vw, 20px); line-height: 1.35; color: var(--blush);
  text-align: center; text-wrap: pretty; margin: -8px auto 0; max-width: 440px;
}

.collection-preview { background: var(--bg-deep); padding: 56px 0 64px; }
.collection-preview__heading { gap: 20px; align-items: stretch; text-align: center; }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter); margin-top: 28px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__card {
  flex: 0 0 min(274px, 76vw); scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.carousel__card .placeholder { height: auto; aspect-ratio: 274 / 350; transition: transform .6s var(--ease-out); }
@media (hover: hover) { .carousel__card:hover .placeholder { transform: scale(.98); } }
.carousel__progress { display: flex; align-items: flex-start; height: 2px; margin-top: 28px; }
.carousel__track { position: relative; width: 100%; height: 2px; }
.carousel__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--caption); opacity: .4;
}
.carousel__thumb {
  position: absolute; top: 0; left: 0; height: 2px; width: 33.33%; background: var(--ivory);
  transition: transform .15s linear;
}
.collection-preview .btn { margin-top: 28px; }

@media (min-width: 900px) {
  .carousel { justify-content: center; }
}

/* ===== OUR STORY ===== */
.story-opening { padding: 52px 0 40px; }
.story-hero-img { height: clamp(300px, 117vw, 460px); max-width: 900px; margin: 0 auto; }
.story-caption { display: flex; justify-content: space-between; padding-top: 12px; padding-bottom: 52px; color: var(--caption); font-size: 12px; }
.story-caption .italic { font-family: var(--serif-body); }
.manifesto { padding-bottom: 48px; }
.staggered { display: flex; gap: 16px; align-items: flex-start; }
.staggered__main { flex: 0 0 auto; width: 61%; height: 300px; }
.staggered__detail { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 112px; }
.staggered__detail .placeholder { height: 212px; }
.staggered__caption { font-style: italic; font-size: 12px; line-height: 1.3; color: var(--caption); }
.pull-quote { background: var(--bg-wine); padding: 64px 34px; margin-top: 0; }
.pull-quote__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; max-width: 480px; margin: 0 auto; }
.pull-quote__rule { width: 48px; height: 1px; background: var(--ivory); opacity: .5; }
.pull-quote blockquote {
  margin: 0; font-family: var(--serif-display); font-weight: 300; font-style: italic; font-size: clamp(26px, 8.65vw, 34px); line-height: 1.1;
}
.story-closing { padding: 48px 0; }
.story-gallery { margin: 48px auto 48px; }
.story-gallery__arch { width: 78%; margin: 0 auto; }
/* the two photo pairs read as one 2x2 grid: same row gap as the column gap */
.story-gallery .diptych + .diptych { margin-top: -38px; }
@media (min-width: 900px) { .story-gallery .diptych + .diptych { margin-top: -24px; } }
.staggered-wrap { padding-bottom: 0; }

/* ===== COLLECTION ===== */
.collection-intro { padding: 48px 0 32px; }
.collection-intro .stack { gap: 24px; }
/* Filter: a centred hairline pill; a red highlight slides behind the active option */
.filters {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--bg-deep); padding: 14px 0 18px;
}
/* soft fade so cards scroll away beneath the sticky bar */
.filters::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; pointer-events: none;
  background: linear-gradient(var(--bg-deep), transparent);
}
.filters__inner { display: flex; justify-content: center; }
.filters__track {
  --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: 360px; padding: 4px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(52, 3, 6, .55);
}
.filters__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3); border-radius: 999px;
  background: linear-gradient(135deg, #5C0A12, var(--bg-wine));
  box-shadow: inset 0 0 0 1px rgba(252, 239, 230, .22), 0 4px 14px rgba(10, 1, 2, .5);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .55s var(--ease-out);
}
.filter {
  position: relative; z-index: 1; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 2.8px; padding-left: 2.8px;
  color: var(--caption); transition: color .3s ease;
}
.filter:hover { color: var(--blush); }
.filter[aria-pressed="true"] { color: var(--ivory); }
@media (prefers-reduced-motion: reduce) { .filters__thumb { transition: none; } }

.catalogue { padding: 32px 0 64px; }
.catalogue__inner { max-width: 1080px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%;
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.card__img { display: block; aspect-ratio: 167 / 230; overflow: hidden; background: var(--bg-oxblood); }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s ease;
}
@media (hover: hover) { .card:hover .card__img img { transform: scale(1.04); filter: brightness(1.06); } }
.card__name { font-family: var(--serif-display); font-weight: 300; font-style: italic; font-size: clamp(18px, 5.85vw, 23px); line-height: 1.05; }
.card.is-hidden { display: none; }
.card.is-entering { opacity: 0; transform: translateY(16px); }

.catalogue__outro { text-align: center; margin-top: 32px; }

/* ===== Product panel =====
   Phones: a bottom sheet you can drag down. 900px+: a centred two-column window.
   The photo is never cropped: it is shown whole, over a blurred copy of itself. */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 2, 3, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
.sheet-backdrop.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 520px; margin: 0 auto; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--bg-oxblood), var(--bg-deep) 70%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(252, 239, 230, .12);
  display: flex; flex-direction: column;
  transform: translateY(105%); visibility: hidden;
  transition: transform .55s var(--ease-out), visibility 0s linear .55s;
}
.sheet.open { transform: none; visibility: visible; transition: transform .55s var(--ease-out); }
.sheet.dragging { transition: none; }
.sheet__handle-area { flex: none; display: flex; justify-content: center; padding: 10px 0 12px; cursor: grab; touch-action: none; }
.sheet__handle { width: 40px; height: 3px; border-radius: 2px; background: var(--caption); opacity: .7; }

.sheet__close {
  position: absolute; top: 34px; right: calc(var(--gutter) + 10px); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(31, 4, 5, .55); border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s ease, transform .4s var(--ease-out);
}
@media (hover: hover) { .sheet__close:hover { background: rgba(92, 10, 18, .8); transform: rotate(90deg); } }

/* Photo: the frame has the same 2:3 portrait shape as the photography, so the
   picture fills it edge to edge with almost no cropping. On short screens the
   frame narrows (keeping its shape) rather than growing taller than 66% of the screen. */
.sheet__media {
  position: relative; flex: none; margin: 0 auto;
  width: min(calc(100% - 2 * var(--gutter)), 44svh); aspect-ratio: 2 / 3;
  overflow: hidden; background: var(--bg-deep);
  outline: 1px solid var(--hairline); outline-offset: 6px;
}
.sheet__image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.sheet__image.is-loaded { opacity: 1; }

.sheet__body {
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px var(--gutter) 0;
}
.sheet__title { display: flex; flex-direction: column; gap: 10px; }
.sheet__cat { font-size: 10px; letter-spacing: 2.8px; color: var(--caption); display: inline-flex; align-items: center; gap: 10px; }
.sheet__cat::before { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.sheet__name {
  font-family: var(--serif-display); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 8.5vw, 42px); line-height: 1.02; text-transform: uppercase; text-wrap: balance;
}

/* Dropdown sections (native <details>; opening one closes the others) */
.sheet__info { border-top: 1px solid var(--hairline); }
.info { border-bottom: 1px solid var(--hairline); }
.info__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; cursor: pointer; list-style: none; color: var(--ivory);
  -webkit-tap-highlight-color: transparent;
}
.info__summary::-webkit-details-marker { display: none; }
.info__summary .label { font-size: 11px; letter-spacing: 2.6px; }
.info__icon { flex: none; color: var(--caption); transition: transform .4s var(--ease-out), color .3s ease; }
.info[open] .info__icon { transform: rotate(180deg); color: var(--ivory); }
@media (hover: hover) { .info__summary:hover .info__icon { color: var(--ivory); } }
.info__content { padding: 0 0 20px; color: var(--blush); font-size: 16px; line-height: 1.5; }
.info[open] .info__content { animation: info-in .45s var(--ease-out); }
@keyframes info-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.info__content { display: flex; flex-direction: column; gap: 18px; }
.info__order { font-style: italic; color: var(--ivory); }
.info__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.info__list div { display: flex; flex-direction: column; gap: 4px; }
.info__list dt { font-family: var(--serif-display); font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--caption); }
.info__list dd { margin: 0; font-style: italic; font-size: 17px; color: var(--ivory); }

/* Order button stays reachable: pinned to the bottom of the sheet on phones */
.sheet__cta {
  position: sticky; bottom: 0; z-index: 1;
  margin: auto calc(-1 * var(--gutter)) 0;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(31, 4, 5, 0), var(--bg-deep) 34%);
  display: flex; justify-content: center;
}

/* Order button: the same wine pill and hairline ring as the selected filter */
.pill-btn {
  position: relative; width: 100%; max-width: 360px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 999px; color: var(--ivory);
  background: linear-gradient(135deg, #5C0A12, var(--bg-wine));
  box-shadow: inset 0 0 0 1px rgba(252, 239, 230, .24), 0 8px 22px rgba(10, 1, 2, .5);
  outline: 1px solid var(--hairline); outline-offset: 4px;
  transition: background-color .3s ease, box-shadow .4s ease, outline-offset .4s var(--ease-out);
}
.pill-btn .label { font-size: 11px; letter-spacing: 2.8px; padding-left: 2.8px; }
.pill-btn img { opacity: .9; }
@media (hover: hover) {
  .pill-btn:hover {
    background: linear-gradient(135deg, #721019, #4A0610);
    box-shadow: inset 0 0 0 1px rgba(252, 239, 230, .4), 0 10px 28px rgba(10, 1, 2, .6);
    outline-offset: 6px;
  }
}
.pill-btn:active { transform: scale(.99); }

@media (min-width: 900px) {
  .sheet {
    top: 50%; left: 50%; right: auto; bottom: auto; margin: 0;
    width: min(940px, calc(100vw - 64px)); max-width: none; height: min(680px, calc(100vh - 64px)); max-height: none;
    display: grid; grid-template-columns: calc(min(680px, 100vh - 64px) * 2 / 3) minmax(0, 1fr);
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(252, 239, 230, .12);
    opacity: 0; transform: translate(-50%, -48%) scale(.97);
    transition: opacity .45s ease, transform .55s var(--ease-out), visibility 0s linear .55s;
  }
  .sheet.open { opacity: 1; transform: translate(-50%, -50%); transition: opacity .45s ease, transform .55s var(--ease-out); }
  .sheet__handle-area { display: none; }
  .sheet__close { top: 18px; right: 18px; }
  .sheet__media { margin: 0; width: 100%; height: 100%; aspect-ratio: auto; outline: none; }
  .sheet__body { overflow-y: auto; padding: 56px 44px 0; gap: 26px; }
  .sheet__cta { margin-left: -44px; margin-right: -44px; padding: 22px 44px 28px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero .stagger, .menu .menu__item, .menu .menu__signature, .menu .menu__eyebrow { opacity: 1; transform: none; }
}

/* ===== Legibility pass: fuller type on the dark red backgrounds ===== */
.label { font-weight: 600; }
.copyright { font-weight: 500; }
.headline,
.menu__link,
.card__name,
.sheet__name,
.pull-quote blockquote { font-weight: 400; }
.body,
.sheet__desc,
.sheet__particulars,
.sheet__price,
.story-caption .italic,
.staggered__caption { font-weight: 500; }
.hero__promise,
.site-footer__promise,
.menu__promise { font-weight: 500; }

/* Tagline "For the women who were never meant to blend in." — larger */
.hero__promise { font-size: clamp(22px, 8.1vw, 32px); line-height: 1.15; max-width: 350px; }
.site-footer__promise { font-size: clamp(22px, 7.6vw, 30px); line-height: 1.2; max-width: 350px; }
.menu__promise { font-size: clamp(22px, 8.1vw, 32px); line-height: 1.15; max-width: 350px; }

/* Copyright / all rights reserved line */
.copyright { line-height: 1.4; text-wrap: balance; }

/* ===== Phone type scale =====
   Handheld screens (up to 600px) get a calmer, smaller scale than tablets and
   desktops. Values still shrink smoothly on the narrowest phones. */
@media (max-width: 600px) {
  .headline--xl { font-size: clamp(29px, 9.4vw, 38px); }
  .headline--lg { font-size: clamp(23px, 7.4vw, 30px); }
  .body, .info__content { font-size: 15px; }
  .hero__promise, .menu__promise { font-size: clamp(19px, 6.2vw, 25px); }
  .site-footer__promise { font-size: clamp(19px, 5.9vw, 24px); }
  .pull-quote blockquote { font-size: clamp(23px, 7.2vw, 29px); }
  .menu__link { font-size: clamp(28px, 9.2vw, 37px); height: clamp(58px, 17vw, 76px); }
  .gallery__line { font-size: clamp(16px, 4.5vw, 18px); }
  .look__cap .italic { font-size: clamp(16px, 4.8vw, 19px); }
  .card__name { font-size: clamp(17px, 4.9vw, 20px); }
  .sheet__name { font-size: clamp(24px, 7.4vw, 32px); }
  .info__list dd { font-size: 16px; }
}
