  @font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }
  @font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff") format("woff"); font-weight: 200 800; font-style: italic; font-display: swap; }

  :root {
    --paper: #f5f1e8;
    --paper-2: #fbf9f4;
    --ink: #1f1c18;
    --ink-2: #4a443c;
    --muted: #7a7266;
    --rule: #ddd5c6;
    --blue: #2b4a6f;
    --blue-hover: #213a58;
    --blue-soft: #e6ebf1;
    --wa: #1f8f4e;
    --wa-hover: #187a42;
    --bad: #b83a3a;
    --serif: "Newsreader", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Ubuntu, Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  .dark {
    --paper: #15140f;
    --paper-2: #1c1b16;
    --ink: #ece6d9;
    --ink-2: #c4bcad;
    --muted: #8d8576;
    --rule: #34312a;
    --blue: #93b3d8;
    --blue-hover: #a9c4e4;
    --blue-soft: #1f2833;
    --wa: #2ea862;
    --wa-hover: #36b96d;
    --bad: #e07a6e;
  }
  .dark .btn-primary { color: #10151c; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
  body {
    background: var(--paper); color: var(--ink); font-family: var(--serif);
    font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
  }
  a { color: inherit; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
  em { font-style: italic; }

  .label {
    font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted);
  }

  /* Nav */
  nav.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
  nav.top .inner { display: flex; align-items: center; gap: 6px; height: 62px; }
  .brand { text-decoration: none; margin-right: 18px; line-height: 1.1; }
  .brand b { display: block; font-weight: 600; font-size: 1.2rem; letter-spacing: 0.005em; }
  .brand small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .links { display: flex; gap: 2px; font-family: var(--sans); }
  .links a { text-decoration: none; color: var(--ink-2); font-size: 0.92rem; padding: 6px 10px; border-radius: 6px; }
  .links a:hover { color: var(--ink); background: var(--blue-soft); }
  .spacer { flex: 1; }
  .icon-btn {
    width: 38px; height: 38px; flex: none; border: 1px solid var(--rule); border-radius: 8px;
    background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  }
  .icon-btn:hover { color: var(--ink); background: var(--blue-soft); }
  .icon-btn svg { width: 18px; height: 18px; }
  .icon-sun { display: none; } .dark .icon-sun { display: block; } .dark .icon-moon { display: none; }
  .menu-btn { display: none; }
  .mmenu { border-top: 1px solid var(--rule); padding: 4px 20px 12px; display: grid; font-family: var(--sans); }
  .mmenu[hidden] { display: none; }
  .mmenu a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .mmenu a:last-child { border-bottom: 0; }
  /* Open menu: solid sheet over the page (the 92% see-through nav let the page text show through) */
  nav.top:has(.mmenu:not([hidden])) { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
  .mmenu { background: var(--paper); height: calc(100vh - 62px); height: calc(100dvh - 62px); overflow-y: auto; align-content: start; }
  html:has(.mmenu:not([hidden])) { overflow: hidden; }
  html:has(.mmenu:not([hidden])) .mbar { display: none; }
  .mm-head { padding: 18px 0 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans); font-weight: 600; font-size: 0.98rem; text-decoration: none;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s; white-space: nowrap;
  }
  .btn svg { width: 18px; height: 18px; flex: none; }
  .btn-primary { background: var(--blue); color: #fff; }
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-line { border-color: var(--rule); color: var(--ink); background: transparent; }
  .btn-line:hover { border-color: var(--blue); }
  .btn-sm { padding: 8px 16px; font-size: 0.9rem; }
  .btn-wa { background: var(--wa); color: #fff; }
  .btn-wa:hover { background: var(--wa-hover); }
  .textlink { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); padding-bottom: 1px; }
  .textlink:hover { border-bottom-color: var(--blue); }
  .inlink { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

  /* Hero */
  header.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 72px 0 56px; }
  h1 { font-weight: 500; font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.06; letter-spacing: -0.015em; margin-top: 18px; }
  h1 em { color: var(--blue); font-weight: 400; }
  .lede { margin-top: 22px; font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
  .hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
  .hero-art { color: var(--ink-2); }
  .hero-art svg { width: 100%; height: auto; display: block; }
  .art-label { font-family: var(--serif); font-style: italic; font-size: 15px; fill: var(--muted); }

  .creds { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-2); }
  .creds span { padding: 0 18px; border-left: 1px solid var(--rule); }
  .creds span:first-child { padding-left: 0; border-left: 0; }
  .creds b { font-weight: 600; color: var(--ink); }

  /* Sections */
  section { padding: 88px 0; }
  section + section { border-top: 1px solid var(--rule); }
  h2 { font-weight: 500; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; margin-top: 12px; max-width: 22em; }
  h2 em { color: var(--blue); font-weight: 400; }
  .intro { color: var(--ink-2); margin-top: 16px; max-width: 36em; font-size: 1.15rem; }
  h3 { font-weight: 600; font-size: 1.35rem; line-height: 1.25; }

  /* Who I teach */
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 44px; }
  .trio article { border-top: 2px solid var(--ink); padding-top: 22px; }
  .numeral { font-style: italic; color: var(--blue); font-size: 1.5rem; line-height: 1; }
  .trio h3 { margin-top: 10px; }
  .trio p { color: var(--ink-2); margin-top: 12px; }

  /* Method */
  .method { display: grid; gap: 72px; margin-top: 52px; }
  .step { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: center; }
  .step:nth-child(even) { grid-template-columns: 260px 1fr; }
  .step:nth-child(even) .shot { order: -1; }
  .step p { color: var(--ink-2); margin-top: 12px; max-width: 32em; }
  .step .label { display: block; margin-bottom: 8px; }
  .shot {
    align-self: center; border: 1px solid var(--rule); border-radius: 26px; background: var(--paper-2);
    padding: 10px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(40,30,10,.35);
  }
  .shot .screen {
    height: 100%; border-radius: 18px; border: 1px dashed var(--rule); display: grid; place-items: center;
    text-align: center; padding: 16px; font-family: var(--sans); font-size: 0.8rem; color: var(--muted);
  }
  /* Frames stay hidden until a real screenshot (an <img>) replaces the placeholder */
  .shot:has(.screen) { display: none; }
  .step:has(.shot .screen), .step:nth-child(even):has(.shot .screen) { grid-template-columns: 1fr !important; }
  .sample:has(.shot .screen) { grid-template-columns: 1fr; }
  .shot img { width: 100%; height: auto; border-radius: 18px; display: block; }
  .bank { margin-top: 72px; display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 28px; }
  .bank .big { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 400; line-height: 1; color: var(--blue); }
  .bank .big small { display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
  .bank p { color: var(--ink-2); max-width: 34em; }

  /* Programmes */
  .progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
  .prog { background: var(--paper-2); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: 12px; padding: 26px 24px 18px; }
  .prog h3 { font-size: 1.4rem; }
  .prog .who { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-2); margin-top: 6px; }
  .prog dl { margin-top: 18px; font-family: var(--sans); font-size: 0.93rem; }
  .prog dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); }
  .prog dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
  .prog dd { color: var(--ink); }
  /* Upcoming batches (prebook) */
  .batches { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
  .batch { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
  .batch .start { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
  .batch h3 { font-size: 1.35rem; margin-top: 8px; }
  .batch ul { list-style: none; margin: 14px 0 0; font-family: var(--sans); font-size: 0.93rem; color: var(--ink-2); }
  .batch li { padding: 8px 0; border-top: 1px solid var(--rule); }
  .batch .seats { font-family: var(--sans); font-size: 0.88rem; color: var(--ink); margin-top: 12px; }
  .batch .btn { margin-top: 18px; align-self: flex-start; }
  .batch-rules { margin-top: 28px; font-family: var(--sans); font-size: 0.93rem; color: var(--ink-2); max-width: 46em; line-height: 1.6; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
  .facts h3 { font-size: 1.1rem; }
  .facts p { color: var(--ink-2); margin-top: 6px; font-size: 1.02rem; }

  /* About */
  .about { display: grid; grid-template-columns: 220px 1fr; gap: 56px; margin-top: 44px; align-items: start; }
  .portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; filter: grayscale(0.15) contrast(1.02); border: 1px solid var(--rule); background: var(--paper-2); }
  .about-text p { color: var(--ink-2); margin-top: 16px; max-width: 34em; }
  .about-text p:first-child { margin-top: 0; }
  blockquote { margin-top: 32px; padding-left: 22px; border-left: 2px solid var(--blue); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink); max-width: 30em; }
  blockquote footer { font-style: normal; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
  .degrees { margin-top: 32px; font-family: var(--sans); font-size: 0.92rem; border-top: 1px solid var(--rule); max-width: 34em; }
  .degrees div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .degrees b { color: var(--blue); }
  .degrees span { color: var(--ink-2); }

  /* No demo / sample */
  .sample { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .sample .actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
  .sample .shot { max-width: 260px; width: 100%; justify-self: center; }
  a.anim-shot { display: block; text-decoration: none; }
  .sample .anim-shot { max-width: 320px; }
  /* the picture follows the theme toggle (the .dark class), not only the system setting */
  .anim-shot .img-dark, .dark .anim-shot .img-light { display: none; }
  .dark .anim-shot .img-dark { display: block; }
  a.anim-shot:hover, a.anim-shot:focus-visible { border-color: var(--blue); }

  /* FAQ */
  .faq { margin-top: 36px; max-width: 46em; border-top: 1px solid var(--rule); }
  .faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--sans); color: var(--blue); font-weight: 400; font-size: 1.4rem; line-height: 1; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { color: var(--ink-2); margin-top: 10px; }

  /* Contact */
  .contact { text-align: center; padding: 96px 0; }
  .contact h2 { margin: 12px auto 0; }
  .contact .intro { margin: 16px auto 0; }
  .contact .btn { margin-top: 30px; }
  .contact .small { margin-top: 18px; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

  footer.site { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-family: var(--sans); color: var(--muted); font-size: 0.85rem; }
  footer.site .inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  footer.site a { text-decoration: none; }
  footer.site a:hover { color: var(--ink); }
  .flinks { display: flex; flex-wrap: wrap; gap: 4px 18px; }

  /* Phone bottom bar: one button, shown after the hero */
  .mbar { display: none; }

  /* Enquiry form */
  html:has(dialog.enq[open]) { overflow: hidden; }
  dialog.enq {
    border: 0; padding: 0; margin: auto; background: var(--paper-2); color: var(--ink);
    border-radius: 16px; width: min(560px, calc(100% - 32px)); max-width: none;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.3);
    font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  }
  /* (guided form: see the end of this file) */
  dialog.enq::backdrop { background: rgba(20,16,10,.55); }
  .enq form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .enq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--rule); }
  .enq-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
  .enq-head p { color: var(--ink-2); font-size: 0.92rem; margin-top: 4px; }
  .enq-body { overflow-y: auto; padding: 18px 20px; display: grid; gap: 18px; flex: 1; }
  .enq-body[hidden], .enq-foot[hidden] { display: none; }
  .fld { border: 0; min-width: 0; }
  .fld > label, .fld > legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; padding: 0; }
  .fld input[type=text], .fld textarea {
    width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--rule);
    border-radius: 8px; background: var(--paper); color: var(--ink);
  }
  .fld input[type=text]:focus, .fld textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
  .fld textarea { min-height: 70px; resize: vertical; }
  .opt { font-weight: 400; color: var(--muted); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips label { position: relative; }
  .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .chips span {
    display: inline-block; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px;
    background: var(--paper); cursor: pointer; font-size: 0.93rem; user-select: none;
  }
  .chips input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 600; }
  .chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .fld.bad input[type=text], .fld.bad .chips span { border-color: var(--bad); }
  .fld.bad > label, .fld.bad > legend { color: var(--bad); }
  .enq-err { color: var(--bad); font-size: 0.9rem; }
  .enq-foot { padding: 14px 20px 16px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .enq-foot .btn { width: 100%; padding: 12px 14px; }
  .enq-foot small { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 0.8rem; }
  .enq-call { align-content: start; }
  .enq-call p { color: var(--ink-2); }
  .enq-call .btn { width: 100%; }
  .enq-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 0.9rem; cursor: pointer; }

  @media (max-width: 900px) {
    header.hero { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 40px; }
    .hero-art { max-width: 340px; }
    .trio, .sample { grid-template-columns: 1fr; gap: 40px; }
    .step, .step:nth-child(even) { grid-template-columns: 1fr 200px; gap: 28px; }
    .step:nth-child(even) .shot { order: 0; }
    .progs { grid-template-columns: 1fr; max-width: 560px; }
    .facts { grid-template-columns: 1fr; gap: 22px; }
    .about { grid-template-columns: 160px 1fr; gap: 32px; }
  }
  @media (max-width: 820px) {
    .brand { white-space: nowrap; margin-right: 8px; }
    .links a { padding: 6px 7px; font-size: 0.88rem; }
  }
  @media (max-width: 640px) {
    body { font-size: 1.08rem; }
    .links, .nav-enq { display: none; }
    .menu-btn { display: grid; }
    section { padding: 60px 0; }
    .creds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 0.88rem; }
    .creds span, .creds span:first-child { padding: 0; border-left: 0; }
    .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
    .shot { width: 72%; max-width: 260px; margin: 0 auto; }
    .about { grid-template-columns: 1fr; }
    .portrait { width: 150px; }
    .sample .anim-shot { width: 100%; max-width: 360px; padding: 6px; border-radius: 20px; }
    .anim-shot img { border-radius: 14px; }
    .hero-art { display: none; } /* phone: the action (Book a seat) and the batches come first */
    .mbar {
      display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
      background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px);
      border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .25s;
    }
    .mbar.on { transform: none; }
    .mbar .btn { width: 100%; padding: 11px; }
    body { padding-bottom: 72px; }
    dialog.enq { width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
    .enq form { height: 100%; max-height: none; }
    .row2 { grid-template-columns: 1fr; }
    .enq-foot { grid-template-columns: 1fr; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  }

  /* ---- Section bar (TOC): desktop = nav links with the current one marked; phone = sticky chip strip ---- */
  .links a.on { color: var(--blue); background: var(--blue-soft); }
  .toc { display: none; }
  .toc a { flex: none; text-decoration: none; font-family: var(--sans); font-size: 0.86rem; color: var(--ink-2);
           padding: 6px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); white-space: nowrap; }
  .toc a.on { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); font-weight: 600; }
  .links a.page, .toc a.page { font-style: italic; }
  @media (max-width: 640px) {
    html { scroll-padding-top: 112px; }
    .toc { display: flex; gap: 8px; overflow-x: auto; padding: 8px 20px 10px; border-top: 1px solid var(--rule); scrollbar-width: none; }
    .toc::-webkit-scrollbar { display: none; }
    nav.top:has(.mmenu:not([hidden])) .toc { display: none; }
  }

  /* ---- Why me (homepage) ---- */
  .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
  .why article { border-top: 2px solid var(--ink); padding-top: 18px; }
  .why h3 { font-size: 1.2rem; }
  .why p { color: var(--ink-2); margin-top: 10px; }
  .more { margin-top: 32px; font-family: var(--sans); }
  .prog .desc { color: var(--ink-2); margin-top: 10px; font-size: 1rem; }
  @media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 26px; } }

  /* ---- How I teach page ---- */
  .page-head { padding: 64px 0 24px; }
  .page-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
  .next { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }

  /* ---- How I teach layer (dialog over the homepage) ---- */
  html:has(dialog.layer[open]) { overflow: hidden; }
  dialog.layer { padding: 0; border: 0; margin: auto; width: min(1120px, calc(100% - 40px)); max-width: none;
                 height: calc(100vh - 40px); height: calc(100dvh - 40px); max-height: none; border-radius: 16px;
                 background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
  dialog.layer[open] { display: flex; flex-direction: column; }
  dialog.layer::backdrop { background: rgba(20,16,10,.6); }
  .layer-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
                padding: 12px 20px; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-weight: 600; }
  .layer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
  .layer-body .page-head { padding-top: 40px; }
  @media (max-width: 640px) {
    dialog.layer { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
  }

  /* Research papers (About, in the How I teach layer) */
  .papers { margin-top: 28px; max-width: 34em; }
  .papers h3 { font-size: 1.05rem; }
  .papers ol { margin: 10px 0 0 1.2em; color: var(--ink-2); font-size: 0.98rem; }
  .papers li { margin-top: 8px; line-height: 1.5; }
  .papers span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

  /* ---- Guided enquiry form: one question per screen (30 Nov 2026) ---- */
  .q-step { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
  .q-bar { height: 4px; background: var(--rule); border-radius: 4px; margin-top: 8px; overflow: hidden; width: min(260px, 60vw); }
  .q-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .25s; }
  .q[hidden] { display: none !important; }
  .q { align-content: start; }
  #enqBody { align-content: start; }   /* rows stay at the top; no stretched gap between the answer and Next */
  .q-title { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.25; margin: 6px 0 4px; padding: 0; }
  .fld > .q-title { font-weight: 500; font-size: 1.45rem; }
  .q-hint { color: var(--ink-2); font-family: var(--sans); font-size: 0.95rem; margin-bottom: 16px; }
  .q input[type=text] { font-size: 1.15rem; padding: 14px 14px; }
  .q .chips { gap: 10px; }
  .q .chips span { padding: 11px 18px; font-size: 1.02rem; min-height: 46px; display: inline-flex; align-items: center; }
  .chips-col { flex-direction: column; align-items: stretch; }
  .chips-col span { width: 100%; }
  .q-err { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 10%, var(--paper)); color: var(--ink); font-family: var(--sans); font-size: 0.98rem; line-height: 1.45; border-left: 3px solid var(--bad); }
  .q-err::before { content: "\270B  "; }
  .q.bad input[type=text], .q.bad .chips span { border-color: var(--bad); }
  .q.bad > .q-title { color: inherit; }
  .q.shake { animation: qshake .3s; }
  @keyframes qshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  @media (prefers-reduced-motion: reduce) { .q.shake { animation: none; } }
  .enq-nav { margin-top: 4px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
  .enq-nav[hidden] { display: none; }
  .enq-nav .btn { padding: 15px 20px; font-size: 1.08rem; }
  .enq-nav #enqNext[hidden] { display: none; }
  .review { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-family: var(--sans); font-size: 0.95rem; margin-bottom: 18px; }
  .review dt { color: var(--muted); }
  .review dd { color: var(--ink); }
  .review .enq-link { font-size: 0.85rem; margin-left: 4px; }
  @media (max-width: 640px) {
    .enq-foot { border-top: 0; }
  }
