/* ============================================================
   rb-port.css — Real Projects gallery + What's Included gallery,
   ported from renderblueprint.com (styles.css) on 2026-10-06 and
   re-themed for ProposalPros (seafoam on white). Both sections carry
   class "rbp" so the RB variable names resolve to PP colors below.
   ============================================================ */
.rbp {
  --cyan: var(--sea);
  --cyan-2: var(--sea-deep);
  --amber: var(--sea-ink);
  --amber-2: var(--sea-ink);
  --ink: var(--char-dark);
  --ink-2: var(--char);
  --ink-3: #7a7e88;
  --ink-4: #a2a6b0;
  --line: rgba(85, 88, 97, .14);
  --line-2: rgba(85, 88, 97, .24);
  --surface: #fff;
  --surface-2: var(--sea-wash-2);
  --rad: 18px;
  --rad-sm: 10px;
  --shadow-1: 0 24px 60px -28px rgba(63, 66, 75, .25);
  --shadow-2: 0 30px 80px -24px rgba(102, 181, 149, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Buttons used inside the ported sections: seafoam glass pill + white ghost pill */
.primary-btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.primary-btn {
  background: rgba(102, 181, 149, .78);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 28px -12px rgba(102,181,149,.7);
}
.primary-btn:hover { transform: translateY(-1px); background: rgba(78, 156, 125, .9); color: #fff; }
.ghost-btn { background: rgba(255,255,255,.7); color: var(--char-dark); border-color: rgba(85,88,97,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ghost-btn:hover { background: #fff; border-color: var(--sea); color: var(--sea-ink); }
.primary-btn.lg, .ghost-btn.lg { height: 52px; padding: 0 26px; font-size: 15px; }

/* Base tile (RB styles.css .tile) — the before/after stage and caption are absolutely positioned inside it */
.tile {
  position: relative;
  margin: 0;
  border-radius: var(--rad);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .35s var(--ease);
}
.tile:hover { transform: translateY(-2px); }

/* ===== Tile before/after slider ===== */
.tile-ba { cursor: ew-resize; }
.tile-ba:hover .tile-ba-img { transform: none; filter: none; }
.tile-ba-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #0a0c12;
  user-select: none;
}
.tile-ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.tile-ba-after-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 50%);
  transition: clip-path .25s var(--ease);
}
.tile-ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
  transform: translateX(-1px);
  transition: left .25s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.tile-ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(102, 181, 149, 0.2), 0 6px 20px rgba(102, 181, 149, 0.45);
  display: flex; align-items: center; justify-content: center;
}
.tile-ba-handle span {
  width: 10px; height: 10px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
}
.tile-ba-labels {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.tile-ba-lbl {
  font-family: 'Inter', sans-serif; font-size: 9px;
  padding: 4px 9px; border-radius: 4px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  display: flex; flex-direction: column; gap: 2px;
  color: var(--ink);
  pointer-events: none;
  z-index: 4;
}

/* When a tile has a YouTube link, lay caption out as a row: text left, thumbnail right */
.tile-ba figcaption:has(.tile-ba-yt) {
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
}
.tile-ba-cap-text {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.tile-ba-yt {
  flex-shrink: 0;
  position: relative;
  display: block;
  width: 110px; height: 62px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  pointer-events: auto;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tile-ba-yt:hover {
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 8px 22px rgba(0,0,0,0.7);
}
.tile-ba-yt img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tile-ba-yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 25px;
  background: rgba(204, 0, 0, 0.95);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tile-ba-yt-play svg { width: 14px; height: 14px; }
.tile figcaption strong {
  font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 17px;
}
.tile figcaption span { font-size: 13px; color: var(--ink-2); }


/* ===== Showcase project: tall tile + scaled drawing + real-home photos ===== */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 16px;
  padding: clamp(14px, 1.8vw, 24px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--rad) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.showcase .tile { grid-row: auto; min-height: 520px; }
/* Desktop/tablet only (not phones): showcase tile gets a double-size YouTube
   thumbnail. If the tile is too narrow for text + thumbnail, it drops below. */
@media (min-width: 721px) {
  .showcase .tile-ba figcaption { flex-wrap: wrap; }
  .showcase .tile-ba-cap-text { min-width: 160px; }
  .showcase .tile-ba-yt { width: 220px; height: 124px; border-radius: 10px; }
  .showcase .tile-ba-yt-play { width: 60px; height: 44px; border-radius: 10px; }
  .showcase .tile-ba-yt-play svg { width: 24px; height: 24px; }
}
.sc-drawing { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sc-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber-2);
  margin-bottom: 8px;
}
.sc-head h3, .sc-photos-head h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.sc-head p, .sc-photos-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.sc-thumb {
  position: relative;
  display: block;
  border-radius: var(--rad-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.sc-thumb img { width: 100%; height: auto; display: block; }
.sc-thumb:hover, .sc-thumb:focus-visible, .sc-photo:hover, .sc-photo:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(102, 181, 149, 0.5), var(--shadow-2);
  outline: none;
}
.sc-badge {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.88);
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.sc-badge svg { width: 16px; height: 16px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sc-photos { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.sc-photos-head { margin-bottom: 14px; }
.sc-photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sc-photo {
  position: relative;
  display: block; padding: 0; margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--rad-sm);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  cursor: zoom-in;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.sc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The four standard projects, 2 x 2 under the showcase: each card is the
   before/after tile with its scaled drawing docked underneath */
/* Desktop/tablet: the four projects sit in a 2 x 2 grid. Phones (<=720px, see
   RESPONSIVE below): the same cards become a one-at-a-time gallery with
   left/right arrows; app.js slides .proj-track and builds the dots. */
.proj-carousel { margin-top: 4px; }
.proj-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.proj-nav {
  display: none; align-items: center; justify-content: center; gap: 18px;
  margin-top: 14px;
}
/* Hint pill under the arrows (phones only, like the arrows): see-through
   iridescent red glass with a slow sheen. app.js adds .is-seen the first time
   it scrolls into view, which plays the shake once. */
.proj-hint { display: none; justify-content: center; margin: 16px 0 0; }
.proj-hint span {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(115deg,
    rgba(255, 45, 70, 0.42) 0%,
    rgba(255, 90, 150, 0.34) 30%,
    rgba(255, 70, 60, 0.46) 55%,
    rgba(255, 140, 110, 0.32) 80%,
    rgba(255, 45, 90, 0.42) 100%);
  background-size: 220% 100%;
  border: 1px solid rgba(255, 150, 160, 0.65);
  color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(60, 0, 10, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 22px -4px rgba(255, 50, 80, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: projHintHue 6s ease-in-out infinite alternate;
}
/* glossy highlight that sweeps across */
.proj-hint span::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: projHintSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
.proj-hint.is-seen { animation: projHintShake 0.9s ease-in-out 0.15s 2 both; }
@keyframes projHintHue { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes projHintSheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes projHintShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  12% { transform: translateX(-9px) rotate(-3deg); }
  26% { transform: translateX(9px) rotate(3deg); }
  40% { transform: translateX(-7px) rotate(-2deg); }
  54% { transform: translateX(7px) rotate(2deg); }
  68% { transform: translateX(-4px) rotate(-1deg); }
  82% { transform: translateX(4px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-hint.is-seen, .proj-hint span, .proj-hint span::after { animation: none; }
}
.proj-nav-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.proj-count { color: var(--ink-2); font-size: 15px; font-family: 'Inter', sans-serif; }
.proj-dots { display: flex; gap: 10px; }
.proj-dot {
  width: 12px; height: 12px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.14);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.proj-dot.is-active { background: var(--cyan); border-color: var(--cyan); transform: scale(1.25); }
.proj-arrow {
  flex: 0 0 56px; width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(102, 181, 149, 0.12);
  color: var(--cyan);
  font-size: 32px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 4px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.proj-arrow:hover, .proj-arrow:focus-visible { background: var(--cyan); color: #fff; outline: none; }
.proj-arrow:active { transform: scale(0.94); }
/* Two separate boxes per project: the before/after tile (fixed height, never
   squeezed) and, below it, its own scaled-drawing box */
.proj { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.proj .tile { grid-row: auto; height: 260px; flex: 0 0 auto; }
.proj-drawing {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.proj-thumb {
  flex: 0 0 168px;
  display: block;
  aspect-ratio: 17 / 11;
  border-radius: var(--rad-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.proj-thumb:hover, a.proj-thumb:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(102, 181, 149, 0.5), var(--shadow-2);
  outline: none;
}
.proj-thumb-empty {
  display: grid; place-items: center;
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
}
.proj-thumb-empty svg { width: 34px; height: 34px; }
.proj-drawing-body { flex: 1; min-width: 0; }
.proj-drawing-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-2);
  margin-bottom: 4px;
}
.proj-drawing-body p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.proj-actions .ghost-btn { display: inline-flex; align-items: center; gap: 8px; }
.proj-drawing-pending p { color: var(--ink-3); }

/* Photo gallery pop-up */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
  background: rgba(3, 4, 6, 0.95);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lightbox-img {
  max-width: 100%; max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: var(--rad-sm);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption {
  display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  color: var(--ink); font-size: 17px; text-align: center;
}
.lightbox-count { color: var(--ink-2); font-family: 'Inter', sans-serif; font-size: 15px; }
.lightbox-btn {
  flex: 0 0 60px; width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 34px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: var(--cyan); border-color: var(--cyan); color: #fff; outline: none; }
.lightbox-close { position: absolute; top: 18px; right: 18px; font-size: 24px; }


/* ====== WHAT'S INCLUDED gallery (added 2026-06-02) ======
   Tabbed showcase of the deliverables. Click a tab in the strip → the
   corresponding panel becomes visible. Desktop: 2-column panel (preview
   + description). Mobile: stacks vertically, tabs horizontally scroll. */
.included-gallery {
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  overflow: hidden;
}
.included-tabs {
  display: flex;
  gap: 4px;
  padding: 12px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.included-tabs::-webkit-scrollbar { height: 6px; }
.included-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }
.included-tab {
  flex: 1 0 auto;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.included-tab:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ink-2);
}
.included-tab.is-active {
  background: rgba(102, 181, 149, 0.1);
  border-color: rgba(102, 181, 149, 0.3);
  color: var(--cyan);
}
.included-tab-icon {
  font-size: 22px;
  line-height: 1;
}
.included-tab-label {
  white-space: nowrap;
}
.included-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 36px;
  animation: panelIn .35s var(--ease);
}
.included-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.included-preview {
  position: relative;
  border-radius: var(--rad-sm);
  overflow: hidden;
  background: #0a0c12;
  border: 1px solid var(--line);
  min-height: 260px;
}
.included-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.included-preview-video {
  display: block;
  text-decoration: none;
  aspect-ratio: 16 / 9;
}
.included-preview-video img {
  transition: transform .4s var(--ease), filter .3s var(--ease);
}
.included-preview-video:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.included-play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* YouTube-style red play button (rounded rectangle, white triangle) */
  width: 88px;
  height: 62px;
  background: #ff0000;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.included-play-overlay svg {
  width: 34px;
  height: 34px;
  margin-left: 3px;  /* visually center the triangle */
}
.included-preview-video:hover .included-play-overlay {
  transform: translate(-50%, -50%) scale(1.08);
}
.included-preview-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.included-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  aspect-ratio: 16 / 11;
}
.included-preview-grid img {
  border-radius: 6px;
  aspect-ratio: 16 / 11;
}
/* Photoreal Renders tab: one render at a time with left/right arrows */
.ig-gallery { aspect-ratio: 16 / 9; }
/* gallery + its hint pill stacked in the panel's left column; the pill reuses
   the red .proj-hint look but shows at every screen size */
.ig-wrap { min-width: 0; align-self: center; }
/* HOA kit page-flip gallery: portrait letter pages; the two landscape drawing
   pages at the end letterbox inside the same frame so nothing jumps */
.ig-gallery.pg-gallery { aspect-ratio: 8.5 / 11; max-height: 720px; overflow: visible; margin-bottom: 44px; }
.pg-gallery .ig-slide { overflow: hidden; border-radius: inherit; }
/* page counter sits just under the page so it never covers the document */
.pg-gallery .ig-count { top: calc(100% + 10px); bottom: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; }
/* Sample document previews (Scaled Drawing, Plant & Material List): the whole
   drawing shown uncropped; tapping it opens the PDF for pinch-zoom */
.doc-preview { display: block; min-height: 0; background: #fff; }
.included-preview.doc-preview img { height: auto; object-fit: contain; }
.doc-preview .included-preview-badge { color: #fff; }
.doc-preview:hover, .doc-preview:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(102, 181, 149, 0.5), var(--shadow-2); outline: none; }
.doc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.doc-actions .ghost-btn { display: inline-flex; align-items: center; gap: 8px; }
.proj-hint.ig-hint { display: flex; margin-top: 14px; }
.ig-slide {
  position: absolute; inset: 0;
  display: block; padding: 0; margin: 0; border: 0;
  background: none;
  cursor: zoom-in;
}
.ig-slide[hidden] { display: none; }
.included-preview .ig-slide img { object-fit: contain; }
.ig-arrow {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 7, 10, 0.72);
  color: #fff;
  font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 4px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ig-prev { left: 12px; }
.ig-next { right: 12px; }
.ig-arrow:hover, .ig-arrow:focus-visible { background: var(--cyan); border-color: var(--cyan); color: #fff; outline: none; }
.ig-count { pointer-events: none; z-index: 2; }

.included-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, rgba(102, 181, 149, 0.04), rgba(255, 184, 107, 0.03));
  border: 1px dashed rgba(102, 181, 149, 0.25);
}
.included-placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
  max-width: 340px;
}
.included-placeholder-icon {
  font-size: 52px;
  line-height: 1;
  opacity: 0.7;
}
.included-placeholder-card strong {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.included-placeholder-card small {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.included-desc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
}
.included-desc h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.included-desc p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.included-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.included-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.included-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 700;
}
.included-optional-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255, 184, 107, 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 107, 0.3);
  border-radius: 999px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .included-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .included-tab-label {
    font-size: 11.5px;
  }
  .included-tab-icon {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  /* Tabs — allow 2 rows so all 5 are visible without horizontal scrolling.
     3 per row (with row 2 holding 2 centered tabs) reads cleaner on phones
     than the old "swipe to see the rest" pattern, especially for older users. */
  .included-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 8px;
    gap: 4px;
  }
  .included-tab {
    flex: 0 0 calc((100% - 8px) / 3);  /* 3 cols, accounting for 2× 4px gaps */
    min-width: 0;
    padding: 8px 4px;
    gap: 4px;
  }
  .included-tab-icon { font-size: 18px; }
  .included-tab-label {
    font-size: 10.5px;
    line-height: 1.15;
    white-space: normal;     /* allow wrap for longer labels */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Panel — tighten paddings and font sizes so the section reads comfortably
     on a phone viewport without overflowing or feeling cramped. */
  /* tight side padding so drawings/pages display as large as the phone allows */
  .included-panel { padding: 6px; gap: 16px; }
  .included-panel .included-desc { padding: 0 10px 10px; }
  .included-preview { min-height: 180px; }
  .included-preview.doc-preview { min-height: 0; }
  .ig-gallery.pg-gallery { max-height: none; }
  .doc-actions .primary-btn, .doc-actions .ghost-btn { flex: 1 1 auto; justify-content: center; }
  .included-desc h3 { font-size: 17px; gap: 6px; }
  .included-desc p  { font-size: 13.5px; line-height: 1.5; }
  .included-bullets li { font-size: 12.5px; padding-left: 18px; line-height: 1.4; }

  /* Placeholder cards — smaller icon + padding so they fit the panel snugly */
  .included-placeholder-icon { font-size: 42px; }
  .included-placeholder-card { padding: 20px; max-width: 280px; }
  .included-placeholder-card strong { font-size: 16px; }
  .included-placeholder-card small  { font-size: 11.5px; }

  /* Video play-button overlay + badge — proportional to the smaller preview */
  .included-play-overlay { width: 66px; height: 46px; border-radius: 13px; }
  .included-play-overlay svg { width: 24px; height: 24px; }
  .included-preview-badge { font-size: 10px; bottom: 10px; left: 10px; padding: 5px 10px; }

  /* Give the gallery a touch more horizontal breathing room by trimming
     the section's side padding (default clamp() bottoms out at 20px). */
  .rbp.included {
    padding-left: 8px;
    padding-right: 8px;
  }
  /* the heading keeps normal side margins; only the gallery card goes wide */
  .rbp.included .section-head { padding: 0 14px; }
}


@media (max-width: 1024px) {
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .showcase .tile { min-height: 440px; }
  .proj .tile { height: 240px; }
  .proj-viewport { overflow: hidden; padding: 6px 2px; margin: -6px -2px; }
  .proj-track { display: flex; gap: 20px; align-items: stretch; transition: transform .45s var(--ease); will-change: transform; }
  .proj-track .proj { flex: 0 0 100%; }
  .proj-track .proj-drawing { flex: 1; }
  .proj-nav { display: flex; }
  .proj-hint { display: flex; }
  .proj-thumb { flex-basis: 112px; }
  .sc-photos-grid { grid-template-columns: 1fr 1fr; }
  .sc-actions .primary-btn, .sc-actions .ghost-btn { width: 100%; }
  .lightbox { padding: 12px; gap: 0; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 16px; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-img { max-height: calc(100vh - 220px); }
  .lightbox-figure { margin-bottom: 70px; }
}

/* ---------- light-theme overrides (RB is a dark site) ---------- */
.tile { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.tile figcaption { color: #fff; }
.tile figcaption span { color: #d5d8de; }
.tile-ba-lbl { font-family: 'Inter', sans-serif; font-weight: 700; }
.sc-badge { color: #fff; }
.sc-tag, .proj-drawing-label { font-weight: 700; }
.proj-dot { background: rgba(85, 88, 97, .18); }
.proj-arrow { background: rgba(102, 181, 149, .14); }
.proj-count { font-weight: 600; }
.lightbox figcaption { color: #fff; }
.lightbox-count { color: #d5d8de; }
.included-gallery { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow-1); }
.included-tabs { background: var(--sea-wash-2); scrollbar-color: rgba(85,88,97,.25) transparent; }
.included-tabs::-webkit-scrollbar-thumb { background: rgba(85,88,97,.25); }
.included-tab { font-weight: 600; }
.included-tab:hover { background: rgba(102, 181, 149, .08); }
.included-tab.is-active { background: rgba(102, 181, 149, .14); border-color: rgba(102, 181, 149, .45); color: var(--sea-ink); }
.included-preview-badge { color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; }
.included-desc h3 { font-weight: 800; }
.included-optional-tag { background: rgba(102,181,149,.12); color: var(--sea-ink); border-color: rgba(102,181,149,.35); font-weight: 700; }
.sc-head h3, .sc-photos-head h3 { font-weight: 800; }
