/* Bob's Machine theme: home page blocks. Also loaded by the plate finder page. */

.hero { position: relative; background: var(--hero-cream); overflow: hidden; }
.brand-strip { position: absolute; top: 0; left: 0; height: 4px; width: 100%; background: var(--red); z-index: 4; transform-origin: left center; animation: brandStripGrow 1.2s .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes brandStripGrow { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.hero-media { position: relative; aspect-ratio: 4 / 3; background: var(--hero-cream); overflow: hidden; }
.slide-media { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s cubic-bezier(.16,1,.3,1), visibility 1s; }
.slide-media.on { opacity: 1; visibility: visible; }
.slide-media img, .slide-media picture { width: 100%; height: 100%; }
.slide-media img { object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.hero-video.on { opacity: 1; }
.slide-product { display: flex; align-items: center; justify-content: center; height: 100%; isolation: isolate; background: var(--hero-cream); }
.slide-product img { width: auto; height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.hero-shade { display: none; }
.hero-copy { position: relative; z-index: 2; padding-top: 22px; padding-bottom: 48px; }
.hero-texts { display: grid; }
.slide-text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1), visibility .7s; }
.slide-text.on { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.hero-sub { color: rgba(10,14,20,.75); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-soft); }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.hero-controls .wrap { display: flex; align-items: center; gap: 2px; padding-bottom: 8px; }
.hero-dot { width: 44px; height: 32px; padding: 14px 4px; background: none; border: 0; cursor: pointer; }
.hero-dot span { display: block; height: 4px; background: rgba(10,14,20,.2); position: relative; overflow: hidden; }
.hero-dot i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); }
.hero-dot.on i { width: 100%; transition: width var(--dur, 7s) linear; }
.hero-pause { width: 32px; height: 32px; margin-left: 2px; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.hero-pause svg { width: 14px; height: 14px; }
.hero-arrow { display: none; }
.big-finder { position: relative; background: var(--ink); color: #fff; padding: 48px 0; }
.big-finder::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.finder-grid { display: grid; gap: 32px; }
.finder-eyebrow { color: var(--red-on-dark); margin-bottom: 16px; }
.finder-sub { color: rgba(255,255,255,.6); margin-bottom: 8px; }
.finder-link { color: var(--red-on-dark); }
.finder-link:hover { text-decoration: underline; }
.finder-fields { display: grid; gap: 12px; margin-bottom: 16px; }
.big-finder label { display: block; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.big-finder-input { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: 0; background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 20px center; padding: 18px 50px 18px 20px; color: #fff; font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif; font-size: 15px; -webkit-appearance: none; appearance: none; opacity: .75; }
.big-finder-input option { background: var(--ink); }
.finder-note { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-pill { position: relative; display: flex; flex-direction: column; align-items: center; padding: 12px; border: 1px solid var(--rule); background: #fff; color: var(--ink); text-align: center; transition: border-color .2s, transform .3s; }
.cat-pill:hover { border-color: var(--ink); transform: translateY(-3px); }
.cat-pill-ico { display: block; width: 100%; aspect-ratio: 1; background: var(--cream); margin-bottom: 10px; isolation: isolate; }
.cat-from { color: var(--ink-soft); }
.cat-logo { position: absolute; left: 18px; top: 18px; width: 44px; height: 44px; z-index: 1; }
.cats-note { margin-top: 16px; color: var(--ink-soft); }
.filters-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.filters-scroll::-webkit-scrollbar { display: none; }
.filter-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif; font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .2s; }
.filter-pill:hover { border-color: var(--ink); }
.parts { display: grid; gap: 20px; border: 1px solid var(--rule); background: #fff; padding: 24px 20px; }
.parts-text p.txt { color: var(--ink-soft); margin: 12px 0 18px; }
.part-links { display: grid; grid-template-columns: 1fr; align-content: start; }
.part-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; font-weight: 500; }
.part-links a:hover { color: var(--red); }
.part-links a::after { content: '\2192'; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 12px; color: var(--ink-soft); }
.tss { background: var(--tss-black); color: #fff; }
.tss :focus-visible { outline-color: var(--red-on-dark); }
.tss-top { display: grid; gap: 22px; padding: 24px 20px 28px; }
.tss-brandline { display: flex; align-items: flex-start; gap: 14px; }
.tss-logo { width: 84px; height: auto; flex-shrink: 0; }
.tss-phrase { color: rgba(255,255,255,.78); margin: 14px 0 12px; }
.tss-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.tss-score .stars { margin: 0; }
.tss-brands { display: grid; gap: 8px; margin-bottom: 18px; }
.tss-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); transition: border-color .15s, background-color .15s; }
.tss-brand:hover { border-color: var(--red-on-dark); background: rgba(255,255,255,.04); }
.tss-brand .mono { color: rgba(255,255,255,.65); white-space: nowrap; }
.tss-photo { position: relative; min-height: 240px; }
.tss-photo img { width: 100%; height: 100%; object-fit: cover; }
.tss-sub { color: rgba(255,255,255,.7); margin-bottom: 12px; }
.tss-row { padding: 24px 20px; border-top: 1px solid rgba(255,255,255,.14); }
.tss-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tss-card { display: flex; flex-direction: column; background: #fff; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.tss-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.7); }
.tss-card-img { display: block; aspect-ratio: 4 / 3; background: #fff; }
.tss-card-img img { width: 100%; height: 100%; object-fit: contain; }
.tss-card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; border-top: 1px solid var(--rule-light); }
.tss-card .product-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tss-quotes { display: grid; gap: 10px; }
.tss-quote { padding: 16px; border: 1px solid rgba(255,255,255,.16); }
.tss-quote .stars { margin: 0 0 8px; }
.tss-quote blockquote { margin-bottom: 8px; }
.tss-quote figcaption { color: rgba(255,255,255,.65); }
.cross { display: grid; gap: 12px; }
.cross-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--rule); color: var(--ink); transition: border-color .2s, transform .2s; }
.cross-card:hover { border-color: var(--ink); transform: translateX(3px); }
.cross-img { flex: 0 0 72px; width: 72px; height: 72px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cross-img img { width: 100%; height: 100%; object-fit: contain; }
.cross-name { display: block; margin-bottom: 4px; }
.cross-price { display: block; }
.reviews { display: grid; gap: 24px; }
.hist { margin: 16px 0; }
.hist li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; padding: 4px 0; }
.hist .lbl { flex: 0 0 44px; }
.hist .bar { flex: 1; height: 8px; background: var(--rule); position: relative; }
.hist .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.hist .n { flex: 0 0 32px; text-align: right; font-size: 12px; color: var(--ink-soft); }
.quotes { display: grid; gap: 12px; align-content: start; }
.quote { padding: 20px; background: var(--cream); border: 1px solid var(--rule); }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.quote-top .stars { margin: 0; }
.quote blockquote { color: rgba(10,14,20,.8); margin-bottom: 8px; }
.quote figcaption { color: var(--ink-soft); }
.story-mini { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); border-top: 1px solid var(--rule); }
.shop { display: grid; gap: 24px; }
.shop-text p.txt { color: rgba(10,14,20,.7); margin-bottom: 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { padding: 16px 8px; background: #fff; border: 1px solid var(--rule); text-align: center; }
.tile b { display: block; margin-bottom: 4px; }
.tile > span { display: block; color: var(--ink-soft); }
/* The dealers tile is a link to the dealer search on Contact (Egor 11.11). */
a.tile-link { color: inherit; transition: border-color .2s; }
a.tile-link:hover, a.tile-link:focus-visible { border-color: var(--ink); }
.ig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ig-who { display: flex; align-items: center; gap: 16px; }
.ig-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#FEDA75,#FA7E1E,#D62976,#962FBF); padding: 2px; flex-shrink: 0; }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; }
.ig-follow { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 13px; padding: 11px 18px; transition: background-color .2s, transform .15s; }
.ig-follow:hover { background: #000; transform: translateY(-1px); }
.ig-follow svg { width: 16px; height: 16px; }
.ig-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.ig-row::-webkit-scrollbar { display: none; }
.ig-card { position: relative; display: block; aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--rule); }
.ig-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.ig-card:hover img { transform: scale(1.05); }
.ig-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,0) 60%, rgba(10,14,20,.85) 100%); }
.ig-go { position: absolute; left: 14px; bottom: 14px; z-index: 2; color: #fff; }
/* Live feed (mu-plugin bm-instagram.php): the same 9:16 cards and 5 across as the block before it (Egor 12.11), the caption on hover,
   a mark on Reels and carousels. Square and wide posts (.ig-fit) show whole over a blurred, darkened copy of the same picture. */
.ig-fit .ig-main { object-fit: contain; }
.ig-card .ig-bg, .ig-card:hover .ig-bg { transform: scale(1.25); filter: blur(18px) brightness(.55) saturate(1.1); }
.ig-live .ig-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(10,14,20,.6); opacity: 0; transition: opacity .3s; }
.ig-kind { position: absolute; top: 10px; right: 10px; z-index: 2; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.ig-kind svg { width: 100%; height: 100%; display: block; }
.ig-cap { position: absolute; left: 14px; right: 14px; bottom: 38px; z-index: 2; color: #fff; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@media (hover: hover) {
  .ig-live .ig-card:hover::before, .ig-live .ig-card:focus-visible::before { opacity: 1; }
  .ig-live .ig-card:hover .ig-cap, .ig-live .ig-card:focus-visible .ig-cap { opacity: 1; transform: none; }
}
@media (min-width: 1024px) {
  .ig-live .ig-card:nth-child(n+6) { display: none; }
}
@media (min-width: 768px) {
  .hero-media { aspect-ratio: 16 / 7; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tss-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tss-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tss-brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .tss-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .filters-scroll { margin: 0 0 24px; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; }
  .cross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .finder-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 4fr 8fr; gap: 40px; }
  .shop { grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
  .ig-row { margin: 0; padding: 0 0 6px; }
  .parts { grid-template-columns: 5fr 7fr; gap: 40px; padding: 32px; }
  .part-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .tss-top { grid-template-columns: 7fr 5fr; padding: 32px; gap: 32px; }
  .tss-row { padding: 28px 32px; }
  .tss-logo { width: 104px; }
}
@media (min-width: 1024px) {
  .big-finder { padding: 80px 0; }
  .ig-row { grid-template-columns: repeat(5, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; }
  .cats { gap: 12px; }
}
@media (min-width: 1200px) {
  .hero { min-height: 640px; display: flex; align-items: center; }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .slide-product { justify-content: flex-end; padding-right: max(60px, calc((100vw - 1480px) / 2 + 60px)); }
  .slide-product img { height: 88%; }
  .hero-shade { display: block; position: absolute; inset: 0; pointer-events: none; }
  .hero-copy { padding-top: 96px; padding-bottom: 96px; }
  .hero-texts { width: 44%; }
  .slide-text.dark, .slide-text.dark .hero-sub { color: #fff; }
  .slide-text.dark .hero-sub { color: rgba(255,255,255,.7); }
  .slide-text.dark .c-red { color: var(--red-on-dark); }
  .slide-text.dark .trust { color: rgba(255,255,255,.5); }
  .hero-controls .wrap { padding-bottom: 20px; }
  .hero-arrow { display: flex; position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.85); border: 1px solid rgba(10,14,20,.1); cursor: pointer; color: var(--ink); }
  .hero-arrow:hover { background: #fff; }
  .hero-arrow svg { width: 18px; height: 18px; }
  /* Both arrows on the right: on a wide container the left one would sit on the headline. */
  .hero-arrow.prev { right: 68px; }
  .hero-arrow.next { right: 16px; }
  .hero[data-on="2"] .hero-dot span { background: rgba(255,255,255,.35); }
  .hero[data-on="2"] .hero-pause { color: #fff; }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cross { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reviews { gap: 56px; }
  .shop { gap: 56px; }
  .tss-top { grid-template-columns: 7fr 5fr; padding: 40px; gap: 40px; }
  .tss-row { padding: 32px 40px; }
  .tss-logo { width: 124px; }
}
@keyframes kenBurns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.08) translate(-1%, -0.5%); } }
.hist .bar i { transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.js .reveal:not(.in-view) .hist .bar i { width: 0 !important; }
.slide-media.on .kb { animation: kenBurns 18s ease-out forwards; transform-origin: center 55%; }
.filter-pill:active { transform: scale(.96); }

/* Find your shield in the TS&S block (Egor 11.11): the brand buttons, the label field and two buttons */
.tss-find-form { display: flex; margin-bottom: 14px; }
.tss-find-form input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-right: 0; border-radius: 0; background: #fff; color: var(--ink); font-family: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.tss-find-form input::placeholder { color: var(--ink-soft); }
.tss-find-form input:focus { outline: 2px solid var(--red-on-dark); outline-offset: 1px; }
.tss-find-form .cta-primary { padding: 0 20px; min-height: 52px; }
.tss-find-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tss-find-acts > * { flex: 1 1 auto; text-align: center; }
@media (min-width: 768px) { .tss-find-acts > * { flex: 0 0 auto; } }
/* 360 px: the brand row (name + "From $14.95 · 33 items") was 2 px wider than the column; on narrow phones the price line goes under the name, and the column may shrink. */
.tss-top > div { min-width: 0; }
@media (max-width: 399px) { .tss-find .tss-brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; } }

/* Shop block: three frames of Steven's films (Egor 12.11, inc/shop-media.php), a 3:2 box, the tall one on the left.
   Boxes have their size before the files come: no layout shift. */
.shop-media { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; aspect-ratio: 3 / 2; }
.shop-media picture { display: block; min-height: 0; overflow: hidden; background: var(--cream); }
.shop-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-mosaic > picture:first-child { grid-row: 1 / 3; }
