:root {
      /* Warm cream + charcoal + brand teal palette */
      --bg:        #F7F4EE;   /* warm cream page background */
      --surface:   #FFFFFF;   /* cards / panels */
      --surface-2: #F0EBE0;   /* subtle alt surface */
      --ink:       #1A1F2B;   /* primary text */
      --ink-soft:  #4A5160;   /* muted text */
      --ink-faint: #5F6573;   /* labels, captions — darkened for WCAG AA (4.6:1 on cream) */
      --line:      #E4DED1;   /* hairlines */
      --line-soft: #EEE9DD;
      --brand:        #0077A8;   /* deep teal — text & links, passes WCAG AA on cream */
      --brand-ink:    #005577;   /* deeper teal — hover & emphasis */
      --brand-bright: #22AAE1;   /* exact logo teal — large/decorative brand moments */
      --accent:    #C2410C;   /* deep burnt orange (CTA, restrained) */
      --accent-ink:#9A3308;
      --success:   #2D6A4F;

      /* radii */
      --radius-sm:   4px;
      --radius-md:   6px;
      --radius-lg:   8px;
      --radius-pill: 100px;

      /* section spacing */
      --space-section-lg: 96px;
      --space-section-md: 80px;
      --space-section-sm: 64px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    /* Unified focus ring */
    :focus { outline: none; }
    :focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
      border-radius: inherit;
    }
    body {
      margin: 0;
      font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
      background: var(--bg);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
      font-size: 16px;
      line-height: 1.6;
    }
    img { max-width: 100%; display: block; }
    /* Block casual drag-to-save on any image or video site-wide */
    img, video {
      -webkit-user-drag: none;
      -webkit-touch-callout: none;
    }

    .container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
    @media (min-width: 768px) { .container { padding: 0 40px; } }

    /* ── Typography ── */
    .serif    { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
    .mono     { font-family: 'JetBrains Mono', ui-monospace, monospace; }
    .eyebrow  { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
    .h1       { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(38px, 6.4vw, 76px); color: var(--ink); }
    .h1 .accent-word { color: var(--brand-ink); }
    .h2       { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(30px, 4.5vw, 52px); color: var(--ink); margin: 0; }
    .h3       { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; color: var(--ink); margin: 0; }
    .lead     { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
    .small    { font-size: 14px; color: var(--ink-soft); }
    .tiny     { font-size: 12px; color: var(--ink-faint); }
    a { color: inherit; text-decoration: none; }

    /* ── Buttons ── */
    .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; transition: all 0.2s ease; border: 1px solid transparent; cursor: pointer; }
    .btn-primary   { background: var(--ink); color: var(--bg); }
    .btn-primary:hover   { background: #0F141E; transform: translateY(-1px); }
    .btn-accent    { background: var(--accent); color: #fff; }
    .btn-accent:hover    { background: var(--accent-ink); }
    .btn-ghost     { background: transparent; color: var(--ink); border-color: var(--line); }
    .btn-ghost:hover     { border-color: var(--ink); }

    /* ── Nav ── */
    .nav {
      position: sticky; top: 0; z-index: 50;
      background: rgba(247,244,238,0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line-soft);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
    .brand-mark { display: flex; align-items: center; gap: 12px; }
    .brand-mark img { display: block; height: 64px; width: auto; }
    .brand-mark:hover img { opacity: 0.85; transition: opacity 0.15s ease; }
    .nav-links { display: none; gap: 4px; }
    @media (min-width: 1024px) { .nav-links { display: flex; } }
    .nav-link { padding: 10px 14px; font-size: 13px; color: var(--ink-soft); border-radius: var(--radius-sm); transition: all 0.15s ease; }
    .nav-link:hover { color: var(--ink); background: var(--surface-2); }
    .nav-cta { display: none; }
    @media (min-width: 640px) { .nav-cta { display: inline-flex; } }
    .nav-phone { display: none; font-size: 13px; color: var(--ink-soft); margin-right: 16px; }
    @media (min-width: 768px) { .nav-phone { display: inline-flex; align-items: center; gap: 6px; } }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
    @media (min-width: 1024px) { .menu-toggle { display: none; } }
    .mobile-menu { display: none; padding: 8px 0 20px; border-top: 1px solid var(--line-soft); }
    .mobile-menu.is-open { display: block; }
    .mobile-menu a { display: block; padding: 10px 12px; font-size: 14px; color: var(--ink-soft); border-radius: var(--radius-sm); }
    .mobile-menu a:hover { background: var(--surface-2); color: var(--ink); }

    /* ── Hero ── */
    .hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
    .hero-grid { display: grid; gap: 56px; align-items: center; }
    @media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; padding-bottom: 32px; } }
    .hero-sub { margin-top: 28px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 56ch; }
    .hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
    .hero-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 480px; }
    @media (min-width: 640px) { .hero-meta { grid-template-columns: repeat(4, 1fr); } }
    .hero-meta-item .hm-num { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
    .hero-meta-item .hm-num .hm-unit { font-size: 13px; color: var(--ink-faint); font-family: 'Inter', sans-serif; font-weight: 500; margin-left: 2px; }
    .hero-meta-item .hm-label { margin-top: 8px; font-size: 12px; color: var(--ink-faint); }

    /* Before/After comparison */
    .compare-frame { background: var(--surface); padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(26,31,43,0.12), 0 2px 4px rgba(26,31,43,0.05); }
    .compare-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
    .compare-title { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 600; }
    .compare-hint { font-size: 11px; color: var(--ink-faint); padding: 4px 10px; background: var(--surface-2); border-radius: var(--radius-pill); }
    .compare-stage { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; cursor: col-resize; user-select: none; touch-action: none; }
    .compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left 55%; pointer-events: none; }
    .compare-after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 50%); }
    .compare-label { position: absolute; top: 16px; padding: 5px 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; border-radius: var(--radius-pill); }
    .compare-label.before { left: 16px; background: rgba(26,31,43,0.7); color: #fff; backdrop-filter: blur(8px); }
    .compare-label.after  { right: 16px; background: rgba(0,119,168,0.92); color: #fff; backdrop-filter: blur(8px); }
    .compare-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 50%; transform: translateX(-50%); box-shadow: 0 0 24px rgba(0,0,0,0.3); z-index: 10; }
    .compare-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    .compare-handle::after  { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--ink); font-size: 14px; font-weight: 600; z-index: 1; }

    /* Quiet trust strip below hero */
    .trust-strip { padding: 28px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .trust-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: center; }
    .trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; }
    .trust-item svg { color: var(--brand); flex-shrink: 0; }

    /* ── Generic sections ── */
    section { padding: 96px 0; }
    @media (max-width: 640px) { section { padding: 64px 0; } }
    .section-head { max-width: 720px; margin-bottom: 56px; }
    .section-head .eyebrow { display: inline-block; margin-bottom: 16px; }
    .section-head .h2 + p { margin-top: 20px; font-size: 17px; color: var(--ink-soft); max-width: 56ch; }

    /* ── Services ── */
    #services { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .services-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
    @media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
    .service-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
    .service-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 12px 32px -12px rgba(26,31,43,0.15); }
    .service-photo { aspect-ratio: 4/3; background: var(--surface-2); position: relative; overflow: hidden; }
    .service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
    .service-card:hover .service-photo img { transform: scale(1.04); }
    .service-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(255,255,255,0.95); color: var(--ink); border-radius: var(--radius-pill); backdrop-filter: blur(8px); }
    .service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
    .service-body h3 { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.015em; margin: 0 0 10px; }
    .service-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; flex: 1; }
    .service-meta { font-size: 12px; color: var(--ink-faint); padding-top: 14px; border-top: 1px solid var(--line-soft); }

    
    /* ── Home page system teaser (single column, centered) ── */
    .system-teaser { max-width: 640px; margin: 0 auto; text-align: center; }
    .system-teaser .btn { margin-top: 24px; }


    /* ── Materials & Suppliers strip ── */
    #suppliers { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .suppliers-head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
    .suppliers-head .eyebrow { color: var(--ink-faint); }
    .suppliers-head p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }
    .suppliers-row {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
      gap: 32px 56px;
      max-width: 1080px; margin: 0 auto;
    }
    .supplier-logo {
      height: 44px; max-width: 180px;
      object-fit: contain;
      opacity: 0.85;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .supplier-logo:hover { opacity: 1; transform: translateY(-1px); }
    /* Sika's wordmark renders compact — bump it specifically so it lines up visually */
    .supplier-logo[alt="Sika"] { height: 62px; max-width: 220px; }
    /* EpiMax: original orange icon + black wordmark baked into the PNG, no filter */
    .supplier-logo[alt="EpiMax"] { filter: none; }
    .supplier-logo[alt="EpiMax"]:hover { filter: none; opacity: 1; }
    .supplier-placeholder {
      display: flex; align-items: center; justify-content: center;
      height: 40px; min-width: 100px; padding: 8px 18px;
      border: 1px dashed var(--line); border-radius: 4px;
      font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
      color: var(--ink-faint); letter-spacing: 0.02em;
    }
    @media (max-width: 640px) {
      .suppliers-row { gap: 24px 32px; }
      .supplier-logo, .supplier-placeholder { height: 32px; }
    }

    /* ── 4-coat system (Tesla/Apple-style centre with annotated callouts) ── */
    #system { background: var(--bg); padding: 72px 0 80px; overflow: hidden; }

    .system-stage {
      position: relative;
      max-width: 1180px;
      margin: 0 auto;
    }
    .stage-svg {
      width: 100%;
      height: auto;
      display: block;
    }

    /* SVG layer hover */
    .svg-layer { cursor: pointer; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); transform-origin: center; }
    .svg-layer:hover { transform: translateY(-2px); }
    .svg-layer.is-active { transform: translateY(-3px); }
    .svg-layer[data-layer="substrate"] { cursor: default; }
    .svg-layer[data-layer="substrate"]:hover { transform: none; }

    /* SVG numbered circles */
    .num-circle { cursor: pointer; }
    .num-circle circle { transition: fill 0.2s ease, stroke-width 0.2s ease; }
    .num-circle text { transition: fill 0.2s ease; }
    .num-circle:hover circle, .num-circle.is-active circle {
      fill: var(--brand);
      stroke-width: 2;
    }
    .num-circle:hover text, .num-circle.is-active text {
      fill: #fff;
    }
    .leader-lines line { transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease; }
    .num-circle:hover ~ .leader-lines line { opacity: 0.4; }

    /* HTML callouts absolutely positioned to align with SVG circles */
    .stage-callout {
      position: absolute;
      width: 17%;
      min-width: 160px;
      max-width: 195px;
      pointer-events: auto;
      cursor: pointer;
      transition: opacity 0.25s ease;
    }
    .stage-callout h4 {
      font-family: 'Inter', sans-serif;
      font-size: 16px; font-weight: 600;
      color: var(--ink);
      letter-spacing: -0.01em;
      margin: 0 0 6px;
    }
    .stage-callout p {
      font-size: 13.5px;
      color: var(--ink-soft);
      line-height: 1.55;
      margin: 0;
    }

    /* Positioning: viewBox is 1200x700, so percentages map to viewBox coords */
    /*  TC circle @ (200,220)  EP circle @ (200,500)   →  16.67% from left, 31.43% / 71.43% from top */
    /*  FL circle @ (1000,220) PR circle @ (1000,500)  →  83.33% from left */
    .tc-callout { top: 20.45%; right: 87%; text-align: right; transform: translateY(-50%); }
    .fl-callout { top: 20.45%; left:  87%; text-align: left;  transform: translateY(-50%); }
    .ep-callout { top: 84.09%; right: 87%; text-align: right; transform: translateY(-50%); }
    .pr-callout { top: 84.09%; left:  87%; text-align: left;  transform: translateY(-50%); }

    .system-stage:hover .stage-callout:not(:hover):not(.is-active) { opacity: 0.5; }
    .system-stage:hover .stage-callout:hover { opacity: 1; }

    /* Substrate label below the diagram */
    .stage-substrate-label {
      text-align: center;
      margin: 16px auto 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-faint);
    }
    .stage-substrate-label::before {
      content: ''; display: inline-block; width: 60px; height: 1px;
      background: var(--ink-faint); opacity: 0.4;
      vertical-align: middle; margin-right: 12px;
    }
    .stage-substrate-label::after {
      content: ''; display: inline-block; width: 60px; height: 1px;
      background: var(--ink-faint); opacity: 0.4;
      vertical-align: middle; margin-left: 12px;
    }

    /* Mobile: hide SVG annotations, stack callouts as cards below */
    @media (max-width: 1024px) {
      .stage-svg .leader-lines, .stage-svg .number-circles { display: none; }
      .system-stage:hover .stage-callout:not(:hover) { opacity: 1; }
      .stage-callout {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        text-align: left !important;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 18px 20px 18px 64px;
        margin-bottom: 12px;
        cursor: default;
      }
      .stage-callout::before {
        content: attr(data-num);
        position: absolute;
        left: 18px; top: 18px;
        width: 32px; height: 32px;
        border-radius: 50%;
        background: var(--surface-2);
        border: 1.5px solid var(--brand);
        color: var(--brand);
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px; font-weight: 600;
        display: flex; align-items: center; justify-content: center;
      }
    }

        /* ── Gallery ── */
    #gallery { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
    @media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
    .gallery-card { aspect-ratio: 4/3; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; }
    .gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
    .gallery-card:hover img { transform: scale(1.03); }
    .gallery-overlay { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; }
    .gallery-overlay .gt { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; }
    .gallery-overlay .gs { font-size: 11px; opacity: 0.75; margin-top: 2px; }

    /* ── The EFS Promise ── */
    #promise { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .promise-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
    @media (min-width: 640px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
    .promise-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 26px; transition: all 0.2s ease; }
    .promise-card:hover { border-color: var(--ink); transform: translateY(-2px); }
    .promise-icon {
      width: 44px; height: 44px;
      border-radius: 50%;
      background: var(--surface);
      border: 1.5px solid var(--brand);
      color: var(--brand);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 18px;
      transition: all 0.2s ease;
    }
    .promise-card:hover .promise-icon { background: var(--brand); color: #fff; }
    .promise-card h4 {
      font-family: 'Inter', sans-serif;
      font-weight: 600; font-size: 18px;
      letter-spacing: -0.01em;
      color: var(--ink);
      margin: 0 0 10px;
    }
    .promise-card p {
      font-size: 14.5px;
      color: var(--ink-soft);
      line-height: 1.6;
      margin: 0;
    }

        /* ── Reviews ── */
    #reviews { background: var(--bg); }
    .reviews-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: end; justify-content: space-between; margin-bottom: 56px; }
    .stars { color: #D97706; font-size: 16px; letter-spacing: 2px; }
    .review-rating { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
    .review-rating strong { color: var(--ink); font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 18px; font-weight: 600; }
    .reviews-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
    @media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
    .review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 32px; }
    .review-card .stars { font-size: 13px; letter-spacing: 1.5px; margin-bottom: 16px; }
    .review-quote { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 18px; font-weight: 400; line-height: 1.55; letter-spacing: -0.005em; color: var(--ink); margin: 0 0 24px; }
    .review-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
    .review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--brand); }
    .review-author-meta { font-size: 13px; }
    .review-author-meta strong { display: block; color: var(--ink); font-weight: 600; }
    .review-author-meta span { color: var(--ink-faint); font-size: 12px; }

    /* ── FAQ + Quote combined ── */
    #engage { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .engage-grid { display: grid; gap: 64px; align-items: start; }
    @media (min-width: 1024px) { .engage-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

    details.faq { border-bottom: 1px solid var(--line); }
    details.faq[open] { padding-bottom: 8px; }
    details.faq summary { list-style: none; padding: 22px 0; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
    details.faq summary::-webkit-details-marker { display: none; }
    details.faq summary::after { content: '+'; font-family: 'Inter', sans-serif; font-size: 18px; color: var(--ink-faint); flex-shrink: 0; transition: transform 0.2s ease; }
    details.faq[open] summary::after { content: '−'; color: var(--brand); }
    details.faq .ans { padding: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }

    /* Quote form */
    .quote-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
    @media (min-width: 768px) { .quote-card { padding: 40px; } }
    .quote-progress { width: 100%; height: 2px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 32px; }
    .quote-progress > div { height: 100%; background: var(--brand); transition: width 0.3s ease; }
    .step-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--brand); margin-bottom: 10px; font-weight: 600; letter-spacing: 0.04em; }
    .step-title { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 24px; }
    .wizard-step { display: none; }
    .wizard-step.is-active { display: block; }
    .opt-list { display: flex; flex-direction: column; gap: 8px; }
    .opt {
      display: flex; align-items: center; gap: 14px;
      padding: 16px 18px;
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
      cursor: pointer; text-align: left; font-family: inherit;
      transition: all 0.15s ease;
    }
    .opt:hover { border-color: var(--ink); }
    .opt.is-selected { border-color: var(--brand); background: rgba(0,119,168,0.04); }
    .opt-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
    .opt.is-selected .opt-radio { border-color: var(--brand); }
    .opt-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform 0.15s ease; }
    .opt.is-selected .opt-radio-dot { transform: scale(1); }
    .opt-text strong { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
    .opt-text span { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

    .field { margin-bottom: 14px; }
    .field label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
    .field input, .field textarea {
      width: 100%; padding: 12px 14px; font: inherit; font-size: 14px;
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
      color: var(--ink); transition: border-color 0.15s ease;
    }
    .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
    .field textarea { resize: vertical; min-height: 80px; }
    .step-nav { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; }
    .step-hint { font-size: 12px; color: var(--ink-faint); }

    .wizard-done { text-align: center; padding: 16px 0; }
    .wizard-done-check { width: 56px; height: 56px; margin: 0 auto 20px; background: rgba(45,106,79,0.1); color: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }

    /* ── Service Areas ── */
    #areas { background: var(--bg); }
    .areas-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
    @media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
    .area-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; transition: all 0.2s ease; }
    .area-card:hover { border-color: var(--ink); transform: translateY(-1px); }
    .area-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
    .area-tag { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; letter-spacing: 0.03em; flex-shrink: 0; }
    .area-card h3 { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin: 0; }
    .area-card p  { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; }
    .area-card ul { list-style: none; padding: 0; margin: 0 0 16px; }
    .area-card li { font-size: 13px; color: var(--ink-soft); padding: 4px 0; padding-left: 18px; position: relative; }
    .area-card li::before { content: '·'; position: absolute; left: 0; color: var(--brand); font-weight: 600; font-size: 20px; line-height: 0.5; top: 12px; }
    .area-link { font-size: 13px; font-weight: 600; color: var(--brand); }
    .area-link:hover { color: var(--accent); }

    .chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; max-width: 920px; margin-left: auto; margin-right: auto; }
    .chip { padding: 7px 14px; font-size: 12px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); transition: all 0.15s ease; }
    .chip:hover { border-color: var(--ink); color: var(--ink); }


    /* ── Floor Visualiser ── */
    .visualiser-stage {
      display: grid;
      gap: 32px;
      grid-template-columns: 1fr;
      max-width: 1100px;
      margin: 0 auto;
    }
    @media (min-width: 900px) {
      .visualiser-stage { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
    }
    .vis-preview {
      position: relative;
      aspect-ratio: 4 / 3;
      background: var(--surface-2);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 24px 56px -24px rgba(13,27,42,0.25);
    }
    .vis-preview-floor {
      position: absolute; inset: 0;
      background-image: url('/flake-texture.webp');
      background-size: 120px 120px;
      background-repeat: repeat;
      filter: none;
      transition: filter 0.4s ease;
    }
    .vis-preview-shadow {
      position: absolute; left: 0; right: 0; bottom: 0;
      height: 40%;
      background: linear-gradient(to top, rgba(13,27,42,0.35), transparent);
      pointer-events: none;
    }
    .vis-preview-label {
      position: absolute; top: 16px; left: 16px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.95);
      background: rgba(13,27,42,0.55);
      padding: 5px 10px; border-radius: 100px;
      backdrop-filter: blur(8px);
    }
    .vis-controls { padding: 8px 0; }
    .vis-swatches {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 28px;
    }
    @media (min-width: 480px) { .vis-swatches { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
    .vis-swatch {
      display: flex; flex-direction: column; gap: 8px;
      background: transparent; border: 1.5px solid var(--line);
      border-radius: 8px; padding: 8px;
      cursor: pointer; transition: all 0.15s ease;
      font: inherit; text-align: left;
    }
    .vis-swatch:hover { border-color: var(--ink); transform: translateY(-1px); }
    .vis-swatch.is-active { border-color: var(--brand); background: rgba(0,119,168,0.04); }
    .vis-sw-thumb {
      display: block;
      aspect-ratio: 1 / 1;
      border-radius: 5px;
      background-size: 60px 60px;
      background-repeat: repeat;
    }
    .vis-sw-name {
      font-size: 12px; font-weight: 600;
      color: var(--ink);
      text-align: center;
      letter-spacing: -0.005em;
    }
    .vis-current {
      padding: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
    }



    /* ── Visualiser v2 — photo upload + auto-detect + manual corner-tap ── */
    .vis-uploader {
      display: flex; align-items: center; justify-content: center;
      max-width: 720px; margin: 0 auto;
    }
    .vis-uploader[hidden] { display: none; }
    .vis-uploader-card {
      background: var(--surface);
      border: 2px dashed var(--line);
      border-radius: 16px;
      padding: 48px 32px;
      text-align: center;
      width: 100%;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    .vis-uploader-card.is-drag { border-color: var(--brand); background: rgba(0,119,168,0.04); }
    .vis-uploader-icon {
      width: 64px; height: 64px; margin: 0 auto 16px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,119,168,0.08);
      border-radius: 50%;
      color: var(--brand);
    }
    .vis-uploader-card h3 {
      font-family: 'Inter', sans-serif;
      font-size: 22px; font-weight: 700;
      color: var(--ink);
      margin: 0 0 8px;
      letter-spacing: -0.01em;
    }
    .vis-uploader-card p {
      font-size: 14.5px; line-height: 1.6;
      color: var(--ink-soft);
      margin: 0 0 24px;
      max-width: 42ch; margin-left: auto; margin-right: auto;
    }
    .vis-uploader-meta {
      font-size: 12px !important;
      color: var(--ink-faint) !important;
      margin: 20px 0 0 !important;
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: 0.02em;
    }
    .vis-uploader-card label.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }

    .vis-stage {
      display: grid;
      gap: 24px 32px;
      grid-template-columns: 1fr;
      max-width: 1200px;
      margin: 0 auto;
    }
    .vis-stage[hidden] { display: none; }
    @media (min-width: 960px) {
      .vis-stage {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
        gap: 40px;
        align-items: start;
      }
    }

    /* Canvas + banner share a single visual unit (banner flush against canvas) */
    .vis-canvas-col {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    /* When the banner is visible, square off the canvas-wrap's bottom corners
       so the two elements read as one continuous card. */
    .vis-canvas-col:has(.vis-review-banner:not([hidden])) .vis-canvas-wrap {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    /* Review banner — flush against the bottom of the canvas, no gap, square top corners */
    .vis-review-banner {
      display: flex; align-items: center; gap: 18px;
      flex-wrap: wrap;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top: none;
      border-left: 4px solid var(--brand);
      border-radius: 0 0 12px 12px;
      padding: 14px 18px;
      margin: 0;
      box-shadow: 0 6px 18px -10px rgba(13,27,42,0.18);
    }
    .vis-review-banner[hidden] { display: none; }
    .vis-review-banner-text { flex: 1 1 240px; min-width: 0; }
    .vis-review-banner-text .vis-review-eyebrow {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.12em;
      color: var(--brand);
      margin: 0 0 2px;
      font-weight: 600;
    }
    .vis-review-banner-text h4 {
      font-family: 'Inter', sans-serif;
      font-size: 16px; font-weight: 700;
      color: var(--ink);
      margin: 0;
      letter-spacing: -0.005em;
    }
    .vis-review-banner .vis-review-actions {
      display: flex; gap: 8px; flex-wrap: wrap;
      flex-shrink: 0;
    }
    .vis-review-banner .vis-review-actions .btn { padding: 8px 14px; font-size: 13.5px; }

    /* Toolbar — floating top-right inside canvas-wrap */
    .vis-toolbar {
      position: absolute;
      top: 12px; right: 12px;
      z-index: 6;
      display: flex; gap: 6px;
      pointer-events: auto;
    }
    .vis-toolbar[hidden] { display: none; }
    .vis-tool-btn {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 11px;
      background: rgba(13, 27, 42, 0.82);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 100px;
      font-family: 'Inter', sans-serif;
      font-size: 12px; font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: background 0.15s ease, transform 0.15s ease;
    }
    .vis-tool-btn:hover { background: rgba(13, 27, 42, 0.95); transform: translateY(-1px); }
    .vis-tool-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
    .vis-tool-btn[hidden] { display: none; }
    /* Eraser active state — red glow so the customer knows tap-to-erase is engaged */
    .vis-tool-eraser.is-active {
      background: #B23A2B;
      border-color: rgba(255, 100, 100, 0.5);
      box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.25);
    }
    .vis-tool-eraser.is-active:hover { background: #8A2D21; }

    /* Brush active state — bright teal */
    .vis-tool-brush.is-active {
      background: var(--brand);
      border-color: var(--brand-bright);
      box-shadow: 0 0 0 3px rgba(34, 170, 225, 0.25);
    }
    .vis-tool-brush.is-active:hover { background: var(--brand-ink); }

    /* Bottom instruction pill — minimal, doesn't block much of the photo */
    .vis-manual-pill-wrap {
      position: absolute;
      bottom: 14px; left: 50%;
      transform: translateX(-50%);
      z-index: 5;
      pointer-events: none;
      max-width: calc(100% - 24px);
    }
    .vis-manual-pill-wrap[hidden] { display: none; }

    .vis-canvas-wrap {
      position: relative;
      aspect-ratio: 4 / 3;
      background: #1A1F2B;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 24px 60px -24px rgba(13,27,42,0.32);
    }
    .vis-canvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      display: block;
    }
    .vis-canvas-hidden { visibility: hidden; }
    .vis-canvas-overlay { pointer-events: auto; cursor: crosshair; }

    .vis-review-overlay,
    .vis-manual-overlay {
      position: absolute; inset: 0;
      display: flex; align-items: flex-end; justify-content: center;
      padding: 16px;
      pointer-events: none;
      z-index: 5;
    }
    .vis-review-overlay[hidden],
    .vis-manual-overlay[hidden] { display: none; }
    .vis-review-card {
      pointer-events: auto;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 12px;
      padding: 18px 20px;
      max-width: 420px;
      box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3);
    }
    .vis-review-eyebrow {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.12em;
      color: var(--brand);
      margin: 0 0 6px;
      font-weight: 600;
    }
    .vis-review-card h4 {
      font-family: 'Inter', sans-serif;
      font-size: 16.5px; font-weight: 700;
      color: var(--ink);
      margin: 0 0 6px;
    }
    .vis-review-card p {
      font-size: 13.5px; line-height: 1.55;
      color: var(--ink-soft);
      margin: 0 0 14px;
    }
    .vis-review-actions {
      display: flex; gap: 8px; flex-wrap: wrap;
    }
    .vis-review-actions .btn { padding: 8px 14px; font-size: 13.5px; }

    .vis-manual-pill {
      pointer-events: none;
      background: rgba(13,27,42,0.88);
      color: #fff;
      padding: 10px 16px;
      border-radius: 100px;
      font-family: 'Inter', sans-serif;
      font-size: 14px; font-weight: 600;
      letter-spacing: -0.005em;
      display: inline-flex; align-items: center; gap: 12px;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: 0 8px 22px -8px rgba(0,0,0,0.4);
    }
    .vis-manual-count {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: rgba(255,255,255,0.7);
      padding: 3px 8px;
      background: rgba(255,255,255,0.08);
      border-radius: 100px;
    }

    .vis-current-eyebrow {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.12em;
      color: var(--ink-faint);
      display: block; margin-bottom: 4px;
    }
    .vis-current h4 {
      font-family: 'Inter', sans-serif;
      font-size: 22px; font-weight: 700;
      color: var(--ink);
      margin: 0 0 8px;
      letter-spacing: -0.01em;
    }
    .vis-current p {
      font-size: 14px; line-height: 1.55;
      color: var(--ink-soft);
      margin: 0;
    }

    .vis-actions {
      display: flex; flex-direction: column; gap: 10px;
      margin: 22px 0 16px;
    }
    .vis-actions .btn { justify-content: center; }
    .btn-link {
      background: transparent;
      border: none;
      color: var(--brand);
      font-family: 'Inter', sans-serif;
      font-size: 13.5px; font-weight: 500;
      text-decoration: underline;
      text-underline-offset: 3px;
      cursor: pointer;
      padding: 6px;
      align-self: center;
    }
    .btn-link:hover { color: var(--brand-ink); }
    .vis-disclaimer {
      font-size: 12px; line-height: 1.55;
      color: var(--ink-faint);
      margin: 0;
    }

    /* ── Lightbox (gallery + service-card image enlarge) ── */
    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(13, 27, 42, 0.92);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      overflow: auto;
    }
    .lightbox.is-open {
      display: flex;
      animation: lightbox-fade-in 0.2s ease-out;
    }
    @keyframes lightbox-fade-in {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    .lightbox-stage {
      position: relative;
      max-width: min(1200px, 92vw);
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }
    .lightbox-close {
      position: absolute;
      top: -52px;
      right: 0;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 50%;
      width: 40px; height: 40px;
      font-size: 24px;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding: 0;
      transition: background 0.15s ease, transform 0.15s ease;
      z-index: 2;
    }
    .lightbox-close:hover {
      background: rgba(255, 255, 255, 0.18);
      transform: scale(1.05);
    }
    .lightbox-img-wrap {
      position: relative;
      max-width: 100%;
      max-height: 78vh;
      overflow: hidden;
      border-radius: 6px;
      box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.5);
      -webkit-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
    }
    .lightbox-img-wrap img {
      display: block;
      max-width: 100%;
      max-height: 78vh;
      width: auto;
      height: auto;
      pointer-events: none;
      -webkit-user-drag: none;
    }
    .lightbox-watermark {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(4, 1fr);
      pointer-events: none;
      opacity: 0.28;
      font-family: 'Inter', sans-serif;
      font-size: clamp(15px, 2.4vw, 24px);
      font-weight: 700;
      letter-spacing: 0.06em;
      color: #fff;
      text-transform: uppercase;
    }
    .lightbox-watermark span {
      display: flex;
      align-items: center;
      justify-content: center;
      transform: rotate(-22deg);
      white-space: nowrap;
    }
    .lightbox-caption {
      text-align: center;
      color: rgba(255, 255, 255, 0.95);
      max-width: 800px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 0 12px;
    }
    .lightbox-caption strong {
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      font-weight: 600;
      letter-spacing: -0.005em;
    }
    .lightbox-caption span {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.7);
      line-height: 1.5;
    }
    @media (max-width: 640px) {
      .lightbox { padding: 16px; }
      .lightbox-close { top: -44px; width: 36px; height: 36px; font-size: 20px; }
      .lightbox-img-wrap, .lightbox-img-wrap img { max-height: 70vh; }
    }

    /* ── Animation fullscreen button + iOS fallback ── */
    .anim-fs-btn {
      position: absolute;
      bottom: 14px; right: 14px;
      z-index: 2;
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 14px;
      background: rgba(13, 27, 42, 0.78);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 100px;
      font-family: 'Inter', sans-serif;
      font-size: 12px; font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .anim-fs-btn:hover { background: rgba(13, 27, 42, 0.92); transform: translateY(-1px); }
    .anim-fs-btn .anim-fs-icon-close { display: none; }
    .system-anim-wrap.is-fullscreen .anim-fs-btn .anim-fs-icon-open { display: none; }
    .system-anim-wrap.is-fullscreen .anim-fs-btn .anim-fs-icon-close { display: inline-block; }
    .system-anim-wrap.is-fullscreen .anim-fs-btn .anim-fs-label::before { content: "Exit "; }
    /* Native fullscreen — adjust button positioning if browser allows */
    .system-anim-wrap:fullscreen { background: #0d1b2a; display: block; aspect-ratio: auto; max-width: none; border-radius: 0; }
    .system-anim-wrap:fullscreen iframe,
    .system-anim-wrap:fullscreen video { width: 100vw; height: 100vh; object-fit: contain; background: #0d1b2a; }
    .system-anim-wrap:-webkit-full-screen { background: #0d1b2a; display: block; aspect-ratio: auto; max-width: none; border-radius: 0; }
    .system-anim-wrap:-webkit-full-screen iframe,
    .system-anim-wrap:-webkit-full-screen video { width: 100vw; height: 100vh; object-fit: contain; background: #0d1b2a; }
    /* CSS-only fallback (iOS Safari) — when JS adds .is-fullscreen.
       Mimics YouTube-on-iPhone fullscreen: covers screen, auto-rotates to
       landscape on portrait phones, hides everything else. */
    .system-anim-wrap.is-fullscreen {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      /* dvh = dynamic viewport height — accounts for iOS Safari's collapsing URL bar */
      height: 100dvh;
      max-width: none;
      margin: 0;
      aspect-ratio: auto;
      border-radius: 0;
      z-index: 9999;
      background: #0d1b2a;
      box-shadow: none;
    }
    .system-anim-wrap.is-fullscreen iframe,
    .system-anim-wrap.is-fullscreen video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #0d1b2a;
    }
    /* When fullscreen on a portrait-orientation phone, rotate to landscape — this
       is what YouTube does on iPhone Safari to fill the screen properly. */
    @media (orientation: portrait) and (max-width: 900px) {
      .system-anim-wrap.is-fullscreen iframe,
      .system-anim-wrap.is-fullscreen video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vh;
        height: 100vw;
        object-fit: contain;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
      }
    }
    /* Bigger, easier-to-tap exit button in fullscreen mode */
    .system-anim-wrap.is-fullscreen .anim-fs-btn {
      padding: 12px 18px;
      font-size: 14px;
      bottom: max(20px, env(safe-area-inset-bottom, 20px));
      right: max(20px, env(safe-area-inset-right, 20px));
      background: rgba(13, 27, 42, 0.92);
      z-index: 10000;
    }
    /* On portrait phones where the iframe is rotated, also rotate the button so it
       reads upright relative to the rotated content */
    @media (orientation: portrait) and (max-width: 900px) {
      .system-anim-wrap.is-fullscreen .anim-fs-btn {
        bottom: auto;
        right: auto;
        top: max(20px, env(safe-area-inset-top, 20px));
        left: max(20px, env(safe-area-inset-left, 20px));
        transform: rotate(90deg);
        transform-origin: top left;
      }
    }
    body.has-anim-fullscreen {
      overflow: hidden;
      /* Prevent iOS rubber-band scroll bleeding through */
      position: fixed;
      width: 100%;
    }
    @media (max-width: 640px) {
      .anim-fs-btn { font-size: 11px; padding: 7px 12px; bottom: 10px; right: 10px; }
      .anim-fs-btn .anim-fs-label { display: none; }
    }

    /* ── 4-coat animation wrapper (native <video> for iOS Safari native fullscreen) ── */
    .system-anim-wrap {
      position: relative;
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      aspect-ratio: 1440 / 800;
      background: #f4ecdf;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 28px 64px -24px rgba(13,27,42,0.32), 0 2px 6px rgba(13,27,42,0.06);
    }
    .system-anim-wrap video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      background: #f4ecdf;
    }
    @media (max-width: 640px) {
      .system-anim-wrap { border-radius: 10px; }
    }

    /* ── System layer grid (the numbered step descriptions below the diagram) ── */
    .system-layer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      margin: 40px auto 0;
      max-width: 1180px;
    }
    @media (min-width: 760px) {
      .system-layer-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        margin-top: 56px;
      }
    }
    .system-layer {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 22px 22px 24px;
      transition: border-color 0.15s ease, transform 0.15s ease;
    }
    .system-layer:hover { border-color: var(--brand); }
    .system-layer.is-substrate { background: var(--surface-2); }
    .system-layer h3 {
      font-family: 'Inter', sans-serif;
      font-size: 17.5px;
      font-weight: 700;
      color: var(--ink);
      margin: 14px 0 8px;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }
    .system-layer p {
      font-size: 15px;
      line-height: 1.6;
      color: var(--ink-soft);
      margin: 0;
    }
    /* Step number — circled badge */
    .system-layer-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--brand);
      color: #fff;
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.01em;
      box-shadow: 0 4px 10px -3px rgba(0, 119, 168, 0.45);
    }
    .system-layer.is-substrate .system-layer-num {
      background: transparent;
      color: var(--ink-faint);
      border: 1.5px dashed var(--line);
      box-shadow: none;
      font-size: 18px;
    }

    /* ── Footer (was missing — white text on undefined background = invisible) ── */
    footer {
      background: var(--ink);
      color: #fff;
      padding: 56px 0 32px;
      margin-top: 64px;
    }
    .footer-brand img {
      display: block;
      height: 46px;
      width: auto;
      max-width: 160px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 36px;
    }
    @media (min-width: 720px) {
      .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 48px;
      }
    }
    footer h4 {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.95);
      margin: 0 0 14px;
    }
    footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    footer ul li {
      margin-bottom: 8px;
      font-size: 14px;
      line-height: 1.5;
    }
    footer ul li a {
      color: rgba(255, 255, 255, 0.65);
      transition: color 0.15s ease;
    }
    footer ul li a:hover { color: #fff; }
    .footer-bottom {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 40px;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 12.5px;
      color: rgba(255, 255, 255, 0.5);
    }
    .footer-bottom a {
      color: rgba(255, 255, 255, 0.7);
      transition: color 0.15s ease;
    }
    .footer-bottom a:hover { color: #fff; }
    @media (min-width: 640px) {
      .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }
