/* whitelabel.dev / the cellar — websites page */

.cellar-page main {
  max-width: none;
  padding: 0;
}

/* ---------- hero / ambient room (atmospheric on purpose) ---------- */
.cellar-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 11vw, 7rem) var(--pad-x) clamp(4.5rem, 10vw, 7rem);
  isolation: isolate;
}
.cellar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(0,0,0,0.04), transparent 55%),
    radial-gradient(ellipse at 82% 72%, rgba(0,0,0,0.035), transparent 60%);
  z-index: -2;
}
.cellar-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: var(--ink);
}
.cellar-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,0.18);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0) 60%),
    radial-gradient(circle at 65% 70%, rgba(10,10,10,0.04), rgba(10,10,10,0) 70%);
  backdrop-filter: blur(0.5px);
  animation: orb-float 22s ease-in-out infinite;
  will-change: transform;
}
.orb.o1 { width: 280px; height: 280px; top: -60px; left: -80px; animation-duration: 26s; }
.orb.o2 { width: 180px; height: 180px; top: 20%; right: 8%; animation-duration: 30s; animation-delay: -6s; }
.orb.o3 { width: 120px; height: 120px; bottom: 12%; left: 18%; animation-duration: 24s; animation-delay: -10s; }
.orb.o4 { width: 220px; height: 220px; bottom: -60px; right: -40px; animation-duration: 34s; animation-delay: -14s; }

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%      { transform: translate3d(18px, -22px, 0) rotate(2deg); }
  50%      { transform: translate3d(-14px, 14px, 0) rotate(-1.5deg); }
  75%      { transform: translate3d(22px, 18px, 0) rotate(1deg); }
}

.cellar-hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}
.cellar-tagline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  font-weight: 300;
}
.cellar-hero .sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 2.75rem;
}
.cellar-hero .hero-actions { margin-bottom: 4rem; }
.cellar-hero .meta {
  max-width: 28rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- compact filter bar ---------- */
.cellar-filter {
  position: sticky;
  top: var(--nav-h, 60px);
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cellar-filter-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--pad-x);
  position: relative;
}
@media (max-width: 640px) {
  .cellar-filter-inner { padding: 0.625rem var(--pad-x); }
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-bar-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: lowercase;
  padding-right: 0.5rem;
  border-right: 1px solid var(--line-soft);
  margin-right: 0.25rem;
}

.filter-search-input {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 0.4375rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  width: 8rem;
  letter-spacing: -0.005em;
  transition: border-color 0.15s ease;
}
.filter-search-input::placeholder { color: var(--muted); }
.filter-search-input:hover { border-color: var(--ink); }
.filter-search-input:focus {
  outline: none;
  border-color: var(--ink);
}
@media (max-width: 760px) {
  .filter-search-input { width: 100%; }
}

.filter-chip {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 0.4375rem 0.625rem 0.4375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--bg);
  color: var(--ink);
}
.chip-label {
  color: var(--muted);
  letter-spacing: 0.04em;
}
.filter-chip[aria-expanded="true"] .chip-label { color: rgba(255,255,255,0.65); }
.filter-chip.is-active .chip-label { color: var(--muted); }
.chip-value {
  color: inherit;
  font-weight: 500;
}
.chip-caret {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.1rem;
  margin-bottom: 2px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.filter-chip[aria-expanded="true"] .chip-caret {
  transform: rotate(-135deg);
  margin-bottom: -2px;
  opacity: 1;
}

.filter-spacer { flex: 1; min-width: 0; }

.filter-clear {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.4rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}
.filter-clear:hover { color: var(--ink); }

.filter-cta {
  appearance: none;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 0.4375rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}
.filter-cta:hover {
  background: var(--bg);
  color: var(--ink);
}

/* popovers */
.filter-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--pad-x);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 0.5rem;
  min-width: 14rem;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
  animation: pop-fade 0.16s ease;
}
@keyframes pop-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.filter-pop[hidden] { display: none; }

.pop-hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 0.25rem 0.625rem 0.5rem;
  border-bottom: 1px dashed var(--line-soft);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.pop-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pop-options[hidden] { display: none; }
.pop-options button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  letter-spacing: -0.005em;
}
.pop-options button:hover {
  background: #fafafa;
  border-color: var(--line-soft);
}
.pop-options button.is-selected {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pop-options button.is-selected .opt-sub,
.pop-options button.is-selected .opt-aux { color: rgba(255,255,255,0.7); }

.opt-name {
  font-size: 0.75rem;
  letter-spacing: -0.005em;
}
.opt-sub,
.opt-aux {
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.pop-options-tier button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 1rem;
}
.pop-options-tier .opt-sub {
  font-size: 0.6875rem;
}

/* type popover with tabs */
.filter-pop-type {
  min-width: 28rem;
}

/* location chip — fixed compact width across all states so the filter
   bar doesn't reflow when the user picks a country */
.filter-chip-location {
  padding: 0.4375rem 0.375rem;
  gap: 0.2rem;
  width: 1.875rem;
  justify-content: center;
  box-sizing: border-box;
}
.filter-chip-location .chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  width: 16px;
  height: 16px;
}
.filter-chip-location .chip-value {
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
}
.filter-chip-location .chip-value[hidden] { display: none; }
/* never show the caret on this chip — the chip itself opens the popover */
.filter-chip-location .chip-caret { display: none; }
/* emoji-only form (globe for global, flag for a specific country) —
   replace the pin with the emoji */
.filter-chip-location.has-emoji .chip-icon { display: none; }
.filter-chip-location.has-emoji .chip-value {
  font-size: 1rem;
  line-height: 1;
  width: 1.25rem;
  height: 16px;
}
/* country list rows — flag on left, name on right, single row */
.loc-list button {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
  text-align: left;
  white-space: nowrap;
}
.loc-flag {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 1.25rem;
}

/* location popover */
.filter-pop-location { min-width: 18rem; }
.filter-pop-location .pop-options[data-loc-step="root"] {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.loc-mode-btn {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: background 0.12s ease;
  border-radius: 2px;
}
.loc-mode-btn:hover { background: var(--bg-soft, #f5f5f4); }
.loc-mode-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}
.loc-mode-btn.is-active:hover { background: var(--ink); }
.loc-mode-title { font-weight: 500; letter-spacing: -0.005em; }
.loc-mode-sub { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.04em; }
.loc-mode-btn.is-active .loc-mode-sub { color: rgba(255,255,255,0.65); }

.loc-back {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.375rem;
  align-self: flex-start;
}
.loc-back:hover { color: var(--ink); }

.loc-search {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  width: 100%;
  margin-bottom: 0.375rem;
  letter-spacing: -0.005em;
}
.loc-search::placeholder { color: var(--muted); }
.loc-search:focus { outline: none; border-bottom-color: var(--ink); }

.loc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 16rem;
  overflow-y: auto;
}
.loc-list button {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  padding: 0.4375rem 0.625rem;
  cursor: pointer;
  color: var(--ink);
  letter-spacing: -0.005em;
  border-radius: 2px;
}
.loc-list button:hover { background: var(--bg-soft, #f5f5f4); }
.loc-empty {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 0.5rem 0.625rem;
  letter-spacing: 0.04em;
}

.loc-form { display: flex; flex-direction: column; gap: 0.5rem; }
.loc-field { display: flex; flex-direction: column; gap: 0.25rem; }
.loc-field-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.125rem;
}
.loc-select, .loc-input {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 0.4375rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  border-radius: 2px;
}
.loc-select:focus, .loc-input:focus { outline: none; border-color: var(--ink); }
.loc-apply {
  appearance: none;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  letter-spacing: -0.005em;
  margin-top: 0.125rem;
  border-radius: 2px;
}
.loc-apply:hover { background: var(--ink-soft, #2a2a2a); }

/* niche popover (sector | industry tabs) */
.filter-pop-niche {
  min-width: 22rem;
}
.filter-pop-niche .pop-options { max-height: 22rem; overflow-y: auto; }
.industry-search {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  width: 100%;
  margin-bottom: 0.375rem;
  letter-spacing: -0.005em;
}
.industry-search::placeholder { color: var(--muted); }
.industry-search:focus { outline: none; border-bottom-color: var(--ink); }
.industry-results {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 18rem;
  overflow-y: auto;
}
.industry-empty {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 0.625rem 0.75rem;
  border: 1px dashed var(--line-soft);
  margin: 0.25rem 0;
}
.industry-empty code {
  background: #fafafa;
  padding: 0 0.25rem;
  border: 1px solid var(--line-soft);
  font-size: 0.625rem;
}
.pop-tabs {
  display: flex;
  border: 1px solid var(--line-soft);
  margin-bottom: 0.5rem;
  background: #fafafa;
}
.pop-tabs .type-tab {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-soft);
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.pop-tabs .type-tab:last-child { border-right: 0; }
.pop-tabs .type-tab:hover { color: var(--ink); }
.pop-tabs .type-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.pop-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}
.pop-options-grid[hidden] { display: none; }

@media (max-width: 760px) {
  .filter-bar-title {
    border-right: 0;
    padding-right: 0;
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .filter-spacer { display: none; }
  .filter-pop {
    left: var(--pad-x) !important;
    right: var(--pad-x);
    min-width: 0;
  }
  .filter-pop-type { min-width: 0; }
  .pop-options-grid { grid-template-columns: 1fr; }
}

/* ---------- results / catalog grid ---------- */
.cellar-results {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
}
.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.result-count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.result-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 32rem;
}

/* result blocks — each lens (sectors, industries, sub-industries) is its own block */
.results-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.results-block:first-of-type { margin-top: 0; }
.results-block[hidden] { display: none; }
.results-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.875rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line-soft);
}
.results-block-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  font-weight: 300;
  margin: 0;
}
.results-block-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cellar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
/* when filters narrow to a single card, span both columns and center it
   so it doesn't appear awkwardly stuck in the left column */
.cellar-grid > :only-child {
  grid-column: 1 / -1;
  max-width: 36rem;
  justify-self: center;
  width: 100%;
}
.cellar-grid[hidden] { display: none; }
@media (max-width: 760px) {
  .cellar-grid { grid-template-columns: 1fr; }
}

.flight-card {
  border: 1px solid var(--line-soft);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
  position: relative;
}
.flight-card:hover { border-color: var(--ink); }

.flight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border-bottom: 1px dashed var(--line-soft);
}
/* card title is a button — click drills into all websites for this category */
.flight-head-link {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 1.5rem 1.5rem 1.25rem;
  font: inherit;
  color: inherit;
  display: block;
  transition: background 0.15s ease;
}
.flight-head-link:hover { background: #fafafa; }
.flight-head-link:focus-visible { outline: 1px solid var(--ink); outline-offset: -2px; }
.flight-head-link:hover .flight-title { text-decoration: underline; text-underline-offset: 3px; }
.flight-head-cta {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.15s ease;
}
.flight-head-link:hover .flight-head-cta { color: var(--ink); }
.flight-id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}
.flight-title {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.flight-notes {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 26rem;
}
.flight-meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
}
.flight-meta strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* tier thumbnails — column count adapts to the visible brand count */
.flight-flight {
  display: grid;
  grid-template-columns: repeat(var(--flight-n, 3), minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
/* keep individual thumbs from growing huge when only one is visible.
   width:100% overrides the implicit max-width that aspect-ratio + max-height
   would otherwise create — without it, a single thumb shrinks to ~373px and
   leaves the line-soft container bg showing on its right. */
.flight-flight .thumb { max-height: 280px; width: 100%; }
.thumb {
  position: relative;
  background: var(--bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s 0.4s;
  display: block;
}
.thumb:hover {
  transform: scale(1.02);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s;
}
.thumb-tier {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--line-soft);
  z-index: 3;
}
.thumb-price {
  position: absolute;
  bottom: 0.625rem;
  left: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--line-soft);
  z-index: 3;
}
.thumb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.thumb-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fafafa;
  z-index: 1;
}
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  z-index: 2;
}
.thumb-fallback img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.thumb-fallback-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.7;
  text-align: center;
  padding: 0 0.5rem;
}
/* when the favicon img is hidden (default-globe or 404), bump the label */
.thumb-fallback img[style*="none"] + .thumb-fallback-label,
.thumb-fallback:has(img[style*="none"]) .thumb-fallback-label {
  font-size: 0.95rem;
  opacity: 0.85;
}
.thumb.is-fallback .thumb-screenshot { display: none; }
.thumb.is-fallback .thumb-fallback { display: flex; }
.thumb-logo {
  width: 56px;
  height: 56px;
  background: var(--bg);
  padding: 8px;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  margin-bottom: 0.25rem;
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
}
.thumb:hover .thumb-overlay { opacity: 1; }
.thumb-overlay-line {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}
.thumb-overlay-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--bg);
  padding-bottom: 0.125rem;
}

.thumb.is-emphasized {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}
.thumb.is-emphasized .thumb-tier {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.flight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.flight-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.flight-tags span {
  border: 1px solid var(--line-soft);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.04em;
}
.flight-decant {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  white-space: nowrap;
}
.flight-decant:hover { text-decoration: underline; }

/* ---------- drill-in view (clicked into a card) ---------- */
.drill-in {
  margin-top: 0;
  animation: drillIn-fade 0.25s ease;
}
.drill-in[hidden] { display: none; }
@keyframes drillIn-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.drill-in-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}
.drill-in-back {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: 0.4375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: all 0.15s ease;
}
.drill-in-back:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.drill-in-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0.625rem;
}
.drill-in-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 300;
  line-height: 1.05;
  margin: 0 0 0.625rem;
}
.drill-in-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.drill-in-tier {
  margin-top: 2.5rem;
}
.drill-in-tier:first-of-type { margin-top: 0; }
.drill-in-tier[hidden] { display: none; }
.drill-in-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.625rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line-soft);
}
.drill-in-tier-head h3 {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin: 0;
}
.drill-in-tier-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.drill-in-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  list-style: none;
  padding: 0;
  margin: 0;
}
.drill-in-grid li { background: var(--bg); margin: 0; }
@media (max-width: 640px) {
  .drill-in-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* empty + closing */
.cellar-empty {
  border: 1px dashed var(--line-soft);
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.cellar-empty[hidden] { display: none; }
.cellar-empty .empty-note {
  font-size: 0.75rem;
  color: var(--muted);
}
.cellar-empty a { border-bottom: 1px solid var(--ink); }

.cellar-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(4rem, 8vw, 6rem);
}
.foot-card {
  border: 1px solid var(--ink);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-line {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--ink);
}

/* ---------- tier drill-down modal ---------- */
.tier-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.tier-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tier-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tier-modal-card {
  position: relative;
  width: min(64rem, 100%);
  max-height: calc(100vh - 2.5rem);
  background: var(--bg);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tier-modal[aria-hidden="false"] .tier-modal-card { transform: translateY(0); }

.tier-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.tier-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.tier-modal-head h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.025em;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.tier-modal-notes {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 36rem;
}
.tier-modal-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-soft);
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.tier-modal-close:hover { border-color: var(--ink); color: var(--ink); }

.tier-modal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.tier-modal-filter .sub-pill {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tier-modal-filter .sub-pill:hover { border-color: var(--ink); color: var(--ink); }
.tier-modal-filter .sub-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tier-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tier-modal-grid li { background: var(--bg); margin: 0; }
.tier-modal-grid .tm-empty {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .tier-modal-grid { grid-template-columns: 1fr; }
  .tier-modal-head { padding: 1.25rem 1.25rem 1rem; }
  .tier-modal-filter { padding: 0.75rem 1.25rem; }
}

/* button.thumb reset (cards now use buttons that open the modal) */
button.thumb {
  appearance: none;
  border: 0;
  font: inherit;
  padding: 0;
  text-align: inherit;
  width: 100%;
  display: block;
}
.thumb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  position: relative;
}
.thumb-empty-line { padding: 0.5rem; }
.thumb-overlay-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

/* ---------- guided picker overlay ---------- */
.sommelier {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.sommelier[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sommelier-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sommelier-card {
  position: relative;
  width: min(40rem, 100%);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}
.sommelier[aria-hidden="false"] .sommelier-card { transform: translateY(0); }

.som-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.som-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.som-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-soft);
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}
.som-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.som-progress {
  height: 2px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}
.som-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  width: 20%;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.som-step-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: -0.5rem;
}
.som-step-count .muted { opacity: 0.6; }

.som-steps { position: relative; }
.som-step {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: som-fade 0.3s ease;
}
.som-step.is-active { display: flex; }
@keyframes som-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.som-step h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.som-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

.som-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.som-options button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: 0.875rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}
.som-options button > span:first-child {
  font-size: 0.9375rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.som-options .opt-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.som-options button:hover {
  border-color: var(--ink);
  background: #fafafa;
}
.som-options button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
}
.som-options button.is-selected > span:first-child,
.som-options button.is-selected .opt-note {
  color: var(--bg);
}

.som-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}
.som-foot .btn {
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
}
.som-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* current menu item highlight */
.menu a.m-current {
  background: #fafafa;
  border-color: var(--line-soft);
}
.menu a.m-current .m-title {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  .thumb { transition: none !important; }
  .filter-pop { animation: none !important; }
}
