:root {
  --p-bg: #0b0b0c; --p-surface: #141415; --p-ink: #f2f2f2; --p-muted: #a0a0a0;
  --p-accent: #e8192c; --p-accent-ink: #ffffff; --p-action: #e8192c; --p-action-ink: #ffffff;
  --p-inv-bg: #ffffff; --p-inv-surface: #f0f0f0; --p-inv-ink: #0b0b0c; --p-inv-muted: #575758;
  --p-inv-accent: #d01224; --p-inv-accent-ink: #ffffff; --p-inv-action: #d01224; --p-inv-action-ink: #ffffff;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
.nav__logo img { height: 34px; width: auto; display: block; }
#custom .panel { --p-h: 400px; }
#features .mo-wh__text { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.08; max-width: none; }
/* the color picker: one wide photograph, its color names in one row under it */
.lights { display: grid; gap: var(--s-5); }
.lights__photo { position: relative; aspect-ratio: 2400 / 860; overflow: hidden; }
.lights__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lights__names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 var(--s-4); }
.lights__names li { border-top: 2px solid var(--line-strong); padding: var(--s-3) 0; min-height: 44px; font-size: 16px; white-space: nowrap; cursor: pointer; }
.lights__names li:focus { border-top-color: var(--accent); }
.lights__names li.is-on { border-top-color: var(--accent); }
/* phones and tablets: every section is as tall as what it holds */
@media (max-width: 1023px) {
  main > section.section { height: auto !important; min-height: 0 !important; max-height: none !important; padding-block: 72px !important; }
  main > section.section > .wrap { height: auto !important; min-height: 0 !important; }
    #custom .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); }
  #custom .grid > * { grid-column: auto; grid-row: auto; display: flex; flex-direction: column; }
  #custom .panel { --p-h: 300px; margin-top: auto; }
  #custom .grid > * > p { margin-bottom: var(--s-4); }
}
@media (max-width: 639px) {
  #custom .panel { --p-h: 210px; }
  .lights__photo { aspect-ratio: 1.6; }
  .lights__photo img { object-position: 98% 50%; }
  .lights__names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav .nav__bar { display: flex; justify-content: space-between; }
  .nav .nav__toggle { margin-left: auto; }
}

/* ---- product pages: every section as tall as what it holds ---- */
.flow main > section.section { height: auto !important; min-height: 0 !important; max-height: none !important; padding-block: 88px !important; }
.flow main > section.section > .wrap { height: auto !important; min-height: 0 !important; }
.flow main > section.buy { padding-top: calc(var(--nav, 72px) + 48px) !important; }
.flow .section-head { margin-bottom: var(--s-8); max-width: none; }
.flow .section-head h2 { max-width: 30ch; }
.flow .footer { height: auto; min-height: 0; padding-block: 72px 40px; }
.buy__grid { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.buy__text { display: grid; gap: var(--s-5); align-content: start; }
.buy h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; letter-spacing: var(--display-tracking); }
.buy .rows { margin-top: var(--s-3); }
.gallery { display: grid; gap: var(--s-3); min-width: 0; }
.gallery__big { position: relative; aspect-ratio: var(--ar); background: #fff; border-radius: var(--r-lg); overflow: hidden; max-height: 640px; width: 100%; }
.gallery__big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.thumb { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #fff; cursor: pointer; border: 2px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-on, .thumb:focus { border-color: var(--accent); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); }
.feats h3 { font-size: var(--t-h3, 22px); margin-bottom: var(--s-2); }
.feats p { color: var(--muted); max-width: 38ch; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); align-items: start; }
.photo-band img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 60%; border-radius: var(--r-lg); display: block; }
.photo-band { padding-top: 0 !important; }
.rows > li.doc { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); }
.inq__photo { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); margin-top: var(--s-4); }
.form input[type="file"] { padding-block: 10px; height: auto; }
.thanks { display: grid; gap: var(--s-5); min-height: 50svh !important; align-content: center; }
.shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.shop__item { display: grid; gap: var(--s-2); color: inherit; text-decoration: none; }
.shop__item img { width: 100%; height: 360px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s-3); }
.shop__item .link { margin-top: var(--s-2); justify-self: start; }
.shop__item p { color: var(--muted); }
@media (max-width: 1023px) {
  .buy__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inq__photo { display: none; }
}
@media (max-width: 639px) {
  .flow main > section.section { padding-block: 56px !important; }
  .flow main > section.buy { padding-top: calc(var(--nav, 56px) + 24px) !important; }
  .feats { gap: var(--s-6); }
  .cols > .rows + .rows > li:first-child { padding-top: var(--s-4); }
  .feats, .cols, .shop { grid-template-columns: minmax(0, 1fr); }
  .shop__item img { height: 240px; }
  .rows > li.doc { flex-direction: column; align-items: flex-start; }
}

/* the hero's speedometer always stays in the right half, whatever shape the window is */
.hero--photo { background: var(--p-bg) !important; }
@media (min-width: 1024px) {
  .hero--photo > picture.hero__bg > img { position: absolute !important; inset: var(--nav) max(32px, calc((100vw - 1280px) / 2)) 0 auto !important; width: min(46vw, 640px) !important; height: calc(100% - var(--nav)) !important; object-fit: contain !important; }
}

/* home: coming soon */
.soon h3 { font-size: var(--t-h3, 22px); margin-bottom: var(--s-4); }
.soon .rows p { color: var(--muted); }
.soon__ask { margin-top: var(--s-7); }
#coming .section-head { margin-bottom: var(--s-8); }
@media (max-width: 639px) { .soon > div + div { margin-top: var(--s-7); } }
.menu-card--soon .panel { display: grid; place-items: center; background: var(--surface) !important; background-image: none !important; border: 1px solid var(--line); }
.menu-card--soon .panel::before, .menu-card--soon .panel::after { display: none !important; }
.soon__tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#custom .section-head--split { align-items: end; max-width: none; }
#custom .section-head--split h2 { max-width: 24ch; }
