/* Josie Makes It Shine. Ladiga Studios, September 2026.
   Naming: BEM-ish, block__element--modifier. Mobile first; min-width only.
   Cascade: @layer reset, tokens, base, layout, components, utilities. */

@layer reset, tokens, base, layout, components, utilities;

/* ------------------------------------------------------------ tokens */
@layer tokens {
  :root {
    --pink:      #E93E9C;   /* wordmark, sparkles, decorative pink            */
    --pink-deep: #D2287F;   /* button fills: 4.8:1 with white                  */
    --pink-ink:  #C41E7A;   /* pink text on white: 5.5:1                        */
    --aqua:      #5CD6F2;   /* cold counterpoint. Decorative only, never text  */
    --plum:      #4A1A52;   /* all text                                         */
    --plum-soft: #6B3A73;   /* secondary text on light grounds                  */
    --ribbon:    #F6C1DE;
    --lavender:  #C7A4E6;
    --white:     #FFFFFF;

    --font-display: "Kaushan Script", "Brush Script MT", cursive;
    --font-body: "Fraunces", "Fraunces Fallback", Georgia, serif;

    --r-pill: 999px;
    --r-surface: 24px;
    --r-photo: 12px;

    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
    --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

    --gutter: clamp(20px, 5vw, 96px);
    --page: 1280px;
    --inset: max(var(--gutter), calc((100% - var(--page)) / 2));
    --measure: 62ch;

    --ease-out: cubic-bezier(.22,.61,.36,1);
    --ease-soft: cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --t-micro: 120ms;
    --t-std: 260ms;
    --t-open: 200ms;
    --t-close: 150ms;

    --header-h: 68px;
    --callbar-h: 60px;
    --nav-break: 900px;
  }
}

/* -------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
  body { margin: 0; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  h1, h2, h3, p, ul, ol, dl, figure, fieldset { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  fieldset { padding: 0; border: 0; min-width: 0; }
  legend { padding: 0; }
  button, input { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  summary { cursor: pointer; }
}

/* --------------------------------------------------------------- base */
@layer base {
  @font-face {
    font-family: "Kaushan Script";
    src: url("/fonts/kaushan-script.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: "Fraunces";
    src: url("/fonts/fraunces.woff2") format("woff2");
    font-weight: 400 700; font-style: normal; font-display: swap;
  }
  /* Metric-matched fallback so the swap does not reflow. Fraunces sits
     wide; Georgia adjusted to its average width. */
  @font-face {
    font-family: "Fraunces Fallback";
    src: local("Georgia"), local("Times New Roman");
    size-adjust: 104%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%;
  }

  html {
    background: var(--lavender);
    scroll-behavior: smooth;
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--lavender);
    color: var(--plum);
    font-family: var(--font-body);
    font-variation-settings: "opsz" 14;
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  body.callbar-on { padding-block-end: calc(var(--callbar-h) + env(safe-area-inset-bottom)); }
  @media (min-width: 900px) { body { font-size: 18px; } body.callbar-on { padding-block-end: 0; } }

  h1, h2, h3 { font-weight: 400; line-height: 1.05; text-wrap: balance; }
  p { text-wrap: pretty; }
  a { text-decoration-thickness: .08em; text-underline-offset: .14em; }
  @media (hover: hover) and (pointer: fine) {
    a:hover { text-decoration-color: var(--aqua); }
  }

  :focus-visible {
    outline: 3px solid var(--plum);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline-offset var(--t-micro) var(--ease-out);
  }
  [id] { scroll-margin-top: calc(var(--header-h) + 12px); }

  html.nav-open { overflow: hidden; }
  input { font-size: 16px; }  /* iOS zoom guard */
}

/* ------------------------------------------------------------- layout */
@layer layout {
  .skip {
    position: absolute; left: 12px; top: -60px; z-index: 30;
    background: var(--plum); color: var(--white);
    padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none;
  }
  .skip:focus { top: 12px; }

  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  section { position: relative; }

  /* Header */
  .site-header {
    position: sticky; top: 0; z-index: 10;
    min-height: var(--header-h);
    padding-inline: var(--inset);
    padding-block-start: env(safe-area-inset-top);
    display: flex; align-items: center; gap: var(--s-2);
    background: var(--white);
  }
  .brand { text-decoration: none; margin-inline-end: auto; display: grid; line-height: 1; }
  .brand__name {
    font-family: var(--font-display);
    font-size: clamp(18px, 6vw, 28px);
    white-space: nowrap;
    color: var(--pink);
    text-shadow: 0 1px 0 #fff, 0 1px 2px rgba(74,26,82,.18);
  }
  .brand__sub { font-size: 11px; white-space: nowrap; letter-spacing: .04em; color: var(--plum); margin-top: 3px; }
  .desktop-nav { display: none; }
  .header-call__long { display: none; }
  @media (min-width: 900px) {
    .desktop-nav { display: flex; gap: 28px; margin-inline-end: var(--s-4); }
    .desktop-nav a { text-decoration: none; font-size: 16px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color var(--t-micro) var(--ease-out); }
    .desktop-nav a:hover { border-color: var(--aqua); }
    .nav-toggle { display: none !important; }
    .header-call__long { display: inline; }
    .header-call__short { display: none; }
  }

  /* Hero */
  .hero {
    display: grid; gap: var(--s-5);
    padding: var(--s-6) var(--inset) 0;
    overflow: hidden; isolation: isolate;
  }
  .hero > * { position: relative; z-index: 1; }
  .hero__copy { display: grid; gap: var(--s-4); align-content: start; }
  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 8.6vw, 64px);
    line-height: 1.08;
    max-width: 15ch;
  }
  .hero__sub { max-width: 42ch; }
  .nowrap { white-space: nowrap; }
  .hero__live {
    display: inline-flex; align-items: center; gap: 8px;
    justify-self: start;
    font-size: 15px; font-weight: 700;
    background: var(--white); color: var(--plum);
    padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  }
  .hero__live::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    background: var(--aqua); box-shadow: 0 0 0 3px rgba(92,214,242,.35);
  }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
  .hero__figure { position: relative; margin-inline: -8px; }
  .hero__bigbubble {
    position: absolute; z-index: 0;
    width: min(64vw, 440px); aspect-ratio: 1;
    right: -24%; top: -10%; color: var(--pink);
    opacity: .9; pointer-events: none;
    animation: hover 6.5s ease-in-out infinite;
  }
  @keyframes hover {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -22px; }
  }
  .josie { position: relative; width: min(78vw, 520px); margin-inline: auto; z-index: 1; }
  .josie img { width: 100%; }
  @media (min-width: 900px) {
    .hero {
      grid-template-columns: 2fr 3fr; align-items: end;
      padding-block-start: var(--s-8);
      min-height: 620px;
    }
    .hero__title { font-size: clamp(44px, 4.6vw, 72px); }
    .hero__copy { padding-block-end: var(--s-9); }
    .hero__figure { margin: 0; justify-self: center; width: 100%; }
    .josie { margin-inline: auto; }
    .hero__bigbubble { right: -10%; top: -14%; width: 460px; }
  }

  /* Before & after rail */
  .work {
    background: var(--white);
    padding: var(--s-7) 0 var(--s-8);
    border-radius: var(--r-surface) var(--r-surface) 0 0;
    margin-top: -24px;   /* overlaps the hero so the grid breaks */
  }
  .work__head { padding-inline: var(--inset); display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
  .work__title { font-family: var(--font-display); font-size: clamp(36px, 9vw, 56px); }
  .work__intro { max-width: 46ch; color: var(--plum-soft); }
  .work__intro strong { color: var(--plum); }
  .rail {
    display: flex; gap: var(--s-4);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-inline: var(--inset);
    padding-block: var(--s-2) var(--s-4);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
  .rail > li { flex: 0 0 auto; scroll-snap-align: start; }
  /* Rail nav: two arrows centered under the rail. The native scrollbar ran
     to the viewport edge, which read as a mistake. */
  .rail-nav { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding-inline: var(--inset); margin-top: var(--s-2); }
  @media (min-width: 900px) { .rail-nav { padding-inline-end: 0; margin-inline-end: var(--inset); } }
  .rail-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pink);
    background: var(--white); color: var(--pink); display: grid; place-items: center;
    cursor: pointer; transition: background 120ms var(--ease-out), color 120ms var(--ease-out), transform 120ms var(--ease-spring);
  }
  .rail-btn svg { width: 22px; height: 22px; }
  .rail-btn:hover { background: var(--pink); color: var(--white); }
  .rail-btn:active { transform: scale(.94); }
  .rail-btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
  .rail-btn[disabled] { opacity: .35; cursor: default; }
  .rail-btn[disabled]:hover { background: var(--white); color: var(--pink); }
  @media (min-width: 1100px) {
    .work { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto 1fr auto; align-items: start; padding-inline-start: calc(var(--inset) - 140px); }
    .work__head { display: contents; }
    .work__title {
      grid-column: 1; grid-row: 1 / span 3;
      writing-mode: vertical-rl; transform: rotate(180deg);
      font-size: 60px; line-height: 1; margin-inline: auto; align-self: end;
      padding-block: var(--s-6) 0;
    }
    .work__intro { grid-column: 2; grid-row: 1; margin-bottom: var(--s-4); }
    .rail { grid-column: 2; grid-row: 2; padding-inline-start: 0; }
    .rail-nav { grid-column: 2; grid-row: 3; padding-inline-start: 0; }
  }

  /* Services */
  .services {
    padding: var(--s-8) var(--inset);
    display: grid; gap: var(--s-6);
    overflow: hidden; isolation: isolate;
    background-color: var(--lavender);
    background-image: url("/img/soap-film.webp");
    background-size: 900px; background-blend-mode: soft-light;
  }
  .services::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: var(--lavender); opacity: .92;   /* texture lands at 8% */
  }
  .services > * { position: relative; z-index: 1; }
  .services__lead { display: grid; gap: var(--s-3); max-width: 38ch; }
  .services__title { font-family: var(--font-display); font-size: clamp(40px, 10vw, 72px); }
  .tiers { display: grid; gap: var(--s-4); align-content: start; }
  @media (min-width: 900px) {
    .services { grid-template-columns: 35fr 65fr; align-items: start; padding-block: var(--s-9); }
  }

  /* What's included */
  .included {
    background: var(--white);
    padding: var(--s-8) var(--inset);
    display: grid; gap: var(--s-5);
    overflow: hidden; isolation: isolate;
  }
  .included > * { position: relative; z-index: 1; }
  .included__title { font-family: var(--font-display); font-size: clamp(40px, 10vw, 72px); }
  @media (min-width: 900px) {
    .included { grid-template-columns: 1fr 1.3fr; align-items: center; padding-block: var(--s-9); }
  }

  /* Add-ons */
  .addons {
    background: var(--ribbon);
    padding: var(--s-6) var(--inset) var(--s-7);
    display: grid; gap: var(--s-4);
  }
  .addons__title { font-family: var(--font-display); font-size: clamp(40px, 10vw, 64px); }
  @media (min-width: 900px) {
    .addons { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-8); padding-block: var(--s-6); }
  }

  /* Quote */
  .quote {
    padding: 0 var(--inset) var(--s-8);
    display: grid; gap: var(--s-6);
    overflow: hidden; isolation: isolate;
  }
  .quote > * { position: relative; z-index: 1; }
  .quote__aside { display: grid; gap: var(--s-3); align-content: start; }
  .quote__cta { font-family: var(--font-display); font-size: clamp(38px, 9vw, 60px); }
  .quote__facts { display: grid; gap: 10px; margin-top: var(--s-3); max-width: 40ch; }
  .quote__facts li { display: flex; gap: 12px; align-items: flex-start; }
  .quote__facts .mark { margin-top: 5px; }
  .quote__phone { font-size: clamp(20px, 5vw, 26px); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  @media (min-width: 900px) {
    .quote { grid-template-columns: 55fr 45fr; align-items: start; gap: var(--s-8); }
    .quote__aside { padding-top: var(--s-7); }
  }

  /* FAQ */
  .faq { background: var(--white); padding: var(--s-8) var(--inset); display: grid; gap: var(--s-3); }
  .faq__title { font-family: var(--font-display); font-size: clamp(36px, 9vw, 56px); margin-bottom: var(--s-3); }
  @media (min-width: 900px) {
    .faq { grid-template-columns: 1fr 2fr; column-gap: var(--s-8); }
    .faq__title { grid-row: 1 / span 6; }
  }

  /* Footer */
  .site-footer {
    position: relative; overflow: hidden;
    background: var(--plum); color: var(--ribbon);
    padding: var(--s-7) var(--inset) var(--s-8);
    display: grid; gap: var(--s-3);
  }
  .site-footer a { color: var(--white); }
  .brand__name--footer { color: var(--pink); text-shadow: none; font-size: 30px; }
  .site-footer__facts, .site-footer__legal { max-width: 52ch; }
  .site-footer__legal { font-size: 14px; opacity: .8; }
  .site-footer__fb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; justify-self: start; position: relative; z-index: 1; }
  .site-footer__fb .mark { fill: currentColor; }
  .site-footer__bubble { position: absolute; bottom: -10px; pointer-events: none; opacity: .8; }
  .site-footer__bubble--1 { width: 54px; right: 4%; }
  .site-footer__bubble--2 { width: 30px; right: 9%; bottom: 34px; }
  .site-footer__bubble--3 { width: 22px; right: 2%; bottom: 56px; }
  @media (min-width: 900px) {
    .site-footer { grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--s-7); padding-inline-end: calc(var(--inset) + 120px); }
    .site-footer__legal { grid-column: 1 / -1; }
  }
}

/* --------------------------------------------------------- components */
@layer components {
  .sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }

  .mark { width: 18px; height: 18px; color: var(--pink); flex: none; }
  .mark--heart { display: inline-block; vertical-align: -3px; margin-left: 2px; }

  /* Buttons. Every one compresses on press. */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 22px;
    border-radius: var(--r-pill); border: 2px solid transparent;
    font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2;
    transition: transform 90ms var(--ease-out), background-color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  .btn:active { transform: scale(.97); }
  .btn--pink { background: var(--pink-deep); color: var(--white); border-color: var(--pink-deep); }
  .btn--outline { background: var(--white); color: var(--plum); border-color: var(--white); }
  .btn--block { width: 100%; min-height: 56px; }
  @media (hover: hover) and (pointer: fine) {
    .btn--pink:hover { background: var(--pink); border-color: var(--pink); }
    .btn--outline:hover { border-color: var(--aqua); }
  }
  .header-call { min-height: 42px; padding-inline: 16px; font-size: 15px; white-space: nowrap; flex: none; }

  /* Hamburger */
  .nav-toggle {
    width: 44px; height: 44px; display: grid; place-items: center;
    margin-inline-end: -10px; padding: 0; border: 0; background: none; color: var(--plum);
  }
  .nav-toggle__box { position: relative; width: 24px; height: 16px; }
  .nav-toggle__bar {
    position: absolute; inset-inline: 0; height: 2.5px; border-radius: 2px; background: currentColor;
    transition: transform var(--t-open) var(--ease-out), opacity 100ms linear, top var(--t-open) var(--ease-out);
  }
  .nav-toggle__bar:nth-child(1) { top: 0; }
  .nav-toggle__bar:nth-child(2) { top: 7px; }
  .nav-toggle__bar:nth-child(3) { top: 14px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* Full-screen menu. Solid. Nothing behind it is visible. */
  .mobile-nav {
    width: 100%; max-width: 100%;
    height: 100vh; height: 100dvh; max-height: 100dvh;
    margin: 0; padding: 0; border: 0;
    background: var(--lavender); color: var(--plum);
    opacity: 0; translate: 0 -8px;
    transition: opacity var(--t-close) var(--ease-out), translate var(--t-close) var(--ease-out),
                display var(--t-close) allow-discrete, overlay var(--t-close) allow-discrete;
  }
  .mobile-nav[open] { opacity: 1; translate: 0 0; transition-duration: var(--t-open); display: flex; flex-direction: column; }
  @starting-style { .mobile-nav[open] { opacity: 0; translate: 0 -8px; } }
  .mobile-nav::backdrop { background: var(--lavender); }
  .mobile-nav__inner {
    display: flex; flex-direction: column; min-height: 0; height: 100%;
    padding-block-start: max(20px, calc(env(safe-area-inset-top) + 12px));
    padding-block-end: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    padding-inline: max(20px, env(safe-area-inset-left));
  }
  .mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
  .nav-close { width: 44px; height: 44px; display: grid; place-items: center; margin-inline-end: -10px; border: 0; background: none; color: var(--plum); transition: transform 80ms var(--ease-out); }
  .nav-close:active { transform: scale(.92); }
  .mobile-nav__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav__links li + li { border-top: 1px solid rgba(74,26,82,.18); }
  .mobile-nav__links a {
    display: flex; align-items: center; min-height: 56px;
    font-family: var(--font-display); font-size: clamp(24px, 6.5vw, 30px);
    text-decoration: none; transition: color 120ms var(--ease-out);
  }
  .mobile-nav__links a:active { color: var(--pink-ink); }
  .mobile-nav__foot { display: grid; gap: 10px; padding-top: 20px; }
  .mobile-nav__facts { font-size: 15px; line-height: 1.6; margin-top: 6px; }

  /* Sticky call bar, mobile only, thumb zone */
  .call-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 9;
    display: flex; padding-bottom: env(safe-area-inset-bottom);
    background: var(--pink-deep);
    translate: 0 100%; transition: translate 220ms var(--ease-out);
  }
  .call-bar.is-visible { translate: 0 0; }
  .call-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: var(--callbar-h); color: var(--white); text-decoration: none;
    font-size: 17px; font-weight: 700;
  }
  .call-bar a + a { flex: 0 0 34%; border-left: 1px solid rgba(255,255,255,.35); }
  .call-bar a:active { opacity: .85; }
  @media (min-width: 900px) { .call-bar { display: none; } }

  /* Snapshot: a white-bordered phone photo */
  .snapshot {
    background: var(--white); padding: 8px; border-radius: var(--r-photo);
    display: grid; gap: 6px;
  }
  .snapshot img { border-radius: 6px; width: 100%; }
  .snapshot figcaption { font-size: 15px; color: var(--plum-soft); padding: 0 4px 2px; }
  .snapshot--detail { max-width: 360px; }

  /* The wipe slider. Before on top, clipped to the left of the handle. */
  .wipe {
    --pos: 50%;
    position: relative; width: 100%; aspect-ratio: 4 / 5;
    border-radius: 6px; overflow: hidden; background: var(--ribbon);
    user-select: none; -webkit-user-select: none;
  }
  .wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .wipe__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
  .wipe__label {
    position: absolute; top: 8px; z-index: 2; pointer-events: none;
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    background: var(--white); color: var(--plum);
    padding: 3px 9px; border-radius: var(--r-pill);
  }
  .wipe__label--before { left: 8px; }
  .wipe__label--after { right: 8px; }
  .wipe__handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
    width: 48px; margin-left: -24px; padding: 0; border: 0; background: none;
    touch-action: none; cursor: ew-resize; color: var(--pink);
    display: grid; place-items: center;
  }
  .wipe__handle::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px;
    background: var(--pink); border-radius: 4px;
  }
  .wipe__handle svg { position: relative; width: 50px; height: 50px; transition: transform 120ms var(--ease-spring); }
  .wipe__handle:active svg, .wipe.is-dragging .wipe__handle svg { transform: scale(1.08); }
  .wipe__handle:focus-visible { outline: none; }
  .wipe__handle:focus-visible svg { filter: drop-shadow(0 0 0 3px var(--plum)); }
  /* Portrait cards are 4:5 at width W; landscape cards are 1:1 at 1.25W,
     so every card in the rail is the same height and the captions line up. */
  /* Phones: one card fills the width, no peek of the next; arrows step it.
     Wider: fixed-width cards in a row, the next one peeking. */
  .rail { --per: 1; scroll-padding-inline: var(--inset); }
  .rail > li { flex-basis: calc((100% - (var(--per) - 1) * var(--s-4)) / var(--per)); }
  .rail .snapshot { width: 100%; }
  @media (min-width: 900px) {
    /* Wider: the rail stays inside the page measure and shows whole cards,
       all square so the row is level. Arrows page through them. */
    .rail { --per: 2; margin-inline-end: var(--inset); padding-inline-end: 0; scroll-padding-inline: var(--inset) 0; }
    .wipe, .wipe--land { aspect-ratio: 1; }
  }
  @media (min-width: 1100px) { .rail { --per: 3; scroll-padding-inline-start: 0; } }
  .wipe--land { aspect-ratio: 1; }
  /* Tell the visitor it can be dragged, once. */
  .wipe--hint .wipe__handle svg { animation: nudge 1.6s var(--ease-soft) .8s 2; }
  @keyframes nudge {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-10px); }
    70% { transform: translateX(10px); }
  }

  /* Service tiers: pill bands, not cards */
  .tier {
    position: relative;
    background: var(--ribbon); border-radius: var(--r-surface);
    padding: var(--s-4) var(--s-5);
    display: grid; gap: 4px;
  }
  .tier__name { font-weight: 700; font-size: clamp(22px, 5vw, 28px); font-variation-settings: "opsz" 36; }
  .tier__desc { color: var(--plum-soft); font-size: 16px; max-width: 48ch; }
  .tier--deep { padding-right: var(--s-6); }
  .tier__bubble { position: absolute; width: 56px; top: -24px; right: -10px; }
  @media (min-width: 720px) {
    .tier { grid-template-columns: 13rem 1fr; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-6); }
    .tier--deep { margin-right: -16px; }
  }

  /* Checklist */
  .checklist { display: grid; gap: 10px; max-width: var(--measure); }
  .checklist li { display: flex; gap: 12px; align-items: flex-start; }
  .checklist .mark { margin-top: 5px; }

  /* Prices */
  .prices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) 0; }
  .price { display: grid; gap: 2px; padding: 6px 12px; border-left: 2px solid rgba(255,255,255,.9); }
  .price:nth-child(odd) { border-left: 0; padding-left: 0; }
  .price dd { margin: 0; font-size: clamp(30px, 7vw, 40px); font-weight: 700; line-height: 1; font-variation-settings: "opsz" 72; order: -1; }
  .price dt { font-size: 15px; }
  @media (min-width: 720px) {
    .prices { grid-template-columns: repeat(4, 1fr); }
    .price { padding: 4px 20px; }
    .price:nth-child(odd) { border-left: 2px solid rgba(255,255,255,.9); padding-left: 20px; }
    .price:first-child { border-left: 0; padding-left: 0; }
  }

  /* The quote ticket */
  .ticket {
    position: relative;
    background: var(--white); color: var(--plum);
    border-radius: 0 0 var(--r-surface) var(--r-surface);
    padding: var(--s-8) var(--s-5) var(--s-5);
    margin-top: 72px;
    display: grid; gap: var(--s-5);
  }
  /* Scalloped top edge, drawn with a mask, no image. */
  .ticket::before {
    content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 15px;
    background: var(--white);
    -webkit-mask: radial-gradient(circle at 12px 0, transparent 11px, #000 11.5px) -12px 0 / 24px 15px repeat-x;
            mask: radial-gradient(circle at 12px 0, transparent 11px, #000 11.5px) -12px 0 / 24px 15px repeat-x;
  }
  .ticket__bow { position: absolute; width: 136px; top: -70px; left: 50%; translate: -50% 0; }
  .ticket__title { font-family: var(--font-display); font-size: clamp(38px, 9vw, 56px); text-align: center; }
  .ticket__help { text-align: center; color: var(--plum-soft); max-width: 40ch; margin-inline: auto; font-size: 16px; }
  .choice { display: flex; flex-wrap: wrap; gap: 8px; }
  .choice legend { width: 100%; font-weight: 700; margin-bottom: 8px; font-size: 16px; }
  .chip { position: relative; display: inline-flex; }
  .chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .chip span {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 16px 8px 12px;
    border: 2px solid var(--ribbon); border-radius: var(--r-pill);
    font-size: 15px; line-height: 1.2;
    transition: background-color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out), transform 160ms var(--ease-spring);
  }
  .chip span::before {
    content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
    border: 2px solid var(--lavender); background: var(--white);
    transition: background-color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out), transform 200ms var(--ease-spring);
  }
  .chip input[type="checkbox"] + span::before { border-radius: 6px; }
  .chip span b { font-weight: 700; color: var(--pink-ink); }
  .chip input:checked + span b { color: var(--plum); }
  .chip input:checked + span { background: var(--ribbon); border-color: var(--pink); }
  .chip input:checked + span::before { background: var(--pink-deep); border-color: var(--pink-deep); transform: scale(1.1); box-shadow: inset 0 0 0 3px var(--white); }
  .chip input[type="checkbox"]:checked + span::before { background: var(--aqua); border-color: var(--aqua); box-shadow: inset 0 0 0 3px var(--white); }
  .chip input:active + span { transform: scale(.97); }
  .chip input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
  .fields { display: grid; gap: var(--s-4); }
  .field { display: grid; gap: 6px; }
  .field label { font-weight: 700; font-size: 16px; }
  .field__opt { font-weight: 400; color: var(--plum-soft); }
  .field input {
    width: 100%; min-height: 50px; padding: 10px 18px;
    border: 2px solid var(--ribbon); border-radius: var(--r-pill); background: var(--white);
    transition: border-color var(--t-micro) var(--ease-out);
  }
  .field input::placeholder { color: #7A5A85; }
  .field input:focus-visible { outline: none; border-color: var(--plum); }
  .field input:user-valid { border-color: var(--aqua); }
  .field.is-invalid input { border-color: var(--pink-ink); }
  .field__err { font-size: 14px; color: var(--pink-ink); min-height: 1.2em; }
  .field__err--wide { width: 100%; }
  .ticket__total { font-weight: 700; font-size: 18px; }
  .ticket__send { font-size: 18px; }
  .ticket__send[data-state="pending"] { opacity: .8; }
  .ticket__send[data-state="sent"] { background: var(--plum); border-color: var(--plum); }
  .ticket__alt { text-align: center; font-size: 15px; color: var(--plum-soft); }
  @media (min-width: 720px) {
    .ticket { padding: var(--s-7) var(--s-7) var(--s-6); }
    .fields { grid-template-columns: 1fr 1fr; }
    .fields .field:last-child { grid-column: 1 / -1; }
  }

  /* FAQ rows */
  .qa { border-top: 1px solid var(--ribbon); padding: 4px 0; }
  .qa:last-child { border-bottom: 1px solid var(--ribbon); }
  .qa summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 52px; font-weight: 700; font-size: 18px;
  }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after {
    content: ""; flex: none; width: 14px; height: 14px;
    background: var(--pink); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    transition: transform var(--t-std) var(--ease-spring);
  }
  .qa[open] summary::after { transform: rotate(45deg) scale(1.2); }
  .qa p { padding: 0 0 16px; max-width: 58ch; color: var(--plum-soft); }

  /* Suds: a never-ending stream of bubbles that rise from under the section
     and drift out through its top edge. --h is the section height, kept
     current by main.js; each bubble travels its own size past both edges. */
  .suds__layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .suds__heading { display: inline-block; }
  .bubble {
    --travel: calc(var(--h, 600px) + var(--size) * 2);
    position: absolute; bottom: calc(var(--size) * -1); left: var(--x);
    width: var(--size); height: var(--size); color: var(--pink);
    animation: rise var(--dur) linear var(--delay) infinite;
    will-change: transform;
  }
  .bubble svg { width: 100%; height: 100%; }
  .suds--paused .bubble { animation-play-state: paused; }
  @keyframes rise {
    0%   { transform: translateY(0) translateX(0) scale(.7); }
    25%  { transform: translateY(calc(var(--travel) * -.25)) translateX(var(--sway)) scale(1); }
    50%  { transform: translateY(calc(var(--travel) * -.5)) translateX(calc(var(--sway) * -.7)) scale(1); }
    75%  { transform: translateY(calc(var(--travel) * -.75)) translateX(calc(var(--sway) * .5)) scale(1.02); }
    100% { transform: translateY(calc(var(--travel) * -1)) translateX(0) scale(1.02); }
  }

  /* Hero sparkles: pinned to the shiny spots on the cutout. Hero only. */
  .sp {
    position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
    transform: translate(-50%, -50%); color: var(--white); pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 14px rgba(233,62,156,.55));
    animation: twinkle var(--dur, 3.6s) ease-in-out var(--d, 0s) infinite;
  }
  .sp--pink { color: #FFD1EA; }
  .sp--aqua { color: #D9F7FD; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 14px rgba(92,214,242,.6)); }
  .sp svg { width: 100%; height: 100%; }
  @keyframes twinkle {
    0%, 62% { opacity: 0; transform: translate(-50%,-50%) scale(.35) rotate(0); }
    70% { opacity: 1; transform: translate(-50%,-50%) scale(1.15) rotate(18deg); }
    78% { opacity: .85; transform: translate(-50%,-50%) scale(.9) rotate(28deg); }
    86%, 100% { opacity: 0; transform: translate(-50%,-50%) scale(.35) rotate(40deg); }
  }

  /* Reduced motion: movement off, not down. State feedback stays. */
  @media (prefers-reduced-motion: reduce) {
    .bubble { animation: none; bottom: auto; top: var(--rest); opacity: .45; }
    .hero__bigbubble { animation: none; }
    .sp { animation: none; opacity: .9; transform: translate(-50%,-50%) scale(.8); }
    .wipe--hint .wipe__handle svg { animation: none; }
    .mobile-nav, .mobile-nav[open] { transition-duration: 1ms; translate: none; }
    .nav-toggle__bar, .call-bar { transition-duration: 1ms; }
    .qa summary::after { transition: none; }
  }
}

/* ---------------------------------------------------------- utilities */
@layer utilities {
  .placeholder { background: #FFF3B0; color: #5A4500; padding: 0 4px; }
}
