/* =========================================================================
   MOBILVERSION — telefon (≤ 809.98px)

   EVERYTHING in this file is inside the phone media block below (plus one
   guard at the very end that hides the phone-only pieces on wider screens).
   Laptop and monitor are untouched by construction — never move a rule out
   of the block.

   Why 809.98: that is where Framer itself switches to its phone layout, so
   the phone version starts exactly where Framer's phone DOM does. (Tablet,
   810–1199, is its own tier and still Framer's default.)

   Behaviour lives in js/mobil.js. Loaded after custom.css so equal
   specificity wins on source order.

   Design rules for the phone (from Oliver's other phone sites + the desktop
   tokens): 20px side gutter, ~72px between sections, Lora headings at
   30–40px, DM Sans Light 16px body, eyebrow 11px, tap targets ≥ 44px.
   Long rows of cards become swipe rows (peek of the next card + dots).
   ========================================================================= */

@media (max-width: 809.98px) {

  /* ---------------------------------------------------------------------
     0. TOKENS — the phone type scale, shared by every page.
     --------------------------------------------------------------------- */
  body,
  body .framer-tSQUb {
    --cm-m-gutter: 20px;
    --cm-m-section: 72px;
    --cm-m-ink: #171210;            /* the pills' near-black, as on desktop */
    --cm-size-display: 40px;
    --cm-size-h2: 32px;
    --cm-size-h3: 24px;
    --cm-size-h4: 20px;
    --cm-size-lead: 17px;
    --cm-size-body: 16px;
    --cm-size-small: 14px;
    --cm-size-eyebrow: 11px;
  }

  html.cm-m,
  html.cm-m body {
    overflow-x: clip;               /* nothing may ever scroll the page sideways */
  }

  /* ---------------------------------------------------------------------
     1. TOP BAR — compact logo, transparent over the hero, soft glass once
     you scroll. Framer's "Menu" pill is replaced by our own button.
     --------------------------------------------------------------------- */
  nav.framer-bU121.framer-1juce9w {
    height: 64px !important;
    background-color: transparent !important;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease !important;
  }
  html.cm-m-scrolled nav.framer-bU121.framer-1juce9w {
    background-color: rgba(251, 249, 247, 0.78) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(74, 55, 48, 0.08);
  }
  html.cm-m-scrolled body.cm-nav-dark nav.framer-bU121.framer-1juce9w {
    background-color: rgba(30, 23, 20, 0.45) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  /* Logo flush with the page's left gutter (the nav itself pads 16px) */
  nav.framer-bU121.framer-1juce9w .framer-g52bo5-container {
    width: 132px !important;
    height: 64px !important;
    top: 0 !important;
    left: calc(var(--cm-m-gutter, 20px) - 16px) !important;
  }
  nav.framer-bU121.framer-1juce9w .framer-g52bo5-container > * {
    width: 132px !important;
    padding-left: 0 !important;
    justify-content: flex-start !important;
  }
  nav.framer-bU121.framer-1juce9w .framer-1x807hn {
    width: 132px !important;
    height: 46px !important;
    transform: translateY(13px) !important;
  }
  /* The hero's peach backdrop started 69px down on the phone, so a grey
     band showed behind the see-through bar. Start it at the very top. */
  body.cm-home .framer-tSQUb .framer-7m3i73 {
    top: 0 !important;
  }

  /* Framer's own Menu pill (it also overflowed the right edge) */
  nav.framer-bU121.framer-1juce9w .framer-y41ec7-container {
    display: none !important;
  }

  /* Our menu button — same ink pill as the site's buttons */
  .cm-mbtn {
    position: fixed;
    top: 12px;
    right: var(--cm-m-gutter, 20px);
    z-index: 2147483200;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px 0 18px;
    border: 0;
    border-radius: 999px;
    background: #171210;
    color: #fbf6f2;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.2s ease;
  }
  .cm-mbtn:active { transform: scale(0.95); }
  /* steps aside while a product / course pop-up is open — it sat on top of
     the pop-up's close button (found on the shop page, same on the forside) */
  body:has(.cm-prod-overlay.cm-prod-open) .cm-mbtn,
  body:has(.cm-course-overlay.cm-course-open) .cm-mbtn,
  body:has(.cm-rv-overlay.cm-rv-open) .cm-mbtn {
    opacity: 0;
    pointer-events: none;
  }
  .cm-mbtn::before {                /* 44px hit area around a 40px pill */
    content: "";
    position: absolute;
    inset: -4px;
  }
  body.cm-nav-dark .cm-mbtn {
    background: #fbf6f2;
    color: #171210;
  }
  .cm-mbtn-label {
    display: grid;
    height: 14px;
    overflow: hidden;
    line-height: 14px;
  }
  .cm-mbtn-label span {
    grid-area: 1 / 1;
    transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
  }
  .cm-mbtn-label span + span { transform: translateY(100%); }
  .cm-mbtn-lines {
    position: relative;
    width: 16px;
    height: 8px;
  }
  .cm-mbtn-lines i {
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1), top 0.45s cubic-bezier(0.2, 0, 0.2, 1);
  }
  .cm-mbtn-lines i:first-child { top: 0; }
  .cm-mbtn-lines i:last-child { top: 6.5px; }

  html.cm-m-menu-open .cm-mbtn {
    background: #171210;
    color: #fbf6f2;
  }
  html.cm-m-menu-open .cm-mbtn-label span:first-child { transform: translateY(-100%); }
  html.cm-m-menu-open .cm-mbtn-label span + span { transform: none; }
  html.cm-m-menu-open .cm-mbtn-lines i:first-child { top: 3.25px; transform: rotate(45deg); }
  html.cm-m-menu-open .cm-mbtn-lines i:last-child { top: 3.25px; transform: rotate(-45deg); }

  /* ---------------------------------------------------------------------
     2. FULL-SCREEN MENU
     --------------------------------------------------------------------- */
  .cm-mmenu {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 0 var(--cm-m-gutter, 20px) calc(24px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(232, 205, 192, 0.55) 0%, rgba(232, 205, 192, 0) 60%),
      #fbf9f7;
    color: #3f3835;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.3s ease,
                visibility 0s linear 0.55s;
  }
  html.cm-m-menu-open .cm-mmenu {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.2s ease, visibility 0s;
  }
  .cm-mmenu-top {
    flex: none;
    height: 64px;
    display: flex;
    align-items: center;
  }
  .cm-mmenu-logo {
    display: block;
    width: 132px;
    height: 46px;
    transform: translateY(4px);                      /* = the header logo at rest; js matches it exactly */
    background-color: #171210;
    -webkit-mask: url("../images/cammilla-logo.png?v=5") left center / contain no-repeat;
    mask: url("../images/cammilla-logo.png?v=5") left center / contain no-repeat;
  }
  .cm-mmenu-body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 32px;
  }
  .cm-mmenu-eyebrow {
    margin: 0 0 18px;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    color: var(--cm-eyebrow, #c69a92);
  }
  .cm-mmenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .cm-mmenu-list li {
    border-bottom: 1px solid rgba(74, 55, 48, 0.1);
  }
  .cm-mmenu-list li:first-child {
    border-top: 1px solid rgba(74, 55, 48, 0.1);
  }
  .cm-mmenu-list a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    font-family: var(--cm-font-heading, "Lora", serif) !important;   /* beats the global a{} font reset */
    font-size: 34px;
    font-weight: 400 !important;
    line-height: 1.15;
    letter-spacing: -0.01em !important;
    color: #3f3835;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .cm-mmenu-list a:active { color: var(--cm-accent, #c69a92); }
  /* a small dot in front of each page instead of 01–05 (Oliver 2026-11-26:
     numbers felt too technical) */
  .cm-mmenu-n {
    flex: none;
    width: 22px;
    display: flex;
    align-items: center;
    align-self: center;
    margin-top: 3px;                    /* level with the word's middle */
    color: var(--cm-accent, #c69a92);
  }
  .cm-mmenu-n::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
  }
  .cm-mmenu-list a[aria-current="page"] .cm-mmenu-n::before { opacity: 1; }
  .cm-mmenu-list a[aria-current="page"] { color: var(--cm-accent, #c69a92); }
  .cm-mmenu-list a[aria-current="page"] .cm-mmenu-n { color: var(--cm-accent, #c69a92); }

  /* shop pill and "Book gratis afklaring" on one line (Oliver 2026-11-26) */
  .cm-mmenu-ctas {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 32px;
    white-space: nowrap;
  }
  .cm-mmenu-shop {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 16px;
    height: 48px;
    padding: 0 20px 0 24px;
    border-radius: 999px;
    background: #171210;
    color: #fbf6f2;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.11em !important;
    text-transform: uppercase;
    text-decoration: none;
  }
  .cm-mmenu-shop i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }
  .cm-mmenu-book {
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.11em !important;
    text-transform: uppercase;
    color: #3f3835;
    text-decoration: none;
    padding: 5px 0 4px;               /* text level with MIN SHOP */
    border-bottom: 1px solid currentColor;
  }
  /* mail, phone and the two icons on one line */
  .cm-mmenu-foot {
    flex: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 14px;
    font-weight: 300;
  }
  .cm-mmenu-foot > a {
    color: var(--cm-body, #6b625d);
    text-decoration: none;
    padding: 8px 0;
  }
  .cm-mmenu-social {
    display: inline-flex;
    gap: 2px;
    margin-left: auto;
    margin-right: -8px;              /* icon, not its tap box, on the gutter */
  }
  .cm-mmenu-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 44px;
    color: #3f3835;
  }
  .cm-mmenu-social svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .cm-mmenu-social a[aria-label="Facebook"] svg { fill: currentColor; stroke: none; }
  @media (max-width: 374px) {
    .cm-mmenu-ctas { gap: 14px; }
    .cm-mmenu-book { font-size: 11px; }
    .cm-mmenu-foot { gap: 12px; font-size: 13px; }
  }

  /* staggered entrance */
  .cm-mmenu-list li,
  .cm-mmenu-ctas,
  .cm-mmenu-foot,
  .cm-mmenu-eyebrow {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  html.cm-m-menu-open .cm-mmenu-list li,
  html.cm-m-menu-open .cm-mmenu-ctas,
  html.cm-m-menu-open .cm-mmenu-foot,
  html.cm-m-menu-open .cm-mmenu-eyebrow {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
    transition-delay: calc(0.25s + var(--i, 0) * 0.05s);
  }
  html.cm-m-menu-open .cm-mmenu-eyebrow { transition-delay: 0.2s; }

  /* Book button: out of the way while the menu is open; respect the home bar */
  html.cm-m-menu-open .cm-book-dock {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  html.cm-m .cm-book-dock {
    bottom: calc(var(--cm-dock-gap) + env(safe-area-inset-bottom, 0px));
  }
  /* ...and on the first screen: it comes in once you have scrolled a little
     and the hero's buttons are clear of it (Oliver 2026-11-26). Same slide
     as at the footer. Toggled by heroDock() in js/mobil.js. */
  html.cm-m-dock-wait .cm-book-dock:not(.is-open) {
    transform: translateX(calc(-1 * (var(--cm-dock-size) + var(--cm-dock-gap) + 24px)));
    opacity: 0;
    visibility: hidden;
    /* leaves faster than it arrives (Oliver 2026-11-26) */
    transition: transform 0.3s ease-in, opacity 0.2s ease-in, visibility 0s linear 0.3s;
  }
  html.cm-m .cm-book-dock.is-away {
    transition: transform 0.3s ease-in, opacity 0.2s ease-in, visibility 0s linear 0.3s;
  }

  /* ---------------------------------------------------------------------
     3. HERO (.cm-hero, hand-built) — eyebrow + title, then the photo, then
     the text and the two buttons side by side (Oliver 2026-11-26). The copy
     wrapper dissolves (display: contents) so its pieces can be reordered
     around the photo. Title words/labels are swapped in js/mobil.js.
     --------------------------------------------------------------------- */
  body.cm-home #main .cm-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 84px var(--cm-m-gutter) 64px !important;
  }
  body.cm-home #main .cm-hero-copy {
    display: contents !important;
  }
  /* fades out as "Skift" comes up, so the eye moves down with it —
     --cm-m-hero-op set by heroFade() in js/mobil.js */
  body.cm-home #main .cm-hero-inner {
    opacity: var(--cm-m-hero-op, 1);
  }
  /* mostly faded: not tappable, and invisible to the nav's colour check
     (the hidden black pill passing under the bar turned the bar dark) */
  html.cm-m-hero-gone body.cm-home #main .cm-hero-inner,
  html.cm-m-hero-gone body.cm-home #main .cm-hero-inner * {
    pointer-events: none !important;
  }
  /* Page Intro centres the hero on tall phones; keep it at the top so the
     eyebrow sits the same distance under the bar on every phone */
  body.cm-home #main [data-framer-name="Page Intro"] {
    justify-content: flex-start !important;
  }
  body.cm-home #main .cm-hero-eyebrow { order: 1; }
  body.cm-home #main .cm-hero-title   { order: 2; margin-top: 12px !important; }
  body.cm-home #main .cm-hero-mat     { order: 3; margin-top: 24px !important; }
  body.cm-home #main .cm-hero-actions { order: 4; margin-top: 24px !important; }
  body.cm-home #main .cm-hero-sub     { order: 5; margin-top: 30px !important; }

  body.cm-home #main .cm-hero-title {
    /* "koden til kærlighed" is ~8.5em wide: sized so it always fits one line */
    font-size: min(40px, calc((100vw - 2 * var(--cm-m-gutter)) / 8.9)) !important;
    line-height: 1.08 !important;
  }
  body.cm-home #main .cm-hero-sub {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  body.cm-home #main .cm-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 22px !important;
  }
  body.cm-home #main .cm-hero-cta { flex: 0 0 auto; }
  body.cm-home #main .cm-hero-link { white-space: nowrap; }
  @media (max-width: 400px) {        /* the three facts stay on one line */
    body.cm-home #main .cm-hero-usps { flex-wrap: nowrap !important; }
    body.cm-home #main .cm-hero-usps span {
      font-size: 9px !important;
      letter-spacing: 0.04em !important;
    }
  }
  @media (max-width: 400px) {        /* both labels on one row down to 360 */
    body.cm-home #main .cm-hero-actions { gap: 16px !important; }
    body.cm-home #main .cm-hero-cta p.framer-text,
    body.cm-home #main .cm-hero-cta .cm-hero-cta-fallback,
    body.cm-home #main .cm-hero-link {
      font-size: 11.5px !important;
      letter-spacing: 0.1em !important;
    }
  }
  body.cm-home #main .cm-hero-mat {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Photo height follows the visible screen height, so eyebrow, title,
     photo and both buttons fit on the first screen (~355px is the rest). */
  body.cm-home #main .cm-hero-img {
    aspect-ratio: auto !important;
    height: clamp(210px, calc(100vh - 360px), 330px) !important;
    height: clamp(210px, calc(100svh - 360px), 330px) !important;
  }
  body.cm-home #main .cm-hero-usps {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 12px 2px 2px !important;
  }
  body.cm-home #main .cm-hero-usps span {
    width: auto !important;
    font-size: 9.5px !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
  }

  /* ---------------------------------------------------------------------
     4. TOGGLE ("Skift") — smaller headline, shorter scroll runway.
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="Toggle"] h2.framer-text,
  body.cm-home #main [data-framer-name="Toggle"] h2.framer-text span {
    font-size: 32px !important;
    --framer-font-size: 32px !important;
    line-height: 1.15 !important;
    --framer-line-height: 1.15 !important;
  }
  body.cm-home #main [data-framer-name="Toggle"] :is([data-framer-name="Text After"], [data-framer-name="Text Before"]) p.framer-text {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
  }
  /* The pinned frame had 244px of air above the switch */
  body.cm-home #main [data-framer-name="Toggle"] .framer-b5fexi-container > * {
    padding-top: 88px !important;
    padding-bottom: 24px !important;
    gap: 28px !important;
  }
  /* Timing (Oliver 2026-11-26): the switch and "SKIFT" come in as the
     section reaches the middle of the screen, the frame then pins in the
     middle, flips shortly after, and stays a while before the services rise.
     Framer fires each marker when it crosses the middle of the screen. */
  body.cm-home #main [data-framer-name="Toggle"] .framer-b5fexi-container {
    top: max(64px, calc(50vh - 200px)) !important;
  }
  body.cm-home #main [data-framer-name="Toggle"] [data-framer-name="Container 100vh"] {
    height: 55vh !important;
  }
  body.cm-home #main [data-framer-name="Toggle"] [data-framer-name="toggle-start-animation"] {
    top: -40px !important;
  }
  body.cm-home #main [data-framer-name="Toggle"] [data-framer-name="toggle-on-animation"] {
    top: -100px !important;
    transform: none !important;
  }
  body.cm-home #main [data-framer-name="Toggle"] [data-framer-name="toggle-on-anchor"] {
    top: calc(3px - 50vh) !important;
    transform: none !important;
  }

  /* ---------------------------------------------------------------------
     5. SERVICES — the four cards become one swipe row.
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="Our Services"],
  body.cm-home #main [data-framer-name="Our Services"] [data-framer-name="Cards"] {
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] [data-framer-name="Cards"] {
    display: block !important;
    width: 100% !important;
  }
  body.cm-home #main .cm-m-row,
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;   /* centred overflow can't be scrolled to */
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 4px var(--cm-m-gutter) 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--cm-m-gutter);
    scroll-padding-right: var(--cm-m-gutter);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  body.cm-home #main .cm-m-row::-webkit-scrollbar { display: none; }

  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row > [data-framer-name$="Container"] {
    flex: 0 0 76vw !important;
    width: 76vw !important;
    max-width: 320px !important;
    height: 430px !important;
    margin: 0 !important;
    scroll-snap-align: start;
    transform: none !important;
  }
  /* legibility: a soft dark wash behind the copy that sits on the photo */
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .framer-pt47h1-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 18, 16, 0.5) 0%, rgba(23, 18, 16, 0.08) 32%, rgba(23, 18, 16, 0.18) 52%, rgba(23, 18, 16, 0.72) 100%);
    pointer-events: none;
  }
  /* the copy sits ABOVE the wash (it used to sit under it and read grey) */
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row :is(.framer-xq3ulf, .framer-16d9zrm, .framer-6gv7qe) {
    z-index: 3 !important;
  }
  /* Phone has no hover: first tap opens the card (description up, bottom
     darker), the second tap follows the link. js/mobil.js cardTaps(). */
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .framer-pt47h1-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(23, 18, 16, 0) 30%, rgba(23, 18, 16, 0.55) 62%, rgba(23, 18, 16, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .cm-m-open .framer-pt47h1-container::before {
    opacity: 1;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .framer-16d9zrm {
    opacity: 0 !important;
    transform: translateY(14px) !important;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0, 0.2, 1) !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .cm-m-open .framer-16d9zrm {
    opacity: 1 !important;
    transform: none !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .cm-m-open .framer-7p26wl {
    opacity: 1 !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row h3.framer-text {
    font-size: 26px !important;
    --framer-font-size: 26px !important;
    line-height: 1.08 !important;
    color: #fbf6f2 !important;
    --framer-text-color: #fbf6f2 !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .framer-16d9zrm {
    top: auto !important;
    bottom: 64px !important;
    height: auto !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .framer-16d9zrm .framer-1hj17iu {
    position: relative !important;
    top: auto !important;
    height: auto !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row .framer-16d9zrm p.framer-text {
    font-size: 14.5px !important;
    --framer-font-size: 14.5px !important;
    line-height: 1.55 !important;
    color: rgba(251, 246, 242, 0.92) !important;
    --framer-text-color: rgba(251, 246, 242, 0.92) !important;
  }
  body.cm-home #main [data-framer-name="Our Services"] .cm-m-row [data-framer-name="Read More"] p.framer-text {
    color: #fbf6f2 !important;
    --framer-text-color: #fbf6f2 !important;
  }

  /* dots (shared by every swipe row) */
  body.cm-home #main .cm-m-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 14px auto 0;
  }
  body.cm-home #main .cm-m-dot {
    position: relative;
    width: 22px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.cm-home #main .cm-m-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 6px;
    background: rgba(74, 55, 48, 0.22);
    transform: translate(-50%, -50%);
    transition: width 0.35s ease, background-color 0.35s ease;
  }
  body.cm-home #main .cm-m-dot.is-on::after {
    width: 18px;
    background: var(--cm-accent, #c69a92);
  }

  /* one-time nudge so the row reads as swipeable */
  @keyframes cm-m-nudge {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-34px); }
    65% { transform: translateX(-34px); }
  }
  body.cm-home #main .cm-m-row.cm-m-nudge > * {
    animation: cm-m-nudge 1.3s cubic-bezier(0.45, 0, 0.25, 1) 1;
  }

  /* ---------------------------------------------------------------------
     6. "MØD CAMMILLA" — the statement drops from ~34px to a readable lead.
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="Our Philosophy"] [data-framer-name="Text Reveal"] h4,
  body.cm-home #main [data-framer-name="Our Philosophy"] [data-framer-name="Text Reveal"] h4 span {
    font-size: 22px !important;
    --framer-font-size: 22px !important;
    line-height: 1.5 !important;
    --framer-line-height: 1.5 !important;
  }
  body.cm-home #main [data-framer-name="Our Philosophy"] [data-framer-name="Text Reveal"] h4 {
    padding: 0 6px !important;
  }
  /* desktop's hand-placed line breaks don't fit a phone line */
  body.cm-home #main [data-framer-name="Our Philosophy"] [data-framer-name="Text Reveal"] h4 > span::after {
    content: none !important;
  }

  /* ---------------------------------------------------------------------
     6b. "JEG HAR SELV KNÆKKET KODEN" (Story A) — headline, then the photo,
     then the story folded to its first lines with a "Læs mere" that opens
     it in place (desktop scrolls it inside a box; no room for that here).
     The Framer wrappers dissolve so the pieces can be reordered.
     Fold button + open/close: storyFold() in js/mobil.js.
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="Story A"] :is(.framer-10qex0i, .framer-ctj72w, .framer-g2hkwi) {
    display: contents !important;
  }
  body.cm-home #main [data-framer-name="Story A"] .framer-3uzl3v {
    /* a wrapping row, so "Læs mere" and "Mere om mig" can share the last line */
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 calc(var(--cm-m-gutter) - 8px) !important;
  }
  body.cm-home #main [data-framer-name="Story A"] .framer-o5ob8k        { order: 0; width: 100% !important; }
  body.cm-home #main [data-framer-name="Story A"] .framer-1q5p0fi       { order: 1; margin-top: 34px !important; width: 100% !important; }
  body.cm-home #main [data-framer-name="Story A"] :is(.framer-1q5p0fi, .framer-139gixe) { padding-left: 0 !important; padding-right: 0 !important; }
  body.cm-home #main [data-framer-name="Story A"] .framer-1q5p0fi :is(.framer-139gixe, [data-framer-name="Image 1"]) { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  body.cm-home #main [data-framer-name="Story A"] .framer-147e8y        { order: 2; margin-top: 20px !important; width: 100% !important; max-width: none !important; }
  body.cm-home #main [data-framer-name="Story A"] .cm-m-more           { order: 3; margin-top: 18px !important; align-self: center !important; }
  body.cm-home #main [data-framer-name="Story A"] .framer-1oocx2r-container { order: 4; margin: 18px 0 0 auto !important; align-self: center !important; }

  body.cm-home #main [data-framer-name="Story A"] .framer-147e8y.cm-m-fold {
    --cm-fade-bot: 90px;
    max-height: var(--cm-m-fold-h, 164px);      /* ~6 lines, the last fading */
    overflow: hidden !important;
    transition: max-height 0.75s cubic-bezier(0.22, 0.7, 0.2, 1), --cm-fade-bot 0.5s ease !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--cm-fade-bot)), rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - var(--cm-fade-bot)), rgba(0, 0, 0, 0) 100%);
  }
  body.cm-home #main [data-framer-name="Story A"] .framer-147e8y.cm-m-fold.is-open {
    --cm-fade-bot: 0px;
  }
  .cm-m-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin: 14px 0 0;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--cm-text, #4a3730);
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .cm-m-more-label {
    border-bottom: 1px solid rgba(74, 55, 48, 0.35);
    padding-bottom: 3px;
  }
  .cm-m-more-icon {                 /* a plus that turns into a minus */
    position: relative;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(74, 55, 48, 0.3);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1), background-color 0.3s ease;
  }
  .cm-m-more-icon::before,
  .cm-m-more-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
  }
  .cm-m-more-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
  .cm-m-more[aria-expanded="true"] .cm-m-more-icon { transform: rotate(180deg); }
  .cm-m-more[aria-expanded="true"] .cm-m-more-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
  .cm-m-more:active .cm-m-more-icon { background-color: rgba(74, 55, 48, 0.08); }

  /* ---------------------------------------------------------------------
     7. "SÅDAN VIRKER DET" — normal-size headline, the intro as body text,
     and the three steps as a numbered line (the big 01/02/03 are hidden on
     phone by Framer, so they come back here small).
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name="Headline"] h2,
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name="Headline"] h2 span {
    font-size: 40px !important;
    --framer-font-size: 40px !important;
    line-height: 1.08 !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name="Sections"] h5,
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name="Sections"] h5 * {
    /* the lead-line treatment desktop gives it (Montserrat 400) */
    font-family: var(--cm-font-lead, "Montserrat", sans-serif) !important;
    --framer-font-family: var(--cm-font-lead, "Montserrat", sans-serif) !important;
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    font-weight: 400 !important;
    --framer-font-weight: 400 !important;
    line-height: 1.6 !important;
    --framer-line-height: 1.6 !important;
    text-align: left !important;
    --framer-text-alignment: left !important;
    text-indent: 0 !important;
    padding: 0 !important;
    color: var(--cm-body, #6b625d) !important;
    --framer-text-color: var(--cm-body, #6b625d) !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name="Steps"] [data-framer-name="Text"] {
    counter-reset: cm-step;
    gap: 36px !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] {
    position: relative !important;
    padding-left: 56px !important;
    counter-increment: cm-step;
    /* rises in as it reaches the drawing line's tip — stepLines() in js */
    opacity: var(--cm-m-rev, 1) !important;
    translate: 0 calc((1 - var(--cm-m-rev, 1)) * 12px);
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "]::before {
    content: "0" counter(cm-step);
    position: absolute;
    left: 0;
    top: -2px;
    font-family: var(--cm-font-heading, "Lora", serif);
    font-size: 30px;
    line-height: 1;
    color: var(--cm-accent, #c69a92);
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "]:not([data-framer-name="Step 3"])::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 42px;
    bottom: -28px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(198, 154, 146, 0.8), rgba(198, 154, 146, 0.1));
    /* drawn downwards as you scroll; --cm-m-draw set by stepLines() */
    transform-origin: top;
    transform: scaleY(var(--cm-m-draw, 1));
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] h2,
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] h2 span {
    font-size: 26px !important;
    --framer-font-size: 26px !important;
    line-height: 1.12 !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] {
    gap: 10px !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] > div {
    height: auto !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] :is(h2, p) {
    margin: 0 !important;
  }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name^="Step "] p.framer-text {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
    padding-top: 0 !important;
  }

  /* ---------------------------------------------------------------------
     8. BIG QUOTE
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="Big Quote"] h2.framer-text,
  body.cm-home #main [data-framer-name="Big Quote"] h2.framer-text span {
    font-size: 27px !important;
    --framer-font-size: 27px !important;
    line-height: 1.2 !important;
  }
  /* The mirror drawing fills the width instead of sitting small in the
     corner, the quote sits at the bottom under it, and the section is taller
     so the arc has room to open as you scroll (Oliver 2026-11-26).
     The art (1672x941) is drawn at 235% of the screen width; its figures span
     55-89% of the file, so -119% puts their middle at the screen's middle.
     custom.js pins object-fit/position inline; with the box sized to the
     art's own shape those no longer matter. */
  body.cm-home #main [data-framer-name="Big Quote"] {
    min-height: max(calc(125vw + 410px), 100vh) !important;
    padding-bottom: 56px !important;
  }
  body.cm-home #main [data-framer-name="Big Quote"] .framer-4p7lze-container {
    top: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    /* the art's #0b0b0b black after the warm-ink filter, so the picture has
       no visible edge against the space it no longer fills */
    background-color: #201b19 !important;
  }
  body.cm-home #main [data-framer-name="Big Quote"] .framer-4p7lze-container > div {
    height: 100% !important;
    background-color: #201b19 !important;   /* was sand: the art no longer fills it */
  }
  body.cm-home #main [data-framer-name="Big Quote"] .framer-4p7lze-container img {
    display: block !important;
    width: 235% !important;
    max-width: none !important;
    height: auto !important;
    margin-left: -119% !important;    /* figures' middle (72% of 235) on the screen's middle */
    margin-top: 96px !important;      /* more black above the drawing */
  }

  /* ---------------------------------------------------------------------
     9. LYDKURSER — header tightened, Framer's two-slot phone cards replaced
     by our own swipe row of the three featured products.
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="Journal"] [data-framer-name="Articles"] {
    display: none !important;
  }
  body.cm-home #main [data-framer-name="Journal"] [data-framer-name="Headline"] h2,
  body.cm-home #main [data-framer-name="Journal"] [data-framer-name="Headline"] h2 span {
    font-size: 34px !important;
    --framer-font-size: 34px !important;
    line-height: 1.1 !important;
  }
  body.cm-home #main [data-framer-name="Journal"] [data-framer-name="Headline"] p.framer-text {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
  }
  /* row closer to "Se alle produkter", dots closer to the row
     (round 9: loosened again, 26/6 was a touch too tight) */
  body.cm-home #main [data-framer-name="Journal"] { gap: 0 !important; }
  body.cm-home #main .cm-m-prods {
    margin-top: 40px !important;
  }
  body.cm-home #main [data-framer-name="Journal"] .cm-m-dots {
    margin-top: 12px !important;
  }
  body.cm-home #main .cm-m-prod {
    flex: 0 0 68vw;
    width: 68vw;
    max-width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }
  body.cm-home #main .cm-m-prod-img {
    display: block;
    width: 100%;
    aspect-ratio: 670 / 907;        /* the posters' own shape, as on desktop: no crop */
    overflow: hidden;
    background: var(--cm-bg-wash, #f1ebe6);
    box-shadow: 0 14px 30px rgba(23, 18, 16, 0.12);
  }
  body.cm-home #main .cm-m-prod-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.cm-home #main .cm-m-prod-title {
    margin-top: 18px;
    font-family: var(--cm-font-heading, "Lora", serif);
    font-size: 21px;
    line-height: 1.18;
    color: var(--cm-accent, #c69a92);
  }
  body.cm-home #main .cm-m-prod-teaser {
    margin-top: 8px;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--cm-body, #6b625d);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.cm-home #main .cm-m-prod-price {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    height: 40px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(23, 18, 16, 0.85);
    border-radius: 999px;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.11em !important;
    text-transform: uppercase;
    color: #171210;
  }
  body.cm-home #main .cm-m-prod-price i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }

  /* ---------------------------------------------------------------------
     10. STATS — 2 × 2 instead of four stacked screens.
     --------------------------------------------------------------------- */
  body.cm-home #main #numbers .framer-j3SNS {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 36px 12px !important;
    height: auto !important;
    padding: 0 var(--cm-m-gutter) !important;
  }
  body.cm-home #main #numbers .framer-j3SNS > [data-framer-name="Counter Container"] {
    width: auto !important;
    height: auto !important;
    gap: 6px !important;
  }
  body.cm-home #main #numbers .framer-j3SNS > [data-framer-name="Counter Container"] p {
    font-size: 48px !important;
    --framer-font-size: 48px !important;
  }
  body.cm-home #main #numbers .framer-j3SNS > [data-framer-name="Counter Container"] > div:last-child p.framer-text {
    font-size: 14px !important;
    --framer-font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* ---------------------------------------------------------------------
     11. FAQ — our Danish accordion replaces Framer's English phone one.
     --------------------------------------------------------------------- */
  body.cm-home #main [data-framer-name="FAQ"] .framer-fe0wct-container {
    display: none !important;
  }
  body.cm-home #main [data-framer-name="FAQ"] [data-framer-name="Headline"] h2,
  body.cm-home #main [data-framer-name="FAQ"] [data-framer-name="Headline"] h2 span {
    font-size: 34px !important;          /* same as Lydkurser */
    --framer-font-size: 34px !important;
    line-height: 1.1 !important;
  }
  body.cm-home #main .cm-faq-eyebrow {
    font-size: 11px !important;
    text-align: center !important;
    margin-bottom: 14px !important;
  }
  body.cm-home #main .cm-m-faq {
    width: 100%;
    margin: 8px 0 0;
    border-top: 1px solid rgba(74, 55, 48, 0.12);
    text-align: left;
  }
  body.cm-home #main .cm-m-faq-item {
    border-bottom: 1px solid rgba(74, 55, 48, 0.12);
  }
  body.cm-home #main .cm-m-faq-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 56px;
    padding: 18px 0;
    border: 0;
    background: none;
    text-align: left;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #3f3835;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.cm-home #main .cm-m-faq-q svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 0;
    padding: 4px;
    border: 1px solid rgba(198, 154, 146, 0.7);
    border-radius: 50%;
    fill: none;
    stroke: var(--cm-accent, #c69a92);
    stroke-width: 1.6;
    stroke-linecap: round;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  }
  body.cm-home #main .cm-m-faq-item.is-open .cm-m-faq-q svg { transform: rotate(45deg); }
  body.cm-home #main .cm-m-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.2, 0, 0.2, 1);
  }
  body.cm-home #main .cm-m-faq-item.is-open .cm-m-faq-a { grid-template-rows: 1fr; }
  body.cm-home #main .cm-m-faq-a > div { overflow: hidden; }
  body.cm-home #main .cm-m-faq-a p {
    margin: 0;
    padding: 0 40px 20px 0;
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--cm-body, #6b625d);
  }

  /* ---------------------------------------------------------------------
     12. FOOTER — the two link lists side by side.
     --------------------------------------------------------------------- */
  body footer.framer-cdmgys .framer-1unuzqc {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 16px !important;
  }
  body footer.framer-cdmgys .framer-1lt0l5u,
  body footer.framer-cdmgys .framer-1d965wv {
    gap: 6px !important;
    height: auto !important;
  }
}

/* -------------------------------------------------------------------------
   SUB-PAGE HERO — Om mig, Kurser, Terapi, Min Shop share one top on the
   phone (Oliver 2026-11-26): the title, then the small line at full width,
   with the two drawn rings behind both. The big lead text is left out on the
   phone (it said much the same at three times the length). Same Framer
   structure on all four: Header > Sections > Section > Headline | Text
   Container (+ the rings custom.js puts in) | Lead Text.
   ------------------------------------------------------------------------- */
@media (max-width: 809.98px) {
  body.cm-page-om-mig #main .framer-qbe6jp,
  body.cm-page-kurser #main .framer-1gs0mhr,
  body.cm-page-terapi #main .framer-142f4t5,
  body.cm-page-produkter #main .framer-1v3zvxs {     /* spacer under the bar */
    height: 104px !important;
    min-height: 0 !important;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] {
    position: relative !important;
    isolation: isolate;                 /* rings behind the text, in front of the page */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 var(--cm-m-gutter, 20px) 28px !important;   /* a little more room before the first section */
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] > [data-framer-name="Sections"] { display: contents !important; }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] > [data-framer-name="Sections"] > section,
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] :is([data-framer-name="Headline"], [data-framer-name="Text Container"]),
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] :is([data-framer-name="Headline"], [data-framer-name="Text Container"]) div {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] > [data-framer-name="Sections"] > section:has([data-framer-name="Lead Text"]),
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] > [data-framer-name="Sections"] > section:has([data-framer-name="Page Name"]) {
    display: none !important;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] > [data-framer-name="Sections"] > section:has([data-framer-name="Headline"]) { order: 1; }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] > [data-framer-name="Sections"] > section:has([data-framer-name="Text Container"]) {
    display: flex !important;
    order: 2;
    margin-top: 22px !important;
  }
  /* (before Framer takes over, an extra .ssr-variant wrapper sits between
     these boxes and the text, so the rules below use descendants, not
     direct children — otherwise the top laid out differently for ~0.5s and
     then jumped ~160px) */
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] [data-framer-name="Headline"]::before { content: none !important; }

  /* the title: two lines, one size on all four pages ("Forstå dig selv." is
     the widest half, ~7.3em) */
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] h1.framer-text,
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] h1.framer-text span {
    font-size: min(48px, calc((100vw - 2 * var(--cm-m-gutter, 20px)) / 7.3)) !important;
    --framer-font-size: min(48px, calc((100vw - 2 * var(--cm-m-gutter, 20px)) / 7.3)) !important;
    line-height: 1.08 !important;
    --framer-line-height: 1.08 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
  }

  /* the small line, full width; its box anchors the rings */
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] [data-framer-name="Text Container"] div:has(> p.framer-text) {
    position: relative !important;
    display: block !important;
    white-space: normal !important;     /* raw line breaks around the text */
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] [data-framer-name="Text Container"] div::before { content: none !important; }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] [data-framer-name="Text Container"] p.framer-text {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    translate: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    white-space: normal !important;     /* the raw page has the text indented
                                           over several lines; Framer's pre-wrap
                                           showed that for ~0.5s, then jumped */
    text-align: left !important;
    --framer-text-alignment: left !important;
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
    --framer-line-height: 1.65 !important;
    color: var(--cm-body, #35312d) !important;
    --framer-text-color: var(--cm-body, #35312d) !important;
  }

  /* the rings: lower-right, reaching up behind the title */
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] [data-framer-name="Text Container"] > div > .cm-rings {
    display: block !important;
    position: absolute !important;
    z-index: -1;
    right: -34px;
    /* top edge just above the title, whatever the line's length: the gap
       (22px) + the two title lines (2 × 1.08 × the title size) + 14px */
    top: calc(-36px - 2.16 * min(48px, calc((100vw - 2 * var(--cm-m-gutter, 20px)) / 7.3)));
    width: min(310px, 82vw);
    height: auto;
    aspect-ratio: 489 / 414;
    margin: 0 !important;
    overflow: visible;
    pointer-events: none;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter) #main [data-framer-name="Header"] [data-framer-name="Text Container"] > div > .cm-rings circle {
    fill: none;
    stroke: var(--cm-accent, #c08276);
    stroke-opacity: 0.55;
    stroke-width: 1.1;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;               /* drawn by custom.js / subHeroRings() */
  }

  /* The "Næste skridt" trust line at the bottom of the same four pages:
     hearts left, "Betroet af over 1K+ kvinder" (shortened by mobil.js) on
     one line with the rating under it. */
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter, .cm-page-book) .cm-about-social-proof {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    gap: 14px !important;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter, .cm-page-book) .cm-about-proof-avatars.cm-proof-hearts {
    --cm-proof-k: 0.85;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter, .cm-page-book) .cm-about-proof-copy p {
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    margin: 0 0 5px !important;
  }
  body:is(.cm-page-om-mig, .cm-page-kurser, .cm-page-terapi, .cm-page-produkter, .cm-page-book) .cm-about-proof-copy div {
    font-size: 15px !important;
  }
  /* the same body weight and button height in all four "Næste skridt" blocks
     (Terapi's text was a weight heavier, Min Shop's button 39px) */
  body:is(.cm-page-terapi, .cm-page-produkter) .cm-injected-cta p:not(.cm-about-proof-copy p) {
    font-weight: 300 !important;
  }
  body:is(.cm-page-terapi, .cm-page-produkter) .cm-injected-cta a.cm-cta-dark {
    height: 44px !important;
  }
}

/* -------------------------------------------------------------------------
   SUB-PAGE REVEALS — one rule for every sub-page on the phone (Oliver
   2026-11-26: "det hele bare var der til at starte med"). The site's slow
   2.4s fade is off; js/mobil.js (subReveals) tags each .cm-reveal group:
   whatever is on the screen when the page opens is simply there, the rest
   fades up 12px over 0.9s as it comes into view. Kurser's own pieces and
   Terapi's steps run their own (same timing) and are left out.
   Since the phone reveal v2 (js/mobil.js) the same fade also runs on the
   front page's lower sections, tall groups fade piece by piece, and a piece
   fades in again after it has dropped out of the bottom (as on the laptop).
   ------------------------------------------------------------------------- */
@media (max-width: 809.98px) {
  /* until a group is tagged, the site's own fade must not hide it */
  html.cm-m body:not(.cm-home).cm-reveal-armed .cm-reveal:not(.cm-m-rv) {
    opacity: 1 !important;
    transition: none !important;
  }
  html.cm-m-rv-on body .cm-m-rv.cm-m-rv {
    opacity: 1 !important;
    translate: none;
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), translate 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  }
  html.cm-m-rv-on body .cm-m-rv.cm-m-rv:not(.cm-m-in) {
    opacity: 0 !important;
    translate: 0 12px;
  }
  html.cm-m-rv-on body .cm-m-rv.cm-m-rv.cm-m-now {
    transition: none !important;
  }
}

/* -------------------------------------------------------------------------
   SECTION RHYTHM — one even beat (~72px) between sections instead of
   Framer's mix of 80/100/200px, plus the reviews and footer tightened.
   ------------------------------------------------------------------------- */
@media (max-width: 809.98px) {
  body.cm-home #main [data-framer-name="Our Services"] { padding-top: 36px !important; }
  body.cm-home #main [data-framer-name="Our Philosophy"] { padding-top: 0 !important; padding-bottom: 0 !important; }
  body.cm-home #main [data-framer-name="Our Philosophy"] .framer-1jyixzk { gap: 22px !important; padding-top: 72px !important; }
  /* Framer pulls Story A up under the statement (-60px); on phone that glued
     the photo to the last line */
  body.cm-home #main [data-framer-name="Story A"] { margin-top: 0 !important; padding-top: 56px !important; }
  body.cm-home #main [data-framer-name="How It Works"] { padding-top: 80px !important; padding-bottom: 80px !important; }
  body.cm-home #main [data-framer-name="How It Works"] [data-framer-name="Text Container"] { gap: 20px !important; }
  body.cm-home #main [data-framer-name="Journal"] { padding-top: 60px !important; padding-bottom: 40px !important; }
  body.cm-home #main [data-framer-name="Text Section"] { padding-top: 56px !important; padding-bottom: 40px !important; }
  /* the numbers now close the page under the FAQ (custom.css "FAQ + TAL") */
  body.cm-home #main [data-framer-name="FAQ"] { margin-top: 0 !important; padding-top: 72px !important; padding-bottom: 64px !important; }
  body.cm-home #main [data-framer-name="Numbers"] { padding-bottom: 24px !important; }

  /* Reviews — one compact card (Oliver 2026-11-26): a mini wheel with only
     the current reviewer showing, top-left (the next one drops in from above,
     the last one sinks out below), the review under it, the quote mark in the
     bottom-right corner, then stars + button. The text box is sized to the
     longest review by reviewsFit() in js, so nothing jumps as they change. */
  body.cm-home .custom-customer-reviews {
    /* more air above than the usual 72px beat (Oliver 2026-11-27) */
    padding: 112px var(--cm-m-gutter, 20px) 60px !important;
  }
  body.cm-home .custom-customer-reviews .reviews-header {
    margin-bottom: 28px !important;
  }
  body.cm-home .custom-customer-reviews .reviews-subtitle {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  body.cm-home .custom-customer-reviews .reviews-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  body.cm-home .custom-customer-reviews .reviews-left {
    width: 100% !important;
    height: 60px !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden !important;
  }
  body.cm-home .custom-customer-reviews .timeline-svg { display: none !important; }
  body.cm-home .custom-customer-reviews .avatar-item {
    opacity: 0 !important;
    transform: translate(0, 6px) scale(0.9) !important;
  }
  body.cm-home .custom-customer-reviews .avatar-item.active {
    opacity: 1 !important;
    transform: translate(0, 6px) scale(1) !important;
  }
  body.cm-home .custom-customer-reviews .avatar-item.prev,
  body.cm-home .custom-customer-reviews .avatar-item.enter-top,
  body.cm-home .custom-customer-reviews .avatar-item.hidden-teleport {
    transform: translate(0, -44px) scale(0.85) !important;
  }
  body.cm-home .custom-customer-reviews .avatar-item.next,
  body.cm-home .custom-customer-reviews .avatar-item.exit-bottom {
    transform: translate(0, 56px) scale(0.85) !important;
  }
  body.cm-home .custom-customer-reviews .avatar-img-wrapper {
    width: 46px !important;
    height: 46px !important;
  }
  body.cm-home .custom-customer-reviews .avatar-item.active .avatar-img-wrapper { transform: none !important; }
  body.cm-home .custom-customer-reviews .avatar-name { font-size: 15px !important; }
  body.cm-home .custom-customer-reviews .avatar-date { font-size: 13px !important; }
  body.cm-home .custom-customer-reviews .reviews-right {
    padding-left: 0 !important;
    --cm-reviews-inset: 0px;
  }
  body.cm-home .custom-customer-reviews .reviews-right .review-text-container {
    min-height: 0 !important;
    height: var(--cm-m-review-h, 210px) !important;
    margin-top: 18px !important;
    max-width: none !important;
  }
  /* Caveat handwriting, as on desktop (Oliver 2026-11-27; was Montserrat). */
  body.cm-home .custom-customer-reviews .reviews-right p.review-text,
  body.cm-home .custom-customer-reviews .review-text {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    font-family: "Caveat", cursive !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 23px !important;
    line-height: 1.3 !important;
    transform: none !important;
    filter: none;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.6s ease, filter 0.6s ease !important;
  }
  /* a change you can see: the old review sinks and blurs away, the new one
     settles in from above out of a blur */
  body.cm-home .custom-customer-reviews .review-text.slide-in-top {
    transform: translateY(-28px) !important;
    filter: blur(6px);
  }
  body.cm-home .custom-customer-reviews .review-text.slide-out-bottom {
    transform: translateY(28px) !important;
    filter: blur(6px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 1, 1), opacity 0.45s ease, filter 0.45s ease !important;
  }
  body.cm-home .custom-customer-reviews .review-text-container::before {
    content: "\201C" !important;      /* top-right, level with the reviewer */
    top: -44px !important;
    left: auto !important;
    right: 0 !important;
    bottom: auto !important;
    font-size: 96px !important;
    line-height: 0 !important;
  }
  body.cm-home .custom-customer-reviews .cm-reviews-foot {
    margin: 30px 0 0 !important;
    padding-top: 24px !important;
    row-gap: 26px !important;          /* facts line -> black button */
    max-width: none !important;
  }
  /* the facts on one line: "5 ud af 5 ★ · 140+ anmeldelser · 1.000+ kvinder" */
  body.cm-home .custom-customer-reviews p.cm-reviews-meta {
    white-space: nowrap !important;
    font-size: min(14px, 3.6vw) !important;
  }
  body.cm-home .custom-customer-reviews .cm-reviews-stars { display: none !important; }
  body.cm-home .custom-customer-reviews .cm-reviews-stars + span::after {
    content: " \2605";
    color: var(--cm-accent, #c08276);
  }

  /* Footer */
  /* Content packed tighter and moved down; the padding takes up what the
     gaps gave back, so the footer stays the same height (Oliver 2026-11-26). */
  body footer.framer-cdmgys {
    padding-top: var(--cm-m-foot-top, 192px) !important;
    padding-bottom: 32px !important;    /* socials + © sit 18px lower, footer same height */
    gap: 24px !important;
  }
  body footer.framer-cdmgys .framer-5y5lvp { gap: 24px !important; }
  body footer.framer-cdmgys .framer-167n8mr { gap: 26px !important; }
  body footer.framer-cdmgys .framer-1s1xz2m { gap: 12px !important; }
  body footer.framer-cdmgys .framer-5d9ebz { gap: 16px !important; }
  body footer.framer-cdmgys .framer-7edq71 { gap: 14px !important; }
  body footer.framer-cdmgys .framer-111lakq { gap: 12px !important; margin-top: 58px !important; }
  body footer.framer-cdmgys [data-framer-name="Social Links"] { margin-top: 0 !important; }
  /* Seamless start, like desktop: the warm picture begins well above the
     footer and fades in from nothing (it started at the footer's edge with a
     short fade, and the picture's own top edge showed as a line). */
  body footer.framer-cdmgys .framer-1d0d1sn {
    top: -30px !important;               /* fade starts a little lower */
    height: calc(100% + 30px) !important;
    pointer-events: none !important;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 230px) !important;
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 230px) !important;
  }
  body footer.framer-cdmgys .framer-1d0d1sn img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 200px);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 200px);
  }
  body footer.framer-cdmgys .framer-bw093q { padding-top: 0 !important; }
  body footer.framer-cdmgys .framer-16xm49o { gap: 18px !important; }
  /* "Kontakt" is a ::before on the right list; lift that list so its label
     sits on the same line as "Udforsk" */
  body footer.framer-cdmgys .framer-1d965wv {
    margin-top: -3px !important;      /* first row level with "Forside" */
  }
  body footer.framer-cdmgys .framer-1d965wv::before {
    margin-bottom: 16px !important;   /* label level with "Udforsk" */
  }
}

/* Guard: the phone-only pieces never show above the phone width (they are
   only ever built on a phone, this covers rotating / resizing). */
@media (min-width: 810px) {
  .cm-mmenu,
  .cm-mbtn,
  .cm-m-dots,
  .cm-m-prods,
  .cm-m-faq,
  .cm-m-more {
    display: none !important;
  }
}

/* =========================================================================
   UNDERSIDERNES INDGANG PÅ TELEFON  (js/mobil.js: "SUB-PAGE INTRO")
   -------------------------------------------------------------------------
   On the laptop the sub-pages arrive the Framer way: the page stays blank
   until Framer has taken over, then the logo rises, the title comes DOWN
   into place and the text rises, each fading in over 1s. Framer switches
   that off for phones (its appear settings say null below 1200px), so on the
   phone the hero used to show at once and then visibly re-arrange itself
   (logo, menu button and the "Min historie" photo jumping in ~1-2s later).

   Now the phone does the laptop's entrance:
     1. GATE — the page content stays blank until it has settled (Framer has
        hydrated and the phone layout is applied). js/mobil.js then sets
        html.cm-m-go. A pure-CSS fail-safe shows everything after 4s even if
        no script ever runs.
     2. INTRO — every element Framer animates on the laptop gets the SAME
        movement on the phone: js/mobil.js reads Framer's own values
        (distance, delay, duration, curve) and plays them with
        element.animate() (a CSS class would be wiped by Framer's re-render).
        The block under the hero fades/rises in just after (0.6s), the way
        the laptop's lead text follows the title. The menu button rises with
        the first nav link (0.4s).
   Phone only, sub-pages only (the front page has its own intro).
   ========================================================================= */
@media (max-width: 809.98px) {
  html:not(.cm-m-go) body[class*="cm-page-"]:not(.cm-home) #main,
  html:not(.cm-m-go) body[class*="cm-page-"]:not(.cm-home) #cm-mbtn,
  html:not(.cm-m-go) body[class*="cm-page-"]:not(.cm-home) #cm-book-dock {
    animation: cm-m-gate 4s step-end both;   /* blank, then shown at 4s no matter what */
  }
  @keyframes cm-m-gate {
    0%   { opacity: 0; }
    100% { opacity: 1; }
  }
}
