/* Gallery (2026-10-08, tools/build_gallery.py): the shop's builds, one card per job, searchable by make and service, each
   opening to its full set in a viewer with its own link (#slug). The site's world: near-black over the neon backdrop,
   Bebas Neue over Saira, the pink-to-coral gradient on what is chosen. */
.gl{--gl-line:#ffffff1f;--gl-line2:#ffffff14;--gl-ink:#f4efe8;--gl-mut:#d8d1c8;--gl-sub:var(--text-soft,#bcb9b0);--gl-coral:var(--brand-coral,#f59154);
  --gl-pink:var(--brand-pink,#ea138f);--gl-grad:var(--brand-gradient,linear-gradient(405deg,#ea138f 0%,#f59154 100%));--gl-card:#151412;--gl-ease:cubic-bezier(.16,1,.3,1)}
.gl .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- hero: the words, and three builds in photographs (each opens its set) ---------- */
.site-page .gl-hero{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(28px,4vw,64px);align-items:center;padding-bottom:30px}
.gl-hero h1 em{font-family:var(--brand-heading);font-style:normal;color:var(--gl-coral)}
html:not(#tw-type) .gl-hero .lead{margin:18px 0 22px;max-width:44ch}
.gl-hero__tiles{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:12px;align-items:end}
.gl-tile{position:relative;display:block;overflow:hidden;border-radius:14px;border:1px solid var(--card-line,#f6cfe533);aspect-ratio:3/4;
  box-shadow:0 30px 60px -30px #000;text-decoration:none;color:#fff}
.gl-tile:nth-child(1){aspect-ratio:4/5}.gl-tile:nth-child(2){margin-bottom:28px}
.gl-tile img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .8s var(--gl-ease)}
.gl-tile::after{content:'';position:absolute;inset:auto 0 0 0;height:46%;background:linear-gradient(to top,#09070bd9,#09070b00)}
.gl-tile__label{position:absolute;left:12px;right:12px;bottom:12px;z-index:1;display:grid;gap:4px;font-family:var(--brand-heading);font-size:20px;line-height:1;letter-spacing:.01em}
.gl-tile__label i{font-family:var(--brand-body);font-style:normal;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#f8b98f}
.gl-tile:focus-visible{outline:2px solid #f5add1;outline-offset:3px}
@media (hover:hover){.gl-tile:hover img{transform:scale(1.05)}}
.gl-stats{display:flex;gap:28px;margin:0;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gl-sub)}
.gl-stats b{display:block;font-family:var(--brand-heading);font-weight:400;font-size:52px;line-height:.9;letter-spacing:.01em;color:#fff;margin-bottom:4px}

/* ---------- search and filters ---------- */
.site-page .gl-browse{padding-top:12px}
.gl-tools{display:grid;gap:14px;padding:22px 24px 18px;margin-bottom:28px;background:var(--glass,rgba(20,14,20,.82));border:1px solid var(--card-line,#f6cfe533);
  border-radius:18px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.gl-search{position:relative;display:block}
.gl-search svg{position:absolute;left:16px;top:50%;width:18px;height:18px;margin-top:-9px;color:var(--gl-sub);pointer-events:none}
.gl-search input{width:100%;height:52px;padding:0 18px 0 46px;border:1px solid var(--gl-line);border-radius:12px;background:#0d0a0ccc;color:#fff;
  font:500 16px/1 var(--brand-body);outline:none;transition:border-color .2s,box-shadow .2s}
.gl-search input::placeholder{color:#9d958d}
.gl-search input:focus{border-color:#f59154aa;box-shadow:0 0 0 3px #ea138f33}
.gl-filter{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;gap:10px}
.gl-filter__k{padding-top:9px;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gl-sub)}
.gl-chips{display:flex;flex-wrap:wrap;gap:7px}
.gl-chip{appearance:none;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 12px;border:1px solid var(--gl-line);border-radius:999px;
  background:#ffffff08;color:var(--gl-ink);font:600 13.5px/1 var(--brand-body);cursor:pointer;transition:border-color .2s,background .2s,color .2s}
.gl-chip i{font-style:normal;font-size:11.5px;font-weight:700;color:var(--gl-sub);font-variant-numeric:tabular-nums}
.gl-chip:hover{border-color:#ffffff55;background:#ffffff10}
.gl-chip[aria-pressed="true"]{border-color:transparent;background:var(--gl-grad);color:#fff}
.gl-chip[aria-pressed="true"] i{color:#ffffffcc}
.gl-chip:disabled{opacity:.36;cursor:default}
.gl-chip:disabled:hover{border-color:var(--gl-line);background:#ffffff08}
.gl-count:focus{outline:none}
.gl-chip:focus-visible,.gl-copy:focus-visible,.gl-reset:focus-visible,.gl-card:focus-visible{outline:2px solid #f5add1;outline-offset:3px}
.gl-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding-top:4px;border-top:1px solid var(--gl-line2)}
html:not(#tw-type) .gl-count{margin:10px auto 0 0;font-size:14px;color:var(--gl-sub)}
.gl-count b{color:#fff}
.gl-copy,.gl-reset{appearance:none;display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:7px 12px;border:1px solid var(--gl-line);border-radius:999px;
  background:none;color:var(--gl-ink);font:700 12px/1 var(--brand-body);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:border-color .2s,color .2s}
.gl-copy svg{width:14px;height:14px}
.gl-copy:hover,.gl-reset:hover{border-color:var(--gl-coral);color:#fff}
.gl-copy.is-done{border-color:#62d39488;color:#9fe8bd}

/* ---------- the builds ---------- */
.gl-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.gl-item[hidden]{display:none}
.gl-card{display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:14px;background:var(--gl-card);border:1px solid var(--gl-line);
  color:inherit;text-decoration:none;transition:border-color .25s,transform .45s var(--gl-ease),box-shadow .45s var(--gl-ease)}
.gl-card__media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#0d0a0c}
.gl-card__media img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .8s var(--gl-ease)}
.gl-card__n svg{width:13px;height:13px;margin-right:4px;vertical-align:-2px}
.gl-card__n{position:absolute;right:10px;top:10px;min-width:30px;padding:5px 8px;border-radius:999px;background:#0d0a0cd9;color:#fff;
  font:700 12px/1 var(--brand-body);text-align:center;font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.gl-card__body{flex:1;display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px}
.gl-card__title{font-family:var(--brand-heading);font-weight:400;font-size:24px;line-height:1.02;letter-spacing:.01em;color:#fff}
.gl-card__sub{font-size:13.5px;line-height:1.35;color:var(--gl-mut)}
.gl-card__tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:4px}
.gl-card__tags .gl-card__more{display:none}
.gl-card__tags span{padding:4px 8px;border-radius:999px;border:1px solid #f5915455;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#f8b98f;line-height:1}
@media (hover:hover){
  .gl-card:hover{border-color:#f5915477;transform:translateY(-3px);box-shadow:0 24px 40px -24px #000}
  .gl-card:hover .gl-card__media img{transform:scale(1.04)}
}
.gl-empty{padding:36px 0;text-align:center;color:var(--gl-sub)}
html:not(#tw-type) .gl-empty p{margin:0 auto 12px;max-width:56ch}
.gl-empty__ask{margin-left:14px;color:#fff;font-weight:700;text-decoration:none;border-bottom:1px solid var(--gl-coral)}
.gl-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:16px;height:16px;cursor:pointer;
  background:linear-gradient(45deg,transparent 44%,#f59154 44%,#f59154 56%,transparent 56%),linear-gradient(-45deg,transparent 44%,#f59154 44%,#f59154 56%,transparent 56%)}

/* ---------- close ---------- */
.gl-cta{text-align:center}
.gl-cta h2{margin:0 0 22px;font-family:var(--brand-heading);font-weight:400;font-size:clamp(40px,4.6vw,66px);line-height:1}
.gl-cta h2 em{font-style:normal;font-family:var(--brand-heading);color:var(--gl-coral)}
.gl-cta__actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 26px}
.gl-call{display:inline-flex;align-items:center;gap:10px;color:var(--gl-ink);font-weight:700;text-decoration:none;border-bottom:1px solid #ffffff55;padding-bottom:5px;transition:border-color .2s}
.gl-call:hover{border-color:var(--gl-coral)}
.gl-call svg{width:18px;height:18px}
.gl-cta .fine-print{margin:34px auto 0}

/* ---------- the viewer ---------- */
.gl-lb{position:fixed;inset:0;z-index:200;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#080609f5;color:var(--gl-ink);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;transition:opacity .3s}
.gl-lb[hidden]{display:none}
.gl-lb.is-open{opacity:1}
.gl-lb__top{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;padding:10px clamp(16px,3vw,32px);border-bottom:1px solid var(--gl-line2)}
.gl-lb__head{min-width:0}
.gl-lb__head h2{margin:0;font-family:var(--brand-heading);font-weight:400;font-size:clamp(24px,2.4vw,34px);line-height:1;letter-spacing:.01em;color:#fff}
.gl-lb__meta{margin:6px 0 0;font-size:13.5px;color:var(--gl-mut)}
.gl-lb__meta a{color:#f8b98f;text-decoration:none;border-bottom:1px solid #f5915455}
.gl-lb__meta a:hover{color:#fff}
.gl-lb__actions{display:flex;align-items:center;gap:10px;flex:none}
.gl-lb__copy{appearance:none;display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid var(--gl-line);border-radius:999px;background:none;
  color:var(--gl-ink);font:700 12px/1 var(--brand-body);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:border-color .2s,color .2s}
.gl-lb__copy svg{width:14px;height:14px}
.gl-lb__copy:hover{border-color:var(--gl-coral)}
.gl-lb__copy.is-done{border-color:#62d39488;color:#9fe8bd}
.gl-lb__quote{min-width:0;padding:11px 18px;font-size:14px}
.gl-lb__close{appearance:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--gl-line);background:none;color:#fff;cursor:pointer;transition:border-color .2s,background .2s}
.gl-lb__close svg{width:18px;height:18px}
.gl-lb__close:hover{border-color:var(--gl-coral);background:#ffffff0d}
/* rows and columns sized to the stage (minmax(0,1fr)), so the photo is fitted inside it; an auto row grew to the photo
   and a portrait one showed only its top (QA judge 2026-10-08) */
.gl-lb__stage{position:relative;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);place-items:center;min-height:0;
  padding:14px clamp(56px,6vw,90px);touch-action:pan-y}
.gl-lb__fig{margin:0;width:100%;height:100%;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);place-items:center;min-height:0;min-width:0}
.gl-lb__img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:6px;box-shadow:0 30px 70px -30px #000;
  transition:opacity .25s;user-select:none;-webkit-user-drag:none}
.gl-lb__img.is-loading{opacity:.35}
.gl-lb__nav{position:absolute;top:50%;width:48px;height:48px;margin-top:-24px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff40;
  background:#0d0a0ccc;color:#fff;cursor:pointer;transition:background .2s,border-color .2s}
.gl-lb__nav svg{width:20px;height:20px}
.gl-lb__nav:hover{background:var(--gl-grad);border-color:transparent}
.gl-lb__prev{left:clamp(8px,1.5vw,20px)}.gl-lb__next{right:clamp(8px,1.5vw,20px)}
.gl-lb__foot{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px;padding:12px clamp(16px,3vw,32px) 16px;border-top:1px solid var(--gl-line2)}
html:not(#tw-type) .gl-lb__count{margin:0;font-size:13px;font-weight:700;letter-spacing:.1em;color:var(--gl-sub);font-variant-numeric:tabular-nums}
.gl-lb__thumbs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;scroll-behavior:smooth;padding:2px}
.gl-lb__thumbs button{appearance:none;flex:none;width:64px;height:48px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#0d0a0c;cursor:pointer;opacity:.55;
  transition:opacity .2s,border-color .2s}
.gl-lb__thumbs button img{display:block;width:100%;height:100%;object-fit:cover;max-width:none}
.gl-lb__thumbs button:hover{opacity:.9}
.gl-lb__thumbs button[aria-current="true"]{opacity:1;border-color:var(--gl-coral)}
.gl-lb button:focus-visible,.gl-lb a:focus-visible{outline:2px solid #f5add1;outline-offset:2px}
html.gl-locked,html.gl-locked body{overflow:hidden}

@media (max-width:1180px){
  .gl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* one row of each, scrolling sideways, rather than three rows of makes above the first build */
  .gl-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
  .gl-chips::-webkit-scrollbar{display:none}
  .gl-chip{flex:none}
}
@media (max-width:1000px){
  .site-page .gl-hero{grid-template-columns:1fr;gap:22px}
  .gl-hero__tiles{order:-1}
}
@media (max-width:800px){
  .gl-hero__copy{align-items:flex-start}
  .gl-stats b{font-size:42px}
  .gl-tools{padding:16px 14px 12px;border-radius:14px}
  .gl-filter{grid-template-columns:1fr;gap:7px}
  .gl-filter__k{padding-top:0}
  /* a long make list scrolls sideways on a phone instead of filling the screen */
  .gl-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:0 14px 2px;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .gl-chips::-webkit-scrollbar{display:none}
  .gl-chip{flex:none}
  .gl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .gl-card{border-radius:11px}
  .gl-card__body{padding:10px 11px 12px;gap:4px}
  .gl-card__title{font-size:19px}
  .gl-card__sub{font-size:12px}
  .gl-card__tags{flex-wrap:nowrap;overflow:hidden}
  .gl-card__tags span{font-size:11px;padding:3px 6px;flex:none}
  .gl-card__tags span:not(:first-child):not(.gl-card__more){display:none}
  .gl-card__tags .gl-card__more{display:inline-block}
  .gl-tile{border-radius:11px}
  .gl-tile:nth-child(2){margin-bottom:16px}
  .gl-tile__label{left:8px;right:8px;bottom:8px;font-size:15px}
  .gl-tile__label i{font-size:9px}
  .gl-card__n{right:7px;top:7px;font-size:11px;padding:4px 7px;min-width:26px}
  /* the top bar's two halves go to the two ends: the title (and close) on top, the actions under the thumbnails */
  .gl-lb{grid-template-rows:auto minmax(0,1fr) auto auto}
  .gl-lb__top{display:contents}
  .gl-lb__head{padding:10px 58px 8px 14px;border-bottom:1px solid var(--gl-line2)}
  .gl-lb__head h2{font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gl-lb__meta{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gl-lb__actions{grid-row:4;justify-content:space-between;padding:4px 12px 12px}
  .gl-lb__quote{padding:10px 16px;font-size:13px}
  .gl-lb__close{position:absolute;top:8px;right:10px;width:44px;height:44px}
  .gl-lb__stage{grid-row:2;padding:6px 0}
  .gl-lb__img{border-radius:0}
  .gl-lb__nav{width:44px;height:44px;margin-top:-22px;background:#0d0a0c99;border-color:#ffffff33}
  .gl-lb__prev{left:6px}.gl-lb__next{right:6px}
  .gl-lb__foot{grid-row:3;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:8px 12px 6px}
  .gl-lb__thumbs button{width:56px;height:44px}
}
@media (prefers-reduced-motion:reduce){.gl-card,.gl-card__media img,.gl-lb,.gl-lb__img{transition:none}}

.gl-status{scroll-margin-top:96px}
/* the site's .section-heading is a 1fr/2fr grid: in this narrow hero column it squeezed the h1 to four lines */
.gl-hero .section-heading{display:block;margin-bottom:0}
/* a phone: one build, large, rather than three too small to read */
@media (max-width:700px){
  .gl-hero__tiles{grid-template-columns:1fr}
  .gl-tile:nth-child(n+2){display:none}
  .gl-tile:nth-child(1){aspect-ratio:16/10}
  .gl-tile__label{left:12px;bottom:12px;font-size:20px}
  .gl-tile__label i{font-size:10.5px}
}
