/* =====================================================================
   hx-sections.css — the Da Vinci School section template (14 Nov 2026, Heike: "start with the template")
   Born on the new homepage (14 Nov). Every page can use these building blocks; change a block here and it
   changes on every page. Preview + copy-paste HTML of every block: /template-sections
   Wrap the page body in <main class="hx-main">. Each section: <section class="hx-sec"><div class="hx-wrap">…
   Script for swipe rows + phone card dots: /components/hx-sections.js · photo parallax: /components/parallax.js
   Blocks: heading (hx-kick + hx-h2/hx-big + hx-lead) · buttons (hx-btn--fill/--ghost, hx-link) · doors (hx-doors)
   · why grid + pillars + video · scene gallery (hx-gal) · path rows (hx-prow + hx-card) · photo band (hx-band)
   · photo rows (hx-rowwrap) · quote + videos · person (hx-be) · closing (hx-close)
   Homepage-only rules (#hx-hero, #hx-who, #hx-teach) are kept here so the homepage stays exactly as it was.
   ===================================================================== */
  :root { --hx-night:#0B1312; --hx-night2:#121C1A; --hx-night3:#18231F; --hx-paper:#F4EFE6; --hx-paper2:#C9C3B6;
          --hx-teal:#5FC4BA; --hx-teal2:#7FD3CA; --hx-gold:#D9B489; --hx-line:rgba(244,239,230,.12); }
  body { background: var(--hx-night); }
  .hx-main { position: relative; z-index: 1; font-family: 'Outfit', system-ui, sans-serif; color: var(--hx-paper); }
  .hx-main a:not(.btn) { color: inherit; }
  .hx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .hx-kick { font: 600 .74rem/1.3 'Outfit', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--hx-teal); margin: 0 0 14px; }
  .hx-h2 { font: 600 clamp(1.8rem, 3.6vw, 2.8rem)/1.15 'Outfit', sans-serif; letter-spacing: -.01em; margin: 0 0 18px; color: var(--hx-paper); }
  .hx-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--hx-paper2); max-width: 620px; }
  .hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px;
            font: 600 .98rem 'Outfit', sans-serif; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
  .hx-btn--fill { background: var(--hx-teal); color: var(--hx-night) !important; }
  .hx-btn--fill:hover { background: var(--hx-teal2); transform: translateY(-2px); }
  .hx-btn--ghost { border: 1.5px solid rgba(244,239,230,.45); color: var(--hx-paper) !important; background: rgba(11,19,18,.35); }
  .hx-btn--ghost:hover { border-color: var(--hx-paper); background: rgba(11,19,18,.6); }
  .hx-link { color: var(--hx-teal) !important; font-weight: 600; text-decoration: none; }
  .hx-link:hover { color: var(--hx-teal2) !important; }
  .hx-sec { position: relative; padding: 120px 0; }

  /* HERO */
  #hx-hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
  #hx-hero .hx-wrap { width: 100%; }
  .hx-hero-copy { max-width: 560px; }
  .hx-hero-kick { display: flex; align-items: center; gap: 12px; }
  .hx-hero-kick img { width: 34px; height: 34px; opacity: .9; }
  .hx-h1 { font: 600 clamp(2.3rem, 5vw, 4rem)/1.06 'Outfit', sans-serif !important; letter-spacing: -.02em; margin: 0 0 22px; color: var(--hx-paper); }
  .hx-h1 em { font-style: normal; color: var(--hx-teal); }
  .hx-hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--hx-paper2); margin: 0 0 34px; max-width: 500px; }
  .hx-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
  .hx-cue { margin-top: 54px; display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--hx-paper2); letter-spacing: .04em; }
  .hx-cue i { width: 1px; height: 42px; background: linear-gradient(var(--hx-teal), transparent); display: block; animation: hxcue 2.4s ease-in-out infinite; transform-origin: top; }
  @keyframes hxcue { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }

  /* WHO */
  #hx-who { padding-top: 60px; }
  .hx-who-head { text-align: center; margin: 0 auto 46px; }
  .hx-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .hx-door { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none;
             background: rgba(18,28,26,.86); border: 1px solid var(--hx-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
             transition: transform .3s, border-color .3s; }
  .hx-door:hover { transform: translateY(-6px); border-color: rgba(95,196,186,.55); }
  .hx-door-img { height: 190px; overflow: hidden; }
  .hx-door-img img { width: 100%; height: 125%; object-fit: cover; display: block; will-change: transform; }
  .hx-door-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
  .hx-door-title { font: 600 1.18rem/1.25 'Outfit', sans-serif; margin: 0 0 10px; color: var(--hx-paper); }
  .hx-door-text { font-size: .98rem; line-height: 1.55; color: var(--hx-paper2); margin: 0 0 18px; flex: 1; }
  .hx-door-go { color: var(--hx-teal); font-weight: 600; font-size: .95rem; }
  .hx-door--first { border-color: rgba(217,180,137,.55); }
  .hx-door--first .hx-door-go { color: var(--hx-gold); }

  .hx-swipe { display: none; align-items: center; justify-content: center; gap: 7px; margin-top: 4px; color: var(--hx-paper2); font-size: .85rem; }
  .hx-swipe i { width: 7px; height: 7px; border-radius: 50%; background: rgba(244,239,230,.25); transition: background .3s, width .3s; }
  .hx-swipe i.on { background: var(--hx-teal); width: 20px; border-radius: 4px; }
  .hx-swipe span { margin-left: 8px; }
  .hx-door-img img { object-position: 50% 35%; }
  /* WHY */
  .hx-why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
  .hx-big { font: 600 clamp(2rem, 4.2vw, 3.3rem)/1.1 'Outfit', sans-serif; letter-spacing: -.015em; margin: 0 0 24px; }
  .hx-big span { color: var(--hx-teal); }
  .hx-pillars { display: grid; gap: 14px; margin: 34px 0 0; }
  .hx-pillar { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px;
               background: rgba(18,28,26,.72); border: 1px solid var(--hx-line); }
  .hx-pillar svg { width: 44px; height: 44px; }
  .hx-pillar b { display: block; font-weight: 600; color: var(--hx-paper); margin-bottom: 3px; }
  .hx-pillar span { color: var(--hx-paper2); font-size: .97rem; line-height: 1.5; }
  .hx-video { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; border: 1px solid var(--hx-line); background: #000; }
  .hx-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .3s, transform .6s; }
  .hx-video:hover img { opacity: 1; transform: scale(1.03); }
  .hx-video .hx-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--hx-teal);
                       display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(95,196,186,.2); }
  .hx-video .hx-play svg { width: 30px; height: 30px; fill: var(--hx-night); margin-left: 4px; }
  .hx-video-cap { margin: 14px 0 0; color: var(--hx-paper2); font-size: .95rem; }

  /* PATH (sticky steps; the geometry shows on the left) */
  .hx-path-head { max-width: 560px; margin-left: auto; }
  .hx-step { min-height: 92vh; display: flex; align-items: center; justify-content: flex-end; }
  .hx-card { width: min(520px, 100%); border-radius: 24px; overflow: hidden; background: rgba(18,28,26,.9); border: 1px solid var(--hx-line);
             backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 80px rgba(0,0,0,.45); text-decoration: none; display: block;
             transition: transform .3s, border-color .3s; }
  .hx-card:hover { transform: translateY(-4px); border-color: rgba(95,196,186,.5); }
  .hx-card-img { height: 230px; overflow: hidden; }
  .hx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hx-card-body { padding: 24px 26px 26px; }
  .hx-num { font: 600 .74rem 'Outfit', sans-serif; letter-spacing: .2em; color: var(--hx-gold); text-transform: uppercase; }
  .hx-card h3 { font: 600 1.7rem/1.2 'Outfit', sans-serif; margin: 8px 0 10px; color: var(--hx-paper); }
  .hx-card p { color: var(--hx-paper2); line-height: 1.55; margin: 0 0 16px; font-size: 1rem; }
  .hx-meta { display: inline-block; font-size: .88rem; color: var(--hx-paper); background: rgba(95,196,186,.12); border: 1px solid rgba(95,196,186,.3);
             padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
  .hx-path-foot { text-align: right; color: var(--hx-paper2); margin-top: 10px; }

  /* TEACHERS band (photo parallax) */
  #hx-teach { padding: 0; overflow: hidden; }
  .hx-band { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
  .hx-band-bg { position: absolute; left: 0; right: 0; top: -15%; height: 130%; will-change: transform; }
  .hx-band-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hx-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,19,18,.94) 0%, rgba(11,19,18,.82) 45%, rgba(11,19,18,.25) 100%); }
  .hx-band .hx-wrap { position: relative; z-index: 2; width: 100%; }
  .hx-band-copy { max-width: 580px; padding: 90px 0; }
  .hx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; }
  .hx-fact { padding: 14px 16px; border-radius: 14px; background: rgba(18,28,26,.7); border: 1px solid var(--hx-line); }
  .hx-fact b { display: block; font-size: 1.15rem; color: var(--hx-gold); }
  .hx-fact span { font-size: .9rem; color: var(--hx-paper2); }
  .hx-band-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

  /* MOMENTS (two rows that slide in opposite directions) */
  #hx-moments { overflow: hidden; }
  .hx-moments-head { text-align: center; margin: 0 auto 44px; }
  .hx-rowwrap { position: relative; margin-bottom: 16px; }
  .hx-row { display: flex; gap: 16px; overflow-x: auto; padding: 0 max(24px, calc((100vw - 1160px) / 2)); scroll-padding: 0 max(24px, calc((100vw - 1160px) / 2)); scrollbar-width: none; }
  .hx-row::-webkit-scrollbar { display: none; }
  .hx-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244,239,230,.35); background: rgba(11,19,18,.82); color: #F4EFE6; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
  .hx-arr:hover { background: #5FC4BA; color: #0B1312; border-color: #5FC4BA; }
  .hx-arr--l { left: 14px; } .hx-arr--r { right: 14px; }
  .hx-arr[disabled] { opacity: 0; pointer-events: none; }
  @media (hover: none) { .hx-arr { display: none; } }
  .hx-mo { position: relative; width: 340px; height: 230px; border-radius: 18px; overflow: hidden; flex: none; text-decoration: none; display: block; }
  .hx-mo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
  .hx-mo:hover img { transform: scale(1.05); }
  .hx-mo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: .9rem; color: var(--hx-paper);
                background: linear-gradient(transparent, rgba(11,19,18,.92)); }
  .hx-mo span b { display: block; font-weight: 600; }
  .hx-countries { text-align: center; margin: 30px auto 0; color: var(--hx-paper2); letter-spacing: .06em; font-size: .95rem; max-width: 860px; line-height: 1.9; padding: 0 28px; }
  .hx-countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
  .hx-countries span { white-space: nowrap; }
  .hx-countries span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--hx-teal); margin-right: 9px; vertical-align: middle; }

  /* VOICES */
  .hx-quote { max-width: 880px; margin: 0 auto 50px; text-align: center; }
  .hx-quote-text { font: 500 clamp(1.4rem, 2.8vw, 2.1rem)/1.35 'Outfit', sans-serif; color: var(--hx-paper); margin: 0 0 18px; }
  .hx-quote-who { font: 600 .78rem 'Outfit', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-teal); }
  .hx-vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hx-vids .video-embed { border-radius: 16px; overflow: hidden; }
  .hx-vid-cap { margin: 10px 2px 0; font-size: .9rem; color: var(--hx-paper2); }
  .hx-vid-cap b { color: var(--hx-paper); font-weight: 600; }

  /* DR. BE */
  .hx-be { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .hx-be-photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; }
  .hx-be-photo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
  .hx-role { color: var(--hx-gold); font-weight: 600; letter-spacing: .06em; margin: 0 0 18px; }
  .hx-be p.hx-bio { color: var(--hx-paper2); line-height: 1.65; font-size: 1.05rem; margin: 0 0 16px; }

  /* CLOSING */
  #hx-close { text-align: center; padding: 160px 0 170px; }
  #hx-close .hx-lead { margin: 0 auto 34px; }
  #hx-close .hx-ctas { justify-content: center; }

  /* soft veil behind text-heavy sections so the geometry never fights the words */
  .hx-veil::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,19,18,.55), rgba(11,19,18,.2) 70%); pointer-events: none; }
  .hx-veil > * { position: relative; }

  /* reveal */
  .hx-main .fade-in { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
  .hx-main .fade-in.visible { opacity: 1; transform: none; }

  @media (max-width: 1000px) {
    .hx-doors { grid-template-columns: repeat(2, 1fr); }
    .hx-why-grid, .hx-be { grid-template-columns: 1fr; gap: 40px; }
    .hx-vids { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 760px) {
    .hx-wrap { padding: 0 16px; }
    .hx-sec { padding: 84px 0; }
    #hx-hero { align-items: flex-end; padding: 0 0 56px; }
    .hx-hero-copy { text-align: center; margin: 0 auto; }
    .hx-hero-kick { justify-content: center; }
    .hx-hero-sub { margin-left: auto; margin-right: auto; }
    .hx-ctas { flex-direction: column; }
    .hx-btn { width: 100%; }
    .hx-cue { justify-content: center; margin-top: 30px; }
    /* phones: the four cards side by side to swipe, the whole photo on top (Heike 14 Nov: photos were cut off) */
    .hx-doors { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 18px;
                scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .hx-doors::-webkit-scrollbar { display: none; }
    .hx-door { flex: 0 0 82%; scroll-snap-align: center; scroll-snap-stop: always; }
    .hx-door:hover { transform: none; }
    .hx-door-img { height: auto; aspect-ratio: 4 / 3; }
    .hx-door-img img { height: 100%; transform: none !important; }
    .hx-door-body { padding: 16px 16px 18px; }
    .hx-door-title { font-size: 1.1rem; margin-bottom: 8px; }
    .hx-door-text { font-size: .95rem; margin-bottom: 12px; }
    .hx-swipe { display: flex !important; }
    .hx-path-head, .hx-path-foot { text-align: left; margin-left: 0; }
    .hx-step { min-height: 0; padding: 34vh 0 0; justify-content: center; }
    .hx-step:first-of-type { padding-top: 26vh; }
    .hx-card-img { height: 170px; }
    .hx-card h3 { font-size: 1.45rem; }
    .hx-band { min-height: 0; }
    .hx-band::after { background: linear-gradient(180deg, rgba(11,19,18,.55) 0%, rgba(11,19,18,.92) 45%, rgba(11,19,18,.97) 100%); }
    .hx-band-copy { padding: 220px 0 70px; }
    .hx-mo { width: 250px; height: 175px; }
    .hx-vids { grid-template-columns: 1fr; }
    .hx-be-photo { aspect-ratio: 1/1; }
    #hx-close { padding: 110px 0 120px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hx-main .fade-in { opacity: 1; transform: none; transition: none; }
    .hx-cue i { animation: none; }
  }

  /* curriculum drawings (track-anims.js) on dark cards */
  .tr-anim { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 45%, #18231F, #0B1312 80%); }
  .tr-anim svg { width: 100%; height: 100%; display: block; }
  .tr-anim .ln { fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
  .tr-anim .hi { stroke: var(--teal-light, #7FD3CA); }
  .tr-anim .pa { stroke: var(--paper, #F4EFE6); }
  .tr-anim .dim { stroke: var(--paper-2, #C9C3B6); opacity: .35; }
  .tr-anim .dot { fill: var(--teal-light, #7FD3CA); }
  .hx-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hx-scene { margin: 0; border-radius: 20px; overflow: hidden; background: rgba(18,28,26,.86); border: 1px solid var(--hx-line); transition: transform .3s, border-color .3s; }
  .hx-scene:hover { transform: translateY(-4px); border-color: rgba(95,196,186,.45); }
  .hx-scene figcaption { padding: 14px 18px 16px; color: var(--hx-paper); font-size: 1rem; }
  .hx-scene figcaption b { display: block; font: 600 .72rem 'Outfit', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--hx-teal); margin-bottom: 4px; }
  .hx-prow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 0 0 64px; }
  .hx-prow:nth-of-type(even) .hx-pscene { order: 2; }
  .hx-pscene { border-radius: 24px; overflow: hidden; border: 1px solid var(--hx-line); }
  .hx-prow .hx-card { width: 100%; }
  .hx-cover { height: auto !important; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--hx-line); }
  .hx-cover img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
  .hx-card:hover .hx-cover img { transform: scale(1.06); }
  .hx-devscene { display: block; border: 0; border-radius: 0; overflow: visible; padding: 10px 0; }
  .hx-retpics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 26px; max-width: 580px; }
  .hx-retpics figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(244,239,230,.18); }
  .hx-retpics img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hx-retpics figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: .78rem; color: #F4EFE6; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
  .hx-close-draw { width: 280px; height: 280px; margin: 0 auto 26px; border-radius: 50%; overflow: hidden; }
  .hx-close-draw svg { width: 100%; height: 100%; display: block; transform: rotate(30deg); }
  @media (max-width: 760px) {
    .hx-gal { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hx-scene figcaption { padding: 10px 12px 12px; font-size: .9rem; }
    .hx-prow { grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
    .hx-prow:nth-of-type(even) .hx-pscene { order: 0; }
    .hx-close-draw { width: 220px; height: 220px; }
  }

  /* ---- template additions (14 Nov 2026): the homepage-only ids as reusable classes ---- */
  .hx-head { text-align: center; margin: 0 auto 46px; }
  .hx-head .hx-lead { margin: 0 auto; }
  .hx-close { text-align: center; padding: 160px 0 170px; }
  .hx-close .hx-lead { margin: 0 auto 34px; }
  .hx-close .hx-ctas { justify-content: center; }
  .hx-sec--tight { padding: 70px 0; }
  .hx-sec--alt { background: var(--hx-night2); }
  @media (max-width: 760px) {
    .hx-close { padding: 110px 0 120px; }
    .hx-sec--tight { padding: 50px 0; }
  }

  /* ---- page head: the top of an inner page (title in Cormorant via brand-tokens, everything else Outfit) ---- */
  .hx-pagehead { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: 170px 0 72px; overflow: hidden; background: var(--hx-night); }
  .hx-pagehead-bg { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
  .hx-pagehead-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hx-pagehead::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,19,18,.5) 0%, rgba(11,19,18,0) 30%, rgba(11,19,18,0) 70%, var(--hx-night) 100%),
                linear-gradient(90deg, rgba(11,19,18,.93) 0%, rgba(11,19,18,.8) 42%, rgba(11,19,18,.25) 100%),
                rgba(11,19,18,.22); }   /* + an even tint over the whole photo, so no photo is glaring white (Heike 14 Nov) */
  .hx-pagehead--center::after { background: linear-gradient(180deg, rgba(11,19,18,.6) 0%, rgba(11,19,18,.72) 50%, var(--hx-night) 100%); }
  .hx-pagehead .hx-wrap { position: relative; z-index: 2; width: 100%; }
  .hx-pagehead-copy { max-width: 680px; }
  .hx-pagehead--center { text-align: center; }
  .hx-pagehead--center .hx-pagehead-copy { margin: 0 auto; }
  .hx-pagehead--center .hx-ctas { justify-content: center; }
  .hx-pagehead--plain { min-height: 0; padding: 150px 0 40px; }
  .hx-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; margin: 0 0 18px; color: var(--hx-paper); }
  .hx-title em { font-style: normal; color: var(--hx-teal); }
  .hx-pagehead .hx-lead { margin: 0 0 30px; }
  .hx-pagehead--center .hx-lead { margin-left: auto; margin-right: auto; }

  /* ---- prose: long text (terms, stories, about) ---- */
  .hx-prose { max-width: 720px; margin: 0 auto; color: var(--hx-paper2); font-size: 1.08rem; line-height: 1.7; }
  .hx-prose h2 { font: 600 1.6rem/1.25 'Outfit', sans-serif; color: var(--hx-paper); margin: 48px 0 14px; }
  .hx-prose h3 { font: 600 1.2rem/1.3 'Outfit', sans-serif; color: var(--hx-paper); margin: 32px 0 10px; }
  .hx-prose p, .hx-prose ul, .hx-prose ol { margin: 0 0 18px; }
  .hx-prose li { margin: 0 0 8px; }
  .hx-prose a { color: var(--hx-teal) !important; text-decoration: underline; text-underline-offset: 3px; }
  .hx-prose strong { color: var(--hx-paper); font-weight: 600; }
  .hx-prose blockquote { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--hx-teal); color: var(--hx-paper); font-size: 1.2rem; }

  /* ---- click-to-play video (same look as the homepage; :where keeps it weaker than every page's own rule) ---- */
  :where(.hx-main) .video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
  :where(.hx-main) .video-embed iframe, :where(.hx-main) .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
  :where(.hx-main) .video-embed .video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%;
    background: rgba(15,40,38,.72); border: 2px solid rgba(242,232,213,.85); display: flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
  :where(.hx-main) .video-embed:hover .video-play-btn { background: var(--hx-teal); transform: translate(-50%, -50%) scale(1.06); }
  :where(.hx-main) .video-embed .video-play-btn svg { width: 26px; height: 26px; margin-left: 4px; fill: #F4EFE6; }
  @media (max-width: 760px) {
    /* phones: the photo shows clearly in the top part, the words sit on the dark part below (Heike 14 Nov: "where's the hero image?") */
    .hx-pagehead { min-height: 0; padding: 300px 0 48px; }
    .hx-pagehead-bg { top: 0; height: 430px; }
    .hx-pagehead::after { background: linear-gradient(180deg, rgba(11,19,18,.5) 0px, rgba(11,19,18,.32) 120px, rgba(11,19,18,.45) 230px, rgba(11,19,18,.92) 330px, var(--hx-night) 430px); }
    .hx-pagehead--plain { padding: 120px 0 24px; }
    .hx-prose { font-size: 1.02rem; }
  }

  /* ---- added 14 Nov 2026 with the Curriculum preview ---- */
  :where(.hx-main) .fade-in.delay-1 { transition-delay: .1s; }
  :where(.hx-main) .fade-in.delay-2 { transition-delay: .2s; }
  :where(.hx-main) .fade-in.delay-3 { transition-delay: .3s; }
  :where(.hx-main) .fade-in.delay-4 { transition-delay: .4s; }
  :where(.hx-main) .fade-in.delay-5 { transition-delay: .5s; }
  /* three cards per row instead of four */
  .hx-doors--3 { grid-template-columns: repeat(3, 1fr); }
  .hx-door-when { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font: 600 .74rem 'Outfit', sans-serif; letter-spacing: .12em; text-transform: uppercase;
                  color: var(--hx-paper2); margin: 0 0 10px; }
  .hx-door-when i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
  .hx-door-when--now { color: var(--hx-teal); } .hx-door-when--now i { background: currentColor; }
  .hx-door-when--next { color: var(--hx-gold); }
  /* path steps: A → B → C → D */
  .hx-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
  .hx-steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--hx-paper); }
  .hx-steps li + li::before { content: '\2192'; color: var(--hx-teal); font-weight: 400; }
  .hx-steps span { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--hx-line); background: rgba(18,28,26,.86); }
  .hx-steps .on span { border-color: rgba(95,196,186,.55); color: var(--hx-teal); }
  /* scene card with text and a link under the drawing */
  .hx-scene-text { display: block; margin: 6px 0 0; color: var(--hx-paper2); font-size: .93rem; line-height: 1.5; }
  .hx-scene-go { display: inline-block; margin: 10px 0 0; color: var(--hx-teal) !important; font-weight: 600; font-size: .93rem; text-decoration: none; }
  .hx-scene figcaption h3 { font: 600 1.12rem/1.3 'Outfit', sans-serif; color: var(--hx-paper); margin: 0; }
  /* price line in a card */
  .hx-price { margin: 0 0 14px !important; color: var(--hx-paper2); font-size: .95rem; }
  .hx-price b { color: var(--hx-gold); font-size: 1.15rem; margin-right: 4px; }
  /* one-line email form */
  .hx-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
  .hx-form input[type=email] { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(95,196,186,.4); background: var(--hx-night2); color: var(--hx-paper); font: inherit; }
  .hx-form input[type=email]::placeholder { color: #8f9a96; }
  .hx-form button { min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--hx-teal); color: var(--hx-night); font: 600 .98rem 'Outfit', sans-serif; cursor: pointer; }
  .hx-form button:hover { background: var(--hx-teal2); }
  .hx-form button:disabled { opacity: .6; cursor: default; }
  .hx-form-note { text-align: center; min-height: 1.4em; margin: 12px 0 0; color: var(--hx-teal); }
  .hx-form-note.err { color: #F2A7A7; }
  @media (max-width: 1000px) { .hx-doors--3 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 760px) {
    .hx-form { flex-direction: column; }
    .hx-steps { flex-direction: column; gap: 6px; } .hx-steps li { flex-direction: column; gap: 6px; font-size: .95rem; }
    .hx-steps li + li::before { content: '\2193'; } .hx-steps span { padding: 8px 18px; }
  }
  /* the last drawing + card row of a section has no space under it (Heike 14 Nov: big gap on the phone) */
  .hx-prow:last-child { margin-bottom: 0 !important; }

  /* ---- added 14 Nov 2026 with the Teacher Training preview ---- */
  /* points without a drawing; --cols lays them out side by side */
  .hx-pillars--plain .hx-pillar { grid-template-columns: 1fr; }
  .hx-pillars--cols { grid-template-columns: repeat(2, 1fr); }
  .hx-pillars--4 { grid-template-columns: repeat(4, 1fr); }
  .hx-pillars--4 .hx-pillar { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .hx-pillars--4 .hx-pillar svg { margin: 0 auto 6px; }
  /* tiles: small cards with a gold label, a title and a short list */
  .hx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hx-tile { padding: 20px 20px 18px; border-radius: 18px; background: rgba(18,28,26,.86); border: 1px solid var(--hx-line); }
  .hx-tile .hx-num { display: block; margin-bottom: 6px; }
  .hx-tile h3 { font: 600 1.12rem/1.3 'Outfit', sans-serif; color: var(--hx-paper); margin: 0 0 10px; }
  .hx-tile ul { margin: 0; padding: 0 0 0 18px; color: var(--hx-paper2); font-size: .95rem; line-height: 1.5; }
  .hx-tile li { margin: 0 0 4px; }
  /* a list in a box (what is included) */
  .hx-box { padding: 26px 30px; border-radius: 20px; background: rgba(18,28,26,.86); border: 1px solid var(--hx-line); }
  .hx-box > .hx-kick { margin-bottom: 14px; }
  .hx-checks { columns: 2 320px; column-gap: 34px; margin: 0; padding: 0; list-style: none; }
  .hx-checks li { break-inside: avoid; position: relative; padding: 0 0 12px 24px; color: var(--hx-paper2); font-size: .97rem; line-height: 1.5; }
  .hx-checks li::before { content: '\25C8'; position: absolute; left: 0; top: 2px; color: var(--hx-teal); font-size: .72rem; }
  .hx-checks strong { color: var(--hx-paper); font-weight: 600; }
  /* testimonial cards, used inside a photo row (.hx-rowwrap > .hx-row) */
  .hx-tcard { flex: none; width: 400px; display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: 20px; background: rgba(18,28,26,.9); border: 1px solid var(--hx-line); }
  .hx-tcard-q { margin: 0 0 18px; color: var(--hx-paper); font-size: 1rem; line-height: 1.6; flex: 1; }
  .hx-tcard-who { display: flex; align-items: center; gap: 12px; }
  .hx-tcard-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(95,196,186,.5); }
  .hx-tcard-who b { display: block; color: var(--hx-paper); font-weight: 600; }
  .hx-tcard-who span { display: block; color: var(--hx-paper2); font-size: .88rem; }
  /* questions and answers: .hx-faq > .faq-category + .faq-item (button.faq-question + .faq-answer > .faq-answer-inner) */
  .hx-faq { max-width: 820px; margin: 0 auto; }
  .hx-faq .faq-category { font: 600 .74rem/1.3 'Outfit', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--hx-gold); margin: 34px 0 6px; }
  .hx-faq .faq-category:first-child { margin-top: 0; }
  .hx-faq .faq-item { border-bottom: 1px solid var(--hx-line); }
  .hx-faq .faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; background: none; border: 0; cursor: pointer;
                          text-align: left; font: 500 1.08rem/1.4 'Outfit', sans-serif; color: var(--hx-paper); }
  .hx-faq .faq-question:hover { color: var(--hx-teal2); }
  .hx-faq .faq-icon { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(95,196,186,.5); }
  .hx-faq .faq-icon::before, .hx-faq .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--hx-teal); transition: transform .3s; }
  .hx-faq .faq-icon::before { width: 11px; height: 1.6px; transform: translate(-50%, -50%); }
  .hx-faq .faq-icon::after { width: 1.6px; height: 11px; transform: translate(-50%, -50%); }
  .hx-faq .faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
  .hx-faq .faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
  .hx-faq .faq-item.open .faq-answer { grid-template-rows: 1fr; }
  .hx-faq .faq-answer-inner { overflow: hidden; }
  .hx-faq .faq-answer-inner p { margin: 0; padding: 0 0 20px; color: var(--hx-paper2); font-size: 1rem; line-height: 1.65; }
  /* a quote in the closing section */
  .hx-close-quote { font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.35 'Outfit', sans-serif; color: var(--hx-paper); margin: 0 auto 10px; max-width: 760px; }
  .hx-close-who { color: var(--hx-gold); font-weight: 600; letter-spacing: .06em; margin: 0 0 34px; }
  @media (max-width: 1000px) { .hx-pillars--4, .hx-tiles { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 760px) {
    .hx-pillars--cols { grid-template-columns: 1fr; }
    .hx-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .hx-tile { padding: 16px 14px 14px; }
    .hx-pillars--4 { grid-template-columns: 1fr 1fr; gap: 10px; } .hx-pillars--4 .hx-pillar { padding: 16px 12px; }
    .hx-box { padding: 22px 18px; }
    .hx-tcard { width: 84vw; padding: 22px 20px 18px; scroll-snap-align: center; }
    .hx-faq .faq-question { font-size: 1rem; padding: 16px 0; }
  }
  /* "Start for free" (watch-free.js) next to template buttons: same width on phones (Heike 14 Nov) */
  @media (max-width: 760px) {
    .hx-ctas > [data-watch-free] { width: 100%; }
    .hx-ctas [data-watch-free] .wf-btn { width: 100%; justify-content: center; min-height: 52px; }
  }

  /* ---- page head, split: words left, a framed photo right (14 Nov 2026, Heike: "an image where Heike is teaching").
     For photos that are not sharp enough to fill the whole screen. ---- */
  .hx-pagehead--split { min-height: 0; padding: 150px 0 70px; background: radial-gradient(ellipse at 75% 40%, #18231F, var(--hx-night) 70%); }
  .hx-pagehead--split::after { display: none; }
  .hx-pagehead--split .hx-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  .hx-pagehead-pic { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--hx-line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
  .hx-pagehead-pic img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; display: block; will-change: transform; }
  @media (max-width: 760px) {
    .hx-pagehead--split { padding: 104px 0 40px; }
    .hx-pagehead--split .hx-wrap { grid-template-columns: 1fr; gap: 26px; }
    .hx-pagehead--split .hx-pagehead-pic { order: -1; border-radius: 20px; }
  }
  /* rows of text cards (testimonials): on phones one card fits the screen, the next peeks in; no arrows on phones (Heike 14 Nov) */
  @media (max-width: 760px) {
    .hx-row--cards { padding: 4px 16px 10px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; gap: 12px; }
    .hx-row--cards .hx-tcard { width: calc(100vw - 56px); scroll-snap-align: start; }
    .hx-row--cards .hx-tcard-q { font-size: .97rem; line-height: 1.55; }
    .hx-rowwrap .hx-arr { display: none; }
  }
