/* Ultimate Outdoor Solutions — v3: the client's Framer design, rebuilt and fine-tuned.
   Values (type scale, colours, radii, widths) are measured from ultimateoutdoorsolutions.co.nz. */

:root {
  --slate: #1e2428;
  --slate-2: #252d31;
  --slate-3: #3b4145;
  --cream: #f6f3ed;
  --paper: #ffffff;
  --olive: #6f7450;
  --olive-dark: #5d6243;
  --sage: #c3c79b;
  --sage-pale: #d4d7b2;
  --text: #1e2428;
  --muted: #5f6467;
  --muted-2: #888f92;
  --line: #e4e1da;
  --line-dark: rgba(255, 255, 255, .12);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  /* Framer used a hard 3px/3px drop shadow; softened slightly so it reads as depth rather than an outline */
  --shadow: 3px 3px 6px rgba(30, 36, 40, .18);
  --shadow-lift: 4px 6px 16px rgba(30, 36, 40, .18);

  --wrap: 1152px;
  --wrap-wide: 1240px;
  --wrap-narrow: 1000px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: var(--sage); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--slate); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

.wrap, .wrap-mid { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }

/* ---------------- type ---------------- */
.h1 { font-size: clamp(2.6rem, 4.9vw, 4.375rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.h2 { font-size: clamp(2rem, 3.2vw, 2.875rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--olive); line-height: 1.6; margin-bottom: 8px; }
.eyebrow--white { color: #fff; }
.eyebrow--sage { color: var(--sage); }
.eyebrow--pale { color: var(--sage-pale); }
/* Framer set body copy at 17px with a very tight 1.18 line height; opened up for readability */
.lead { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); }
.h2 + .lead, .h2 + .lead { margin-top: 18px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 22px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .75rem; font-weight: 600; letter-spacing: .54px; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--olive { background: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--olive-dark); }
.btn--light { background: #fff; color: var(--slate); }
.btn--outline { background: transparent; color: var(--slate); border: 1px solid var(--slate); }
.btn--outline:hover { background: var(--slate); color: #fff; }
.btn--block { width: 100%; min-height: 44px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.text-link { display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .84px; text-transform: uppercase; color: var(--olive); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--olive-dark); }

/* ---------------- header ---------------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; }
.header-inner { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); margin-inline: auto; height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand img { width: 112px; height: auto; }
.logo-light { display: none; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: .875rem; font-weight: 600; letter-spacing: -.28px; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: -.28px; min-height: 44px; padding: 0 4px; }
.site-header--light, .site-header--plain { color: var(--slate); }
/* inner pages sit over a shaded photo: white nav (the Framer site kept dark links there, which were hard to read) */
.site-header--dark { color: #fff; }
.site-header--dark .logo-dark { display: none; }
.site-header--dark .logo-light { display: block; }
/* sticky version once you scroll */
.site-header.is-stuck { position: fixed; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); color: var(--slate); box-shadow: 0 1px 0 var(--line); animation: drop .35s var(--ease); }
.site-header.is-stuck .header-inner { height: 72px; }
.site-header.is-stuck .logo-dark { display: block; }
.site-header.is-stuck .logo-light { display: none; }
.site-header.is-stuck .brand img { width: 96px; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: #fff; padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; gap: 28px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; }
.mobile-menu ul a[aria-current="page"] { color: var(--olive); }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu p { color: var(--muted); }
.menu-open .site-header { position: fixed; color: var(--slate); }
.menu-open .site-header .logo-dark { display: block; }
.menu-open .site-header .logo-light { display: none; }
.menu-open body { overflow: hidden; }

/* ---------------- heroes ---------------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1000px; overflow: hidden; background: #c9b8d6; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a soft wash behind the headline so the dark text stays legible over the moving sky */
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; text-align: center; padding-top: 112px; width: min(960px, 100% - var(--gutter) * 2); margin-inline: auto; }
.hero-title { color: rgba(0, 0, 0, .78); margin-top: 6px; }
.hero .eyebrow--white { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }

.page-hero { position: relative; height: 560px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--slate); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 27, .55), rgba(20, 24, 27, .38) 40%, rgba(20, 24, 27, .5)); }
.page-hero-inner { position: relative; z-index: 1; width: min(780px, 100% - var(--gutter) * 2); padding-top: 40px; }
.page-hero .h1 { color: #fff; }
.page-hero-sub { margin: 18px auto 0; max-width: 400px; font-size: 1.0625rem; line-height: 1.4; color: rgba(255, 255, 255, .88); }

/* ---------------- logo strip ---------------- */
/* static partner row: each logo shown once (the scrolling version repeated them too often) */
.logo-strip { background: var(--cream); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); position: relative; z-index: 1; }
.logo-row { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 12px var(--gutter); flex-wrap: wrap; }
.logo-label { font-size: .6875rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.logo-row img { height: 40px; width: auto; }
.logo-row img[src*="stratco"] { height: 30px; }

/* ---------------- sections ---------------- */
.section { padding: 64px 0; }
.section--tight { padding: 32px 0 64px; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--slate); color: #fff; }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .64); }
.section--rule { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; max-width: 820px; margin-inline: auto; }
.sec-head--center .lead { max-width: 560px; margin-inline: auto; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 44px; }
.split-head-r { max-width: 300px; display: grid; justify-items: start; gap: 16px; }
.split-head-r--right { text-align: right; justify-items: end; }
.split-head-r:has(> .btn:only-child) { justify-items: end; }
.split-head-r .lead { margin: 0; }

/* craftsmanship */
.craft { padding-bottom: 66px; }
.craft-grid { display: grid; grid-template-columns: 360px 376px 360px; justify-content: center; gap: 16px; align-items: stretch; }
.craft-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 172px; }
.stat-n { font-size: 2rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: .625rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); line-height: 1.35; max-width: 14em; }

/* services */
.services { padding: 44px 0 72px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease); }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.svc-media { overflow: hidden; }
.svc-media img { width: 100%; height: 250px; object-fit: cover; transition: scale .9s var(--ease); }
.svc-card:hover .svc-media img { scale: 1.05; }
.svc-body { padding: 26px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-body p { font-size: .875rem; line-height: 1.55; color: var(--muted); margin: 12px 0 28px; flex: 1; }

/* tabs (built with intention / customisation) */
.standard { padding: 100px 0; }
.tabs-grid { display: grid; grid-template-columns: 450px 500px; justify-content: space-between; gap: 40px; align-items: start; }
.tab-list { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.tab { border-bottom: 1px solid var(--line-dark); }
.tab h3 button { width: 100%; text-align: left; padding: 15px 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.3px; color: rgba(255, 255, 255, .58); transition: color .25s; }
.tab h3 button:hover { color: #fff; }
.tab.is-active h3 button { color: var(--sage); padding-bottom: 8px; }
.tab-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.tab-body > p { overflow: hidden; font-size: .875rem; line-height: 1.55; color: rgba(255, 255, 255, .64); max-width: 330px; }
.tab.is-active .tab-body { grid-template-rows: 1fr; }
.tab.is-active .tab-body > p { padding-bottom: 18px; }
.tab-media { position: relative; aspect-ratio: 500 / 510; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #2a3135; }
.tab-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.tab-img.is-active { opacity: 1; }
.tab-img.is-diagram { object-fit: contain; background: #fff; padding: 6%; }

/* about teaser */
.about-teaser { padding: 56px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 1; max-width: 470px; justify-self: end; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { display: grid; gap: 8px; margin: 24px 0 28px; font-size: .875rem; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; color: var(--olive); flex: none; }

/* recent work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.work-tag { margin-top: 16px; font-size: .625rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--olive); }
.work-title { margin-top: 4px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.6px; line-height: 1.25; }

/* carousels */
.carousel { position: relative; overflow: hidden; background: #ddd; touch-action: pan-y; }
.carousel--card { aspect-ratio: 369 / 277; }
.carousel--wide { aspect-ratio: 1120 / 639; border-radius: 8px; }
.carousel--tall { aspect-ratio: 1152 / 792; }
.carousel-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.slide.is-active { opacity: 1; }
.car-btn { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .2); color: #fff; backdrop-filter: blur(4px); transition: background-color .25s; }
.car-btn:hover { background: rgba(0, 0, 0, .45); }
.car-btn svg { width: 20px; height: 20px; }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.car-dots { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: flex; gap: 6px; padding: 6px 10px; border-radius: 50px; background: rgba(0, 0, 0, .2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background-color .25s; position: relative; }
.dot::after { content: ""; position: absolute; inset: -8px; }
.dot.is-active { background: #fff; }

/* reviews */
.reviews { padding: 57px 0 64px; overflow: hidden; }
/* two reviews, shown side by side (no slideshow) */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-card { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review-card blockquote { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.38px; line-height: 1.5; }
.review-card figcaption { display: grid; gap: 2px; }
.rv-name { font-weight: 600; }
.rv-loc { font-size: .75rem; font-weight: 500; }
.rv-tag { font-size: .625rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }

/* finance */
.finance { position: relative; min-height: 480px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--slate); }
.finance-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.finance::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 24, 27, .92) 0%, rgba(20, 24, 27, .7) 38%, rgba(20, 24, 27, 0) 70%); }
.finance-inner { position: relative; z-index: 2; width: min(var(--wrap-wide), 100% - var(--gutter) * 2); padding: 64px 0; }
.finance .h2 { color: #fff; max-width: 560px; }
.finance .lead { color: rgba(255, 255, 255, .78); max-width: 380px; margin: 18px 0 26px; }
.finance .fine { margin-top: 18px; font-size: .6875rem; color: rgba(255, 255, 255, .58); }

/* cta band */
.cta-band { background: var(--slate-2); color: #fff; padding: 68px 0; }
.cta-band .wrap { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; }
.cta-grid > div:last-child { max-width: 470px; justify-self: end; width: 100%; }
.cta-band .h2 { color: #fff; max-width: 420px; }
.cta-band .lead { color: rgba(255, 255, 255, .74); margin: 0 0 22px; }

/* ---------------- roof styles ---------------- */
.sys-list { border-top: 1px solid var(--line); }
.sys-row { display: grid; grid-template-columns: 625fr 527fr; gap: 80px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.sys-img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sys-img img { width: 100%; aspect-ratio: 625 / 532; object-fit: cover; transition: scale .8s var(--ease); }
.sys-img:hover img { scale: 1.03; }
.sys-meta { display: flex; align-items: center; gap: 14px; font-size: .875rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--olive); }
.sys-meta span { font-size: .75rem; letter-spacing: 1px; padding-right: 14px; border-right: 1px solid var(--line); }
.sys-body .h2 { margin: 10px 0 0; font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.sys-body .lead { margin: 16px 0 26px; font-size: .9375rem; max-width: 420px; }

/* process */
.process { background: var(--slate); color: #fff; padding: 80px 0 100px; }
.process-grid { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.process .h2 { color: #fff; }
.process .lead { color: rgba(255, 255, 255, .64); max-width: 420px; }
.steps { border-top: 1px solid var(--line-dark); }
.step { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 0 24px; padding: 22px 0 64px; border-bottom: 1px solid var(--line-dark); }
.step:last-child { border-bottom: 0; }
.step-n { font-size: .75rem; font-weight: 700; color: var(--sage); padding-top: 4px; }
.step h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.3px; line-height: 1.3; }
.step p { font-size: .8125rem; line-height: 1.6; color: rgba(255, 255, 255, .62); }

/* ---------------- system pages ---------------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.intro-grid .lead { margin: 18px 0 26px; max-width: 480px; }
.outline-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 32px; }
.outline-card .eyebrow { margin-bottom: 14px; }
.outline-card .lead + .eyebrow { margin-top: 24px; }
.outline-card .h3 { margin-bottom: 14px; }
.feature-grid { display: grid; grid-template-columns: 578fr 520fr; gap: 56px; align-items: center; }
.feature-img { width: 100%; aspect-ratio: 578 / 518; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-img.is-diagram { object-fit: contain; background: #fff; padding: 5%; }
.feature-grid .lead { margin-top: 16px; }
.rule-list { margin: 20px 0 46px; border-top: 1px solid var(--line); }
.rule-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.custom-wrap { padding: 32px 0; }
.custom { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 96px 0; }
.custom .tabs-grid { width: min(var(--wrap-narrow), 100% - var(--gutter) * 4); margin-inline: auto; }
.finish-grid { display: grid; grid-template-columns: repeat(5, 72px); justify-content: center; gap: 22px 64px; margin: 8px auto 36px; }
.finish-grid li { display: grid; justify-items: center; gap: 8px; font-size: .75rem; font-weight: 500; text-align: center; white-space: nowrap; }
.swatch { width: 50px; height: 50px; border-radius: var(--radius); box-shadow: var(--shadow); }
.note { text-align: center; font-size: 1.0625rem; color: var(--muted); }
.sys-carousel { margin-top: 40px; }
.specs { margin-top: 48px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.spec-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px 26px; }
.spec-card .eyebrow { margin-bottom: 4px; }
.spec-card p:last-child { font-size: 1.0625rem; line-height: 1.32; color: var(--muted); }
.spec-card strong { color: var(--slate); font-weight: 600; }
.faq { margin-top: 96px; }
.faq .sec-head { margin-bottom: 28px; }
.faq-list { max-width: 560px; margin-inline: auto; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 15px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--olive); }
.faq-plus svg { width: 16px; height: 16px; color: var(--olive); transition: transform .35s var(--ease); }
.faq-item[open] .faq-plus svg { transform: rotate(45deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 40px 16px 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* ---------------- blinds ---------------- */
.blinds-intro { padding: 100px 0; }
.blinds-grid { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.45fr; gap: 72px; align-items: center; }
.blinds-copy .lead { margin: 18px 0 26px; }
.blinds-img { width: 100%; aspect-ratio: 778 / 564; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.fabric-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.fabric-group { margin-top: 28px; text-align: center; }
.fabric-group h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.fabric-group ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 640px; margin-inline: auto; }
.fabric-group li { width: 72px; display: grid; gap: 8px; justify-items: center; font-size: .75rem; line-height: 1.2; text-align: center; }
.fabric-group img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------------- gallery ---------------- */
.project { margin-top: 64px; }
.project .h2 { margin: 6px 0 22px; font-size: clamp(1.9rem, 2.8vw, 2.6rem); }

/* ---------------- about ---------------- */
.overview { display: grid; grid-template-columns: 691fr 461fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.overview > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.overview-panel { background: var(--slate); color: #fff; padding: 44px 38px; }
.overview-panel .lead { color: rgba(255, 255, 255, .7); margin: 14px 0 30px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .18); border-left: 1px solid rgba(255, 255, 255, .18); max-width: 246px; }
.fact { padding: 14px 14px 18px; border-right: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); min-height: 88px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.fact .stat-n { font-size: 1.5rem; }
.fact .stat-l { color: rgba(255, 255, 255, .6); font-size: .5625rem; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 517fr 620fr; gap: 16px; align-items: stretch; }
.commit-card { position: relative; border-radius: 8px; overflow: hidden; color: #fff; min-height: 570px; display: flex; }
.commit-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.commit-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 24, 27, .78), rgba(20, 24, 27, .55) 50%, rgba(20, 24, 27, .82)); }
.commit-inner { position: relative; z-index: 2; padding: 44px 48px; display: flex; flex-direction: column; }
.commit-inner .eyebrow { font-size: .625rem; letter-spacing: 1px; }
.commit-inner .h2 { color: #fff; margin-top: 6px; }
.commit-inner .lead { color: rgba(255, 255, 255, .78); margin-top: 16px; }
.commit-list { margin-top: auto; padding-top: 40px; display: grid; gap: 14px; }
.commit-list dt { font-size: .5625rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.commit-list dd { font-size: .9375rem; }
.commit-list a:hover { text-decoration: underline; }
.form-card { background: #f3f2ee; border-radius: 8px; padding: 32px 34px 34px; }
.form-card .eyebrow { font-size: .625rem; letter-spacing: 1px; margin-bottom: 4px; }
.form-intro { font-size: 1.0625rem; color: var(--muted); margin-bottom: 22px; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.field { display: grid; gap: 6px; }
.field--full, .form-error, .qform .btn, .form-note { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid #dcd9d2; border-radius: 4px; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6467' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field select:invalid { color: var(--muted-2); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(111, 116, 80, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hint { font-size: .75rem; color: var(--muted); }
.form-error { color: #b3261e; font-size: .875rem; }
.form-note { font-size: .75rem; color: var(--muted); }
.form-note a { text-decoration: underline; }
.form-error a { text-decoration: underline; }
.qform[hidden], .qform-done[hidden] { display: none; }
.qf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform .btn.is-sending { opacity: .7; cursor: progress; }
.qform-done { padding: 28px 0 8px; outline: none; animation: doneIn .6s cubic-bezier(.22, 1, .36, 1) both; }
.qform-done .h3 { margin: 16px 0 10px; }
.qform-done p { color: var(--muted); line-height: 1.6; }
.qform-done a { color: var(--slate); text-decoration: underline; }
.qform-tick { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--olive); color: #fff; }
@keyframes doneIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .qform-done { animation: none; } }
.ghl-embed iframe { width: 100%; min-height: 640px; border: 0; }

/* ---------------- legal ---------------- */
.legal-hero { background: var(--cream); padding: 150px 0 110px; }
.legal-head { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.legal-head .lead { margin-top: 24px; }
.legal-grid { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); display: grid; grid-template-columns: 236px minmax(0, 700px); gap: 40px; padding-top: 16px; }
.legal-toc { position: sticky; top: 100px; align-self: start; }
.legal-toc ul { display: grid; gap: 8px; margin-top: 8px; font-size: .875rem; }
.legal-toc a:hover { color: var(--olive); }
.legal-body section + section { margin-top: 34px; }
.legal-body p { margin-top: 10px; color: var(--muted); line-height: 1.7; }
.legal-body a { text-decoration: underline; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--slate); color: #d9dcdd; padding: 64px 0 24px; }
.footer-inner { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.footer-logo { width: 120px; margin-inline: auto; }
.footer-contact { display: flex; justify-content: center; gap: 72px; margin: 36px 0 32px; text-align: center; font-size: .875rem; }
.f-label { font-size: .5625rem; font-weight: 700; letter-spacing: 1.08px; text-transform: uppercase; color: #777f82; margin-bottom: 4px; }
.footer-contact a:hover, .footer-cols a:hover, .footer-bottom a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-around; gap: 32px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer-cols ul { display: grid; gap: 4px; }
.hours li { display: grid; grid-template-columns: 120px auto; gap: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .75rem; color: var(--muted-2); }
.footer-bottom p a { text-decoration: underline; }
.footer-legal { display: flex; gap: 20px; }

/* ---------------- appear animation (Framer-style fade up) ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .craft-grid { grid-template-columns: 1fr 1.05fr 1fr; }
  .craft-img { height: auto; aspect-ratio: 1; }
  .tabs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-end .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .split-head { flex-direction: column; align-items: flex-start; }
  .split-head-r { max-width: 520px; text-align: left; justify-items: start; }
  .svc-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .craft-grid .stat-grid { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, 1fr); }
  .tabs-grid, .about-grid, .intro-grid, .feature-grid, .sys-row, .process-grid, .cta-grid, .blinds-grid, .overview, .contact-grid, .legal-head, .legal-grid { grid-template-columns: 1fr; }
  .about-img { justify-self: start; }
  .cta-grid > div:last-child { justify-self: start; }
  .legal-toc { position: static; }
  .sys-row { gap: 28px; }
  .tab-media { max-width: 560px; }
  .footer-cols { grid-template-columns: 1fr 1fr; justify-content: stretch; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero-inner { padding-top: 120px; }
  .page-hero { height: 480px; }
  .svc-grid, .work-grid { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-grid .stat-grid { grid-row: auto; grid-template-columns: 1fr 1fr; }
  .craft-img:last-child { display: none; }
  .standard, .custom { padding: 64px 0; }
  .custom .tabs-grid { width: min(var(--wrap-narrow), 100% - var(--gutter) * 2); }
  .finish-grid { grid-template-columns: repeat(5, 1fr); gap: 18px 8px; }
  .finish-grid li { font-size: .625rem; white-space: normal; }
  .spec-grid, .fabric-cards { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card blockquote { font-size: 1.0625rem; }
  .step { grid-template-columns: 40px 1fr; padding-bottom: 32px; }
  .step p { grid-column: 2; margin-top: 8px; }
  .qform { grid-template-columns: 1fr; }
  .commit-card { min-height: 520px; }
  .commit-inner, .form-card { padding: 28px 22px; }
  .footer-contact { flex-direction: column; gap: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hours li { grid-template-columns: auto auto; }
  .legal-hero { padding: 120px 0 64px; }
  .blinds-intro { padding: 64px 0; }
}

.split-head > div > .lead { margin-top: 14px; max-width: 520px; }
@media (max-width: 720px) {
  .h1 { font-size: 2.2rem; letter-spacing: -.05em; }
  .h2 { font-size: 1.75rem; }
  .hero-inner { padding-top: 116px; }
}

@media (max-width: 720px) { .logo-row { gap: 14px 28px; } .logo-label { width: 100%; text-align: center; } .logo-row img { height: 34px; } .logo-row img[src*="stratco"] { height: 26px; } }

/* ---------------- opening logo animation (first visit per session) ---------------- */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--slate); display: grid; place-items: center; cursor: pointer; }
.no-js .intro, .intro-done .intro { display: none; }
.intro-logo { position: relative; width: min(300px, 64vw); aspect-ratio: 500 / 270; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* one logo image, clipped into its three parts so each can move on its own */
.intro-mark { clip-path: inset(0 0 44% 0); opacity: 0; transform: translateY(18px) scale(.94); animation: introMark .9s cubic-bezier(.22, 1, .36, 1) .1s forwards; }
.intro-word { clip-path: inset(60% 100% 17% 0); animation: introWipe .8s cubic-bezier(.65, 0, .35, 1) .55s forwards; }
.intro-sub { clip-path: inset(83% 0 0 0); opacity: 0; transform: translateY(8px); animation: introFade .6s ease-out 1s forwards; }
.intro-line { position: absolute; left: 20%; right: 20%; bottom: -18px; height: 2px; background: var(--sage); transform: scaleX(0); animation: introLine .7s cubic-bezier(.65, 0, .35, 1) 1.15s forwards; }
.intro.is-leaving { animation: introOut .75s cubic-bezier(.76, 0, .24, 1) forwards; }
.intro.is-leaving .intro-logo { animation: introLogoOut .5s ease-in forwards; }
@keyframes introMark { to { opacity: 1; transform: none; } }
@keyframes introWipe { to { clip-path: inset(60% 0 17% 0); } }
@keyframes introFade { to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introOut { to { transform: translateY(-100%); } }
@keyframes introLogoOut { to { opacity: 0; transform: translateY(-24px); } }
.intro-active body { overflow: hidden; }

/* ================= premium motion layer ================= */
/* 1. images unveil from behind a mask with a slow settle-in zoom */
.js [data-mask] { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1); transition-delay: var(--d, 0s); }
.js [data-mask].is-in { clip-path: inset(0 0 0 0); }
.js img[data-mask], .js [data-mask] > img, .js [data-mask] .slide, .js [data-mask] .tab-img { transform: scale(1.14); transition: transform 1.6s cubic-bezier(.22, 1, .36, 1), opacity .5s var(--ease); transition-delay: var(--d, 0s); }
.js img[data-mask].is-in, .js [data-mask].is-in > img, .js [data-mask].is-in .slide, .js [data-mask].is-in .tab-img { transform: none; }
/* shadows sit outside the clip, so fade them in once the image is uncovered */
.js .craft-img[data-mask], .js .about-img[data-mask], .js .feature-img[data-mask], .js .blinds-img[data-mask] { box-shadow: none; }
.js .craft-img[data-mask].is-in, .js .about-img[data-mask].is-in, .js .feature-img[data-mask].is-in, .js .blinds-img[data-mask].is-in { box-shadow: var(--shadow); transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1), transform 1.6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s ease .9s; }

/* 2. headlines rise in word by word */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js [data-words].is-split .w > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--d, 0s) + var(--i) * 45ms); }
.js [data-words].is-in .w > span { transform: none; }
.js [data-words]:not(.is-split) { opacity: 0; }

/* 3. depth: big background photos drift slightly slower than the page */
.hero-media, .page-hero-img, .finance-img { will-change: transform; }
.page-hero-img { animation: heroSettle 1.8s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes heroSettle { from { scale: 1.08; } to { scale: 1; } }
.hero-media { animation: heroSettleSoft 2.2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes heroSettleSoft { from { scale: 1.03; } to { scale: 1; } }

/* 4. hover details */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--olive-dark); transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--olive:hover { background: var(--olive); }
.btn--light::before { background: var(--cream); }
.btn--outline::before { background: var(--slate); }
.btn.is-disabled::before { display: none; }
.text-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; text-decoration-color: rgba(111, 116, 80, .45); transition: background-size .4s var(--ease), color .25s; }
.text-link:hover { background-size: 100% 1px; text-decoration-color: transparent; }
.work-card .carousel .slide, .project .carousel .slide { transition: opacity .6s var(--ease), scale .9s var(--ease); }
.work-card:hover .slide.is-active, .project .carousel:hover .slide.is-active { scale: 1.04; }
.sys-row:hover .sys-meta span { color: var(--olive); }

@media (prefers-reduced-motion: reduce) {
  .js [data-mask] { clip-path: none !important; }
  .js img[data-mask], .js [data-mask] > img, .js [data-mask] .slide, .js [data-mask] .tab-img { transform: none !important; }
  .js [data-words] .w > span { transform: none !important; }
  .js [data-words]:not(.is-split) { opacity: 1; }
  .page-hero-img, .hero-media { animation: none; }
}

/* ---------------- louvre blade demo ---------------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.demo-grid .lead { margin-top: 16px; max-width: 440px; }
.demo-grid .lead strong { color: var(--slate); font-weight: 600; }
.demo-readout { display: flex; align-items: baseline; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-angle { font-size: 3.25rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.4ch; }
.demo-state { font-size: .875rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--olive); }
.demo-slider { display: grid; gap: 10px; margin-top: 22px; max-width: 420px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.demo-slider input { width: 100%; accent-color: var(--olive); height: 28px; cursor: pointer; }
.demo-stage { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.demo-stage svg { width: 100%; height: auto; }
.demo-sun circle { fill: #f2c46b; }
.demo-rays line { stroke: #f2c46b; stroke-width: 10; stroke-linecap: round; opacity: .3; }
.demo-rain line { stroke: #7f98ad; stroke-width: 2; stroke-linecap: round; }
.demo-ground { fill: #c9c3b4; }
.demo-light polygon { fill: #f2c46b; opacity: .35; }
.demo-frame rect { fill: #e8e8e4; stroke: #b9b7b0; stroke-width: 1; }
.demo-blades .blade { fill: #fbfbf9; stroke: #9ea0a0; stroke-width: 1; }
.demo-rays, .demo-rain, .demo-light, .demo-sun { transition: opacity .3s; }
@media (max-width: 1023px) { .demo-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------------- build-your-pergola picker ---------------- */
.picker { background: #fff; }
.pk { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.pk-step { border: 0; margin: 0; padding: 0 0 26px; }
.pk-step + .pk-step { border-top: 1px solid var(--line); padding-top: 24px; }
.pk-step legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 16px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.pk-step legend span { font-size: .75rem; font-weight: 700; color: var(--olive); letter-spacing: 1px; }
.pk-step legend em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .9375rem; }
.pk input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pk-sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pk-sys { position: relative; display: grid; border-radius: var(--radius); overflow: hidden; background: var(--cream); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s, transform .25s var(--ease); }
.pk-sys:hover { transform: translateY(-2px); }
.pk-sys img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pk-sys span { display: grid; padding: 10px 12px 12px; }
.pk-sys strong { font-size: .9375rem; font-weight: 600; }
.pk-sys small { font-size: .625rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pk-sys:has(input:checked) { box-shadow: 0 0 0 2px var(--olive), var(--shadow); }
.pk-sys:has(input:focus-visible), .pk-opt:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 3px; }
.pk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-opt { position: relative; cursor: pointer; }
.pk-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 50px; border: 1px solid var(--line); font-size: .875rem; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.pk-opt:hover span { border-color: var(--slate); }
.pk-opt:has(input:checked) span { background: var(--slate); border-color: var(--slate); color: #fff; }
.pk-note { margin-top: 12px; font-size: .8125rem; color: var(--olive); }
.pk-summary { position: sticky; top: 96px; border-radius: 8px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.pk-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pk-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.pk-preview img.is-swapping { opacity: 0; }
.pk-body { padding: 22px 24px 24px; }
.pk-list { display: grid; margin: 6px 0 16px; }
.pk-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.pk-list dt { color: var(--muted); }
.pk-list dd { font-weight: 600; text-align: right; }
.pk-price { font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
.pk-price strong { color: var(--slate); }
@media (max-width: 1023px) {
  .pk { grid-template-columns: 1fr; }
  .pk-summary { position: static; max-width: 520px; }
  .pk-sys-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- review rating bar ---------------- */
.rating-bar { display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; margin: -14px 0 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating-score { font-size: 2.5rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.rating-stars { color: #e3a93b; font-size: 1.125rem; letter-spacing: 3px; line-height: 1; }
.rating-src { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.rating-bar .btn { margin-left: auto; }
/* keep fieldset legends inside the box (browsers otherwise sit them on the border line) */
.pk-step legend { float: left; width: 100%; }
.pk-step legend + * { clear: both; }

/* ---------------- home: design invite ---------------- */
.invite { background: var(--cream); padding: 34px 0; border-top: 1px solid var(--line); }
.invite-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.invite-thumbs { display: flex; }
.invite-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid var(--cream); box-shadow: var(--shadow); }
.invite-thumbs img + img { margin-left: -16px; }
.invite-copy { flex: 1; min-width: 220px; }
.invite-copy .eyebrow { margin-bottom: 2px; }
.invite-title { font-size: 1.625rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }

/* ---------------- contact: visual project choices ---------------- */
.qform input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf-group legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: .75rem; font-weight: 600; }
.qf-group legend + * { clear: both; }
.qf-group.is-invalid legend { color: #b3261e; }
.qf-group.is-invalid .qf-sys-grid, .qf-group.is-invalid .pk-opts { outline: 1px solid #b3261e; outline-offset: 4px; border-radius: 6px; }
.qf-sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qf-sys { background: #fff; }
.qf-sys img { aspect-ratio: 16 / 10; }
.qf-sys span { padding: 7px 8px 9px; }
.qf-sys strong { font-size: .75rem; line-height: 1.2; }
.qf-sys small { font-size: .5rem; letter-spacing: .6px; }
.qf-unsure-icon { display: grid !important; place-items: center; aspect-ratio: 16 / 10; padding: 0 !important; background: var(--cream); font-size: 1.75rem; font-weight: 600; color: var(--olive); }
.qform .pk-opt span { background: #fff; min-height: 38px; font-size: .8125rem; }
.qform .pk-opt:has(input:checked) span { background: var(--slate); }
@media (max-width: 720px) { .invite-thumbs img { width: 52px; height: 52px; } .qf-sys-grid { grid-template-columns: repeat(2, 1fr); } }
/* ---------------- shade that fits (assembling isometric scenes) ---------------- */
.fits { background: #fff; }
.fits-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fit-stage { aspect-ratio: 1; display: grid; place-items: center; padding: 2% 1%; border-radius: var(--radius); background: linear-gradient(180deg, #f6f5f1, #ecebe6); overflow: hidden; }
.fit-svg { width: 100%; height: 100%; overflow: visible; }
.fit-title { margin-top: 18px; font-size: 1.75rem; font-weight: 600; letter-spacing: -.035em; }
.fit-text { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 30ch; }
/* each part waits off-stage, then settles in order (--o) */
.fp { transition: transform .75s cubic-bezier(.22, 1.2, .36, 1), opacity .45s ease; transition-delay: calc(var(--o) * 110ms); }
.js .fit-stage .fp { opacity: 0; }
.js .fit-stage .fp--rise { transform: translateY(26px); }
.js .fit-stage .fp--drop { transform: translateY(-46px); }
.js .fit-stage .fp--grow { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.js .fit-stage .fp--fade { transform: translateY(-10px); }
.js .fit-stage .fp--shade { transform: none; }
.js .fit-stage.is-in .fp { opacity: 1; transform: none; }
.fit-card:hover .fit-stage { background: linear-gradient(180deg, #f4f2ec, #e7e5de); }
@media (max-width: 1023px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } .fits-actions { justify-content: flex-start; } }
@media (max-width: 560px) { .fit-grid { grid-template-columns: 1fr; } .fit-stage { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .js .fit-stage .fp { opacity: 1 !important; transform: none !important; transition: none; } }

/* hover: exploded view — the pergola comes apart piece by piece (roof first, then beams, then posts).
   Each part carries its own direction (--ex/--ey) and sequence (--xo) from fits.py. */
.fit-stage { transition: background .4s; }
.fit-stage.is-built .fp { transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .4s ease; transition-delay: calc(var(--xo, 0) * 18ms); }
@media (hover: hover) {
  .fit-card:hover .fit-stage.is-built .fp-x { transform: translate(var(--ex), var(--ey)); transition: transform .65s cubic-bezier(.34, 1.25, .5, 1); transition-delay: calc(var(--xo, 0) * 55ms); }
  .fit-card:hover .fit-stage.is-built .fp--shade { opacity: .35; }
  .fit-card:hover .fit-stage { background: linear-gradient(180deg, #f2f0ea, #e5e2da); }
  .fit-card:hover .fit-stage.is-built .fit-svg { transform: scale(.84) translateY(9%); }
}
.fit-svg { transition: transform .6s cubic-bezier(.22, 1, .36, 1); transform-origin: 50% 70%; }
.fit-card.is-exploded .fit-stage.is-built .fit-svg { transform: scale(.84) translateY(9%); }
.fit-card.is-exploded .fit-stage.is-built .fp-x { transform: translate(var(--ex), var(--ey)); transition: transform .65s cubic-bezier(.34, 1.25, .5, 1); transition-delay: calc(var(--xo, 0) * 55ms); }
.fit-card.is-exploded .fit-stage.is-built .fp--shade { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .fit-card:hover .fit-stage .fp, .fit-card.is-exploded .fit-stage .fp { transform: none !important; }
}

.pk-opt[hidden] { display: none; }

/* Chosen hover effect — "fly off": pieces leave the card entirely (roof, then beams, then posts), fade out,
   and fly back in on mouse-leave. (Removing the fits--fly class in build.py falls back to the contained exploded view.) */
.fits--fly .fit-stage { overflow: visible; }
.fits--fly .fit-card { position: relative; z-index: 1; }
.fits--fly .fit-card:hover, .fits--fly .fit-card.is-exploded { z-index: 5; }
@media (hover: hover) {
  .fits--fly .fit-card:hover .fit-stage.is-built .fp-x { transform: translate(calc(var(--ex) * 9), calc(var(--ey) * 9)); opacity: 0; transition: transform .35s cubic-bezier(.45, 0, .7, .3) calc(var(--xo, 0) * 14ms), opacity .12s ease calc(var(--xo, 0) * 14ms + .23s); }
  .fits--fly .fit-card:hover .fit-stage.is-built .fit-svg { transform: none; }
}
.fits--fly .fit-card.is-exploded .fit-stage.is-built .fp-x { transform: translate(calc(var(--ex) * 9), calc(var(--ey) * 9)); opacity: 0; transition: transform .35s cubic-bezier(.45, 0, .7, .3) calc(var(--xo, 0) * 14ms), opacity .12s ease calc(var(--xo, 0) * 14ms + .23s); }
.fits--fly .fit-card.is-exploded .fit-stage.is-built .fit-svg { transform: none; }
/* flying back in: settle with a little overshoot */
.fits--fly .fit-stage.is-built .fp-x { transition: transform .5s cubic-bezier(.22, 1.15, .36, 1) calc(var(--xo, 0) * 14ms), opacity .2s ease calc(var(--xo, 0) * 14ms); }
.fits { overflow-x: clip; }

/* ---- "build on hover" mode (fits--build): desktop only ----
   The site (house, deck, furniture) is shown; the pergola waits off-card and flies in on hover in building
   order — posts, beams, then roof — and flies away again when the pointer leaves. Touch screens keep the
   automatic build-on-scroll, since they can't hover. */
.fit-hint { display: none; }
.fit-stage { position: relative; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .fits--build .fit-stage.is-in .fp-x {
    transform: translate(calc(var(--ex) * 9), calc(var(--ey) * 9)); opacity: 0;
    transition: transform .35s cubic-bezier(.45, 0, .7, .3) calc(var(--xo, 0) * 14ms), opacity .12s ease calc(var(--xo, 0) * 14ms + .23s);
  }
  .js .fits--build .fit-stage.is-in .fp--shade { opacity: 0; transition: opacity .3s ease; }
  .js .fits--build .fit-card:hover .fit-stage.is-in .fp-x {
    transform: none; opacity: 1;
    transition: transform .6s cubic-bezier(.22, 1.12, .36, 1) calc((var(--o) - 3) * 75ms), opacity .2s ease calc((var(--o) - 3) * 75ms);
  }
  .js .fits--build .fit-card:hover .fit-stage.is-in .fp--shade { opacity: 1; transition: opacity .5s ease .5s; }
  .fits--build .fit-stage { overflow: visible; }
  .fits--build .fit-card { position: relative; z-index: 1; }
  .fits--build .fit-card:hover { z-index: 5; }
  .fits--build .fit-hint {
    display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 50%; bottom: 16px; translate: -50% 0;
    padding: 7px 14px; border-radius: 50px; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow);
    font-size: .6875rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--olive);
    transition: opacity .3s ease, translate .3s ease; pointer-events: none; white-space: nowrap;
  }
  .fits--build .fit-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); animation: hintPulse 1.6s ease-in-out infinite; }
  .fits--build .fit-card:hover .fit-hint { opacity: 0; translate: -50% 6px; }
}
@keyframes hintPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
