/* ==========================================================================
   Gear List (gear.html): page-specific layout only; components come from
   components.css. Sections: hero (title, the studio's line, the Book a session
   button and the amp-line banner), then the rack: search, category channels and the
   13 units, as listed on the live site's gear list.
   Moved from studio.css on 19 Oct 2026, when the gear list got its own page.
   ========================================================================== */

/* ---- 1. Hero ----------------------------------------------------------------- */
.g-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vh, 5.5rem));
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink); color: var(--cream);
}
.g-hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 40% at 88% 8%, rgba(124, 204, 191, .13), transparent 70%),
    radial-gradient(50% 45% at 4% 62%, rgba(255, 106, 43, .14), transparent 72%);
}
.gear__title { max-width: 6em; }   /* size: .t-hero (shared inner-page H1 scale) */
.gear__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); gap: 1.5rem clamp(2rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.gear__aside { display: grid; gap: 1.75rem; }
.gear__aside .lead { color: var(--muted); max-width: 46ch; }
.gear__banner { --ratio: 1536 / 320; }
.gear__banner img { filter: brightness(.8) saturate(.92); }
.gear__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 760px) {
  .g-hero { padding-top: calc(var(--header-h) + 2.25rem); }
  .gear__ctas .btn { flex: 1 1 auto; }
}

/* ---- 2. The rack: search, category channels, units ------------------------------ */
.gear {
  padding-top: clamp(.5rem, 1.5vw, 1.25rem);
  background:
    radial-gradient(45% 22% at 85% 28%, rgba(124, 204, 191, .07), transparent 72%),
    linear-gradient(180deg, var(--ink) 0, var(--ink-2) 18%, var(--ink-2) 86%, var(--ink) 100%);
}
.rack {
  position: relative; padding-inline: clamp(0px, 2.2vw, 34px);
  border-radius: 10px;
  background: linear-gradient(180deg, #24201f, #1a1716);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(0, 0, 0, .6);
}
/* rack ears with screws */
.rack::before, .rack::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(0px, 2.2vw, 34px);
  background:
    radial-gradient(circle at 50% 28px, #0d0b0b 0 4px, #4a4442 4.5px 7px, transparent 7.5px),
    radial-gradient(circle at 50% calc(100% - 28px), #0d0b0b 0 4px, #4a4442 4.5px 7px, transparent 7.5px),
    linear-gradient(90deg, #2b2726, #1d1a19);
}
.rack::before { left: 0; border-radius: 10px 0 0 10px; }
.rack::after { right: 0; border-radius: 0 10px 10px 0; }
.rack__panel {
  position: relative; overflow: clip;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #1b1817, #151211);
  border-inline: 1px solid rgba(0, 0, 0, .7);
}
.rack__bar {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.75rem;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.6rem);
  border-bottom: 1px solid rgba(0, 0, 0, .65); box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
.rack__search { position: relative; }
.rack__search-icon { position: absolute; left: 1rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -.525rem; color: var(--mint); pointer-events: none; }
.rack__input {
  padding-left: 2.8rem; padding-right: 3rem; min-height: 52px;
  font-family: var(--font-mono); font-size: .9rem; letter-spacing: .02em;
  background: #0f0d0c; border-color: rgba(243, 235, 224, .16);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5);
}
.rack__input::-webkit-search-cancel-button { filter: invert(.8); cursor: pointer; }
.rack__kbd {
  position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 4px;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: .72rem; pointer-events: none;
}
.rack__search:focus-within .rack__kbd { opacity: 0; }
.rack__status { color: var(--muted); text-transform: none; letter-spacing: .03em; line-height: 1.5; }
.rack__status b { color: var(--mint-hi); font-weight: 500; }
.rack__meters { display: grid; gap: 5px; }
.rack__meter { display: flex; align-items: center; gap: .5rem; }
.rack__meter-l { font-size: .6rem; color: var(--muted); width: .7rem; }
.rack__leds { display: grid; grid-template-columns: repeat(16, 6px); gap: 3px; }
.rack__leds i { display: block; height: 7px; border-radius: 1px; background: rgba(243, 235, 224, .08); transition: background-color .08s; }
.rack__leds i.is-on { background: var(--mint); box-shadow: 0 0 6px rgba(124, 204, 191, .6); }
.rack__leds i.is-on.is-warm { background: var(--hot-soft); box-shadow: 0 0 6px rgba(255, 179, 122, .55); }
.rack__leds i.is-on.is-hot { background: var(--hot); box-shadow: 0 0 8px rgba(255, 106, 43, .7); }

.rack__body { display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr); align-items: start; }
/* the sticky rail: its offset follows the header (gear.js sets --rack-top: the header's height while it
   shows, 0 once it hides on scroll down), and it never runs past the bottom of the screen */
.rack__channels {
  position: sticky; top: calc(var(--rack-top, var(--header-h)) + 1rem);
  max-height: calc(100vh - var(--rack-top, var(--header-h)) - 2rem); overflow-y: auto; scrollbar-width: thin;
  display: grid; gap: 4px; padding: clamp(1rem, 2vw, 1.4rem) clamp(.8rem, 1.4vw, 1.1rem);
  border-right: 1px solid rgba(0, 0, 0, .6); box-shadow: 1px 0 0 rgba(255, 255, 255, .03);
  transition: top .55s var(--ease-out);
}
.ch.chip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  width: 100%; min-height: 40px; padding: .45rem .7rem; border-radius: 4px; text-align: left;
  border-color: transparent; background: transparent; color: var(--muted);
  white-space: normal;
}
.ch.chip:hover { color: var(--cream); border-color: var(--line-strong); background: rgba(243, 235, 224, .03); }
.ch__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .chip__count { opacity: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--ink); box-shadow: 0 0 22px -6px rgba(124, 204, 191, .6); }
.ch[aria-pressed="true"] .chip__count { color: rgba(15, 13, 12, .7); }
.ch.is-empty { opacity: .38; }
.ch[data-cat="all"] { margin-bottom: .5rem; }

.rack__units { min-width: 0; padding: clamp(.5rem, 1vw, .75rem) clamp(1rem, 2vw, 1.6rem) clamp(1rem, 2vw, 1.6rem); }
.unit { padding-block: clamp(1.1rem, 2vw, 1.6rem); }
.unit + .unit { border-top: 1px solid rgba(0, 0, 0, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.unit__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.unit__title { font: inherit; margin: 0; }
.unit__title .tape { font-size: .74rem; }
.unit__meta { margin-left: auto; color: var(--muted); }
.unit__led { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(124, 204, 191, .9); }
.unit__inner { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.unit__inner:not(:has(.unit__photo)) { grid-template-columns: minmax(0, 1fr); }
.unit__photo { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 1; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 24px -12px rgba(0, 0, 0, .8); }
.unit__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); }
.unit__list { columns: 2; column-gap: 2rem; }
/* phones: first ten rows of a long category until "Show all" (gear.js sets .is-capped) */
.unit.is-capped .unit__list > .item:nth-child(n + 11) { display: none; }
.unit__more { margin-top: 1rem; min-height: 44px; }
.item[tabindex="-1"]:focus { outline: none; }
.unit__list:has(> :only-child), .unit__list:not(:has(> :nth-child(4))) { columns: 1; }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .75rem;
  padding: .55rem .4rem; border-bottom: 1px dashed rgba(243, 235, 224, .1);
  break-inside: avoid; transition: background-color .25s;
}
.item:hover { background: rgba(124, 204, 191, .05); }
.item__body { min-width: 0; }
.item__name { color: var(--cream); font-size: .95rem; line-height: 1.4; }
.item__note {
  display: inline-block; margin-left: .35rem; padding: .05rem .4rem; vertical-align: .1em;
  border: 1px solid rgba(124, 204, 191, .35); border-radius: 3px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-hi);
}
.item__detail { display: block; margin-top: .25rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em; color: var(--muted); line-height: 1.55; }
.item__qty {
  min-width: 2.4rem; padding: .15rem .4rem; text-align: center; border-radius: 3px;
  background: #0b1412; color: var(--mint-hi); border: 1px solid rgba(124, 204, 191, .2);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(124, 204, 191, .35);
}
.item__qty--none { background: transparent; border-color: transparent; color: rgba(163, 154, 144, .5); text-shadow: none; }
.item mark { background: rgba(124, 204, 191, .28); color: var(--cream); border-radius: 2px; padding: 0 .05em; box-shadow: 0 0 0 1px rgba(124, 204, 191, .35); }
.rack__empty { display: grid; gap: .9rem; justify-items: start; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 2vw, 1.6rem); }
.rack__empty-title { font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; max-width: 26ch; }
.rack__body:has(.rack__empty:not([hidden])) .rack__units { display: none; }
.rack__body .rack__empty { grid-column: 2; }
/* without JS the list reads in full, so the filter and search controls (which need JS) are left out */
html:not(.js) .rack__search, html:not(.js) .rack__meters, html:not(.js) .rack__channels { display: none; }
html:not(.js) .rack__bar { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .rack__body { grid-template-columns: minmax(0, 1fr); }
.gear__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; margin-top: 1.5rem; }
.gear__foot .mono { text-transform: none; letter-spacing: .03em; }
.gear__foot .link-arrow { min-height: 44px; }

/* laptop heights (1280x720, 1366x768 in a browser): a tighter rail, so all 14 channels fit beside the units */
@media (min-width: 901px) and (max-height: 800px) {
  .rack__channels { gap: 2px; padding-block: .8rem; }
  .ch.chip { min-height: 34px; padding-block: .3rem; }
  .ch[data-cat="all"] { margin-bottom: .35rem; }
}
/* touch screens have no "/" key: drop the shortcut hint and give the placeholder its room */
@media (hover: none), (max-width: 760px) {
  .rack__kbd { display: none; }
  .rack__input { padding-right: 1rem; }
}
@media (max-width: 1100px) {
  .gear__head { grid-template-columns: 1fr; }
  .rack__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .rack__status { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  .rack__body { grid-template-columns: minmax(0, 1fr); }
  .rack__channels {
    position: relative; top: 0; max-height: none; overflow-y: hidden; display: flex; gap: .45rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: .9rem; border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, .6);
  }
  .rack__channels::-webkit-scrollbar { display: none; }
  .ch.chip { display: inline-flex; width: auto; flex: none; min-height: 44px; border-color: var(--line-strong); padding-inline: .9rem; white-space: nowrap; }
  .ch[data-cat="all"] { margin-bottom: 0; }
  .rack__body .rack__empty { grid-column: 1; }
  .unit__inner { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 760px) {
  .gear__banner { --ratio: 2.3 / 1; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .gear__banner img { object-position: 30% 50%; }
  .rack { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding-inline: 0; }
  .rack::before, .rack::after { display: none; }
  .rack__panel { border-inline: 0; }
  .rack__bar { grid-template-columns: 1fr; padding: 1rem var(--gutter); }
  .rack__meters { display: none; }
  .rack__channels { padding-inline: var(--gutter); }
  .rack__units { padding-inline: var(--gutter); }
  .unit__inner { grid-template-columns: minmax(0, 1fr); }
  .unit__photo { display: none; }
  .unit__meta { margin-left: 0; width: 100%; order: 3; }
  .unit__led { margin-left: auto; }
  .item { gap: .6rem; padding-inline: 0; }
  .item__name { font-size: .92rem; }
  .unit__list { columns: 1; }
}
