/* ===================================================================
   O2xylife — shared stylesheet
   Loaded on every page via includes/header.php.
   Component index:
     Reset & Foundations · Reveal-on-scroll · Kicker · Buttons · Header
     Hero (full-bleed, homepage) · Page Hero (interior pages) · Breadcrumb
     Marquee · Solution/Pull-quote · Stats · Conditions grid
     Category rows (editorial, conditions page) · Chamber/product (dark)
     Gallery grid · Timeline (science page) · Why/trust · Quote band
     FAQ accordion · Contact form · CTA · Footer · Custom cursor
     Fine print · Responsive
   =================================================================== */

/* ============ Reset & Foundations ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #10131a;
    --ink-soft: #565c6b;
    --ink-faint: #8890a0;
    --canvas: #faf9f6;
    --canvas-alt: #f1efe8;
    --canvas-white: #ffffff;
    --line: #e5e1d6;
    --dark: #0a0e14;
    --dark-elevated: #12161f;
    --dark-line: rgba(255, 255, 255, 0.1);
    --dark-text-soft: rgba(255, 255, 255, 0.62);

    --brand-blue-dark: #0b3d91;
    --brand-blue: #1268e3;
    --brand-cyan: #29b6f6;
    --brand-gradient: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 55%, var(--brand-cyan) 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(11,61,145,0.12), rgba(41,182,246,0.12));

    --font-display: "Fraunces", ui-serif, Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --max: 1360px;
    --edge: 6%;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    animation: bodyIn 0.9s var(--ease) forwards 0.1s;
}

@keyframes bodyIn { to { opacity: 1; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08;
}

::selection { background: var(--brand-blue); color: #fff; }

/* Grain texture overlay for dark sections */
.grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    body { animation: none; opacity: 1; }
}

/* ============ Kicker / editorial numbering ============ */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
}
.kicker .num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-faint);
    letter-spacing: 0;
}
.kicker::after {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--brand-gradient);
}
.kicker.center { justify-content: center; }
.on-dark .kicker { color: var(--brand-cyan); }
.on-dark .kicker .num { color: rgba(255,255,255,0.4); }
.kicker.on-dark { color: var(--brand-cyan); }
.kicker.on-dark .num { color: rgba(255,255,255,0.4); }

/* ============ Buttons ============ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.btn-solid {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(10,14,20,0.45); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: #fff; border-color: var(--dark-line); }
.btn-ghost.on-dark:hover { border-color: rgba(255,255,255,0.5); }
.btn-solid.on-dark { background: #fff; color: var(--dark); }
.btn-sm { padding: 0.8rem 1.8rem; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ============ Header ============ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.6rem var(--edge);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
header.scrolled {
    padding: 1rem var(--edge);
    background: rgba(250, 249, 246, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
/* Logo: white over the hero image, full colour once the header has scrolled
   past it. Uses the same brightness/invert trick as the footer logo rather
   than a second image asset — no extra file to keep in sync. */
.logo img {
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.4s var(--ease);
}
header.scrolled .logo img { filter: none; }

.nav-links { display: flex; gap: 2.6rem; align-items: center; }

/* Default (unscrolled) state: header sits over a dark hero image, so nav
   text is white. header.scrolled below flips everything to the normal
   dark-on-light palette once there's a light bar behind the header. */
.nav-links a:not(.btn) {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.92rem;
    padding-bottom: 4px;
    transition: color 0.4s var(--ease);
}
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: #fff;
    transition: width 0.35s var(--ease), background 0.4s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.active:not(.btn) { color: var(--brand-cyan); }
.nav-links a.active:not(.btn)::after { width: 100%; background: var(--brand-cyan); }

.nav-links .btn { padding: 0.75rem 1.7rem; font-size: 0.88rem; }
.nav-links .btn-solid { background: #fff; color: var(--dark); }

header.scrolled .nav-links a:not(.btn) { color: var(--ink); }
header.scrolled .nav-links a:not(.btn)::after { background: var(--ink); }
header.scrolled .nav-links a.active:not(.btn) { color: var(--brand-blue); }
header.scrolled .nav-links a.active:not(.btn)::after { background: var(--brand-blue); }
header.scrolled .nav-links .btn-solid { background: var(--ink); color: #fff; }

/* ============ Mobile nav toggle (hamburger) ============ */
/* Hidden by default — only shown under the 760px breakpoint below, where
   .nav-links is hidden in its place. Same white-over-image /
   dark-once-scrolled logic as the logo and nav links, plus a dedicated
   "menu is open" state that always reads white against the dark
   full-screen menu behind it, regardless of scroll position. */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1200;
    transition: border-color 0.4s var(--ease), background 0.3s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.4s var(--ease);
}
header.scrolled .nav-toggle { border-color: var(--line); }
header.scrolled .nav-toggle:hover { background: rgba(16,19,26,0.05); }
header.scrolled .nav-toggle-bar { background: var(--ink); }

/* Hamburger -> X, and force the "unscrolled" white styling while the
   full-screen menu is open (source order makes this win over .scrolled). */
header.menu-open .nav-toggle { border-color: rgba(255,255,255,0.35); }
header.menu-open .nav-toggle:hover { background: rgba(255,255,255,0.08); }
header.menu-open .nav-toggle-bar { background: #fff; }
header.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Mobile menu — full-screen overlay ============ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    text-align: center;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.7rem; }
.mobile-menu-links li { display: flex; align-items: baseline; justify-content: center; gap: 1rem; }
.mobile-menu-num { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.35); }
.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}
.mobile-menu-links a.active { color: var(--brand-cyan); }
.mobile-menu-links a:hover { color: var(--brand-cyan); }
.mobile-menu-cta { padding: 1.05rem 2.8rem; }

/* Always hidden above the mobile breakpoint, even if left open mid-resize. */
@media (min-width: 761px) {
    .mobile-menu { display: none; }
}

/* ============ Hero — full-bleed image (homepage) ============ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 0 var(--edge);
    overflow: hidden;
    color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Swap this src for O2xylife's own hero photography — any aspect
       ratio will fill the section cleanly via object-fit. No filter or
       overlay applied here by design — image is shown at full strength;
       grade/darken it in Photoshop if the overlaid text needs more contrast. */
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; padding: 160px 0 90px; }
.hero-inner h1 { font-size: clamp(3rem, 5.6vw, 5.6rem); margin-bottom: 1.8rem; text-shadow: 0 4px 30px rgba(0,0,0,0.25); }
.hero-inner h1 em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #fff 0%, var(--brand-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-inner p.lead { font-size: 1.2rem; color: rgba(255,255,255,0.82); max-width: 480px; margin-bottom: 2.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-scroll-cue { display: flex; align-items: center; gap: 0.8rem; font-size: 0.8rem; color: rgba(255,255,255,0.68); font-weight: 500; }
.hero-scroll-cue .line { width: 40px; height: 1px; background: rgba(255,255,255,0.35); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content: ""; position: absolute; inset: 0; background: var(--brand-gradient); animation: cueSlide 2.2s ease-in-out infinite; }
@keyframes cueSlide { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

.float-badge {
    position: absolute;
    z-index: 1;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px -16px rgba(10,14,20,0.35);
}
.float-badge svg { width: 24px; height: 24px; color: var(--brand-blue); flex-shrink: 0; }
.float-badge strong { display: block; font-family: var(--font-body); font-size: 0.88rem; color: var(--ink); }
.float-badge span { font-size: 0.78rem; color: var(--ink-soft); }
.float-badge.hero-badge { right: var(--edge); bottom: 2.2rem; max-width: 230px; }

/* ============ Page Hero — interior pages ============ */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--edge);
    overflow: hidden;
    color: #fff;
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media picture { display: block; width: 100%; height: 100%; }
.page-hero-media img {
    width: 100%; height: 100%; object-fit: cover;
    /* No filter or overlay by design — image shown at full strength;
       grade/darken it in Photoshop if the overlaid text needs more contrast. */
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; padding: 220px 0 70px; }
.page-hero-inner h1 { font-size: clamp(2.6rem, 4.4vw, 4.1rem); margin-bottom: 1.2rem; text-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.page-hero-inner h1 em {
    font-style: italic; font-weight: 400;
    background: linear-gradient(135deg, #fff 0%, var(--brand-cyan) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero-inner p.lead { font-size: 1.12rem; color: rgba(255,255,255,0.85); max-width: 600px; }

/* Breadcrumb */
.breadcrumb { position: relative; z-index: 1; display: flex; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.62); margin-bottom: 1.4rem; }
.breadcrumb a { text-decoration: none; color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* ============ Marquee ============ */
.marquee-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: var(--canvas-alt); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span {
    display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
    padding: 0 2.5rem; white-space: nowrap;
}
.marquee-track span::after { content: "◆"; margin-left: 2.5rem; color: var(--brand-cyan); font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============ Solution / Pull-quote ============ */
.solution { max-width: 900px; margin: 0 auto; padding: 140px var(--edge) 100px; text-align: center; }
.solution .kicker { display: inline-flex; }
.solution h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); font-weight: 500; }
.solution h2 em { font-style: italic; color: var(--brand-blue); font-weight: 400; }
.solution p.support { margin-top: 2rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; margin-left: auto; margin-right: auto; }
.solution .more-link {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem;
    font-size: 0.92rem; font-weight: 700; color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.solution .more-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.solution .more-link:hover svg { transform: translateX(4px); }

/* Generic section intro (reused on interior pages instead of .solution) */
.section-intro { max-width: 780px; margin: 0 auto; padding: 120px var(--edge) 70px; text-align: center; }
.section-intro .kicker { display: inline-flex; }
.section-intro h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; margin-bottom: 1.4rem; }
.section-intro h2 em { font-style: italic; color: var(--brand-blue); font-weight: 400; }
.section-intro p { font-size: 1.1rem; color: var(--ink-soft); }

/* ============ Stats band ============ */
.stats { position: relative; background: var(--dark); color: #fff; padding: 90px var(--edge); overflow: hidden; }
.stats-grid { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; border-left: 1px solid var(--dark-line); padding-left: 2rem; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .value {
    font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500;
    background: linear-gradient(135deg, #fff, var(--brand-cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { margin-top: 0.6rem; font-size: 0.85rem; color: var(--dark-text-soft); font-weight: 500; }

/* ============ Conditions grid (cards) ============ */
.conditions { padding: 140px var(--edge); }
.conditions-inner, .section-wrap { max-width: var(--max); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 500; max-width: 560px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 380px; }

.condition-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.condition-card {
    position: relative; background: var(--canvas-white); border: 1px solid var(--line);
    border-radius: 22px; padding: 2.6rem 2.2rem;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
    will-change: transform;
}
.condition-card:hover { border-color: transparent; box-shadow: 0 30px 60px -24px rgba(11,61,145,0.28); }
.condition-index { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--ink-faint); margin-bottom: 1.6rem; display: block; }
.condition-icon {
    width: 52px; height: 52px; border-radius: 14px; background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.6rem;
}
.condition-icon svg { width: 26px; height: 26px; color: #fff; }
.condition-card h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.75rem; }
.condition-card p.desc { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.5rem; }
.condition-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.9rem; }
.condition-tags li { font-size: 0.78rem; font-weight: 600; background: var(--canvas-alt); color: var(--brand-blue-dark); padding: 0.4rem 0.8rem; border-radius: 100px; }
.condition-card a.link, .link {
    font-size: 0.9rem; font-weight: 700; color: var(--ink); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.condition-card a.link svg, .link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.condition-card a.link:hover svg, .link:hover svg { transform: translateX(4px); }

/* ============ Category rows — editorial layout (conditions.php) ============ */
.category-rows { padding: 40px var(--edge) 100px; }
.category-row {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center;
    padding: 90px 0; border-bottom: 1px solid var(--line);
}
.category-rows .category-row:first-child { padding-top: 20px; }
.category-row:last-child { border-bottom: none; }
.category-row.flip .category-media { order: 2; }
.category-row.flip .category-copy { order: 1; }
.category-media { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 5/4; }
.category-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) contrast(1.05) brightness(0.98); }
.category-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(11,61,145,0.3), rgba(10,14,20,0.1) 55%, rgba(41,182,246,0.15));
    mix-blend-mode: multiply;
}
.category-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; margin-bottom: 1.1rem; }
.category-copy p.desc { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.6rem; }
.category-copy .condition-tags { margin-bottom: 2rem; }

/* ============ Chamber / product (dark) ============ */
.chamber { position: relative; background: var(--dark-elevated); color: #fff; padding: 150px var(--edge); overflow: hidden; }
/* Light theme, consistent with the rest of the interior pages — unlike
   .chamber (the dark homepage teaser section), .chamber-section is only
   ever used on chamber.php, so it's safe to theme directly here rather
   than scoping every override under a modifier class. */
.chamber-section { position: relative; background: var(--canvas); color: var(--ink); padding: 110px var(--edge); overflow: hidden; }
.chamber-section .chamber-image-frame { background: var(--canvas-alt); border-color: var(--line); }
.chamber-section .compliance-chip { background: var(--canvas-white); border-color: var(--line); color: var(--ink-soft); }
.chamber-section .compliance-chip svg { color: var(--brand-blue); }
.chamber-section .chamber-content .subheading { color: var(--ink-soft); }
.chamber-section .spec-list { border-top-color: var(--line); }
.chamber-section .spec-list li { border-bottom-color: var(--line); }
.chamber-section .spec-list li strong { color: var(--ink); }
.chamber-section .spec-list li span { color: var(--ink-soft); }
.chamber-section .feature-card { background: var(--canvas-alt); border-color: var(--line); }
.chamber-section .feature-card svg { color: var(--brand-blue); }
.chamber-section .feature-card p { color: var(--ink-soft); }
.chamber-grid { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 5.5rem; align-items: center; }
.chamber-image-frame { position: relative; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid var(--dark-line); padding: 2.5rem; }
.chamber-image-frame img { border-radius: 16px; filter: grayscale(15%) contrast(1.08) brightness(1.02); }
.compliance-chip {
    margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.06); border: 1px solid var(--dark-line);
    padding: 0.65rem 1.25rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; color: var(--dark-text-soft);
}
.compliance-chip svg { width: 16px; height: 16px; color: var(--brand-cyan); }

.chamber-content h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 500; margin-bottom: 0.5rem; }
.chamber-content .subheading { color: var(--dark-text-soft); font-size: 1.08rem; margin-bottom: 3rem; }

.spec-list { border-top: 1px solid var(--dark-line); }
.spec-list li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--dark-line); }
.spec-list li strong { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: #fff; }
.spec-list li span { color: var(--dark-text-soft); font-size: 0.96rem; }
.chamber-cta { margin-top: 2.8rem; }

/* Feature grid (chamber.php) */
.feature-grid { max-width: var(--max); margin: 90px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.feature-card { background: rgba(255,255,255,0.04); border: 1px solid var(--dark-line); border-radius: 20px; padding: 2.2rem; }
.feature-card svg { width: 28px; height: 28px; color: var(--brand-cyan); margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; }
.feature-card p { color: var(--dark-text-soft); font-size: 0.92rem; }

/* Gallery grid (chamber.php) — each figure opens assets/js/main.js's lightbox */
.gallery-section { max-width: var(--max); margin: 0 auto; padding: 110px var(--edge); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-grid figure {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--line);
    cursor: pointer;
}
.gallery-grid figure:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) contrast(1.05); transition: transform 0.6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure::after {
    content: "";
    position: absolute;
    right: 14px; bottom: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310131a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8V4h4M16 4h4v4M20 16v4h-4M8 20H4v-4'/%3E%3C/svg%3E") center/16px no-repeat;
    box-shadow: 0 8px 20px -6px rgba(10,14,20,0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
}
.gallery-grid figure:hover::after, .gallery-grid figure:focus-visible::after { opacity: 1; transform: scale(1); }

/* ============ Lightbox (shared, see includes/footer.php for markup) ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 8vw;
    background: rgba(6,10,18,0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { position: relative; max-width: 1100px; width: 100%; text-align: center; }
.lightbox-figure img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 40px 90px -20px rgba(0,0,0,0.6);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox-figure img { opacity: 1; transform: scale(1); }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 2001;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.18); transform: scale(1.06); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 760px) {
    .lightbox { padding: 12vh 6vw; }
    .lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
    .lightbox-prev { left: 0.6rem; width: 40px; height: 40px; }
    .lightbox-next { right: 0.6rem; width: 40px; height: 40px; }
}

/* ============ Timeline — "The Experience" (science.php) ============ */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }
.timeline::before { content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--line); z-index: 0; }
.timeline-step { position: relative; z-index: 1; }
.timeline-num {
    width: 52px; height: 52px; border-radius: 50%; background: var(--canvas-white); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
    font-style: italic; color: var(--brand-blue); margin-bottom: 1.4rem; font-size: 1.1rem;
}
.timeline-step h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.timeline-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* Mechanism diagram (science.php decorative SVG) */
.diagram-wrap { max-width: 560px; margin: 0 auto; padding: 20px var(--edge) 40px; text-align: center; }
.diagram-wrap svg { width: 100%; height: auto; }
.diagram-caption { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }

/* ============ Why (trust) ============ */
.why { padding: 140px var(--edge); background: var(--canvas-alt); }
.why-inner { max-width: var(--max); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card { background: var(--canvas-white); border: 1px solid var(--line); border-radius: 22px; padding: 2.6rem; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(11,61,145,0.25); }
.why-index { font-family: var(--font-display); font-style: italic; color: var(--brand-blue); font-size: 1.1rem; margin-bottom: 1.4rem; display: block; }
.why-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.7rem; }
.why-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============ Editorial quote ============ */
.quote-band { position: relative; background: var(--dark); color: #fff; padding: 160px var(--edge); text-align: center; overflow: hidden; }
.quote-band blockquote {
    position: relative; max-width: 880px; margin: 0 auto; font-family: var(--font-display); font-style: italic;
    font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.4;
}
.quote-band blockquote span { color: var(--brand-cyan); }
.quote-band .attribution {
    position: relative; margin-top: 2.2rem; font-family: var(--font-body); font-style: normal;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-text-soft);
}

/* ============ FAQ accordion (contact.php) ============ */
.faq-section { max-width: 820px; margin: 0 auto; padding: 40px var(--edge) 110px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
    gap: 1.5rem; padding: 1.8rem 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative;
    transition: transform 0.35s var(--ease), background 0.3s;
}
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: var(--ink); transition: background 0.3s; }
.faq-item summary .plus::before { width: 10px; height: 1px; }
.faq-item summary .plus::after { width: 1px; height: 10px; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--ink); }
.faq-item[open] summary .plus::before, .faq-item[open] summary .plus::after { background: #fff; }
.faq-answer { padding: 0 0 1.8rem; color: var(--ink-soft); font-size: 0.98rem; max-width: 680px; }

/* ============ Contact form (contact.php) ============ */
.contact-section { max-width: var(--max); margin: 0 auto; padding: 100px var(--edge) 60px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; }
.form-group { margin-bottom: 1.4rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
    font-family: var(--font-body); font-size: 0.95rem; background: var(--canvas-white);
    transition: border-color 0.3s; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-blue); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 1rem; }

.contact-info-card { background: var(--canvas-alt); border-radius: 26px; padding: 2.8rem; height: fit-content; }
.contact-info-card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 1.8rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.8rem; }
.info-row:last-child { margin-bottom: 0; }
.info-row svg { width: 22px; height: 22px; color: var(--brand-blue); flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.info-row span, .info-row a { color: var(--ink-soft); font-size: 0.94rem; text-decoration: none; }
.info-row a:hover { color: var(--brand-blue); }
.placeholder-note { display: block; font-size: 0.76rem; color: var(--ink-faint); font-style: italic; margin-top: 0.25rem; }

/* ============ CTA ============ */
.cta { background: var(--canvas); text-align: center; padding: 130px var(--edge) 150px; }
.cta h2 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); font-weight: 500; margin-bottom: 1.3rem; }
.cta h2 em { font-style: italic; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta p { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; margin: 0 auto 2.6rem; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ============ Footer ============ */
footer { background: var(--dark); color: var(--dark-text-soft); padding: 80px var(--edge) 30px; }
.footer-inner {
    max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--dark-line);
}
.footer-brand img { height: 30px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; font-size: 0.93rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem; color: #fff; font-weight: 600; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { text-decoration: none; font-size: 0.93rem; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 1.6rem; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ============ Custom cursor (fine pointer only) ============ */
.cursor-dot {
    position: fixed; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-blue);
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    transition: opacity 0.2s, transform 0.15s var(--ease); opacity: 0;
}
@media (hover: hover) and (pointer: fine) { .cursor-dot.active { opacity: 0.7; } }

/* ============ Fine print ============ */
.fine-print { max-width: 900px; margin: 0 auto; padding: 0 var(--edge) 100px; font-size: 0.82rem; color: var(--ink-faint); text-align: center; line-height: 1.7; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
    .chamber-grid, .category-row, .contact-grid { grid-template-columns: 1fr; }
    .category-row.flip .category-media, .category-row.flip .category-copy { order: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
    .stat:nth-child(3) { border-left: none; padding-left: 0; }
    .condition-list, .why-grid, .feature-grid, .gallery-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .timeline::before { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { height: 100svh; align-items: flex-end; }
    /* The mobile hero photography (-m images) is a portrait crop with its
       subject near the top, so on mobile only: pin the image to the top
       (nothing important gets cropped) and push the text block down to
       clear it, rather than sitting centred on top of the subject. */
    .hero-media img { object-position: top; }
    .hero-inner { padding: 24px 0 70px; }
    /* Mobile hero is trimmed right back to a headline and one CTA, sitting
       light against the bottom of the image — the lead paragraph, the
       secondary "How It Works" button and the scroll cue only exist on
       desktop, where there's room to breathe above the fold. */
    .hero-inner .kicker { margin-bottom: 0.9rem; }
    .hero-inner h1 { font-size: 2.5rem; margin-bottom: 1.4rem; }
    .hero-inner p.lead { display: none; }
    .hero-ctas .btn-ghost { display: none; }
    .hero-ctas { margin-bottom: 0; }
    .hero-scroll-cue { display: none; }
    .float-badge.hero-badge { display: none; }
    /* Interior page heroes match the homepage hero treatment on mobile:
       full height, same bottom-anchored minimal text (kicker + headline
       only — no breadcrumb, no lead paragraph). Desktop is untouched. */
    .page-hero { height: 100svh; min-height: 0; }
    .page-hero-media img { object-position: top; }
    .page-hero-inner { padding: 24px 0 70px; }
    .page-hero-inner .breadcrumb { display: none; }
    .page-hero-inner .kicker { margin-bottom: 0.9rem; }
    .page-hero-inner h1 { font-size: 2.5rem; margin-bottom: 0; }
    .page-hero-inner p.lead { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .timeline { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .mobile-menu-links a { font-size: 1.7rem; }
}
