/* Rattan Sedia — Reference. Brand: Rattan Red #E81E27, Ink #050505. Type: Fraunces + Inter. */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --ink: #0b0a09;
  --ink-2: #171513;
  --muted: #6f6860;
  --muted-light: #a39b91;
  --line: rgba(11, 10, 9, .14);
  --line-light: rgba(244, 240, 232, .14);
  --red: #e81e27;
  --red-deep: #b8141c;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: calc(var(--max) + 160px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ── Type helpers ─────────────────────────────────────────────── */

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--light { color: #fff; }
.kicker--light::before { background: var(--red); }

.section { padding: clamp(80px, 11vw, 160px) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title {
  margin-top: 20px;
  font: 300 clamp(40px, 5.6vw, 80px)/1 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em;
}
.section__title em { color: var(--muted); font-weight: 300; }
.section__title--sm { margin-top: 0; font-size: clamp(30px, 3.4vw, 46px); }
.section__lede { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--small { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--red); }

/* ── Header ───────────────────────────────────────────────────── */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.home .site-header:not(.is-solid) {
  background: transparent; color: #fff; border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header__in { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand svg { height: 30px; width: auto; }
.brand__tag {
  padding-left: 16px; border-left: 1px solid currentColor;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .75;
}
.site-nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; font-weight: 500; }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: heroIn 2.4s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, .72) 0%, rgba(8, 7, 6, .35) 45%, rgba(8, 7, 6, 0) 75%),
    linear-gradient(0deg, rgba(8, 7, 6, .7) 0%, rgba(8, 7, 6, 0) 45%),
    linear-gradient(180deg, rgba(8, 7, 6, .45) 0%, rgba(8, 7, 6, 0) 22%);
}
@keyframes heroIn { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
.hero__in { padding-bottom: clamp(56px, 9vh, 112px); padding-top: calc(var(--header) + 48px); }
.hero__title {
  margin-top: 28px;
  font: 300 clamp(64px, 11.5vw, 184px)/.88 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.04em;
}
.hero__title em { font-weight: 300; color: #fff; position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: .04em; right: .12em; bottom: .02em; height: .06em;
  background: var(--red); transform-origin: left; animation: rule 1.2s .6s var(--ease) both;
}
@keyframes rule { from { transform: scaleX(0); } }
.hero__lede { margin-top: 32px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero__actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__in > * { animation: up 1s var(--ease) both; }
.hero__in > :nth-child(2) { animation-delay: .1s; }
.hero__in > :nth-child(3) { animation-delay: .2s; }
.hero__in > :nth-child(4) { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }

.hero__caption {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 112px);
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: end;
  padding: 18px 22px; min-width: 260px;
  background: rgba(11, 10, 9, .35); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 14px; font-size: 14px;
  transition: background .3s var(--ease);
}
.hero__caption span:first-child { grid-column: 1; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.hero__caption strong { grid-column: 1; font: 400 20px/1.25 var(--serif); margin-top: 4px; }
.hero__caption span:last-child { grid-column: 2; grid-row: 1 / 3; font-size: 20px; }
.hero__caption:hover { background: rgba(11, 10, 9, .6); }

/* ── Stats ────────────────────────────────────────────────────── */

.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(36px, 5vw, 64px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n {
  display: block;
  font: 300 clamp(48px, 6.4vw, 104px)/.9 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.04em; font-feature-settings: "lnum", "tnum";
}
.stat:first-child .stat__n { color: var(--red); }
.stat__l { display: block; margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ── Featured mosaic ──────────────────────────────────────────── */

.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(200px, 23vw, 340px);
  grid-template-areas:
    "a a a a a a a a b b b b"
    "c c c c d d d d b b b b"
    "e e e e e e e f f f f f";
}
.mosaic__item { position: relative; overflow: hidden; border-radius: 6px; background: var(--paper-2); color: #fff; }
.mosaic__item--1 { grid-area: a; } .mosaic__item--2 { grid-area: b; } .mosaic__item--3 { grid-area: c; }
.mosaic__item--4 { grid-area: d; } .mosaic__item--5 { grid-area: e; } .mosaic__item--6 { grid-area: f; }
.mosaic__item figure, .mosaic__item img { width: 100%; height: 100%; }
.mosaic__item img { object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 7, 6, .72) 0%, rgba(8, 7, 6, 0) 50%);
  transition: opacity .5s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.045); }
.mosaic__cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 2px; }
.mosaic__meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.mosaic__name { font: 400 clamp(22px, 2.2vw, 32px)/1.1 var(--serif); letter-spacing: -.01em; }
.mosaic__city { font: italic 300 17px/1.3 var(--serif); opacity: .8; }

/* ── Countries ────────────────────────────────────────────────── */

.countries { background: var(--ink); color: var(--paper); }
.countries .section__title em, .countries .section__lede { color: var(--muted-light); }
.countries__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.section__head--sticky { position: sticky; top: calc(var(--header) + 40px); margin-bottom: 0; }
.countries__preview {
  margin-top: 40px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--ink-2);
}
.countries__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .8s var(--ease); }
.countries__preview.is-swapping img { opacity: 0; transform: scale(1.03); }

.country-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); counter-reset: c; }
.country-list a {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
  transition: color .3s var(--ease), padding .4s var(--ease);
}
.country-list__i { font: 500 12px/1 var(--sans); letter-spacing: .1em; color: var(--muted-light); transition: color .3s; }
.country-list__name { font: 300 clamp(26px, 3.2vw, 46px)/1.1 var(--serif); letter-spacing: -.02em; }
.country-list__n { font: 400 15px/1 var(--sans); font-feature-settings: "tnum"; color: var(--muted-light); }
.country-list a:hover { padding-left: 14px; }
.country-list a:hover .country-list__i, .country-list a:hover .country-list__n { color: var(--red); }
.country-list a:hover .country-list__name { font-style: italic; }

/* ── Archive ──────────────────────────────────────────────────── */

.archive__lede { max-width: 34ch; font: 300 clamp(17px, 1.5vw, 20px)/1.35 var(--serif); color: var(--muted); }

.board { position: relative; z-index: 25; margin-bottom: clamp(28px, 3vw, 40px); }
.board__body { display: grid; gap: 24px; }
.board__head, .board__foot { display: none; }
.board__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.types { display: grid; grid-template-columns: minmax(0, 87fr) minmax(0, 32fr); gap: 20px clamp(20px, 2.4vw, 36px); }
.types__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 12px; }
.types__title, .venues__title { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.types__grid { display: grid; gap: 10px; }
.types__grid--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.types__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Picture tiles: products sit on the same paper tone as the tile. */
.tile, .mtile {
  position: relative; display: grid; align-content: start;
  background: var(--paper-2); border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .25s, opacity .25s;
}
.tile input, .mtile input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.tile:hover, .mtile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(11, 10, 9, .45); }
.tile:has(input:checked), .mtile:has(input:checked) { outline: 2px solid var(--ink); outline-offset: -2px; }
.tile:has(input:focus-visible), .mtile:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.tile__img, .mtile__img { display: block; overflow: hidden; }
.tile__img { aspect-ratio: 1; }
.mtile__img { aspect-ratio: 4 / 3; }
.tile__img img, .mtile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img, .mtile:hover img { transform: scale(1.05); }
.tile__name, .mtile__name { padding: 10px 10px 0; font-size: 13px; font-weight: 500; line-height: 1.25; }
.tile__n, .mtile__n { padding: 3px 10px 10px; font-size: 12px; color: var(--muted); font-feature-settings: "tnum"; }
.tick {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease); pointer-events: none;
}
input:checked ~ .tick { opacity: 1; transform: none; }
.is-empty { opacity: .36; cursor: not-allowed; }
.tile.is-empty:hover, .mtile.is-empty:hover { transform: none; box-shadow: none; }
.is-empty:hover img { transform: none; }

.tray { display: grid; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.tray__line { animation: fade .45s var(--ease) both; }
.tray__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tray__title { font: 400 20px/1.2 var(--serif); letter-spacing: -.01em; }
.tray__title em { font-weight: 300; color: var(--muted); }
.tray__title small { margin-left: 4px; font: 400 12px var(--sans); color: var(--muted); }
.tray__more { padding: 0; border: 0; background: none; font: 500 13px var(--sans); color: var(--ink); border-bottom: 1px solid; cursor: pointer; white-space: nowrap; }
.tray__more:hover { color: var(--red); }
.tray__grid { display: grid; gap: 10px; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.tray__line:not(.is-all) .mtile:nth-child(n+9):not(:has(input:checked)) { display: none; }
.mtile__mono { display: grid; place-items: center; height: 100%; font: 300 34px var(--serif); color: var(--muted); }

.search { position: relative; flex: 1 1 260px; min-width: 220px; }
.field { position: relative; display: block; }
.field input {
  height: 46px; padding: 0 16px;
  font: 400 15px var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field input:hover { border-color: rgba(11, 10, 9, .35); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232, 30, 39, .15); }
.field--search input { width: 100%; padding-left: 44px; }
.field--search input::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%236f6860' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m2 2 10 10M12 2 2 12'/%3E%3C/svg%3E") center no-repeat;
}
.field--search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.7; pointer-events: none; }

.suggest, .dd__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 28px 60px -28px rgba(11, 10, 9, .4);
}
.suggest { right: 0; min-width: 300px; animation: fade .2s var(--ease) both; }
.suggest__opt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  width: 100%; padding: 7px 10px 7px 7px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.suggest__opt:hover, .suggest__opt.is-cursor { background: var(--paper); }
.suggest__thumb { display: grid; place-items: center; grid-row: 1 / 3; width: 44px; height: 33px; border-radius: 5px; object-fit: cover; background: var(--paper-2); font: 600 11px/1 var(--sans); letter-spacing: .06em; color: var(--muted); }
.suggest__name { font-size: 14px; font-weight: 500; line-height: 1.25; }
.suggest__sub { grid-column: 2; font-size: 12px; line-height: 1.3; color: var(--muted); }
.suggest__opt small { grid-column: 3; grid-row: 1 / 3; font-size: 12px; color: var(--muted); font-feature-settings: "tnum"; }

.dd { position: relative; }
.dd summary {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 42px 0 16px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b0a09' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; white-space: nowrap; cursor: pointer; list-style: none;
  transition: border-color .2s;
}
.dd summary::-webkit-details-marker { display: none; }
.dd summary:hover, .dd[open] summary, .dd.has-value summary { border-color: var(--ink); }
.dd__value { font-weight: 600; }
.dd__value:empty { display: none; }
.dd__panel { width: 300px; max-height: min(440px, 60vh); overflow-y: auto; animation: fade .2s var(--ease) both; }
.dd__opt {
  display: grid; grid-template-columns: 16px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.dd__opt:hover { background: var(--paper); }
.dd__opt.is-empty:hover { background: none; }
.dd__opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); cursor: inherit; }
.dd__opt small { font-size: 12px; color: var(--muted); font-feature-settings: "tnum"; }

.venues { display: flex; align-items: center; gap: 10px; }
.venues__title { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { position: relative; flex: none; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.chip small { font-size: 12px; font-weight: 400; color: var(--muted); font-feature-settings: "tnum"; transition: color .2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span small { color: var(--muted-light); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.chip.is-empty:hover span { border-color: var(--line); }
.chip.is-empty input { cursor: not-allowed; }
.chip--small span { height: 34px; padding: 0 13px; font-size: 13px; }

.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 10, 9, .3); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--red); outline-offset: 2px; }

.results__bar {
  position: sticky; top: var(--header); z-index: 20;
  display: flex; align-items: center; gap: 14px; min-height: 62px;
  margin: 0 calc(var(--gutter) * -1) 28px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.results__bar.is-stuck { border-top-color: transparent; border-bottom-color: var(--line); }
.results__filters {
  display: none; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  font: 500 14px var(--sans); cursor: pointer;
}
.results__filters svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.results__bar.is-stuck .results__filters { display: inline-flex; animation: fade .3s var(--ease) both; }
.results__badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-feature-settings: "tnum"; }
.results__count { flex: none; font: 400 clamp(20px, 1.8vw, 24px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; font-feature-settings: "tnum"; }
.active { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.active::-webkit-scrollbar { display: none; }
.achip {
  display: inline-flex; flex: none; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 13px;
  border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 500; white-space: nowrap;
  animation: fade .25s var(--ease) both; transition: background .2s, color .2s;
}
.achip span { font-size: 16px; line-height: 1; color: var(--muted); transition: color .2s; }
.achip:hover { background: var(--ink); color: var(--paper); }
.achip:hover span { color: var(--paper); }
.results__reset { flex: none; font-size: 13px; color: var(--muted); border-bottom: 1px solid; white-space: nowrap; }
.results__reset:hover { color: var(--red); }
.sort { position: relative; display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; }
.sort__label { color: var(--muted); }
.sort select {
  height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' fill='none' stroke='%230b0a09' stroke-width='1.5'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: 500 13px var(--sans); color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.sort select:hover { border-color: var(--ink); }

.scrim { display: none; }

.empty { display: grid; justify-items: start; gap: 16px; padding: clamp(32px, 5vw, 64px) 0; }
.empty__title { font: 300 clamp(26px, 3vw, 38px)/1.15 var(--serif); letter-spacing: -.01em; }
.empty__hint { font-size: 14px; color: var(--muted); }
.empty__list { display: grid; width: min(100%, 460px); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.empty__list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-weight: 500; transition: color .2s; }
.empty__list a:hover { color: var(--red); }
.empty__list span { font-weight: 400; color: var(--muted); white-space: nowrap; }
.empty__list i { font-style: normal; }
.empty__reset { font-size: 14px; border-bottom: 1px solid; }
.empty__reset:hover { color: var(--red); }

.grid {
  display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transition: opacity .25s var(--ease);
}
.grid.is-loading { opacity: .35; }

.card { animation: fade .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.card__link { display: block; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__count {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(11, 10, 9, .55); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .04em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__body { padding-top: 16px; }
.card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.cc {
  display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 4px;
  font: 600 10px/1 var(--sans); letter-spacing: .08em; color: var(--ink);
}
.card__title { margin-top: 10px; font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; transition: color .25s; }
.card__link:hover .card__title { color: var(--red); }
.card__city { font: italic 300 17px/1.3 var(--serif); color: var(--muted); }
.card__delivered { margin-top: 10px; font-size: 13px; color: var(--muted); }
.card__delivered--match { color: var(--red); font-weight: 500; }

.more { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }
.more [data-remaining] { color: var(--muted); font-feature-settings: "tnum"; }
.btn--outline:hover [data-remaining] { color: var(--muted-light); }

/* ── CTA + footer ─────────────────────────────────────────────── */

.cta { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: clamp(80px, 11vw, 150px) 0; }
.cta .kicker--light::before { background: #fff; }
.cta::after {
  content: ""; position: absolute; right: -6vw; bottom: -10vw; width: 46vw; aspect-ratio: 1;
  background: url("mark-red.svg") center / contain no-repeat;
  filter: brightness(0) invert(1); opacity: .08; pointer-events: none;
}
.cta__title {
  margin-top: 24px;
  font: 300 clamp(44px, 7.4vw, 120px)/.95 var(--serif);
  font-variation-settings: "opsz" 144; letter-spacing: -.035em;
}
.cta__title em { font-weight: 300; }
.cta__actions { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 15px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.brand--footer svg { height: 44px; color: #fff; }
.site-footer__claim { font: italic 300 22px/1.4 var(--serif); color: var(--muted-light); text-align: right; }
.site-footer__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding: 48px 0; color: rgba(244, 240, 232, .8); }
.site-footer__grid p + p { margin-top: 4px; }
.site-footer__grid a:hover { color: var(--red); }
.site-footer__label { margin-bottom: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; color: var(--muted-light); }

/* ── Reference detail ─────────────────────────────────────────── */

.ref { padding-top: calc(var(--header) + 32px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); }
.ref__head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 96px);
  align-items: end; padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
}
.ref__title {
  margin-top: 24px;
  font: 300 clamp(48px, 7.6vw, 124px)/.92 var(--serif);
  font-variation-settings: "opsz" 144; letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.ref__title em { display: block; margin-top: .1em; color: var(--muted); font-weight: 300; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 16px; }
.facts dd a { border-bottom: 1px solid var(--line); }
.facts dd a:hover { color: var(--red); border-color: currentColor; }

.ref__lead { overflow: hidden; border-radius: 8px; cursor: zoom-in; background: var(--paper-2); }
.ref__lead img { width: 100%; max-height: 86vh; object-fit: cover; }

.gallery { display: grid; gap: 14px; margin-top: 14px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--1 { grid-template-columns: minmax(0, 760px); }
.gallery__item { overflow: hidden; border-radius: 6px; cursor: zoom-in; background: var(--paper-2); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }

.models { margin-top: clamp(64px, 8vw, 112px); padding-top: 32px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.models__title { font: 300 clamp(28px, 3vw, 40px)/1.1 var(--serif); letter-spacing: -.02em; }
.models__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.models__list a {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: 12px; min-width: 150px;
  font: 400 22px/1.15 var(--serif);
  transition: border-color .25s, background .25s, color .25s;
}
.models__list a span { font: 500 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.models__list a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.models__list a:hover span { color: var(--red); }
.models__hint { grid-column: 2; font-size: 14px; color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(64px, 8vw, 112px); }
.pager__link { display: grid; gap: 4px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 12px; transition: background .3s, color .3s, border-color .3s; }
.pager__link span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager__link strong { font: 400 clamp(22px, 2.4vw, 32px)/1.15 var(--serif); }
.pager__link em { font: italic 300 17px var(--serif); color: var(--muted); }
.pager__link--next { text-align: right; }
.pager__link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager__link:hover span { color: var(--red); }

.related { padding: clamp(80px, 10vw, 140px) 0; }
.related .section__head { margin-bottom: 40px; }

.notfound { padding: calc(var(--header) + 15vh) 0 18vh; }
.notfound .section__lede { margin-bottom: 40px; }

/* ── Lightbox ─────────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  background: rgba(8, 7, 6, .94); color: #fff;
  animation: lbIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__figure { display: grid; justify-items: center; gap: 16px; padding: 64px 0; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; border-radius: 4px; }
.lightbox__figure figcaption { font-size: 13px; letter-spacing: .08em; color: var(--muted-light); }
.lightbox button {
  width: 52px; height: 52px; justify-self: center; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  font: 300 22px/1 var(--sans); cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { position: absolute; top: 20px; right: 20px; font-size: 28px !important; }

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1240px) {
  .types { grid-template-columns: minmax(0, 1fr); }
  .types__grid--3 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .venues { flex: 1 1 100%; }
}
@media (max-width: 1100px) {
  .tray__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Phones and small tablets: the whole board becomes a bottom sheet (only with JS to open it). */
@media (max-width: 900px) {
  .js .results__filters { display: inline-flex; animation: none; }
  .js .results__count { font-size: 17px; }
  .js .sort { min-width: 0; }
  .js .sort select { max-width: 112px; text-overflow: ellipsis; }
  .js .results__bar { flex-wrap: wrap; gap: 8px 12px; min-height: 60px; }
  .js .active { order: 5; flex: 1 1 100%; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .js .active:empty { display: none; }
  .js .results__reset, .sort__label { display: none; }

  .js .board {
    position: fixed; inset: auto 0 0; z-index: 70; display: flex; flex-direction: column;
    height: min(92dvh, 860px); margin: 0;
    background: var(--paper); border-radius: 18px 18px 0 0;
    transform: translateY(102%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .js .board.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .js .board__head {
    display: flex; flex: none; align-items: center; justify-content: space-between;
    padding: 16px var(--gutter) 12px; border-bottom: 1px solid var(--line);
  }
  .board__title { font: 400 22px/1 var(--serif); }
  .board__close { width: 36px; height: 36px; margin-right: -8px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
  .js .board__body { display: flex; flex: 1; flex-direction: column; gap: 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px var(--gutter) 28px; }
  .js .board__row { display: contents; }
  .js .search { order: -1; flex: none; min-width: 0; }
  .js .suggest { min-width: 0; }
  .js .types { gap: 20px; }
  .js .types__grid--8, .js .types__grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .js .tile__name { padding: 8px 8px 0; font-size: 12px; }
  .js .tile__n { padding: 2px 8px 8px; }
  .js .tick { top: 5px; right: 5px; width: 20px; height: 20px; }
  .js .types__head { margin-bottom: 8px; }
  .js .tray__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .js .tray__line:not(.is-all) .mtile:nth-child(n+9):not(:has(input:checked)) { display: grid; }
  .js .tray__line:not(.is-all) .mtile:nth-child(n+10):not(:has(input:checked)) { display: none; }
  .js .tile:hover, .js .mtile:hover { transform: none; box-shadow: none; }
  .js .dd { flex: none; }
  .js .dd summary { background-color: #fff; }
  .js .dd__panel { position: static; width: auto; max-height: none; margin-top: 6px; box-shadow: none; }
  .js .venues { display: grid; gap: 12px; flex: none; }
  .js .venues__title { display: block; }
  .js .switch { flex: none; }
  .js .board__foot {
    display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  }
  .board__reset { font-size: 14px; border-bottom: 1px solid; }
  .board__foot .btn { flex: 1; justify-content: center; gap: .3em; }
  .js .scrim {
    display: block; position: fixed; inset: 0; z-index: 65; background: rgba(11, 10, 9, .5);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
  }
  .js .scrim.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .archive__lede { display: none; }

  /* Without JS the board just stays in the page. */
  html:not(.js) .board__row { align-items: stretch; }
  html:not(.js) .types__grid--8, html:not(.js) .types__grid--3, html:not(.js) .tray__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mosaic {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 52vw;
    grid-template-areas: "a a" "b c" "b d" "e e" "f f";
  }
  .countries__in { grid-template-columns: 1fr; }
  .section__head--sticky { position: static; }
  .countries__preview { display: none; }
  .ref__head { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .models__hint { grid-column: 1; }
  .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__caption { display: none; }
}
@media (max-width: 700px) {
  :root { --header: 64px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__title { font-size: 18px; }
  .card__city { font-size: 15px; }
  .card__delivered:not(.card__delivered--match) { display: none; }
  .mosaic { gap: 10px; }
  .mosaic__cap { left: 14px; right: 14px; bottom: 14px; }
  .mosaic__name { font-size: 19px; }
  .mosaic__city { font-size: 15px; }
  .mosaic__meta { font-size: 10px; }
  .brand svg { height: 24px; }
  .brand__tag { display: none; }
  .gallery--2, .gallery--3 { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .site-footer__claim { text-align: left; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}
@media (max-width: 420px) {
  .site-header .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
