/* ============================================================
   LC250 — cinematic editorial overland theme
   ============================================================ */
:root {
  --bg:        #0b0c10;
  --bg-2:      #101218;
  --panel:     #14161d;
  --panel-2:   #191c24;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.16);
  --text:      #f5f2ec;
  --muted:     #9aa1ad;
  --muted-2:   #8b929e; /* raised from #6a7180 for WCAG-AA contrast on the dark theme */
  --sand:      #d9b888;
  --sand-d:    #b8965f;
  --rust:      #e2703a;
  --rust-d:    #c2531f;
  --green:     #9fb98a;
  --danger:    #e06a5a;
  --ok:        #8fc07a;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 30px 70px -20px rgba(0,0,0,.7);
  --maxw:      1240px;
  --nav-h:     72px;
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --disp:      'Archivo', 'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
/* film grain over everything */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
::selection { background: var(--rust); color: #fff; }
.ic { display: block; }
.ic-wrap { display: inline-flex; }
/* keyboard focus ring — visible for Tab users, invisible for mouse/touch (via :focus-visible) */
:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

/* ---------------- motion utilities ---------------- */
/* visible by default; JS adds .pre to defer below-the-fold items for the scroll-in animation */
.reveal.pre { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.pre { opacity: 1; transform: none; transition: none; }
  .hero-scroll span, .hs-ring, .cart-fab.pulse, .lb-stage.lb-loading::after { animation: none; }
}

/* ---------------- scene placeholder ---------------- */
.scene { position: relative; width: 100%; height: 100%; overflow: hidden; background: #12141b; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-grain { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scene-icon { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }

/* ---------------- nav ---------------- */
#nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 26px; padding: 0 32px;
  background: rgba(11,12,16,.72); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line); transition: background .4s, border-color .4s;
}
#nav.transparent { background: linear-gradient(rgba(11,12,16,.5), transparent); border-bottom-color: transparent; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--disp); font-weight: 800; font-size: 17px; letter-spacing: -.02em;
  color: #14110b; background: linear-gradient(135deg, var(--sand), var(--sand-d));
  box-shadow: 0 6px 20px -6px rgba(217,184,136,.6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { color: var(--muted-2); font-size: 11px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 2px; }
.nav-link { position: relative; padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--rust); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.edit-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 22px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 13px; font-weight: 600; font-family: var(--font); transition: .2s;
}
.edit-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); transition: .2s; }
.edit-toggle:hover { color: var(--text); border-color: var(--text); }
.edit-toggle.on { color: #14110b; background: linear-gradient(135deg, var(--sand), var(--sand-d)); border-color: transparent; }
.edit-toggle.on .dot { background: #14110b; box-shadow: 0 0 0 3px rgba(20,17,11,.25); }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--muted); display: grid; place-items: center; transition: .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 22px; border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; transition: .2s var(--ease); white-space: nowrap;
}
.btn .ic { width: 17px; height: 17px; }
.btn.lg { padding: 15px 28px; font-size: 15px; }
.btn.sm { padding: 9px 15px; font-size: 13px; }
.btn.primary { background: linear-gradient(135deg, var(--rust), var(--rust-d)); color: #fff; box-shadow: 0 12px 30px -10px rgba(226,112,58,.7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(226,112,58,.8); }
.btn.outline { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn.outline:hover { border-color: var(--sand); color: var(--sand); transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line); }
.btn.ghost:hover { color: var(--text); }
.btn.danger { background: transparent; border-color: rgba(224,106,90,.45); color: var(--danger); }
.btn.danger:hover { background: rgba(224,106,90,.12); }

/* ---------------- layout / sections ---------------- */
#main { position: relative; z-index: 1; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px 110px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head.sub { margin-top: 52px; align-items: center; }
.section-title { font-family: var(--disp); font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.section-title.small { font-size: clamp(24px, 3vw, 32px); }
.section-sub { color: var(--muted); margin: 12px 0 0; font-size: 15px; max-width: 560px; }
.muted { color: var(--muted); } .muted.sm { font-size: 13px; }
.pad { padding: 10px 2px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--sand); font-size: 14px; font-weight: 600; }
.link-more:hover { gap: 9px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin-bottom: 22px; transition: .2s; }
.back-link:hover { color: var(--sand); gap: 10px; }

/* ---------------- cinematic hero ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1000px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-layer { position: absolute; inset: -6%; transform: translate3d(var(--mx,0px), calc(var(--my,0px) + var(--py,0px)), 0) scale(1.06); transition: transform .2s ease-out; will-change: transform; }
.hero-sky { background: linear-gradient(180deg, #1a2030 0%, #3a3346 42%, #8f4a33 78%, #b5663c 100%); }
.hero-glow { background: radial-gradient(58% 42% at 64% 78%, rgba(232,140,82,.85), rgba(232,140,82,.08) 55%, transparent 72%); }
.hero-sun { position: absolute; left: 62%; bottom: 26%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #f4c07e, #e07f3e 60%, transparent 72%); filter: blur(2px); }
.hero-ridge { position: absolute; left: -6%; right: -6%; bottom: -2%; background-repeat: no-repeat; background-position: bottom; background-size: cover; }
.hero-ridge.r1 { height: 62%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' preserveAspectRatio='none'%3E%3Cpath d='M0 360 Q220 290 440 340 T880 320 T1320 344 T1600 300 L1600 600 L0 600Z' fill='%23231f2c'/%3E%3C/svg%3E"); }
.hero-ridge.r2 { height: 48%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q260 220 520 290 T1040 262 T1600 300 L1600 500 L0 500Z' fill='%23171520'/%3E%3C/svg%3E"); }
.hero-ridge.r3 { height: 34%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 380' preserveAspectRatio='none'%3E%3Cpath d='M0 250 Q320 180 680 240 T1360 230 T1600 252 L1600 380 L0 380Z' fill='%230c0b12'/%3E%3C/svg%3E"); }
.hero-photo { background-size: cover; background-position: center; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,16,.15) 0%, rgba(11,12,16,.1) 45%, rgba(11,12,16,.82) 86%, rgba(11,12,16,1) 100%); }
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 32px 78px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--sand); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; margin-bottom: 20px; }
.hero-kicker::before { content: ''; width: 30px; height: 1px; background: var(--sand); }
.hero-title { font-family: var(--disp); font-size: clamp(72px, 15vw, 200px); font-weight: 800; line-height: .82; letter-spacing: -.05em; text-shadow: 0 10px 50px rgba(0,0,0,.45); }
.hero-sub { font-family: var(--disp); font-size: clamp(20px, 3vw, 30px); font-weight: 600; color: var(--text); letter-spacing: -.01em; margin-top: 14px; }
.hero-tag { color: rgba(245,242,236,.82); max-width: 520px; margin: 18px 0 32px; font-size: 17px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%); color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--sand), transparent); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-edit-btn { position: absolute; top: 90px; right: 32px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; background: rgba(11,12,16,.6); border: 1px solid var(--line-2); color: var(--text); padding: 10px 15px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.hero-edit-btn:hover { border-color: var(--sand); color: var(--sand); }

/* home intro + stat band */
.home { position: relative; }
.home-intro { max-width: var(--maxw); margin: 0 auto; padding: 80px 32px 10px; }
.home-intro p { font-family: var(--disp); font-weight: 500; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -.02em; max-width: 920px; color: var(--text); }
.home-intro .accent { color: var(--sand); }
.home-stats { max-width: var(--maxw); margin: 56px auto 0; padding: 0 32px; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.home-stat { background: var(--bg); padding: 30px 26px; transition: .3s; }
.home-stat:hover { background: var(--panel); }
.home-stat-num { font-family: var(--disp); font-size: clamp(36px, 4vw, 54px); font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.home-stat:hover .home-stat-num { color: var(--sand); }
.home-stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-top: 12px; }

.home-section { max-width: var(--maxw); margin: 90px auto 0; padding: 0 32px; }
.home-next { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.home-next-media { position: relative; min-height: 320px; }
.home-next-media .scene { position: absolute; inset: 0; }
.home-next-tagbadge { position: absolute; top: 18px; left: 18px; z-index: 2; }
.home-next-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.home-next-label { display: inline-flex; align-items: center; gap: 8px; color: var(--rust); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.home-next-title { font-family: var(--disp); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 8px; line-height: 1; }
.home-next-meta { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.home-next-desc { color: var(--muted); margin: 18px 0 26px; max-width: 460px; }

.photo-strip { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip-item { flex: 0 0 auto; scroll-snap-align: start; }
.strip-item img { width: 280px; height: 200px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--line); transition: .3s var(--ease); }
.strip-item img:hover { transform: scale(1.03); border-color: var(--sand); }

/* ---------------- chips / pills ---------------- */
.chip-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 9px 16px;
  border-radius: 22px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); color: var(--muted); font-family: var(--font); transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active { color: #14110b; background: linear-gradient(135deg, var(--sand), var(--sand-d)); border-color: transparent; }
.chip-count { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(0,0,0,.25); }
.chip.active .chip-count { background: rgba(20,17,11,.22); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 13px; font-size: 11px; font-weight: 600; background: rgba(11,12,16,.7); color: var(--text); backdrop-filter: blur(6px); border: 1px solid var(--line-2); }
.pill-trip { background: rgba(226,112,58,.9); border-color: transparent; }
.pill-un { background: rgba(11,12,16,.7); color: var(--muted); }

/* ---------------- masonry gallery ---------------- */
.masonry { columns: 4 260px; column-gap: 18px; }
.masonry-item { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.masonry-img { width: 100%; display: block; cursor: zoom-in; transition: .5s var(--ease); }
.masonry-item:hover .masonry-img { transform: scale(1.05); }
.masonry-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(11,12,16,.6)); opacity: 0; transition: .3s; pointer-events: none; }
.masonry-item:hover::after { opacity: 1; }
.masonry-tag { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 7px; opacity: 0; transform: translateY(6px); transition: .3s; pointer-events: none; z-index: 2; }
.masonry-item:hover .masonry-tag { opacity: 1; transform: none; }
.masonry-edit { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: .3s; z-index: 2; }
.masonry-item:hover .masonry-edit { opacity: 1; }
/* in edit mode the controls must be reachable without hover (touch + discoverability) */
.masonry-item.editing .masonry-edit { opacity: 1; }
.masonry-item.editing .masonry-tag { opacity: 1; transform: none; }
/* Touch: keep thumbnails clean — the trip label is redundant (filter chips + lightbox show it)
   and the full name banners over the small 2-col images. Edit mode still shows it (rule above). */
.mini-select { background: rgba(11,12,16,.92); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; font-size: 11px; padding: 5px 7px; max-width: 130px; }
.mini-btn { width: 32px; height: 32px; border-radius: 9px; cursor: pointer; background: rgba(11,12,16,.92); border: 1px solid var(--line-2); color: var(--text); display: grid; place-items: center; transition: .2s; }
.mini-btn .ic { width: 15px; height: 15px; }
.mini-btn:hover { border-color: var(--sand); color: var(--sand); }
.mini-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(224,106,90,.15); }

/* ---------------- empty states ---------------- */
.empty { text-align: center; padding: 80px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.empty.inline { padding: 48px 24px; width: 100%; }
/* an empty state inside the multi-column masonry must span all columns, not fragment across them */
.masonry > .empty { column-span: all; break-inside: avoid; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.04); color: var(--sand); }
.empty-icon .ic { width: 28px; height: 28px; }
.empty h3 { font-family: var(--disp); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.empty p { max-width: 440px; margin: 0 auto 22px; color: var(--muted); }

/* ---------------- build list ---------------- */
.build-stats { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 28px; min-width: 130px; }
.stat-num { font-family: var(--disp); font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--sand); line-height: 1; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.build-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.build-nav-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; cursor: pointer; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 600; transition: .18s; }
.build-nav-chip:hover { color: var(--text); border-color: var(--sand); }
.build-nav-n { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: rgba(0,0,0,.3); color: var(--muted-2); }
.build-group { margin-bottom: 44px; scroll-margin-top: 90px; }
.build-cat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.build-cat { font-family: var(--disp); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.build-cat-sub { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.build-list { display: flex; flex-direction: column; gap: 12px; }
.build-row { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; transition: .2s var(--ease); }
.build-row:hover { border-color: var(--line-2); transform: translateX(4px); }
.build-main { flex: 1; min-width: 0; }
.build-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; letter-spacing: -.01em; }
.build-brand { font-size: 11px; font-weight: 600; color: var(--sand); background: rgba(217,184,136,.12); padding: 3px 10px; border-radius: 12px; letter-spacing: .03em; }
.build-tag { font-size: 10px; font-weight: 600; color: var(--muted-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 2px 8px; border-radius: 11px; text-transform: uppercase; letter-spacing: .06em; }
.build-notes { color: var(--muted); font-size: 14px; margin-top: 6px; }
.build-meta { display: flex; gap: 16px; margin-top: 9px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.build-link { color: var(--sand); font-weight: 600; }
.build-price { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.row-actions { display: flex; gap: 7px; }
.build-total { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; padding: 30px 34px; border-radius: var(--radius); background: linear-gradient(120deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.build-total::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--rust), var(--sand)); }
.build-total-label { font-family: var(--disp); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.build-total-num { font-family: var(--disp); font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; color: var(--sand); }

/* ---------------- trips ---------------- */
.trips-heading { display: flex; align-items: center; gap: 11px; font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 24px 0 20px; }
.trips-heading .ic { color: var(--sand); }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; margin-bottom: 40px; }
.trip-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .3s var(--ease); }
.trip-card:hover { border-color: var(--line-2); transform: translateY(-5px); box-shadow: var(--shadow); }
.trip-cover { height: 200px; position: relative; overflow: hidden; }
.trip-cover .scene, .trip-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .5s var(--ease); }
.trip-card:hover .trip-cover img { transform: scale(1.06); }
.trip-badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 13px; border-radius: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(6px); }
.trip-badge.soon { background: rgba(226,112,58,.92); color: #fff; }
.trip-badge.done { background: rgba(159,185,138,.92); color: #11140d; }
.trip-body { padding: 22px 22px 8px; flex: 1; }
.trip-loc { color: var(--sand); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.trip-loc .ic { width: 14px; height: 14px; }
.trip-name { font-family: var(--disp); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 7px 0; line-height: 1.05; }
.trip-date { color: var(--muted-2); font-size: 13px; font-family: var(--mono); }
.trip-desc { color: var(--muted); font-size: 14px; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trip-actions { display: flex; align-items: center; gap: 9px; padding: 18px 22px 22px; }
.trip-actions .btn.outline { flex: 1; }

.trip-hero { height: 380px; border-radius: var(--radius); position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.trip-hero .scene, .trip-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-hero-overlay { position: relative; z-index: 2; padding: 34px; width: 100%; background: linear-gradient(transparent, rgba(11,12,16,.92)); }
.trip-hero-title { font-family: var(--disp); font-size: clamp(32px, 6vw, 60px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 6px; line-height: .95; }
.trip-hero-meta { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trip-story { margin: 24px 0 8px; max-width: 760px; }
.trip-story .trip-detail-desc:first-child { font-size: 19px; color: var(--text); } /* lead paragraph */
.trip-detail-desc { color: var(--muted); font-size: 16px; max-width: 760px; margin: 0 0 16px; line-height: 1.75; }
/* collaborative trips: crew roster + invites */
.crew-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.crew-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 6px 8px 6px 13px; }
.crew-chip.pending { opacity: .72; border-style: dashed; }
.crew-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.crew-name:hover { color: var(--sand); }
.crew-role { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; margin-left: 5px; }
.crew-x { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.crew-x:hover { background: var(--danger); color: #fff; }
.invite-list { display: flex; flex-direction: column; gap: 6px; }
.invite-row { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; color: var(--text); font-size: 14px; transition: .15s; }
.invite-row:hover { border-color: var(--sand); }
.invite-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(var(--panel), var(--panel-2)); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 14px; }
.invite-banner strong { font-family: var(--disp); font-size: 16px; }
.invite-banner p { margin: 2px 0 0; }
.invite-actions { display: flex; gap: 8px; }

/* ---------------- friends ---------------- */
/* self-serve "create your rig" CTA + the rig-owner edit button */
.rig-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 24px; }
.rig-cta.create { border-color: var(--line-2); background: linear-gradient(var(--panel), var(--panel-2)); }
.rig-cta strong { font-family: var(--disp); font-size: 17px; }
.rig-cta p { margin: 3px 0 0; }
.rig-edit-btn { margin: 0 0 18px; }
/* follow graph */
.follow-row { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.follow-row.compact { margin: 0; margin-top: auto; padding: 8px 22px 20px; gap: 10px; } /* pinned to the card's bottom, aligned with body padding */
.follow-btn { display: inline-flex; align-items: center; gap: 6px; }
.follow-count.link { cursor: pointer; }
.follow-count.link:hover { color: var(--sand); }
.followers-list { display: flex; flex-direction: column; }
.follower-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.follower-row:last-child { border-bottom: 0; }
.feed-rig { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text); background: rgba(11,12,16,.82); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 9px; backdrop-filter: blur(6px); z-index: 2; transition: .2s; }
.feed-rig:hover { border-color: var(--sand); color: var(--sand); }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.friend-card { --accent: var(--sand); position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .3s var(--ease); }
.friend-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.friend-cover { height: 210px; position: relative; overflow: hidden; }
.friend-cover .scene, .friend-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .5s var(--ease); }
.friend-card:hover .friend-cover img { transform: scale(1.06); }
.friend-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(11,12,16,.7)); }
.friend-body { padding: 22px; position: relative; }
.friend-body::before { content: ''; position: absolute; top: -2px; left: 22px; width: 44px; height: 3px; background: var(--accent); border-radius: 3px; }
.friend-owner { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.friend-rig { font-family: var(--disp); font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0; line-height: 1; }
.friend-sub { color: var(--muted); font-size: 13px; }
.friend-tag { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.friend-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.friend-link { color: var(--accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.friend-card:hover .friend-link { gap: 9px; }
.friend-url { color: var(--muted-2); font-size: 12px; font-family: var(--mono); background: rgba(0,0,0,.3); padding: 4px 9px; border-radius: 7px; }
.card-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 3; }

.friend-page { --accent: var(--sand); }
.friend-hero { height: 400px; border-radius: var(--radius); position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.friend-hero .scene, .friend-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.friend-hero-overlay { position: relative; z-index: 2; width: 100%; padding: 36px; background: linear-gradient(transparent, rgba(11,12,16,.94)); border-bottom: 4px solid var(--accent); }
.friend-hero-owner { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.friend-hero-rig { font-family: var(--disp); font-size: clamp(36px, 7vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: .92; margin: 8px 0 6px; }
.friend-hero-sub { color: var(--muted); font-size: 17px; }
.friend-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.friend-bio { color: var(--text); font-size: 17px; max-width: 760px; margin: 28px 0 0; line-height: 1.7; }

/* ---------------- modal ---------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(6,7,9,.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 22px; opacity: 0; transition: .25s; }
.modal-overlay.show { opacity: 1; }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(16px) scale(.98); transition: .25s var(--ease); }
.modal-overlay.show .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.modal-head h3 { font-family: var(--disp); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.modal-body { padding: 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 11px; padding: 18px 26px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg-2); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field { width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: var(--font); font-size: 14px; transition: .2s; }
.field:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(217,184,136,.16); }
textarea.field { resize: vertical; min-height: 70px; }
.field.color { height: 46px; padding: 5px; cursor: pointer; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa1ad'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.settings-h { font-family: var(--disp); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); margin: 4px 0 16px; }
.settings-hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.settings-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 16px; }
.modal-body > .btn { margin-top: 16px; }

.upload-review .review-trip-row { margin-bottom: 20px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
.review-thumb { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel); }
.review-thumb img { width: 100%; height: 110px; object-fit: cover; background: var(--bg); }
.review-thumb.error { border-color: var(--danger); }
.review-err { padding: 8px; font-size: 12px; color: var(--danger); }
.cap-input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 12px; padding: 9px 11px; }
.cap-input:focus { box-shadow: none; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
.pick-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 9px; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.pick-item img:hover { border-color: var(--sand); }

/* ---------------- lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(6,7,9,.96); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transition: .25s; }
.lightbox.show { opacity: 1; }
.lb-img-wrap { max-width: 92vw; max-height: 84vh; display: grid; place-items: center; }
.lb-img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.7); transition: filter .3s ease; }
/* progressive load: the thumbnail shows blurred until the full-res image arrives */
.lb-stage.lb-loading .lb-img { filter: blur(12px); }
.lb-stage.lb-loading::after { content: ""; position: absolute; top: 14px; left: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lbspin .7s linear infinite; }
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11,12,16,.6); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.lb-nav:hover { background: var(--sand); color: #14110b; border-color: transparent; }
.lb-prev { left: 26px; } .lb-next { right: 26px; }
.lb-close { position: absolute; top: 24px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11,12,16,.6); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lb-close:hover { background: var(--danger); color: #fff; border-color: transparent; }
.lb-caption { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; color: var(--text); font-size: 15px; max-width: 80vw; text-align: center; }
.lb-trip { color: var(--sand); font-weight: 600; }
.lb-counter { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* ---------------- photo hotspots (shoppable tags) ---------------- */
.lb-stage { position: relative; display: inline-block; line-height: 0; }
.hs-layer { position: absolute; inset: 0; pointer-events: none; }
.hs-placing .hs-layer { pointer-events: auto; cursor: crosshair; }
.hs-dot { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.hs-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.5); animation: hspulse 2.4s ease-out infinite; }
.hs-core { position: absolute; inset: 8px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 10px rgba(226,112,58,.9); }
@keyframes hspulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5), 0 0 0 1px rgba(0,0,0,.4); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0), 0 0 0 1px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 0 0 1px rgba(0,0,0,.4); } }
.hs-dot:hover .hs-core { background: var(--sand); }
.hs-label { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; background: rgba(11,12,16,.95); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 9px; opacity: 0; pointer-events: none; transition: .18s; line-height: 1.2; }
.hs-dot:hover .hs-label,
.hs-dot:focus-visible .hs-label,
.hs-dot.revealed .hs-label { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.hs-price { font-family: var(--mono); color: var(--sand); font-weight: 500; }
.hs-del { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); cursor: pointer; }
.hs-relink { position: absolute; top: -9px; left: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--rust); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); cursor: pointer; }
/* in edit mode the dot is a drag handle; its controls fade in on hover so the photo stays readable */
.hs-dot.editable { cursor: grab; touch-action: none; }
.hs-dot.editable:active { cursor: grabbing; }
.hs-dot.editable .hs-relink, .hs-dot.editable .hs-del { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; pointer-events: none; }
.hs-dot.editable:hover .hs-relink, .hs-dot.editable:hover .hs-del { opacity: 1; transform: scale(1); pointer-events: auto; }
.hs-dot.dragging { z-index: 12; cursor: grabbing; }
.hs-dot.dragging .hs-ring { animation: none; border-color: var(--rust); }
.hs-dot.dragging .hs-label, .hs-dot.dragging .hs-relink, .hs-dot.dragging .hs-del { opacity: 0 !important; pointer-events: none; }
.hs-toolbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.hs-add-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(11,12,16,.92); border: 1px solid var(--line-2); color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 22px; cursor: pointer; backdrop-filter: blur(6px); }
.hs-add-btn.active { background: var(--rust); border-color: transparent; }
.hs-hint { font-size: 12px; color: var(--muted); background: rgba(11,12,16,.7); padding: 5px 10px; border-radius: 8px; }
.lb-shophint { position: absolute; bottom: 30px; left: 26px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; background: rgba(11,12,16,.7); padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line); }

/* product picker (tag authoring) */
.pick-prod-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; max-height: 52vh; overflow: auto; }
.pick-prod-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-family: var(--font); transition: .15s; }
.pick-prod-row:hover { border-color: var(--sand); }
.pick-prod-name { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pick-prod-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pick-prod-price { font-family: var(--mono); font-size: 14px; color: var(--sand); white-space: nowrap; }

/* gallery shoppable indicator */
.masonry-shop { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(11,12,16,.78); border: 1px solid var(--line-2); color: var(--sand); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 12px; backdrop-filter: blur(6px); }
.masonry-shop .ic { width: 12px; height: 12px; }

/* ---------------- shop header + card (clean) ---------------- */
.store-head { margin-bottom: 24px; }
.store-h1 { font-family: var(--disp); font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.store-card { cursor: pointer; }
.store-card .store-body { gap: 7px; }
.store-view { display: inline-flex; align-items: center; gap: 5px; color: var(--sand); font-size: 13px; font-weight: 600; }
.store-card:hover .store-view { gap: 8px; }

/* ---------------- product detail page ---------------- */
.product-page { max-width: 1000px; }
.pd-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: stretch; margin-bottom: 12px; }
.pd-media { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-seen { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: rgba(11,12,16,.65); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 12px; backdrop-filter: blur(6px); }
.pd-tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.pd-tile-brand { font-family: var(--disp); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.pd-tile-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 7px; }
.pd-info { display: flex; flex-direction: column; justify-content: center; padding: 6px 0; }
.pd-origin { display: inline-flex; align-items: center; gap: 7px; color: var(--sand); font-weight: 600; font-size: 13px; }
.pd-brand { color: var(--muted); font-size: 14px; margin-top: 14px; text-transform: uppercase; letter-spacing: .08em; }
.pd-name { font-family: var(--disp); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 6px 0 14px; }
.pd-price { font-family: var(--mono); font-size: 26px; color: var(--text); }
.pd-buy { margin: 22px 0 12px; align-self: flex-start; }
.pd-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pd-h { font-family: var(--disp); font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sand); margin: 40px 0 6px; }
.pd-subnote { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.pd-alts { display: flex; flex-direction: column; gap: 10px; }
.pd-alt { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.pd-alt-link { transition: .18s var(--ease); }
.pd-alt-link:hover { border-color: var(--sand); transform: translateX(4px); }
.pd-alt-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pd-alt-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pd-alt-price { font-family: var(--mono); font-size: 15px; color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.pd-builds { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-build { display: inline-flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 30px; padding: 11px 20px; font-weight: 600; font-size: 15px; transition: .18s var(--ease); }
.pd-build:hover { border-color: var(--sand); color: var(--sand); }
.pd-build-go { display: inline-flex; color: var(--sand); }
@media (max-width: 720px) { .pd-hero { grid-template-columns: 1fr; } .pd-media { min-height: 240px; } }

/* ---------------- hotspot product popover ---------------- */
.product-pop { position: fixed; z-index: 140; width: 300px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; opacity: 0; transform: translateY(8px) scale(.98); transition: .2s var(--ease); }
.product-pop.show { opacity: 1; transform: none; }
.pc-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; background: rgba(11,12,16,.65); border: 1px solid var(--line-2); color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.pc-close:hover { background: var(--danger); border-color: transparent; }
.pc-photo { height: 150px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background-size: cover; background-position: center; }
.pc-photo.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(11,12,16,.5)); }
.pc-photo-incontext { position: relative; align-self: flex-start; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: rgba(11,12,16,.6); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 10px; backdrop-filter: blur(6px); }
.pc-photo-brand { position: relative; font-family: var(--disp); font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.pc-photo-cat { position: relative; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 5px; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; }
.pc-origin { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sand); }
.pc-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.pc-price { font-family: var(--mono); font-size: 14px; color: var(--text); }
.pc-cta { width: 100%; margin-top: 8px; }
.pc-look { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.store-card.flash { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(226,112,58,.35), var(--shadow); }

/* ---------------- cart (button + drawer) ---------------- */
.cart-fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--rust), var(--rust-d)); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(226,112,58,.6); opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: .3s var(--ease); }
.cart-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.cart-fab:hover { filter: brightness(1.08); transform: translateY(-2px); }
.cart-fab.pulse { animation: cartpulse .45s var(--ease); }
@keyframes cartpulse { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--sand); color: #14110b; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.cart-overlay { position: fixed; inset: 0; z-index: 130; background: rgba(6,7,9,.6); backdrop-filter: blur(4px); opacity: 0; transition: .26s; }
.cart-overlay.show { opacity: 1; }
.cart-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; transform: translateX(100%); transition: .3s var(--ease); box-shadow: var(--shadow); }
.cart-overlay.show .cart-drawer { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.cart-head h3 { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { text-align: center; padding: 60px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 13px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.cart-thumb.ph { background: linear-gradient(135deg, var(--panel-2), var(--panel)); }
.cart-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.cart-brand { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.qbtn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qbtn:hover { border-color: var(--sand); }
.qval { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 14px; }
.cart-remove { width: 26px; height: 26px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--muted-2); cursor: pointer; display: grid; place-items: center; margin-left: 4px; }
.cart-remove:hover { color: var(--danger); }
.cart-price { font-family: var(--mono); font-size: 15px; color: var(--text); white-space: nowrap; align-self: start; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: 16px; }
.cart-subtotal-num { font-family: var(--disp); font-size: 26px; font-weight: 800; color: var(--sand); }
.cart-checkout { width: 100%; }
.cart-note { text-align: center; margin: 12px 0 0; }

/* ---------------- toast ---------------- */
#toast-host { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); padding: 12px 20px; border-radius: 11px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .3s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: var(--ok); }
.toast.warn { border-color: var(--rust); }

/* ---------------- store (/store) ---------------- */
.store-hero { max-width: 760px; margin-bottom: 30px; }
.store-tag { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); border: 1px solid var(--line-2); padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }
.store-title { font-family: var(--disp); font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.store-lede { color: var(--muted); font-size: 17px; margin: 16px 0 0; line-height: 1.6; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.store-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .3s var(--ease); }
.store-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.store-tile { height: 150px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; overflow: hidden; }
.store-tile.has-photo { padding: 0; }
.store-tile.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .5s var(--ease); }
.store-card:hover .store-tile.has-photo img { transform: scale(1.05); }
.store-tile.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(11,12,16,.45)); }
.store-tile::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .05; }
.store-tile-brand { position: relative; font-family: var(--disp); font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.store-tile-cat { position: relative; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 6px; }
.store-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.store-origin { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sand); }
.store-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.store-brandline { color: var(--muted-2); font-size: 13px; margin-top: -4px; }
.store-pricerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.store-price { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--text); }
.store-look { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--sand); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; }
.store-look:hover { color: var(--text); }
.store-buy { width: 100%; margin-top: 6px; }
.store-payout { font-size: 12px; color: var(--green); font-family: var(--mono); margin-top: 4px; }
.store-alts { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.store-alts-head, .store-detail-alts-h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.store-alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-alt-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-alt-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.store-alt-price { font-family: var(--mono); font-size: 14px; color: var(--text); white-space: nowrap; }
.store-detail { display: flex; flex-direction: column; gap: 10px; }
.store-detail-origin { display: inline-flex; align-items: center; gap: 6px; color: var(--sand); font-weight: 600; font-size: 13px; }
.store-detail-brand { color: var(--muted); font-size: 15px; }
.store-detail-price { font-family: var(--mono); font-size: 26px; color: var(--text); }
.store-detail-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 6px; }
.store-detail-alts-h { margin-top: 12px; }

/* ---------------- footer ---------------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 50px 32px; text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 40px; }
.site-footer strong { color: var(--sand); font-family: var(--disp); font-weight: 700; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  #nav { padding: 0 20px; gap: 16px; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px; display: none; }
  #nav.open .nav-links { display: flex; }
  #nav.transparent { background: rgba(11,12,16,.72); backdrop-filter: blur(16px); }
  .nav-link { padding: 13px 15px; }
  .nav-link.active::after { display: none; }
  .burger { display: grid; }
  .home-stats { grid-template-columns: repeat(2,1fr); }
  .home-next { grid-template-columns: 1fr; }
  .home-next-media { min-height: 220px; }
  .masonry { columns: 2 150px; column-gap: 14px; }
  .page { padding: 44px 20px 90px; }
  .home-intro, .home-section { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 540px) {
  .build-stats { gap: 12px; } .stat { padding: 16px 20px; min-width: 0; flex: 1; }
  .trip-grid, .friend-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 56px; }
  .build-total { flex-direction: column; gap: 14px; align-items: flex-start; }
  /* keep the top bar from overflowing when the owner's edit controls are present */
  .brand-text small { display: none; }
  .edit-toggle span:last-child { display: none; } /* edit toggle becomes icon-only */
  .nav-actions { gap: 6px; }
  #nav { gap: 10px; padding: 0 16px; }
}
/* lightbox controls de-conflict on small screens (arrows/caption/shop-hint no longer overlap) */
@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lb-counter { top: 16px; }
  .lb-shophint { bottom: 60px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .lb-caption { bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 13px; max-width: 92vw; }
  .lb-img-wrap { max-height: 78vh; }
}
/* drag-and-drop upload affordance (was wired in JS but never styled) */
.page.drag::after {
  content: "Drop photos to upload"; position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; pointer-events: none;
  background: rgba(11,12,16,.66); border: 3px dashed var(--sand);
  color: var(--sand); font-weight: 700; font-size: 18px; letter-spacing: .01em;
}
