/* ============================================================
   Quilt partner page + homepage feature
   Built only from the shared tokens in styles.css: charcoal and
   red, notched media, mono technical labels, drafting hairlines.
   Quilt photography stays ungraded — it's product, not job-site.
   ============================================================ */

.quilt-page { color: var(--ink); }
.quilt-page figure, .home-quilt figure { margin: 0; min-width: 0; }
.quilt-page [hidden], .home-quilt [hidden] { display: none !important; }
.quilt-page p { line-height: var(--lh-body); }
.q-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.quilt-page h2, .home-quilt h2 {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: var(--lh-display);
  text-transform: uppercase;
  letter-spacing: var(--tr-display);
  text-wrap: balance;
  margin: var(--sp-5) 0 var(--sp-6);
}
.quilt-page h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  letter-spacing: var(--tr-display);
  margin: 0 0 var(--sp-2);
}
.quilt-page .btn-row { margin-top: var(--sp-8); }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Notched media frame, shared by every photo and video. */
.q-media { --notch: var(--notch-lg); position: relative; overflow: hidden; clip-path: var(--clip-notch-alt); background: var(--surface-sunken); }
.q-media img, .q-media video { display: block; width: 100%; height: auto; }
.q-media video { background: var(--charcoal); }
/* The bottom edge stays square so every native player control is reachable. */
.q-media--video { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }

.q-partner { display: flex; align-items: center; gap: var(--sp-2); }
.q-partner img { width: 180px; height: auto; flex: 0 0 auto; }
.q-partner > span { padding-left: var(--sp-5); border-left: 1px solid var(--rule-inverse); font-family: var(--font-mono); font-size: var(--fs-3xs); line-height: var(--lh-body); letter-spacing: var(--tr-mono-tight); text-transform: uppercase; color: var(--text-inverse-secondary); }

/* Section heads: title left, supporting copy right, on one baseline. */
.q-section-head { max-width: 820px; margin-bottom: var(--sp-12); }
.q-section-head > p, .q-section-head--split > p { max-width: 46ch; margin: 0; color: var(--muted); font-size: var(--fs-md); }
.q-section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-10); align-items: end; }
.q-section-head--split h2 { margin-bottom: 0; }
.q-section-head--split > p { padding-bottom: var(--sp-2); justify-self: end; }

/* ---------- Hero ---------- */
.q-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); min-height: clamp(620px, calc(100svh - var(--header-h)), 900px); border-bottom: 4px solid var(--red); }
.q-hero__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.q-hero__poster, .q-hero__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.q-hero__video { opacity: 1; transition: opacity var(--dur-slower) var(--ease-out); }
.q-hero__video.is-unavailable { opacity: 0; }
.q-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11,12,13,.9) 0%, rgba(11,12,13,.78) 36%, rgba(11,12,13,.18) 100%), linear-gradient(0deg, rgba(11,12,13,.55), transparent 45%); }
.q-hero__inner { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding-top: var(--sp-12); padding-bottom: var(--sp-20); }
.q-hero__copy { width: 100%; max-width: 820px; }
.q-hero h1 { font-family: var(--font-display); font-size: var(--fs-6xl); text-transform: uppercase; font-weight: 700; line-height: var(--lh-display); letter-spacing: var(--tr-display); margin: var(--sp-6) 0 var(--sp-6); }
.q-accent { color: var(--red); }
.q-hero__copy > p { max-width: 44ch; color: var(--text-inverse-secondary); font-size: var(--fs-md); margin: 0; }
.q-hero__chips { list-style: none; padding: 0; margin-bottom: 0; }

.q-hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: var(--sp-6); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--ink-inverse-faint); }
.q-hero__scroll:hover { color: var(--white); }
.q-hero__scroll-line { position: relative; width: 1px; height: 36px; background: var(--rule-inverse); overflow: hidden; }
.q-hero__scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red); animation: q-scroll-line 2.2s var(--ease-in-out) infinite; }
@keyframes q-scroll-line { to { top: 100%; } }

/* ---------- Problem: same house, two ways ----------
   Two drawings of one house side by side. Colour carries the
   argument: warm and cold tints without Quilt, settled rooms with it. */
.q-section-head--split > p strong { color: var(--ink); font-weight: 600; }
.q-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--sp-6); align-items: stretch; }
.q-compare__arrow { display: flex; align-items: center; color: var(--red); font-size: var(--fs-2xl); }
.q-house { display: flex; flex-direction: column; padding: var(--sp-6) var(--sp-6) var(--sp-5); background: var(--light); --notch: var(--notch-lg); clip-path: var(--clip-notch); }
.q-house--after { background: var(--charcoal); color: var(--white); }
.q-house__head { display: grid; gap: var(--sp-1); margin-bottom: var(--sp-6); }
.q-house__tag { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--muted); }
.q-house--after .q-house__tag { color: var(--accent-light); }
.q-house__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; text-transform: uppercase; line-height: var(--lh-tight); }

/* The drawing. The right gutter holds the outdoor unit on the Quilt
   side and stays empty on the other, so both houses match in size. */
.q-house__art { position: relative; padding-right: 56px; padding-bottom: var(--sp-2); border-bottom: 2px solid var(--house-ink, var(--ink)); }
.q-house--after .q-house__art { --house-ink: var(--n-600); }
.q-house__roof { height: 46px; margin: 0 -10px; background: var(--house-ink, var(--ink)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.q-house__body { display: grid; gap: 3px; border: 3px solid var(--house-ink, var(--ink)); border-top: 0; background: var(--house-ink, var(--ink)); }
.q-house__level { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.q-rm { position: relative; display: grid; align-content: end; gap: 2px; min-height: 132px; padding: var(--sp-8) var(--sp-4) var(--sp-3); background: var(--white); }
.q-rm__name { font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: var(--tr-mono-tight); text-transform: uppercase; color: var(--muted); }
.q-rm__temp { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.q-rm__note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.q-rm__note::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.q-rm--hot { background: linear-gradient(0deg, rgba(208,18,27,.2), rgba(208,18,27,.06)), var(--white); }
.q-rm--hot .q-rm__temp, .q-rm--hot .q-rm__note { color: var(--accent-press); }
.q-rm--hot .q-rm__note::before { background: var(--accent); }
.q-rm--cold { background: linear-gradient(180deg, rgba(85,114,139,.28), rgba(85,114,139,.08)), var(--white); }
.q-rm--cold .q-rm__temp, .q-rm--cold .q-rm__note { color: var(--technical); }
.q-rm--cold .q-rm__note::before { background: var(--technical); }
.q-rm--ok .q-rm__note { color: var(--muted); font-weight: 500; }
/* Heat rising off the warm rooms. */
.q-rm--hot::after { content: ''; position: absolute; top: var(--sp-3); right: var(--sp-4); width: 18px; height: 18px; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 6px); -webkit-mask: linear-gradient(0deg, transparent, #000); mask: linear-gradient(0deg, transparent, #000); opacity: .55; animation: q-rise 1.8s var(--ease-in-out) infinite; }
@keyframes q-rise { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .6; } 100% { transform: translateY(-4px); opacity: 0; } }
/* Snowflake-ish ticks on the cold room. */
.q-rm--cold::after { content: '❄'; position: absolute; top: var(--sp-2); right: var(--sp-4); font-size: 18px; color: var(--technical); opacity: .7; }
/* The one thermostat everything answers to. */
.q-rm__thermo { position: absolute; top: var(--sp-3); right: var(--sp-4); width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; }
.q-rm__thermo::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }

/* Quilt side: every room has its own unit, with air coming off it. */
.q-house--after .q-rm { background: var(--n-850); }
.q-house--after .q-rm__name { color: var(--ink-inverse-faint); }
.q-house--after .q-rm__temp { color: var(--white); }
.q-house--after .q-rm__note { color: var(--ink-inverse-muted); }
.q-house--after .q-rm__note::before { background: var(--success-inverse); }
.q-rm__unit { position: absolute; top: var(--sp-3); left: 50%; width: 46%; height: 9px; transform: translateX(-50%); background: linear-gradient(90deg, #C99C6E, #B78557); border-radius: 1px; }
.q-rm__unit i { position: absolute; top: 14px; width: 2px; height: 10px; background: var(--technical-light); opacity: 0; animation: q-air 2.4s var(--ease-out) infinite; }
.q-rm__unit i:nth-child(1) { left: 25%; }
.q-rm__unit i:nth-child(2) { left: 50%; animation-delay: .3s; }
.q-rm__unit i:nth-child(3) { left: 75%; animation-delay: .6s; }
@keyframes q-air { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(8px); opacity: 0; } }

/* Outdoor heat pump beside the house, with its line set up the wall. */
.q-house__outdoor { position: absolute; right: 0; top: 46px; bottom: var(--sp-2); width: 56px; }
.q-house__line { position: absolute; left: 10px; top: 22px; bottom: 34px; border-left: 2px dashed var(--technical-light); }
.q-house__line::before, .q-house__line::after { content: ''; position: absolute; left: -12px; width: 10px; border-top: 2px dashed var(--technical-light); }
.q-house__line::before { top: 0; }
.q-house__line::after { top: calc(50% + 10px); }
.q-house__odu { position: absolute; left: 14px; right: 4px; bottom: 0; height: 34px; background: var(--n-300); border-radius: 2px; }
.q-house__odu::after { content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-radial-gradient(circle, var(--n-700) 0 2px, var(--n-300) 2px 4px); }

.q-house__foot { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.q-house__meter { display: flex; gap: 4px; }
.q-house__meter i { width: 14px; height: 14px; background: var(--success); }
.q-house__meter i.is-hot { background: var(--accent); }
.q-house__meter i.is-cold { background: var(--technical); }
.q-house--after .q-house__meter i { background: var(--success-inverse); }
.q-house__score { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.q-house--after .q-house__score { color: var(--white); }

/* ---------- System ---------- */
.q-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); counter-reset: part; }
.q-part { position: relative; display: flex; flex-direction: column; background: var(--white); --notch: var(--notch-md); clip-path: var(--clip-notch); }
.q-part__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-sunken); }
.q-part__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.q-part:hover .q-part__media img { transform: scale(1.04); }
.q-part__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.q-part__index { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tr-mono-tight); text-transform: uppercase; color: var(--technical); margin-bottom: var(--sp-3); }
.q-part p { margin: 0 0 var(--sp-5); color: var(--muted); font-size: var(--fs-sm); }

/* Product film + benefits on a charcoal plate. */
.q-film { --tech-ink: var(--technical-light); --btn-surface: var(--charcoal); position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-10); align-items: center; margin-top: var(--sp-12); padding: var(--sp-8); background: var(--charcoal); color: var(--white); --notch: var(--notch-xl); clip-path: var(--clip-notch); overflow: hidden; }
.q-film::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--technical-dim) 1px, transparent 1px), linear-gradient(90deg, var(--technical-dim) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(80% 140% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(80% 140% at 100% 0%, #000, transparent 70%); opacity: .5; }
.q-film > * { position: relative; }
.q-film__media { --notch: var(--notch-md); }
.q-film__kicker, .q-ar__kicker, .q-reviews__meta, .q-closing__hours { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--technical-light); }
.q-film h3 { font-size: var(--fs-3xl); margin: var(--sp-3) 0 var(--sp-6); }
.q-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.q-feature { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); background: var(--n-850); --notch: var(--notch-md); clip-path: var(--clip-notch); transition: background var(--dur-base) var(--ease-out); }
.q-feature:hover { background: var(--n-800); }
.q-feature__icon { display: inline-flex; color: var(--accent-light); transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.q-feature__icon svg { width: 28px; height: 28px; }
.q-feature:hover .q-feature__icon { color: var(--white); transform: translateY(-2px); }
.q-feature h4 { margin: 0 0 var(--sp-1); font-size: var(--fs-base); font-weight: 700; line-height: var(--lh-snug); color: var(--white); }
.q-feature p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-inverse-secondary); }

/* ---------- Design: finish switcher ---------- */
.q-design { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-16); align-items: center; }
.q-design__copy > .body-copy { max-width: 40ch; font-size: var(--fs-md); line-height: var(--lh-body); }
.q-finish-hint { margin: var(--sp-8) 0 var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--technical); }
.q-finish-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); max-width: 440px; }
.q-swatch { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--border-strong); background: var(--white); text-align: left; cursor: pointer; color: var(--ink); transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.q-swatch:hover { border-color: var(--ink); }
.q-swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--light); box-shadow: inset 0 -3px 0 var(--red); }
.q-swatch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.q-swatch__chip { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--border-strong); background-size: cover; background-position: center; }
.q-swatch__chip--oak { background-image: url('../assets/quilt/optimized/part-indoor-480.webp'); background-size: 340%; background-position: 40% 45%; }
.q-swatch__chip--white { background: var(--n-050); }
.q-swatch__chip--paint { background: #6F8598; }
.q-swatch__chip--wallpaper { background-image: url('../assets/quilt/optimized/wallpaper-room-480.webp'); background-size: 420%; background-position: 8% 30%; }
.q-swatch__text { display: grid; gap: 2px; min-width: 0; }
.q-swatch__name { font-size: var(--fs-sm); font-weight: 700; line-height: var(--lh-tight); }
.q-swatch__sub { font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: var(--tr-mono-tight); text-transform: uppercase; color: var(--muted); }

/* Every finish photo sits in the same 4:3 frame, so switching never
   changes the height of the section below it. */
.q-finish-gallery { min-width: 0; display: grid; gap: var(--sp-6); }
.q-finish-gallery figure { position: relative; }
.q-finish-gallery .q-media { aspect-ratio: 4 / 3; --notch: var(--notch-xl); }
.q-finish-gallery img { width: 100%; height: 100%; object-fit: cover; }
.q-finish-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-10) var(--sp-6) var(--sp-5); background: linear-gradient(0deg, rgba(11,12,13,.6), transparent); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--white); pointer-events: none; }
.q-design.is-interactive .q-finish-gallery { gap: 0; }
.q-design.is-interactive .q-finish-gallery figure { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity var(--dur-slower) var(--ease-out), visibility 0s linear var(--dur-slower); }
.q-design.is-interactive .q-finish-gallery figure.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-slower) var(--ease-out), visibility 0s; }
.q-design.is-interactive .q-finish-gallery figure img { transform: scale(1.04); transition: transform 1.4s var(--ease-out-expo); }
.q-design.is-interactive .q-finish-gallery figure.is-active img { transform: none; }

/* AR prompt as a charcoal plate with the blueprint ruling. */
.q-ar { --btn-surface: var(--charcoal); position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-8); align-items: center; padding: var(--sp-8) var(--sp-10); margin-top: var(--sp-12); background: var(--charcoal); color: var(--white); --notch: var(--notch-lg); clip-path: var(--clip-notch); }
.q-ar::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--technical-dim) 1px, transparent 1px), linear-gradient(90deg, var(--technical-dim) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 160% at 0% 50%, #000, transparent 70%); mask-image: radial-gradient(70% 160% at 0% 50%, #000, transparent 70%); opacity: .5; }
.q-ar > * { position: relative; }
.q-ar__icon { color: var(--technical-light); }
.q-ar h3 { font-size: var(--fs-2xl); margin: var(--sp-2) 0; }
.q-ar p { color: var(--text-inverse-secondary); font-size: var(--fs-sm); max-width: 60ch; margin: 0; }

/* ---------- Install steps ---------- */
.q-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); }
.q-step { position: relative; display: flex; flex-direction: column; }
.q-step__media { aspect-ratio: 3 / 2; margin-bottom: var(--sp-6); }
.q-step__media img { width: 100%; height: 100%; object-fit: cover; }
.q-step__num { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-mono-tight); color: var(--red); }
.q-step__num::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.q-step p { margin: 0; color: var(--muted); max-width: 36ch; }

.q-install__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); flex-wrap: wrap; margin-top: var(--sp-12); padding-top: var(--sp-8); border-top: 1px solid var(--border-strong); }
.q-install__foot .btn-row { margin-top: 0; }
.q-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.q-proof li { display: grid; gap: var(--sp-1); padding-left: var(--sp-4); border-left: 2px solid var(--red); }
.q-proof b { font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: var(--tr-display); line-height: 1; }
.q-proof span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Reviews ---------- */
.q-reviews { overflow: hidden; }
.q-reviews > .section__pad { padding-bottom: var(--sp-12); }
.q-reviews__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--sp-12); align-items: center; }
.q-reviews__copy p { color: var(--text-inverse-secondary); font-size: var(--fs-md); max-width: 34ch; margin: 0 0 var(--sp-6); }
.q-testimonial-video { --notch: var(--notch-xl); }

/* Continuous strip of real rooms. Pauses on hover; static for reduced motion. */
.q-strip { padding-bottom: var(--section-y); overflow-x: auto; scrollbar-width: none; }
.q-strip::-webkit-scrollbar { display: none; }
.q-strip.is-looping { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.q-strip__track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-3); width: max-content; padding: 0 var(--pad); }
.q-strip.is-looping .q-strip__track { padding: 0; animation: q-strip 70s linear infinite; }
.q-strip:hover .q-strip__track { animation-play-state: paused; }
.q-strip li { flex: 0 0 auto; height: clamp(180px, 22vw, 280px); overflow: hidden; --notch: var(--notch-md); clip-path: var(--clip-notch-alt); }
.q-strip li:nth-child(odd) { clip-path: var(--clip-notch); }
.q-strip img { height: 100%; width: auto; }
@keyframes q-strip { to { transform: translateX(calc(-50% - var(--sp-3) / 2)); } }

/* ---------- FAQ ---------- */
.q-faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--sp-16); align-items: start; }
.q-faq__aside { position: sticky; top: calc(var(--header-h) + var(--sp-8)); }
.q-faq__aside .body-copy { max-width: 36ch; }
.q-faq .faq__list { max-width: none; border-top-color: var(--border-strong); }
.q-faq .faq__list details:first-child { padding-top: var(--sp-6); }
.q-docs { display: grid; gap: var(--sp-3); margin-top: var(--sp-8); max-width: 400px; }
.q-doc { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3); padding-right: var(--sp-5); background: var(--white); border: 1px solid var(--border-subtle); color: var(--ink); --notch: var(--notch-sm); clip-path: var(--clip-notch); transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.q-doc:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.q-doc__thumb { flex: 0 0 auto; width: 48px; height: 60px; overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--border-subtle); }
.q-doc__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.q-doc__text { display: grid; gap: 2px; flex: 1; }
.q-doc__name { font-weight: 700; }
.q-doc__meta { font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--muted); }
.q-doc__icon { width: 20px; height: 20px; color: var(--red); transition: transform var(--dur-base) var(--ease-out); }
.q-doc:hover .q-doc__icon { transform: translateY(2px); }

/* ---------- Closing ---------- */
.q-closing { position: relative; isolation: isolate; overflow: hidden; color: var(--white); }
.q-closing__media { position: absolute; inset: 0; z-index: -1; }
.q-closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; }
.q-closing__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,23,26,.95) 0%, rgba(20,23,26,.82) 40%, rgba(20,23,26,.2) 100%); }
.q-closing__inner { padding-top: var(--section-y-loose); padding-bottom: var(--section-y-loose); }
.q-closing__copy { max-width: 640px; }
.q-closing p { max-width: 46ch; color: var(--text-inverse-secondary); font-size: var(--fs-md); margin: 0; }
.q-closing__hours { display: block; margin-top: var(--sp-6); }

/* ============================================================
   Homepage feature
   ============================================================ */
.home-quilt__card { --btn-surface: var(--charcoal); --tech-ink: var(--technical-light); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; background: var(--charcoal); color: var(--white); --notch: var(--notch-xl); clip-path: var(--clip-notch); }
.home-quilt__card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--technical-dim) 1px, transparent 1px), linear-gradient(90deg, var(--technical-dim) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 120% at 0% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 120% at 0% 0%, #000, transparent 70%); opacity: .45; }
.home-quilt__copy { position: relative; padding: var(--sp-12) var(--sp-10); display: flex; flex-direction: column; justify-content: center; }
.home-quilt__copy > .eyebrow { margin-bottom: var(--sp-5); }
.home-quilt .q-partner img { width: 130px; }
.home-quilt .q-partner > span { font-size: var(--fs-3xs); }
.home-quilt h2 { font-size: var(--fs-4xl); margin: var(--sp-5) 0 var(--sp-4); color: var(--white); }
.home-quilt__copy > p { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-inverse-secondary); margin: 0; max-width: 46ch; }
.home-quilt__points { list-style: none; margin: var(--sp-6) 0 var(--sp-8); padding: 0; display: grid; gap: var(--sp-3); }
.home-quilt__points li { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft-2); }
.home-quilt__points svg { width: 15px; height: 15px; color: var(--red); flex: 0 0 auto; }
.home-quilt__copy .btn-row { margin-top: 0; }
.home-quilt__visual { position: relative; min-height: 440px; }
.home-quilt__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-quilt__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--charcoal) 0%, rgba(20,23,26,0) 22%), linear-gradient(0deg, rgba(11,12,13,.55), transparent 40%); pointer-events: none; }
.home-quilt__chips { position: absolute; z-index: 1; left: var(--sp-8); right: var(--sp-6); bottom: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.home-quilt__chip { display: grid; gap: 2px; padding: var(--sp-2) var(--sp-4); background: rgba(11,12,13,.62); border: 1px solid var(--rule-inverse); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); --notch: var(--notch-xs); clip-path: var(--clip-notch); }
.home-quilt__chip span { font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: var(--tr-mono-tight); text-transform: uppercase; color: var(--ink-inverse-faint); }
.home-quilt__chip b { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1; color: var(--white); }
.home-quilt > .section__pad--tight { padding-top: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .q-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .q-partner img { width: 150px; }
  .q-design, .q-faq__grid { gap: var(--sp-10); }
  .q-film { grid-template-columns: 1fr; gap: var(--sp-8); }
  .q-ar { grid-template-columns: auto 1fr; padding: var(--sp-8); }
  .q-ar .btn { grid-column: 2; justify-self: start; }
  .q-steps { gap: var(--sp-6); }
  .home-quilt__copy { padding: var(--sp-10) var(--sp-8); }
}
@media (max-width: 899px) {
  .q-compare { grid-template-columns: minmax(0, 1fr); }
  .q-compare__arrow { justify-content: center; transform: rotate(90deg); }
  .q-hero { min-height: min(760px, calc(100svh - var(--header-h))); }
  .q-hero__inner { padding-top: var(--sp-10); padding-bottom: var(--sp-20); }
  .q-hero::after { background: linear-gradient(90deg, rgba(11,12,13,.86), rgba(11,12,13,.6)), linear-gradient(0deg, rgba(11,12,13,.5), transparent 50%); }
  .q-hero__copy > p { font-size: var(--fs-base); }
  .q-section-head--split { grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
  .q-section-head--split > p { justify-self: start; font-size: var(--fs-base); }
  .q-design, .q-reviews__grid, .q-faq__grid { grid-template-columns: 1fr; }
  .q-faq__aside { position: static; }
  .q-steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); }
  .q-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: var(--sp-6); }
  .q-step__media { grid-column: 1; grid-row: 1 / -1; margin: 0; }
  .q-step > .q-step__num { grid-column: 2; grid-row: 2; }
  .q-step > h3 { grid-column: 2; grid-row: 3; }
  .q-step > p { grid-column: 2; grid-row: 4; }
  .home-quilt__card { grid-template-columns: 1fr; }
  .home-quilt__visual { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .home-quilt__visual::after { background: linear-gradient(0deg, var(--charcoal) 0%, rgba(20,23,26,0) 30%); }
  .home-quilt__chips { left: var(--sp-6); bottom: var(--sp-8); }
}
@media (max-width: 599px) {
  .q-features { grid-template-columns: minmax(0, 1fr); }
  .q-feature { flex-direction: row; align-items: flex-start; gap: var(--sp-4); }
  .q-feature__icon { flex: 0 0 auto; }
  .q-compare { gap: var(--sp-3); }
  .q-compare__arrow { display: none; }
  .q-house { padding: var(--sp-5) var(--sp-4); }
  .q-house__head { margin-bottom: var(--sp-4); }
  .q-house__title { font-size: var(--fs-xl); }
  .q-house__roof { height: 34px; margin: 0 -6px; }
  .q-house__outdoor { top: 34px; }
  .q-house__score { font-size: var(--fs-base); }
  .q-house__meter i { width: 12px; height: 12px; }
  .q-rm__name { font-size: 9px; letter-spacing: .08em; }
  .q-house__art { padding-right: 44px; }
  .q-house__outdoor { width: 44px; }
  .q-house__odu { left: 10px; }
  .q-rm { min-height: 0; padding: var(--sp-6) var(--sp-3) var(--sp-3); }
  .q-rm--hot::after, .q-rm--cold::after, .q-rm__thermo { top: var(--sp-2); right: var(--sp-2); }
  .q-rm__unit { top: var(--sp-2); height: 7px; }
  .q-rm__temp { font-size: var(--fs-2xl); }
  .q-rm__note { font-size: var(--fs-2xs); }
    .q-hero h1 { font-size: clamp(48px, 13vw, 68px); }
  .q-hero .btn-row, .q-closing .btn-row { flex-direction: column; align-items: stretch; }
  .q-hero .btn, .q-closing .btn { justify-content: center; }
  .q-hero__chips { gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-8); }
  .q-hero__scroll { display: none; }
  .q-parts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .q-part { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: stretch; }
  .q-part__media { position: relative; aspect-ratio: auto; width: auto; min-height: 7.5rem; align-self: stretch; }
  .q-part__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .q-part:hover .q-part__media img { transform: none; }
  .q-part:nth-child(1) .q-part__media img { object-position: 8% 42%; }
  .q-part:nth-child(2) .q-part__media img { object-position: 46% 42%; scale: 1.45; }
  .q-part:nth-child(3) .q-part__media img { object-position: 46% 56%; scale: 1.5; }
  .q-part:nth-child(4) .q-part__media img { object-position: center 36%; }
  .q-part__body { padding: var(--sp-4); }
  .q-part p { margin-bottom: 0; }
  .q-film { padding: var(--sp-5); margin-top: var(--sp-8); }
  .q-finish-options { max-width: none; }
  .q-swatch { padding: var(--sp-2); gap: var(--sp-2); }
  .q-swatch__chip { width: 28px; height: 28px; }
  .q-finish-gallery figcaption { padding: var(--sp-8) var(--sp-4) var(--sp-3); }
  .q-ar { grid-template-columns: 1fr; padding: var(--sp-6); gap: var(--sp-4); }
  .q-ar .btn { grid-column: 1; width: 100%; }
  .q-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .q-step > * { grid-column: 1 !important; grid-row: auto !important; }
  .q-closing__media::after { background: linear-gradient(0deg, rgba(20,23,26,.97) 35%, rgba(20,23,26,.8) 100%); }
  .q-step__media { grid-row: auto; margin-bottom: var(--sp-5); }
  .q-install__foot .btn-row { width: 100%; flex-direction: column; }
  .q-install__foot .btn { justify-content: center; }
  .q-proof { gap: var(--sp-5); }
  .home-quilt__copy { padding: var(--sp-8) var(--sp-6); }
  .home-quilt .q-partner { gap: 0; }
  .home-quilt .q-partner > span { padding-left: var(--sp-3); letter-spacing: 0; }
  .home-quilt .q-partner img { width: 120px; }
  .home-quilt__copy .btn-row { flex-direction: column; }
  .home-quilt__copy .btn { justify-content: center; }
  .home-quilt__chip { padding: var(--sp-1) var(--sp-3); }
  .home-quilt__chip b { font-size: var(--fs-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .quilt-page *, .home-quilt * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
