
/* ===== block 00 ===== */
  /* ============ FONTS ============ */
  @font-face { font-family: "Sora"; src: url("../fonts/sora-variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
  @font-face { font-family: "Manrope"; src: url("../fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
  /* Maths symbols, sub- and superscripts drawn to match Manrope, so they look the same on every device */
  @font-face { font-family: "DP Math"; src: url("../fonts/dp-math.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
    unicode-range: U+2B, U+3C-3E, U+B1, U+D7, U+2212, U+2248, U+2264-2265, U+2197, U+21CC, U+2713, U+207A, U+2080-2090; }

  /* ============ COLOURS & SIZES (edit here) ============ */
  :root {
    --black: #000000;
    --white: #ffffff;
    --gold:  #DBA426;
    --grey:  #B8BDC6;
    --blue:  #193BB5;   /* royal lapis, only on Sign Up */
    --blue-hover: #2040C5;
    /* primary buttons: the gilded gold of the hero's Start Lesson */
    --gold-btn: linear-gradient(180deg, #E2AF45 0%, #CF9A2C 100%);        /* a flatter take on the gold of "Confidence" */
    --gold-btn-hover: linear-gradient(180deg, #E8B952 0%, #D6A336 100%);
    --gold-btn-ink: #1A1305;
    --ink:   #0F172A;   /* headline on the white section */
    --muted: #5B6472;   /* paragraph on the white section */
    --line:  rgba(255,255,255,0.18);

    /* Size unit: 1px up to a 1440px-wide screen, then grows with the screen
       (about 1.6px at 2560px and 2.25px at 3840px), so large monitors and TVs
       get proportionally larger type and spacing instead of empty side bands. */
    --u: max(1px, calc(0.25px + 0.052vw));
    --gutter: calc(max(clamp(16px, 3vw, 40px), 2.9vw) + var(--safe-x));   /* left and right page margin, clear of a sideways phone's camera */
    --section-y: clamp(40px, 4vw, calc(58 * var(--u)));  /* one rhythm: space above and below every section */

    --header-h: calc(64 * var(--u));   /* black bar height */
    --safe-top: env(safe-area-inset-top, 0px);   /* notch / status bar on phones, 0 elsewhere */
    --safe-l: env(safe-area-inset-left, 0px);    /* camera notch / Dynamic Island when a phone is held sideways */
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-x: max(var(--safe-l), var(--safe-r)); /* same on both sides, so centred content stays centred */
    --header-total: calc(var(--header-h) + var(--safe-top));   /* what the fixed header really covers */
    --mark-h: calc(46 * var(--u));     /* pharaoh logo height */
    --wordmark-h: calc(20 * var(--u)); /* title logo height */
    --text-col: max(584px, 40.5vw);    /* black text area before the video starts (keeps the 1440px proportions on wider screens) */
    --partition-extra: 12px; /* widens the black divider only; the video stays where it is */
    --scrub-length: 64vh;  /* scroll distance of the tooth reveal: every frame still plays, in about a third less scrolling (was 90vh) */
    --peek: calc(116 * var(--u)); /* shows the band's icons and titles under the hero on first load */
    --band-y: calc(32 * var(--u)); /* equal space above and below the band's content */
    --band-gap: clamp(24px, 3vw, calc(48 * var(--u)));

    --cream: #F7F5F1;   /* next-section background */
    --band:  #EAE8E3;   /* the band under the hero */
    --band-rule: #D4CEC3; /* its dividers: one quiet solid tone */
    --gold-deep: #9C6B17; /* gold for icons on cream (the bright gold is too faint there) */
    --pharaoh-light: #D9A62A; /* offer icons use these two to match the gilded pharaoh logo */
    --pharaoh-dark:  #8C5A05;
    --body-grey: #6A6A6A;

    --sans: "DP Math", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "DP Math", "Sora", "Manrope", system-ui, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; background: var(--black); }  /* black behind the page, so Safari's bar and overscroll stay black */
  /* the room for the fixed header moves from <body> to <main>: pinned (sticky) items measure
     from the scroller's padding edge, so padding on the scroller itself would double it */
  body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased;
         padding-top: var(--header-total); }  /* room for the fixed header */
  img { -webkit-user-drag: none; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

  /* ============ HEADER ============ */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: var(--black); color: var(--white);
    padding-top: var(--safe-top);
  }
  .nav {
    position: relative;
    height: var(--header-h);
    padding: 0 var(--gutter);
    display: flex; align-items: center;
  }
  .brand { display: flex; align-items: center; gap: calc(12 * var(--u)); flex-shrink: 0; }
  .brand .mark { height: var(--mark-h); width: auto; }
  .brand .wordmark { height: var(--wordmark-h); width: auto; }

  .nav-left { display: flex; align-items: center; gap: calc(4 * var(--u)); margin-left: clamp(28px, 4vw, calc(56 * var(--u))); }
  .nav-right { display: flex; align-items: center; gap: calc(4 * var(--u)); margin-left: auto; }

  .nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    height: calc(40 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: calc(8 * var(--u));
    font-size: calc(15 * var(--u)); font-weight: 500; color: var(--white);
    transition: background .15s;
  }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(255,255,255,0.08); }
  .nav-link svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); transition: transform .2s; }
  .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

  .icon-btn { width: calc(40 * var(--u)); padding: 0; justify-content: center; }
  .icon-btn svg { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }  /* space between For Patients and Log In */

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: calc(40 * var(--u)); padding: 0 calc(18 * var(--u)); border-radius: calc(8 * var(--u));
    font-size: calc(15 * var(--u)); font-weight: 600; white-space: nowrap;
    transition: background .15s, border-color .15s;
  }
  .btn-outline { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
  .btn-outline:hover { border-color: var(--white); }
  .btn-gold { background: var(--gold-btn); color: var(--gold-btn-ink); box-shadow: 0 6px 18px -12px rgba(219,164,38,.24); }
  .btn-gold:hover { background: var(--gold-btn-hover); }
  .btn-signup { background: var(--blue); color: var(--white); }
  .btn-signup:hover { background: var(--blue-hover); }
  .nav-right .btn-signup { margin-left: calc(8 * var(--u)); }

  /* Courses dropdown */
  .menu-wrap { position: relative; }
  .dropdown {
    position: absolute; top: calc(100% + 12px); left: 0;
    min-width: calc(250 * var(--u)); padding: calc(8 * var(--u));
    background: #0d0d0d; border: 1px solid var(--line); border-radius: 12px;
    display: none;
  }
  .dropdown.open { display: block; }
  .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
  .dropdown a { display: block; padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: 8px; font-size: calc(14.5 * var(--u)); color: var(--white); }
  .dropdown a:hover { background: rgba(255,255,255,0.07); }
  /* Courses: only live courses are links (same as the lesson pages) */
  .dropdown .course-unavailable { display:block; padding:10px 12px; border-radius:8px; font-size:14.5px; color:#777; cursor:default; user-select:none; }
  .dropdown a.course-available { display:flex; align-items:center; justify-content:space-between; gap:14px; white-space:nowrap; }
  .course-badge { display:inline-flex; align-items:center; flex-shrink:0; padding:3px 6px; border:1px solid rgba(216,178,101,.55); border-radius:4px; color:#D8B265; font-size:9px; font-weight:700; line-height:1.3; letter-spacing:.055em; }
  .mm-sub .course-unavailable { display:block; padding:10px 4px; font-size:15px; color:#777; cursor:default; user-select:none; }
  .mm-sub a.course-available { display:flex; align-items:center; justify-content:space-between; gap:12px; }

  /* Search panel (opens under the bar) */
  .search-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); border-top: 1px solid var(--line);
    padding: 18px var(--gutter) 22px;
    display: none;
  }
  .search-panel.open { display: block; }
  .search-inner { max-width: calc(720 * var(--u)); margin: 0 auto; position: relative; }
  .search-inner > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--grey); pointer-events: none; }
  .search-inner input {
    width: 100%; height: calc(50 * var(--u)); padding: 0 48px;
    background: #141414; color: var(--white);
    border: 1px solid var(--line); border-radius: 10px;
    font: 500 calc(16 * var(--u)) var(--sans);
  }
  .search-inner input::placeholder { color: #8a909a; }
  .search-inner input:focus { outline: none; border-color: var(--gold); }
  .search-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; color: var(--grey); display: grid; place-items: center; }
  .search-close:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .search-close svg { width: 16px; height: 16px; }

  .menu-toggle { display: none; }
  .mobile-menu { display: none; }

  /* ============ HERO ============ */
  /* The wrapper gives room to scroll. The hero and the band below it are pinned
     together as ONE unit while the tooth animation follows the scroll, then scroll
     on together. Because the band is attached to the hero (not to the bottom of the
     screen), no gap can open between them when a phone's address bar slides away
     or on screens with a notch. */   /* the scroll distance of the tooth reveal */
  .hero {
    position: relative; overflow: hidden;
    background: var(--black); color: var(--white);
    height: calc(100vh - var(--header-total) - var(--peek));
    height: calc(100svh - var(--header-total) - var(--peek));
    height: calc(var(--vh, 100svh) - var(--header-total) - var(--peek)); /* --vh is set by JS from the real window height */
    min-height: calc(520 * var(--u));
    min-height: min(calc(520 * var(--u)), calc(var(--vh, 100svh) - var(--header-total)));  /* never taller than the screen below the header, so nothing is cut off on short screens */
    display: flex; align-items: center;
  }
  /* Video sits on the right; main tooth stays centred in it */
  .hero-media {
    position: absolute; top: 0; right: var(--safe-r); bottom: 0;   /* clear of a sideways phone's camera */
    width: 62%;
    overflow: hidden; background: var(--black);
    pointer-events: none;
  }
  .hero-media img, .hero-media canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
  }

  /* Black partition: straight edge covering the text area plus extra space */
  .eyebrow {
    margin: 0 0 calc(18 * var(--u));
    font-size: calc(14 * var(--u)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gold);
  }
  /* Sample Lesson uses the same white outline as Log In (.btn-outline) */
  .hero h1 {
    margin: 0 0 calc(22 * var(--u));
    font-family: var(--display); font-weight: 600;
    font-size: clamp(38px, 5.4vw, calc(68 * var(--u))); line-height: 1.04; letter-spacing: -0.025em;
    margin-left: -0.035em; /* optical alignment: Sora's B sits slightly in from the edge */
    color: var(--white);
  }
  .nw { white-space: nowrap; }

  /* ============ WHAT THE SITE OFFERS ============ */
  /* Pinned with the hero (see .hero-pin): its top edge shows under the hero during the
     tooth animation, then it scrolls on normally. */
  /* Four equal columns; each item is centred: icon, title, text */ /* gilded like the pharaoh logo: deep enough to hold on cream */
  /* short gold rules between the items: vertical side by side, horizontal when stacked */   /* every description sits on exactly three lines */
  @media (max-width: 600px) {
    :root { --band-y: 30px; }
  }




  /* =====================================================================
     SECTIONS BELOW THE HERO
     Every section uses the same scaffolding: .sec sets the colour and the
     vertical rhythm, .scale holds the content. Content inside .scale is
     designed at laptop size (1440px wide) and enlarged evenly on large
     monitors and TVs (JS sets --zw, the same curve as --u).
     ===================================================================== */
  .scale { zoom: var(--zw, 1); }
  .sec { position: relative; padding: var(--section-y) var(--gutter); }
  .sec-dark  { background: var(--black); color: var(--white); }
  .sec .eyebrow { font-size: 13px; margin: 0 0 14px; }
  .sec-title {
    margin: 0 0 16px; margin-left: -0.03em;
    font: 600 clamp(32px, 3.3vw, 48px)/1.08 var(--display); letter-spacing: -0.025em; text-wrap: balance;
  }
  .sec-lede { margin: 0; max-width: 34em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
  .sec-dark .sec-lede { color: var(--grey); }

  /* =====================================================================
     INSIDE A LESSON: a scroll tour of one real lesson
     Laptops and TVs: the steps scroll on the left while the lesson frame stays
     pinned on the right (JS sets --stick, --stage-full and --stage-h).
     Tablets and phones: each step shows its own frame.
     ===================================================================== */
  .showcase { padding-top: var(--section-y); }
  .showcase .sc-head { max-width: 560px; padding-top: 18px; }
  .br-lg { display: none; }
  .showcase .sec-title { font-size: clamp(32px, 3.3vw, 48px); }
  @media (min-width: 1100px) and (orientation: landscape) { .br-lg { display: inline; } }
  .tour { display: grid; grid-template-columns: minmax(340px, 42fr) minmax(0, 58fr); gap: 0 clamp(40px, 4.5vw, 72px); }
  .tour-steps { min-width: 0; }
  .tour-step { min-height: calc(var(--vhz, 100vh) * .74); display: flex; flex-direction: column; justify-content: center; padding: 32px 0; opacity: .3; transition: opacity .5s ease; }
  .tour-step.on { opacity: 1; }
  .tour-step:first-of-type { min-height: calc(var(--vhz, 100vh) * .6); }
  .tour-step:last-child { min-height: calc(var(--vhz, 100vh) * 1.02); }   /* the frame stays pinned while the last step is read */
  .step-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 15px var(--sans); color: var(--gold); }
  .step-kicker .tile { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(219,164,38,.12); }
  .step-kicker svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tour-step > h3 { margin: 0 0 14px; font: 600 clamp(26px, 2.3vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
  .step-text { margin: 0; max-width: 26em; font-size: 17px; line-height: 1.65; color: var(--grey); text-wrap: pretty; }
  .step-cta { align-self: flex-start; margin-top: 26px; height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
  .tour-media { display: none; }
  .tour-stage { position: sticky; top: var(--stick, 64px); align-self: start; height: var(--stage-full, auto); min-width: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 18px 0; }
  .tour-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; }
  .tour-dot { position: relative; padding: 6px 1px; font: 600 13px var(--sans); color: rgba(255,255,255,.45); transition: color .3s; }
  .tour-dot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .tour-dot:hover, .tour-dot.on { color: #fff; }
  .tour-dot.on::after { transform: scaleX(1); }

  /* ---- The lesson frame ---- */
  .demo {
    --page: #ffffff; --surface-2: #F7F5F1; --side: #FBFAF7; --text: #0F172A; --text-2: #4B5563; --text-3: #8A8F98;
    --rule: #ECE8E1; --rule-strong: #D9D3C8; --accent: #9C6B17; --accent-soft: rgba(219,164,38,0.13);
    --hl-yellow: #FFE58A; --hl-green: #C2EFC6; --hl-orange: #FFCB94; --hl-blue: #BFDBFF; --hl-pink: #FFC9E6;
    --gloss-line: rgba(156,107,23,.55); --cbg: #F5F7FB; --cbd: #CED2D8; --clbl: #2F5EA8;
    position: relative; min-width: 0; color-scheme: light; display: flex; flex-direction: column;
    height: var(--stage-h, auto); background: var(--page); color: var(--text); border-radius: 20px; overflow: hidden;
  }
  .demo-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 50px; padding: 0 32px; border-bottom: 1px solid var(--rule); font: 600 14px var(--sans); color: var(--text-2); background: #fff; }
  .mini-link { font: 600 13.5px var(--sans); color: var(--gold-deep); white-space: nowrap; }
  .mini-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  /* Structured Lesson: the real page, sidebars that open and close, scrollable to the end of the summary */
  /* Mechanism of Action: the lesson's own figure, scrollable inside the frame */
  .panel-figure .fig-scroll { height: 100%; overflow-y: auto; padding: 22px 28px 24px; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent; }
  .demo .la-mech .la-tag { display: none; }
  .demo .la-mech { max-width: none; }
  .lx-text .callout { margin-top: 18px; }
  .demo-body { position: relative; flex: 1; min-height: 0; container-type: inline-size; }
  .demo [hidden] { display: none !important; }
  .demo button { -webkit-tap-highlight-color: transparent; }
  .demo .btn { height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
  .demo .nw { white-space: nowrap; }

  /* every tab: a main column and, where useful, a study column (like the lesson's right panel) */
  .panel { height: 100%; min-height: 0; background: var(--page); color: var(--text); }
  /* pinned frame: panels cross-fade as the steps change */
  .demo-body > .panel { position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .32s ease, visibility 0s linear .32s; }
  .demo-body > .panel.on { opacity: 1; visibility: visible; transition: opacity .42s ease .06s, visibility 0s linear 0s; }

  .panel.split { display: grid; grid-template-columns: minmax(0, 1fr) 264px; }
  .p-main { position: relative; min-width: 0; min-height: 0; padding: 28px 34px 30px; overflow: hidden; display: flex; flex-direction: column; }

  .seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px; background: var(--page); }
  .seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s; }
  .seg button[aria-pressed="true"] { background: var(--text); color: var(--page); }

  /* ---- Interactive figure ---- */
  .mx { display: flex; flex-direction: column; height: 100%; padding: 26px 34px 24px; }
  .round-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); color: var(--text-2); transition: border-color .15s, color .15s; }
  .round-btn:hover { color: var(--text); border-color: var(--text-2); }
  .round-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  /* diagram parts */

  /* Agent menu: a styled list that drives the native select */
  .fsel{position:relative;display:inline-flex}
  .fsel select{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none}
  .fsel-btn{display:inline-flex;align-items:center;gap:10px;height:38px;padding:0 13px 0 16px;border:1px solid var(--rule-strong);border-radius:999px;background:var(--page);color:var(--text);font:600 14px var(--sans);white-space:nowrap;transition:border-color .15s,box-shadow .15s}
  .fsel-btn:hover{border-color:var(--text-2)}
  .fsel-btn svg{width:14px;height:14px;color:var(--text-3);transition:transform .2s}
  .fsel.open .fsel-btn{border-color:var(--text);box-shadow:0 0 0 3px var(--accent-soft)}
  .fsel.open .fsel-btn svg{transform:rotate(180deg)}
  .fsel-menu{position:absolute;z-index:40;right:0;top:calc(100% + 8px);min-width:max(100%,200px);margin:0;padding:5px;list-style:none;border-radius:14px;background:var(--page);border:1px solid var(--rule-strong);box-shadow:0 14px 34px -12px rgba(30,24,10,.28);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .16s,transform .2s cubic-bezier(.2,.8,.2,1),visibility 0s linear .2s}
  .fsel.open .fsel-menu{opacity:1;visibility:visible;transform:none;transition-delay:0s}
  .fsel-opt{display:flex;align-items:center;justify-content:space-between;gap:14px;height:32px;padding:0 10px;border-radius:8px;font-size:14px;color:var(--text);cursor:pointer}
  .fsel-opt small{margin-left:auto;font-size:12.5px;color:var(--text-3);font-variant-numeric:tabular-nums}
  .fsel-opt:hover,.fsel-opt.act{background:var(--surface-2)}
  .fsel-opt svg{flex:none;width:15px;height:15px;color:var(--accent);opacity:0}
  .fsel-opt[aria-selected="true"]{font-weight:600}
  .fsel-opt[aria-selected="true"] svg{opacity:1}

  /* ---- Lesson text: Highlights and Key Terms ---- */
  .lx-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .lx-text { font-size: calc(17px * var(--fs, 1)); line-height: 1.8; color: var(--text); max-width: 40em; transition: font-size .25s ease; }
  .lx-text p { margin: 0 0 1em; }
  .lx-text > :last-child { margin-bottom: 0; }
  .callout { margin: 0; padding: 18px 22px; border-radius: 14px; background: var(--cbg, var(--surface-2)); border: 1px solid var(--cbd, var(--rule)); }
  .callout + .callout { margin-top: 16px; }
  .callout p + p { margin-top: .7em; }
  .callout-label { margin-bottom: 8px; font: 700 11.5px/1.6 var(--sans); letter-spacing: .065em; text-transform: uppercase; color: var(--clbl, #2F5EA8); }
  .callout p { margin: 0; font-size: 16px; line-height: 1.7; }

  .cite {
    display: inline-grid; place-items: center; vertical-align: .3em;
    min-width: 20px; height: 20px; padding: 0 4px; margin-left: 3px; border-radius: 999px;
    font: 700 10px/1 var(--sans); color: var(--accent); background: var(--accent-soft);
    -webkit-user-select: none; user-select: none; transition: background .15s, color .15s;
  }
  .cite + .cite { margin-left: 2px; }
  .cite:hover, .cite[aria-expanded="true"] { background: var(--accent); color: var(--page); }
  .ref-n { flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font: 700 11px var(--sans); color: var(--accent); background: var(--accent-soft); }
  .gloss {
    cursor: pointer; border-radius: 3px;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .24em;
    text-decoration-color: var(--gloss-line, rgba(156,107,23,.55));
    background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat 0 100% / 100% 0;
    transition: background-size .28s cubic-bezier(.2,.8,.2,1), text-decoration-color .2s;
  }
  .gloss:hover, .gloss[aria-expanded="true"] { background-size: 100% 100%; text-decoration-color: var(--accent); }

  /* cards that open only when a citation or a term is clicked */
  .pop { position: absolute; z-index: 61; display: none; border-radius: 14px; background: var(--page); border: 1px solid var(--rule-strong); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
  .pop.show { display: block; animation: popIn .18s cubic-bezier(.2,.8,.2,1); }
  @keyframes popIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .cite-pop { width: max-content; max-width: min(320px, calc(100% - 24px)); padding: 11px 15px; }
  .cite-row { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
  .cite-row + .cite-row { margin-top: 8px; }
  .term-pop { width: min(340px, calc(100% - 24px)); border: 1px solid transparent;
    background: linear-gradient(var(--page), var(--page)) padding-box, linear-gradient(135deg, #EBCB7E, #B98A2C 45%, #E4C26F 75%, #B98A2C) border-box;
    box-shadow: 0 1px 2px rgba(40,28,6,.06), 0 14px 34px -10px rgba(60,40,10,.24); }
  .tp-head { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 0; }
  .tp-term { font: 600 16.5px/1.3 var(--display); letter-spacing: -.01em; color: var(--text); }
  .tp-kind { font: italic 500 13px/1 var(--sans); color: var(--accent); }
  .tp-def { margin: 6px 0 0; padding: 0 20px 16px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

  /* highlighter (the lesson's method, without notes) */
  .lx-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
  .pen-wrap { display: inline-flex; align-items: center; gap: 6px; }
  .pen-tray { display: inline-flex; align-items: center; gap: 2px; height: 36px; border: 1px solid transparent; border-radius: 999px;
    max-width: 0; opacity: 0; padding: 0; overflow: hidden; white-space: nowrap;
    transition: max-width .32s ease, opacity .22s ease, padding .32s ease, border-color .22s ease; }
  .pen-wrap.open .pen-tray { max-width: 400px; opacity: 1; padding: 0 4px; border-color: var(--rule-strong); }
  .pen { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text-2); transition: background .15s; }
  .pen:hover { background: var(--surface-2); }
  .pen i { width: 15px; height: 15px; border-radius: 50%; display: block; transition: transform .15s, box-shadow .15s; }
  .pen[aria-pressed="true"] i { transform: scale(1.12); box-shadow: 0 0 0 2px var(--page), 0 0 0 3.5px var(--text); }
  .pen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pen-erase[aria-pressed="true"] { background: var(--text); color: var(--page); }
  .pen[disabled] { opacity: .35; cursor: default; background: none; }
  .pen-sep { width: 1px; height: 18px; background: var(--rule-strong); margin: 0 4px; flex: none; }
  .pen-toggle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
    border: 1px solid var(--rule-strong); color: var(--text-2); transition: background .15s, color .15s, border-color .15s; }
  .pen-toggle:hover { border-color: var(--text-2); color: var(--text); }
  .pen-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pen-wrap.open .pen-toggle { background: var(--text); color: var(--page); border-color: var(--text); }
  .switch { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 2px; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--rule-strong); position: relative; transition: background .2s; flex: none; }
  .switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
  .switch[aria-checked="true"] .track { background: var(--gold); }
  .switch[aria-checked="true"] .track::after { transform: translateX(14px); }
  mark.hl { color: inherit; padding: 1px 0; border-radius: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: pointer; transition: background-color .2s, box-shadow .3s; }
  mark.hl.hl-s { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
  mark.hl.hl-e { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
  mark.hl-yellow { background: var(--hl-yellow); } mark.hl-green { background: var(--hl-green); }
  mark.hl-orange { background: var(--hl-orange); } mark.hl-blue { background: var(--hl-blue); }
  mark.hl-pink { background: var(--hl-pink); }
  mark.hl.flash { box-shadow: 0 0 0 2px var(--text); }
  .hl-demo.ann-off mark.hl { background: transparent; cursor: text; }
  .hl-demo.pen-on .lx-text { cursor: text; }
  .hl-demo.pen-on .lx-text ::selection { background: var(--pen-sel, rgba(255,216,77,.55)); }
  .erase-all { position: absolute; left: 50%; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
    border-radius: 999px; background: var(--text); color: var(--page); font-size: 13.5px; box-shadow: 0 10px 28px -10px rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s; }
  .erase-all.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .erase-all button { height: 30px; padding: 0 14px; border-radius: 999px; background: var(--page); color: var(--text); font-weight: 700; font-size: 13px; }
  /* highlights collected in the study column */
  .hl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .hl-item { display: grid; grid-template-columns: 4px minmax(0, 1fr) 26px; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .hl-item .bar { align-self: stretch; border-radius: 3px; }
  .hl-item button.q { text-align: left; font-size: 13.5px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hl-item button.x { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); }
  .hl-item button.x:hover { background: var(--surface-2); color: var(--text); }
  .hl-item button.x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .hl-empty { margin: 0; padding: 18px 14px; border: 1px dashed var(--rule-strong); border-radius: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text-3); text-align: center; }

  /* glossary in the study column */

  /* reading settings (text size, dark mode), as in the lesson */
  .read-wrap { position: relative; }
  .read-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); color: var(--text-2); transition: background .15s, color .15s, border-color .15s; }
  .read-btn span { font: 600 14px/1 var(--display); letter-spacing: -.01em; }
  .read-btn:hover { border-color: var(--text-2); color: var(--text); }
  .read-btn[aria-expanded="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
  .read-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; width: 260px; padding: 14px; border-radius: 16px;
    background: var(--page); border: 1px solid var(--rule-strong); box-shadow: 0 18px 44px rgba(0,0,0,.16); display: none; }
  .read-pop.open { display: block; animation: popIn .18s cubic-bezier(.2,.8,.2,1); }
  .rp-title { margin: 0 0 12px; font: 600 13px var(--sans); color: var(--text-2); text-align: center; }
  .rp-size { display: grid; grid-template-columns: 1fr 1.2fr 1fr; border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
  .rp-size button { height: 38px; display: grid; place-items: center; color: var(--text); font-weight: 600; font-family: var(--display); }
  .rp-size button + button { border-left: 1px solid var(--rule-strong); }
  .rp-size .rp-def { font: 600 12.5px var(--sans); color: var(--text-2); }
  .rp-size button:hover:not([disabled]) { background: var(--surface-2); }
  .rp-size button[disabled] { opacity: .35; cursor: default; }
  .read .rp-size { opacity: .55; pointer-events: none; }   /* shown for demonstration; not adjustable here */
  .rp-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rp-theme { height: 66px; border-radius: 12px; border: 1px solid rgba(0,0,0,.10); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .rp-theme .aa { font: 600 20px/1 var(--display); } .rp-theme .nm { font: 500 12px var(--sans); }
  .rp-theme[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--text); }
  .t-original { background: #FFFFFF; color: #0F172A; }
  .t-dark { background: #1F1F1D; color: #F1EFE8; border-color: rgba(255,255,255,.08); }
  .hl-demo { transition: background-color .3s ease, color .3s ease; }
  .hl-demo .p-main { overflow-y: auto; scrollbar-width: none; }
  .hl-demo .p-main::-webkit-scrollbar { display: none; }
  /* the same tokens as the lesson's dark theme, so the preview and the lesson match exactly */
  .hl-demo.dark { --page: #1F1F1D; --side: #262624; --surface-2: #272724; --text: #F1EFE8; --text-2: #B4B2A9; --text-3: #8C8A82;
    --rule: #31312D; --rule-strong: #43423D; --accent: #E0B04A; --accent-soft: rgba(219,164,38,0.16);
    --hl-yellow: rgba(255,214,64,0.34); --hl-green: rgba(98,214,120,0.30); --hl-orange: rgba(255,150,60,0.36); --hl-blue: rgba(110,170,255,0.34); --hl-pink: rgba(255,120,190,0.32);
    --gloss-line: rgba(224,176,74,.55); --cbg: #27292B; --cbd: rgba(141,176,236,.22); --clbl: #8DB0EC; color-scheme: dark; }

  /* ---- Flashcards ---- */
  .fc-stage { flex: 1; min-height: 220px; display: flex; perspective: 1400px; }
  .fc-card { position: relative; flex: 1; cursor: pointer; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1); outline: none; }
  .fc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; }
  .fc-card.flipped { transform: rotateY(180deg); }
  .fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 40px;
    border-radius: 18px; border: 1px solid var(--rule-strong); background: var(--page); }
  .fc-back { transform: rotateY(180deg); background: var(--surface-2); }
  .fc-tag { position: absolute; top: 18px; left: 22px; font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .fc-text { max-width: 26em; font: 600 22px/1.45 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
  .fc-back .fc-text { font: 500 17.5px/1.65 var(--sans); letter-spacing: 0; }
  .fc-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--text-3); }
  .fc-controls { flex: none; display: grid; grid-template-columns: 38px 1fr 1fr 38px; gap: 10px; align-items: center; margin-top: 16px; }
  .fc-rate { height: 42px; border-radius: 12px; border: 1px solid var(--rule-strong); font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: border-color .15s, color .15s; }
  .fc-rate:hover { color: var(--text); border-color: var(--text-2); }
  .deck { display: grid; gap: 6px; }
  .deck button { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border-radius: 12px; text-align: left; font-size: 13.5px; line-height: 1.45; color: var(--text-2); border: 1px solid transparent; transition: background .15s, border-color .15s; }
  .deck button:hover { background: var(--page); }
  .deck button[aria-current="true"] { background: var(--page); border-color: var(--rule-strong); color: var(--text); }
  .deck i { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; }
  .deck i svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
  .deck .got i { background: #1E9E62; border-color: #1E9E62; } .deck .got i svg { opacity: 1; }
  .deck .again i { border-color: #D9A62A; background: rgba(219,164,38,.18); }
  .meter { height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; margin: -4px 0 16px; }
  .meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s ease; }

  /* ---- Question bank ---- */
  .qb-top { flex: none; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-3); margin-bottom: 10px; font-weight: 600; }
  .qb-stem { flex: none; font: 600 18.5px/1.45 var(--display); letter-spacing: -0.01em; margin: 0 0 16px; }
  .qb-opts { display: grid; gap: 9px; }
  .qb-opt { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; text-align: left;
    padding: 11px 15px; border-radius: 12px; border: 1px solid var(--rule-strong); font-size: 15px; line-height: 1.5; color: var(--text);
    transition: border-color .15s, background .15s; }
  .qb-opt:hover { border-color: var(--text-2); }
  .qb-opt .k { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--display); border: 1px solid var(--rule-strong); color: var(--text-2); }
  .qb-opt.sel { border-color: var(--text); }
  .qb-opt.sel .k { background: var(--text); color: var(--page); border-color: var(--text); }
  .qb-opt.right { border-color: #1E9E62; background: rgba(30,158,98,0.09); }
  .qb-opt.right .k { background: #1E9E62; border-color: #1E9E62; color: #fff; }
  .qb-opt.wrong { border-color: #D2452F; background: rgba(210,69,47,0.08); }
  .qb-opt.wrong .k { background: #D2452F; border-color: #D2452F; color: #fff; }
  .qb-opt[disabled] { cursor: default; }
  .qb-explain { margin-top: 14px; padding: 13px 16px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; line-height: 1.6; }
  .qb-explain.wait { visibility: hidden; }
  .qb-explain b { display: block; margin-bottom: 2px; font: 600 14px var(--display); }
  .qb-actions { flex: none; display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
  .qb-actions .btn { flex: 1; }
  .btn-line { border: 1px solid var(--rule-strong); color: var(--text); }
  .btn-line:hover { border-color: var(--text-2); }
  .demo .btn[disabled] { opacity: .4; cursor: default; }
  .qb-score { margin: auto 0; text-align: center; }
  .qb-score .big { font: 600 54px var(--display); letter-spacing: -0.02em; }
  .qb-score p { color: var(--text-2); font-size: 15.5px; margin: 6px 0 22px; }

  /* short laptop screens: a slightly tighter frame so nothing is cut */
  @media (min-width: 1200px) and (orientation: landscape) and (max-height: 800px) {
    .p-main { padding: 22px 30px 24px; }
    .mx { padding: 22px 30px 20px; }
    .qb-stem { font-size: 17px; margin-bottom: 12px; }
    .qb-opts { gap: 7px; }
    .qb-opt { padding: 8px 14px; font-size: 14.5px; }
    .qb-explain { margin-top: 10px; padding: 10px 14px; font-size: 14px; }
    .qb-actions { padding-top: 12px; }
    .fc-stage { min-height: 180px; }
    .lx-text { font-size: calc(16px * var(--fs, 1)); line-height: 1.75; }
    .lx-bar { padding-bottom: 12px; margin-bottom: 16px; }
    .callout { padding: 14px 18px; }
    .callout p { font-size: 15px; line-height: 1.65; }
  }


  /* short laptop screens: give the frame every pixel (the tour labels step aside) */
  @media (min-width: 1100px) and (orientation: landscape) and (max-height: 820px) {
    .tour-stage { padding: 12px 0; }
  }

  /* ---- Tablets and phones: each step shows its own frame ---- */
  @media (max-width: 1099px), (orientation: portrait) {
    .showcase .sec-title { font-size: clamp(30px, 5.2vw, 46px); }
    .tour { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
    .tour-stage { display: none; }
    .tour-step, .tour-step:first-child, .tour-step:last-child { min-height: 0; opacity: 1; padding: 36px 0 8px; }
    .tour-step + .tour-step { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; }
    .tour-media { display: block; margin-top: 22px; }
    .step-cta { display: none; }
    .showcase .sc-head { padding-top: 0; }
    .demo.mini .demo-bar { height: 42px; padding: 0 16px; font-size: 12.5px; }
    .demo.mini .demo-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .demo.mini .mini-link { font-size: 12.5px; }
    .panel-figure .fig-scroll { height: auto; overflow: visible; padding: 20px 16px 22px; }
    .demo.mini { height: auto; }
    .demo.mini .demo-body > .panel { position: static; opacity: 1; visibility: visible; transform: none; transition: none; }
    .demo.mini .demo-body { flex: none; }
    .panel { height: auto; }
    .mx { height: auto; }
    .fc-stage { flex: none; height: 300px; }
    .qb-actions { margin-top: 0; }
  }
  @container (max-width: 700px) {
    .panel.split { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 640px) {
    .demo { border-radius: 16px; }
    .demo-bar { height: 46px; padding: 0 18px; font-size: 13.5px; }
    .p-main, .mx { padding: 22px 18px 24px; }
    .lx-text { font-size: calc(16px * var(--fs, 1)); line-height: 1.75; }
    .callout p { font-size: 15px; }
    .switch .lbl { display: none; }
    .pen { width: 24px; height: 24px; }
    .pen-tray { gap: 0; }
    .pen-sep { margin: 0 2px; }
    .lx-tools { gap: 8px; }
    .pen-wrap { gap: 4px; }
    .fc-stage { height: 260px; }
    .fc-face { padding: 40px 24px; }
    .fc-text { font-size: 18px; }
    .fc-back .fc-text { font-size: 15.5px; }
    .qb-stem { font-size: 16.5px; }
    .qb-opt { font-size: 14.5px; }
  }

  /* =====================================================================
     EVIDENCE
     ===================================================================== */

  /* =====================================================================
     COURSES
     ===================================================================== */

  /* =====================================================================
     AUDIENCE
     ===================================================================== */
  /* Centred like the band under the hero, with the same short gold rule between the two
     audiences (horizontal when they stack). */

  /* =====================================================================
     QUESTIONS
     ===================================================================== */

  /* =====================================================================
     FINAL CALL AND FOOTER
     ===================================================================== */

  .site-footer { background: var(--black); color: var(--grey); padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); }

  /* ---- Section layouts on tablets and phones ---- */
  @media (prefers-reduced-motion: reduce) {
    .fc-card { transition: none; }
    .pop.show { animation: none; }
  }

.la-mech .la-ph-head { flex-wrap:wrap; gap:10px; }
.la-mech .la-ph-lbl { font-size:13px; }
.la-mech .la-composition-label { margin:18px 0 8px; font:600 12px/1.5 var(--sans); color:var(--text-2); }
.la-mech .la-ticks { height:18px; }
.la-mech .la-normal { position:absolute; left:calc(9px + (100% - 18px) * 1.4 / 1.45); top:3px; width:3px; height:16px; transform:translateX(-50%); background:#1D9E75; border-radius:3px; }
.la-mech .la-ranges { display:flex; flex-wrap:wrap; gap:10px 18px; margin:10px 0 4px; font-size:11px; color:var(--text-2); }
.la-mech .la-ranges span { display:inline-flex; align-items:center; gap:5px; }
.la-mech .la-ranges b { font-weight:600; }
.la-mech .la-ranges i { flex:none; width:8px; height:8px; border-radius:3px; }
.range-inf { background:#D88B72; }.range-norm { background:#1D9E75; }
.la-mech .la-dot { width:24px; height:24px; background:transparent; position:relative; margin:0 1px; }
.la-mech .la-dot::after { content:""; display:block; width:8px; height:8px; border-radius:50%; background:var(--rule); margin:auto; }
.la-mech .la-dot.on { background:transparent; }.la-mech .la-dot.on::after { background:var(--ink); }
@media(max-width:520px) { .la-mech .la-ph-head { align-items:flex-start; } .la-mech .la-ph-head .seg { width:100%; } .la-mech .la-ph-head .seg button { flex:1; } .la-mech .la-ranges { gap:8px 12px; } .la-mech .la-ticks { font-size:10px; } .la-mech .la-split { font-size:11px; } }
.la-canvas { overflow-x:auto; overscroll-behavior-x:contain; }
.la-pan-hint { display:none; }
@media(max-width:600px) { .la-mech .la-canvas svg { min-width:560px; } .la-mech .la-pan-hint { display:block; font-size:11px; color:var(--text-3); margin:8px 0 10px; } }


  /* ===== Inside a Lesson: one pinned screen on laptops and TVs ===== */
  .tour-step > h3 { font-size: clamp(22px, 1.9vw, 28px); }
  .step-kicker { font-size: 14px; margin-bottom: 14px; }
  @media (min-width: 1100px) and (orientation: landscape) {
    .showcase { padding-bottom: 0; }
    .tour { display: block; height: var(--tour-h, auto); }
    .tour-pin { position: sticky; top: var(--stick, 64px); height: var(--stage-full, 100vh); display: grid;
      grid-template-columns: minmax(340px, 37fr) minmax(0, 63fr); gap: 0 clamp(40px, 4.5vw, 72px); align-items: center; }
    .tour-steps { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
    .showcase .sc-head { padding-top: 0; }
    .step-stack { position: relative; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); min-height: var(--stack-h, 300px); }
    .step-stack .tour-step, .step-stack .tour-step:first-of-type, .step-stack .tour-step:last-child { position: absolute; left: 0; right: 0; top: 30px; min-height: 0; padding: 0;
      opacity: 0; visibility: hidden; transform: translate3d(0, 8px, 0);
      transition: opacity .32s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
    .step-stack .tour-step.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .tour-stage { position: static; height: auto; padding: 0; }
  }
  /* the figure, trimmed for the homepage and fitted to the frame (no inner scrolling) */
  .demo .la-mech .la-note, .demo .la-pan-hint { display: none !important; }
  .demo .la-mech .la-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 4px; }
  .demo .la-mech .la-ctl .seg { margin-left: auto; }
  .panel-figure .fig-scroll { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
  .panel-figure .la-mech { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .panel-figure .la-canvas { flex: 1; min-height: 0; overflow: hidden; }
  .panel-figure .la-canvas svg { display: block; width: 100%; height: 100%; min-width: 0 !important; }
  /* Structured Lesson: summary and detail */
  .lv-h4 { margin: 16px 0 8px; font: 600 17px/1.3 var(--display); letter-spacing: -.01em; }
  @media (max-width: 1099px), (orientation: portrait) {
    .panel-figure .fig-scroll { height: auto; }
    .panel-figure .la-mech { display: block; }
    .panel-figure .la-canvas svg { height: auto; }
  }


  /* ===== three windows: Read With Clarity, Figures You Can Explore, Review and Test ===== */
  .read .p-main { padding: 26px 34px 28px; }
  .read .lx-text { max-width: 44em; }
  .read .rd-sub .lv-h4 { margin-top: 4px; }
  .read .rd-sub.lg-only .lv-h4 { margin-top: 22px; }
  .read .lx-bar { padding-bottom: 10px; margin-bottom: 14px; }
  .read .pen-toggle, .read .read-btn { width: 32px; height: 32px; }
  .read .pen-tray { height: 32px; }
  .read .switch { height: 32px; font-size: 13px; }
  .read .p-main { padding-top: 18px; }
  .read .callout { margin-top: 6px; }
  /* the figure: a slimmer proportions bar, a steady caption, a larger diagram */
  .demo .la-mech .la-legend { display: none !important; }
  .demo .la-mech .la-composition-label { margin: 8px 0 6px; font-size: 11.5px; }
  .demo .la-mech .la-split { min-height: 0; height: 24px; font-size: 12px; }
  .demo .la-mech .la-cap { min-height: 4.9em; margin-top: 8px; }
  .demo .la-mech .la-title { margin-bottom: 10px; }
  /* study tools, picked the way the lesson's sidebar does it */
  .study .p-main { padding: 26px 34px 28px; display: flex; flex-direction: column; }
  .demo-body > .panel.study > .p-main { height: 100%; }   /* the study tools fill the frame: no empty band under the controls */
  .tool-pick { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .tp { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--rule-strong); text-align: left; color: var(--text-3);
    transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
  .tp svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tp b { display: block; font: 600 14.5px var(--sans); color: var(--text-2); } .tp small { display: block; font-size: 12.5px; color: var(--text-3); }
  .tp:hover { border-color: var(--text-3); }
  .tp.on { background: rgba(219,164,38,.12); border-color: rgba(196,140,30,.6); color: var(--accent); }
  .tp.on b { color: var(--accent); }
  .tool-views { flex: 1; min-height: 0; display: grid; }
  .tool { grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translate3d(0, 10px, 0);
    transition: opacity .4s ease, transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s linear .4s; }
  .tool.on { opacity: 1; visibility: inherit; transform: none; transition-delay: 0s; }   /* inherit: hidden with its panel */
  .tool .fc-stage { flex: 1; min-height: 200px; }
  .tool-meta { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
  .tool-meta b { font-weight: 600; color: var(--text-2); white-space: nowrap; }
  .tool-meta .meter { flex: 1; margin: 0; height: 4px; }
  .qb-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .qb-mini { flex: none; display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
  .qb-mini b { color: var(--text); font-weight: 700; }
  @media (max-width: 1099px), (orientation: portrait) {
    .read .p-main, .study .p-main { padding: 20px 16px 22px; }
    .tp { padding: 10px 12px; gap: 9px; } .tp b { font-size: 13.5px; } .tp small { font-size: 11.5px; }
  }


  /* ===== guided discovery and a steadier figure ===== */
  .step-hint { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.62); }
  .zoom-instructions { margin-top: 8px; }
  .step-hint svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
  .show-how { margin-left: 4px; font: 600 14px var(--sans); color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(219,164,38,.45); }
  .show-how:hover { text-decoration-color: var(--gold); }
  .rd-title { margin: 0 0 12px; font: 600 21px/1.25 var(--display); letter-spacing: -.015em; }
  .read .lx-bar { justify-content: flex-end; padding-bottom: 14px; margin-bottom: 18px; }
  .demo span.cite { cursor: default; }
  .demo span.cite:hover { background: var(--accent-soft); color: var(--accent); }
  /* one gentle pulse around the first term, then still */
  .gloss.nudge { animation: nudge 1.8s ease-out .8s 3; border-radius: 4px; }
  @keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(219,164,38,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(219,164,38,0); } }
  /* the figure: diffusion and the three steps only */
  .demo .la-mech .la-ctl, .demo .la-mech .la-composition-label, .demo .la-mech .la-split { display: none !important; }
  .demo .la-mech .la-ctl { margin: 2px 0 6px; } .demo .la-mech .la-ctl .seg { margin-left: 0; }
  .panel-figure .la-canvas { flex: 1 1 0; }
  .panel-figure .la-mech { width: 100%; align-self: stretch; }   /* full width at every step (it shrank to the overview caption before) */
  .demo .la-mech .la-cap { flex: none; height: 6.6em; min-height: 0; overflow: hidden; }
  .demo .la-mech .la-nav { flex: none; }
  /* Show me how: two short, skippable notes beside the controls */
  .coach { position: absolute; z-index: 30; max-width: 270px; padding: 12px 14px; border-radius: 12px; background: var(--text); color: var(--page); font-size: 13.5px; line-height: 1.5;
    box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: popIn .2s cubic-bezier(.2,.8,.2,1); }
  .coach p { margin: 0 0 10px; }
  .coach div { display: flex; justify-content: flex-end; gap: 12px; }
  .coach button { font: 600 13px var(--sans); color: var(--page); opacity: .75; }
  .coach button.go { opacity: 1; color: #F2CF6E; }
  .coach-ring { position: absolute; z-index: 29; border-radius: 12px; box-shadow: 0 0 0 3px rgba(219,164,38,.9); pointer-events: none; transition: all .35s cubic-bezier(.2,.8,.2,1); }
  @media (max-width: 1099px), (orientation: portrait) {
    .lg-only { display: none !important; }
    .demo .la-mech .la-cap { height: auto; min-height: 13em; }
  }


  /* the figure's pH controls, compact so the diagram stays the focus */
  .demo .la-mech .la-ph { margin: 2px 0 6px; }
  .demo .la-mech .la-ph-head { margin-bottom: 4px; gap: 8px; }
  .demo .la-mech .la-ph-lbl { display: none !important; }
  .demo .la-mech .la-ph-head { justify-content: flex-start; }
  .demo .la-mech .la-ph .seg { padding: 2px; }
  .demo .la-mech .la-scale { margin-top: 2px; }
  .demo .la-mech .la-ranges span { white-space: nowrap; }
  .demo .la-mech .la-title { font-size: 17px; margin-bottom: 8px; }
  @media (max-width: 1099px), (orientation: portrait) {
    .demo .la-mech .la-title { font-size: 16px; }
    .demo .la-mech .la-ph .seg button { height: 24px; padding: 0 9px; font-size: 11px; }
    .demo .la-mech .la-scale input[type=range] { height: 14px; }
    .demo .la-mech .la-ticks { font-size: 9.5px; height: 12px; }
    .demo .la-mech .la-ranges { font-size: 10px; gap: 2px 10px; margin-top: 2px; }
    .demo .la-mech .la-cap { font-size: 12.5px !important; line-height: 1.5; }
    .demo .la-mech .la-nav .la-btn { width: 36px; height: 32px; }
  }
  .demo .la-mech .la-ph .seg button { height: 26px; padding: 0 11px; font-size: 12px; }
  .demo .la-mech .la-scale input[type=range] { height: 16px; }
  .demo .la-mech .la-ticks { height: 14px; font-size: 10.5px; }
  .demo .la-mech .la-ranges { margin-top: 4px; gap: 4px 12px; font-size: 11px; }
  .demo .la-mech .la-cap { height: auto !important; min-height: var(--cap-h, 6.6em) !important; font-size: 14px; line-height: 1.55; }
  @media (max-width: 1099px), (orientation: portrait) { .demo .la-mech .la-cap { font-size: 13px; } }
  /* figure zoom (touch screens and Macs) */
  .la-canvas.zoomable { position: relative; overflow: hidden; touch-action: pan-y; }
  .la-canvas.zoomable svg { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  .la-canvas.zoomable.zoomed, .la-canvas.zoomable.zoomed svg { touch-action: none; cursor: grab; }
  .zoom-reset { position: absolute; right: 8px; top: 8px; z-index: 3; display: none; height: 28px; padding: 0 12px; border-radius: 999px;
    background: rgba(15,23,42,.82); color: #fff; font: 600 12px/28px var(--sans, sans-serif); touch-action: manipulation; }
  .la-canvas.zoomed .zoom-reset { display: block; }
  .la-canvas.zoomable, .zoom-reset { -webkit-user-select: none; user-select: none; }
  .fig-dragging, .fig-dragging * { -webkit-user-select: none !important; user-select: none !important; cursor: grabbing !important; }
  /* Prevent native draggable-link/image ghost previews; preserve normal link clicks. */
  a, img, canvas { -webkit-user-drag: none; }
  /* taps never double-zoom the page (pinch zoom stays available for accessibility) */
  html { touch-action: manipulation; }
  button, a, [role="button"], input, select, label { touch-action: manipulation; }


  /* ============ LESSONS ============ */
  /* ============ LESSON UPDATES ============ */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  /* ============ FOOTER ============ */

  /* ============ FIRST SCREEN AND BAND: MOTION ============
     Compositor-only (transform and opacity), so it stays smooth while frames load. */
  @keyframes heroRise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
  @keyframes wordUp { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }
  .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  /* Opening sequence: every part uses the same curve and length and enters on an even
     0.12s beat: eyebrow, the three words, the paragraph, the buttons, then the band
     (from its centre outwards) and finally the gold light on "Confidence". */
  :root { --open-ease: cubic-bezier(.16,1,.3,1); --open-dur: 1.2s; }
  .hero h1 .w > span { display: inline-block; animation: wordUp var(--open-dur) var(--open-ease) both; animation-delay: calc(.22s + var(--i) * .12s); }
  .hero .eyebrow { animation: heroRise var(--open-dur) var(--open-ease) .1s both; }
  /* page scroll indicator: a plain thumb that follows the scroll, shown only while scrolling */
  @media (hover: hover) and (pointer: fine) {
    html { scrollbar-width: none; }
    html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
  }
  .sbar { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: 12px; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
  .sbar.show { opacity: 1; }
  .sbar i { position: absolute; top: 0; right: 3px; width: 5px; border-radius: 5px; background: #8E939B; pointer-events: auto; touch-action: none; }
  .sbar.drag i { background: #A3A8AF; }
  @media (hover: none), (pointer: coarse) { .sbar { display: none; } }
  @media (prefers-reduced-motion: reduce) {
    .hero h1 .w > span, .hero .eyebrow { animation: none; }
  }


  /* the band's icons and titles rise in with the hero text (phones: only the first, the one on screen) */
  /* the band follows the buttons; four columns open from the centre pair outwards,
     two columns (phones) row by row, so the motion is mirrored left and right */
  /* while the band is still below the screen (phones), it waits and plays when it arrives */
  /* hints name the gesture of the pointer in use (assets/js/paint.js sets html[data-input]), so a touch-screen laptop reads "Click" with its trackpad and "Tap" on its screen */
  .for-touch { display: none; }
  html[data-input="touch"] .for-fine { display: none; }
  html[data-input="touch"] .for-touch { display: inline; }
  .pen-toggle.nudge { animation: nudge 1.8s ease-out .8s 3; }

  /* ============ CLEAN FIRST PAINT ============
     The page is large, so the browser can paint it before it has finished reading it.
     Until it is ready the first screen stays dark (header visible); then the text and the
     tooth appear together and the opening animation plays from its first frame. */
  .hero-media { transition: opacity .8s ease; }
  .booting .hero-media { opacity: 0; }
  .booting .hero * { animation-play-state: paused !important; }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1200px) {
    :root { --wordmark-h: 18px; --mark-h: 42px; --text-col: 570px; }
    .nav-link { padding: 0 9px; font-size: 14.5px; }
  }
  @media (max-width: 1024px) {
    .nav-left, .nav-right .hide-mobile { display: none; }
    .menu-toggle { display: inline-flex; }
    .mobile-menu {
      position: absolute; left: 0; right: 0; top: 100%;
      background: var(--black); border-top: 1px solid var(--line);
      padding: 8px calc(16px + var(--safe-x)) 20px;
    }
    .mobile-menu.open { display: block; }
    .mobile-menu > a { display: block; padding: 14px 4px; font-size: 16px; font-weight: 500; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
    .mobile-menu .mm-actions { display: flex; gap: 10px; margin-top: 18px; }
    .mobile-menu .mm-actions .btn { flex: 1; height: 46px; }
    .mm-courses { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 16px; font-weight: 500; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
    .mm-courses svg { width: 18px; height: 18px; transition: transform .2s; }
    .mm-courses[aria-expanded="true"] svg { transform: rotate(180deg); }
    .mm-sub { display: none; padding: 4px 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .mm-sub.open { display: block; }
    .mm-sub a { display: block; padding: 10px 4px; font-size: 15px; color: var(--grey); }
    .mobile-menu { max-height: calc(100svh - var(--header-total)); overflow-y: auto; }
    :root { --text-col: 420px; }
  }
  /* Phones and portrait tablets: text on top, the tooth fills the space underneath */
  /* (phones held sideways keep the side-by-side layout: stacked, the text alone would not fit their height) */
  @media (max-width: 760px) and (min-height: 521px), (max-width: 1100px) and (orientation: portrait) {
    .hero { flex-direction: column; align-items: stretch; }
    .hero-media { order: 1; position: relative; right: auto; width: 100%; flex: 1; min-height: 240px; }
    .hero h1 { font-size: clamp(40px, 10.6vw, 64px); margin-bottom: 16px; }
    .eyebrow { font-size: 12.5px; margin-bottom: 14px; }
    /* centred text; the tooth area keeps the frame's shape so the tooth is never cropped */
    .hero h1 { margin-left: 0; }
    /* the tooth area keeps the frame's shape when there is room and shrinks to the space
       left when there is not, so its bottom edge is never cut off by the hero */
    .hero-media { flex: 0 1 auto; height: auto; min-height: 0; aspect-ratio: 100 / 70; }
  }
  /* Phones held sideways and other very short screens: a compact hero that fits the height */
  @media (orientation: landscape) and (max-height: 520px) {
    :root { --header-h: 52px; --mark-h: 36px; --wordmark-h: 15px; }   /* slimmer header: more of the short screen for the page */
    .eyebrow { font-size: 11.5px; margin-bottom: 8px; }
    .hero h1 { font-size: clamp(26px, 7.6vh, 40px); margin-bottom: 10px; }
  }
  /* Sideways phones: the text and the tooth sit in two columns that never overlap. The tooth
     column has the molar's own proportions (about 1.6 : 1), so the opening molar fills it,
     whole and centred, and the clip then fills it edge to edge. */
  @media (orientation: landscape) and (max-height: 520px) {
    .hero { flex-direction: row; align-items: stretch; }
    .hero-media { order: 2; position: relative; right: auto; flex: 0 0 auto; margin-right: var(--safe-r);
      width: min(calc((var(--vh, 100svh) - var(--header-total)) * 1.45), 50%); }
  }
  /* Short phones held upright (small iPhones, browsers with big toolbars): tighter text so the tooth keeps its room */
  @media (orientation: portrait) and (max-height: 640px) and (max-width: 1100px) {
    .eyebrow { font-size: 11.5px; margin-bottom: 8px; }
    .hero h1 { font-size: clamp(32px, 9.4vw, 44px); margin-bottom: 10px; }
  }
  @media (max-width: 460px) {
    :root { --wordmark-h: 14px; --mark-h: 38px; }
    .brand { gap: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }

  /* Compact Our Standard bar — retains the original pure-white section background. */

  /* Compact footer */
  /* calls to action under the logo, styled like the hero's */
  .social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #303030; border-radius: 50%; color: #DBA426; transition: border-color .2s, background .2s; }
  .social-link svg { width: 19px; height: 19px; }
  .social-link:hover, .social-link:focus-visible { background: #14120b; border-color: #DBA426; }
  .social-link[aria-disabled="true"] { cursor: default; }


/* Lesson carousel, adapted from the supplied complete.html */
.site-footer .social-link{width:32px;height:40px;border:0;border-radius:0;background:transparent;box-shadow:none;transition:transform .2s,opacity .2s}
.site-footer .social-link svg{width:25px;height:25px;stroke:none}
.site-footer .social-link:hover,.site-footer .social-link:focus-visible{background:transparent;border:0;transform:translateY(-2px)}
@media(prefers-reduced-motion:reduce){.site-footer .social-link{transition:none}}
/* Lessons: one live lesson plus one faded production slot */

/* Footer: one compact row (brand, links, social), then note and legal line */
.site-footer{padding-bottom:calc(26px + env(safe-area-inset-bottom, 0px))}
.site-footer .social-link{width:38px;height:38px;border-radius:50%;opacity:.92;transition:transform .2s,opacity .2s,background-color .2s}
.site-footer .social-link svg{width:21px;height:21px;shape-rendering:geometricPrecision}
.site-footer .social-link[data-social="youtube"] svg{width:23px;height:23px}
.site-footer .social-link:hover,.site-footer .social-link:focus-visible{opacity:1;background:rgba(255,255,255,.06);transform:none}
.site-footer .social-link:focus-visible{outline:1px solid var(--gold);outline-offset:1px}   /* links and social line up with the logo, above the calls to action */

/* ===== block 01 ===== */
  /* ===== Footer =====
     Three tiers, set apart by position and weight rather than headings:
     the brand with its call to action (left), the site links over the social
     profiles (right, centred on the brand block), then the disclaimer and legal line. */
  /* the column is exactly as wide as the logo, so the logo keeps its place and the text centres under it */   /* the logo sets the column width at its natural size */   /* icon padding aligns the last icon with the links */
  /* phones and narrow tablets: one centred column */

/* =====================================================================
   REFINEMENTS (November 2026): feedback, menus, search, study tools
   Shared by the homepage and the lesson pages. Everything here animates
   transform and opacity only, so it stays smooth on older devices.
   ===================================================================== */
/* Buttons: a clear press, and a soft sheen across the primary button */
.btn { position: relative; overflow: hidden; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.btn:active { transform: scale(.97); }
.btn-gold::after, .btn-signup::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.2) 50%, transparent 64%); transform: translate3d(-120%,0,0); transition: transform .75s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) {
  .btn-gold:hover { box-shadow: 0 8px 20px -12px rgba(219,164,38,.32); }
  .btn-signup:hover { box-shadow: 0 8px 20px -14px rgba(25,59,181,.6); }
  .btn-gold:hover::after, .btn-signup:hover::after { transform: translate3d(120%,0,0); }
}
.nav-link { transition: background .15s, transform .2s cubic-bezier(.2,.8,.2,1); }
.nav-link:active { transform: scale(.96); }

/* Courses list, search bar and phone menu ease open instead of snapping */
.dropdown, .search-panel { display: block; opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0,-8px,0);
  transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .2s; }
.dropdown.open, .search-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.dropdown a.course-available .course-badge { transition: background-color .2s ease; }
.dropdown a.course-available:hover .course-badge { background: rgba(216,178,101,.16); }
@media (max-width: 1024px) {
  .mobile-menu { display: block; opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0,-8px,0);
    transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .2s; }
  .mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
}
/* the menu button's three lines fold into a close mark */
#menuBtn svg path { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
#menuBtn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
#menuBtn[aria-expanded="true"] .l2 { opacity: 0; }
#menuBtn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* Search: live results from the published lessons */
.search-inner > svg { transition: color .2s ease; }
.search-inner input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }   /* one clear button, not two */
.search-inner:focus-within > svg { color: var(--gold); }
.search-results { max-width: calc(720 * var(--u, 1px)); margin: 10px auto 0; display: grid; gap: 2px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.search-results:empty { display: none; }
.sr-item { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 1px 14px; padding: 10px 14px; border-radius: 10px; color: #fff; text-decoration: none; }
.sr-item b { grid-column: 1; font: 600 15px/1.35 var(--sans); }
.sr-item mark { background: none; color: #F0C865; }
.sr-item small { grid-column: 1; font-size: 12.5px; line-height: 1.4; color: #9AA0A9; }
.sr-item svg { grid-column: 2; grid-row: 1 / 3; width: 16px; height: 16px; fill: none; stroke: #DBA426; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translate3d(-5px,0,0); transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.sr-item:hover, .sr-item.act { background: rgba(255,255,255,.07); }
.sr-item:hover svg, .sr-item.act svg { opacity: 1; transform: none; }
.sr-note { margin: 0; padding: 8px 14px 2px; font-size: 13.5px; line-height: 1.6; color: #9AA0A9; }
.sr-note button { margin-left: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #E6E8EB; font: 600 12.5px var(--sans); transition: border-color .2s ease, color .2s ease; }
.sr-note button:hover { border-color: var(--gold); color: #F0C865; }
.sr-note a { color: #F0C865; text-decoration: underline; text-underline-offset: 3px; }

/* Footer: the social icons flicker on like a sign, once, as they come into view */
@keyframes dpFlick { 0% { opacity: .12; } 9% { opacity: 1; } 15% { opacity: .22; } 24% { opacity: 1; } 32% { opacity: .5; } 42%, 100% { opacity: .92; } }
@keyframes dpFlick2 { 0% { opacity: .35; } 18% { opacity: 1; } 30% { opacity: .45; } 48%, 100% { opacity: 1; } }
.dpf-social.arm .social-link { opacity: .12; }
.dpf-social.lit .social-link { animation: dpFlick 1.15s linear both; animation-delay: calc(var(--k, 0) * .13s); }
.dpf-social .social-link svg { transition: filter .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) {
  .dpf-social.lit .social-link:hover { animation: dpFlick2 .5s linear both; }
  .dpf-social .social-link:hover svg { filter: drop-shadow(0 0 7px rgba(240,200,101,.5)); transform: scale(1.08); }
}

/* ===== Footer: brand, then Courses, Site and Connect as labelled columns, then the legal line ===== */
.dpf-grid { display: grid; grid-template-columns: minmax(250px, 1.3fr) minmax(0, 1.5fr) minmax(0, .65fr) minmax(0, .85fr); gap: 40px clamp(28px, 4vw, 64px); align-items: start; }
.dpf-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 20px 0 0 -8px; }
@media (max-width: 1000px) {
  .dpf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
}

/* Flashcards: recall is rated only after the answer has been revealed */
.fc-rate[disabled], .fc-rate button[disabled] { opacity: .38; cursor: default; pointer-events: none; }
button.fc-rate, .fc-rate button { transition: opacity .3s ease, border-color .15s, color .15s, transform .2s cubic-bezier(.2,.8,.2,1); }
button.fc-rate:active, .fc-rate button:active { transform: scale(.97); }

/* Small controls keep their size but are easier to hit */
button.cite { position: relative; }
button.cite::before { content: ""; position: absolute; inset: -10px -5px; }
@media (pointer: coarse) { .pen { position: relative; } .pen::before { content: ""; position: absolute; inset: -8px -3px; } }

@media (prefers-reduced-motion: reduce) {
  .dpf-social.arm .social-link { opacity: .92; }
  .dpf-social.lit .social-link, .dpf-social.lit .social-link:hover { animation: none; }
  .fc-stage.fc-in .fc-card, .qb-opt, .qb-explain, .qb-score .big { animation: none !important; }
  .btn-gold::after, .btn-signup::after { display: none; }
}
/* the narrowest phones (320px): the header fits without a sideways scroll */
@media (max-width: 340px) { :root { --wordmark-h: 12.5px; --mark-h: 34px; } .brand { gap: 8px; } .nav .icon-btn { width: 36px; } }

/* ===== Flashcards: a quieter, finer card ===== */
.fc-face { border-radius: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 16px 32px -24px rgba(15,23,42,.38); transition: border-color .25s ease, box-shadow .3s ease; }
.fc-face::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 0 0 2px 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(196,140,30,0), rgba(196,140,30,.9) 30%, #F4D27A 50%, rgba(196,140,30,.9) 70%, rgba(196,140,30,0)); }
.fc-tag { letter-spacing: .1em; }
@media (hover: hover) { .fc-card:hover .fc-face { border-color: var(--text-3); box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 20px 36px -24px rgba(15,23,42,.5); } }
@keyframes fcIn { from { opacity: 0; transform: translate3d(16px,0,0); } to { opacity: 1; transform: none; } }
.fc-stage.fc-in .fc-card { animation: fcIn .42s cubic-bezier(.2,.8,.2,1); }
.fc-card.fc-swap { transition: none !important; }      /* a new card never shows its answer while turning back */
button.fc-rate, .fc-rate button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fc-rate svg, button.fc-rate svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-rate="again"]:not([disabled]):hover { border-color: #C98A1B; background: rgba(219,164,38,.1); color: var(--text); }
[data-rate="got"]:not([disabled]):hover { border-color: #1E9E62; background: rgba(30,158,98,.09); color: var(--text); }
[data-rate="again"]:not([disabled]) svg { color: #C98A1B; } [data-rate="got"]:not([disabled]) svg { color: #1E9E62; }

/* ===== Question bank: clearer choices, clearer feedback ===== */
@keyframes qbIn { from { opacity: 0; transform: translate3d(0,8px,0); } to { opacity: 1; transform: none; } }
@keyframes qbRight { 0% { transform: scale(1); } 45% { transform: scale(1.018); } 100% { transform: scale(1); } }
@keyframes qbWrong { 0%, 100% { transform: translate3d(0,0,0); } 20% { transform: translate3d(-5px,0,0); } 40% { transform: translate3d(4px,0,0); } 60% { transform: translate3d(-3px,0,0); } 80% { transform: translate3d(2px,0,0); } }
@keyframes qbScore { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
.qb-opt { transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .3s ease, transform .22s cubic-bezier(.2,.8,.2,1); animation: qbIn .4s cubic-bezier(.2,.8,.2,1) both; }
.qb-opt:nth-child(2) { animation-delay: .04s; } .qb-opt:nth-child(3) { animation-delay: .08s; } .qb-opt:nth-child(4) { animation-delay: .12s; } .qb-opt:nth-child(5) { animation-delay: .16s; }
.qb-opt .k { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
@media (hover: hover) { .qb-opt:not([disabled]):not(.sel):hover { background: var(--surface-2); } }
.qb-opt:not([disabled]):active { transform: scale(.99); }
.qb-opt.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qb-opt.sel .k { background: var(--accent); border-color: var(--accent); color: #fff; }
.qb-opt[disabled]:not(.right):not(.wrong) { opacity: .55; }
.qb-opt.right { animation: qbRight .5s ease; }
.qb-opt.wrong { animation: qbWrong .42s ease; }
.qb-opt.right .k, .qb-opt.wrong .k { font-size: 0; }
.qb-opt.right .k::after, .qb-opt.wrong .k::after { content: ""; width: 12px; height: 12px; background: #fff;
  -webkit-mask: var(--qi) center / contain no-repeat; mask: var(--qi) center / contain no-repeat; }
.qb-opt.right .k { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.qb-opt.wrong .k { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.qb-explain.show, .demo .qb-explain:not(.wait) { animation: qbIn .45s cubic-bezier(.2,.8,.2,1) both; }
.qb-explain[data-v] { border-left: 3px solid #1E9E62; }
.qb-explain[data-v="wrong"] { border-left-color: #D2452F; }
.qb-explain[data-v]::before { display: block; margin-bottom: 4px; font: 600 13.5px var(--display); content: "Correct"; color: #1E9E62; }
.qb-explain[data-v="wrong"]::before { content: "Not quite"; color: #D2452F; }
.qb-score .big { animation: qbScore .6s cubic-bezier(.2,.8,.2,1) both; }

  /* =====================================================================
     HOMEPAGE REFINEMENTS (November 2026)
     ===================================================================== */
  /* a hairline separates the black header from black sections once the page moves */
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.1); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
  .site-header.scrolled::after { opacity: 1; }

  /* sections settle into place once, as they are first reached */
  .dp-motion .rv { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .9s ease, transform 1.2s cubic-bezier(.16,1,.3,1); transition-delay: var(--rd, 0s); }
  .dp-motion .rv.in { opacity: 1; transform: none; }

  /* the lesson frame's small labels, darkened for contrast */
  .demo { --text-3: #666C76; }

  /* ============ THE FIRST LESSON: one feature, image beside text ============ */
  .dp-scrawl { position: absolute; left: 6%; top: -4%; width: 118%; height: auto; overflow: visible; transform: rotate(-9deg); pointer-events: none; }
  .dp-scrawl path { fill: none; stroke: #E4B43C; stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
  .dp-motion .dp-scrawl path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.15s cubic-bezier(.65,0,.25,1) .55s; }

  /* ============ THE FIGURE FILLS ITS WINDOW (laptops and TVs) ============
     The tissue buttons sit on the title line and the arrows beside the caption, so the
     diagram gets the height it needs to span the frame instead of sitting small in the middle. */
  @media (min-width: 1100px) and (orientation: landscape) {
    .panel-figure .fig-scroll { padding: 20px 26px 20px; }
    .panel-figure .la-mech { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 22px; }
    .panel-figure .la-mech > .la-head, .panel-figure .la-mech > .la-ph, .panel-figure .la-mech > .la-canvas { grid-column: 1 / -1; }
    .panel-figure .la-mech > .la-head { margin-bottom: 12px; min-height: 30px; display: flex; align-items: center; }
    .panel-figure .la-mech > .la-canvas { grid-row: 3; }
    .panel-figure .la-mech > .la-cap { grid-column: 1; grid-row: 4; align-self: start; margin-top: 10px; }
    .panel-figure .la-mech > .la-nav { grid-column: 2; grid-row: 4; align-self: start; margin-top: 12px; gap: 10px; }
    .demo .la-mech .la-ph { margin: 0 0 2px; }
    .demo .la-mech .la-ph-head { position: absolute; top: 0; right: 0; margin: 0; }
    .demo .la-mech .la-ranges { display: none; }
  }

/* ===== block 02 ===== */
/* =====================================================================
   SITE LAYER (shared by every page): page-to-page transition, footer
   icons, the figure hallmark, small states.
   ===================================================================== */
/* Moving between pages: the black header stays put and the page beneath cross-fades.
   Browsers without this feature simply load the next page as before. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: dp-header; }
::view-transition-old(root) { animation: dpPageOut .16s ease both; }
::view-transition-new(root) { animation: dpPageIn .34s ease both; }
::view-transition-group(dp-header) { animation-duration: 0s; }
@keyframes dpPageOut { to { opacity: 0; } }
@keyframes dpPageIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* the page you are on is marked in the menu */
.nav-link[aria-current="page"] { position: relative; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(6 * var(--u)); height: 1.5px; background: var(--gold); border-radius: 1px; }
.btn-outline { transition: background-color .2s ease, border-color .2s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .btn-outline:hover { background-color: rgba(255,255,255,.07); } }

/* Footer icons: the one under the pointer rises inside a gold ring, the others step back */
.dpf-social .social-link { position: relative; transition: transform .4s cubic-bezier(.2,.9,.3,1.35), opacity .3s ease, background-color .2s; }
.dpf-social .social-link::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 1px solid rgba(219,164,38,.85); opacity: 0; transform: scale(.72); transition: opacity .3s ease, transform .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
@media (hover: hover) {
  .dpf-social.settled:hover .social-link:not(:hover) { opacity: .38; }
  .dpf-social .social-link:hover { transform: translate3d(0,-3px,0); background: transparent; }
  .dpf-social .social-link:hover::before, .dpf-social .social-link:focus-visible::before { opacity: 1; transform: none; }
}
.dpf-social .social-link:active { transform: scale(.9); transition-duration: .1s; }
@media (prefers-reduced-motion: reduce) { .dpf-social .social-link, .dpf-social .social-link::before { transition: none; } }

/* Figure hallmark: the emblem and name set into the corner of every interactive figure */

/* ---------- Footer: one row of links, the icons, the small print ---------- */

/* ===== block 03 ===== */
/* =====================================================================
   HOMEPAGE, REBUILT AROUND THREE RULES
   1  First impression: one black stage, the tooth, one headline.
   2  Low effort: five sections, one purpose each, wide margins of space.
   3  Small responses: the page answers scroll, pointer and press.
   ===================================================================== */
.home { --section-y: clamp(84px, 11vw, calc(168 * var(--u))); }
.home .sec-title { font-size: clamp(36px, 4.6vw, calc(68 * var(--u))); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.home .sec-lede { font-size: clamp(17px, 1.4vw, calc(20 * var(--u))); }
.home .sec .eyebrow { margin-bottom: 20px; }
.home .showcase .sec-title { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; }
.home .showcase .sec-lede { font-size: clamp(16px, 1.25vw, 18px); }
.home .showcase .eyebrow { margin-bottom: 14px; }

/* a gold hairline under the header shows how far down the page you are */
.home .site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; background: linear-gradient(90deg, #8F5E09, #F0C865); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* ---- 1 · HERO: the band under the tooth becomes four quiet words on black ---- */
/* every item is the same stack: icon centred over its title, so icons and titles share one axis */
/* the gold word catches the light once, after the headline has landed */
@keyframes giltPass { from { background-position: 130% 0; } to { background-position: -40% 0; } }

/* ---- 2 · THE STANDARD: one sentence, lit word by word as it is scrolled through ---- */

/* ---- 3, 4 · the lesson and its tour keep their build; they get air and a seam ---- */
.home #lessons { padding-bottom: clamp(48px, 6vw, 96px); }
.home #inside-a-lesson { border-top: 1px solid rgba(255,255,255,.08); }

/* ---- 5 · THE END: the tooth returns, full width, with one thing to do ---- */
.fin { position: relative; overflow: hidden; background: var(--black); color: var(--white); min-height: min(92vh, calc(900 * var(--u))); display: flex; align-items: center; padding: clamp(96px, 13vw, 190px) var(--gutter); }
.fin::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.12) 58%, rgba(0,0,0,0) 100%), linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 84%, #000 100%); }
.fin h2 { margin: 0 0 clamp(18px, 2vw, 30px) -0.04em; max-width: 9.5em; font: 600 clamp(44px, 8.2vw, calc(128 * var(--u)))/.96 var(--display); letter-spacing: -.045em; }
.fin h2 .wd { display: inline-block; white-space: nowrap; }
.fin h2 .ch { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0); transition: opacity .7s ease, transform 1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--c) * 26ms); }
.fin.in h2 .ch { opacity: 1; transform: none; }
.fin p { margin: 0 0 clamp(28px, 3vw, 44px); max-width: 26em; font-size: clamp(17px, 1.45vw, calc(21 * var(--u))); line-height: 1.55; color: #C9CDD3; opacity: 0; transition: opacity 1s ease .7s; }
.fin.in p { opacity: 1; }
.fin .btn-gold { height: calc(52 * var(--u)); padding: 0 calc(28 * var(--u)); font-size: calc(16.5 * var(--u)); }
@media (max-width: 760px) { .fin { min-height: 0; align-items: flex-end; padding-top: 62vw; } .fin::before { background: linear-gradient(180deg, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 34%, #000 60%); } }
@media (prefers-reduced-motion: reduce) { .fin h2 .ch, .fin p { opacity: 1; transform: none; transition: none; } }

/* ===== block 04 ===== */
/* =====================================================================
   NOVEMBER 2026 · ROUND 3
   Section rhythm: Black (hero) → Stone (band) → Black (Lessons) → Ivory (Our Standard)
   → Black (Inside a Lesson) → Stone (Who It’s For) → Black (closing call and footer)
   ===================================================================== */
:root { --ivory: #F7F5F1; }

/* ---- Lessons: no light following the pointer ---- */

/* ---- Our Standard: the compact strip, ivory, 55–70px ---- */
.home #inside-a-lesson { border-top: 0; }

/* ---- Who It’s For: stone, 75–95px, same icon gold and dividers as the band ---- */

/* ---- Closing call to action: centred, quiet, the hero's two buttons ---- */

/* ---- 01 Learn · 02 Explore · 03 Practice ---- */
.tour-dots { position: relative; display: inline-flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 2px; padding: 4px;
  border-radius: 999px; background: #F1EFEA; border: 1px solid #E0DBD1; isolation: isolate; }
.td-pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); overflow: hidden;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), width .55s cubic-bezier(.2,.8,.2,1); }
.td-pill i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; border-radius: 2px; background: var(--gold); opacity: 0;
  transform-origin: 0 50%; transform: scaleX(var(--tp, 0)); transition: opacity .3s ease; }
.tour-dot { position: relative; display: inline-flex; align-items: center; gap: 6px; width: auto; height: 32px; padding: 0 14px; border-radius: 999px;
  background: transparent; font: 600 13.5px var(--sans); letter-spacing: 0; color: #5B6472; white-space: nowrap; transition: color .35s ease; }
.tour-dot::after { display: none !important; }
.tour-dot b { font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; transition: color .35s ease; }
.tour-dot:hover { color: var(--ink); background: transparent; }
.tour-dot.on, .tour-dot.on:hover { color: #fff; background: transparent; }
.tour-dot.on b { color: var(--gold); }
.tour-dot:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
/* laptops and TVs: in the lesson window's top bar */
.demo-bar .tour-dots { margin-right: -18px; }
/* tablets and phones: a floating bar that rides along the three steps */
.tour-nav-host { display: none; }
@media (max-width: 1099px), (orientation: portrait) {
  .tour-nav-host { position: sticky; top: calc(var(--header-total) + 10px); z-index: 30; display: flex; justify-content: center; margin: 4px 0 0; pointer-events: none; }
  .tour-nav-host .tour-dots { pointer-events: auto; box-shadow: 0 10px 28px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.25); }
  .tour-nav-host .td-pill i { opacity: .95; }
  .tour-step .tour-media { transform-origin: 50% 0; will-change: transform, opacity; }
}
@media (max-width: 380px) { .tour-dot { padding: 0 10px; font-size: 12.5px; gap: 5px; } }

/* ---- Feature band: no dividers on phones and tablets ---- */

/* ---- Highlighter walkthrough ---- */
.pen-toggle.guide { position: relative; border-color: rgba(201,143,38,.75); color: var(--accent); }
.pen-toggle.guide::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(219,164,38,0) 0 52%, #F0C865 70%, #C98F26 84%, rgba(219,164,38,0) 97%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: dpSpin 2.2s linear infinite; }
.pen-toggle.guide::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; animation: dpBreath 2.2s ease-in-out infinite; }
@keyframes dpSpin { to { transform: rotate(1turn); } }
@keyframes dpBreath { 0%, 100% { box-shadow: 0 0 0 0 rgba(219,164,38,0); } 50% { box-shadow: 0 0 0 4px rgba(219,164,38,.2); } }
.lx-tools { position: relative; }
.hl-guide { position: absolute; right: 0; top: calc(100% + 12px); z-index: 8; width: max-content; max-width: min(270px, 70vw); margin: 0; padding: 8px 13px 8px 28px;
  border-radius: 10px; background: var(--text); color: var(--page); font: 500 12.5px/1.45 var(--sans); text-align: left; white-space: normal;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translate3d(0,-4px,0); pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s; }
.hl-guide.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hl-guide::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--gold); animation: dpTip 1.8s ease-out infinite; }
.hl-guide::after { content: ""; position: absolute; left: var(--ax, 22px); top: -4px; width: 9px; height: 9px; border-radius: 2px; background: var(--text); transform: rotate(45deg); }
@keyframes dpTip { 0% { box-shadow: 0 0 0 0 rgba(219,164,38,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(219,164,38,0); } }
.pen-tray.guide .pen[data-pen]:not(.pen-erase) i { animation: dpPen 1.8s ease-in-out infinite; }
.pen-tray.guide .pen[data-pen]:nth-child(2) i { animation-delay: .12s; } .pen-tray.guide .pen[data-pen]:nth-child(3) i { animation-delay: .24s; }
.pen-tray.guide .pen[data-pen]:nth-child(4) i { animation-delay: .36s; } .pen-tray.guide .pen[data-pen]:nth-child(5) i { animation-delay: .48s; }
@keyframes dpPen { 0%, 100% { box-shadow: 0 0 0 0 rgba(219,164,38,0); } 50% { box-shadow: 0 0 0 3px rgba(219,164,38,.45); } }
/* key terms: a gold light passes along each underlined term until one is opened */
.demo .gloss.shine { text-decoration-color: var(--accent);
  background-image: linear-gradient(100deg, transparent 35%, rgba(240,200,101,.5) 50%, transparent 65%), linear-gradient(var(--accent-soft), var(--accent-soft));
  background-size: 260% 100%, 100% 0; background-repeat: no-repeat; background-position: 160% 0, 0 100%;
  animation: dpGloss 3.2s ease-in-out infinite; animation-delay: calc(var(--gi, 0) * .45s); }
.demo .gloss.shine:hover { background-size: 260% 100%, 100% 100%; }
@keyframes dpGloss { 0%, 30% { background-position: 160% 0, 0 100%; } 70%, 100% { background-position: -60% 0, 0 100%; } }

/* ---- Mechanism figure: zones, toggles, scale, arrows ---- */
.demo .la-mech .la-ph .seg { gap: 2px; padding: 3px; background: var(--surface-2); border-color: var(--rule); }
.demo .la-mech .la-ph .seg button { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.demo .la-mech .la-ph .seg button[data-zone="inf"]  { --z: #D0633C; --zbg: #FBE9E1; --zt: #8A3517; }
.demo .la-mech .la-ph .seg button[data-zone="norm"] { --z: #1D9E75; --zbg: #E1F4EC; --zt: #0E6A4F; }
.demo .la-mech .la-ph .seg button[data-zone="alk"]  { --z: #6E7CC4; --zbg: #E7E9F7; --zt: #3B4794; }
.demo .la-mech .la-ph .seg button::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--z); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.demo .la-mech .la-ph .seg button[aria-pressed="true"] { background: var(--zbg); color: var(--zt); box-shadow: inset 0 0 0 1px var(--z); }
.demo .la-mech .la-ph .seg button[aria-pressed="true"]::before { transform: scale(1.3); }
.demo .la-mech .la-ph .seg button:not([aria-pressed="true"]):hover { color: var(--text); background: rgba(15,23,42,.045); }
.demo .la-mech .la-band { display: none; }
.demo .la-mech .la-scale::before { background: linear-gradient(90deg, #EDBBA7 0%, #E8AE97 62%, #E9C2B2 89.7%, #B2DECA 93.1%, #A3D7BF 100%); }
.demo .la-mech .la-normal { width: 2px; border-radius: 2px; }
.demo .la-mech .la-ph { --zthumb: var(--text); }
.demo .la-mech .la-ph[data-zone="inf"] { --zthumb: #C2552F; } .demo .la-mech .la-ph[data-zone="norm"] { --zthumb: #1D9E75; } .demo .la-mech .la-ph[data-zone="alk"] { --zthumb: #5D6BB8; }
.demo .la-mech .la-ph input[type=range]::-webkit-slider-thumb { border-color: var(--zthumb); transition: border-color .3s ease, transform .2s ease; }
.demo .la-mech .la-ph input[type=range]::-moz-range-thumb { border-color: var(--zthumb); }
.demo .la-mech .la-ph input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.demo .la-mech .la-nav { gap: 14px; }
.demo .la-mech .la-nav .la-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: var(--page); color: var(--text); font-size: 0;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.demo .la-mech .la-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) {
  .demo .la-mech .la-nav .la-btn:hover { background: var(--text); border-color: var(--text); color: var(--page); box-shadow: 0 8px 18px -10px rgba(15,23,42,.45); }
  .demo .la-mech #la-next:hover svg { transform: translate3d(2px,0,0); }
  .demo .la-mech #la-prev:hover svg { transform: translate3d(-2px,0,0); }
}
.demo .la-mech .la-nav .la-btn:active { transform: scale(.92); transition-duration: .12s; }
.demo .la-mech #la-dots { display: flex; align-items: center; }
.demo .la-mech .la-dot { width: auto; min-width: 20px; height: 24px; padding: 0 3px; }
.demo .la-mech .la-dot::after { width: 7px; height: 7px; border-radius: 4px; background: var(--rule-strong); transition: width .45s cubic-bezier(.2,.8,.2,1), background-color .3s ease; }
.demo .la-mech .la-dot.on::after { width: 22px; background: var(--text); }
.demo .la-mech .la-dot:not(.on):hover::after { background: var(--text-3); }
@media (max-width: 1099px), (orientation: portrait) { .demo .la-mech .la-nav .la-btn { width: 36px; height: 36px; } }
/* no context menu over figures */
.la-canvas, .la-canvas svg { -webkit-touch-callout: none; }

/* ---- Question bank: lighter marks that sit with the rest of the frame ---- */
.qb-opt.right .k, .qb-opt.wrong .k { background: var(--page); }
.qb-opt.right .k { border: 1.5px solid #1E9E62; } .qb-opt.right .k::after { background: #1E9E62; }
.qb-opt.wrong .k { border: 1.5px solid #D2452F; } .qb-opt.wrong .k::after { background: #D2452F; }
.qb-opt.right .k::after, .qb-opt.wrong .k::after { width: 14px; height: 14px; }
.qb-top span.tp { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font: 600 13px var(--sans); color: var(--text-3); }
.qb-opt.right .k { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E"); }
.qb-opt.wrong .k { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.qb-opt .k { display: grid; place-items: center; }

/* ---- Footer ---- */
.f2 { padding: 0 var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px)); background: var(--black); color: var(--grey); }
.f2-in { max-width: 1360px; margin: 0 auto; zoom: var(--zw, 1); padding-top: clamp(48px, 5vw, 72px);   /* grows evenly with the page on large monitors and TVs */ border-top: 1px solid rgba(255,255,255,.1); }
.f2-grid { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px clamp(32px, 4vw, 72px); align-items: start; }
.f2-brand .brand { display: inline-flex; align-items: center; gap: 12px; }
.f2-brand .mark { height: 42px; width: auto; } .f2-brand .wordmark { height: 18px; width: auto; }
.f2-tag { margin: 18px 0 0; max-width: 24em; font-size: 15px; line-height: 1.6; color: #A3A8B0; text-wrap: balance; }
.f2 .dpf-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0 -9px; }
.f2 .social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent !important; opacity: 1;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; }
.f2 .social-link svg { width: 22px; height: 22px; filter: none !important; transform: none !important; }
.f2 .social-link::before { display: none !important; }
@media (hover: hover) { .f2 .dpf-social .social-link:hover { transform: translate3d(0,-4px,0) scale(1.1); } }
.f2 .dpf-social .social-link:active { transform: scale(.92); transition-duration: .12s; }
.f2 .dpf-social.arm .social-link { opacity: 0; transform: translate3d(0,10px,0) scale(.6); }
.f2 .dpf-social.lit .social-link { animation: socPop .7s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--k, 0) * .07s); }
@keyframes socPop { from { opacity: 0; transform: translate3d(0,10px,0) scale(.6); } to { opacity: 1; transform: none; } }
.f2-h { margin: 0 0 16px; font: 600 12.5px/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.f2-links { display: grid; gap: 12px; padding-top: 36px; font-size: 15px; line-height: 1.4; }
.f2-links a { position: relative; color: #D5D8DD; transition: color .2s ease; }
.f2-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.f2-links a:hover, .f2-links a:focus-visible { color: #fff; }
.f2-links a:hover::after, .f2-links a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.f2-note { margin: clamp(40px, 4.5vw, 64px) 0 0; font-size: 13px; line-height: 1.6; color: #7C818A; }
.f2-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; line-height: 1.6; color: #A3A8B0; }
.f2-bottom p { margin: 0; }
.f2-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.f2-legal a { color: #A3A8B0; text-decoration: none; transition: color .2s ease; }
.f2-legal a:hover, .f2-legal a:focus-visible { color: #fff; }
@media (min-width: 1360px) { .f2-note { white-space: nowrap; } }
@media (max-width: 1023px) { .f2-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px 40px; } .f2-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .f2-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .f2-links { padding-top: 0; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 40px; }
  .f2-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media print { .f2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .f2 .dpf-social.arm .social-link { opacity: 1; transform: none; } .f2 .dpf-social.lit .social-link { animation: none; } .pen-toggle.guide::before, .pen-toggle.guide::after, .demo .gloss.shine { animation: none; } }

/* ===== block 05 ===== */
/* ===================== ROUND 4: smoothness, rhythm, footer ===================== */
/* every section's content sits centred in its own space, with one type scale */
.home #lessons { padding-top: clamp(72px, 8vw, 124px); padding-bottom: clamp(72px, 8vw, 124px); }
.home .showcase { padding-top: clamp(72px, 8vw, 124px); }
@media (max-width: 1099px), (orientation: portrait) { .home .showcase { padding-bottom: clamp(72px, 8vw, 124px); } }
.home .sec .eyebrow, .home .showcase .eyebrow { font-size: 13px; margin: 0 0 14px; }
.home #lessons .sec-title, .home .showcase .sec-title { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; }
.home #lessons .sec-lede, .home .showcase .sec-lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }

/* phones and tablets: the step bar sits exactly halfway between the intro and the first step */
@media (max-width: 1099px), (orientation: portrait) {
  .tour-nav-host { margin: 28px 0 0; }
  .tour-nav-host + .tour-step { padding-top: 28px !important; }
  .tour-nav-host .tour-dots { transform: translateZ(0); }
}

/* question bank marks: drawn on their own layer, exactly centred in the ring */
.qb-opt .k { position: relative; }
.qb-opt.right .k::after, .qb-opt.wrong .k::after { position: absolute; inset: 0; margin: auto; display: block; width: 13px; height: 13px; }

/* footer: tighter */
.f2-in { padding-top: clamp(40px, 4vw, 56px); }
.f2-tag { margin-top: 14px; }
.f2 .dpf-social { margin-top: 16px; }
.f2-h { margin-bottom: 14px; }
.f2-links { padding-top: 34px; gap: 11px; }
.f2-note { margin-top: clamp(32px, 3.4vw, 48px); }
.f2-bottom { margin-top: 14px; padding-top: 14px; }
@media (max-width: 1023px) { .f2-grid { gap: 32px 40px; } }
@media (max-width: 560px) {
  .f2-grid { gap: 28px; }
  .f2-links { padding-top: 0; grid-template-columns: none; }
}
/* low-power and older devices: compositor-only motion, nothing animates layout */
.tour-step .tour-media, .tour-step .step-kicker, .tour-step > h3, .tour-step .step-text, .tour-step .step-hint { backface-visibility: hidden; }

/* ===== block 06 ===== */
/* ===================== ROUND 5: footer without courses, one horizontal row ===================== */
.f2-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; grid-template-columns: none; }
.f2-brand { grid-column: auto !important; }
.f2-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 0; padding-top: 11px; font-size: 15px; }
.f2-tag { max-width: 21em; }
@media (max-width: 760px) {
  .f2-grid { flex-direction: column; gap: 28px; }
  .f2-links { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 0; }
}

/* ===== block 07 ===== */
/* ===================== ROUND 6 ===================== */
/* hero: the canvas alone shows the tooth; nothing can peek out along its edges */
.hero-media.drawn img { visibility: hidden; }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--black); pointer-events: none; z-index: 1; }

/* highlights: with a colour chosen, every pointer paints (assets/js/paint.js): no native selection or menu competes,
   and a sideways stroke stays with the text while an upward or downward one still scrolls */
.hl-demo.pen-on .lx-text { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y pinch-zoom; cursor: text; }
.hl-demo .lx-text { -webkit-tap-highlight-color: transparent; }

/* footer: the icons sit midway between the line above and the small print below */
.f2 .dpf-social { margin-top: 18px; }
.f2-note { margin-top: 20px; }
/* links: Contact and Report Error centred under Community, For Patients and About */
.f2-links { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 0; }
@media (max-width: 760px) {
  .f2-grid { gap: 20px; }
  .f2-links { align-self: flex-start; align-items: center; }
}

/* ===== block 08 ===== */
/* phones: a soft black backdrop behind the floating step bar, so text never shows around it */
@media (max-width: 1099px), (orientation: portrait) {
  .tour-nav-host { isolation: isolate; }
  .tour-nav-host::before { content: ""; position: absolute; z-index: -1; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: -10px; bottom: -16px;
    background: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0) 100%); pointer-events: none; }
}

/* ===== block 09 ===== */
/* ===================== ROUND 7 ===================== */
/* highlight note: a plain box under the colors, anchored to the highlighter's fixed right edge,
   so it never moves while the tray opens */
.pen-wrap { position: relative; }
.hl-guide { left: auto !important; right: 0 !important; top: calc(100% + 10px); transform: none !important; transition: opacity .25s ease, visibility 0s linear .25s; }
.hl-guide.show { transition: opacity .25s ease .3s, visibility 0s linear .3s; }   /* appears once the tray has finished opening */
.hl-guide::after { display: none !important; }
/* highlights appear at once, no fade */
mark.hl { transition: none; }
/* figure: the step dots never change the width of the controls, so the caption never re-wraps */
.demo .la-mech .la-dot { width: 30px; min-width: 30px; padding: 0; display: grid; place-items: center; }
.demo .la-mech .la-dot::after { margin: 0; }
.demo .la-mech .la-nav { flex: none; }
.demo .la-mech .la-cap { animation: none !important; }

/* ===== block 10 ===== */
/* ===================== ROUND 8: seamless step changes ===================== */
/* Every window stays painted on its own layer; switching only changes opacity, on the graphics chip.
   The new window fades in on top while the old one stays fully visible beneath it, so there is
   never a blank or dimmed moment; the old one is cleared once it is covered. */
.demo-body > .panel { visibility: visible !important; opacity: 0; z-index: 0; pointer-events: none; will-change: opacity;
  transition: opacity 0s linear .34s !important; }
.demo-body > .panel.on { opacity: 1; z-index: 1; pointer-events: auto; transition: opacity .32s cubic-bezier(.4,0,.2,1) 0s !important; }
.demo.mini .demo-body > .panel { opacity: 1 !important; pointer-events: auto; will-change: auto; transition: none !important; }
/* the step text on the left: the old text leaves quickly, then the new text arrives, never overlapping */
@media (min-width: 1100px) and (orientation: landscape) {
  .step-stack .tour-step, .step-stack .tour-step:first-of-type, .step-stack .tour-step:last-child {
    visibility: visible !important; pointer-events: none; transform: translate3d(0, 6px, 0);
    transition: opacity .16s ease, transform .16s ease !important; }
  .step-stack .tour-step.on { opacity: 1; pointer-events: auto; transform: none;
    transition: opacity .3s cubic-bezier(.4,0,.2,1) .14s, transform .42s cubic-bezier(.2,.8,.2,1) .14s !important; }
}
@media (prefers-reduced-motion: reduce) { .demo-body > .panel, .demo-body > .panel.on, .step-stack .tour-step, .step-stack .tour-step.on { transition: none !important; } }

/* ===== block 11 ===== */
/* ===================== ROUND 9 ===================== */
/* iPhone Safari tints the area behind its floating toolbar from the page; a hairline of black at
   the very bottom keeps that area black on every section (iOS Safari only, invisible behind the bar) */
.dp-tint { display: none; }
@supports (-webkit-touch-callout: none) {
  .dp-tint { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: 8px; background: #000; transform: translateZ(0);   /* thin, fixed height: present from the first frame of every load */ pointer-events: none; z-index: 2147483000; }
}

/* ===== block 12 ===== */

/* ===== block 13 ===== */
/* the cover is a real element (Safari reads the colour of what sits at the screen edge, and a
   pseudo-element is invisible to that check); outside phones it does not exist */

/* ===== block 14 ===== */
/* ===================== ROUND 10 ===================== */
/* figure toggles: label and dot centred in each button */
.demo .la-mech .la-ph .seg button { justify-content: center; text-align: center; }
/* footer on phones and narrow tablets: everything centred */
@media (max-width: 760px) {
  .f2-grid { align-items: center; text-align: center; }
  .f2-brand { display: flex; flex-direction: column; align-items: center; }
  .f2-tag { margin-left: auto; margin-right: auto; }
  .f2 .dpf-social { justify-content: center; margin-left: 0; margin-right: 0; }
  .f2-links { align-self: center; align-items: center; }
  .f2-note { text-align: center; text-wrap: balance; }
  .f2-bottom { align-items: center; text-align: center; }
  .f2-legal { justify-content: center; }
}

/* ===== block 15 ===== */
/* ===================== ROUND 11 ===================== */
/* footer on phones: logo, links and icons centred; the small print reads left to right as normal,
   with the copyright on the left and Terms, Privacy and Disclaimer on the right of the same line */
@media (max-width: 760px) {
  .f2-note { text-align: left; text-wrap: pretty; }
  .f2-bottom { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 16px; text-align: left; }
  .f2-bottom > p:first-child { flex: 1 1 auto; min-width: 0; }
  .f2-legal { flex: none; justify-content: flex-end; gap: 6px 16px; flex-wrap: nowrap; }
}
@media (max-width: 380px) { .f2-bottom { font-size: 12px; } .f2-legal { gap: 6px 12px; } }

/* ===== block 16 ===== */
/* ===================== ROUND 12: footer columns ===================== */
.f2-links { display: grid !important; grid-template-columns: repeat(2, max-content); column-gap: clamp(40px, 5vw, 80px); align-items: start !important; justify-items: start; padding-top: 4px; }
.f2-col { display: grid; justify-items: start; gap: 11px; font-size: 15px; line-height: 1.4; }
.f2-col .f2-h { margin: 0 0 3px; }
.f2-col a { position: relative; color: #D5D8DD; transition: color .2s ease; }
.f2-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.f2-col a:hover, .f2-col a:focus-visible { color: #fff; }
.f2-col a:hover::after, .f2-col a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
/* phones: back to left alignment throughout; the small print runs the full width */
@media (max-width: 760px) {
  .f2-grid { align-items: flex-start !important; text-align: left !important; }
  .f2-brand { display: block !important; }
  .f2-tag { margin-left: 0 !important; margin-right: 0 !important; }
  .f2 .dpf-social { justify-content: flex-start !important; margin-left: -9px !important; }
  .f2-links { align-self: flex-start !important; column-gap: 64px; padding-top: 0; }
  .f2-note { text-align: left !important; text-wrap: wrap !important; max-width: none !important; }
}
.f2-note { max-width: none; text-wrap: wrap; }

/* ===== block 17 ===== */
/* live swipe preview: colored boxes laid over the exact characters, text drawn through them */
.hl-preview { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 40; mix-blend-mode: multiply; }   /* the layer itself blends with the page, so the letters show through */
.hl-preview i { position: absolute; border-radius: 2px; }
.hl-preview.on-dark { mix-blend-mode: normal; }
.hl-preview.on-dark i { opacity: .42; }

/* ===== block 18 ===== */
.hl-demo ::highlight(dp-yellow) { background-color: var(--hl-yellow); color: inherit; }
.hl-demo ::highlight(dp-green)  { background-color: var(--hl-green);  color: inherit; }
.hl-demo ::highlight(dp-orange) { background-color: var(--hl-orange); color: inherit; }
.hl-demo ::highlight(dp-blue)   { background-color: var(--hl-blue);   color: inherit; }
.hl-demo ::highlight(dp-pink)   { background-color: var(--hl-pink);   color: inherit; }
.hl-demo ::highlight(dp-erase)  { background-color: var(--page);      color: inherit; text-decoration: line-through; text-decoration-color: rgba(15,23,42,.35); }

/* ===== block 19 ===== */
/* Tooth media: hard rectangular edges, with no decorative border treatment. */
.hx-canvas {
  -webkit-mask: none !important; mask: none !important;
  filter: none !important; box-shadow: none !important;
  border-radius: 0 !important; opacity: 1 !important;
  mix-blend-mode: normal !important; transition: none !important;
}

/* ===== block 20 ===== */
  /* Laptops and desktops: a slightly taller, larger header; the hero below it shrinks to match. */
  @media (min-width: 1025px) {
    :root { --header-h: calc(80 * var(--u)); --mark-h: calc(56 * var(--u)); --wordmark-h: calc(24 * var(--u)); }
    .site-header .nav-link { height: calc(46 * var(--u)); font-size: calc(17 * var(--u)); }
    .site-header .nav-link svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
    .site-header .icon-btn { width: calc(46 * var(--u)); }
    .site-header .icon-btn svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
    .site-header .btn { height: calc(46 * var(--u)); padding: 0 calc(22 * var(--u)); font-size: calc(16.5 * var(--u)); }
  }

/* ===== block 21 ===== */
  /* Phones: the stage runs a little past the screen's bottom edge (EXT in the script); the text group glides
     to its place when a chapter of a different height comes in */
  @media (max-width: 900px) {
    html body .hx-stage { height: calc(var(--vh, 100svh) - var(--header-total) + 40px); }
    html body .hx-copy { transition: top .5s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
    html body .hx-index { transition: top .5s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
  }

/* ===== block 22 ===== */
  /* ---- Buttons (header and hero): flatter and calmer, no shadows; the sheen on hover and the press remain ---- */
  .btn { border-radius: calc(10 * var(--u)); font-weight: 600; letter-spacing: .005em; }
  .btn-gold { background: #D9A43A; color: #1A1305; box-shadow: none; }
  .btn-gold:hover { background: #E3B24C; box-shadow: none; }
  .btn-signup { background: #1F3FB8; box-shadow: none; }
  .btn-signup:hover { background: #2747C8; box-shadow: none; }
  .btn-outline { border-color: rgba(255,255,255,.26); }
  @media (hover: hover) {
    .btn-gold:hover, .btn-signup:hover { box-shadow: none; transform: translateY(-1px); }
    .btn-outline:hover { border-color: rgba(255,255,255,.7); background-color: rgba(255,255,255,.05); transform: translateY(-1px); }
    .site-header .nav-link:hover { background: rgba(255,255,255,.06); }
  }
  .btn-gold::after, .btn-signup::after { background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%); }
  .nav-right .btn-outline + .btn-signup { margin-left: calc(10 * var(--u)); }
  .hx-actions .btn { border-radius: calc(10 * var(--u)); }
  /* ---- the swipe / scroll hint ---- */
  .hx-stage { touch-action: pan-y; }
  .hx-hint { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; pointer-events: none; opacity: 0; transform: translateY(6px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); color: var(--hx-dim, #8C8F96); font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
    left: var(--gutter); bottom: calc(clamp(22px, 4.6vh, 46px) + 46px); }
  .hx-hint.on { opacity: 1; transform: none; }
  .hx-hint.off { opacity: 0; transform: translateY(-4px); transition-duration: .45s; }
  .hx-hint svg { display: block; fill: none; stroke: var(--hx-gold, #DBA426); stroke-width: 1.4; stroke-linecap: round; }
  .hh-mouse { width: 13px; height: 20px; }
  .hh-wheel { animation: hhWheel 1.8s cubic-bezier(.5,0,.3,1) infinite; }
  @keyframes hhWheel { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(5px); opacity: 0; } 61% { transform: translateY(0); opacity: 0; } 100% { opacity: 1; } }
  @media (max-width: 900px) { .hx-hint { left: 50%; bottom: auto; top: calc(var(--hx-strip, 380px) + 40px); transform: translate(-50%, 6px); } .hx-hint.on { transform: translate(-50%, 0); } .hx-hint.off { transform: translate(-50%, -4px); } }
  @media (prefers-reduced-motion: reduce) { .hx-hint { display: none; } }

/* ===== block 23 ===== */
@media (min-width: 901px) { .hx-ch { top: 52%; } }

/* ===== block 24 ===== */
/* ---- hero text: set line breaks (bl = laptops and larger, bs = phones) ---- */
.hx-lede br.bs { display: none; }
@media (min-width: 901px) { .hx-lede { max-width: none; } }
@media (max-width: 900px) { .hx-lede br.bl { display: none; } .hx-lede br.bs { display: inline; } }
/* ---- courses (from v5) ---- */

/* ---- courses as a scrollable row: a few on screen, the rest by swiping or the arrows ---- */

/* ===== block 25 ===== */
/* ================= hero: the opening sequence of index.html, and every chapter enters the same way =================
   eyebrow, the title's two lines, the paragraph and the buttons rise in on an even beat; the gold word then
   catches the light once. Leaving, they lift away together. Compositor-only (opacity and transform). */
:root { --open-ease: cubic-bezier(.16,1,.3,1); }
.booting .hx-copy, .booting .hx-index { opacity: 1; }
.hx-ch { transition: opacity .3s ease, transform .9s var(--open-ease); }
.hx-ch > .eyebrow, .hx-ch h1 > span, .hx-ch h2 > span, .hx-ch > .hx-lede, .hx-ch > .hx-actions {
  opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .55s ease, transform 1s var(--open-ease); transition-delay: 0s; will-change: transform, opacity; }
.hx-ch.past > .eyebrow, .hx-ch.past h1 > span, .hx-ch.past h2 > span, .hx-ch.past > .hx-lede, .hx-ch.past > .hx-actions { transform: translate3d(0, -16px, 0); }
.hx-ch:not(.on) > *, .hx-ch:not(.on) h1 > span, .hx-ch:not(.on) h2 > span { transition-duration: .28s, .5s; }
.hx-ch.on > .eyebrow, .hx-ch.on h1 > span, .hx-ch.on h2 > span, .hx-ch.on > .hx-lede, .hx-ch.on > .hx-actions { opacity: 1; transform: none; transition-delay: var(--d); }
.hx-ch > .eyebrow { --d: .04s; } .hx-ch h1 > span:first-child, .hx-ch h2 > span:first-child { --d: .12s; } .hx-ch h1 > span + span, .hx-ch h2 > span + span { --d: .2s; }
.hx-ch > .hx-lede { --d: .3s; } .hx-ch > .hx-actions { --d: .4s; }
/* the first time (page load) everything takes a little longer, as in index.html */
.hx-open .hx-ch.on > .eyebrow, .hx-open .hx-ch.on h1 > span, .hx-open .hx-ch.on h2 > span, .hx-open .hx-ch.on > .hx-lede, .hx-open .hx-ch.on > .hx-actions {
  transition-duration: .9s, 1.2s; transition-delay: calc(.1s + var(--d) * 1.5); }
.booting .hx-ch.on > .eyebrow, .booting .hx-ch.on h1 > span, .booting .hx-ch.on h2 > span, .booting .hx-ch.on > .hx-lede, .booting .hx-ch.on > .hx-actions { opacity: 0; transform: translate3d(0, 24px, 0); }
.hx-ch .gilt-w { position: relative; }
.hx-ch .gilt-w::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 0; padding-bottom: .06em; color: transparent; -webkit-text-fill-color: transparent; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255,246,214,.95) 50%, transparent 58%) 130% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.hx-ch.on .gilt-w::after { animation: giltPass 1.4s cubic-bezier(.4,0,.2,1) .7s both; }
.hx-open .hx-ch.on .gilt-w::after { animation-delay: 1.3s; }
.booting .hx-ch .gilt-w::after { animation-play-state: paused; }
/* Only "Confidence" keeps the passing gold light; the other chapter titles stay a still gilt */
.hx-ch h2 .gilt-w::after { content: none; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hx-ch > .eyebrow, .hx-ch h1 > span, .hx-ch h2 > span, .hx-ch > .hx-lede, .hx-ch > .hx-actions { transform: none !important; transition: opacity .2s ease !important; }
  .hx-ch .gilt-w::after { animation: none !important; }
}

/* ================= What's New ================= */
.nw-sec { padding: clamp(72px, 8vw, 128px) var(--gutter) clamp(64px, 7vw, 112px); }
.dd.nw { display: grid; max-width: 1640px; margin: 0 auto; padding-top: 0; border-top: 0; align-items: center; }
.nw.on > * { animation: none; }
.nw-head .dd-kick { margin: 0; }
.nw-title { margin: 14px 0 0; font: 600 clamp(38px, 4.2vw, 68px)/1.02 var(--display); letter-spacing: -.035em; color: var(--white); }
.nw .dd-desc { margin-top: 18px; }
.nw-list { padding-bottom: 34px; }
.nw .lw-no.nw-no { color: #F7F5F1; background: none; -webkit-text-fill-color: #F7F5F1; font-size: clamp(64px, 6.6vw, 112px); line-height: .84; letter-spacing: -.055em; left: 16px; top: 18px; overflow: visible; }
.nw .lw-t.pic .lw-img { opacity: .26; }
.nw .lw-img img { object-position: 50% 78%; }
.nw .lw-t:hover .lw-img, .nw .lw-t:focus-visible .lw-img { opacity: .55; }
.nw .lw-img::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.95) 82%); }
.nw-no .dp-scrawl { position: absolute; left: 4%; top: -6%; width: 122%; height: auto; overflow: visible; transform: rotate(-9deg); pointer-events: none; }
.nw-no .dp-scrawl path { fill: none; stroke: #E4B43C; stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.15s cubic-bezier(.65,0,.25,1) .45s; }
.nw-list.in .nw-no .dp-scrawl path { stroke-dashoffset: 0; }
.lw-path { position: relative; margin-bottom: 6px; font: 600 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-gold-hi); }
.nw .lw-t:hover, .nw .lw-t:focus-visible { box-shadow: 0 30px 60px -30px #000; }
/* the card and the ghosts rise in when they reach the screen */
.nw-list > li { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s ease, transform 1.1s var(--open-ease); }
.nw-list > li:nth-child(2) { transition-delay: .1s; } .nw-list > li:nth-child(3) { transition-delay: .2s; }
.nw-list.in > li { opacity: 1; transform: none; }
.nw-list.in > li:nth-child(3n+2) { transform: translateY(34px); }
@media (max-width: 1099px) { .nw-list.in > li:nth-child(3n+2) { transform: none; } .nw-list.in > li:nth-child(2n) { transform: translateY(26px); } }
@media (max-width: 640px) {
  .nw-list.in > li:nth-child(n) { transform: none; }
  .nw-list > li[aria-hidden] { display: none; }
  .nw-list > li[aria-hidden]:nth-child(2) { display: block; }
  .nw .lw-t, .nw .lw-ghost { aspect-ratio: 1 / .78; }
  .nw .lw-ghost { aspect-ratio: auto; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .nw-list > li { opacity: 1; transform: none; transition: none; } .nw-no .dp-scrawl path { stroke-dashoffset: 0; transition: none; } }

/* ================= The Standard ================= */
.st-sec { position: relative; padding: clamp(80px, 9vw, 140px) var(--gutter); text-align: center; }
.st { max-width: 1100px; margin: 0 auto; }
.st .eyebrow { margin: 0 0 14px; }
.st h2 { font-size: clamp(30px, 3.4vw, 54px); }
.st-copy { margin: clamp(18px, 2vw, 26px) auto 0; max-width: 46em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: var(--grey); text-wrap: balance; }
@media (max-width: 1099px) { .st-br { display: none; } }

/* ================= section dividers: a few related forms, used selectively ================= */
.dv { position: relative; }
.dv::before { content: ""; position: absolute; top: 0; height: 1px; pointer-events: none; }
.dv-a::before { left: var(--gutter); right: var(--gutter); background: linear-gradient(90deg, var(--hx-gold), rgba(219,164,38,0) 72%); }
.dv-c { border-top: 0 !important; }
.dv-c::before { left: var(--gutter); right: var(--gutter); background: linear-gradient(270deg, var(--hx-gold), rgba(219,164,38,0) 72%); }
.dv-d::before { left: 50%; width: min(220px, 40%); transform: translateX(-50%); background: linear-gradient(90deg, rgba(219,164,38,0), var(--hx-gold), rgba(219,164,38,0)); }
.dv-d::after { content: ""; position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; transform: translateX(-50%) rotate(45deg); background: var(--hx-gold); }

/* ================= About: the portrait ================= */
.me-card img { object-position: 50% 18%; }
@media (hover: hover) { .me-photo:hover .me-card { box-shadow: 0 0 0 1px rgba(219,164,38,.4); } }

/* ================= Closing: room below now the arch is gone ================= */
.cta2 { padding-bottom: clamp(80px, 9vw, 150px); }

/* ================= Footer: social icons centred between the tagline and the links ================= */
@media (min-width: 761px) {
  .f2-grid { grid-template-columns: minmax(240px, auto) minmax(0, 1fr) auto; align-items: end; }
  .f2 .f2-soc { justify-self: center; align-self: end; margin: 0 !important; justify-content: center; flex-wrap: nowrap; gap: 8px; }
}
@media (max-width: 760px) { .f2 .f2-soc { margin: 22px 0 0 -9px !important; } }

/* ================= precise clicking: empty space never selects text; text stays selectable ================= */
body { -webkit-user-select: none; user-select: none; }
p, h1, h2, h3, h4, h5, h6, li, blockquote, figcaption, td, th, dd, dt, label, small, em, strong, code, pre, .selectable,
.demo, .la-mech, input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
a, button, .btn, nav, .hx-index, .lw, .lw *, .dpf-social, .brand, .site-header, .mobile-menu { -webkit-user-select: none; user-select: none; }
html { -webkit-tap-highlight-color: transparent; }

/* ===== block 26 ===== */
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) {
  html body .hx-stage { height: calc(var(--vh, 100svh) - var(--header-total)) !important; }
  html body .hx-copy { left: var(--gutter); right: auto; width: 36vw; top: 0 !important; bottom: 0; height: auto !important; text-align: left; }
  html body .hx-ch { top: 47% !important; transform: translateY(calc(-50% + 8px)); }
  html body .hx-ch.on { transform: translateY(-50%); } .hx-ch.past { transform: translateY(calc(-50% - 8px)); }
  html body .hx-ch h1, html body .hx-ch h2 { margin-top: 8px; }
  html body .hx-ch h1 { font-size: clamp(26px, 4.6vw, 42px); }
  html body .hx-ch h2 { font-size: clamp(25px, 4.4vw, 40px); }
  html body .hx-ch .eyebrow { font-size: 11px; }
  html body .hx-lede { font-size: 13.5px; line-height: 1.5; margin: 10px 0 0; max-width: 30em; }
  html body .hx-lede br { display: none !important; }
  html body .hx-actions { justify-content: flex-start; margin-top: 14px; gap: 8px; }
  html body .hx-actions .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
  html body .hx-index { left: var(--gutter); transform: none; top: auto; bottom: 10px; }
}
/* the phone footer: brand, then the social icons, then the links */
@media (max-width: 760px) {
  .f2-grid { grid-template-columns: minmax(0, 1fr) !important; row-gap: 0; }
  .f2 .f2-soc { margin: 20px 0 0 -9px !important; }
  .f2-links { padding-top: 28px; }
}

/* ===== block 27 ===== */
/* ---- phones and tablets: the section dots only for the four feature chapters, never over the opening's buttons ---- */
@media (max-width: 900px) {
  .hx-index button:first-child { display: none; }
  .hx-index { transition: opacity .45s ease, top .5s cubic-bezier(.2,.7,.2,1); }
  .hx-stage.hx-at0 .hx-index { opacity: 0; pointer-events: none; }
}
/* ---- divider between the hero and What's New: a quiet hairline, lit gold at its centre ---- */
.dv-b::before { left: 0; right: 0; background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.08) 30%, rgba(219,164,38,.9) 50%, rgba(255,255,255,.08) 70%, rgba(255,255,255,.08) 100%); }
/* ---- closing section: equal room above and below, content centred; the buttons never touch the footer ---- */
html body .cta2 { padding: clamp(96px, 10vw, 168px) var(--gutter); display: flex; align-items: center; justify-content: center; }
html body .cta2-in { width: 100%; }
@media (max-width: 760px) { html body .cta2 { padding: 104px var(--gutter) 112px; min-height: 72svh; } }
/* ---- one gold, one size for every section eyebrow ---- */
html body .eyebrow, html body .dd-kick { color: var(--gold) !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html body .dd-kick, html body .showcase .eyebrow, html body .cta2 .eyebrow, html body .st .eyebrow, html body .about-me .eyebrow, html body .hx-ch .eyebrow { font-size: 14px !important; }
html body .me-role, html body .step-kicker { color: var(--gold) !important; }
html body .lw-path { color: var(--gold); }
@media (max-width: 760px) { html body .dd-kick, html body .showcase .eyebrow, html body .cta2 .eyebrow, html body .st .eyebrow, html body .about-me .eyebrow, html body .hx-ch .eyebrow { font-size: 12.5px !important; } }
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) { html body .hx-ch .eyebrow { font-size: 11px !important; } }
/* ---- the portrait frame suits the new photo: lit from behind the head ---- */
.me-card { background: #15130F; }
.me-card img { object-position: 50% 20%; }

/* ===== block 28 ===== */
/* the hero never shorter than the visible screen, whatever the browser reports */
.hx-stage { height: calc(var(--vh, 100svh) - var(--header-total)); }
@media (max-width: 900px) {
  html body .hx-stage { height: calc(var(--vh, 100svh) - var(--header-total) + 40px); }
  /* closing section: compact, and closer to the footer; smaller buttons side by side */
  html body .cta2 { padding: 84px var(--gutter) 64px; min-height: 0; }
  html body .cta2 h2 { margin-bottom: 10px; }
  html body .cta2-sub { margin-bottom: 22px; }
  html body .cta2-act { gap: 10px; flex-wrap: nowrap; }
  html body .cta2-act .btn { flex: 0 1 auto; height: 44px; min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 9px; }
}
@media (max-width: 340px) { html body .cta2-act { flex-wrap: wrap; } }
/* sample.html (data-hero="classic"): the earlier rule, where the stage is never shorter than the small viewport */
@media (max-width: 900px) { html[data-hero="classic"] body .hx-stage { height: max(calc(var(--vh, 100svh) - var(--header-total) + 40px), calc(100svh - var(--header-total) + 40px)); } }

/* ===== block 29 ===== */
/* the scroll / swipe hint: title case, quiet, gone at the first move */
html body .hx-hint { text-transform: none; letter-spacing: .02em; font: 500 13px/1 var(--sans); color: rgba(255,255,255,.62); gap: 12px; }
.hh-cue { position: relative; display: block; width: 1px; height: 34px; background: rgba(255,255,255,.2); overflow: hidden; }
.hh-cue::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: #F0C865; animation: hhFall 2.1s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes hhFall { 0% { transform: translateY(-110%); } 100% { transform: translateY(230%); } }
@media (min-width: 901px) { html body .hx-hint { bottom: calc(clamp(22px, 4.6vh, 46px) + 40px); } }
/* phones: the hint sits where the dots will be, below the buttons, on the opening chapter only */
@media (max-width: 900px) { html body .hx-hint { top: calc(var(--hx-strip, 380px) - 2px); } }
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) { html body .hx-hint { display: none; } }

/* ===== block 30 ===== */
/* ---- hero hint: placed by script (laptops: midway between the buttons and the chapter lines; touch: under Explore Courses) ---- */
html body .hx-stage .hx-hint { display: flex; left: var(--hh-x, var(--gutter)); top: var(--hh-y, 70%); bottom: auto; transform: translateY(6px); }
html body .hx-stage .hx-hint.on { transform: none; }
html body .hx-stage .hx-hint.off { transform: translateY(-4px); }
html body .hx-stage .hx-hint.nofit { display: none; }
html body .hx-stage .hx-hint.tight .hh-cue { height: 20px; }
@media (prefers-reduced-motion: reduce) { html body .hx-stage .hx-hint { display: none; } }
/* the touch hint: a fingertip swipes sideways twice, then scrolls upward twice, and so on */
.hh-alt { width: 30px; height: 30px; overflow: visible; }
.hh-alt .hh-trk { stroke: rgba(255,255,255,.2); stroke-width: 1.2; }
.hh-alt circle { fill: var(--hx-gold, #DBA426); stroke: none; }
.hh-gh, .hh-gv { animation: hhSwap 8s ease-in-out infinite; }
.hh-gv { animation-delay: -4s; }
.hh-dh { animation: hhH 8s cubic-bezier(.45,0,.25,1) infinite; }
.hh-dv { animation: hhV 8s cubic-bezier(.45,0,.25,1) infinite; animation-delay: -4s; }
@keyframes hhSwap { 0%, 46% { opacity: 1; } 48%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hhH { 0% { transform: translateX(0); opacity: 0; } 4% { transform: translateX(0); opacity: 1; } 18% { transform: translateX(-22px); opacity: 1; } 22% { transform: translateX(-22px); opacity: 0; } 25% { transform: translateX(0); opacity: 0; } 29% { transform: translateX(0); opacity: 1; } 43% { transform: translateX(-22px); opacity: 1; } 47%, 100% { transform: translateX(-22px); opacity: 0; } }
@keyframes hhV { 0% { transform: translateY(0); opacity: 0; } 4% { transform: translateY(0); opacity: 1; } 18% { transform: translateY(-22px); opacity: 1; } 22% { transform: translateY(-22px); opacity: 0; } 25% { transform: translateY(0); opacity: 0; } 29% { transform: translateY(0); opacity: 1; } 43% { transform: translateY(-22px); opacity: 1; } 47%, 100% { transform: translateY(-22px); opacity: 0; } }
/* ---- the chapter lines (Overview, Lessons ...) only on computers: never on phones, tablets or touch screens ---- */
@media (max-width: 900px), not all and (any-pointer: fine), (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) { html body .hx-stage .hx-index { display: none !important; } }
/* ---- What's New in phone landscape: the three cards side by side at about half the size ---- */
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) {
  html body .nw-list.lw { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 16px; }
  html body .nw-list > li[aria-hidden] { display: block; }
  html body .nw-list.in > li:nth-child(n) { transform: none; }
  html body .nw .lw-t, html body .nw .lw-ghost { aspect-ratio: 1 / .6; min-height: 0; padding: 14px; border-radius: 14px; }
  html body .nw .lw-ghost { display: grid; font-size: 12.5px; }
  html body .nw .lw-no.nw-no { font-size: 46px; left: 12px; top: 12px; }
  html body .nw .lw-tt { font-size: 14.5px; }
  html body .nw .lw-path { font-size: 10px; margin-bottom: 4px; }
  html body #lessons.nw-sec { padding-top: 34px; padding-bottom: 40px; }
  html body .nw-head { margin-bottom: 18px; }
  html body .nw-head .dd-desc { margin-top: 8px; max-width: none; }
  html body .nw .lw-go { width: 28px; height: 28px; right: 10px; bottom: 12px; }
}

/* ===== block 31 ===== */
/* the hint's animations start when it appears, so the swipe always plays first */
.hh-gh, .hh-gv, .hh-dh, .hh-dv, .hh-cue::after { animation-play-state: paused; }
.hx-hint.on .hh-gh, .hx-hint.on .hh-gv, .hx-hint.on .hh-dh, .hx-hint.on .hh-dv, .hx-hint.on .hh-cue::after,
.hx-hint.off .hh-gh, .hx-hint.off .hh-gv, .hx-hint.off .hh-dh, .hx-hint.off .hh-dv, .hx-hint.off .hh-cue::after { animation-play-state: running; }
.hx-hint:not(.on):not(.off) .hh-gv { opacity: 0; }
.hx-hint > * { zoom: var(--hh-f, 1); }
/* narrow phones (iPhone SE, mini, folded): the lede flows freely and the two buttons stay on one row */
@media (max-width: 374px) and (orientation: portrait) {
  html body .hx-lede br.bs { display: none; }
  html body .hx-lede { font-size: 15px; max-width: 21em; margin-left: auto; margin-right: auto; }
  html body .hx-actions { flex-wrap: nowrap; gap: 8px; }
  html body .hx-actions .btn { height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
}

/* ===== block 32 ===== */
/* ---- Continuous Learning, larger screens: tighter spacing and a slightly smaller title ---- */
@media (min-width: 761px) {
  html body .cta2 { padding: clamp(64px, 6.2vw, 112px) var(--gutter) clamp(48px, 4.6vw, 84px); }
  html body .cta2 h2 { font-size: clamp(40px, 5.4vw, 88px); margin-bottom: 8px; }
  html body .cta2-sub { margin-bottom: 22px; }
}
/* ---- footer: the social icons sit higher, level with the middle of the brand block ---- */
@media (min-width: 761px) { html body .f2 .f2-soc { align-self: center; } }
@media (max-width: 760px) { html body .f2 .f2-soc { margin-top: 12px !important; } }

/* ===== block 33 ===== */
/* ---- Guided Tutorials (touch screens): a "Scroll" cue between the text and the tooth ---- */
html body .hx-stage .hx-hint.hx-hint2 { left: var(--h2x, 50%); top: var(--h2y, 60%); }
.hh-up .hh-du { fill: var(--hx-gold, #DBA426); stroke: none; animation: hhUp 2.4s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes hhUp { 0% { transform: translateY(0); opacity: 0; } 10% { transform: translateY(0); opacity: 1; } 62% { transform: translateY(-22px); opacity: 1; } 78%, 100% { transform: translateY(-22px); opacity: 0; } }

/* ===== block 34 ===== */
/* ===================== ROUND 13 ===================== */
/* skip link: hidden until Tab reaches it */
.skip-link { position: fixed; left: 12px; top: -120px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink);
  font: 600 14px var(--sans); box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); transform: translate3d(0,-160%,0); transition: transform .15s ease; }
.skip-link:focus, .skip-link:focus-visible { top: 10px; transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }
#main-content:focus { outline: none; }

/* ---- Behind Dental Pharaoh: text and portrait with equal space on the left, between and on the right ---- */
.about-me { position: relative; background: var(--black); color: var(--white); padding: clamp(72px, 8vw, calc(120 * var(--u))) var(--gutter); border-top: 1px solid rgba(255,255,255,.08); }
.me-grid { display: grid; grid-template-columns: minmax(0, calc(560 * var(--u))) auto; justify-content: space-evenly; align-items: center; gap: 48px 0;
  max-width: calc(1180 * var(--u)); margin: 0 auto; }
.about-me .eyebrow { margin: 0 0 calc(18 * var(--u)); color: var(--gold); font-size: calc(14 * var(--u)); letter-spacing: .06em; }
.me-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px calc(22 * var(--u)); margin: 0 0 calc(18 * var(--u)); font: 600 clamp(40px, 4.4vw, calc(66 * var(--u)))/1.02 var(--display); letter-spacing: -.035em; color: #fff; }
.me-in { display: inline-flex; flex: none; width: clamp(20px, 1.55vw, calc(25 * var(--u))); height: clamp(20px, 1.55vw, calc(25 * var(--u))); border-radius: 4px; align-self: center; position: relative; top: .06em;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease; }
.me-in svg { width: 100%; height: 100%; display: block; }
.me-in::after { content: ""; position: absolute; inset: -11px; }   /* a comfortable tap area around the small icon */
@media (hover: hover) { .me-in:hover { transform: translate3d(0,-2px,0); box-shadow: 0 8px 18px -10px rgba(10,102,194,.9); } }
.me-in:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.me-cred { margin: 0 0 calc(16 * var(--u)); font-size: clamp(16px, 1.25vw, calc(19 * var(--u))); line-height: 1.5; color: #C9CDD3; }
.me-role { margin: 0 0 calc(30 * var(--u)); font: 600 clamp(16px, 1.25vw, calc(19 * var(--u)))/1.4 var(--sans); color: var(--gold); }
.me-copy { margin: 0 0 calc(18 * var(--u)); max-width: 30em; font-size: clamp(16.5px, 1.4vw, calc(21 * var(--u))); line-height: 1.62; color: #B8BDC6; }
.me-copy:last-child { margin-bottom: 0; }
.me-photo { position: relative; width: clamp(220px, 22vw, calc(330 * var(--u))); margin: 0 calc(20 * var(--u)) calc(20 * var(--u)) 0; }   /* room for the offset frame, so the spacing stays even */
.me-photo::before { content: ""; position: absolute; inset: 0; transform: translate3d(calc(20 * var(--u)), calc(20 * var(--u)), 0); border: 1px solid rgba(219,164,38,.34); border-radius: calc(22 * var(--u)); pointer-events: none; }
.me-card { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; border-radius: calc(22 * var(--u));
  background: linear-gradient(160deg, #1B1B1B 0%, #121212 60%, #0E0E0E 100%); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 30px 60px -36px rgba(0,0,0,.9); }
.me-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .me-grid { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 40px; }
  .me-photo { order: -1; width: min(200px, 56vw); margin: 0 16px 16px 0; }
  .me-photo::before { transform: translate3d(14px, 14px, 0); }
}

/* ---- Closing call to action: compact, ivory, centred ---- */
.cta2 { background: var(--ivory, #F7F5F1); color: var(--ink); padding: clamp(48px, 5vw, calc(76 * var(--u))) var(--gutter); text-align: center; }
.cta2-in { max-width: calc(760 * var(--u)); margin: 0 auto; }
.cta2 .eyebrow { margin: 0 0 calc(12 * var(--u)); color: var(--gold-deep); font-size: calc(14 * var(--u)); letter-spacing: .06em; }
.cta2 h2 { margin: 0 0 calc(10 * var(--u)); font: 600 clamp(30px, 3.4vw, calc(52 * var(--u)))/1.06 var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.cta2-sub { margin: 0 0 calc(26 * var(--u)); font-size: clamp(15.5px, 1.2vw, calc(18 * var(--u))); line-height: 1.5; color: #5B6472; }
.cta2-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.cta2-act .btn { height: calc(48 * var(--u)); min-height: 44px; padding: 0 calc(28 * var(--u)); font-size: calc(16 * var(--u)); border-radius: calc(9 * var(--u)); }
/* Explore Courses: the hero's Sample Lesson outline, in ink for the light band */
.btn-outline.btn-outline-ink { border: 1px solid rgba(15,23,42,.24); color: var(--ink); background: transparent; }
@media (hover: hover) { .btn-outline.btn-outline-ink:hover { border-color: var(--ink); background-color: rgba(15,23,42,.045); } }
.btn-outline.btn-outline-ink:focus-visible, .cta2 .btn-signup:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
@media (max-width: 420px) { .cta2-act .btn { flex: 1 1 100%; } }

/* ---- Footer: Platform and Support sit nearer the middle, not pinned to the far right ---- */
@media (min-width: 761px) { .f2-links { margin-right: clamp(0px, 9vw, 170px); } }

/* ---- Highlighter note: directly under the open color bar, edge to edge with it ---- */
.pen-wrap .hl-guide { left: calc(100% - var(--fr, 100%)) !important; right: auto !important; width: max-content !important; min-width: var(--tw, 0px); max-width: var(--tmax, min(270px, 70vw)) !important;
  box-sizing: border-box; padding: 8px 16px 8px 30px; text-align: left; white-space: normal; text-wrap: pretty; }
.pen-wrap .hl-guide.one-line { white-space: nowrap; }
.pen-wrap .hl-guide { transition: opacity .2s ease, visibility 0s linear .2s !important; will-change: opacity; }
.pen-wrap .hl-guide.show { transition: opacity .24s cubic-bezier(.2,.8,.2,1) .06s, visibility 0s linear 0s !important; }

/* ---- Inside a Lesson: steps cross-fade in place (no dip and rise, which read as a shake) ---- */
@media (min-width: 1100px) and (orientation: landscape) {
  .step-stack .tour-step, .step-stack .tour-step:first-of-type, .step-stack .tour-step:last-child, .step-stack .tour-step.on { transform: translateZ(0) !important; will-change: opacity; }
  .step-stack .tour-step { transition: opacity .18s ease !important; }
  .step-stack .tour-step.on { transition: opacity .28s cubic-bezier(.4,0,.2,1) .12s !important; }
}

/* ===== block 35 ===== */
/* ===================== ROUND 14 ===================== */
/* ---- Who It's For: no divider, tighter ---- */

/* ---- Behind Dental Pharaoh: name and titles, portrait, sentences ---- */
.me-grid { grid-template-columns: minmax(0, calc(560 * var(--u))) auto; grid-template-areas: "head photo" "body photo"; row-gap: 0; align-items: center; }
.me-head { grid-area: head; align-self: end; min-width: 0; }
.me-body { grid-area: body; align-self: start; min-width: 0; }
.me-photo { grid-area: photo; align-self: center; }
/* Founder & Author: the eyebrow's style, in normal capitalisation */
.me-role { font: 600 calc(14 * var(--u))/1.4 var(--sans); letter-spacing: .06em; text-transform: none; color: var(--gold); }
@media (max-width: 760px) {
  .about-me { padding-block: 56px; }
  .me-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "body"; justify-content: stretch; row-gap: 32px; }
  .me-head { align-self: auto; text-align: center; }
  .me-name { justify-content: center; }
  .me-role { margin: 0; }
  .me-photo { order: 0; justify-self: center; width: min(210px, 58vw); margin: 0 14px 14px 0; }
  .me-body { text-align: left; }
  .me-copy { max-width: none; }
}
/* the eyebrow and Founder & Author share one size on every screen */
.about-me .eyebrow, .about-me .me-role { font-size: max(12.5px, calc(14 * var(--u))) !important; letter-spacing: .06em; font-weight: 600; line-height: 1.4; }

/* ---- Figure: the Infection / Normal toggle centred over the scale on phones and tablets ---- */
@media (max-width: 1099px), (orientation: portrait) {
  .demo .la-mech .la-ph-head { justify-content: center !important; }
}

/* ---- Inside a Lesson (laptops and TVs): the reading pane is exactly the window's height, so passages
   that do not fit are hidden instead of being cut off at the bottom edge ---- */
@media (min-width: 1100px) and (orientation: landscape) {
  .demo-body > .panel.read > .p-main { height: 100%; box-sizing: border-box; overflow-y: hidden; }   /* everything shown fits, so no inner nudge */
  .demo-body > .panel.read > .p-main.snug { padding-top: 12px; }
  .p-main.snug .lx-bar { padding-bottom: 10px !important; margin-bottom: 12px !important; }
  .p-main.snug .lx-text > p, .p-main.snug .lx-text .rd-sub > p, .p-main.snug .lx-text [data-opt] > p { margin-bottom: 12px; line-height: 27px; }
  .p-main.snug .lx-text .callout p { line-height: 1.6; }
}

/* ---- Footer on phones: Platform and Support beside the tagline, icons underneath ---- */
@media (max-width: 760px) {
  .f2-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo logo" "tag links" "social social"; column-gap: 24px; row-gap: 0 !important; align-items: start !important; }
  .f2-brand { display: contents !important; }
  .f2-brand > .brand { grid-area: logo; justify-self: start; }
  .f2-tag { grid-area: tag; margin: 14px 0 0 !important; max-width: none !important; font-size: 14.5px; text-wrap: pretty; }
  .f2 .dpf-social { grid-area: social; margin: 18px 0 0 -9px !important; }
  .f2-links { grid-area: links; justify-self: end; align-self: start !important; margin: 16px 0 0 !important; padding: 0 !important; column-gap: 26px !important; }
  .f2-col { gap: 9px; font-size: 14.5px; }
}
@media (max-width: 420px) { .f2-links { column-gap: 20px !important; } .f2-grid { column-gap: 18px; } }
@media (max-width: 359px) {
  .f2-links { grid-template-columns: max-content !important; row-gap: 18px; }
}
/* larger phones and foldables: the icons sit under the tagline, level with the links, not below them */
@media (min-width: 481px) and (max-width: 760px) {
  .f2-grid { grid-template-areas: "logo logo" "tag links" "social links"; grid-template-rows: auto auto 1fr; }
  .f2 .dpf-social { align-self: start; margin-top: 14px !important; }
}
@media (max-width: 480px) { .f2 .dpf-social { margin-top: 14px !important; } }

/* ===== block 36 ===== */
/* =====================================================================
   HOMEPAGE REBUILD v4 (black and gold). Added after the original
   styles, so on equal specificity these win.
   ===================================================================== */
:root { --hx-gold: #DBA426; --hx-gold-hi: #F0C865; --hx-gold-line: rgba(219,164,38,.34); --hx-line: rgba(255,255,255,.13); --hx-dim: #8C8F96;
  --hx-gilt: linear-gradient(180deg, #F0C865 0%, #D9A12A 36%, #B9800F 70%, #8F5E09 100%); --hx-step: calc(var(--vh, 100svh) * .48); --hx-ease: cubic-bezier(.2,.7,.2,1); }
.gilt-w { background: var(--hx-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.hx-h2 { margin: 0; font: 600 clamp(36px, 4.6vw, 76px)/1.04 var(--display); letter-spacing: -.032em; color: var(--white); }
.hx-sec { position: relative; background: #000; color: var(--white); }

/* ---------- hero: one pinned stage, five chapters, the arch turning ---------- */
.hx-scroll { position: relative; height: calc(var(--vh, 100svh) - var(--header-total) + 5 * var(--hx-step)); }
.hx-stage { position: sticky; top: var(--header-total); height: calc(var(--vh, 100svh) - var(--header-total)); overflow: hidden; background: #000; }
.hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hx-first { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hx-copy { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(38vw, calc(600 * var(--u))); }
.hx-ch { position: absolute; left: 0; right: 0; top: 46%; transform: translateY(calc(-50% + 8px)); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .28s var(--hx-ease); }
.hx-ch.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.hx-ch.past { transform: translateY(calc(-50% - 8px)); }
.hx-ch:not(.on) a { visibility: hidden; }
.hx-ch .eyebrow { margin: 0; }
.hx-ch h1, .hx-ch h2 { margin: calc(18 * var(--u)) 0 0 -.035em; font-family: var(--display); font-weight: 600; letter-spacing: -.032em; color: var(--white); line-height: 1.02; }
.hx-ch h1 { font-size: clamp(42px, 5.25vw, calc(80 * var(--u))); }
.hx-ch h2 { font-size: clamp(38px, 5.1vw, calc(78 * var(--u))); }
.hx-ch h1 span, .hx-ch h2 span { display: block; white-space: nowrap; }
.hx-lede { margin: calc(24 * var(--u)) 0 0; max-width: 28em; font-size: clamp(16px, 1.35vw, calc(19 * var(--u))); line-height: 1.6; color: var(--grey); text-wrap: pretty; }
.hx-actions { display: flex; flex-wrap: wrap; gap: calc(14 * var(--u)); margin-top: calc(38 * var(--u)); }
.hx-actions .btn { height: calc(54 * var(--u)); padding: 0 calc(32 * var(--u)); font-size: calc(16.5 * var(--u)); border-radius: calc(9 * var(--u)); }
.hx-index { position: absolute; left: var(--gutter); bottom: clamp(22px, 4.6vh, 46px); display: flex; align-items: center; gap: 6px; z-index: 2; }
.hx-index button { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 4px; color: var(--hx-dim); font: 600 13px/1 var(--sans); }
.hx-index button i { display: block; width: 26px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); transition: width .35s var(--hx-ease), background .25s; }
.hx-index button span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s var(--hx-ease), opacity .25s; }
.hx-index button:hover i { background: rgba(255,255,255,.55); }
.hx-index button.on { color: var(--hx-gold-hi); }
.hx-index button.on i { width: 46px; background: var(--hx-gold); }
.hx-index button.on span { max-width: 150px; opacity: 1; }
.hx-copy, .hx-index { transition: opacity .8s ease; }
.booting .hx-copy, .booting .hx-index { opacity: 0; }

/* ---------- courses: the deck, then the selected course's lessons ---------- */
.dd { display: none; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--hx-line); }
.dd.on { display: grid; }
.dd.on > * { animation: ddIn .7s var(--hx-ease) both; }
.dd.on > :nth-child(2) { animation-delay: .08s; }
@keyframes ddIn { from { opacity: 0; transform: translateY(18px); } }
.dd-kick { margin: 20px 0 0; font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-gold); }
.dd h3 { margin: 12px 0 0; font: 600 clamp(34px, 3.6vw, 60px)/1.02 var(--display); letter-spacing: -.035em; color: var(--white); text-wrap: balance; }
.dd-desc { margin: 16px 0 0; max-width: 25em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: var(--grey); text-wrap: pretty; }
/* the lesson wall: every lesson of the course, in order, in staggered columns */
.lw { list-style: none; margin: 0; padding: 0 0 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lw li:nth-child(3n+2) { transform: translateY(34px); }
.lw li.more { display: none; }
.lw.all li.more { display: block; }
.lw-t { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1.06; padding: 18px; border-radius: 16px; overflow: hidden; background: linear-gradient(165deg, #14110A, #070706);
  border: 1px solid var(--hx-line); color: var(--white); transition: border-color .3s, transform .5s var(--hx-ease), box-shadow .4s; }
.lw-t:hover, .lw-t:focus-visible { border-color: var(--hx-gold); transform: translateY(-6px); box-shadow: 0 30px 60px -30px #000, 0 0 60px -24px rgba(219,164,38,.6); }
.lw-img { position: absolute; inset: 0; opacity: .0; transition: opacity .5s ease; }
.lw-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.12); transition: transform .9s var(--hx-ease); }
.lw-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.96) 82%); }
.lw-t.pic .lw-img { opacity: .5; }
.lw-t:hover .lw-img, .lw-t:focus-visible .lw-img { opacity: 1; }
.lw-t:hover .lw-img img { transform: scale(1); }
.lw-no { position: absolute; left: 18px; top: 14px; font: 600 clamp(34px, 3vw, 50px)/1 var(--display); letter-spacing: -.04em; background: var(--hx-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lw-tt { position: relative; font: 600 clamp(16px, 1.25vw, 19px)/1.22 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.lw-go { position: absolute; right: 14px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--hx-gold); color: #1A1305; display: grid; place-items: center; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--hx-ease); }
.lw-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lw-t:hover .lw-go, .lw-t:focus-visible .lw-go { opacity: 1; transform: none; }
.lw-t:hover .lw-tt, .lw-t:focus-visible .lw-tt { padding-right: 40px; }
.lw-ghost { aspect-ratio: 1 / 1.06; border-radius: 16px; border: 1px dashed rgba(219,164,38,.3); display: grid; place-items: center; text-align: center; padding: 18px; font: 600 14px/1.4 var(--sans); color: var(--hx-dim); }

/* ---------- the standard: a pinned scene, the sentence lighting as the arch comes in ---------- */

/* ---------- inside a lesson: the working demos, framed ---------- */
.home .showcase { border-top: 0; }
.showcase .demo { box-shadow: 0 0 0 1px rgba(219,164,38,.26), 0 0 46px -6px rgba(219,164,38,.13), 0 0 110px -30px rgba(219,164,38,.10); }

/* ---------- who it is for: two panels, the one you point at lights ---------- */

/* ---------- founder and closing ---------- */
.about-me { border-top: 1px solid rgba(255,255,255,.08); }
.me-card { transition: transform .35s ease-out, box-shadow .5s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.me-photo:hover .me-card { box-shadow: 0 0 0 1px rgba(219,164,38,.45), 0 40px 90px -40px rgba(219,164,38,.5); }
.cta2 { background: #000; color: var(--white); border-top: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden; padding-top: clamp(80px, 9vw, 150px); padding-bottom: 0; }
.cta2::before { content: ""; position: absolute; left: 50%; top: 0; width: min(520px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--hx-gold), transparent); }
.cta2 h2 { color: var(--white); font-size: clamp(40px, 6.4vw, 104px); letter-spacing: -.04em; }
.cta2 h2 .wd:last-of-type .ch { background: var(--hx-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cta2-sub { color: var(--grey); font-size: clamp(16px, 1.4vw, 20px); }
.cta2 .btn { height: calc(54 * var(--u)); padding: 0 calc(32 * var(--u)); font-size: calc(16.5 * var(--u)); }
.cta2 .btn-outline.btn-outline-ink { border-color: rgba(255,255,255,.35); color: var(--white); }
@media (hover: hover) { .cta2 .btn-outline.btn-outline-ink:hover { border-color: var(--hx-gold); background-color: transparent; color: var(--hx-gold-hi); } }

@media (prefers-reduced-motion: reduce) {
  .hx-ch, .lw-t, .lw-img, .lw-img img, .me-card { transition: none !important; }
  .hx-ch, .hx-ch.past { transform: translateY(-50%); }
  .dd.on > * { animation: none; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1099px) {
  .dd.on { display: block; }
  .dd > div:first-child { margin-bottom: 30px; }
  .lw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw li:nth-child(3n+2) { transform: none; }
  .lw li:nth-child(2n) { transform: translateY(26px); }
}
@media (max-width: 900px) {
  :root { --hx-step: calc(var(--vh, 100svh) * .36); }   /* phones: a short swipe per chapter, with a soft stop at each (hero.js) */
  .hx-copy { left: var(--gutter); right: var(--gutter); width: auto; top: clamp(18px, 3.4vh, 40px); bottom: auto; height: var(--hx-copy-h, 320px); text-align: center; }
  .hx-ch { top: 0; transform: translateY(14px); }
  .hx-ch.on { transform: none; } .hx-ch.past { transform: translateY(-14px); }
  .hx-ch h1, .hx-ch h2 { margin-left: 0; margin-top: 12px; }
  .hx-ch h1 { font-size: clamp(38px, 11.4vw, 64px); }
  .hx-ch h2 { font-size: clamp(34px, 10vw, 56px); }
  .hx-lede { font-size: 16px; line-height: 1.5; margin: 16px auto 0; }
  .hx-actions { justify-content: center; margin-top: 22px; gap: 10px; }
  .hx-actions .btn { height: 48px; padding: 0 20px; font-size: 15.5px; }
  .hx-index { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--hx-strip, 380px) + 4px); }
  .hx-index button i { width: 18px; } .hx-index button.on i { width: 30px; }
  .hx-index button.on span { max-width: 0; opacity: 0; }
  /* the deck becomes a row you swipe */
  .lw { grid-template-columns: 1fr; gap: 12px; padding-bottom: 20px; }
  .lw li:nth-child(n) { transform: none; }
  .lw-t, .lw-ghost { aspect-ratio: auto; min-height: 168px; }
  .lw-ghost:not(.lead) { display: none; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .hx-ch, .hx-ch.past { transform: none; } }

/* ===== block 37 ===== */
  .la-mech { --ink:#2C2C2A; --ink2:#5F5E5A; --rule:rgba(0,0,0,.14);
    max-width: 720px; margin: 0 auto; font-size: 15px; color: var(--ink); font-family: inherit; line-height: 1.5; }
  html[data-theme="dark"] .la-mech { --ink:#F1EFE8; --ink2:#B4B2A9; --rule:rgba(255,255,255,.18); }
  .la-mech .la-title { font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; }
  .la-mech .la-ctl { display:flex; flex-wrap:wrap; gap:10px 24px; align-items:center; font-size:14px; color:var(--ink2); }
  .la-mech .la-ctl label { display:flex; align-items:center; gap:8px; }
  .la-mech select { font: inherit; font-size:14px; padding:6px 8px; border-radius:8px; border:1px solid var(--rule); background:transparent; color:var(--ink); }
  .la-mech select option { color:#2C2C2A; background:#fff; }
  .la-mech input[type=range] { flex:1; accent-color:#0F6E56; }
  .la-mech .la-note { font-size:13px; color:var(--ink2); margin:6px 0 0; min-height:40px; }
  .la-mech svg { display:block; width:100%; height:auto; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
  .la-mech svg:focus-visible { outline:2px solid #378ADD; outline-offset:4px; border-radius:8px; }
  .la-mech .lbl { font-size:12px; fill:var(--ink2); }
  .la-mech .sym { font-size:14px; font-weight:600; fill:var(--ink); }
  .la-mech .m-b ellipse { fill:#E1F5EE; stroke:#0F6E56; } .la-mech .m-b text { fill:#085041; }
  .la-mech .m-bh ellipse { fill:#FAECE7; stroke:#993C1D; } .la-mech .m-bh text { fill:#712B13; }
  .la-mech .m-h circle, .la-mech .m-h rect { fill:#F1EFE8; stroke:#5F5E5A; } .la-mech .m-h text { fill:#444441; }
  .la-mech .m-na circle { fill:#EEEDFE; stroke:#534AB7; } .la-mech .m-na text { fill:#3C3489; }
  html[data-theme="dark"] .la-mech .m-b ellipse { fill:#085041; stroke:#5DCAA5; } html[data-theme="dark"] .la-mech .m-b text { fill:#E1F5EE; }
    html[data-theme="dark"] .la-mech .m-bh ellipse { fill:#712B13; stroke:#F0997B; } html[data-theme="dark"] .la-mech .m-bh text { fill:#FAECE7; }
    html[data-theme="dark"] .la-mech .m-h circle, html[data-theme="dark"] .la-mech .m-h rect { fill:#444441; stroke:#B4B2A9; } html[data-theme="dark"] .la-mech .m-h text { fill:#F1EFE8; }
    html[data-theme="dark"] .la-mech .m-na circle { fill:#3C3489; stroke:#AFA9EC; } html[data-theme="dark"] .la-mech .m-na text { fill:#EEEDFE; }
  .la-mech .fx { transition: opacity .35s; }
  .la-mech .dim { opacity: .15; }
  .la-mech .tog { transition: opacity .3s; }
  .la-mech .la-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; }
  .la-mech .la-btn { width:44px; height:38px; border-radius:8px; border:1px solid var(--rule); background:transparent; color:var(--ink); font-size:18px; cursor:pointer; }
  .la-mech .la-btn:focus-visible, .la-mech .la-dot:focus-visible { outline:2px solid #378ADD; outline-offset:2px; }
  .la-mech .la-dot { width:9px; height:9px; border-radius:50%; border:none; padding:0; margin:0 5px; background:var(--rule); cursor:pointer; }
  .la-mech .la-dot.on { background:var(--ink); }
  .la-mech .la-cap { font-size:14px; color:var(--ink2); margin:10px 0 0; min-height:66px; }

  /* combined figure: controls styled like the rest of the lesson */
  .la-mech .la-head { margin: 0 0 14px; }
  .la-mech .la-tag { display:block; font: 700 10.5px var(--sans); letter-spacing:.12em; text-transform:uppercase; color: var(--accent); margin-bottom: 6px; }
  .la-mech .la-head .la-title { margin: 0; font: 600 18px/1.3 var(--display); letter-spacing:-0.01em; color: var(--text); }
  .la-mech .la-ctl { gap: 10px 14px; margin-bottom: 14px; color: var(--text-2); }
  .la-mech .la-field { display:inline-flex; align-items:center; gap:8px; }
  .la-mech select { padding:7px 10px; border-radius:9px; border:1px solid var(--rule-strong); background: var(--page); color: var(--text); }
  .la-mech input[type=range] { accent-color: var(--gold); }
  .la-mech .la-pka { font-weight:600; color: var(--text); }
  .la-mech .k-b { background:#1D9E75; } .la-mech .k-bh { background:#D85A30; }
  .la-mech .la-note { font-size:14px; color: var(--text); margin: 8px 0 6px; min-height: 2.6em; }

/* ===== block 38 ===== */
  /* agent menu inside this figure: normal-sized icons */
  .la-mech .fsel-btn svg { display:inline-block; width:14px; height:14px; }
  .la-mech .fsel-opt svg { display:inline-block; width:15px; height:15px; }
  .la-mech .la-ctl { margin-bottom: 16px; }
  /* pH scale with the normal and inflamed ranges marked */
  .la-mech .la-ph { margin: 0 0 18px; }
  .la-mech .la-ph-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; font-size:14px; color:var(--text-2); }
  .la-mech .la-ph-lbl b { margin-left:6px; font:600 15px var(--display); color:var(--text); font-variant-numeric:tabular-nums; }
  .la-mech .la-scale { position:relative; height:22px; }
  .la-mech .la-scale::before { content:""; position:absolute; left:9px; right:9px; top:8px; height:6px; border-radius:3px; background:var(--rule-strong); }
  .la-mech .la-band { position:absolute; top:6px; height:10px; border-radius:5px;
    left: calc(9px + (100% - 18px) * (var(--a) - 6) / 1.45); width: max(8px, calc((100% - 18px) * (var(--b) - var(--a)) / 1.45)); }
  .la-mech .b-inf { background: rgba(216,90,48,.42); }
  .la-mech input[type=range] { position:absolute; inset:0; width:100%; height:22px; margin:0; background:transparent; -webkit-appearance:none; appearance:none; cursor:pointer; }
  .la-mech input[type=range]::-webkit-slider-runnable-track { height:22px; background:transparent; }
  .la-mech input[type=range]::-moz-range-track { height:22px; background:transparent; }
  .la-mech input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; margin-top:2px; border-radius:50%; background:var(--page); border:2px solid var(--text); box-shadow:0 1px 4px rgba(0,0,0,.18); }
  .la-mech input[type=range]::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:var(--page); border:2px solid var(--text); box-shadow:0 1px 4px rgba(0,0,0,.18); }
  .la-mech input[type=range]:focus-visible { outline:none; }
  .la-mech input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow:0 0 0 4px var(--accent-soft); }
  .la-mech .la-ticks { position:relative; height:34px; margin-top:4px; font-size:11.5px; color:var(--text-3); }
  .la-mech .la-ticks span, .la-mech .la-ticks em { position:absolute; left: calc(9px + (100% - 18px) * (var(--p) - 6) / 1.45); transform:translateX(-50%); white-space:nowrap; }
  .la-mech .la-ticks span { top:0; font-variant-numeric:tabular-nums; }
  .la-mech .la-ticks em { top:16px; font-style:normal; font-weight:600; }
  /* B / BH⁺ composition */
  .la-mech .la-split { display:flex; height:32px; border-radius:10px; overflow:hidden; background:#F6DDD3; font-size:13px; }
  html[data-theme="dark"] .la-mech .la-split { background:rgba(216,90,48,.28); }
  .la-mech .la-split span { display:flex; align-items:center; gap:6px; padding:0 12px; white-space:nowrap; }
  .la-mech .la-split i { font-style:normal; font-variant-numeric:tabular-nums; }
  .la-mech .sp-b { box-sizing:border-box; min-width:0; flex:none; background:#1D9E75; color:#fff; transition:width .3s ease; }
  .la-mech .sp-b.tight { padding:0; }
  .la-mech .sp-b.tight b, .la-mech .sp-b.tight i { display:none; }
  .la-mech .sp-bh { flex:1; justify-content:flex-end; color:#8A3517; }
  html[data-theme="dark"] .la-mech .sp-bh { color:#F6C2AE; }
  .la-mech .la-legend { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; margin:8px 0 0; font-size:12.5px; color:var(--text-2); }
  .la-mech .la-legend span { display:inline-flex; align-items:center; gap:7px; }
  .la-mech .la-legend i { width:9px; height:9px; border-radius:50%; }
  .la-mech .la-legend .k-b { background:#1D9E75; } .la-mech .la-legend .k-bh { background:#D85A30; }
  .la-mech .la-note { margin:12px 0 4px; }
  @media (max-width:520px){ .la-mech .la-ticks em { font-size:10.5px; } }
.la-mech .la-ph-head { flex-wrap:wrap; gap:10px; }
.la-mech .la-ph-lbl { font-size:13px; }
.la-mech .la-composition-label { margin:18px 0 8px; font:600 12px/1.5 var(--sans); color:var(--text-2); }
.la-mech .la-ticks { height:18px; }
.la-mech .la-normal { position:absolute; left:calc(9px + (100% - 18px) * 1.4 / 1.45); top:3px; width:3px; height:16px; transform:translateX(-50%); background:#1D9E75; border-radius:3px; }
.la-mech .la-ranges { display:flex; flex-wrap:wrap; gap:10px 18px; margin:10px 0 4px; font-size:11px; color:var(--text-2); }
.la-mech .la-ranges span { display:inline-flex; align-items:center; gap:5px; }
.la-mech .la-ranges b { font-weight:600; }
.la-mech .la-ranges i { flex:none; width:8px; height:8px; border-radius:3px; }
.range-inf { background:#D88B72; }.range-norm { background:#1D9E75; }
.la-mech .la-dot { width:24px; height:24px; background:transparent; position:relative; margin:0 1px; }
.la-mech .la-dot::after { content:""; display:block; width:8px; height:8px; border-radius:50%; background:var(--rule); margin:auto; }
.la-mech .la-dot.on { background:transparent; }.la-mech .la-dot.on::after { background:var(--ink); }

/* ---- Behind Dental Pharaoh: one portrait frame, centred (no offset gold frame behind it) ---- */
.me-photo::before { content: none !important; display: none !important; }
.me-photo { margin: 0 !important; justify-self: center; }

/* ---- Behind Dental Pharaoh: the portrait zoomed slightly (112%) so the face sits at the centre of the frame.
   The face's centre in the photo is about 53.6% across and 44.7% down; top and left place that point at 50% / 50%. ---- */
.me-card img { inset: auto; top: calc(50% - 44.7% * 1.12); left: -16.2%; width: auto; height: 112%; max-width: none; object-fit: fill; object-position: 0 0; }

/* ---- Footer: more open spacing for readability, on every page that uses it ---- */
html body .f2 { padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
html body .f2-in { padding-top: clamp(64px, 6vw, 96px); }
html body .f2-tag { margin-top: 22px; line-height: 1.65; }
html body .f2-col { gap: 16px; }
html body .f2-col .f2-h { margin: 0 0 6px; }
html body .f2-note { margin-top: clamp(56px, 5.5vw, 84px); line-height: 1.7; }
html body .f2-bottom { margin-top: 30px; padding-top: 30px; }
html body .f2-legal { gap: 8px 32px; }
@media (max-width: 760px) {
  html body .f2 { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  html body .f2-in { padding-top: 56px; }
  html body .f2-tag { margin: 20px 0 0 !important; }
  html body .f2-links { margin: 22px 0 0 !important; }
  html body .f2 .dpf-social, html body .f2 .f2-soc { margin: 30px 0 0 -9px !important; }
  html body .f2-col { gap: 14px; }
  html body .f2-note { margin-top: 38px; }
  html body .f2-bottom { margin-top: 24px; padding-top: 24px; }
  html body .f2-legal { gap: 6px 18px; }
}
@media (max-width: 380px) { html body .f2-legal { gap: 6px 12px; } }
/* tablets and small laptops: logo, tagline and icons on the left, the links on the right */
@media (min-width: 761px) and (max-width: 1239px) {
  html body .f2-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand links" "social links"; gap: 28px 56px; align-items: start; }
  html body .f2-brand { grid-area: brand; }
  html body .f2 .f2-soc { grid-area: social; justify-self: start; align-self: start; margin: 0 0 0 -9px !important; }
  html body .f2-links { grid-area: links; justify-self: end; align-self: start; margin-right: 0; padding-top: 6px; }
}

/* ---- Hero, section by section (hero.js): it fills one screen and changes sections in place, so it needs no scroll
   track. What's New follows directly under the tooth. ---- */
html.hx-steps .hx-scroll { height: auto; }
html.hx-steps .hx-stage { position: relative; top: auto; }
html.hx-steps #lessons { margin-top: calc(-1 * var(--hx-pull, 0px)); z-index: 1; }

/* ---- Every page fits its screen: text wraps, nothing scrolls sideways ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@supports not (overflow: clip) { html { overflow-x: hidden; } }
body { overflow-wrap: break-word; }
/* What's New shares the short class "nw" with the no-wrap helper for citations; its text must always wrap */
.dd.nw { white-space: normal; }
.dd.nw > * { min-width: 0; }
/* the smallest phones: the logo and header buttons scale down together */
@media (max-width: 340px) {
  :root { --wordmark-h: min(12.5px, 3.5vw); --mark-h: min(34px, 10vw); }
  .site-header .brand { gap: 5px; min-width: 0; }
  .site-header .nav .icon-btn { width: 32px; }
  .site-header .nav-right { gap: 0; }
  .tour-dots { max-width: 100%; }
  .tour-dot { padding: 0 8px; font-size: 11.5px; gap: 3px; }
  .f2-brand .brand { max-width: 100%; }
  .f2-brand .mark { height: min(42px, 12vw); }
  .f2-brand .wordmark { height: min(18px, 5vw); }
}
@media (max-width: 260px) { .tour-dot { padding: 0 6px; font-size: 11px; } }

/* ---- Interactive figures are controls, never selectable text ---- */
html body :is(.ifig, .la-mech, .la-canvas), html body :is(.ifig, .la-mech, .la-canvas) *:not(input, textarea) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---- Search: the X appears only when there is text; results show the exact passage ---- */
.search-close[hidden] { display: none !important; }
.sr-item svg { grid-row: 1 / span 3; }
.sr-item .sr-snip { display: block; margin-top: 3px; color: #C4C8CE; line-height: 1.45; overflow-wrap: anywhere; }
.sr-item .sr-snip mark { background: none; color: #F0C865; font-weight: 600; }
.sr-fixed { padding-bottom: 6px; }
.sr-fixed b { color: #F0C865; font-weight: 600; }
@keyframes srHit { 0%, 45% { background-color: rgba(217,164,58,.3); box-shadow: 0 0 0 5px rgba(217,164,58,.3); } 100% { background-color: transparent; box-shadow: 0 0 0 5px transparent; } }
.sr-hit { border-radius: 3px; animation: srHit 2.3s ease-out; }
@media (prefers-reduced-motion: reduce) { .sr-hit { animation-duration: 1.2s; } }

/* ---- Search: one best answer, then a few related topics ---- */
.search-results { gap: 3px; }
.sr-label { margin: 8px 0 3px; padding: 0 14px; font: 700 11px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #9AA0A9; }
.sr-label:first-child { margin-top: 2px; }
.sr-item.sr-best { padding: 13px 14px; border: 1px solid rgba(219,164,38,.42); background: rgba(255,255,255,.045); }
.sr-item.sr-best:hover, .sr-item.sr-best.act { background: rgba(255,255,255,.08); }
.sr-item.sr-best b { font-size: 16px; }
.sr-item .sr-over { display: block; margin-top: 4px; color: #D5D8DD; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sr-item .sr-path { display: block; margin-top: 6px; color: #9AA0A9; font-size: 12px; }
.sr-item.sr-rel { padding: 8px 14px; }
.sr-item.sr-rel b { font-size: 14px; font-weight: 500; color: #E6E8EB; }
.sr-item.sr-rel svg { grid-row: 1; }

/* ---- Footer icons: the same enlarge and fade from a cursor or a tap ---- */
.f2 .dpf-social .social-link.fx-on { opacity: 1; transform: translate3d(0,-4px,0) scale(1.1); }
.f2 .dpf-social.fx-group .social-link:not(.fx-on) { opacity: .38; }
.dpf-social .social-link { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { .f2 .dpf-social .social-link.fx-on { transform: none; } }

/* ---- Signed-in header ---- */
.dp-hide { display: none !important; }
.dp-account { display: inline-flex; align-items: center; gap: 12px; }
.mm-actions .dp-account { flex: 1; display: flex; min-width: 0; }
.mm-actions .dp-logout { flex: 1 1 auto !important; }

/* ---- Highlighter menu: every icon sits in the exact center of its button, and all fit on small phones ---- */
.pen-tray .pen { padding: 0; }
@media (max-width: 400px) {
  .pen-wrap.open .pen-tray { gap: 0; padding: 0 2px; }
  .pen-tray .pen { width: 22px; height: 24px; }
  .pen-tray .pen svg { width: 15px; height: 15px; }
  .pen-tray .pen-sep { margin: 0 1px; }
}

/* ===== block 40: strokes with any pointer (assets/js/paint.js) ===== */
html.pen-painting, html.pen-painting * { -webkit-user-select: none !important; user-select: none !important; cursor: text !important; }
/* where the browser has no highlight layer, the live stroke is drawn on an overlay that blends with the text */
.dp-paint-layer { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 40; pointer-events: none; mix-blend-mode: multiply; }
.dp-paint-layer i { position: absolute; border-radius: 2px; }
.dp-paint-layer .c-yellow { background: #FFE58A; } .dp-paint-layer .c-green { background: #C2EFC6; } .dp-paint-layer .c-orange { background: #FFCB94; }
.dp-paint-layer .c-blue { background: #B6E6F8; } .dp-paint-layer .c-pink { background: #FFC9E6; } .dp-paint-layer .c-erase { background: rgba(15,23,42,.10); }

/* ===== block 41: hero paragraphs, laptops: even lines inside the text column ===== */
/* the set line breaks are dropped on laptops: in a narrower window they left a long line over a short one.
   Every paragraph now shares the column of the title above it and splits into lines of even length. */
@media (min-width: 901px) {
  .hx-lede br.bl { display: none; }
  html body .hx-lede { text-wrap: balance; }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) { html body .hx-lede { text-wrap: balance; } }

/* ===== block 42: the closing section (Continuous Learning) takes the hero's exact sizes and spacing ===== */
/* title, paragraph, buttons and the gaps between them follow the hero on every screen; --hx-fit is the hero's own
   fit on short windows (hero.js), so both shrink together */
html body .cta2 .eyebrow { margin: 0 !important; }
html body .cta2 h2 { margin: calc(18 * var(--u) * var(--hx-fit, 1)) 0 0; font-size: calc(clamp(42px, 5.25vw, calc(80 * var(--u))) * var(--hx-fit, 1)); line-height: 1.02; letter-spacing: -.032em; }
html body .cta2-sub { margin: calc(24 * var(--u) * var(--hx-fit, 1)) 0 0; font-size: calc(clamp(16px, 1.35vw, calc(19 * var(--u))) * var(--hx-fit, 1)); line-height: 1.6; }
html body .cta2-act { margin-top: calc(38 * var(--u) * var(--hx-fit, 1)); gap: calc(14 * var(--u) * var(--hx-fit, 1)); }
html body .cta2-act .btn { height: calc(54 * var(--u) * var(--hx-fit, 1)); min-height: 0; padding: 0 calc(32 * var(--u) * var(--hx-fit, 1)); font-size: calc(16.5 * var(--u) * var(--hx-fit, 1)); border-radius: calc(9 * var(--u) * var(--hx-fit, 1)); }
@media (min-width: 901px) { html body .cta2 .eyebrow { font-size: calc(14px * var(--hx-fit, 1)) !important; } }
@media (max-width: 900px) {
  html body .cta2 h2 { margin-top: 12px; font-size: clamp(38px, 11.4vw, 64px); }
  html body .cta2-sub { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  html body .cta2-act { margin-top: 22px; gap: 10px; }
  html body .cta2-act .btn { height: 48px; padding: 0 20px; font-size: 15.5px; border-radius: 9px; }
}
@media (max-width: 374px) and (orientation: portrait) {
  html body .cta2-sub { font-size: 15px; }
  html body .cta2-act { gap: 8px; }
  html body .cta2-act .btn { height: 44px; padding: 0 14px; font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) {
  html body .cta2 .eyebrow { font-size: calc(11px * var(--hx-fit, 1)) !important; }
  html body .cta2 h2 { margin-top: calc(8px * var(--hx-fit, 1)); font-size: calc(clamp(26px, 4.6vw, 42px) * var(--hx-fit, 1)); }
  html body .cta2-sub { margin-top: calc(10px * var(--hx-fit, 1)); font-size: calc(13.5px * var(--hx-fit, 1)); line-height: 1.5; }
  html body .cta2-act { margin-top: calc(14px * var(--hx-fit, 1)); gap: calc(8px * var(--hx-fit, 1)); }
  html body .cta2-act .btn { height: calc(38px * var(--hx-fit, 1)); padding: 0 calc(16px * var(--hx-fit, 1)); font-size: calc(13.5px * var(--hx-fit, 1)); }
}

/* ===== block 43: Inside a Lesson, laptops: the window is exactly as wide as its text column plus its own padding ===== */
/* (44em of 17px text, 16px on short screens, and 34px each side), so no empty band runs down its right side.
   It stays aligned to the right margin; the spare width joins the gap beside the steps. */
@media (min-width: 1100px) and (orientation: landscape) {
  .tour-stage { width: 100%; max-width: calc(44 * 17px + 68px); justify-self: end; }
}
@media (min-width: 1200px) and (orientation: landscape) and (max-height: 800px) {
  .tour-stage { max-width: calc(44 * 16px + 68px); }
}

/* ===== block 44: the figure's labels keep the size of the controls around them (home.js sets --fk, the diagram's scale) ===== */
.demo .la-mech svg .lbl, .demo .la-mech svg text[font-size="12"] { font-size: min(14.4px, calc(12px / var(--fk, 1))); }
.demo .la-mech svg .sym { font-size: min(16.8px, calc(14px / var(--fk, 1))); }

/* ===== block 45: the footer, compact: the same order, the texts closer together, less height ===== */
html body .f2 { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
html body .f2-in { padding-top: clamp(36px, 3.2vw, 52px); }
html body .f2-tag { margin-top: 12px; line-height: 1.55; }
html body .f2-col { gap: 9px; }
html body .f2-col .f2-h { margin: 0 0 2px; }
html body .f2-note { margin-top: clamp(24px, 2.4vw, 34px); line-height: 1.6; }
html body .f2-bottom { margin-top: 14px; padding-top: 14px; }
html body .f2-legal { gap: 8px 24px; }
@media (min-width: 761px) and (max-width: 1239px) { html body .f2-grid { gap: 16px 48px; } }
@media (max-width: 760px) {
  html body .f2 { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  html body .f2-in { padding-top: 36px; }
  html body .f2-tag { margin: 12px 0 0 !important; }
  html body .f2-links { margin: 14px 0 0 !important; }
  html body .f2 .dpf-social, html body .f2 .f2-soc { margin: 16px 0 0 -9px !important; }
  html body .f2-col { gap: 9px; }
  html body .f2-note { margin-top: 22px; }
  html body .f2-bottom { margin-top: 14px; padding-top: 14px; }
  html body .f2-legal { gap: 6px 16px; }
}
@media (max-width: 380px) { html body .f2-legal { gap: 6px 12px; } }
.dp-paint-layer.on-dark { mix-blend-mode: screen; opacity: .45; }

/* The face turned away is hidden outright, swapping the moment the card is edge-on (about 0.09 s into the
   0.6 s turn). Safari can ignore backface-visibility while the page repaints, for example when the theme
   changes, and then showed the answer mirrored through the question. */
.fc-card .fc-face { transition: border-color .25s ease, box-shadow .3s ease, visibility 0s linear .087s; }
.fc-card .fc-back, .fc-card.flipped .fc-front { visibility: hidden; }
.fc-card.flipped .fc-back { visibility: visible; }
.fc-card.fc-swap .fc-face { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .fc-card .fc-face { transition: none; } }
