/* Homepage: calm layout; the scroll does the storytelling. */

main.q-home { background: var(--q-bg); }
.q-home .eyebrow { display: none; }

/* Hero: centred words, then the photograph opens out to full width as you scroll. */
.q-hero { padding: clamp(56px, 8vw, 112px) 0 0; text-align: center; }
.q-hero-text { max-width: 900px; margin: 0 auto; padding: 0 var(--q-pad); }
.q-hero-kicker { margin: 0 0 18px; font-size: 15px; font-weight: 500; color: var(--q-muted); }
.q-hero h1 { margin: 0; font-size: clamp(42px, 6.4vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; color: var(--q-ink); }
.q-hero-intro { max-width: 46ch; margin: 22px auto 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--q-muted); }
.q-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.q-hero-note { margin: 18px 0 0; font-size: 14px; color: var(--q-muted); }
.q-hero-note a { color: var(--q-text); text-decoration: underline; text-underline-offset: 3px; }
.q-hero-note a:hover { color: var(--q-ink); }
.q-hero-media { height: clamp(380px, 76vh, 860px); margin: clamp(48px, 6vw, 80px) 0 0; overflow: hidden; clip-path: inset(0 var(--q-pad) round var(--q-radius-lg)); }
.q-hero-media { position: relative; }
.q-hero-media picture, .q-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.q-hero-media figcaption { position: absolute; left: calc(var(--q-pad) + 28px); right: calc(var(--q-pad) + 28px); bottom: 28px; display: grid; justify-items: start; gap: 4px; color: #fff; text-align: left; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.q-hero-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(10, 20, 15, .55)); pointer-events: none; }
.q-hero-media figcaption { z-index: 1; }
.q-hero-media figcaption span { font-size: 14px; opacity: .85; }
.q-hero-media figcaption strong { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.q-hero-media figcaption a { margin-top: 6px; color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		.q-hero-media { animation: q-open linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
		.q-hero-media img { animation: q-settle linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
	}
}
@keyframes q-open { to { clip-path: inset(0 0 round 0); } }
@keyframes q-settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Chapters share one rhythm. */
.q-home .fg-chapter { padding: clamp(64px, 8.5vw, 120px) var(--q-pad); border: 0; background: var(--q-bg); color: var(--q-text); }
.q-home .fg-chapter-content,
.q-home .fg-chapter .section { max-width: 1240px; margin: 0 auto; padding: 0; background: transparent; }
.q-home .fg-chapter .section + .section { margin-top: clamp(72px, 8vw, 112px); }
.q-home .section-heading { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 20px 48px; margin: 0 0 clamp(40px, 5vw, 64px); }
.q-home .section-heading > div { display: block; }
.q-home .fg-chapter h2,
.q-home .fg-quote h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; color: var(--q-ink); }
.q-home .section-heading > p { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.6; color: var(--q-muted); }

/* Solutions: a statement that fills in as you read, then three cards that stack. */
.q-home .solutions { display: block; }
.q-home .solutions > .section-heading { display: block; max-width: 1000px; margin-bottom: clamp(56px, 7vw, 96px); }
.q-home .solutions > .section-heading h2 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; color: var(--q-ink); }
.q-home .solutions > .section-heading > p { max-width: 46ch; margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--q-muted); }
.q-w { color: #c9cfca; transition: color .3s ease; }
.q-w.is-lit { color: var(--q-ink); }
.q-home .solutions .service-panel,
.q-home .solutions .service-panel[hidden] { position: sticky; top: calc(96px + var(--i, 0) * 20px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; gap: 0; min-height: min(72vh, 620px); margin: 0 0 32px; padding: 0; border: 1px solid var(--q-line); border-radius: var(--q-radius-lg); background: var(--q-soft); overflow: hidden; transform-origin: 50% 0; transform: scale(calc(1 - var(--q-p, 0) * .05)); }
#service-panel-1 { --i: 1; }
#service-panel-2 { --i: 2; }
.q-home .service-copy { order: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 64px); background: transparent; }
.q-home .service-image { order: 2; position: relative; height: auto; min-height: 320px; border-radius: 0; }
.q-home .service-image picture, .q-home .service-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-home .service-image span { display: none; }
.q-card-label { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--q-green); }
.q-home .service-copy h3 { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--q-ink); }
.q-home .service-copy > p { margin: 0 0 20px; max-width: 44ch; font-size: 17px; line-height: 1.6; color: var(--q-text); }
.q-home .service-copy ul { display: grid; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.q-home .service-copy li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--q-muted); }
.q-home .service-copy li svg { width: 16px; height: 16px; color: var(--q-green); }
.q-home .service-copy .button { align-self: flex-start; }

/* Real work: the row of photographs travels sideways while you scroll. */
.q-home .fg-chapter-projects { background: var(--q-bg); }
.q-home .work { display: block; }
.q-home .fg-chapter-projects .work-image { display: none; }
.q-home .work-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; padding: 0; background: transparent; color: inherit; }
.q-home .work-copy h2 { grid-row: 1 / span 3; }
.q-home .fg-chapter-projects .work-copy > p { margin: 0; color: var(--q-muted); font-size: 17px; }
.q-home .fg-chapter-projects .work-location { margin: 0; padding: 0; border: 0; }
.q-home .fg-chapter-projects .work-location span { display: block; font-size: 14px; letter-spacing: 0; text-transform: lowercase; color: var(--q-muted); }
.q-home .fg-chapter-projects .work-location span::first-letter { text-transform: uppercase; }
.q-home .fg-chapter-projects .work-location b { font-size: 17px; font-weight: 600; color: var(--q-ink); }
.q-home .work-copy .button { justify-self: start; border: 0; }
.q-gallery { width: 100vw; margin: clamp(48px, 6vw, 80px) calc(50% - 50vw) 0; }
main.q-home { overflow-x: clip; }
.q-gallery-sticky { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--q-pad), calc((100vw - 1240px) / 2)); scrollbar-width: none; }
.q-gallery-sticky::-webkit-scrollbar { display: none; }
.q-gallery-track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; margin: 0; padding: 0 max(var(--q-pad), calc((100vw - 1240px) / 2)); list-style: none; }
.q-gallery-track li { flex: 0 0 auto; width: clamp(260px, 30vw, 460px); scroll-snap-align: start; }
.q-gallery-track li:nth-child(even) { width: clamp(220px, 24vw, 380px); align-self: center; }
.q-gallery-track a { color: inherit; text-decoration: none; }
.q-gallery-track figure { margin: 0; }
.q-gallery-media { aspect-ratio: 4 / 5; border-radius: var(--q-radius); overflow: hidden; background: var(--q-soft); }
.q-gallery-track li:nth-child(even) .q-gallery-media { aspect-ratio: 1; }
.q-gallery-media picture, .q-gallery-media img { width: 100%; height: 100%; object-fit: cover; }
.q-gallery-track figcaption { display: grid; gap: 2px; padding-top: 14px; }
.q-gallery-track figcaption span { font-size: 14px; color: var(--q-muted); }
.q-gallery-track figcaption h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--q-ink); }
.q-gallery.is-pinned { margin-top: 0; }
.q-gallery.is-pinned .q-gallery-sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; overflow: hidden; scroll-snap-type: none; }
.q-gallery.is-pinned .q-gallery-track { will-change: transform; }
.q-home .project-story-index { max-width: 1240px; margin: 48px auto 0; border-top-color: var(--q-line); }

/* Why: figures, convictions, voices, credentials. */
.q-home .fg-chapter-why { background: var(--q-soft); }
.q-home .fg-track-record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px; margin: 0 0 clamp(64px, 7vw, 104px); padding: 32px 0 0; border: 0; border-top: 1px solid var(--q-line); }
.q-home .fg-track-record > div { padding: 0; border: 0; }
.q-home .fg-track-record strong { display: block; font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--q-ink); }
.q-home .fg-track-record > div p { margin: 10px 0 0; max-width: 20ch; font-size: 15px; color: var(--q-muted); }
.q-home .fg-track-record-note { align-self: end; margin: 0; padding: 0; border: 0; font-size: 15px; color: var(--q-muted); }
.q-home .difference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); border: 0; }
.q-home .difference-grid article { padding: 0; border: 0; background: transparent; }
.q-home .difference-grid article svg { width: 24px; height: 24px; color: var(--q-green); }
.q-home .difference-grid article > span { display: none; }
.q-home .difference-grid h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; color: var(--q-ink); }
.q-home .difference-grid p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--q-muted); }
.q-home .reviews-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 48px; align-items: start; }
.q-home .review-summary { padding: 0; border: 0; background: transparent; }
.q-home .review-summary .rating-line strong { font-size: 48px; font-weight: 600; letter-spacing: -.04em; color: var(--q-ink); }
.q-home .review-summary p, .q-home .review-summary small { color: var(--q-muted); }
.q-home .google-reviews .text-link { color: var(--q-green); font-weight: 500; border: 0; text-decoration: underline; text-underline-offset: 5px; }
.q-home .accreditation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 48px; align-items: center; }
.q-home .accreditation-badge { display: grid; place-items: center; height: clamp(64px, 6vw, 88px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.q-home .accreditation-badge img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.q-home .accreditation-badge:hover img { filter: none; opacity: 1; }

/* Process: a line that draws itself as you pass the steps. */
.q-home .process h2 { margin-bottom: clamp(48px, 5vw, 72px); }
.q-home .process-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); border: 0; }
.q-home .process-grid::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 1px; background: var(--q-green); transform-origin: 0 50%; }
.q-home .process-grid article { position: relative; padding: 0; border: 0; background: transparent; }
.q-home .process-grid article > span { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 24px; border: 1px solid var(--q-green); border-radius: 50%; background: var(--q-bg); font: 500 15px/1 var(--q-font); letter-spacing: 0; color: var(--q-green); }
.q-home .process-grid h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--q-ink); }
.q-home .process-grid p { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.6; color: var(--q-muted); }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.q-home .process-grid::before { animation: q-draw linear both; animation-timeline: view(); animation-range: entry 80% cover 55%; }
	}
}
@keyframes q-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Questions. */
.q-home .faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.q-home .faq > div:first-child { position: sticky; top: 112px; }
.q-home .faq-list { border: 0; }
.q-home .faq-list details { border: 0; border-bottom: 1px solid var(--q-line); background: transparent; }
.q-home .faq-list details:first-child { border-top: 1px solid var(--q-line); }
.q-home .faq-list summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 68px; padding: 16px 0; font-size: 18px; font-weight: 500; color: var(--q-ink); }
.q-home .faq-list summary svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--q-muted); }
.q-home .faq-list details p { margin: 0; padding: 0 0 22px; max-width: 58ch; font-size: 16px; line-height: 1.65; color: var(--q-muted); }

/* Plan your project. */
.q-home .fg-quote { padding: clamp(64px, 8.5vw, 120px) var(--q-pad); border: 0; background: var(--q-soft); color: var(--q-text); }
.q-home .fg-quote-heading { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; max-width: 1240px; margin: 0 auto clamp(40px, 5vw, 64px); padding: 0; border: 0; }
.q-home .fg-quote-heading p { margin: 0; font-size: 17px; color: var(--q-muted); }
.q-home .fg-quote .contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; max-width: 1240px; margin: 0 auto; padding: 0; background: transparent; }
.q-home .fg-quote .contact-details { padding: 0; background: transparent; color: var(--q-text); }
.q-home .fg-quote .contact-details h2 { font-size: 24px; letter-spacing: -.02em; }
.q-home .fg-quote .contact-method { border-color: var(--q-line); color: var(--q-ink); }
.q-home .fg-quote .contact-method svg { color: var(--q-green); }
.q-home .fg-quote .contact-area { padding: 16px 18px; border: 1px solid var(--q-line); border-radius: var(--q-radius); background: #fff; color: var(--q-muted); }
.q-home .fg-quote #enquiry-form { border: 1px solid var(--q-line); border-radius: 20px; background: #fff; box-shadow: none; }
.q-home .fg-quote #enquiry-form h2 { font-size: clamp(24px, 2.2vw, 32px); }

/* Live-content fixes (2.16.1). */
.q-home .process-grid article,
.q-home .process-grid article:first-child,
.q-home .process-grid article:last-child { padding: 0; border: 0; }
.q-home .work-copy { align-items: start; }
.q-home .work-copy h2 { align-self: start; }
.q-home .fg-chapter-projects { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
/* Specialist services under the three solutions: quiet cards, one per column. */
.q-home #solar-battery-services { margin-top: clamp(72px, 9vw, 128px); padding-top: 0; border-top: 0; }
.q-home #solar-battery-services .section-heading { margin-bottom: clamp(28px, 3vw, 40px); }
.q-home #solar-battery-services h2 { max-width: 18ch; font-size: clamp(28px, 3vw, 42px); }
.q-home #solar-battery-services .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; border: 0; }
.q-home #solar-battery-services .catalog-grid .product-card,
.q-home #solar-battery-services .catalog-grid .product-card:first-child,
.q-home #solar-battery-services .catalog-grid .product-card:last-child { display: flex; padding: 24px; border: 1px solid var(--q-line); border-radius: var(--q-radius); background: #fff; }
.q-home #solar-battery-services .product-card-copy { display: flex; flex-direction: column; flex: 1; padding: 0; }
.q-home #solar-battery-services .product-card .eyebrow { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: lowercase; color: var(--q-green); }
.q-home #solar-battery-services .product-card .eyebrow::first-letter { text-transform: uppercase; }
.q-home #solar-battery-services .product-card h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--q-ink); }
.q-home #solar-battery-services .product-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--q-muted); }
.q-home #solar-battery-services .product-card p:last-child { margin-top: auto; padding-top: 16px; }
.q-home #solar-battery-services .text-link { color: var(--q-green); font-weight: 500; }
@media (max-width: 1000px) { .q-home #solar-battery-services .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .q-home #solar-battery-services .catalog-grid { grid-template-columns: 1fr; } }

/* Tablets and phones. */
@media (max-width: 900px) {
	.q-home .section-heading,
	.q-home .fg-quote-heading,
	.q-home .work-copy { grid-template-columns: 1fr; align-items: start; }
	.q-home .work-copy h2 { grid-row: auto; }
	.q-home .solutions .service-panel,
	.q-home .solutions .service-panel[hidden] { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; margin-bottom: 20px; transform: none; }
	.q-home .service-image { order: 0; min-height: 0; aspect-ratio: 4 / 3; }
	.q-home .service-copy { padding: 28px 24px 32px; }
	.q-home .fg-track-record { grid-template-columns: 1fr 1fr; }
	.q-home .fg-track-record-note { grid-column: 1 / -1; }
	.q-home .difference-grid,
	.q-home .reviews-layout,
	.q-home .faq,
	.q-home .fg-quote .contact-layout { grid-template-columns: 1fr; }
	.q-home .faq > div:first-child { position: static; }
	.q-home .accreditation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.q-home .process-grid { grid-template-columns: 1fr; gap: 32px; padding-left: 64px; }
	.q-home .process-grid::before { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; transform-origin: 50% 0; }
	.q-home .process-grid article > span { position: absolute; left: -64px; top: -6px; margin: 0; }
	@keyframes q-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (max-width: 600px) {
	.q-hero { text-align: left; }
	.q-hero-actions { justify-content: flex-start; }
	.q-hero-intro { margin-left: 0; }
	.q-hero-media { height: 58vh; }
	.q-home .fg-chapter { padding-top: 60px; padding-bottom: 60px; }
	.q-home .fg-quote { padding-top: 60px; padding-bottom: 60px; }
}
