/* ═══ tara — feminine luxury tokens ═══════════════════════
   One serif (Cormorant Garamond) for display, one sans (Jost)
   for the page. The app demo renders in the system UI stack so
   it reads as a real screenshot, not a mockup.
   Terracotta rose appears ONLY on the two CTA buttons — every other
   accent is ink. No border-radius anywhere: hard edges only. */
:root {
  --ivory:      #F8F6F2;
  --white:      #FFFFFF;
  --head:       #2E2B29;
  --ink:        #211E1C;
  --mute:       #6E6963;
  --faint:      #A29C93;
  --line:       #E7E2DA;

  --rose:       #BE6E60;   /* terracotta rose — CTA buttons only */
  --rose-deep:  #A85B4E;   /* CTA hover */
  --blush:      #F5E3DC;   /* selection wash */

  --display: "Cormorant Garamond", Georgia, serif;
  --sans:    Jost, "Century Gothic", system-ui, sans-serif;

  --wrap:   1240px;
  --gutter: 28px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blush); color: var(--rose-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--faint);
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--rose); color: #fff; padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ═══ Wordmark ════════════════════════════════════════════ */
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

/* ═══ Block button — the only purple on the page ══════════ */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rose);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 0;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .4s var(--ease);
}
.pill:hover { background: var(--rose-deep); }
.pill--lg { padding: 17px 30px; }
.pill[disabled] { opacity: .5; pointer-events: none; }

/* ═══ Nav ═════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
}
.nav__mid { display: flex; gap: 38px; justify-self: center; }
.nav__mid a {
  font-size: 15.5px; font-weight: 400;
  text-decoration: none; color: var(--ink);
  text-underline-offset: 5px;
}
.nav__mid a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.nav__right { justify-self: end; }

/* ═══ 1 · Hero ════════════════════════════════════════════ */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(12px, 1.8vw, 24px) 0 0;
}
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 6.8vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--head);
}
.hero__title em { font-style: italic; font-weight: 300; }

.line { display: block; overflow: hidden; padding-bottom: .1em; }
.line__in { display: block; transform: translateY(108%); transition: transform 1.2s var(--ease); }
.line__in.is-in { transform: translateY(0); }

.hero__sub {
  margin-top: 6px;
  font-size: clamp(15.5px, 1.5vw, 19px);
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--mute);
}

.hero__media {
  position: relative;
  z-index: 1;               /* the cutout occludes the marquee behind it */
  width: min(1060px, 96vw, calc((100vh - 150px) * 1.261));
  margin-top: clamp(-26px, -1.8vw, -8px);
}
/* The PNG carries ~30% transparent dead space left of the subject —
   crop into it so the box IS the subject, and centring the box centres HER. */
.hero__subject {
  width: 100%;
  aspect-ratio: 1187 / 941;
  object-fit: cover;
  object-position: 100% 0;
}

/* Pulsing ring markers on the garment */
.spot {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: rgba(255,255,255,.14);
  transform: translate(-50%, -50%);
  animation: ring 2.6s var(--ease) infinite;
}
.spot:nth-of-type(3) { animation-delay: .9s; }
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Floating card ↔ finding bar (same cell, cross-fade) */
.float {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: min(92%, 400px);
  display: grid; place-items: center;
}
.float__card, .float__pill {
  grid-area: 1 / 1;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.float__card {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 18px 12px 12px;
  text-align: left;
  box-shadow: 0 20px 44px -22px rgba(33,30,28,.25);
}
.float__thumb { width: 46px; height: 46px; object-fit: cover; object-position: 65% 0; background: var(--ivory); }
.float__store {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
}
.float__item {
  font-size: 15.5px; font-weight: 500; color: var(--ink); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.float__price { font-size: 16.5px; font-weight: 500; color: var(--ink); }

.float__pill {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--ivory);
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 28px;
  white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(33,30,28,.5);
}
/* Blinking text cursor, not a dot */
.float__dot {
  width: 2px; height: 13px;
  background: currentColor; flex: none;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.float.is-card .float__pill { opacity: 0; transform: scale(.97); pointer-events: none; }
.float.is-pill .float__card { opacity: 0; transform: scale(.98); pointer-events: none; }

/* ── Store marquee — one voice for every name ── */
.press {
  position: relative; z-index: 0;   /* slides behind the cutout above */
  width: 100%;
  margin-top: clamp(-88px, -6vw, -44px);
  padding-bottom: clamp(14px, 2vw, 26px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.press__track { display: flex; width: max-content; animation: slide 44s linear infinite; }
.press:hover .press__track { animation-play-state: paused; }
.press__set {
  display: flex; align-items: center;
  gap: clamp(28px, 3.5vw, 52px);
  padding-right: clamp(28px, 3.5vw, 52px);
  flex: none;
}
.press__set i { width: 3px; height: 3px; background: var(--line); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

.markname {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #B8B2A8;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.markname:hover { color: var(--head); }

/* ═══ Section rhythm ══════════════════════════════════════ */
.brands, .save, .cta { padding: clamp(76px, 9vw, 132px) 0; }
.brands { padding-top: clamp(72px, 8vw, 112px); }
.save { background: var(--white); }

.h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--head);
}
.h2 em { font-style: italic; }
.h2--center { text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 40px;
}
.split__sub {
  max-width: 36ch;
  text-align: right;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--mute);
  text-wrap: pretty;
}

/* ═══ 3 · Brand tiles ═════════════════════════════════════ */
.rail {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: clamp(36px, 4vw, 56px);
}
.rail__all {
  font-size: 16px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: opacity .3s var(--ease);
}
.rail__all:hover { opacity: .55; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 195px;
  gap: 18px;
  margin-top: 24px;
}
.tile {
  position: relative; overflow: hidden;
  display: block; text-decoration: none;
  grid-row: span 2;
  background: var(--line);
}
.tile--tall { grid-row: span 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.045); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,24,.06), rgba(20,16,24,.3));
}
.tile__name {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 1;
  transform: translateY(-50%);
  text-align: center;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-indent: .34em;
  color: #fff;
  padding-inline: 12px;
}

/* ═══ 4 · Collections ═════════════════════════════════════ */
.save__inner { display: flex; flex-direction: column; align-items: center; }
.save__sub {
  margin-top: 18px; max-width: 52ch; text-align: center;
  font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; color: var(--mute);
  text-wrap: pretty;
}

.deck {
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(44px, 5vw, 68px);
  padding-block: 22px;
}
.col {
  --r: 0deg; --y: 0px;
  flex: 0 0 clamp(190px, 20vw, 255px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 13px 13px 17px;
  box-shadow: 0 24px 52px -26px rgba(33,30,28,.28);
  transform: rotate(var(--r)) translateY(var(--y));
  transition: transform .55s var(--ease);
}
.col + .col { margin-left: clamp(-58px, -4vw, -30px); }
.col:hover { transform: rotate(var(--r)) translateY(calc(var(--y) - 12px)); z-index: 3; }

.col__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: hidden; }
.col__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.col__name { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--ink); }
.col__n { margin-top: 2px; font-size: 12.5px; color: var(--faint); }

/* ═══ 5 · CTA ═════════════════════════════════════════════ */
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--head);
}
.cta__title em { font-style: italic; }
.cta__sub {
  margin-top: 18px; max-width: 46ch;
  font-weight: 300; color: var(--mute); text-wrap: pretty;
}

.capture { width: 100%; max-width: 480px; margin-top: 34px; }
.form { display: flex; gap: 9px; }
.form[hidden] { display: none; }
.form__input {
  flex: 1; min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .4s var(--ease);
}
.form__input::placeholder { color: var(--faint); }
.form__input:focus { outline: none; border-color: var(--ink); }
.form__input.is-bad { border-color: #A8342B; }
.form__msg { min-height: 20px; margin-top: 12px; font-size: 14px; text-align: center; color: var(--mute); }
.form__msg.is-bad { color: #A8342B; }

.cta { padding-bottom: clamp(48px, 5vw, 72px); }

/* ═══ Footer ══════════════════════════════════════════════ */
.foot {
  position: relative;
  background: var(--ivory);
  padding: clamp(44px, 5vw, 64px) 0 36px;
  overflow: hidden;
}
.foot__ghost {
  position: absolute; left: -2%; bottom: -24%;
  font-family: var(--display);
  font-style: italic; font-weight: 400;
  font-size: clamp(300px, 48vw, 760px);
  line-height: .78;
  color: #F0EDE6;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.foot__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 48px;
}
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot__social { display: flex; gap: 12px; margin-top: auto; padding-top: 26px; }
.foot__social a {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--mute);
  border: 1px solid var(--line);
  background: var(--white);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.foot__social a:hover { color: var(--ink); border-color: var(--ink); }
.foot__social svg { width: 12px; height: 12px; }
.foot__copy { margin-top: 16px; font-size: 13px; color: var(--faint); }

.foot__cols { display: flex; gap: clamp(36px, 5vw, 76px); }
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__h {
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 4px;
}
.foot__col a {
  font-size: 15px; color: var(--mute);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.foot__col a:hover { color: var(--ink); }
.foot__col span { font-size: 15px; color: var(--faint); }

/* ═══ Legal pages ═════════════════════════════════════════ */
.legal {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(48px, 6vw, 72px);
}
.legal h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  color: var(--head);
}
.legal__date {
  margin-top: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
}
.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  color: var(--ink);
  margin-top: 36px;
}
.legal p { margin-top: 10px; font-weight: 300; color: var(--mute); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal__foot {
  max-width: 620px;
  margin-inline: auto;
  padding: 0 var(--gutter) 64px;
  display: flex; gap: 10px;
  font-size: 14px; color: var(--faint);
}
.legal__foot a { color: var(--mute); text-decoration: none; }
.legal__foot a:hover { color: var(--ink); }

/* ═══ Reveal ══════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ═══ Responsive ══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .nav__mid { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .split__sub { text-align: left; max-width: 48ch; }
  .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .deck { flex-wrap: wrap; gap: 18px; }
  .col + .col { margin-left: 0; }
  .col { --r: 0deg !important; --y: 0px !important; flex: 0 0 calc(50% - 9px); }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__social { padding-top: 28px; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  /* The hero is exactly one screen: the image flexes to fill whatever
     the headline leaves, so it always reaches the bottom edge. */
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero__media { width: 100vw; flex: 1 1 auto; min-height: 430px; }
  /* Absolute fill: % heights resolve unconditionally for abs-positioned
     children, unlike flex-grown boxes under a min-height container. */
  .hero__subject {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto;
    object-position: 82% 0;
  }
  .float { width: min(94%, 340px); top: 64%; }
  .float__pill { font-size: 11.5px; padding: 14px 20px; }
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .tile, .tile--tall { grid-row: span 1; }
  .col { flex: 0 0 100%; }
  .form { flex-direction: column; }
  .form .pill { width: 100%; padding: 17px; }
  .foot__cols { flex-wrap: wrap; gap: 30px 42px; }
}

/* ═══ Reduced motion ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .line__in { transform: none; }
  .press__track { animation: none; }
  .spot, .float__dot { animation: none; }
}
