/* =====================================================================
   Corewell — "Core" theme, and the shared component styles for every theme
   Built around the ring-and-dot logo: deep indigo, one sky-blue accent,
   white space, round forms. Poppins throughout (its round C and O match
   the mark), wide-tracked capitals for the wordmark and labels.
   base.css is shared and untouched.

   Every colour, corner radius and typeface below comes from the tokens in
   :root, so the other looks (themes.css) and the theme studio
   (assets/js/theme-studio.js) can restyle the site by changing tokens.
   The five colours the studio edits are --navy (main), --sky (accent),
   --ink (text), --bg (page) and --surface (tinted panels); the rest are
   worked out from those.
   ===================================================================== */
:root {
  --navy: #1A1243; --navy-700: #2B2068; --navy-900: #120C31;
  --sky: #4FB1EC; --sky-strong: #2A8FD8; --sky-ink: #1569AE; --sky-soft: #E2F2FC; --sky-on-dark: #7FC8F4;
  --bg: #FFFFFF; --surface: #F6F5FB; --surface-2: #ECEAF6; --card: #FFFFFF;
  --ink: #1A1243; --text: #2D2947; --muted: #625D7E;
  --line: rgba(26, 18, 67, 0.10); --line-strong: rgba(26, 18, 67, 0.20);
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #F3F2FB; --on-dark-muted: #B4AFD2;
  --radius: 14px; --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(26, 18, 67, 0.05), 0 24px 48px -28px rgba(26, 18, 67, 0.35);
  --container: 1280px;
  --section: clamp(72px, 9vw, 136px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* text that sits on the main colour and on the accent */
  --on-primary: #FFFFFF; --on-accent: #120C31;
  /* headline emphasis, on light and on the main colour */
  --em: var(--sky-strong); --em-dark: var(--sky);
  /* the logo mark, and its large soft version behind the heroes */
  --mark-ring: var(--navy); --mark-dot: var(--sky);
  --ring-tint: #E6E3F4; --dot-tint: #D8EDFB;
  --shadow-c: #1A1243;
  /* type and shape */
  --font-head: var(--font); --font-label: var(--font); --head-weight: 500;
  --radius-btn: 999px; --radius-chip: 999px; --radius-field: 12px; --radius-swatch: 50%; --radius-icon: 50%;
}
/* base.css assumes white text on the main colour: follow the token instead */
.skip-link, .skip-link:focus { color: var(--on-primary); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .cta-band h2 { color: var(--on-primary); }
.btn { border-radius: var(--radius-btn); }
.nav__list a, .badge, .tags li { border-radius: var(--radius-chip); }
::selection { background: var(--navy); color: var(--on-primary); }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); }
.benefit b, .stats dt, .manifesto, .calc__total, .hero__caption b, .fans figcaption, .sample-range, .finish-pager a, .compare thead th, .accordion summary, .field legend.h3 { font-family: var(--font-head); }
.eyebrow, .hero__caption span, .jump-links span, .finish-pager span, .footer__col h2 { font-family: var(--font-label); }
h1 em, h2 em, h3 em, .display em, .manifesto em { font-style: normal; color: var(--em); }  /* large type only: 3:1 on white */
.section--dark h2 em, .cta-band h2 em { color: var(--em-dark); }
.display { font-size: clamp(42px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -0.035em; }
.h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -0.032em; }
.h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.h4 { font-size: 18px; font-weight: var(--head-weight); line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; }
/* labels echo the wordmark: wide capitals, led by the core dot */
.eyebrow { gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--muted); }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.section--dark .eyebrow { color: var(--on-dark-muted); }
.card .eyebrow, .media__tag .eyebrow { letter-spacing: .14em; font-size: 12px; }
.card .eyebrow::before { content: none; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); }
.prose h3 { font-size: 20px; font-weight: var(--head-weight); }
.swash::after { content: none; }

/* ---------- logo lockup: ring mark + tracked wordmark ---------- */
.brand-link { min-height: 44px; }
.brand-link, .brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-link .brand-mark { width: 40px; height: 40px; }
.brand-word { font-size: 19px; font-weight: 400; line-height: 1; letter-spacing: .24em; text-transform: uppercase; }
.brand-lockup { gap: 14px; color: var(--on-primary); }
.brand-mark { flex: none; overflow: visible; }
.brand-mark path { fill: none; stroke: var(--mark-ring); stroke-width: 14; stroke-linecap: round; }
.brand-mark circle { fill: var(--mark-dot); }
.brand-lockup .brand-mark path { stroke: var(--on-primary); }
.footer__brand .brand-lockup .brand-mark { width: 48px; height: 48px; }
.brand-lockup .brand-word { font-size: 22px; }

/* ---------- header: white, light, the logo does the talking ---------- */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: var(--header-h); }
.nav { gap: 24px; }
.nav__list a { padding: 0 13px; font-size: 14.5px; white-space: nowrap; transition: background .25s, color .25s; }
.nav__list a:hover { background: var(--surface); }
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a[aria-current="page"]::after { width: 6px; height: 6px; background: var(--sky); margin-left: 7px; }
@media (min-width: 1061px) and (max-width: 1279px) {
  .nav { gap: 10px; } .nav__list { gap: 0; } .nav__list a { padding: 0 8px; font-size: 13.5px; }
  .nav__actions { gap: 8px; } .nav__actions .btn--sm { padding: 0 13px; font-size: 13px; }
  .brand-link { gap: 9px; } .brand-link .brand-mark { width: 32px; height: 32px; } .brand-word { font-size: 15px; letter-spacing: .2em; }
}
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .nav { inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); box-shadow: 0 30px 40px -30px color-mix(in srgb, var(--shadow-c) 35%, transparent); }
  .nav__list a { min-height: 58px; padding: 0; font-size: 19px; }
  .nav__list a:hover { background: transparent; }
}
@media (max-width: 520px) { .brand-link .brand-mark { width: 34px; height: 34px; } .brand-word { font-size: 16px; } }

/* ---------- buttons and links: pills ---------- */
.btn { min-height: 52px; padding: 0 26px; font-size: 15px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--primary { background: var(--navy); color: var(--on-primary); }
.btn--primary:hover { background: var(--navy-700); color: var(--on-primary); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy); background: var(--surface); color: var(--ink); }
.btn--sky { background: var(--sky); color: var(--on-accent); }
.btn--sky:hover { background: var(--sky-on-dark); color: var(--on-accent); }
.btn--light { background: var(--card); color: var(--ink); }
.btn--light:hover { background: var(--sky-soft); color: var(--ink); }
:is(.section--dark, .cta-band, .sample-bar) .btn--primary { background: var(--sky); color: var(--on-accent); }
:is(.section--dark, .cta-band, .sample-bar) .btn--primary:hover { background: var(--sky-on-dark); color: var(--on-accent); }
:is(.section--dark, .cta-band) .btn--ghost { border-color: color-mix(in srgb, var(--on-primary) 36%, transparent); color: var(--on-primary); }
:is(.section--dark, .cta-band) .btn--ghost:hover { border-color: var(--on-primary); background: color-mix(in srgb, var(--on-primary) 8%, transparent); color: var(--on-primary); }
.link-arrow { font-size: 15px; }
.link-arrow svg { color: var(--sky-ink); transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--sky-ink); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow svg { color: currentColor; }
.checklist svg, .trust svg, .download svg { color: var(--sky-ink); }
a[data-todo]:not([href]) { cursor: default; opacity: .55; }
.download[data-todo]:not([href]):hover { color: var(--ink); }
.link-arrow[data-todo]:not([href]):hover svg { transform: none; }

/* ---------- home hero: copy beside an arched photograph, the logo mark whole behind the words ---------- */
.hero--split { position: relative; padding: 0; background: var(--surface); overflow: hidden; }
/* The mark is sized to the text block: its left edge lines up with the text, it is never cropped and never
   slides under the photograph (where only scraps of it showed). Each look gives it its own tints in themes.css. */
.hero--split .hero__copy::before { content: ""; position: absolute; z-index: -1; top: 50%; left: 0; height: 118%; max-width: 138%; aspect-ratio: 1; translate: -9% -50%; background: radial-gradient(circle closest-side at 53% 50%, var(--dot-tint) 0 40%, var(--ring-tint) 40%); -webkit-mask: url("../brand/ring-mask.svg") center / contain no-repeat; mask: url("../brand/ring-mask.svg") center / contain no-repeat; pointer-events: none; }
.hero--split .hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(32px, 5vw, 88px); align-items: stretch; max-width: var(--container); margin-inline: auto; padding: clamp(28px, 3.4vw, 48px) var(--gutter); min-height: min(calc(100vh - var(--header-h)), 860px); }
.hero h1 { position: relative; z-index: 0; }
.hero--split .hero__copy { position: relative; z-index: 0; align-self: center; gap: 28px; padding-block: 24px; }
/* The words run over the mark, so they sit a shade deeper than elsewhere: the small text keeps 4.5:1 and the
   headline's coloured line 3:1 on the ring and the dot, in every palette the studio offers. */
.hero--split :is(.eyebrow, .lead, .trust) { color: color-mix(in srgb, var(--muted) 75%, var(--text)); }
.hero--split h1 em { color: color-mix(in srgb, var(--em) 80%, var(--ink)); }
.hero--split .hero__copy .lead { max-width: 31em; }
.hero--split .hero__visual { position: relative; padding: 0; min-height: 540px; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: var(--surface-2); box-shadow: 0 40px 80px -48px color-mix(in srgb, var(--shadow-c) 55%, transparent); }
.hero--split .hero__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; left: 20px; bottom: 20px; z-index: 1; display: grid; gap: 1px; padding: 12px 18px 13px; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 96%, transparent); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--shadow-c) 45%, transparent); font-size: 13px; color: var(--muted); }
.hero__caption b { font-size: 16px; font-weight: var(--head-weight); color: var(--ink); letter-spacing: -0.01em; }
.hero__caption span:first-child { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.trust { gap: 10px 26px; width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .hero--split .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero--split .hero__copy > :nth-child(2) { animation-delay: .07s; }
  .hero--split .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero--split .hero__copy > :nth-child(4) { animation-delay: .21s; }
  .hero--split .hero__copy > :nth-child(5) { animation-delay: .28s; }
  .hero--split .hero__visual > img { animation: settle 1.8s var(--ease) both; }
  .hero--split .hero__copy::before { animation: mark-in 1.2s var(--ease) both; }   /* the mark fades in with the words */
  @keyframes mark-in { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes settle { from { transform: scale(1.05); } }
}
@media (max-width: 1060px) {
  .hero--split .hero__grid { min-height: 0; gap: clamp(24px, 4vw, 48px); }
  .hero--split .hero__visual { min-height: 480px; }
}
/* Phone: the photograph sits in the page flow at full width.
   (Safari on iPhone collapses it when its size comes only from aspect-ratio.) */
@media (max-width: 720px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 40px; }
  .hero--split .hero__copy { padding-block: 16px 8px; }
  .hero--split .hero__visual { justify-self: stretch; align-self: start; width: 100%; min-height: 0; }
  .hero--split .hero__visual > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
}
@media (min-width: 521px) and (max-width: 720px) { .hero--split .hero__visual > img { aspect-ratio: 1 / 1; } }
@media (max-width: 600px) { .hero__caption { left: 14px; bottom: 14px; padding: 10px 14px; } .hero__caption b { font-size: 15px; } }

/* ---------- benefits: four soft tiles ---------- */
.benefits { background: var(--bg); }
.benefits .grid { padding-block: clamp(40px, 5vw, 72px) 0; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .benefits .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .benefits .grid { grid-template-columns: 1fr; gap: 12px; } .benefit { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; } .benefit b { font-size: 17px; } }
.benefit { display: grid; gap: 18px; align-content: start; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.benefit svg { width: 48px; height: 48px; padding: 11px; border-radius: var(--radius-icon); background: var(--card); color: var(--navy); flex: none; }
.benefit p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.benefit b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 18px; font-weight: var(--head-weight); line-height: 1.25; letter-spacing: -0.015em; }

/* ---------- sections ---------- */
.section-head > p { font-size: 17px; }
.section--dark { position: relative; overflow: hidden; background: var(--navy); }
.section--dark::before, .cta-band::before { content: ""; position: absolute; right: -5%; top: -210px; width: clamp(360px, 40vw, 600px); aspect-ratio: 1; background: radial-gradient(circle closest-side at 53% 50%, color-mix(in srgb, var(--sky) 22%, transparent) 0 40%, color-mix(in srgb, var(--on-primary) 6%, transparent) 40%); -webkit-mask: url("../brand/ring-mask.svg") center / contain no-repeat; mask: url("../brand/ring-mask.svg") center / contain no-repeat; pointer-events: none; }
.section--dark > .container, .cta-band > * { position: relative; }
@media (max-width: 760px) { .section--dark::before { right: -90px; top: -150px; width: 330px; } }
.section--dark .section-head > p { color: var(--on-dark-muted); }
.stockist-band { background: var(--surface); }
/* two tinted bands in a row: keep them apart */
.section--alt + .section--alt { background: var(--bg); }
.section--alt + .stockist-band { background: var(--surface-2); }
.cta-band { background: var(--navy); }
.cta-band::before { right: -4%; top: auto; bottom: -70%; width: clamp(280px, 36vw, 520px); }

/* ---------- cards: image-led, rounded, no box ---------- */
.card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.card:hover { transform: none; box-shadow: none; }
.card__media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.card__media img { transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { gap: 10px; padding: 22px 4px 0; }
.card__meta { font-size: 13px; }
.grid--4 { --gap: 36px 20px; }
.finish-card .card__media { aspect-ratio: 1; border-radius: 18px; }
.finish-card[hidden] { display: none; }
.finish-card .card__body { gap: 3px; padding: 14px 2px 0; }
.finish-card .card__body .link-arrow { min-height: 40px; margin-top: auto; padding-top: 4px; font-size: 14px; }
.finish-card .eyebrow a { color: inherit; text-decoration: none; }
.finish-card .eyebrow a:hover { text-decoration: underline; }
.finish-card a.card__media { display: block; }
.finish-card h2 a, .finish-card h3 a { color: inherit; text-decoration: none; }
.finish-card h2 a:hover, .finish-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- finish picker: round swatches, like the core dot ---------- */
.picker { display: grid; gap: clamp(36px, 6vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; }
.picker__view { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.picker__view img { width: 100%; height: 100%; object-fit: cover; }
.media__tag { left: 18px; bottom: 18px; padding: 12px 18px 13px; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 96%, transparent); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--shadow-c) 45%, transparent); }
.media__tag [data-swatch-name] { font-size: 17px !important; color: var(--ink); letter-spacing: -0.01em; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 22px 12px; }
.swatches button { display: grid; gap: 10px; justify-items: center; align-content: start; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.swatches button span.s { display: block; width: min(72px, 100%); aspect-ratio: 1; border-radius: var(--radius-swatch); overflow: hidden; outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .25s; }
.swatches button span.s img { width: 100%; height: 100%; object-fit: cover; }
.swatches button:hover span.s { outline-color: var(--line-strong); }
.swatches button[aria-pressed="true"] { font-weight: 500; color: var(--ink); }
.swatches button[aria-pressed="true"] span.s { outline-color: var(--navy); }
.picker [data-finish-link] { font-size: 14px; }

/* ---------- spaces, gallery, media ---------- */
.media { border-radius: var(--radius-lg); }
.spaces { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); align-items: start; }
.spaces > a:nth-child(even) { margin-top: 48px; }
@media (max-width: 600px) { .spaces > a:nth-child(even) { margin-top: 0; } }
.space-card { display: grid; gap: 14px; color: var(--ink); text-decoration: none; }
.space-card .media { aspect-ratio: 3 / 4; }
.space-card .media img { transition: transform 1.2s var(--ease); }
.space-card:hover .media img { transform: scale(1.04); }
.space-card h3 { font-size: 21px; letter-spacing: -0.02em; padding-inline: 4px; }
.space-card p { font-size: 14.5px; color: var(--muted); padding-inline: 4px; }
.gallery { display: grid; gap: 36px 20px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.gallery .space-card h3 { font-size: 18px; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.media-pair figure { margin: 0; display: grid; gap: 12px; }
.media-pair .media { aspect-ratio: 2 / 3; }
.media-pair figure:nth-child(2) { margin-top: clamp(40px, 7vw, 96px); }
.media-pair figcaption { font-size: 13px; color: var(--muted); }
.range-row { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.range-row:first-child { border-top: 0; padding-top: 0; }
.range-row .media { aspect-ratio: 5 / 4; }
.keyline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.keyline b { color: var(--ink); font-weight: 500; }

/* ---------- story: key facts ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 4px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.stats div { display: grid; gap: 8px; align-content: start; }
.stats dt { font-size: clamp(24px, 2.4vw, 34px); font-weight: var(--head-weight); line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); }
.stats dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- steps, promises: numbers in a dot ---------- */
.steps > li { grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0; border-top-color: var(--line); }
.steps > li:last-child { border-bottom-color: var(--line); }
.steps > li::before, .promise::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-icon); background: var(--sky-soft); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: 0; }
.steps h3 { font-size: 19px; font-weight: var(--head-weight); letter-spacing: -0.015em; }
.promises { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); counter-reset: promise; }
.promise { counter-increment: promise; display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); }
.section--alt .promise { background: var(--card); }
.promise::before { content: counter(promise); background: var(--card); }
.section--alt .promise::before { background: var(--sky-soft); }
.promise h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.025em; }
.promise p { max-width: 34em; color: var(--muted); }
.manifesto { max-width: 900px; font-size: clamp(24px, 2.7vw, 38px); font-weight: var(--head-weight); line-height: 1.3; letter-spacing: -0.028em; color: var(--ink); }

/* ---------- who it's for: tiles on indigo ---------- */
.trade-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.trade-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.trade-grid > div { display: grid; gap: 12px; align-content: start; padding: clamp(26px, 2.6vw, 34px); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--on-primary) 5%, transparent); transition: background .4s var(--ease); }
.trade-grid > div:hover { background: color-mix(in srgb, var(--on-primary) 9%, transparent); }
.trade-grid > div > svg { width: 48px; height: 48px; padding: 11px; margin-bottom: 6px; border-radius: var(--radius-icon); background: var(--sky); color: var(--on-accent); }
.trade-grid h3 { font-size: 20px; font-weight: var(--head-weight); letter-spacing: -0.02em; }
.trade-grid .link-arrow { margin-top: 4px; }

/* ---------- sample fans: one per range, pinned with the core dot ---------- */
.fan { position: relative; height: 420px; }
.fan__card { position: absolute; left: 50%; bottom: 10px; width: 120px; height: 300px; margin-left: -60px; transform-origin: 50% 100%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 32px -16px color-mix(in srgb, var(--shadow-c) 45%, transparent); display: flex; flex-direction: column; }
.fan__card img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 7px; }
.fan__pin { position: absolute; left: 50%; bottom: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--sky); border: 5px solid var(--navy); }
.fans { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding-top: 12px; }
.fans .fan { height: auto; margin: 0; display: grid; justify-items: center; gap: 22px; --cw: 14cqi; --ch: calc(var(--cw) * 2.5); }
.fans .fan--lead { --cw: 16.5cqi; position: relative; z-index: 1; }
.fan__deck { position: relative; width: 100%; height: calc(var(--ch) + 14px); }
.fans .fan__card { width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); bottom: 11px; padding: 3px 3px 12%; background: #fff; box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--shadow-c) 50%, transparent); }
.fans .fan__pin { width: 18px; height: 18px; margin-left: -9px; border-width: 4px; }
.fans figcaption { font-size: clamp(15px, 3.6cqi, 19px); font-weight: var(--head-weight); line-height: 1; letter-spacing: -0.01em; color: var(--ink); text-align: center; }
.fans figcaption small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@media (max-width: 600px) { .fans .fan { --cw: 13cqi; } .fans .fan--lead { --cw: 15.5cqi; } .fans figcaption small { font-size: 12px; } }

/* ---------- page heroes: tinted band with the mark ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 0; padding-block: clamp(48px, 6vw, 92px) clamp(48px, 6vw, 84px); }
.page-hero::after { content: ""; position: absolute; top: 50%; right: max(-60px, calc((100vw - var(--container)) / 2 - 40px)); width: clamp(260px, 32vw, 460px); aspect-ratio: 1; translate: 0 -50%; background: radial-gradient(circle closest-side at 53% 50%, var(--dot-tint) 0 40%, var(--ring-tint) 40%); -webkit-mask: url("../brand/ring-mask.svg") center / contain no-repeat; mask: url("../brand/ring-mask.svg") center / contain no-repeat; pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero:not(:has(h1)) { padding-block: 22px 24px; }
.page-hero:not(:has(h1))::after { content: none; }
.page-hero:not(:has(h1)):has(.jump-links) { padding-bottom: 20px; }
.page-hero__inner { gap: 22px; }
.breadcrumb [aria-current] { color: var(--ink); }
@media (max-width: 760px) { .page-hero::after { top: auto; bottom: -22%; right: -18%; translate: none; opacity: .8; } }
.range-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.range-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: var(--radius-chip); border: 1px solid var(--line-strong); background: var(--card); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color .25s, background .25s, color .25s; }
.range-nav a:hover { border-color: var(--navy); }
.range-nav a[aria-current="page"] { background: var(--navy); color: var(--on-primary); border-color: var(--navy); }
.jump-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.jump-links span { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.jump-links a { color: var(--ink); text-decoration: none; }
.jump-links a:hover { color: var(--sky-ink); }

/* ---------- tables, accordions ---------- */
.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare th, .compare td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.compare thead th { font-size: 18px; font-weight: var(--head-weight); letter-spacing: -0.015em; color: var(--ink); }
.compare tbody th { width: 22%; font-size: 14px; font-weight: 500; color: var(--muted); }
.vs th[scope="col"]:nth-child(2), .vs td:nth-child(2) { background: var(--sky-soft); padding-left: 20px; }
.vs thead th:nth-child(2) { border-radius: var(--radius) var(--radius) 0 0; }
.vs td:nth-child(2) { color: var(--ink); }
.vs td:nth-child(3) { color: var(--muted); }
.spec th { font-weight: 400; }
.accordion, .accordion details { border-color: var(--line); }
.accordion summary { font-size: 18px; letter-spacing: -0.01em; }
.accordion summary::after { width: 10px; height: 10px; border-color: var(--sky-ink); }

/* ---------- filters, forms, panels ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 42px; padding: 0 18px; border-radius: var(--radius-chip); border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .25s, background .25s, color .25s; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--on-primary); border-color: var(--navy); }
.filters + .filters { margin-top: -20px; }
[data-filter-count] { margin: -12px 0 24px; }
.feature__icon { border-radius: var(--radius-icon); }
.field input, .field select, .field textarea { border-radius: var(--radius-field); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 28%, transparent); }
.field legend.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: var(--head-weight); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.inline-form input { border-radius: var(--radius-btn); }
.form-success { border-radius: var(--radius); }
.sample-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.sample-opt { position: relative; display: grid; gap: 10px; padding: 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.sample-opt img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 12px; }
.sample-opt input { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; accent-color: var(--navy); }
.sample-opt span { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0 4px 4px; }
.sample-opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.sample-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.sample-range { margin: 36px 0 14px; font-size: 20px; font-weight: var(--head-weight); letter-spacing: -0.02em; color: var(--ink); }
.sample-range:first-child { margin-top: 8px; }
.sample-range::before { content: none; }
.stockist-list { display: grid; gap: 16px; }
.stockist { display: grid; gap: 6px; grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.download { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.download:hover { color: var(--sky-ink); }
.download span { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.download svg { width: 22px; height: 22px; flex: none; }
.download small { color: var(--muted); }
.video-slot { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: linear-gradient(color-mix(in srgb, var(--navy) 58%, transparent), color-mix(in srgb, var(--navy) 58%, transparent)), url("../img/rooms/aq1000-concrete-dark-grey.webp") center / cover; display: grid; place-items: center; color: var(--on-primary); text-align: center; gap: 12px; }
.video-slot .play { width: 76px; height: 76px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; color: var(--on-accent); }
.video-slot .play svg { width: 28px; height: 28px; margin-left: 4px; }

/* ---------- sample basket: added state on finish cards, bar at the foot of the page ---------- */
.finish-card .link-arrow.is-added { color: var(--sky-ink); }
.finish-card .link-arrow.is-added svg, [data-sample-add].is-added svg { display: none; }
.finish-card .link-arrow.is-added::before { content: ""; width: 14px; height: 8px; margin: -4px 2px 0 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.finish-card:has(.is-added) .card__media { outline: 2px solid var(--sky); outline-offset: 4px; }
.sample-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--navy) 95%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--on-dark); }
.sample-bar[hidden] { display: none; }
.sample-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.sample-bar p { font-size: 14px; font-weight: 500; }
body.has-sample-bar { padding-bottom: 70px; }

/* ---------- panel calculator ---------- */
.calc { gap: 24px; }
.calc__result { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); }
.calc__total { font-size: clamp(28px, 3vw, 42px); font-weight: var(--head-weight); line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); }
.calc__total small { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.calc__list { list-style: none; display: grid; }
.calc__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.calc__list b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.calc__warn { padding: 12px 16px; border-radius: var(--radius-field); background: var(--sky-soft); color: var(--ink); font-size: 14px; }
.calc__actions { padding-top: 8px; }
@media (max-width: 900px) { .calc__result { position: static; } }

/* ---------- guarantee, finish pages, page not found ---------- */
.guarantee-stats { margin: 0; padding-top: 0; border-top: 0; gap: 20px; }
.guarantee-stats div { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); }
.section--alt .guarantee-stats div { background: var(--card); }
.guarantee-stats dt { font-size: clamp(30px, 3.6vw, 50px); }
.page-finish .picker .eyebrow a { color: inherit; text-decoration: none; }
.page-finish .picker .eyebrow a:hover { text-decoration: underline; }
.finish-rooms figure { margin: 0; }
.finish-rooms--one .media { aspect-ratio: 4 / 5; }
.finish-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.finish-pager a { display: grid; gap: 4px; font-size: clamp(17px, 1.9vw, 20px); font-weight: var(--head-weight); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.finish-pager a:last-child { text-align: right; }
.finish-pager a:hover { color: var(--sky-ink); }
.finish-pager span { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.not-found__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 15px; }

/* ---------- footer: the logo's dark side ---------- */
.site-footer { background: var(--navy); }
.footer__top { padding-block: clamp(64px, 7vw, 96px) 56px; }
.footer__brand p { font-size: 16px; line-height: 1.65; max-width: 26em; }
.footer__col h2 { font-size: 12px; font-weight: 500; letter-spacing: .2em; margin-bottom: 8px; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--sky-on-dark); text-decoration: none; }
.site-footer .btn--sky, .site-footer .btn--sky:hover { color: var(--on-accent); }
.footer__bottom { border-top-color: var(--line-dark); }

/* ---------- form controls: one chevron for every select ---------- */
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; }
.check input { accent-color: var(--navy); }

/* ---------- small interactions ---------- */
.card:hover .link-arrow svg, .space-card:hover .link-arrow svg { transform: translateX(4px); }
a.card:hover h3, .space-card:hover h3 { color: var(--sky-ink); }
a.card h3, .space-card h3 { transition: color .3s var(--ease); }
.accordion summary { transition: color .25s; }
.accordion summary:hover { color: var(--sky-ink); }
.accordion details[open] summary { color: var(--ink); }

/* ---------- phones: swipe through the big picture cards instead of a long stack ---------- */
@media (max-width: 700px) {
  .grid--3:has(> a.card), .spaces { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid--3:has(> a.card)::-webkit-scrollbar, .spaces::-webkit-scrollbar { display: none; }
  .grid--3:has(> a.card) > a.card, .spaces > a { flex: 0 0 78%; scroll-snap-align: start; margin-top: 0 !important; }
  .grid--3:has(> a.card) > .reveal, .spaces > .reveal { opacity: 1; transform: none; }
  /* finishes and gallery: two to a row */
  .grid--4:has(> .finish-card), .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .finish-card .card__media { border-radius: 14px; }
  .finish-card .h4 { font-size: 16px; }
  .gallery .space-card h3 { font-size: 16px; }
  /* comparison tables: the row labels stay put while the columns scroll */
  .compare { min-width: 600px; }
  .compare th, .compare td { padding-right: 16px; font-size: 14px; }
  .compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; width: 104px; min-width: 104px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line), 1px 0 0 var(--line); }
  .section--alt .compare tbody th, .section--alt .compare thead th:first-child { background: var(--surface); }
  /* who it's for: icon beside the text */
  .trade-grid > div { grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 6px; padding: 22px; }
  .trade-grid > div > svg { grid-row: 1 / span 3; margin: 0; }
  .trade-grid > div > :not(svg) { grid-column: 2; }
  /* footer: link lists side by side */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .stats:not(.guarantee-stats) { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .stats:not(.guarantee-stats) div { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
}

@media print {
  .site-header, .site-footer, .sample-bar, .skip-link, .calc__actions, .page-calculator .section--alt, .page-calculator .calc [data-calc-add] { display: none !important; }
  .page-hero { background: none; padding-block: 0 16px; }
  .page-hero::after, .page-hero .breadcrumb { display: none; }
  .section { padding-block: 16px; }
}
