/* ============================================================
   Charm v2 — Runway-inspired design tokens
   Dark, cinematic, single-typeface, zero shadows.
   ============================================================ */

:root {
  /* Palette — dark dominant */
  --c-bg:          #000000;
  --c-bg-2:        #030303;
  --c-surface:     #0a0a0a;
  --c-surface-2:   #111111;
  --c-elevated:    #1a1a1a;
  --c-border:      #1f1f22;
  --c-border-2:    #27272a;
  --c-divider:     #161618;

  --c-text:        #ffffff;
  --c-text-2:      #a7a7a7;   /* Muted */
  --c-text-3:      #767d88;   /* Cool slate */
  --c-text-4:      #5a5d63;   /* Deep mute */

  --c-accent:      #ffffff;   /* No colour system — content provides colour */
  --c-link:        #ffffff;
  --c-focus:       #ffffff;

  /* Light surfaces (inverted sections) */
  --c-light-bg:    #f4f4f4;
  --c-light-bg-2:  #e9ecf2;
  --c-light-text:  #0c0c0c;
  --c-light-text-2:#404040;

  /* Typography tokens — single typeface */
  --f-display: 'Inter Tight', 'Inter', 'DM Sans', system-ui, sans-serif;
  --f-body:    'Inter Tight', 'Inter', 'DM Sans', system-ui, sans-serif;

  /* Spacing — 8px base, cinema scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 96px;
  --s-11: 128px;

  /* Radius — sharp, never pill */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 6px;
  --r-4: 8px;
  --r-5: 12px;
  --r-6: 16px;

  /* Containers */
  --cw-max: 1600px;
  --cw-content: 1280px;
  --cw-text: 720px;

  /* Z-index */
  --z-nav: 50;
  --z-modal: 100;
  --z-toast: 200;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.40;
  letter-spacing: -0.16px;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--c-text); color: var(--c-bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--r-2); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-4); }

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

/* ============================================================
   Typography — tight display, single weight system
   ============================================================ */
.t-display-xl {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -3.2px;
  text-wrap: balance;
}

.t-display {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.00;
  letter-spacing: -1.8px;
  text-wrap: balance;
}

.t-headline {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.00;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

.t-section {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.0px;
  text-wrap: balance;
}

.t-card-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.10;
  letter-spacing: -0.4px;
}

.t-card-sub {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.t-body {
  font-size: 16px;
  line-height: 1.50;
  letter-spacing: -0.16px;
  color: var(--c-text-2);
  text-wrap: pretty;
}

.t-body-lg {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.26px;
  color: var(--c-text-2);
  text-wrap: pretty;
}

.t-small {
  font-size: 13px;
  line-height: 1.40;
  letter-spacing: -0.16px;
  color: var(--c-text-3);
}

.t-label {
  font-size: 11px;
  font-weight: 450;
  line-height: 1.30;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.t-label-lg {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.t-mute { color: var(--c-text-3); }
.t-muted { color: var(--c-text-2); }

/* Light section text */
.light-sec .t-body, .light-sec .t-body-lg { color: var(--c-light-text-2); }
.light-sec .t-label, .light-sec .t-small { color: var(--c-text-3); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--cw-content);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-wide {
  width: 100%;
  max-width: var(--cw-max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-narrow {
  width: 100%;
  max-width: var(--cw-text);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.section {
  padding: clamp(64px, 8vw, 128px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 96px) 0; }

.light-sec {
  background: var(--c-light-bg);
  color: var(--c-light-text);
}
.light-sec-cool {
  background: var(--c-light-bg-2);
  color: var(--c-light-text);
}

.divider-line {
  height: 1px;
  background: var(--c-border);
  width: 100%;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: rgba(0,0,0,0.60);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}
.nav--scrolled {
  background: rgba(0,0,0,0.85);
  border-bottom-color: var(--c-border);
}
.nav-inner {
  max-width: var(--cw-max);
  margin: 0 auto;
  padding: 0 var(--s-6);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.nav-logo::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--c-text);
  border-radius: 1px;
  transform: rotate(45deg);
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  letter-spacing: -0.16px;
  transition: color 200ms ease;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--c-text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.nav-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-2);
  border-radius: var(--r-3);
  transition: background 200ms ease, color 200ms ease;
}
.nav-icon:hover { background: var(--c-elevated); color: var(--c-text); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { gap: var(--s-4); }
}

/* Mobile-specific nav adjustments — tightens spacing, shrinks pill, hides
   lower-priority icons so the primary CTA always stays visible. */
@media (max-width: 640px) {
  .nav-inner { padding: 0 var(--s-4); gap: var(--s-3); }
  .nav-right, .nav-actions { gap: 6px; }
  .nav-icon, .nav-icon-btn { width: 32px; height: 32px; }
  /* Collapse the location pill to just the pin glyph on small screens */
  #charm-loc-pill { padding: 0 !important; width: 34px !important; max-width: 34px !important; justify-content: center !important; }
  #charm-loc-pill > span:nth-child(2) { display: none; }
  /* Theme toggle is nice-to-have — hide on small phones */
  #theme-toggle { display: none; }
}
@media (max-width: 480px) {
  /* Drop the secondary icons on tiny phones; keep Sign in + primary CTA */
  .nav-right .nav-icon, .nav-actions .nav-icon-btn { display: none; }
  .nav-inner { padding: 0 12px; }
  .btn.btn--sm, .btn-ghost, .btn-gold { padding: 6px 10px; font-size: 11px; }
}

/* ============================================================
   Buttons — restrained, editorial
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 180ms ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--c-text);
  color: var(--c-bg);
}
.btn--primary:hover { background: #e5e5e5; }

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border-2);
}
.btn--ghost:hover { background: var(--c-elevated); border-color: #3a3a3e; }

.btn--link {
  height: auto;
  padding: 4px 0;
  background: transparent;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-2);
  border-radius: 0;
}
.btn--link:hover { border-bottom-color: var(--c-text); }

.btn--sm { height: 36px; padding: 0 var(--s-4); font-size: 13px; }
.btn--lg { height: 52px; padding: 0 var(--s-6); font-size: 15px; }

.btn--arrow::after { content: '→'; margin-left: 2px; transition: transform 220ms ease; }
.btn--arrow:hover::after { transform: translateX(3px); }

/* Light-section button inverts */
.light-sec .btn--primary { background: var(--c-light-text); color: var(--c-light-bg); }
.light-sec .btn--primary:hover { background: #262626; }
.light-sec .btn--ghost { color: var(--c-light-text); border-color: #d0d4d4; }
.light-sec .btn--ghost:hover { background: #e0e3e9; }

/* ============================================================
   Cards — editorial (image-dominant)
   ============================================================ */
.card {
  background: transparent;
  border-radius: var(--r-4);
  overflow: hidden;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); }
  .card:hover .card-img img { transform: scale(1.04); }
}

.card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-4);
  background: var(--c-surface-2);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-img--wide { aspect-ratio: 3/2; }
.card-img--square { aspect-ratio: 1/1; }
.card-img--tall { aspect-ratio: 3/4; }

.card-meta {
  padding: var(--s-5) 0 var(--s-2);
}
.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--s-3);
}
.card-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 var(--s-2);
}
.card-sub {
  font-size: 14px;
  line-height: 1.40;
  color: var(--c-text-3);
  margin: 0;
}

.card-price {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--c-text);
}
.card-price span {
  font-weight: 400;
  color: var(--c-text-3);
  font-size: 13px;
  margin-left: 2px;
}

.card-fav {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
  z-index: 2;
}
.card-fav:hover { background: rgba(0,0,0,0.72); transform: scale(1.08); }
.card-fav[aria-pressed="true"] { background: #fff; color: #000; }

.card-tag {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-2);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ============================================================
   Forms — minimal, editorial
   ============================================================ */
.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  color: var(--c-text);
  font-size: 14px;
  letter-spacing: -0.16px;
  transition: border-color 200ms ease, background 200ms ease;
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-text);
  background: var(--c-elevated);
}
.textarea { height: auto; padding: var(--s-4); min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23767d88' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ============================================================
   Hero — cinematic full-bleed
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 72px;
  overflow: hidden;
  background: var(--c-bg);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.70) 85%, rgba(0,0,0,0.95) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}
.hero-body {
  position: relative;
  z-index: 2;
  padding: 0 0 var(--s-10);
}
.hero-eyebrow {
  margin-bottom: var(--s-5);
  color: rgba(255,255,255,0.80);
}
.hero-title {
  color: #fff;
  margin: 0 0 var(--s-6);
  max-width: 18ch;
}
.hero-lede {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  color: rgba(255,255,255,0.80);
  max-width: 58ch;
  margin: 0 0 var(--s-7);
}
.hero-cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

/* Pulled-up search card for hero */
.hero-search {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-5);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: var(--s-2);
  align-items: stretch;
}
.hero-search-field {
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--c-border);
  min-width: 0;
}
.hero-search-field:last-of-type { border-right: 0; }
.hero-search-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 4px;
}
.hero-search-field input, .hero-search-field select {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--c-text);
  font-size: 14px;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.hero-search-field input::placeholder { color: var(--c-text-4); }
.hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--s-6);
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: var(--r-3);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.1px;
  gap: var(--s-2);
  transition: background 200ms ease;
}
.hero-search-btn:hover { background: #e5e5e5; }

/* Location typeahead + date fields — positioning context for popovers */
.hero-search-field--loc,
.hero-search-field--when { position: relative; }

/* Date trigger: styled as a button that fills the field like the inputs */
.hero-search-date {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--c-text-4);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  outline: none;
}
.hero-search-date:hover { color: var(--c-text); }
.hero-search-date svg { color: var(--c-text-3); flex-shrink: 0; }
.hero-search-date.has-value { color: var(--c-text); }

/* Shared popover */
.hero-search-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  min-width: 280px;
  max-width: 360px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  padding: var(--s-2);
  z-index: 100;
  max-height: 340px;
  overflow-y: auto;
}
.hero-search-pop[hidden] { display: none; }
.hero-pop-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px var(--s-3);
  background: transparent;
  border: 0;
  border-radius: var(--r-2);
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}
.hero-pop-row + .hero-pop-row { margin-top: 2px; }
.hero-pop-row:hover { background: rgba(255,255,255,0.04); }
.hero-pop-row__main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-pop-row__main svg { color: var(--c-text-3); flex-shrink: 0; }
.hero-pop-row__main > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-pop-row__meta {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
  flex-shrink: 0;
}
.hero-pop-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--c-text-3);
  text-align: center;
}

/* Calendar popover */
.hero-search-pop--cal {
  width: 320px;
  min-width: 320px;
  max-width: calc(100vw - 32px);
  padding: var(--s-3);
  left: auto;
  right: 0;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px var(--s-2);
}
.cal-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: -0.1px;
}
.cal-nav {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.cal-nav:hover { background: rgba(255,255,255,0.05); border-color: var(--c-text-3); }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  color: var(--c-text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.cal-day:hover:not(:disabled) { background: rgba(255,255,255,0.06); }
.cal-day.is-muted { color: var(--c-text-4); cursor: default; }
.cal-day.is-today { border-color: var(--c-border); }
.cal-day.is-selected,
.cal-day.is-selected:hover {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
.cal-foot {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
}
.cal-foot-btn {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  color: var(--c-text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.05px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.cal-foot-btn:hover { background: rgba(255,255,255,0.05); border-color: var(--c-text-3); }
.cal-foot-btn.is-primary {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
.cal-foot-btn.is-primary:hover { background: #e5e5e5; border-color: #e5e5e5; }

@media (max-width: 900px) {
  .hero-search {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }
  .hero-search-field { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .hero-search-field:last-of-type { border-bottom: 0; }

  /* Popovers expand full-width on mobile */
  .hero-search-pop,
  .hero-search-pop--cal {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  /* Chunkier search button on mobile — stretches full-width under the fields */
  .hero-search-btn {
    padding: 18px var(--s-6);
    min-height: 54px;
    font-size: 15px;
    border-radius: var(--r-3);
    margin-top: var(--s-3);
  }
}

/* ============================================================
   Editorial magazine grid (mixed-size)
   ============================================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: var(--s-5);
}
.editorial-grid > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.editorial-grid > :nth-child(1) .card-img { aspect-ratio: 16/10; }

@media (max-width: 1024px) {
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid > :nth-child(1) { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .editorial-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .editorial-grid > :nth-child(1) { grid-column: auto; }
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-6);
}

.tri-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 900px) { .tri-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Category strip — horizontal scroll, editorial
   ============================================================ */
.cat-strip {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  padding: var(--s-4) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--c-border-2);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--c-text-2);
  background: transparent;
  scroll-snap-align: start;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.cat-pill:hover { color: var(--c-text); border-color: #3a3a3e; }
.cat-pill.is-active { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}
.section-head .t-label { margin-bottom: var(--s-3); display: block; }
.section-head h2 { margin: 0; }
.section-head .section-aside {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
  padding-bottom: 6px;
}
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Stats — editorial (tabular, spaced)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stat-item {
  padding: var(--s-8) var(--s-5);
  border-right: 1px solid var(--c-border);
}
.stat-item:last-child { border-right: 0; }
.stat-value {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2.4px;
  color: var(--c-text);
  margin-bottom: var(--s-3);
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--c-border); }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0 !important; border-bottom: 1px solid var(--c-border); }
}

/* ============================================================
   Featured quote / mission
   ============================================================ */
.mission {
  padding: clamp(96px, 12vw, 192px) 0;
  text-align: left;
  background: var(--c-bg);
}
.mission-text {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.6px;
  color: var(--c-text);
  margin: 0;
  text-wrap: balance;
  max-width: 22ch;
}

/* ============================================================
   Testimonial cards
   ============================================================ */
.quote-card {
  padding: var(--s-7);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  background: var(--c-surface);
}
.quote-text {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--c-text);
  margin: 0 0 var(--s-5);
}
.quote-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-elevated);
  object-fit: cover;
  flex-shrink: 0;
}
.quote-name { font-size: 14px; font-weight: 500; color: var(--c-text); }
.quote-role { font-size: 12px; color: var(--c-text-3); }

/* ============================================================
   Ecosystem module cards
   ============================================================ */
.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-5);
  overflow: hidden;
  background: var(--c-border);
}
.mod-card {
  background: var(--c-bg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 320px;
  transition: background 220ms ease;
}
.mod-card:hover { background: var(--c-surface-2); }
.mod-card-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--c-text-3);
  text-transform: uppercase;
}
.mod-card-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--c-text);
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
.mod-card-body { color: var(--c-text-3); font-size: 15px; line-height: 1.50; max-width: 48ch; margin: 0; }
.mod-card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.mod-card-link::after {
  content: '→'; transition: transform 220ms ease;
}
.mod-card:hover .mod-card-link::after { transform: translateX(4px); }
@media (max-width: 760px) { .mod-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ — editorial accordion
   ============================================================ */
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.25;
  text-align: left;
  color: var(--c-text);
  cursor: pointer;
  transition: color 200ms ease;
}
.faq-q:hover { color: var(--c-text-2); }
.faq-q .faq-sign {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--c-text-3);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item.open .faq-sign { transform: rotate(45deg); color: var(--c-text); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 var(--s-6);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text-3);
  max-width: 68ch;
}

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-2);
  max-width: 560px;
}
@media (max-width: 560px) { .newsletter-form { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: var(--s-10) 0 var(--s-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-9);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin: 0 0 var(--s-5);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { color: var(--c-text-2); font-size: 14px; transition: color 180ms ease; }
.footer-col a:hover { color: var(--c-text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-3);
  flex-wrap: wrap;
}
.footer-lang {
  display: flex;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--c-text-3);
}
.footer-lang button { font-size: 12px; color: var(--c-text-3); padding: 2px 6px; border-radius: 3px; }
.footer-lang button:hover { color: var(--c-text); }
.footer-lang button.on { color: var(--c-text); background: var(--c-elevated); }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

/* ============================================================
   Utility
   ============================================================ */
.u-center { text-align: center; }
.u-flex { display: flex; }
.u-grid { display: grid; }
.u-gap-2 { gap: var(--s-2); }
.u-gap-3 { gap: var(--s-3); }
.u-gap-4 { gap: var(--s-4); }
.u-gap-6 { gap: var(--s-6); }
.u-items-center { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-wrap { flex-wrap: wrap; }
.u-mt-2 { margin-top: var(--s-2); }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-8 { margin-top: var(--s-8); }
.u-mb-4 { margin-bottom: var(--s-4); }
.u-mb-6 { margin-bottom: var(--s-6); }
.u-mb-8 { margin-bottom: var(--s-8); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--c-text);
  color: var(--c-bg);
  padding: var(--s-3) var(--s-5);
  font-weight: 500;
  z-index: 9999;
  border-radius: var(--r-2);
}
.skip-link:focus { left: var(--s-5); top: var(--s-5); }

/* Reveal animations handled entirely by animations.js (GSAP gsap.from) — no CSS overrides */

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

/* Print */
@media print {
  .nav, .footer, .hero-media { display: none; }
}

/* ============================================================
   Overrides for shared.js injected elements
   ============================================================ */
/* Hide legacy theme toggle (Runway is single-aesthetic) */
#theme-toggle { display: none !important; }

/* Re-style back-to-top button to match Runway */
#back-to-top {
  background: rgba(0,0,0,0.72) !important;
  border: 1px solid var(--c-border-2) !important;
  color: var(--c-text-2) !important;
  border-radius: var(--r-3) !important;
  width: 40px !important;
  height: 40px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#back-to-top:hover {
  color: var(--c-text) !important;
  background: var(--c-elevated) !important;
}

/* Re-style cookie banner to match Runway */
#cookie-banner {
  background: var(--c-surface-2) !important;
  border: 1px solid var(--c-border-2) !important;
  border-radius: var(--r-5) !important;
  color: var(--c-text-2) !important;
}
#cookie-banner a { color: var(--c-text) !important; }
#cookie-banner button {
  border-radius: var(--r-2) !important;
  font-family: var(--f-display) !important;
  letter-spacing: -0.1px !important;
}
#cookie-banner button[data-action="accept"] {
  background: var(--c-text) !important;
  color: var(--c-bg) !important;
  border: 0 !important;
}
#cookie-banner button[data-action="decline"],
#cookie-banner button.decline {
  background: transparent !important;
  color: var(--c-text-2) !important;
  border: 1px solid var(--c-border-2) !important;
}

/* ============================================================
   No-image fallback — for listings without user-uploaded photos
   ============================================================ */
.prod-noimg {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: var(--s-5);
  background: linear-gradient(155deg, var(--c-surface-2) 0%, var(--c-bg-2) 50%, var(--c-surface) 100%);
  color: var(--c-text);
  overflow: hidden;
}
.prod-noimg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 40%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}
.prod-noimg__cat {
  position: relative;
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--c-text-3);
}
.prod-noimg__title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--c-text);
  text-wrap: balance;
  max-width: 14ch;
}
.prod-grid.is-list .prod-noimg__title { font-size: 20px; }

.cart-item-img--none {
  background: linear-gradient(155deg, var(--c-surface-2), var(--c-bg-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--c-text-3);
}
.qv-img--none {
  background: linear-gradient(155deg, var(--c-surface-2) 0%, var(--c-bg-2) 50%, var(--c-surface) 100%) !important;
  display: flex; align-items: flex-end;
  padding: var(--s-6);
}
.qv-img--none .qv-img-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.9px;
  line-height: 1.05;
  color: var(--c-text);
  text-wrap: balance;
  max-width: 18ch;
}

.qv-img-title { display: none; }
.qv-img--none { display: flex !important; align-items: flex-end; padding: var(--s-6); }
.qv-img--none .qv-img-title { display: block; }

/* ============================================================
   Product cards — shared across home, marketplace, categories
   ============================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-7) var(--s-5);
}
.prod-grid.is-list { grid-template-columns: 1fr; gap: var(--s-4); }
.prod-grid.is-list .prod-card {
  display: grid; grid-template-columns: 240px 1fr; gap: var(--s-5); align-items: start;
  padding: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-4);
}
.prod-grid.is-list .prod-img { aspect-ratio: 4/3; }
.prod-grid.is-list .prod-meta { padding: 0; }

.prod-card { display: block; cursor: pointer; text-decoration: none; color: inherit; transition: transform 400ms cubic-bezier(0.2,0.8,0.2,1); }
.prod-card:hover { transform: translateY(-4px); }
.prod-card:hover .prod-img img { transform: scale(1.04); }
.prod-img {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: var(--r-4); background: var(--c-surface-2);
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2,0.8,0.2,1); }
.prod-meta { padding: var(--s-4) 0 var(--s-2); }
.prod-title {
  font-family: var(--f-display); font-size: 16px; font-weight: 500;
  letter-spacing: -0.2px; line-height: 1.25; color: var(--c-text); margin: 0 0 6px;
}
.prod-seller { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--c-text-3); }
.prod-seller-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-elevated); color: var(--c-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 500; letter-spacing: 0.5px;
}
.prod-footer { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.prod-price { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; color: var(--c-text); }
.prod-price span { color: var(--c-text-3); font-weight: 400; font-size: 12px; margin-left: 2px; }
.prod-rating { font-size: 12px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }

.prod-actions { position: absolute; top: var(--s-3); right: var(--s-3); display: flex; gap: 6px; z-index: 2; }
.prod-actions button {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.prod-actions button:hover { background: rgba(0,0,0,0.75); transform: scale(1.06); }
.prod-actions button[aria-pressed="true"] { background: #fff; color: #000; }
.prod-badge {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2;
  padding: 4px 10px; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-2); color: #fff;
  font-size: 10px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase;
}

.mkt-empty { padding: var(--s-10) var(--s-5); text-align: center; border: 1px dashed var(--c-border-2); border-radius: var(--r-4); }
.mkt-empty h3 { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.4px; color: var(--c-text); margin: 0 0 var(--s-3); }
.mkt-empty p { color: var(--c-text-3); margin: 0 0 var(--s-5); }
