/* studios.sidtickle.com — site-specific styles atop the Notes design system */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg-1);
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
a { color: inherit; text-decoration: none; }
button {
  font-family: var(--font-mono);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
img, video { display: block; max-width: 100%; }
:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Density: drives gutters across the site */
:root {
  --gutter-x: 48px;
  --gutter-y: 64px;
  --row-gap: 14px;
  --tile-gap: 12px;
}
[data-density="tight"] {
  --gutter-x: 28px;
  --gutter-y: 36px;
  --row-gap: 6px;
  --tile-gap: 6px;
}
[data-density="spacious"] {
  --gutter-x: 64px;
  --gutter-y: 96px;
  --row-gap: 18px;
  --tile-gap: 14px;
}

/* ============== Header ============== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter-x) 0;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: var(--weight-semibold);
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .caret {
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--fg-1);
  margin-left: 2px;
  transform: translateY(-2px);
  animation: blink 1.2s steps(2, end) infinite;
}
.wordmark .slash {
  color: var(--fg-4);
  font-weight: var(--weight-light);
}
.wordmark .studios {
  color: var(--fg-3);
  font-weight: var(--weight-regular);
}
@keyframes blink {
  to { opacity: 0; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
}
.header-nav a, .header-nav button {
  color: var(--fg-3);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  transition: color var(--dur-fast) var(--ease);
}
.header-nav a:hover, .header-nav button:hover { color: var(--fg-1); }
.theme-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--fg-1); }
.theme-toggle svg { width: 14px; height: 14px; }

/* ============== Landing — shared ============== */
.landing {
  padding: 0 var(--gutter-x) 96px;
}
.intro {
  padding: var(--gutter-y) 0 var(--gutter-y);
  max-width: 720px;
}
.intro .lede {
  font-size: 28px;
  line-height: 1.35;
  font-weight: var(--weight-light);
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.intro .sub {
  color: var(--fg-3);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  margin: 0;
}
.intro .sub a { color: var(--accent); }
.intro .sub a:hover { text-decoration: underline; text-underline-offset: 3px; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.section-label .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: var(--weight-regular);
  text-transform: lowercase;
}
.section-label .count {
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

/* --- Landing layout: list with hover preview --- */
.list-hover .row-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-hover .row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 24px;
  align-items: baseline;
  padding: var(--row-gap) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left var(--dur-base) var(--ease);
  position: relative;
}
.list-hover .row:hover { padding-left: 8px; }
.list-hover .row .num {
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.list-hover .row .title {
  font-size: 22px;
  font-weight: var(--weight-light);
  color: var(--fg-1);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease);
}
.list-hover .row:hover .title { color: var(--accent); }
.list-hover .row .meta-loc {
  font-size: var(--fs-small);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}
.list-hover .row .meta-year {
  font-size: var(--fs-small);
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}

/* The hover preview floats with the cursor */
.hover-preview {
  position: fixed;
  pointer-events: none;
  width: 320px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  box-shadow: var(--shadow-3);
  z-index: 50;
  border: 1px solid var(--line);
}
.hover-preview.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* --- Landing layout: pure list (no preview) --- */
.text-list .row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0;
}
.text-list .row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: var(--row-gap) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.text-list .row .num { font-size: 11px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.text-list .row .title-line {
  font-size: 18px;
  color: var(--fg-1);
  font-weight: var(--weight-light);
}
.text-list .row .title-line .dot {
  color: var(--fg-4);
  margin: 0 10px;
}
.text-list .row .title-line .place,
.text-list .row .title-line .medium {
  color: var(--fg-3);
}
.text-list .row .meta-year {
  font-size: var(--fs-small);
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}
.text-list .row:hover .title-line { color: var(--accent); }

/* --- Landing layout: grid of covers --- */
.grid-covers .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--tile-gap);
  margin-top: 24px;
}
.grid-covers .card {
  display: block;
  cursor: pointer;
}
.grid-covers .card .cover {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.grid-covers .card .cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease);
}
.grid-covers .card:hover .cover img { transform: scale(1.04); }
.grid-covers .card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px 4px;
  gap: 12px;
}
.grid-covers .card .title {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--fg-1);
}
.grid-covers .card .year {
  font-size: 11px;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}
.grid-covers .card .sub {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  padding: 0 2px;
}

/* --- Landing layout: featured + list --- */
.featured-and-list .layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  margin-top: 24px;
  align-items: start;
}
.featured-and-list .feature .cover {
  aspect-ratio: 5/6;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.featured-and-list .feature .cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-and-list .feature .feature-meta {
  margin-top: 16px;
}
.featured-and-list .feature .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.featured-and-list .feature h2 {
  font-size: 32px;
  font-weight: var(--weight-light);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fg-1);
  line-height: 1.2;
}
.featured-and-list .feature .feature-sub {
  color: var(--fg-3);
  font-size: var(--fs-body);
  max-width: 540px;
}
.featured-and-list .others {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.featured-and-list .others li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.featured-and-list .others .t { font-size: 16px; color: var(--fg-1); }
.featured-and-list .others .y { font-size: 11px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.featured-and-list .others .s { display: block; font-size: 11px; color: var(--fg-3); letter-spacing: var(--tracking-wide); margin-top: 4px; }
.featured-and-list .others li:hover .t { color: var(--accent); }

/* Cover treatment filters */
.cover-img.tx-duotone {
  filter: grayscale(0.85) contrast(1.05) sepia(0.18) hue-rotate(-12deg);
  transition: filter var(--dur-slow) var(--ease);
}
.cover-img.tx-duotone:hover { filter: none; }
.cover-img.tx-mono {
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--dur-slow) var(--ease);
}
.cover-img.tx-mono:hover { filter: grayscale(0.4) contrast(1.05); }
.cover-img.tx-full { filter: none; }
.cover-img.tx-faded {
  filter: saturate(0.8) brightness(0.98);
  opacity: 0.92;
  transition: opacity var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
}
.cover-img.tx-faded:hover { opacity: 1; filter: saturate(1) brightness(1); }

/* ============== Lookbook ============== */
.lookbook {
  padding: 0 var(--gutter-x) 120px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  margin-top: 28px;
  margin-bottom: 56px;
  transition: color var(--dur-fast) var(--ease);
}
.back-link:hover { color: var(--fg-1); }
.back-link svg { width: 12px; height: 12px; }

.lb-head {
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: var(--gutter-y);
}
.lb-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0;
}
.lb-head h1 {
  font-size: 48px;
  font-weight: var(--weight-light);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--fg-1);
  text-wrap: pretty;
}
.lb-head .desc {
  font-size: 18px;
  font-weight: var(--weight-light);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}

.lb-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.lb-meta dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  margin-bottom: 6px;
  font-weight: var(--weight-regular);
}
.lb-meta dd {
  font-size: 14px;
  color: var(--fg-1);
  margin: 0;
  font-weight: var(--weight-regular);
}

.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.gallery-bar .label { font-size: 11px; letter-spacing: 0.08em; color: var(--fg-3); }
.gallery-bar .count { font-size: 11px; color: var(--fg-4); }

/* Masonry */
.gallery.masonry {
  column-count: 3;
  column-gap: var(--tile-gap);
}
@media (max-width: 980px) { .gallery.masonry { column-count: 2; } }
.gallery.masonry .item {
  break-inside: avoid;
  margin-bottom: var(--tile-gap);
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.gallery.masonry .item img,
.gallery.masonry .item video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease), filter var(--dur-slow) var(--ease);
}
.gallery.masonry .item:hover img,
.gallery.masonry .item:hover video {
  transform: scale(1.02);
}

/* Strict grid */
.gallery.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--tile-gap);
}
.gallery.grid .item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery.grid .item img, .gallery.grid .item video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Editorial */
.gallery.editorial {
  display: flex;
  flex-direction: column;
  gap: calc(var(--tile-gap) * 2);
}
.gallery.editorial .row {
  display: grid;
  gap: var(--tile-gap);
}
.gallery.editorial .row.r1 { grid-template-columns: 1fr; }
.gallery.editorial .row.r2 { grid-template-columns: 1fr 1fr; }
.gallery.editorial .row.r3 { grid-template-columns: 1fr 2fr 1fr; }
.gallery.editorial .row.r-asym { grid-template-columns: 2fr 1fr; }
.gallery.editorial .item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery.editorial .item.tall { aspect-ratio: 3/4; }
.gallery.editorial .item.wide { aspect-ratio: 16/9; }
.gallery.editorial .item.square { aspect-ratio: 1/1; }
.gallery.editorial .item img, .gallery.editorial .item video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Video badge */
.item .vid-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 3px 6px;
  border-radius: 2px;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.94);
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
[data-theme="dark"] .lightbox { background: rgba(0,0,0,0.96); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
}
.lb-bar button {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.lb-bar button:hover { color: #fff; }
.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px 40px;
  position: relative;
}
.lb-stage img, .lb-stage video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
.lb-arrow:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lb-arrow.prev { left: 24px; }
.lb-arrow.next { right: 24px; }
.lb-arrow svg { width: 16px; height: 16px; }
.lb-caption {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-bottom: 20px;
}

/* Footer */
.site-footer {
  padding: 40px var(--gutter-x);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-4);
}
.site-footer a:hover { color: var(--fg-1); }

.header-nav a.on { color: var(--fg-1); }
.header-nav a.on::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--fg-1);
  margin-top: 2px;
}

/* ============== Filter bar (lookbook) ============== */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: start;
}
.filter-row .fr-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  text-transform: uppercase;
  padding-top: 7px;
}
.filter-row .fr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.fr-chip:hover { color: var(--fg-1); border-color: var(--line-strong); }
.fr-chip.on {
  background: var(--fg-1);
  color: var(--bg);
  border-color: var(--fg-1);
}
.fr-chip .fr-n {
  font-size: 9px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.fr-chip.on .fr-n { opacity: 0.85; }
.empty-filter {
  padding: 40px 0;
  color: var(--fg-3);
  text-align: center;
  font-size: var(--fs-small);
}

/* ============== Gear page ============== */
.gear { padding: 0 var(--gutter-x) 120px; }
.gear-head {
  max-width: 720px;
  display: grid;
  gap: 20px;
  padding-bottom: var(--gutter-y);
}
.gear-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0;
}
.gear-head h1 {
  font-size: 44px;
  font-weight: var(--weight-light);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
.gear-head .desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 580px;
}
.gear-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.gear-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  background: var(--surface);
}
.gear-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.gear-card .gc-name {
  font-size: 18px;
  font-weight: var(--weight-regular);
  margin: 0 0 4px;
  color: var(--fg-1);
}
.gear-card .gc-kind {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-4);
  margin: 0;
}
.gear-card .gc-role {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.gear-card .gc-role.for-sale {
  color: var(--warn);
  background: transparent;
  border: 1px solid var(--warn);
}
.gc-section + .gc-section { margin-top: 14px; }
.gc-section-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gc-list { list-style: none; margin: 0; padding: 0; }
.gc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.gc-item:last-child { border-bottom: 0; }
.gc-item .gc-item-name { color: var(--fg-1); }
.gc-item .gc-item-note {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-4);
}
.gc-item.for-sale .gc-item-note {
  color: var(--warn);
  font-weight: var(--weight-regular);
}
.gear-foot {
  margin-top: 56px;
  font-size: var(--fs-small);
  color: var(--fg-3);
}
.gear-foot a { color: var(--accent); }
.gear-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Inline layout picker — lives on the landing page */
.inline-layout-picker {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 4px 0 18px;
}
.inline-layout-picker .ilp-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  text-transform: uppercase;
  font-weight: var(--weight-regular);
}
.inline-layout-picker .ilp-buttons {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.inline-layout-picker .ilp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.inline-layout-picker .ilp-btn:last-child { border-right: 0; }
.inline-layout-picker .ilp-btn:hover { color: var(--fg-1); background: var(--surface-2); }
.inline-layout-picker .ilp-btn[aria-checked="true"] {
  background: var(--surface-2);
  color: var(--fg-1);
}
.inline-layout-picker .ilp-btn svg { display: block; }

/* Layout picker — icon segmented control inside Tweaks panel */
.layout-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 4px 0 2px;
}
.layout-picker .opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px 8px;
  border-radius: 6px;
  border: 1px solid var(--line, #e6e0d3);
  background: transparent;
  color: var(--fg-3, #75706a);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.layout-picker .opt:hover {
  color: var(--fg-1);
  border-color: var(--line-strong);
}
.layout-picker .opt[aria-pressed="true"] {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--fg-1);
}
.layout-picker .opt svg { display: block; }
.layout-picker .opt .opt-label {
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Skeleton placeholder for placeholder images: gradient swatch */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7);
  background-size: cover;
  background-position: center;
}


/* ============== Responsive — mobile + tablet ============== */

/* Hide the cursor-following preview on touch devices */
@media (hover: none) {
  .hover-preview { display: none !important; }
  .list-hover .row:hover { padding-left: 0; }
}

/* Tablet (≤900px) */
@media (max-width: 900px) {
  :root {
    --gutter-x: 24px;
    --gutter-y: 48px;
  }
  [data-density="tight"]    { --gutter-x: 18px; --gutter-y: 28px; }
  [data-density="spacious"] { --gutter-x: 28px; --gutter-y: 64px; }

  .site-header {
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 20px;
  }
  .header-nav { gap: 16px; flex-wrap: wrap; }

  .intro .lede { font-size: 22px; }

  .lb-head h1 { font-size: 36px; }
  .lb-head .desc { font-size: 16px; }

  .gear-head h1 { font-size: 32px; }
  .gear-list { grid-template-columns: 1fr; }

  /* Featured + list — stack */
  .featured-and-list .layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .featured-and-list .feature h2 { font-size: 26px; }

  /* Filter row — label above chips */
  .filter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .filter-row .fr-label { padding-top: 0; }

  /* Lightbox tighter */
  .lb-stage { padding: 0 56px 24px; }
  .lb-arrow.prev { left: 8px; }
  .lb-arrow.next { right: 8px; }
}

/* Phone (≤600px) */
@media (max-width: 600px) {
  :root {
    --gutter-x: 18px;
    --gutter-y: 36px;
    --tile-gap: 6px;
  }

  .wordmark { font-size: 14px; }
  .header-nav { gap: 12px; font-size: 11px; }
  .header-nav a, .header-nav button { font-size: 11px; }

  .intro { padding: 32px 0 28px; }
  .intro .lede { font-size: 19px; line-height: 1.4; }
  .intro .sub { font-size: 12px; }

  /* Landing rows — collapse meta to a second line */
  .list-hover .row {
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
  }
  .list-hover .row .meta-loc { display: none; }
  .list-hover .row .title { font-size: 18px; }

  .text-list .row {
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
  }
  .text-list .row .title-line { font-size: 14px; }
  .text-list .row .title-line .dot { margin: 0 6px; }
  /* On phones, hide medium to keep one line readable */
  .text-list .row .title-line .dot:last-of-type,
  .text-list .row .title-line .medium { display: none; }

  .grid-covers .grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .grid-covers .card .title { font-size: 13px; }
  .grid-covers .card .sub { font-size: 10px; }

  /* Inline layout picker on landing */
  .inline-layout-picker { gap: 10px; padding: 0 0 14px; }
  .inline-layout-picker .ilp-btn { padding: 6px 10px; }
  .inline-layout-picker .ilp-btn-label { display: none; }

  /* Lookbook */
  .back-link { margin: 22px 0 32px; }
  .lb-head { gap: 16px; padding-bottom: 32px; }
  .lb-head h1 { font-size: 28px; }
  .lb-head .desc { font-size: 15px; }
  .lb-meta {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 18px;
  }
  .lb-meta dt { font-size: 9px; }
  .lb-meta dd { font-size: 13px; }

  .gallery-bar { padding: 24px 0 12px; }
  .filter-bar { margin-bottom: 18px; }
  .fr-chip { font-size: 10px; padding: 4px 8px; }

  /* Gear */
  .gear-head h1 { font-size: 26px; }
  .gear-card { padding: 18px 16px 14px; }
  .gear-card .gc-name { font-size: 16px; }
  .gear-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .gear-card .gc-role { align-self: flex-start; }

  /* Lightbox — full bleed */
  .lb-bar { padding: 14px 16px; }
  .lb-stage { padding: 0 8px 16px; }
  .lb-arrow {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
  }
  .lb-arrow.prev { left: 4px; }
  .lb-arrow.next { right: 4px; }
  .lb-stage img, .lb-stage video { max-height: 72vh; }

  /* Strict grid — keep 2 cols on phone */
  .gallery.grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }
}

/* Touch-target safety: any interactive control gets at least 36px */
@media (max-width: 600px) {
  .fr-chip, .ilp-btn, .header-nav a, .header-nav button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
}
