/* Kitchen Fitter Glasgow: design system v1 (11 Nov 2026)
   Navy and sage come from the logo's cabinets and worktop. Outfit matches the wordmark; Source Serif 4 carries the reading text.
   The one signature element is the sage "worktop band" with a level vial, taken from the logo. */

:root {
  --navy: #1C2F44;
  --navy-2: #15253A;
  --navy-soft: #2C4058;
  --sage: #7FA474;
  --sage-hover: #6F9665;
  --sage-ink: #3D6A3B;
  --sage-wash: #EEF3EA;
  --paper: #FAF7F1;
  --white: #FFFFFF;
  --line: #E4DED2;
  --line-strong: #D3CBBB;
  --body: #2E3D4D;
  --muted: #5B6875;
  --on-dark: #DCE3EA;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.125rem/1.68 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sage-ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 10px 14px; font-family: var(--sans); }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- utility bar + header ---------- */
.util { background: var(--navy); color: var(--on-dark); font: 500 0.875rem/1 var(--sans); }
.util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.util a { color: var(--white); text-decoration: none; font-weight: 600; }
.util a:hover { color: var(--sage); }

.hdr { position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 241, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: block; flex: 0 1 auto; min-width: 0; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-family: var(--sans); }
.nav > a, .nav summary { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.nav > a:hover, .nav summary:hover, .nav > a[aria-current] { background: var(--sage-wash); color: var(--navy); }
.nav details { position: relative; }
.nav summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu { position: absolute; top: calc(100% + 10px); left: -12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 4px 28px; box-shadow: 0 18px 40px -18px rgba(28, 47, 68, 0.35); width: max-content; }
.menu h4 { font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 4px 0 6px; }
.menu a { display: block; color: var(--navy); text-decoration: none; padding: 7px 0; font-weight: 500; }
.menu a:hover { color: var(--sage-ink); }
.hdr-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.hdr-phone { font: 600 1rem/1 var(--sans); color: var(--navy); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.hdr-phone svg { width: 19px; height: 19px; flex: none; }
.mnav { display: none; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font: 600 1.0625rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--sage); color: var(--navy); }
.btn--primary:hover { background: var(--sage-hover); color: var(--navy); }
.btn--ghost { border-color: var(--line-strong); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.on-dark .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.on-dark .btn--ghost:hover { border-color: var(--white); }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero .btns .btn { padding: 0 20px; }
.hero--text .wrap { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.hero--form .wrap { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero--form .wrap > div:first-child { padding-top: 24px; }
.crumbs { font: 500 0.875rem/1.4 var(--sans); color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sage-ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-strong); }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.6; color: var(--body); margin: 22px 0 0; max-width: 62ch; }
.hero .extra { font-size: 1.0625rem; margin: 14px 0 0; max-width: 62ch; }
.byline { font: 500 0.9375rem/1.5 var(--sans); color: var(--muted); margin: 16px 0 0; }
.byline strong { color: var(--navy); }
.media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.3; }
.media--wide img { aspect-ratio: 3 / 2; }
.media figcaption { position: absolute; left: 14px; bottom: 14px; font: 500 0.75rem/1 var(--sans); background: rgba(250, 247, 241, 0.92); color: var(--navy); padding: 7px 10px; border-radius: 999px; }

/* ---------- the worktop band (signature) ---------- */
.worktop { background: var(--sage); color: var(--navy); border-top: 4px solid #95B78B; }
.worktop .wrap { display: flex; align-items: stretch; gap: 0; }
.vial { flex: none; display: flex; align-items: center; padding: 18px 26px 18px 0; }
.vial svg { width: 54px; height: 22px; display: block; }
.vial .bubble { animation: settle 1.6s cubic-bezier(.2, .8, .25, 1) .3s both; }
@keyframes settle { 0% { transform: translateX(-11px); } 55% { transform: translateX(3px); } 100% { transform: translateX(0); } }
.worktop ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; }
.worktop li { padding: 18px 22px; border-left: 1px solid rgba(28, 47, 68, 0.22); font: 500 0.9375rem/1.25 var(--sans); }
.worktop li b { display: block; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }

/* ---------- facts grid (homepage) and glance card ---------- */
.facts { padding: clamp(36px, 5vw, 56px) 0 0; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts dl > div { padding: 18px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dl > div:nth-child(3n) { border-right: 0; }
.facts dl > div:nth-last-child(-n+3) { border-bottom: 0; }
.facts dt, .glance dt { font: 500 0.875rem/1.3 var(--sans); color: var(--muted); }
.facts dd, .glance dd { margin: 4px 0 0; font: 600 1rem/1.4 var(--sans); color: var(--navy); }

.glance { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.glance h2 { font-size: 1.125rem; font-weight: 650; margin: 0 0 8px; }
.glance dl { margin: 0; }
.glance dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance dl > div:last-child { border-bottom: 0; }
.glance .btn { width: 100%; margin-top: 16px; }
.glance .glance-phone { display: block; text-align: center; margin-top: 12px; font: 600 1rem/1 var(--sans); color: var(--navy); text-decoration: none; }

/* ---------- content layout ---------- */
.body { padding: clamp(40px, 6vw, 72px) 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cols aside { position: sticky; top: 100px; }
.single { max-width: 780px; margin: 0 auto; }
.prose > section + section { margin-top: clamp(44px, 5vw, 64px); }
.prose h2 { margin: 0 0 18px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose ul > li { position: relative; padding-left: 26px; margin: 0 0 10px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 2px; background: var(--sage); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 52px; margin: 0 0 18px; min-height: 36px; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font: 600 1rem/36px var(--sans); text-align: center; }

.tbl { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font: 400 0.9375rem/1.45 var(--sans); color: var(--body); min-width: 560px; }
.tbl th { text-align: left; font-weight: 600; color: var(--navy); background: #F3EFE7; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--navy); }
.tbl strong { font-weight: 700; }
.note { font: 400 0.9375rem/1.5 var(--sans); color: var(--muted); }

/* ---------- sections on the homepage ---------- */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .head { max-width: 760px; margin-bottom: 28px; }
.band .head p { margin-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.svc article { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.band--white .svc article { background: var(--paper); }
.svc h3 { margin: 0 0 10px; font-size: 1.375rem; }
.svc p { font-size: 1.0625rem; margin: 0; }
.svc p a { font-family: var(--sans); font-weight: 600; }

/* ---------- CTA band + form ---------- */
.cta { background: var(--navy); color: var(--on-dark); padding: clamp(48px, 7vw, 80px) 0; }
.cta h2 { color: var(--white); }
.cta p { font-size: 1.1875rem; max-width: 56ch; margin-top: 14px; }
.cta .split { align-items: start; }
.on-dark a:not(.btn) { color: var(--white); }
.on-dark .formcard a:not(.btn) { color: var(--sage-ink); }

.formcard { background: var(--white); color: var(--body); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); }
.formcard h2, .formcard h3 { font-size: 1.375rem; margin: 0 0 6px; color: var(--navy); }
.formcard .sub { font: 400 1rem/1.5 var(--sans); color: var(--muted); margin: 0 0 18px; }
.qf fieldset { border: 0; margin: 0 0 6px; padding: 0; }
.qf legend { font: 600 0.9375rem/1.3 var(--sans); color: var(--navy); margin: 0 0 10px; padding: 0; }
.qf .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf .f { margin: 0 0 12px; }
.qf label { display: block; font: 500 0.875rem/1.3 var(--sans); color: var(--navy); margin: 0 0 6px; }
.qf input, .qf select, .qf textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); font: 400 1rem/1.4 var(--sans); color: var(--navy); }
.qf textarea { min-height: 104px; resize: vertical; }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: 3px solid rgba(61, 106, 59, 0.35); outline-offset: 0; border-color: var(--sage-ink); }
.qf [aria-invalid=true] { border-color: #A3261B; }
.qf .err { display: block; font: 600 0.8125rem/1.4 var(--sans); color: #A3261B; margin-top: 4px; }
.qf .err:empty { display: none; }
.qf .consent { display: flex; gap: 10px; align-items: flex-start; font: 400 0.9375rem/1.5 var(--sans); color: var(--body); }
.qf .consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--sage-ink); }
.qf .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.qf .btn { width: 100%; margin-top: 8px; }
.qf button[disabled] { opacity: 0.6; cursor: progress; }
.qf .status { font: 600 0.9375rem/1.4 var(--sans); color: var(--navy); margin: 10px 0 0; }
.qf .status:empty { display: none; }
.qf .status--err { color: #A3261B; }
.qf .hint { font: 400 0.875rem/1.5 var(--sans); color: var(--muted); margin: 10px 0 0; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(48px, 7vw, 88px) 0; }
.faq .single > h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; font: 600 1.1875rem/1.35 var(--sans); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2F44' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { font: inherit; color: inherit; margin: 0; }
.faq .a { padding: 0 0 20px; max-width: 68ch; }

/* ---------- footer ---------- */
.ftr { background: var(--navy-2); color: var(--on-dark); padding: 64px 0 28px; font: 400 0.9688rem/1.6 var(--sans); }
.ftr .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.ftr h2 { color: var(--white); font-size: 1rem; font-weight: 600; margin: 0 0 12px; letter-spacing: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 8px; }
.ftr a { color: var(--on-dark); text-decoration: none; }
.ftr a:hover { color: var(--white); text-decoration: underline; }
.ftr .mark { display: inline-block; background: var(--paper); border-radius: 14px; padding: 8px; margin-bottom: 14px; }
.ftr .mark img { width: 56px; height: 56px; }
.ftr .about { max-width: 34ch; }
.ftr .contact a { color: var(--white); font-weight: 600; }
.ftr .base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: #AEBBC8; }

/* ---------- sticky mobile bar ---------- */
.mbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav > a.hide-md { display: none; }
  .hdr-phone span { display: none; }
}
@media (max-width: 960px) {
  .nav, .hdr-cta .btn { display: none; }
  .hdr .wrap { min-height: 66px; gap: 12px; }
  .logo img { height: 34px; }
  .hdr-cta { margin-left: auto; }
  .hdr-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; }
  .mnav { display: block; }
  .mnav summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; max-height: calc(100vh - 66px); overflow-y: auto; font-family: var(--sans); }
  .mnav-panel h4 { font-size: 0.8125rem; color: var(--muted); margin: 18px 0 4px; font-weight: 600; letter-spacing: 0; }
  .mnav-panel a { display: block; padding: 11px 0; color: var(--navy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
  .hero .wrap, .split, .cols { grid-template-columns: minmax(0, 1fr); }
  .cols aside { position: static; order: -1; }
  .media img { aspect-ratio: 3 / 2; }
  .worktop .wrap { padding-right: 0; }
  .worktop ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worktop li:nth-child(3) { border-left: 0; }
  .worktop li:nth-child(n+3) { border-top: 1px solid rgba(28, 47, 68, 0.22); }
  .vial { display: none; }
  .worktop li:first-child { border-left: 0; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .facts dl > div:nth-child(2n) { border-right: 0; }
  .facts dl > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .facts dl > div:last-child { border-bottom: 0; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .ftr .grid { grid-template-columns: 1fr 1fr; }
  .util .hide-sm { display: none; }
  body { padding-bottom: 76px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font: 600 1rem/1 var(--sans); text-decoration: none; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); }
  .mbar a.q { background: var(--sage); color: var(--navy); border-color: var(--sage); }
  .mbar svg { width: 18px; height: 18px; }
}
@media (max-width: 560px) {
  .util { display: none; }
  .logo img { height: 28px; }
  .qf .row { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .facts dl > div { border-right: 0 !important; }
  .ftr .grid { grid-template-columns: 1fr; }
  .btns .btn { flex: 1 1 100%; }
  .worktop li { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .util, .hdr, .mbar, .cta, .ftr, .worktop { display: none; }
}

/* ======================================================================
   v2 premium layer (11 Nov 2026): motion tokens, elevation, hero choreography,
   bento services, brand marquee, scroll timeline, smooth disclosure.
   The build appends this file to site.css.
   Rules: animate transform / opacity / clip-path only; nothing is hidden without JS;
   everything settles instantly under prefers-reduced-motion.
   ====================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --t-micro: 180ms;
  --t-ui: 420ms;
  --t-reveal: 900ms;
  --e1: 0 1px 2px rgba(21, 37, 58, .05), 0 4px 14px -6px rgba(21, 37, 58, .10);
  --e2: 0 2px 4px rgba(21, 37, 58, .05), 0 16px 34px -16px rgba(21, 37, 58, .26);
  --e3: 0 6px 12px rgba(21, 37, 58, .06), 0 34px 70px -28px rgba(21, 37, 58, .42);
  --mr: 32px 0 0 32px;
  interpolate-size: allow-keywords;
}
h1 { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem); letter-spacing: -0.038em; line-height: 0.98; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.85rem); letter-spacing: -0.028em; line-height: 1.06; }
.prose h3 { font-size: 1.3rem; }

/* ---- header polish ---- */
.hdr { transition: box-shadow var(--t-ui) var(--ease-out), background-color var(--t-ui); }
.hdr.is-scrolled { box-shadow: 0 12px 30px -22px rgba(21, 37, 58, .45); background: rgba(250, 247, 241, .82); }
.nav > a, .nav summary { position: relative; transition: color var(--t-micro); }
.nav > a:hover, .nav summary:hover, .nav > a[aria-current] { background: transparent; }
.nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.nav > a:hover::after, .nav > a[aria-current]::after { transform: scaleX(1); }
.nav details[open] .menu, .mnav[open] .mnav-panel { animation: menuIn .34s var(--ease-out) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.menu { box-shadow: var(--e3); border-radius: 18px; }
.menu a { transition: color var(--t-micro), transform var(--t-ui) var(--ease-out); }
.menu a:hover { transform: translateX(4px); }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), #A9C79F); transform-origin: left; transform: scaleX(0); }

/* ---- buttons ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; touch-action: manipulation;
  transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), background-color var(--t-micro), border-color var(--t-micro), color var(--t-micro); }
.btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -12px rgba(61, 106, 59, .75); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn--ghost:hover { box-shadow: var(--e2); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 90ms; }

/* ---- hero ---- */
.hero { position: relative; overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 70% at 0% 0%, rgba(127, 164, 116, .16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .18 0 0 0 0 .27 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.hero.hero--text .wrap { grid-template-columns: minmax(0, 1fr); }
.hero--text .lead { max-width: 68ch; }
.hero h1 .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; }
.hero-visual { position: relative; }
.hero-visual .media { border-radius: var(--mr); box-shadow: var(--e3); }
.hero-visual .media img { aspect-ratio: 4 / 4.5; transform-origin: 60% 50%; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--e3); font: 650 1rem/1.2 var(--sans); color: var(--navy); }
.chip small { display: block; margin-top: 2px; font-weight: 500; font-size: .8125rem; color: var(--muted); }
.chip .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.chip .ic svg { width: 21px; height: 21px; }
.chip--a { left: -36px; bottom: 64px; }
.chip--b { right: 28px; top: 32px; }
.hero .btns { gap: 10px; }
.hero .btns .btn { padding: 0 18px; font-size: 1rem; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font: 500 .9688rem/1.3 var(--sans); color: var(--navy); }
.trust li { display: flex; align-items: center; gap: 9px; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--sage-ink); }
@media (min-width: 961px) {
  .hero:not(.hero--text):not(.hero--form) .hero-visual { margin-right: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))); }
  .hero-visual .media img { min-height: 560px; }
}

/* hero choreography (runs once on load) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w > span { animation: rise 1s var(--ease-out) both; animation-delay: calc(90ms + var(--i, 0) * 42ms); }
  .hero .crumbs { animation: fadeUp .8s var(--ease-out) both; }
  .hero .byline { animation: fadeUp .8s var(--ease-out) .32s both; }
  .hero .lead { animation: fadeUp .9s var(--ease-out) .38s both; }
  .hero .extra { animation: fadeUp .9s var(--ease-out) .46s both; }
  .hero .btns { animation: fadeUp .9s var(--ease-out) .52s both; }
  .hero .trust { animation: fadeUp .9s var(--ease-out) .62s both; }
  .hero-visual .media { animation: wipe 1.3s var(--ease-out) .12s both; }
  .hero-visual .media img { animation: settleZoom 2.2s var(--ease-out) .12s both; }
  .chip--a { animation: pop .8s var(--ease-spring) .95s both; }
  .chip--b { animation: pop .8s var(--ease-spring) 1.1s both; }
  .hero--form .formcard { animation: fadeUp 1s var(--ease-out) .3s both; }
  .vial .bubble { animation-delay: .9s; }
}
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes wipe { from { clip-path: inset(0 0 0 34% round var(--mr)); } to { clip-path: inset(0 0 0 0 round var(--mr)); } }
@keyframes settleZoom { from { transform: scale(1.16); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.92); } }

/* ---- scroll reveal (JS adds .rv only to elements that start below the fold) ---- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.rv.rv-img { opacity: 1; transform: none; clip-path: inset(14% 0 0 0 round 26px); transition: clip-path 1.2s var(--ease-out) var(--d, 0ms); }
.rv.rv-img img { transform: scale(1.1); transition: transform 1.6s var(--ease-out) var(--d, 0ms); }
.rv.rv-img.in { clip-path: inset(0 round 26px); }
.rv.rv-img.in img { transform: none; }

/* ---- worktop band sheen ---- */
.worktop { position: relative; overflow: hidden; }
.worktop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .worktop::after { animation: sheen 2.4s var(--ease-out) 1.2s both; } }
@keyframes sheen { to { transform: translateX(100%); } }

/* ---- surfaces and links ---- */
.facts dl, .tbl { box-shadow: var(--e1); }
.glance { box-shadow: var(--e2); border-radius: 24px; }
.formcard { box-shadow: var(--e3); border-radius: 26px; }
.prose p a, .prose li a, .faq .a a, .lead a, .extra a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size var(--t-ui) var(--ease-out), color var(--t-micro); }
.prose p a:hover, .prose li a:hover, .faq .a a:hover, .lead a:hover, .extra a:hover { background-size: 100% 2px; color: var(--navy); }

/* ---- bento services ---- */
.bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; margin-top: 8px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--e1);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--e3); border-color: transparent; }
.card:has(.stretch:focus-visible) { outline: 3px solid var(--sage-ink); outline-offset: 3px; }
.card .ph { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.card:hover .ph img { transform: scale(1.07); }
.card .go { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: var(--e2);
  transition: transform .5s var(--ease-spring), background-color .3s; }
.card .go svg { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.card:hover .go { background: var(--sage); transform: scale(1.06); }
.card:hover .go svg { transform: rotate(45deg); }
.card .tx { padding: 26px 28px 28px; }
.card h3 { font-size: 1.55rem; margin: 0 0 10px; letter-spacing: -0.02em; }
.card p { font-size: 1.0625rem; margin: 0; }
.card .stretch { font-family: var(--sans); font-weight: 600; }
.card .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .price { display: inline-block; margin: 0 0 12px; padding: 7px 12px; border-radius: 999px; background: var(--sage-wash); font: 600 .875rem/1 var(--sans); color: var(--sage-ink); }
.card--feature { grid-row: span 2; }
.card--feature .ph { aspect-ratio: auto; flex: 1; min-height: 360px; }
.card--wide { grid-column: 1 / -1; flex-direction: row; }
.card--wide .ph { width: 46%; flex: none; aspect-ratio: auto; min-height: 300px; }
.card--wide .tx { align-self: center; padding: 36px 40px; }

/* ---- brand marquee ---- */
.marquee { position: relative; margin: 6px 0 40px; padding: 26px 0; border-block: 1px solid var(--line); }
.marquee-vp { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marq 42s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: 56px; padding: 0 56px 0 0; margin: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 56px; white-space: nowrap; font: 700 clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem)/1 var(--sans); letter-spacing: -0.03em; color: var(--navy); }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.4px var(--navy); }
.marquee li::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--sage); transform: rotate(45deg); }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle { position: absolute; right: 8px; bottom: -18px; z-index: 2; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); font: 600 .8125rem/1 var(--sans); cursor: pointer; }
@keyframes marq { to { transform: translateX(-50%); } }
.prose .marquee ul { max-width: none; flex-wrap: nowrap; }
.prose .marquee li { flex: none; padding-left: 0; margin: 0; position: static; }
.prose .marquee li::before { content: none; }

/* ---- why-us grid ---- */
.why { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: none !important; }
.prose .why > li { margin: 0; padding: 22px 22px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; display: flex; gap: 14px; align-items: flex-start;
  font: 500 1.0625rem/1.4 var(--sans); color: var(--navy); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s; }
.prose .why > li::before { content: none; }
.prose .why > li:hover { transform: translateY(-4px); box-shadow: var(--e2); background: var(--white); }
.why .ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--sage); color: var(--navy); }
.why .ic svg { width: 21px; height: 21px; }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* ---- scroll timeline for numbered steps ---- */
.prose ol { position: relative; }
.prose ol::before, .prose ol::after { content: ""; position: absolute; left: 17px; top: 20px; bottom: 26px; width: 2px; border-radius: 2px; }
.prose ol::before { background: var(--line); }
.prose ol::after { background: linear-gradient(var(--sage), var(--sage-ink)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.prose ol > li::before { z-index: 1; box-shadow: 0 0 0 5px var(--paper); transition: background-color .45s, color .45s, transform .6s var(--ease-spring); }
.band--white .prose ol > li::before { box-shadow: 0 0 0 5px var(--white); }
.prose ol > li.on::before { background: var(--sage); color: var(--navy); transform: scale(1.1); }

/* ---- FAQ: smooth open and close ---- */
.faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary:hover { color: var(--sage-ink); }
.faq summary::after { transition: transform .45s var(--ease-spring), background-color .3s; }
.faq details[open] summary::after { background-color: var(--sage); }

/* ---- FAQs page ---- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white);
  font: 500 .9375rem/1 var(--sans); color: var(--navy); text-decoration: none; transition: background-color var(--t-micro), border-color var(--t-micro), transform var(--t-ui) var(--ease-out); }
.jump a:hover { background: var(--sage-wash); border-color: var(--sage); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .hero .jump { animation: fadeUp .9s var(--ease-out) .6s both; } }
.faq--group { padding: clamp(40px, 6vw, 72px) 0; scroll-margin-top: 80px; }
.faq--white { background: var(--white); border-block: 1px solid var(--line); }
.faq .group-lead { margin: -6px 0 18px; color: var(--muted); max-width: 64ch; }

/* ---- sources after a guide's FAQ ---- */
.body--after { padding-top: 0; }
.sources { font-size: 1rem; }
.sources h2 { font-size: 1.5rem; }
.sources li { margin-bottom: 8px; }

/* ---- CTA band ambient light ---- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.cta::before { width: 760px; height: 760px; right: -220px; top: -340px; background: radial-gradient(closest-side, rgba(127, 164, 116, .32), transparent); }
.cta::after { width: 640px; height: 640px; left: -260px; bottom: -380px; background: radial-gradient(closest-side, rgba(86, 120, 160, .35), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .cta::before { animation: drift 16s ease-in-out infinite alternate; }
  .cta::after { animation: drift 20s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { to { transform: translate(-90px, 70px) scale(1.12); } }

/* ---- split section image ---- */
.split .media { box-shadow: var(--e3); border-radius: 26px; }

/* ---- v2 responsive ---- */
@media (max-width: 960px) {
  :root { --mr: 22px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual .media img { aspect-ratio: 4 / 3.4; }
  .chip { padding: 9px 14px 9px 9px; font-size: .9375rem; border-radius: 14px; }
  .chip .ic { width: 34px; height: 34px; border-radius: 10px; }
  .chip--a { left: 12px; bottom: 12px; }
  .chip--b { right: 12px; top: 12px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--feature { grid-row: auto; }
  .card--feature .ph { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  .card--wide { flex-direction: column; }
  .card--wide .ph { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .card--wide .tx { padding: 26px 28px 28px; }
}
@media (max-width: 560px) {
  .chip small { display: none; }
  .chip--b { display: none; }
  .trust { gap: 10px 18px; font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .rv.rv-img, .rv.rv-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee-track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 18px 40px; padding: 0; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee li { gap: 40px; }
  .marquee-toggle { display: none; }
  .marquee-vp { -webkit-mask-image: none; mask-image: none; }
}

/* ======================================================================
   Guides (11 Nov 2026): image cards for the hub, "guides that help" on money pages,
   related guides after an article, and the sticky "On this page" rail.
   ====================================================================== */
.gband { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 80px; }
.gband--white, .gband--related { background: var(--white); border-block: 1px solid var(--line); }
.gband--hub + .gband--hub { border-top: 0; }
.gband-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(24px, 4vw, 40px); }
.gband-head h2 { margin: 0; max-width: 18ch; }
.gband-head p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 1.0625rem; }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.gcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--e1); transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), border-color var(--t-micro); }
.gband--white .gcard, .gband--related .gcard { background: var(--paper); }
.gcard:hover { transform: translateY(-5px); box-shadow: var(--e3); border-color: transparent; }
.gcard:has(.stretch:focus-visible) { outline: 3px solid var(--sage-ink); outline-offset: 3px; }
.gcard .ph { overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.gcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gcard:hover .ph img { transform: scale(1.06); }
.gcard .tx { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.gmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font: 500 .875rem/1.3 var(--sans); color: var(--muted); }
.gmeta .cat { color: var(--sage-ink); font-weight: 600; }
.gcard h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.22; letter-spacing: -0.015em; }
.gcard h3 a { color: var(--navy); text-decoration: none; }
.gcard .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gcard .stretch:focus-visible { outline: none; }
.gcard p:not(.gmeta) { margin: 0 0 18px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.gcard .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .9375rem/1 var(--sans); color: var(--sage-ink); }
.gcard .more svg { width: 16px; height: 16px; transition: transform var(--t-ui) var(--ease-out); }
.gcard:hover .more svg { transform: rotate(45deg); }
.gcard--lead { grid-column: 1 / -1; flex-direction: row; }
.gcard--lead .ph { width: 58%; flex: none; aspect-ratio: auto; min-height: 340px; }
.gcard--lead .tx { align-self: center; padding: clamp(28px, 4vw, 48px); }
.gcard--lead h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.08; letter-spacing: -0.025em; }
.gcard--lead p:not(.gmeta) { font-size: 1.0625rem; max-width: 44ch; }

/* contents rail: the glance card scrolls away, the contents list stays */
.cols--toc aside { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 28px; }
.toc { position: sticky; top: 100px; }
.toc-h { margin: 0 0 12px; font: 600 1rem/1.2 var(--sans); color: var(--navy); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font: 500 .9375rem/1.35 var(--sans); color: var(--muted); text-decoration: none;
  transition: color var(--t-micro), border-color var(--t-ui) var(--ease-out); }
.toc a:hover { color: var(--navy); }
.toc a[aria-current="true"] { color: var(--navy); border-left-color: var(--sage-ink); }

@media (max-width: 960px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcard--lead { flex-direction: column; }
  .gcard--lead .ph { width: 100%; aspect-ratio: 3 / 2; min-height: 0; }
  .gcard--lead .tx { padding: 22px 22px 24px; }
  .cols--toc aside { display: block; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .gcards { grid-template-columns: minmax(0, 1fr); }
  .gband-head { display: block; }
  .gband-head p { margin-top: 10px; }
}

