/* Jacine: site styles (Dec 1 2026)
   Locked palette. Every color lives in the :root block below, so change it there only.
   Ivory (~60%): page background.
   Espresso (~25%): body text, headings, buttons (ivory text on espresso buttons).
   Wine (~12%): the Founding Members card (ivory text), plus small repeated touches:
     the italic accent word in the home headline, thin divider lines, Nº numbers, text links,
     eyebrow labels and button hover.
   Latte (~3%): only thin hairlines. Never large areas or text (2.4:1 on ivory, too faint to read).
   Cormorant Garamond italic for headlines, DM Sans for everything else.
   Rounded photo corners (--radius-photo), pill buttons, no shadows. */

:root {
  /* ---- Palette: change colors here only ---- */
  --ivory: #F4EEE4;          /* page background */
  --espresso: #46362F;       /* body text, headings, buttons. 9.9:1 on ivory */
  --wine: #3A0910;           /* Founding Members card, accent word, dividers, Nº, links. 14.8:1 on ivory */
  --latte: #AD9A7C;          /* thin hairlines only */
  --ivory-rgb: 244 238 228;  /* same ivory, for see-through layers */
  --espresso-rgb: 70 54 47;  /* same espresso, for see-through layers */

  /* ---- Roles built from the palette ---- */
  --muted: rgb(var(--espresso-rgb) / .75);      /* secondary text, 4.9:1 on ivory */
  --line: var(--wine);                          /* thin divider lines */
  --hairline: var(--latte);                     /* quieter hairlines (announcement bar, tabs, progress track) */
  --line-strong: var(--espresso);               /* outlines of inputs, chips, small round buttons */
  --link: var(--wine);                          /* text links */
  --on-dark: var(--ivory);                      /* text on the wine card */
  --on-dark-muted: rgb(var(--ivory-rgb) / .8);
  --on-dark-line: rgb(var(--ivory-rgb) / .2);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  --edge: 20px;             /* thin side margin around photos */
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --radius: 4px;
  --radius-photo: clamp(16px, 1.8vw, 28px);   /* rounded corners on every photo tile, card and block, same everywhere */
  --section: 160px;
  --bar-h: 60px;
  --ann: 0px;              /* announcement bar height, set when it shows */
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html.has-announce { --ann: 42px; }
@media (max-width: 760px) { :root { --section: 96px; } }
@property --zoom { syntax: '<number>'; inherits: false; initial-value: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; background: var(--ivory); }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--ivory); color: var(--espresso);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  animation: page-in .7s var(--ease) backwards;
}
html.leaving body { opacity: 0; transition: opacity .32s ease; }
@keyframes page-in { from { opacity: 0; } }
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0 0 18px; max-width: 560px; }
.center p, .band-inner p { margin-left: auto; margin-right: auto; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--on-dark); }
main { overflow-x: clip; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--ivory); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--espresso); margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.05; }
h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; }
@media (min-width: 901px) { h2 { font-size: clamp(56px, 4.4vw, 64px); } }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.lede { font-size: 18px; line-height: 1.7; max-width: 560px; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.label { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); margin-bottom: 24px; }
.sentence { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.22; max-width: 20em; margin: 0 auto; text-wrap: balance; }
.script { font-family: var(--script); font-weight: 400; font-style: normal; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.15; color: inherit; margin: 0; }
.script img { display: inline-block; max-height: 1.6em; width: auto; }
.signature { display: block; font-family: var(--script); font-size: clamp(34px, 3.4vw, 48px); margin-top: 8px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section { padding: var(--section) 0; }
.section.tight { padding: calc(var(--section) * .55) 0; }
.section + .section { padding-top: 0; }
.edge { padding: 0 var(--edge); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Photo tiles: rounded, thin side margins, caption underneath ---------- */
.tile { margin: 0; }
.tile .img { width: 100%; position: relative; border-radius: var(--radius-photo); overflow: hidden; background: var(--ivory); transform: translateZ(0); }
.tile img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(calc(var(--zoom) * var(--pz, 1)));
  transition: --zoom 1.2s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }
html.parallax .tile img { --pz: 1.03; will-change: transform; }
.tile figcaption, .tile .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 4px 0; }
.cap-title { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; color: var(--espresso);
  background: linear-gradient(var(--espresso), var(--espresso)) no-repeat 0 100% / 0% 1px; padding-bottom: 2px; transition: background-size .7s var(--ease); }
.cap-arrow { display: inline-block; margin-left: .5em; transition: transform 1.2s var(--ease); }
.cap-line { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); text-align: right; }
a.tile { display: block; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { --zoom: 1.03; }
  .tile:hover .cap-title { background-size: 100% 1px; }
  .tile:hover .cap-arrow { transform: translateX(6px); }
}
.tile.wide .img { aspect-ratio: 16 / 8; }
.tile.tall .img { aspect-ratio: 4 / 5; }
.tile.piece .img { aspect-ratio: 3 / 4; }
.tile.square .img { aspect-ratio: 1; }
@media (max-width: 720px) { .tile.wide .img { aspect-ratio: 4 / 5; } }
/* On laptops, keep every photo inside one screen so nothing feels oversized */
@media (min-width: 761px) {
  .tile.wide .img { max-height: 68svh; }
  .tile.tall .img { max-height: 78svh; }
}
/* Stopgap until larger photo files arrive: on big screens, keep each photo close to
   its real pixel width so it is not stretched soft. Remove once photos are ~2400px wide. */
@media (min-width: 761px) {
  .tile.wide { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .pair, .quad { max-width: 1180px; margin-left: auto; margin-right: auto; }
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); }
/* Three tall 4:5 photos in one row on laptops; stacked full width on phones.
   No height cap here, so the whole photo always shows (every hand, ring and bracelet). */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--edge); }
.trio .tile.tall .img { max-height: none; }
@media (min-width: 761px) { .trio { max-width: 1400px; margin-left: auto; margin-right: auto; } }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 40px; } }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--edge); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: 40px; } .quad { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }
.stack-tiles > * + * { margin-top: clamp(48px, 6vw, 80px); }

/* Soft blurred placeholder behind every photo, then the photo sharpens in */
.tile .img::before { content: ""; position: absolute; inset: -24px; background: var(--lqip, none) center / cover no-repeat; filter: blur(18px); z-index: 0; }
img.blur-load { opacity: 0; filter: blur(14px); }
img.blur-load.loaded { opacity: 1; filter: blur(0); }
.hero img.blur-load { transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }

/* ---------- Header: announcement bar + floating pill ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .8s var(--ease); }
.site-header.away { transform: translateY(-115%); }
#site-header:empty { display: block; height: calc(var(--bar-h) + 14px); }
.announce { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; background: var(--ivory); color: var(--espresso); border-bottom: 1px solid var(--hairline); overflow: hidden; transition: height .6s var(--ease), opacity .6s var(--ease); }
.announce a { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--espresso); text-decoration: none; padding: 10px 48px; line-height: 1.4; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat 50% calc(100% - 6px) / 0% 1px; transition: background-size .6s var(--ease); }
.announce a:hover, .announce a:focus-visible { background-size: calc(100% - 96px) 1px; }
.announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--espresso); cursor: pointer; opacity: .8; transition: opacity .3s; }
.announce-close:hover { opacity: 1; }
.announce-close svg { width: 10px; height: 10px; }
.announce.closing, .site-header.scrolled .announce { height: 0; opacity: 0; }
.bar-wrap { padding: 14px var(--edge) 0; transition: padding .6s var(--ease); }
.site-header.scrolled .bar-wrap { padding-top: 10px; }
.bar {
  max-width: 1400px; margin: 0 auto; height: var(--bar-h); padding: 0 26px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: 999px; color: var(--espresso);
  background: rgb(var(--ivory-rgb) / .92); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid transparent;
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease), max-width .8s var(--ease);
}
.site-header.scrolled .bar { background: var(--ivory); color: var(--espresso); border-color: var(--line); height: calc(var(--bar-h) - 8px); max-width: 1180px; }
.bar a, .menu-btn, .menu-top a, .menu-close { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: inherit; text-decoration: none; }
.menu-btn { justify-self: start; background: none; border: 0; padding: 10px 0; cursor: pointer; }
.header-cta { justify-self: end; padding: 10px 0; }
.brand { display: block; line-height: 0; }
.wordmark { display: block; height: 28px; aspect-ratio: 3063 / 863; background: currentColor; -webkit-mask: url(../img/jacine-wordmark.svg) no-repeat center / contain; mask: url(../img/jacine-wordmark.svg) no-repeat center / contain; transition: height .6s var(--ease); }
.site-header.scrolled .bar .wordmark { height: 25px; }
@media (max-width: 560px) {
  :root { --bar-h: 54px; } .bar { padding: 0 18px; } .wordmark, .site-header.scrolled .bar .wordmark { height: 23px; }
  .bar a, .menu-btn, .menu-top a, .menu-close { font-size: 11px; letter-spacing: .18em; }
  .announce a { font-size: 12px; letter-spacing: .02em; padding: 10px 40px; }
}

/* ---------- Full-screen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 70; background: var(--ivory); color: var(--espresso);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu-overlay.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.menu-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; height: calc(var(--bar-h) + 14px); padding: 14px calc(var(--edge) + 26px) 0; flex: none; }
.menu-close { justify-self: start; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; cursor: pointer; }
.menu-top .header-cta { justify-self: end; }
.menu-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 6vw; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) calc(var(--edge) + 26px) 48px; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links a { display: inline-block; padding: 2px 0; font-family: var(--serif); font-style: italic; font-size: clamp(38px, 5vw, 70px); line-height: 1.12; color: var(--espresso); text-decoration: none; transition: color .5s var(--ease), transform .7s var(--ease); }
.menu-links a[aria-current="page"] { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .menu-links a:hover { transform: translateX(10px); } }
.menu-sub { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.menu-sub a { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.menu-sub a:hover { color: var(--espresso); }
.menu-body .btn { margin-top: 36px; }
.menu-overlay .stagger { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.menu-overlay.open .stagger { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .07s); }
.menu-preview { position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 4 / 5; max-height: 68vh; border-radius: var(--radius-photo); overflow: hidden; transform: translateZ(0); }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.menu-preview img.show { opacity: 1; transform: scale(1); }
@media (max-width: 1023px), (hover: none) {
  .menu-preview { display: none; }
  .menu-body { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 560px) { .menu-top { padding: 14px calc(var(--edge) + 18px) 0; } .menu-body { padding: 24px calc(var(--edge) + 18px) 40px; } }

/* ---------- Waitlist drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgb(var(--espresso-rgb) / .3); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(540px, 100%);
  background: var(--ivory); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px clamp(24px, 4vw, 52px) 56px;
  transform: translateX(100%); visibility: hidden; transition: transform .75s var(--ease), visibility 0s .75s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .75s var(--ease), visibility 0s; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(28px, 6vh, 56px); }
.drawer-top .label { margin: 0; }
.drawer-close { width: 44px; height: 44px; margin-right: -12px; display: grid; place-items: center; background: none; border: 0; color: var(--espresso); cursor: pointer; }
.drawer h2 { font-size: clamp(44px, 5vw, 64px); }
.drawer .lede { margin-top: 10px; }
.drawer .perks { margin: 28px 0 36px; }
.drawer .perks li { font-size: 16px; padding: 16px 0 16px 34px; }
.drawer .perks li::before { top: 27px; }
.drawer .waitlist { max-width: none; }
.drawer .wl-thanks { padding: 40px 0; }
.drawer .wl-thanks .script { font-size: clamp(48px, 6vw, 72px); }

/* ---------- Buttons: pills. Espresso buttons turn wine on hover; ivory buttons on dark turn to an ivory outline ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; line-height: 1.4;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1px solid var(--espresso); background: var(--espresso); color: var(--ivory); cursor: pointer;
  transition: background-color .3s ease-out, background-size .3s ease-out, color .3s ease-out, border-color .3s ease-out;
}
.btn.outline { background: transparent; color: var(--espresso); }
.btn.ivory { background-color: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: var(--wine); border-color: var(--wine); color: var(--ivory); }
  .btn.outline:hover { background-color: var(--wine); border-color: var(--wine); color: var(--ivory); }
  .btn.ivory:hover { background-color: transparent; border-color: var(--ivory); color: var(--ivory); }
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.center .btn-row { justify-content: center; }
.textlink { color: var(--link); text-decoration: none; font-size: 15px; padding-bottom: 3px;
  background: linear-gradient(var(--link), var(--link)) no-repeat 0 100% / 100% 1px;
  transition: background-size .6s var(--ease), color .3s ease-out; }
.textlink:hover, .textlink:focus-visible { color: var(--muted); }
.textlink .arrow { display: inline-block; margin-left: .4em; opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.textlink:hover .arrow, .textlink:focus-visible .arrow { opacity: 1; transform: none; }
.placeholder-text { color: var(--muted); font-style: italic; }

/* ---------- Home hero ---------- */
/* 50/50 split: headline, subtext and button on the left half; the rotating photo tile fills the right half,
   as tall as the hero. Photos are 4:5 and cropped gently (object-fit: cover, framed on face and jewelry).
   Phones and tablets: photo on top at full width, headline below. */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(24px, 3vw, 48px);
  height: max(100svh, 640px); padding: calc(var(--bar-h) + var(--ann) + 24px) var(--edge) var(--edge) calc(var(--edge) + 26px);
  background: var(--ivory); color: var(--espresso);
}
.hero-photo {
  grid-column: 2; grid-row: 1; position: relative; overflow: hidden; border-radius: var(--radius-photo); background: var(--ivory);
  width: 100%; height: 100%; min-height: 0;
}
.hero-photo::before { content: ""; position: absolute; inset: -24px; background: var(--lqip, none) center / cover no-repeat; filter: blur(18px); }
.hero-photo picture { display: block; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Only the current photo shows; the next one fades in over it quickly (0.6s), so two are never seen blended */
.hero .hero-photo img:not(.is-on) { opacity: 0; }
.hero .hero-photo img { transition: opacity .6s ease-in-out, filter .6s var(--ease); }
.hero .hero-photo img.is-on { opacity: 1; z-index: 1; }
.hero .hero-photo img.was-on { opacity: 1; transition: none; }
.hero .hero-photo img.is-on.blur-load:not(.loaded) { opacity: 0; }
.hero h1 { font-style: normal; }
.hero h1 .accent { font-style: italic; color: var(--wine); }

.hero-copy h1, .hero-copy p, .hero-copy .btn { animation: fade-up 1.3s var(--ease) both; }
.hero-copy h1 { animation-delay: .35s; } .hero-copy p { animation-delay: .65s; } .hero-copy .btn { animation-delay: .95s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 2; }
.hero-copy > div { max-width: none; }
.hero h1 { color: var(--espresso); font-size: clamp(40px, 4.3vw, 72px); margin-bottom: 22px; }
.hero p { font-size: clamp(15px, 1.2vw, 18px); color: var(--espresso); margin-bottom: 34px; }

/* Home hero: espresso type and espresso button on ivory */
.hero h1, .hero p { color: var(--espresso); }
.hero .btn { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.hero :focus-visible { outline-color: var(--espresso); }
@media (hover: hover) and (pointer: fine) {
  .hero .btn:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
}
.site-header.on-hero .announce { background: var(--ivory); border-bottom: 1px solid var(--hairline); }
.site-header.on-hero .announce a, .site-header.on-hero .announce-close { color: var(--espresso); }
.site-header.on-hero .bar { color: var(--espresso); }
@media (min-width: 901px) {
  .hero h1 { font-size: clamp(56px, 7.4vw, 116px); line-height: 1.0; margin-bottom: 26px; }   /* fills the left half, so no big gap before the photo */
  .hero p { font-size: 18px; margin-bottom: 38px; }
  .hero .btn { padding: 19px 40px; }
}

/* Header over the home hero: more solid pill, larger espresso labels */
.site-header.on-hero .bar { background: rgb(var(--ivory-rgb) / .92); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); }
.site-header.on-hero .bar a, .site-header.on-hero .menu-btn { font-size: 13px; font-weight: 500; color: var(--espresso); }
.site-header.on-hero .announce a { font-size: 13px; }

/* Tablets and phones: photo tile on top at full width (4:5), headline and button below */
@media (max-width: 900px) {
  .hero { display: block; height: auto; min-height: 0; padding: calc(var(--bar-h) + var(--ann) + 28px) var(--edge) 0; }
  .hero-photo { height: auto; aspect-ratio: 4 / 5; max-height: 82svh; }
  .hero-copy { padding: 36px 4px 8px; }
  .hero-copy > div { max-width: 560px; }
  .hero h1 { font-size: 44px; line-height: 1.05; }
}

/* ---------- Closet page: "A taste of the closet" (square tiles, 3 across, 2 on phones) ---------- */
.closet-drop { margin-top: 26px; }
.page-hero .closet-drop + .btn { margin-top: 6px; }
.closet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
@media (max-width: 760px) { .closet-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } .closet-grid .cap { flex-direction: column; align-items: flex-start; gap: 6px; } .closet-grid .cap-line { text-align: left; } }

/* ---------- Why Jacine strip (under the home hero) ---------- */
.why { padding: clamp(40px, 5vw, 64px) calc(var(--edge) + 26px); }
.why-list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); text-align: center; }
.why-list li { display: flex; flex-direction: column; gap: 10px; }
.why-title { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); }
.why-line { font-size: 15px; line-height: 1.6; color: var(--espresso); }
@media (max-width: 760px) { .why { padding: 56px var(--edge) 8px; } .why-list { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Page openings (all other pages) ---------- */
.page-hero { padding: calc(var(--bar-h) + var(--ann) + clamp(88px, 11vw, 160px)) 0 clamp(48px, 6vw, 88px); }
.page-hero .lede { margin-top: 26px; }
.page-hero .label { margin-bottom: 26px; }
.photo-open { padding: calc(var(--bar-h) + var(--ann) + 28px) var(--edge) 0; }
.photo-open + .section, .photo-open + .page-hero { padding-top: clamp(56px, 7vw, 104px); }

/* Page openings with a photo: the photo at a calm size, the page title beside it */
.page-open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding: calc(var(--bar-h) + var(--ann) + 36px) var(--edge) 0; }
.page-open .tile .img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--bar-h) - var(--ann) - 84px); min-height: 360px; }
@media (min-width: 861px) { .page-open > .tile { width: 100%; max-width: 540px; justify-self: end; } }
.page-open-text { padding-right: var(--gutter); max-width: 620px; }
.page-open-text h1 { font-size: clamp(44px, 5vw, 76px); }
.page-open-text .lede { margin-top: 24px; }
.page-open + .section { padding-top: clamp(80px, 10vw, 144px); }
@media (max-width: 860px) {
  .page-open { grid-template-columns: 1fr; gap: 36px; }
  .page-open .tile .img { aspect-ratio: 1; max-height: none; min-height: 0; }
  .page-open-text { padding: 0 4px; }
}

/* ---------- Section heads ---------- */
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 0 calc(var(--edge) + 4px); margin-bottom: clamp(28px, 3.5vw, 44px); }
.row-head p { margin: 10px 0 0; }

/* ---------- Upcycling feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 0 var(--edge); }
.feature .tile .img { aspect-ratio: 1; }
@media (min-width: 861px) { .feature > .tile { width: 100%; max-width: 580px; justify-self: end; } }
.feature-text { padding-right: var(--gutter); max-width: 560px; }
.feature-text h2 { margin-bottom: 24px; }
.feature-text .btn { margin-top: 18px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-text { padding: 0 4px; } }

/* ---------- Founding Members: the one wine card on each page (ivory text, ivory button with wine text) ---------- */
.section.band { padding: var(--section) var(--gutter); }
.band + .section { padding-top: var(--section); }
.band-wine { background: var(--wine); border-radius: var(--radius-photo); width: calc(100% - 2 * var(--edge)); max-width: 1180px; margin-left: auto; margin-right: auto; }
main > .band:last-child { margin-bottom: var(--section); }
.band, .band h1, .band h2, .band h3, .band p, .band li { color: var(--on-dark); }
.band .label, .band .small, .band .field label, .band fieldset legend, .band .optional, .band .form-status { color: var(--on-dark-muted); }
.band a:not(.btn) { color: var(--on-dark); }
.band .lede { color: var(--on-dark-muted); }
.band-inner { max-width: calc(780px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.band .script { color: var(--on-dark); margin-bottom: 18px; }
.band-inner h2 { max-width: 14em; margin: 0 auto 40px; }
.band .btn, .band .btn.ivory { background: var(--ivory); border-color: var(--ivory); color: var(--wine); }
@media (hover: hover) and (pointer: fine) {
  .band .btn:hover, .band .btn.ivory:hover { background: transparent; border-color: var(--ivory); color: var(--ivory); }
}
.band .perks, .band .perks li { border-color: var(--on-dark-line); }
.band .perks li::before { background: var(--on-dark-muted); }
/* Waitlist form on wine */
.band .waitlist input:not([type=checkbox]) { color: var(--ivory); background-image: linear-gradient(var(--ivory), var(--ivory)), linear-gradient(rgb(var(--ivory-rgb) / .4), rgb(var(--ivory-rgb) / .4)); }
.band .waitlist input::placeholder { color: rgb(var(--ivory-rgb) / .5); }
.band .chip-check span { border-color: rgb(var(--ivory-rgb) / .4); color: var(--ivory); }
.band .chip-check input:checked + span { background: var(--ivory); border-color: var(--ivory); color: var(--wine); }
.band .chip-check input:focus-visible + span { outline-color: var(--ivory); }

/* ---------- Lists, steps, terms ---------- */
.lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); text-align: left; }
.lines li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.perks { list-style: none; padding: 0; margin: 40px 0; text-align: left; border-top: 1px solid var(--line); }
.perks li { padding: 20px 0 20px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; max-width: none; }
.perks li::before { content: ""; position: absolute; left: 4px; top: 31px; width: 14px; height: 1px; background: var(--espresso); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps li { border-top: 1px solid var(--line); padding-top: 26px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.terms { margin: 0; border-top: 1px solid var(--line); }
.terms div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.terms dd { margin: 0; }
@media (max-width: 600px) { .terms div { grid-template-columns: 1fr; gap: 4px; } }

/* Life of every piece: Rented, Worn, Remade */
.cycle { list-style: none; padding: 0; margin: 44px auto 0; display: flex; justify-content: center; max-width: 860px; }
.cycle li { flex: 1; text-align: center; position: relative; }
.cycle li + li::before { content: "\2192"; position: absolute; left: -12px; top: 10px; font-family: var(--sans); font-size: 22px; color: var(--muted); }
.cycle strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; }
.cycle span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 600px) {
  .cycle { flex-direction: column; gap: 52px; }
  .cycle li + li::before { content: "\2193"; left: 50%; top: -40px; transform: translateX(-50%); }
}

.soon { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 24px; text-align: left; }
.field label, fieldset legend { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--espresso); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 20px; min-height: 52px;
}
select { -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2346362F'/%3E%3C/svg%3E") no-repeat right 20px center; padding-right: 44px; }
textarea { min-height: 140px; resize: vertical; border-radius: var(--radius); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--espresso); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 4px 0 28px; text-align: left; }
fieldset legend { padding: 0; margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.chip-check span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.chip-check input:checked + span { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.chip-check input:focus-visible + span { outline: 2px solid var(--muted); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; }
.form-status { min-height: 1.6em; margin-top: 14px; color: var(--muted); }
.waitlist { max-width: 560px; margin: 0 auto; text-align: left; }
.waitlist input:not([type=checkbox]) {
  border: 0; border-radius: 0; min-height: 48px; padding: 10px 2px; background-color: transparent;
  background-image: linear-gradient(var(--espresso), var(--espresso)), linear-gradient(var(--line-strong), var(--line-strong));
  background-repeat: no-repeat; background-position: 0 100%, 0 100%; background-size: 0% 2px, 100% 1px;
  transition: background-size .6s ease-out;
}
.waitlist input:not([type=checkbox]):focus { background-size: 100% 2px, 100% 1px; }
.waitlist input:not([type=checkbox]):focus-visible { outline: none; }
.waitlist .field label { margin-bottom: 0; }
.waitlist-form { transition: opacity .6s ease-out; }
.waitlist-form.fading { opacity: 0; }
.waitlist .btn { width: 100%; }
.wl-privacy { margin-top: 14px; }
.wl-thanks { text-align: center; padding: 16px 0; }
.wl-thanks:not([hidden]) { animation: soft-in 1s var(--ease) both; }
.wl-thanks:not([hidden]) .script { animation: write-in 2.6s .5s cubic-bezier(.45, .05, .25, 1) both; }
@keyframes write-in { from { clip-path: inset(-20% 100% -20% 0); opacity: .2; } 15% { opacity: 1; } to { clip-path: inset(-20% -5% -20% 0); opacity: 1; } }
@keyframes soft-in { from { opacity: 0; } }
.wl-thanks:focus { outline: none; }
.wl-thanks h3 { margin-bottom: 12px; }
.wl-thanks .wl-note { max-width: 34ch; margin: 0 auto; }
.band .wl-thanks .wl-note { color: var(--ivory); }
.wl-thanks .script { margin-top: 8px; color: var(--espresso); }
.band .wl-thanks .script { color: var(--ivory); }
.form-narrow { max-width: 620px; }

/* ---------- Story ---------- */
.story p { font-family: var(--serif); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.45; margin-bottom: 28px; }
.handwritten { margin-top: 40px; color: var(--espresso); }

/* ---------- Piece labels (closet and product pages, used when the closet opens) ---------- */
.piece-label { padding: 14px 4px 0; }
.piece-brand { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.piece-name { display: block; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.25; margin-top: 4px; }
.piece-meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.piece-no { display: block; color: var(--wine); font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; }
.piece-story { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ and prose ---------- */
.faq h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 64px 0 10px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--sans); font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.prose h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 52px 0 14px; }
.notice { border: 1px solid var(--line); border-radius: var(--radius-photo); padding: 20px 24px; color: var(--muted); }
.notice strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--espresso); margin-bottom: 6px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list h3 { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); color: var(--espresso); border-top: 1px solid var(--line); padding: var(--section) var(--gutter) 36px; text-align: center; }
.site-footer .wordmark { height: 40px; margin: 0 auto; color: var(--espresso); }
.footer-note { margin: 22px auto 0; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; max-width: 900px; }
.footer-links a { font-size: 14px; color: var(--espresso); text-decoration: none; }
.footer-links a:hover { color: var(--espresso); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* ---------- Closet carousel (home) ---------- */
.carousel-track { display: flex; gap: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge); padding: 0 var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.carousel-track > .tile { flex: 0 0 clamp(240px, 24vw, 340px); scroll-snap-align: start; }
@media (max-width: 760px) { .carousel-track > .tile { flex-basis: 72vw; } }
.carousel-foot { display: flex; align-items: center; gap: 24px; padding: 30px calc(var(--edge) + 4px) 0; }
.carousel-progress { position: relative; flex: 1; height: 1px; background: var(--hairline); overflow: hidden; }
.carousel-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: var(--espresso); }
.carousel-arrows { display: flex; gap: 10px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--espresso); cursor: pointer; transition: background-color .5s var(--ease), color .5s var(--ease), opacity .5s var(--ease); }
.carousel-btn svg { width: 16px; height: 10px; }
.carousel-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .carousel-btn:not([disabled]):hover { background: var(--espresso); color: var(--ivory); } }
.carousel.no-scroll .carousel-foot { display: none; }

/* ---------- Tabs (The Closet page) ---------- */
.tabs { position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); margin: 0 calc(var(--edge) + 4px) clamp(28px, 4vw, 44px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hairline); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; padding: 4px 0 16px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color .5s var(--ease); }
.tab[aria-selected="true"] { color: var(--espresso); }
.tab:hover { color: var(--espresso); }
.tab-dot { flex: none; padding-bottom: 12px; color: var(--line-strong); font-size: 12px; }
.tabs-line { position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--espresso); transition: transform .6s var(--ease), width .6s var(--ease); }
.tabs-line.instant { transition: none; }
.tab-panel { transition: opacity .32s ease; }
.tab-panel.fading { opacity: 0; }

/* ---------- Gentle fade-in ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Soft cursor (desktop only) ---------- */
html.soft-cursor, html.soft-cursor a, html.soft-cursor button, html.soft-cursor label, html.soft-cursor .carousel-track { cursor: none; }
html.soft-cursor input, html.soft-cursor textarea, html.soft-cursor select { cursor: text; }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 200; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--espresso); pointer-events: none; opacity: 0;
  transition: width .5s ease-out, height .5s ease-out, margin .5s ease-out, opacity .4s ease-out, background-color .4s ease-out; }
.cursor-dot.show { opacity: .85; }
.cursor-dot.big { width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: .28; }
.cursor-dot.light { background: var(--ivory); }
.cursor-dot.hide { opacity: 0; }

/* ---------- Reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  html.leaving body { opacity: 1; }
  .tile img { transform: none; }
  }
