/* ============================================================
   Skeleton layout + skin usage. Everything reads design tokens, so the
   same markup renders plainly under the neutral defaults and loud under
   .theme-fcs. Mobile-first: base rules are the 390px single-column
   layout; the min-width query expands to the desktop grid.
   Punk devices (tape/sticker/stamp/splatter/highlight/frankie) are styled
   here but only appear when a block toggles them on.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-ink);
  background: var(--surface);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 var(--sp-4); }
.theme-fcs h1, .theme-fcs h2, .theme-fcs h3 { text-transform: uppercase; letter-spacing: .5px; }

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--sp-4); }

/* ---- Accessibility: skip link + visible focus ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.theme-fcs :focus-visible {
  outline-color: var(--accent);
  box-shadow: var(--shadow-offset);
}

main { display: block; }

/* ---- Layout shell ---- */
/* clip (not hidden) contains the tilted/rotated overflow without making .site a
   scroll container, which would stop the sticky header from sticking. */
.site { overflow-x: clip; }
.block { width: 100%; }
.hero-inner, .split-inner, .features-inner, .steps-inner, .testimonials-inner,
.section-inner, .richtext-inner, .cta-inner, .contact-inner, .header-inner,
.footer-inner, .promo-text {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

/* ---- Bands ---- */
.band-raised { background: var(--surface-raised); }
.band-sunken { background: var(--surface-sunken); }
.theme-fcs .band-sunken, .theme-fcs .block-footer, .theme-fcs .block-hero {
  background-image: var(--grain);
  background-color: var(--surface-sunken);
}

/* ---- Buttons: tap target >= 44px ---- */
.btn {
  display: inline-block;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-5);
  border: var(--border-w) solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion);
}
.theme-fcs .btn { text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-secondary { background: transparent; color: var(--on-ink); border-color: var(--border-color); }
.btn-dark { background: var(--surface-sunken); color: var(--accent); }
.theme-fcs .btn-dark { box-shadow: var(--shadow-offset); }
.btn:hover { transform: translateY(-1px); }

/* ---- Promo bar ---- */
.block-promo { background: var(--accent); color: var(--on-accent); text-align: center; }
.block-promo .promo-text { margin: 0; padding: var(--sp-2) var(--sp-4); font-family: var(--font-label); }
.promo-link { font-weight: 700; text-decoration: underline; }

/* ---- Header (sticky, site-wide) ---- */
.block-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-raised); border-bottom: var(--border-w) solid var(--border-color);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.brand-logo { max-height: 48px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.4rem; }
.nav-toggle {
  min-width: var(--tap-min); min-height: var(--tap-min);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: var(--border-w) solid var(--border-color);
}
/* The hamburger icon: a middle bar with two more drawn above and below it. */
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 3px; background: var(--accent); border-radius: 1px;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.nav-link { display: block; min-height: var(--tap-min); line-height: var(--tap-min); text-decoration: none; font-family: var(--font-label); }
.theme-fcs .nav-link { text-transform: uppercase; }

/* ---- Hero ---- */
.hero-copy { position: relative; }
.hero-headline { font-size: 2.5rem; }
.theme-fcs .hero-headline { font-size: 3rem; }
.hero-subhead { font-size: 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hero-media { margin-top: var(--sp-6); }

/* ---- Photo / placeholder ---- */
.photo { position: relative; margin: var(--sp-4) 0; }
.placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 240px; text-align: center; padding: var(--sp-4);
  background: repeating-linear-gradient(45deg, var(--surface-raised), var(--surface-raised) 12px, var(--surface-sunken) 12px, var(--surface-sunken) 24px);
  border: var(--border-w) solid var(--border-color);
  color: var(--muted);
}
.frankie-head { position: absolute; right: -12px; bottom: -12px; width: 84px; }

/* ---- Highlighter, sticker, stamp, annotation, tape ---- */
.hl { background: transparent; color: inherit; }
.theme-fcs .hl { background: var(--accent); color: var(--on-accent); padding: 0 .15em; }
.sticker {
  display: inline-block; font-family: var(--font-label); font-size: .8rem;
  padding: var(--sp-1) var(--sp-3); background: var(--surface-raised);
  border: var(--border-w) solid var(--border-color); margin-bottom: var(--sp-3);
}
.theme-fcs .sticker { text-transform: uppercase; letter-spacing: 1px; transform: rotate(-3deg); box-shadow: var(--shadow-offset); }
.sticker-onphoto { position: absolute; top: -14px; left: -10px; }
/* Stamp sits bottom-left so it never collides with a bottom-right Frankie. */
.stamp {
  position: absolute; left: 16px; bottom: 16px; font-family: var(--font-label);
  font-size: .75rem; padding: var(--sp-1) var(--sp-2); border: 3px solid currentColor;
  opacity: .75; text-transform: uppercase;
}
.theme-fcs .stamp { color: var(--green); transform: rotate(-6deg); }
.annotation { font-family: var(--font-annotation); font-size: 1.4rem; color: var(--green); line-height: 1.2; }
.theme-fcs .has-tape::before, .theme-fcs .has-tape::after {
  content: ""; position: absolute; width: 90px; height: 26px; z-index: 2;
  background: rgba(248, 198, 48, .55); top: -12px; left: 20px; transform: rotate(-5deg);
}
.theme-fcs .has-tape::after { top: auto; bottom: -12px; left: auto; right: 20px; transform: rotate(4deg); }

/* ---- Split ---- */
.split-copy .annotation { margin-top: var(--sp-3); }

/* ---- Feature grid / steps ---- */
.features-grid, .steps-grid, .testimonials-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.feature-card, .step, .testimonial, .panel {
  background: var(--surface-raised); border: var(--border-w) solid var(--border-color);
  border-radius: var(--radius); padding: var(--sp-5);
}
.step-num, .feature-label {
  display: inline-block; font-family: var(--font-label); font-size: 2rem; color: var(--emphasis);
}
.steps-grid { counter-reset: step; }

/* ---- Testimonials ---- */
.testimonial-quote { margin: 0 0 var(--sp-3); font-size: 1.05rem; }
.testimonial-meta { color: var(--muted); }

/* ---- CTA ---- */
.block-cta { background: var(--purple, var(--accent)); color: var(--on-accent); }
.cta-inner { display: grid; gap: var(--sp-5); text-align: center; }
.cta-headline { color: var(--on-accent); }
.frankie-whole { width: 160px; margin: 0 auto; }

/* ---- Footer ---- */
.block-footer { background: var(--surface-sunken); border-top: 4px solid var(--accent); }
.footer-inner { display: grid; gap: var(--sp-5); }
.footer-col-title { font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer-col a { min-height: var(--tap-min); display: inline-flex; align-items: center; text-decoration: none; }
.footer-fine { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--sp-4) var(--sp-6); color: var(--muted); font-size: .85rem; }

/* ---- Forms ---- */
.form .field { margin-bottom: var(--sp-4); }
.form label { display: block; font-family: var(--font-label); margin-bottom: var(--sp-1); }
.form input, .form select, .form textarea {
  width: 100%; min-height: var(--tap-min); padding: var(--sp-2) var(--sp-3);
  font: inherit; color: var(--on-ink); background: var(--surface);
  border: var(--border-w) solid var(--border-color); border-radius: var(--radius);
}
.theme-fcs .form input, .theme-fcs .form select, .theme-fcs .form textarea { background: var(--surface-raised); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
}
.theme-fcs .form input:focus, .theme-fcs .form select:focus, .theme-fcs .form textarea:focus { box-shadow: var(--shadow-offset); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--error); }
.error-msg { color: var(--error-text); font-size: .9rem; margin-top: var(--sp-1); }

.contact-inner, .section-body { position: relative; }
.panel { margin-bottom: var(--sp-4); }

/* ============================================================
   Desktop layout (>= 760px)
   ============================================================ */
@media (min-width: 760px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: var(--sp-5); width: auto; }
  .nav-list { flex-direction: row; margin: 0; gap: var(--sp-5); }

  .hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: center; }
  .hero-media { margin-top: 0; }
  .hero-headline { font-size: 3.5rem; }

  .split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
  .is-reversed .split-media { order: 2; }

  .features-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .features-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .features-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-inner.has-frankie { grid-template-columns: auto 1fr; align-items: center; text-align: left; }
  .cta-inner .frankie-whole { margin: 0; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .contact-inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: var(--sp-7); align-items: start; }
}

/* ---- Feature card photos (e.g. the founders) ---- */
.feature-card.has-photo { display: flex; flex-direction: column; }
.feature-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: var(--border-w) solid var(--border-color); margin-bottom: var(--sp-3);
}
.theme-fcs .feature-card.has-photo { box-shadow: var(--shadow-offset); }

/* ---- Image/text split: real images and multi-image galleries ---- */
.split-media img { width: 100%; height: auto; display: block; }
/* Photos sit at their own size, top-aligned and centered as a group, so a short
   photo never leaves a stretched empty box beside a taller one. */
.split-gallery { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-start; justify-content: center; }
.split-gallery .photo { flex: 0 1 auto; max-width: 48%; margin: 0; background: none; }
.split-gallery .photo img { width: auto; max-width: 100%; max-height: 300px; object-fit: contain; }

/* ============================================================
   Catalog blocks: product grid, cards, filter rail, detail.
   ============================================================ */
.productgrid-inner { max-width: var(--page-max); margin: 0 auto; padding: var(--sp-6) var(--sp-4); }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.product-grid.strip { margin-bottom: var(--sp-5); }

.product-card {
  background: var(--surface-raised); border: var(--border-w) solid var(--border-color);
  border-radius: var(--radius); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2);
}
.product-card-link { text-decoration: none; color: inherit; }
.product-shot { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-shot.placeholder { display: flex; align-items: center; justify-content: center; min-height: 0; }
.product-name { font-size: 1.1rem; margin: var(--sp-2) 0 0; }
.product-meta { color: var(--muted); margin: 0; font-size: .9rem; }
.color-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; }
.color-dot {
  display: inline-block; width: 22px; height: 22px; font-size: 0;
  border: var(--border-w) solid var(--border-color);
  background-size: cover; background-position: center;
}
.color-dot.is-missing {
  width: auto; height: auto; font-size: .75rem; padding: 2px var(--sp-2);
  font-family: var(--font-label); background: var(--surface-sunken);
}
.color-more, .size-chip, .chip {
  font-size: .75rem; padding: 2px var(--sp-2); border: var(--border-w) solid var(--border-color);
  font-family: var(--font-label);
}
.swatch-chip {
  display: inline-block; width: 22px; height: 22px; vertical-align: middle;
  border: var(--border-w) solid var(--border-color);
  background-size: cover; background-position: center;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.product-cta { margin-top: auto; text-align: center; }

/* Filter rail */
.grid-count { font-family: var(--font-label); }
.filter-rail { margin-bottom: var(--sp-5); }
.filter-group { border: var(--border-w) solid var(--border-color); margin: 0 0 var(--sp-4); padding: var(--sp-3); }
.filter-group legend { font-family: var(--font-label); padding: 0 var(--sp-2); }
.check { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap-min); }
.check.chip { display: inline-flex; margin: 0 var(--sp-1) var(--sp-1) 0; }
.filter-clear { display: inline-block; min-height: var(--tap-min); line-height: var(--tap-min); margin-left: var(--sp-3); }

.pagination { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.page-of { font-family: var(--font-label); }

.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); }
.empty-state .frankie-head { position: static; width: 96px; margin: 0 auto var(--sp-4); }
.empty-state .btn { margin: var(--sp-2); }

/* Product detail */
.productdetail-inner { max-width: var(--page-max); margin: 0 auto; padding: var(--sp-6) var(--sp-4); display: grid; gap: var(--sp-6); }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: var(--sp-3); }
.productdetail-name { font-size: 2rem; }
.theme-fcs .productdetail-name { color: var(--accent); }
.pick-group { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.pick-group legend, .pick-legend { font-family: var(--font-label); margin-bottom: var(--sp-2); display: block; }
.swatch, .deco-card { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap-min); padding: var(--sp-2) var(--sp-3); border: var(--border-w) solid var(--border-color); margin: 0 var(--sp-2) var(--sp-2) 0; }
.deco-card { flex-direction: column; align-items: flex-start; }
.deco-note { color: var(--muted); font-size: .8rem; }
.size-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: 0; margin: 0; }
.productdetail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

@media (min-width: 760px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .productgrid-inner.has-rail { display: grid; grid-template-columns: 250px 1fr; gap: var(--sp-6); align-items: start; }
  .filter-rail { margin-bottom: 0; }
  .productdetail-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
}

/* ============================================================
   Request-a-quote form and feedback bars.
   ============================================================ */
.quoteform-inner { max-width: 860px; margin: 0 auto; padding: var(--sp-6) var(--sp-4); }
.quote-items { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-5); }
.quote-item {
  background: var(--surface-raised); border: var(--border-w) solid var(--border-color);
  border-radius: var(--radius); padding: var(--sp-5);
}
.quote-item-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.quote-item-title { font-size: 1.2rem; margin: 0; }
.quote-item-meta { color: var(--muted); font-family: var(--font-body); font-size: .9rem; }
.link-danger { margin-left: auto; background: none; border: 0; color: var(--error-text); cursor: pointer; min-height: var(--tap-min); text-decoration: underline; }
.size-qty-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.size-qty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); font-family: var(--font-label); }
.size-qty input { width: 64px; min-height: var(--tap-min); text-align: center; padding: var(--sp-1); border: var(--border-w) solid var(--border-color); background: var(--surface); color: var(--on-ink); }
.theme-fcs .size-qty input { background: var(--surface-sunken); }
.quote-item-extra { display: grid; gap: var(--sp-3); }
.quote-item-extra .field { margin: 0; }
.add-more { margin: 0 0 var(--sp-5); }
.contact-fields { border: var(--border-w) solid var(--border-color); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.contact-fields legend { font-family: var(--font-label); padding: 0 var(--sp-2); }

.artwork-section { border: var(--border-w) solid var(--border-color); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.artwork-section legend { font-family: var(--font-label); padding: 0 var(--sp-2); }
.artwork-help { color: var(--muted); margin-bottom: var(--sp-4); }
.artwork-slot { padding-top: var(--sp-4); margin-top: var(--sp-4); border-top: 1px dashed var(--border-color); }
.artwork-slot:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.artwork-placements { margin-top: var(--sp-2); }
.artwork-onitem { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-2); }
.side-pick { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-label); }
.side-pick select { min-height: var(--tap-min); }
input[type="file"] { min-height: var(--tap-min); }

.submit-error {
  background: var(--surface-sunken); border: var(--border-w) solid var(--error);
  color: var(--error-text); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
}
.success-bar {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--surface-raised); border: var(--border-w) solid var(--success);
  padding: var(--sp-5); border-radius: var(--radius);
}
.success-bar .frankie-head { position: static; width: 72px; flex: none; }

@media (min-width: 760px) {
  .quote-item-extra { grid-template-columns: 200px 1fr; align-items: end; }
}

/* ============================================================
   About-page skin options. All optional and data-driven, so the
   neutral skeleton ignores them and any shop can reuse them.
   ============================================================ */

/* ---- Accent bands (light; carry dark text) ---- */
.band-pink { background: var(--band-pink); color: var(--on-band); }
.band-yellow { background: var(--band-yellow); color: var(--on-band); }
.band-pink .split-heading, .band-pink .features-heading, .band-pink .section-heading,
.band-yellow .split-heading, .band-yellow .features-heading, .band-yellow .section-heading,
.band-pink p, .band-yellow p { color: var(--on-band); }

/* Heading alignment knob. */
.align-center { text-align: center; }

/* A narrower media column (the Who-we-are photo is 40%, the copy fills the rest). */
@media (min-width: 760px) {
  .media-narrow .split-inner { grid-template-columns: 2fr 3fr; }
}

/* ---- Heading printed over a photo (e.g. "Who we are") ---- */
/* The photo fills its column (cropped, not letterboxed) and is capped so it does
   not tower over the copy beside it, keeping the row tight. */
.photo.has-overlay { overflow: hidden; }
.photo.has-overlay img { width: 100%; height: 380px; object-fit: cover; }
.photo.has-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26, 15, 34, .3), rgba(26, 15, 34, .62));
}
.split-heading.on-photo {
  position: absolute; inset: 0; z-index: 2; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-6); font-size: 3.25rem; line-height: 1.05;
  color: #ffffff;
}
/* Staggered words: first left, second centered, third right (matches the shop). */
.split-heading.on-photo span { display: block; }
.split-heading.on-photo span:nth-child(2) { text-align: center; }
.split-heading.on-photo span:nth-child(3) { text-align: right; }
.theme-fcs .split-heading.on-photo {
  color: var(--accent);                    /* yellow on the darkened photo (>7:1) */
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
}
@media (min-width: 760px) {
  .split-heading.on-photo { font-size: 4.5rem; }
}

/* ---- Goal galleries: fixed cover tiles, matching the shop's layout ---- */
/* A pair: two equal squares side by side (PARClife, General Strike). */
.split-gallery.is-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); width: 100%; align-items: start; justify-content: stretch; }
.split-gallery.is-pair .photo { margin: 0; max-width: none; }
.split-gallery.is-pair .photo img { width: 100%; aspect-ratio: 1 / 1; height: auto; max-height: none; object-fit: cover; }
/* A feature stack: one tall photo (twice the height) beside two stacked (Kimmi). */
/* Explicit tile heights so the tall photo equals the two stacked exactly: the
   tall one is (2 x tile + the row gap), the stacked ones are one tile each. This
   is deterministic, unlike a percentage height against grid rows, which was
   letting the stacked photos overflow and end lower than the tall one. */
.split-gallery.is-feature { --tile: 244px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); width: 100%; }
.split-gallery.is-feature .photo { margin: 0; max-width: none; }
.split-gallery.is-feature .photo:first-child { grid-row: 1 / span 2; }
.split-gallery.is-feature .photo img { width: 100%; max-height: none; object-fit: cover; display: block; }
.split-gallery.is-feature .photo:not(:first-child) img { height: var(--tile); }
.split-gallery.is-feature .photo:first-child img { height: calc(var(--tile) * 2 + var(--sp-3)); }
@media (max-width: 759px) {
  .split-gallery.is-feature { grid-template-columns: 1fr; }
  .split-gallery.is-feature .photo:first-child { grid-row: auto; }
  .split-gallery.is-feature .photo img,
  .split-gallery.is-feature .photo:first-child img { height: 300px; }
}

/* ---- Copy shown as a card (the goal write-ups) ---- */
/* The card fills the row so it stands level with the photos, text centered. */
.split-copy.is-card {
  padding: var(--sp-5); background: var(--surface-raised);
  border: var(--border-w) solid var(--border-color);
  align-self: stretch; display: flex; flex-direction: column; justify-content: center;
}
.theme-fcs .split-copy.is-card {
  background: var(--cream); color: #22162B;
  border-color: #22162B; box-shadow: var(--shadow-offset);
}
.theme-fcs .split-copy.is-card p { color: #22162B; }
.theme-fcs .split-copy.is-card .split-heading {
  color: #22162B; display: inline-block;
  border-bottom: 4px solid var(--green); padding-bottom: var(--sp-2);
}

/* ---- Big heading panel in the media slot (e.g. "Our goals") ---- */
.split-panel-heading { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.02; margin: 0; }
.theme-fcs .split-panel-heading { text-transform: uppercase; color: var(--on-band); }

/* ---- Feature grid: horizontal cards, bare cards, scattered photo wall ---- */
.feature-body { min-width: 0; }
.features-grid.layout-row .feature-card.has-photo { flex-direction: row; align-items: flex-start; gap: var(--sp-4); }
.features-grid.layout-row .feature-photo { width: 128px; flex: none; margin-bottom: 0; }
.features-grid.layout-row .feature-body { flex: 1; }
.features-grid.is-bare .feature-card { background: transparent; border: 0; padding: 0; }
.theme-fcs .features-grid.is-bare .feature-card { box-shadow: none; }

.features-grid.is-scatter { align-items: start; }
.features-grid.is-scatter .feature-card { background: #ffffff; border: 0; padding: var(--sp-2); }
.theme-fcs .features-grid.is-scatter .feature-card { box-shadow: var(--shadow-offset); }
/* Uniform tiles so the wall reads as a tidy grid instead of ragged gaps. */
.features-grid.is-scatter .feature-photo { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; border: 0; margin-bottom: 0; }
.features-grid.is-scatter .feature-card:nth-child(odd) { transform: rotate(-2deg); }
.features-grid.is-scatter .feature-card:nth-child(even) { transform: rotate(1.5deg); }
.features-grid.is-scatter .feature-card:nth-child(3n) { transform: rotate(-1deg); }

@media (min-width: 760px) {
  .split-panel-heading { font-size: 4.5rem; }
}

/* ============================================================
   Home-page skin options (Sprint 006). All optional and data-driven,
   so the neutral skeleton and every other page ignore them. A block
   opts in through its config; nothing here is shop-specific markup.
   ============================================================ */

/* In-page anchors clear the sticky header instead of hiding under it. */
html { scroll-padding-top: 88px; }

/* ---- Hero over a full-bleed photo (centered copy, readable scrim) ---- */
.block-hero.has-bg { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.block-hero.has-bg .hero-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(26, 15, 34, .58), rgba(26, 15, 34, .74));
}
.block-hero.has-bg .hero-inner { position: relative; z-index: 1; text-align: center; padding-top: var(--sp-9); padding-bottom: var(--sp-9); }
.block-hero.has-bg .hero-copy { max-width: 840px; margin: 0 auto; }
.block-hero.has-bg .hero-headline, .block-hero.has-bg .hero-subhead { color: #ffffff; }
.theme-fcs .block-hero.has-bg .hero-headline { color: var(--cream); text-shadow: 3px 3px 0 rgba(0, 0, 0, .55); }
.block-hero.has-bg .hero-ctas { justify-content: center; }
@media (min-width: 760px) {
  .block-hero.has-bg .hero-inner { display: block; }
  .block-hero.has-bg .hero-headline { font-size: 4.5rem; }
}

/* ---- Feature grid: optional subheading, badge, accent edge, links ---- */
.features-subheading { margin: 0 0 var(--sp-5); color: var(--muted); }
.feature-badge {
  display: inline-block; align-self: flex-start; margin-bottom: var(--sp-2);
  font-family: var(--font-label); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px var(--sp-2);
  background: var(--accent); color: var(--on-accent); border: var(--border-w) solid var(--on-accent);
}
.feature-card.accent-yellow { border-top: 6px solid var(--accent); }
.feature-card.accent-green { border-top: 6px solid var(--green, var(--success)); }
.feature-card.accent-purple { border-top: 6px solid var(--purple, var(--accent)); }
.feature-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.feature-card.is-link { transition: transform var(--motion); }
.feature-card.is-link:hover { transform: translateY(-2px); }

/* Service cards: photo to the card edge, badge on the photo, title on the card. */
.features-grid.is-service .feature-card { padding: 0; overflow: hidden; background: var(--surface-sunken); border-radius: var(--radius); }
.theme-fcs .features-grid.is-service .feature-card { box-shadow: var(--shadow-offset); }
.features-grid.is-service .feature-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; border: 0; }
.features-grid.is-service .feature-body { padding: var(--sp-4); }
.features-grid.is-service .feature-title { margin: 0; }
.theme-fcs .features-grid.is-service .feature-title { font-family: var(--font-annotation); font-size: 2.2rem; line-height: 1.05; letter-spacing: 1px; color: var(--accent); }
/* Keep the dark service card's copy light even when it sits on a light band. */
.theme-fcs .features-grid.is-service .feature-text { color: var(--on-ink); }

/* Audience buttons ("Made for the Scene"): linked labels, no card box. */
.features-grid.is-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.features-grid.is-buttons .feature-card { background: transparent; border: 0; padding: 0; }
.theme-fcs .features-grid.is-buttons .feature-card { box-shadow: none; }
.features-grid.is-buttons .feature-link {
  display: inline-flex; align-items: center; min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-5); border: var(--border-w) solid var(--accent); color: var(--on-ink);
}
.features-grid.is-buttons .feature-title { margin: 0; font-size: 1rem; }
.theme-fcs .features-grid.is-buttons .feature-link { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 1px; }
.theme-fcs .features-grid.is-buttons .feature-link:hover { background: var(--accent); color: var(--on-accent); }

/* Section over a full-bleed photo (e.g. Made for the Scene). */
.block-features.has-bg { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.block-features.has-bg .features-scrim { position: absolute; inset: 0; z-index: 0; background: rgba(26, 15, 34, .74); }
.block-features.has-bg .features-inner { position: relative; z-index: 1; }
.block-features.has-bg .features-heading { color: #ffffff; }
.theme-fcs .block-features.has-bg .features-heading { color: var(--cream); }
.block-features.has-bg .features-grid.is-buttons .feature-link { color: var(--cream, #ffffff); }

/* ---- CTA banner on an optional light band (Home) ---- */
.block-cta.band-pink { background: var(--band-pink); color: var(--on-band); }
.block-cta.band-pink .cta-headline, .block-cta.band-pink .cta-subhead { color: var(--on-band); }
.block-cta.band-yellow { background: var(--band-yellow); color: var(--on-band); }
.block-cta.band-yellow .cta-headline, .block-cta.band-yellow .cta-subhead { color: var(--on-band); }

/* ---- Process steps with a photo ---- */
.step-media { display: block; margin-bottom: var(--sp-3); }
.step-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: var(--border-w) solid var(--border-color); }
.theme-fcs .step.has-photo { background: var(--surface-raised); box-shadow: var(--shadow-offset); }
.theme-fcs .step.has-photo .step-num { color: var(--accent); }

/* ============================================================
   Phase 1 review fixes: match the shop's mockup more closely.
   ============================================================ */

/* The hero's secondary button ("View Our Services") reads as solid purple. */
.theme-fcs .btn-secondary { background: var(--purple); color: #ffffff; border-color: var(--purple); }

/* The call-to-action button: larger, the darker palette purple, with a black
   outline and a black hard-offset shadow (matches the mockup). */
.theme-fcs .cta-btn {
  background: #46335A; color: #ffffff; border-color: #000000;
  font-size: 1.15rem; padding: var(--sp-4) var(--sp-7);
  box-shadow: 6px 6px 0 #000000;
}

/* Text set over the photo bands is pure white, for punch and legibility. */
.theme-fcs .block-hero.has-bg .hero-headline { color: #ffffff; }
.theme-fcs .block-features.has-bg .features-heading { color: #ffffff; }
.block-features.has-bg .features-grid.is-buttons .feature-link { color: #ffffff; }

/* The photo-backed "Made for the Scene" band stands taller, its content centered. */
.block-features.has-bg { min-height: 460px; display: flex; align-items: center; }
.block-features.has-bg .features-inner { width: 100%; padding-top: var(--sp-9); padding-bottom: var(--sp-9); }

/* Made-for-the-Scene buttons: the stencil label face, larger, with a gold hard
   drop shadow (matches the mockup). */
.theme-fcs .features-grid.is-buttons .feature-title { font-family: var(--font-label); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.features-grid.is-buttons .feature-link { padding: var(--sp-4) var(--sp-6); min-height: 54px; }
.theme-fcs .features-grid.is-buttons .feature-link { box-shadow: 5px 5px 0 var(--accent); }

/* The call-to-action band is taller (and stays centered when it carries no mascot). */
.block-cta .cta-inner { padding-top: var(--sp-10); padding-bottom: var(--sp-10); }

/* Process step captions: the hand-drawn Road Rage face, spaced out and not bold
   so they read clearly, large. */
.theme-fcs .step-title { font-family: var(--font-annotation); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: 2px; color: var(--accent); text-transform: none; }

/* Service card badge ("Coming Soon") overlays the photo, top-right, larger. */
.feature-media { position: relative; display: block; }
.feature-media .feature-photo { display: block; }
.feature-media .feature-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3); margin: 0;
  font-size: 1rem; padding: var(--sp-1) var(--sp-3);
}

/* ---- Google reviews section ---- */
.reviews-inner { max-width: var(--page-max); margin: 0 auto; padding: var(--sp-8) var(--sp-4); text-align: center; }
.reviews-heading { margin-bottom: var(--sp-4); }
.band-pink .reviews-heading, .band-pink .reviews-score, .band-pink .reviews-count { color: var(--on-band); }
.reviews-overall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.reviews-score { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.reviews-stars, .review-stars { letter-spacing: 2px; }
.star { color: var(--border-color); }
.star.is-filled { color: var(--accent); }
.review-stars .star { color: var(--accent); }
.reviews-count { font-family: var(--font-label); }
.reviews-grid { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: var(--sp-4); }
.review-card { background: var(--surface-raised); border: var(--border-w) solid var(--border-color); border-radius: var(--radius); padding: var(--sp-5); text-align: left; }
.theme-fcs .review-card { background: var(--surface-sunken); box-shadow: var(--shadow-offset); }
.review-stars { display: block; margin-bottom: var(--sp-2); }
.review-text { margin: 0 0 var(--sp-3); }
.theme-fcs .review-card .review-text, .theme-fcs .review-card .review-author { color: var(--cream); }
.review-meta { margin: 0; font-family: var(--font-label); color: var(--muted); }
.theme-fcs .review-card .review-meta { color: var(--muted); }
.reviews-cta-row { margin: 0; }
@media (min-width: 760px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Contact: guided quote fields ---- */
.quote-fields { margin: 0 0 var(--sp-4); }
.quote-group { border: var(--border-w) solid var(--border-color); padding: var(--sp-4); margin: 0 0 var(--sp-4); }
.quote-group legend { font-family: var(--font-label); padding: 0 var(--sp-2); }
.choice-row, .positions { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.choice { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap-min); font-family: var(--font-label); }
.choice input { width: auto; min-height: 0; }
.quote-help { color: var(--muted); margin: var(--sp-3) 0; }
.art-row { margin-top: var(--sp-3); }
.product-block { margin: 0; }
/* Native date field: the whole field is clickable, and the picker icon is visible
   on the dark skin (the default black icon is invisible against a dark input). */
input[type="date"] { cursor: pointer; }
.theme-fcs input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

/* Dark feature cards keep light copy even on a light band. Bare, scatter, and
   button cards sit directly on the band and keep the band's own dark text. */
.theme-fcs .band-pink .features-grid:not(.is-bare):not(.is-scatter):not(.is-buttons) .feature-title,
.theme-fcs .band-yellow .features-grid:not(.is-bare):not(.is-scatter):not(.is-buttons) .feature-title { color: var(--accent); }
.theme-fcs .band-pink .features-grid:not(.is-bare):not(.is-scatter):not(.is-buttons) .feature-text,
.theme-fcs .band-yellow .features-grid:not(.is-bare):not(.is-scatter):not(.is-buttons) .feature-text { color: var(--on-ink); }

/* ---- Image/text split: optional benefits list and CTA buttons ---- */
.split-benefits { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
.split-benefits li { margin-bottom: var(--sp-2); }
.split-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

/* ---- Durability image gallery (DTF page) ---- */
.durability-grid { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.durability-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--border-w) solid var(--border-color); }
.theme-fcs .durability-grid img { box-shadow: var(--shadow-offset); }
@media (min-width: 760px) { .durability-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Video embed ---- */
.video-inner { max-width: 900px; margin: 0 auto; padding: var(--sp-8) var(--sp-4); }
.video-heading { text-align: center; }
.video-subheading { text-align: center; color: var(--muted); margin: 0 0 var(--sp-5); }
.video-card { position: relative; background: var(--surface-raised); border: var(--border-w) solid var(--border-color); padding: var(--sp-3); }
.theme-fcs .video-card { box-shadow: var(--shadow-offset); }
.video-frame-wrap { position: relative; aspect-ratio: 16 / 9; }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { padding: var(--sp-4) var(--sp-2) var(--sp-2); }
.video-caption-title { margin-bottom: var(--sp-2); }
.theme-fcs .video-caption-title { color: var(--accent); }
.video-caption-text { margin: 0; }

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
