/* ==========================================================================
   WORKBENCH AGENTS — Gallery Front Door + Dedicated Monograph README Pages
   ========================================================================== */

.tb-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .tb-wrap { padding: 0 34px; }
}

.tb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 7, 0.88);
  border-bottom: 1px solid var(--rim-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 60px;
}
.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.025em;
}
.tb-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.tb-nav a:hover { color: var(--ink); }

/* Gallery Hero — Split visual impact on PC, clean visual grab above fold on S24 */
.tb-hero {
  padding: 28px 0 36px;
}
@media (min-width: 900px) {
  .tb-hero {
    padding: 56px 0 60px;
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    gap: 44px;
    align-items: center;
  }
}
.tb-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 9.6vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.tb-lede {
  margin: 16px 0 0;
  font-size: clamp(16.5px, 4.1vw, 18.5px);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 48ch;
}
.tb-hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Stacked Real 2x Visual Centerpiece */
.tb-hero-visual {
  margin-top: 24px;
  background:
    radial-gradient(75% 75% at 50% 10%, var(--accent-halo), transparent 70%),
    var(--surface);
  border: 1px solid var(--rim);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--top-light), var(--depth);
}
@media (min-width: 900px) { .tb-hero-visual { margin-top: 0; padding: 12px; } }
.tb-hero-mainshot {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rim);
  cursor: pointer;
}
.tb-hero-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tb-mini-shot {
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--rim);
  background: #08080b;
  cursor: pointer;
  transition: border-color 0.14s;
}
.tb-mini-shot:hover { border-color: var(--accent-rim); }
.tb-mini-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.tb-mini-lbl {
  display: block;
  padding: 5px 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
}

/* Separated Showcase Bands */
.tb-band {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--rim-soft);
  scroll-margin-top: 72px;
}
.tb-band-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Wide Centerpiece Card for The Shelves */
.tb-feature {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 22px;
  box-shadow: var(--top-light), var(--depth);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.tb-feature:hover { border-color: var(--accent-rim); background: #121218; }
@media (min-width: 860px) {
  .tb-feature { grid-template-columns: 1.25fr 0.9fr; align-items: stretch; }
}
.tb-feature-img {
  padding: 10px;
  background: #08080b;
  display: flex;
  align-items: center;
}
@media (min-width: 860px) { .tb-feature-img { padding: 14px; } }
.tb-feature-img img { width: 100%; border-radius: 12px; border: 1px solid var(--rim); }
.tb-feature-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
@media (min-width: 860px) { .tb-feature-body { padding: 32px 34px; } }
.tb-feature-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.tb-feature-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.tb-open-cue {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

/* 3-Up Everyday Builds Gallery */
.tb-trio {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 820px) {
  .tb-trio { grid-template-columns: repeat(3, 1fr); }
}

/* 2-Up Bigger Builds Gallery */
.tb-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .tb-duo { grid-template-columns: repeat(2, 1fr); }
}

.tb-gal-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 18px;
  box-shadow: var(--top-light);
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
}
.tb-gal-card:hover { background: var(--surface-2); border-color: var(--rim-strong); }
.tb-gal-media {
  padding: 9px 9px 0;
  background: #08080b;
}
.tb-gal-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--rim-soft);
  border-bottom: 0;
}
.tb-gal-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.tb-gal-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tb-gal-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--ink-2);
}

/* Closing Door Surface */
.tb-door {
  margin-top: 44px;
  padding: 28px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--rim);
  box-shadow: var(--top-light), var(--depth);
  scroll-margin-top: 72px;
}
@media (min-width: 780px) {
  .tb-door {
    padding: 38px 40px;
    display: grid;
    grid-template-columns: 1.3fr 0.85fr;
    gap: 36px;
    align-items: center;
  }
}
.tb-door h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.tb-door p {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.tb-door-acts {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 780px) { .tb-door-acts { margin-top: 0; } }

.tb-footer {
  margin-top: 32px;
  padding: 18px 4px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.tb-footer a:hover { color: var(--ink); }

/* Dedicated Full-Page README Column */
.tb-doc-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 14px 80px;
}
@media (min-width: 720px) {
  .tb-doc-wrap { padding: 38px 34px 96px; }
}
