/* PureLab — clean clinical luxury. Mobile first: base styles are for phones,
   min-width media queries add tablet and desktop layouts. Colours and fonts
   come from the admin panel via CSS variables set in the page head. */
:root {
  --primary: #1f3d6b;
  --accent: #b39a72;
  --bg: #f7f5f1;
  --ink: #16202e;
  --dark: #132842;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --paper: #ffffff;
  --mist: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 52%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: 16px;
  --sec-pad: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.45em; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 9vw, 5.2rem); }
h2 { font-size: clamp(2rem, 6vw, 3.3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--primary); }
.lead { font-size: 1.08rem; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* Buttons — large touch targets */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions:empty { display: none; }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 26px; border-radius: 999px; font: 600 0.84rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--ease), color .3s, transform .3s var(--ease); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 80%, #000); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: progress; }
.link-arrow { display: inline-block; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); border-bottom: 1px solid var(--accent); padding: 8px 0 4px; }

/* Announcement + header */
.announce { background: var(--dark); color: #fff; text-align: center; font-size: 0.85rem; padding: 10px var(--gutter); }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { height: 34px; width: auto; }
.brand-text { font-family: var(--serif); font-size: 1.6rem; }

/* Menu button: three lines that turn into a centred ✕ */
.menu-toggle { position: relative; display: block; flex: none; width: 48px; height: 48px; margin-right: -12px; padding: 0; background: none; border: 0; border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-toggle:active { background: var(--mist); }
.menu-toggle span { position: absolute; left: 13px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: top .25s var(--ease) .2s, transform .25s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span { transition: top .25s var(--ease), transform .25s var(--ease) .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Phone menu: full-screen panel under the header, hidden completely when closed */
.nav-links { list-style: none; margin: 0; position: fixed; left: 0; right: 0; top: 100%; height: calc(100dvh - 68px); display: flex; flex-direction: column; padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; z-index: -1;
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
.nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s; }
.nav-links li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.nav-links.open li { opacity: 1; transform: none; }
.nav-links.open li:nth-child(1) { transition-delay: .05s; } .nav-links.open li:nth-child(2) { transition-delay: .1s; }
.nav-links.open li:nth-child(3) { transition-delay: .15s; } .nav-links.open li:nth-child(4) { transition-delay: .2s; }
.nav-links.open li:nth-child(5) { transition-delay: .25s; } .nav-links.open li:nth-child(6) { transition-delay: .3s; }
.nav-links.open li:nth-child(n+7) { transition-delay: .35s; }
.nav-links a { display: flex; align-items: center; min-height: 64px; font-family: var(--serif); font-size: 1.75rem; color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--primary); font-style: italic; }
.nav-links .nav-cta { border: 0; margin-top: auto; padding-top: 28px; }
.nav-links .nav-cta .btn { display: flex; width: 100%; min-height: 56px; color: #fff; font-family: var(--sans); font-size: .86rem; font-style: normal; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--bg); border-bottom-color: var(--line); }

/* Sections + themes */
.sec { padding: var(--sec-pad) 0; position: relative; }
.theme-ivory { background: var(--bg); }
.theme-white { background: var(--paper); }
.theme-dark { background: var(--dark); color: #fff; }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: #fff; }
.theme-dark h1 em, .theme-dark h2 em { color: var(--accent); }
.theme-dark p, .theme-dark .checks li { color: rgba(255, 255, 255, .74); }
.theme-dark .eyebrow { color: var(--accent); }
.theme-dark .btn-ghost { color: #fff; }
.theme-dark .btn-ghost:hover { background: #fff; color: var(--dark); }
.sec-head { margin-bottom: 36px; max-width: 680px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p:last-child { margin-bottom: 0; }
.sec-link { margin: 28px 0 0; }
.empty { color: var(--muted); }

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 8px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-centered { text-align: center; max-width: 900px; }
.hero-centered .actions { justify-content: center; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--paper); border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 50px -20px rgba(19, 40, 66, .3); display: flex; gap: 14px; align-items: center; color: var(--ink); }
.hero-badge .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.hero-badge strong { display: block; font-size: .92rem; }
.hero-badge small { color: var(--muted); font-size: .8rem; }

/* Page header */
.page-hero { text-align: center; max-width: 860px; padding-top: 12px; padding-bottom: 4px; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .lead { max-width: 620px; margin-inline: auto; }
.sec-page_hero.has-bg { background: linear-gradient(rgba(10, 20, 35, .55), rgba(10, 20, 35, .55)), var(--img) center/cover; color: #fff; padding: 110px 0; }
.sec-page_hero.has-bg h1, .sec-page_hero.has-bg p, .sec-page_hero.has-bg .eyebrow { color: #fff; }

/* Marquee */
.strip { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg); }
.strip-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.strip span { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; }
.strip span::after { content: "✦"; font-style: normal; font-size: .75rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Features */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--paper); padding: 30px 24px; }
.theme-white .pillar { background: var(--bg); }
.pillar .num { font-family: var(--serif); color: var(--accent); margin-bottom: 22px; display: block; }
.pillar h3 { font-size: 1.4rem; }
.pillar p { font-size: .95rem; margin: 0; }

/* Product cards */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; }
.product { display: flex; flex-direction: column; }
.product .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--mist); margin-bottom: 14px; }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product:hover .media img { transform: scale(1.05); }
.product .tag { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.product h3 { margin: 6px 0; font-size: 1.2rem; }
.product p { font-size: .88rem; margin-bottom: 10px; display: none; }
.product .meta { font-size: .85rem; color: var(--ink); font-weight: 600; }
.price { font-family: var(--serif); font-size: 1.6rem; color: var(--primary); margin: -4px 0 12px; }

/* Product rows */
.product-row { display: grid; gap: 28px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.product-row:first-child { padding-top: 0; }
.product-row:last-child { border-bottom: 0; padding-bottom: 0; }
.product-row-media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.product-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product-row-media:hover img { transform: scale(1.04); }
.spec-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-list li span:first-child { color: var(--muted); flex: none; }
.spec-list li span:last-child { text-align: right; }

/* Product detail */
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); }
.product-detail { display: grid; gap: 30px; }
.pd-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; padding: 0; border: 2px solid transparent; cursor: pointer; background: var(--mist); }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 22px 0 4px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.theme-dark .checks li::before { background-color: var(--accent); }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 34px; border-top: 1px solid var(--line); }
.theme-dark .stats { border-color: rgba(255, 255, 255, .15); }
.stat strong { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; margin-bottom: 8px; color: var(--primary); }
.theme-dark .stat strong { color: #fff; }
.stat span { font-size: .88rem; color: var(--muted); }
.theme-dark .stat span { color: rgba(255, 255, 255, .65); }

/* Steps */
.steps { display: grid; gap: 16px; }
.step { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.theme-white .step { background: var(--bg); }
.theme-dark .step { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.step .num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--primary); margin-bottom: 20px; }
.step p { margin: 0; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: calc(var(--radius) * .7); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure:first-child a { aspect-ratio: 16 / 10; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 24, .92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 90dvh; border-radius: 12px; }

/* Testimonials */
.quotes { display: grid; gap: 16px; }
.quote { margin: 0; padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.theme-white .quote { background: var(--bg); }
.theme-dark .quote { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.quote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: inherit; }
.quote footer { display: flex; flex-direction: column; font-size: .9rem; }
.quote footer span { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); transition: transform .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > div { padding-bottom: 14px; }

/* Text block */
.text-block.center { text-align: center; }
.text-block.center .eyebrow { justify-content: center; }

/* CTA banner + newsletter */
.cta-banner { background: var(--primary); color: #fff; border-radius: calc(var(--radius) * 1.4); padding: 48px 24px; text-align: center; }
.cta-banner.has-bg { background: linear-gradient(rgba(10, 20, 35, .6), rgba(10, 20, 35, .6)), var(--img) center/cover; }
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner .eyebrow { color: #fff; justify-content: center; }
.cta-banner .actions { justify-content: center; }
.cta { background: var(--paper); border-radius: calc(var(--radius) * 1.4); padding: 36px 22px; display: grid; gap: 26px; border: 1px solid var(--line); }
.theme-white .cta { background: var(--bg); }
.theme-dark .cta { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
.inline-form input { min-height: 52px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 0 22px; font: inherit; font-size: 16px; color: var(--ink); }
.inline-form input:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.form-status { font-size: .92rem; margin: 12px 0 0; min-height: 1.4em; }
.form-status.ok { color: #2f7a55; }
.form-status.err { color: #b0442f; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
.contact-info { display: grid; gap: 24px; }
.contact-info h3 { font-size: 1.25rem; margin-bottom: 4px; }
.contact-info p { margin: 0; }
.contact-info a { color: var(--primary); }
.form-card { background: var(--paper); border-radius: calc(var(--radius) * 1.3); padding: 26px 20px; border: 1px solid var(--line); color: var(--ink); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; gap: 0; }
.field label { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.form-card .btn { width: 100%; }

/* Spacer */
.spacer.size-s { padding: 12px 0; }
.spacer.size-m { padding: 32px 0; }
.spacer.size-l { padding: 64px 0; }
.spacer hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.footer-brand .brand-text { color: #fff; display: block; margin-bottom: 14px; }
.footer-brand p { color: rgba(255, 255, 255, .6); max-width: 340px; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: rgba(255, 255, 255, .1); }
.site-footer h4 { font: 600 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; font-size: .95rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; font-size: .82rem; color: rgba(255, 255, 255, .45); }

/* WhatsApp button */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
}

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; --sec-pad: 84px; }
  .product p { display: block; }
  .products { gap: 32px 22px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps, .quotes { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery figure:first-child { grid-column: auto; }
  .gallery figure:first-child a { aspect-ratio: 4 / 5; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .form-card { padding: 40px; }
  .form-card .btn { width: auto; }
  .inline-form { flex-direction: row; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
  .inline-form input { flex: 1; min-width: 0; border: 0; background: transparent; }
  .cta { padding: 52px 44px; }
  .cta-banner { padding: 70px 50px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .hero-badge { left: -20px; right: auto; bottom: 36px; max-width: 260px; }
}

/* ---------- Tablet landscape / desktop ---------- */
@media (min-width: 960px) {
  :root { --sec-pad: 110px; }
  body { font-size: 17px; }
  .nav { height: 84px; }
  .brand img { height: 44px; }
  .menu-toggle { display: none; }
  .nav-links { position: static; height: auto; flex-direction: row; transform: none; background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 34px; z-index: auto; overflow: visible; visibility: visible; opacity: 1; transition: none; }
  .nav-links li, .nav-links.open li { border: 0; opacity: 1; transform: none; transition: none; }
  .nav-links a { display: inline-block; min-height: 0; padding: 6px 0; font-family: var(--sans); font-size: .88rem; font-style: normal; color: var(--ink-soft); position: relative; }
  .nav-links a[aria-current="page"] { font-style: normal; color: var(--ink); }
  .nav-links .nav-cta { margin-top: 0; }
  .nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-links .nav-cta { padding: 0; }
  .nav-links .nav-cta .btn { display: inline-flex; width: auto; min-height: 44px; padding: 12px 22px; }
  .nav-links .nav-cta .btn::after { display: none; }
  html { scroll-padding-top: 96px; }

  .hero { grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; padding-top: 0; }
  .hero-image-left .hero-media { order: -1; }
  .hero-centered { grid-template-columns: 1fr; padding: 40px 0; }
  .hero-media .frame { border-radius: 260px 260px var(--radius) var(--radius); }
  .page-hero { padding-top: 30px; }
  .sec-head { margin-bottom: 56px; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillar { padding: 40px 32px; }
  .pillar .num { margin-bottom: 40px; }
  .products { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .product h3 { font-size: 1.5rem; }
  .product .tag { font-size: .72rem; }
  .product-row { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 70px 0; }
  .product-row:nth-child(even) .product-row-media { order: 2; }
  .product-detail { grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
  .pd-info { position: sticky; top: 110px; }
  .split { grid-template-columns: 1fr 1fr; gap: 90px; }
  .split.img-right .split-media { order: 2; }
  .split-media { aspect-ratio: 5 / 6; }
  .stat strong { font-size: 3.4rem; }
  .steps, .quotes { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { padding: 40px 34px; }
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
  .cta { grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding: 80px 70px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
  .footer-brand { grid-column: auto; }
}

/* ================= Motion & enhancements ================= */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 70; pointer-events: none; }

/* Hero headline: words rise in one by one */
.hero-text h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.hero-text.in h1 .w, .hero-text h1.split-done .w { opacity: 1; transform: none; }

/* Hero image floats gently, bubbles drift upwards */
.hero-media .frame { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bubbles { position: absolute; inset: -6% -4% 0; pointer-events: none; z-index: 1; }
.bubbles i { position: absolute; bottom: 8%; width: var(--s, 18px); height: var(--s, 18px); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .25) 60%, rgba(179, 154, 114, .25)); border: 1px solid rgba(179, 154, 114, .35); opacity: 0; animation: bubble var(--d, 9s) ease-in infinite; animation-delay: var(--delay, 0s); }
.bubbles i:nth-child(1) { left: 6%; --s: 22px; --d: 9s; }
.bubbles i:nth-child(2) { left: 18%; --s: 12px; --d: 7s; --delay: 2s; }
.bubbles i:nth-child(3) { left: 82%; --s: 28px; --d: 11s; --delay: 1s; }
.bubbles i:nth-child(4) { left: 92%; --s: 14px; --d: 8s; --delay: 4s; }
.bubbles i:nth-child(5) { left: 70%; --s: 10px; --d: 6.5s; --delay: 3s; }
.bubbles i:nth-child(6) { left: 30%; --s: 16px; --d: 10s; --delay: 5s; }
.bubbles i:nth-child(7) { left: 55%; --s: 20px; --d: 12s; --delay: 6s; }
@keyframes bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 80% { opacity: .7; } 100% { transform: translateY(-520px) scale(1.1); opacity: 0; } }

/* Staggered entrance for items inside grids */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s, background .35s; transition-delay: calc(var(--i, 0) * 90ms); }
.stagger.in > *, .in .stagger > * { opacity: 1; transform: none; }

/* Cards lift on hover */
.pillar, .step, .quote, .product .media, .contact-info > div { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
@media (hover: hover) {
  .pillar:hover, .step:hover, .quote:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(19, 40, 66, .45); }
  .product:hover .media { box-shadow: 0 24px 50px -28px rgba(19, 40, 66, .45); }
}
.pillar .num { transition: color .3s, transform .3s var(--ease); display: inline-block; }
.pillar:hover .num { color: var(--primary); transform: translateX(4px); }

/* Button shine */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn-primary:hover::after { left: 130%; }

/* Images: soft parallax handled in JS; slow zoom on reveal */
.split-media, .product-row-media, .pd-main { overflow: hidden; }
.split-media img { transform: scale(1.08) translateY(var(--py, 0px)); transition: transform 1.4s var(--ease); will-change: transform; }
.split-media.in img { transform: scale(1.02) translateY(var(--py, 0px)); }

/* Counters */
.stat strong { font-variant-numeric: tabular-nums; }

/* Eyebrow line grows in */
.reveal .eyebrow::before, .sec-head .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .2s; }
.reveal.in .eyebrow::before, .in .eyebrow::before, .hero-text.in .eyebrow::before { transform: scaleX(1); }

/* FAQ answer slides open */
.faq-item > div { overflow: hidden; }
.faq-item[open] > div { animation: faqOpen .45s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- pH scale section ---------- */
.ph-scale { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: 86px 18px 22px; position: relative; }
.theme-white .ph-scale { background: var(--bg); }
.theme-dark .ph-scale { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.ph-track { position: relative; height: 18px; }
.ph-gradient { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, #d9534f 0%, #f0a04b 18%, #f2d15c 32%, #9ccc65 46%, #4caf8a 52%, #4aa3c7 66%, #3f6fb5 82%, #5b3f9e 100%); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.ph-scale.in .ph-gradient { transform: scaleX(1); }
.ph-marker { position: absolute; left: var(--x); bottom: 26px; transform: translateX(-50%) translateY(-14px); display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.9s + var(--i) * .25s); width: 110px; }
.ph-scale.in .ph-marker { opacity: 1; transform: translateX(-50%); }
.ph-marker b { font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--ink); }
.theme-dark .ph-marker b { color: #fff; }
.ph-marker small { font-size: .7rem; line-height: 1.25; color: var(--muted); margin-top: 3px; }
.ph-pin { order: 3; width: 2px; height: 14px; background: var(--ink); opacity: .5; margin-top: 4px; }
.ph-marker.hl b { color: var(--primary); font-size: 1.6rem; }
.theme-dark .ph-marker.hl b { color: var(--accent); }
.ph-marker.hl .ph-pin { background: var(--primary); opacity: 1; width: 3px; }
.ph-marker.hl::after { content: ""; position: absolute; bottom: -27px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--primary); background: rgba(255, 255, 255, .6); animation: pulse 2.2s ease-out infinite; animation-delay: 2s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ph-marker:nth-child(odd of .ph-marker) { bottom: 26px; }
.ph-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 12px; }
.ph-legend { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ph-legend li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.theme-white .ph-legend li { background: var(--bg); }
.theme-dark .ph-legend li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.ph-legend li.hl { border-color: var(--primary); box-shadow: 0 18px 40px -30px rgba(19, 40, 66, .6); }
.ph-legend strong { font-size: .95rem; }
.ph-legend p { margin: 2px 0 0; font-size: .9rem; }
.ph-dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: linear-gradient(90deg, #d9534f 0%, #f0a04b 18%, #f2d15c 32%, #9ccc65 46%, #4caf8a 52%, #4aa3c7 66%, #3f6fb5 82%, #5b3f9e 100%); background-size: 1400% 100%; background-position: var(--x) 0; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
@media (min-width: 600px) {
  .ph-scale { padding: 96px 34px 28px; }
  .ph-legend { grid-template-columns: repeat(3, 1fr); }
  .ph-marker { width: 130px; }
  .ph-marker small { font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text h1 .w, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media .frame, .bubbles i, .ph-marker.hl::after { animation: none !important; }
  .bubbles { display: none; }
  .ph-gradient, .ph-marker { transition: none !important; transform: none; opacity: 1; }
  .ph-marker { transform: translateX(-50%); }
  .split-media img { transform: none !important; }
  .progress-bar { display: none; }
}
/* pH markers alternate above / below the bar so close values don't overlap */
.ph-marker.alt { bottom: auto; top: 26px; transform: translateX(-50%) translateY(14px); }
.ph-scale.in .ph-marker.alt { transform: translateX(-50%); }
.ph-marker.alt .ph-pin { order: -1; margin: 0 0 4px; }
.ph-marker.alt.hl::after { bottom: auto; top: -27px; }
.ph-scale.has-alt .ph-axis { margin-top: 84px; }
@media (min-width: 600px) { .ph-legend { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ph-legend { grid-template-columns: repeat(4, 1fr); } }
/* Highlighted words stay readable on coloured or photo backgrounds */
.cta-banner h2 em, .sec-page_hero.has-bg h1 em { color: var(--accent); }
/* Phones: markers show only the value (the legend below names them) so they never overlap */
@media (max-width: 599px) {
  .ph-marker { width: 48px; }
  .ph-marker small { display: none; }
  .ph-scale { padding-top: 64px; }
  .ph-scale.has-alt .ph-axis { margin-top: 62px; }
}

/* ---------- Product photo motion ---------- */
.hero-media { transition: transform .5s var(--ease), opacity .9s var(--ease); transform-style: preserve-3d; }
.hero-media.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero-media .frame { position: relative; box-shadow: 0 40px 80px -45px rgba(19, 40, 66, .55); }
.hero-media .frame img { transform-origin: 62% 42%; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, -2%); } }
.hero-media .frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 66%); transform: translateX(-130%); }
.hero-media.in .frame::after { animation: sheen 1.8s var(--ease) .7s forwards; }
@media (hover: hover) { .hero-media:hover .frame::after { animation: sheen 1.4s var(--ease) forwards; } }
@keyframes sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.hero-badge { animation: badgeFloat 6s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-media .frame img, .hero-media .frame::after, .hero-badge { animation: none !important; }
  .hero-media.in { transform: none; }
}

/* ---------- Phone-first refinements ---------- */
.eyebrow { font-size: .76rem; }
.site-footer li a { padding: 11px 0; }
.actions .btn { flex: 1 1 100%; }
.hero-media .frame { aspect-ratio: 5 / 6; }
@media (min-width: 600px) {
  .actions .btn { flex: 0 0 auto; }
  .site-footer li a { padding: 6px 0; }
}
@media (min-width: 960px) {
  .hero-media .frame { aspect-ratio: 4 / 5; }
  .eyebrow { font-size: .72rem; }
}
/* Decorations (bubbles, zoom, tilt) never widen the page */
.bubbles { inset: -6% 0 0; }
.sec { overflow-x: clip; }
html, body { overflow-x: clip; }
