  :root {
    --paper:       #f6efdf;
    --paper-2:     #efe6d0;
    --paper-3:     #faf4e6;
    --ink:         #2a2118;
    --ink-2:       #4f4435;
    --muted:       #847761;
    --rule:        rgba(42,33,24,0.14);
    --line:        rgba(42,33,24,0.08);

    --forest:      #3d5a3c;
    --forest-deep: #2c4231;
    --terra:       #c9633f;
    --terra-deep:  #9c4327;
    --burgundy:    #7a2e2e;
    --gold:        #c8965a;
    --moss:        #748a55;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--paper); }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
    color: var(--ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
    /* very subtle paper grain via radial gradients */
    background-image:
      radial-gradient(circle at 18% 26%, rgba(201,99,63,0.04) 0%, transparent 24%),
      radial-gradient(circle at 84% 78%, rgba(61,90,60,0.04) 0%, transparent 26%),
      radial-gradient(circle at 50% 50%, rgba(42,33,24,0.025) 0%, transparent 60%);
    background-attachment: fixed;
  }
  img { max-width: 100%; height: auto; display: block; }
  .serif {
    font-family: ui-serif, "New York", "Iowan Old Style", "Hoefler Text", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.015em;
  }
  .mono {
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  }

  /* ─── top nav ────────────────────────────────────── */
  .topnav {
    height: 58px;
    position: sticky; top: 0; z-index: 50;
    background: rgba(246,239,223,0.85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--rule);
    display: flex; align-items: center;
  }
  .topnav .inner {
    width: 100%; max-width: 1280px; margin: 0 auto;
    padding: 0 32px;
    display: flex; align-items: center; gap: 28px;
    font-size: 13px;
  }
  .topnav .brand {
    display: flex; align-items: center; gap: 12px;
    font-family: ui-serif, "New York", Georgia, serif;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.005em;
  }
  .topnav .brand .badge {
    width: 38px; height: 38px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
  }
  .topnav .brand .badge img {
    width: 100%; height: 100%; display: block; object-fit: cover;
  }
  .topnav .links { display: flex; gap: 28px; margin-left: auto; }
  .topnav .links a { color: var(--ink); text-decoration: none; opacity: 0.85; }
  .topnav .links a:hover { opacity: 1; }
  .topnav .cta {
    margin-left: 8px;
    background: var(--forest); color: var(--paper-3);
    padding: 9px 16px; border-radius: 999px;
    font-weight: 500; text-decoration: none;
  }
  .topnav .cta:hover { background: var(--forest-deep); }
  @media (max-width: 720px) {
    .topnav .inner { padding: 0 20px; gap: 16px; }
    .topnav .links { gap: 18px; font-size: 12px; }
    .topnav .links a:nth-child(2) { display: none; } /* hide "The cast" */
    .topnav .cta { display: none; }
  }
  @media (max-width: 520px) {
    .topnav .brand { font-size: 17px; gap: 10px; }
    .topnav .brand .badge { width: 32px; height: 32px; border-radius: 8px; }
    .topnav .links { gap: 14px; font-size: 11.5px; }
  }
  @media (max-width: 400px) {
    .topnav .links a:nth-child(3) { display: none; } /* drop "Privacy" — still in footer */
  }

  /* ─── shared ─────────────────────────────────────── */
  section { padding: 96px 0; position: relative; }
  .wide { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  .narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

  h1, h2, h3 {
    font-family: ui-serif, "New York", "Iowan Old Style", "Hoefler Text", Georgia, serif;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.022em;
    margin: 0;
  }
  h1 { font-size: clamp(38px, 11vw, 120px); line-height: 0.98; }
  h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; }
  h3 { font-size: 26px; line-height: 1.2; }
  .eyebrow {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--terra-deep);
    font-weight: 600;
  }
  .eyebrow .dot {
    display: inline-block; width: 6px; height: 6px;
    background: var(--terra); border-radius: 999px;
    margin: 0 10px 2px 0; vertical-align: middle;
  }
  .muted { color: var(--muted); }

  /* divider — subtle dotted rule */
  .dotrule {
    height: 1px; max-width: 1280px; margin: 0 auto;
    background-image: radial-gradient(circle, rgba(42,33,24,0.25) 1px, transparent 1.5px);
    background-size: 8px 8px; background-repeat: repeat-x; background-position: center;
  }

  /* phone */
  .phone {
    border-radius: 40px; overflow: hidden; background: #000;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
      0 40px 80px -24px rgba(42,33,24,0.35),
      0 10px 24px -12px rgba(42,33,24,0.18);
  }
  .phone img { width: 100%; display: block; }

  /* gnome sticker — leans on the cream sticker outline already baked into the PNG */
  .gnome-sticker {
    display: block;
    filter: drop-shadow(0 12px 18px rgba(42,33,24,0.18));
  }

  /* ─── hero ───────────────────────────────────────── */
  .hero {
    padding-top: 72px; padding-bottom: 80px;
    overflow: hidden;
  }
  .hero .grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }
  .hero h1 .italic {
    font-style: italic; font-weight: 400;
    color: var(--forest-deep);
  }
  .hero .sub {
    margin-top: 28px;
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--ink-2);
    max-width: 30ch;
    line-height: 1.4;
  }
  .hero .meta-row {
    margin-top: 36px;
    display: flex; gap: 24px; align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }
  .hero .availability {
    background: var(--forest); color: var(--paper-3);
    padding: 10px 18px; border-radius: 999px;
    font-weight: 500; font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.005em;
  }
  .hero .availability:hover { background: var(--forest-deep); }
  .hero .from-makers {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted);
  }
  .hero .stage {
    position: relative;
    min-height: 580px;
  }
  /* warm sun behind hero */
  .hero .stage::before {
    content: ""; position: absolute;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 520px; height: 520px;
    background: radial-gradient(circle, var(--paper-3) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
  }
  .hero .stage .phone-wrap {
    position: relative; z-index: 2;
    width: 280px; margin: 0 auto;
  }
  .hero .stage .gnome-hero {
    position: absolute; z-index: 3;
    right: -6%; bottom: -20px;
    width: 220px;
    transform: rotate(-3deg);
    transform-origin: bottom center;
  }
  @media (max-width: 900px) {
    .hero .grid { grid-template-columns: 1fr; gap: 56px; }
    .hero .stage { min-height: 460px; }
    .hero .stage .gnome-hero { width: 160px; right: 0; }
  }

  /* ─── ribbon (pull) ──────────────────────────────── */
  .ribbon {
    padding: 64px 0;
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .ribbon blockquote {
    margin: 0;
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1.18;
    letter-spacing: -0.022em;
    color: var(--ink);
    max-width: 24ch;
  }
  .ribbon blockquote em { color: var(--terra-deep); font-style: italic; }
  .ribbon .attr {
    margin-top: 22px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }

  /* ─── chapters (alternating phone + gnome) ─────── */
  .chapter { padding: 110px 0; }
  .chapter .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .chapter.reverse .row > :first-child { order: 2; }
  .chapter.reverse .row > :last-child { order: 1; }
  .chapter h2 { max-width: 14ch; margin-bottom: 16px; }
  .chapter h2 .italic { font-style: italic; color: var(--terra-deep); }
  .chapter h2 .moss { color: var(--forest-deep); font-style: italic; }
  .chapter p {
    font-size: 19px; color: var(--ink-2);
    margin: 0 0 14px;
    max-width: 38ch;
  }
  .chapter .pair {
    position: relative;
  }
  .chapter .pair .phone-w { width: 78%; margin: 0 auto; max-width: 320px; }
  .chapter .pair .gnome {
    position: absolute;
    width: 200px;
    z-index: 2;
  }
  .chapter .pair.with-walk .gnome  { right: -3%; bottom: -20px; transform: rotate(-3deg); transform-origin: bottom center; }
  .chapter .pair.with-cradle .gnome { left: -2%;  bottom: -20px; transform: rotate(3deg);  transform-origin: bottom center; width: 200px; }
  .chapter .pair.with-bow .gnome    { right: -4%; bottom: -20px; transform: rotate(-2deg); transform-origin: bottom center; width: 220px; }
  .chapter .pair::before {
    content: ""; position: absolute;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--paper-3) 0%, transparent 60%);
    border-radius: 50%; z-index: 0;
  }
  .chapter .pair .phone-w { position: relative; z-index: 1; }
  /* gnome keeps position: absolute from its rule above; this just sets stack order */
  .chapter .pair > .gnome { z-index: 2; }
  .chapter .copy {
    position: relative;
  }
  .chapter .copy .leaf {
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 14px; font-style: italic; color: var(--muted);
    margin-top: 22px;
    display: flex; align-items: center; gap: 10px;
  }
  .chapter .copy .leaf .glyph { font-size: 16px; color: var(--terra); }
  @media (max-width: 900px) {
    .chapter .row { grid-template-columns: 1fr; gap: 56px; }
    .chapter.reverse .row > :first-child { order: 1; }
    .chapter.reverse .row > :last-child { order: 2; }
    .chapter .pair .gnome { width: 140px; }
    .chapter .pair::before { width: 100%; height: auto; aspect-ratio: 1; }
  }

  /* ─── features (card-set / cabinet of curiosities) ─── */
  .cabinet { padding: 104px 0; }
  .cabinet .head { text-align: center; margin-bottom: 56px; }
  .cabinet h2 { max-width: 22ch; margin: 16px auto 0; }
  .cabinet .sub { color: var(--muted); margin-top: 16px; font-size: 19px; max-width: 56ch; margin-left: auto; margin-right: auto; }
  .cabinet .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
  }
  .card {
    background: var(--paper-3);
    border: 1px solid var(--rule);
    border-radius: 22px;
    padding: 24px;
    position: relative;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .card .nbr {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .card h3 {
    margin-top: 10px;
    font-size: 22px; line-height: 1.15;
  }
  .card p {
    font-size: 14px;
    color: var(--ink-2);
    margin: 6px 0 0;
    max-width: 32ch;
    line-height: 1.5;
  }
  .card .visual { margin-top: auto; }

  .c-seq { grid-column: span 4; grid-row: span 2; background: var(--paper-3); }
  .c-seq h3 { font-size: 32px; max-width: 18ch; }
  .c-seq .seqviz {
    margin-top: auto;
    display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 12px;
  }
  .c-seq .seg {
    border-radius: 14px;
    padding: 14px 12px;
    color: var(--paper-3);
    display: flex; flex-direction: column; gap: 4px;
  }
  .c-seq .seg .bpm { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
  .c-seq .seg .dur { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; opacity: 0.86; }
  .c-seq .s1 { background: #2563eb; }
  .c-seq .s2 { background: var(--terra); }
  .c-seq .s3 { background: var(--forest); }

  .c-count { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--paper-3); }
  .c-count h3 { color: var(--paper-3); }
  .c-count .nbr { color: rgba(255,255,255,0.5); }
  .c-count p { color: rgba(255,255,255,0.7); }
  .c-count .visual {
    display: flex; align-items: center; gap: 10px;
  }
  .c-count .dots { display: flex; gap: 8px; }
  .c-count .dots span {
    width: 12px; height: 12px; border-radius: 999px;
    background: rgba(255,255,255,0.18);
  }
  .c-count .dots span:last-child {
    background: var(--terra);
    box-shadow: 0 0 14px rgba(201,99,63,0.7);
  }
  .c-count .label { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; }

  .c-tap { grid-column: span 2; background: var(--paper-2); }
  .c-tap .visual {
    align-self: flex-start;
    background: var(--paper-3);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: ui-monospace, monospace;
    font-size: 12px; letter-spacing: 0.1em;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .c-tap .visual .ping { width: 8px; height: 8px; border-radius: 999px; background: var(--terra); }

  .c-sound { grid-column: span 2; background: var(--paper-3); }
  .c-sound .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .c-sound .chips span {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 4px 10px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
  }

  .c-theme { grid-column: span 2; padding: 0; overflow: hidden; }
  .c-theme .split { display: flex; height: 100%; }
  .c-theme .light, .c-theme .dark-half { flex: 1; padding: 24px; display: flex; flex-direction: column; }
  .c-theme .light { background: var(--paper-2); }
  .c-theme .dark-half { background: #0e0d0a; color: var(--paper-3); }
  .c-theme h3 { font-size: 22px; }
  .c-theme .light .nbr, .c-theme .light h3 { color: var(--ink); }
  .c-theme .dark-half h3 { color: var(--paper-3); }
  .c-theme .dark-half .nbr { color: rgba(255,255,255,0.45); }

  .c-priv { grid-column: span 4; background: var(--moss); color: var(--paper-3); }
  .c-priv h3 { color: var(--paper-3); font-size: 32px; max-width: 14ch; }
  .c-priv .nbr { color: rgba(255,255,255,0.55); }
  .c-priv p { color: rgba(255,255,255,0.82); font-size: 15px; max-width: 36ch; }

  @media (max-width: 900px) {
    .cabinet .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .card { min-height: 200px; }
    .c-seq, .c-count, .c-tap, .c-sound, .c-theme, .c-priv { grid-column: span 2; grid-row: auto; }
    .c-theme .split { min-height: 220px; }
  }

  /* ─── meet the company ──────────────────────────── */
  .company {
    padding: 104px 0;
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .company h2 { text-align: center; max-width: 22ch; margin: 0 auto 8px; }
  .company .sub { text-align: center; color: var(--muted); margin: 0 auto 56px; max-width: 56ch; font-size: 18px; }
  .company .row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  }
  .company .member {
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }
  .company .member .frame {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--paper-3);
    border: 1px solid var(--rule);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
    transition: transform .3s ease;
  }
  .company .member:hover .frame { transform: translateY(-4px) rotate(-1deg); }
  /* Contain each gnome within its square frame: scale by the limiting dimension so
     tall poses don't clip (hats/feet) and none get stretched. A little margin all
     round reads as the gnome standing inside the frame. */
  .company .member img { width: auto; height: auto; max-width: 84%; max-height: 84%; }
  .company .member .name {
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 19px; font-style: italic;
    color: var(--ink);
    margin-bottom: 2px;
  }
  .company .member .role {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
  }
  @media (max-width: 720px) {
    .company .row { grid-template-columns: 1fr 1fr; gap: 20px; }
  }

  /* ─── gallery filmstrip ─────────────────────────── */
  .gallery { padding: 104px 0; }
  .gallery .head { display: flex; justify-content: space-between; align-items: end; padding: 0 32px; margin-bottom: 48px; max-width: 1280px; margin-left: auto; margin-right: auto; flex-wrap: wrap; gap: 20px; }
  .gallery h2 { max-width: 16ch; }
  .gallery .head .meta { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); padding: 8px 14px; border-radius: 999px; }
  .gallery .rail {
    display: flex; gap: 24px; padding: 12px 60px 28px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery .rail::-webkit-scrollbar { height: 8px; }
  .gallery .rail::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
  .gallery .item { flex: 0 0 240px; scroll-snap-align: center; text-align: center; }
  .gallery .item .phone { margin-bottom: 14px; }
  .gallery .item .cap {
    font-family: ui-serif, "New York", Georgia, serif;
    font-style: italic; font-size: 15px; color: var(--ink-2);
  }
  .gallery .item .num {
    font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.22em;
    color: var(--muted); margin-top: 2px;
  }

  /* ─── privacy promise (scroll) ──────────────────── */
  .promise {
    padding: 120px 0;
    background:
      radial-gradient(ellipse at center, var(--paper-3) 0%, transparent 60%),
      var(--paper);
  }
  .promise .card-big {
    max-width: 920px; margin: 0 auto;
    background: var(--paper-3);
    border: 1px solid var(--rule);
    border-radius: 28px;
    padding: 64px 56px;
    position: relative;
  }
  .promise .card-big::before, .promise .card-big::after {
    content: ""; position: absolute;
    left: 28px; right: 28px; height: 1px;
    background-image: radial-gradient(circle, rgba(42,33,24,0.3) 1px, transparent 1.4px);
    background-size: 8px 8px;
  }
  .promise .card-big::before { top: 14px; }
  .promise .card-big::after { bottom: 14px; }
  .promise .head { text-align: center; margin-bottom: 32px; }
  .promise h2 { max-width: 20ch; margin: 16px auto 0; }
  .promise h2 .accent {
    background: linear-gradient(180deg, transparent 60%, rgba(116,138,85,0.4) 60%);
    padding: 0 6px;
  }
  .promise .body { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 auto; text-align: center; }
  .promise .row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: 40px;
  }
  .promise .pledge {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
  }
  .promise .pledge .v {
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 36px; color: var(--forest-deep); font-style: italic;
  }
  .promise .pledge .k {
    margin-top: 2px;
    font-family: ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
  }
  @media (max-width: 720px) {
    .promise .card-big { padding: 40px 24px; }
    .promise .row { grid-template-columns: 1fr 1fr; }
  }

  /* ─── support / letter ──────────────────────────── */
  .support {
    padding: 96px 0;
    text-align: center;
  }
  .support h2 { max-width: 18ch; margin: 16px auto 18px; }
  .support p { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 0 auto 26px; }
  .support .email {
    display: inline-block;
    background: var(--ink); color: var(--paper-3);
    padding: 14px 24px; border-radius: 999px;
    text-decoration: none; font-weight: 500; font-size: 16px;
    letter-spacing: 0.005em;
  }
  .support .tip { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 56ch; margin-left: auto; margin-right: auto; }

  /* ─── footer ────────────────────────────────────── */
  footer.foot {
    background: var(--ink);
    color: var(--paper-2);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
  }
  footer.foot .wide { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  footer.foot .l { display: flex; align-items: center; gap: 14px; }
  footer.foot .l .badge {
    width: 44px; height: 44px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    flex-shrink: 0;
  }
  footer.foot .l .badge img {
    width: 100%; height: 100%; display: block; object-fit: cover;
  }
  footer.foot .l .name {
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 24px;
  }
  footer.foot .l .sig {
    font-family: ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
  }
  footer.foot .r {
    text-align: right;
    font-size: 13px; color: rgba(255,255,255,0.6);
  }
  footer.foot .r a { color: var(--paper-2); text-decoration: none; margin: 0 8px; }
  footer.foot .r a:hover { color: #fff; }
  footer.foot .r .privacy-choice {
    appearance: none;
    border: 0;
    background: none;
    color: var(--paper-2);
    margin: 0 8px;
    padding: 0;
    font: inherit;
    cursor: pointer;
  }
  footer.foot .r a:hover,
  footer.foot .r .privacy-choice:hover { color: #fff; text-decoration: underline; }
  footer.foot .gnome-corner {
    position: absolute; right: -30px; bottom: -40px;
    width: 200px; opacity: 0.22; transform: rotate(8deg);
    pointer-events: none;
  }
  @media (max-width: 720px) {
    footer.foot .wide { grid-template-columns: 1fr; }
    footer.foot .r { text-align: left; }
    footer.foot .gnome-corner { width: 130px; right: 0; bottom: -30px; transform: none; }
  }

  @media (max-width: 720px) {
    section { padding: 72px 0; }
    .wide { padding: 0 20px; }
  }

/* ─── accessibility and shared links ───────────────── */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper-3);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}
.topnav .brand { color: var(--ink); text-decoration: none; }

/* ─── homepage practice notes ──────────────────────── */
.practice-notes-home {
  padding: 104px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.practice-notes-home .head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 42px;
}
.practice-notes-home h2 { margin-top: 14px; }
.practice-notes-home .intro {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 50ch;
}
.note-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -28px rgba(42,33,24,0.45);
}
.note-card:focus-visible { border-radius: 24px; }
.note-card .visual {
  min-height: 280px;
  background: var(--forest-deep);
  display: grid;
  place-items: center;
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.note-card .visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(246,239,223,0.08);
}
.note-card .visual img {
  position: relative;
  width: 128px;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.22));
}
.note-card .copy {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.note-card .label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-deep);
  font-weight: 600;
}
.note-card h3 {
  font-size: clamp(28px, 3vw, 42px);
  margin-top: 12px;
  max-width: 18ch;
}
.note-card p {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 44ch;
  margin: 14px 0 22px;
}
.note-card .read {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-deep);
  font-weight: 700;
}
@media (max-width: 760px) {
  .practice-notes-home .head,
  .note-card { grid-template-columns: 1fr; }
  .practice-notes-home .head { gap: 20px; }
  .note-card .visual { min-height: 220px; }
  .note-card .copy { padding: 32px 26px 36px; }
}

/* ─── practice note page ───────────────────────────── */
.note-page .topnav { position: relative; }
.note-hero {
  padding: 86px 0 72px;
  position: relative;
  overflow: hidden;
}
.note-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,99,63,0.12), transparent 68%);
  pointer-events: none;
}
.note-hero .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.note-hero h1 {
  max-width: 11ch;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  margin-top: 18px;
}
.note-hero .dek {
  max-width: 42ch;
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.42;
  color: var(--ink-2);
  margin: 28px 0 0;
}
.note-hero .back {
  display: inline-block;
  margin-top: 34px;
  color: var(--forest-deep);
  text-underline-offset: 4px;
  font-size: 14px;
}
.practice-artifact {
  max-width: 1080px;
  margin: 0 auto 84px;
  padding: 0 32px;
}
.practice-artifact .frame {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 66px;
  background: var(--forest-deep);
  border-radius: 30px;
  padding: 58px 64px;
  color: var(--paper-3);
  overflow: hidden;
  position: relative;
}
.practice-artifact .frame::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  right: -160px;
  bottom: -240px;
}
.practice-artifact .phone {
  max-width: 254px;
  margin: 0 auto;
  z-index: 1;
}
.practice-artifact .copy { position: relative; z-index: 1; }
.practice-artifact .kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.practice-artifact h2 {
  color: var(--paper-3);
  font-size: clamp(34px, 4vw, 54px);
  margin-top: 14px;
  max-width: 12ch;
}
.practice-artifact p {
  font-size: 17px;
  color: rgba(255,255,255,0.76);
  max-width: 40ch;
  margin: 18px 0 0;
}
.practice-artifact figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.note-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 110px;
}
.note-article h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 70px 0 20px;
  max-width: 16ch;
}
.note-article h2:first-child { margin-top: 0; }
.note-article h3 {
  font-size: 25px;
  margin: 34px 0 10px;
}
.note-article p,
.note-article li {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.72;
}
.note-article p { margin: 0 0 20px; }
.note-article a {
  color: var(--forest-deep);
  text-underline-offset: 4px;
}
.note-article ol,
.note-article ul {
  padding-left: 1.35em;
  margin: 22px 0 28px;
}
.note-article li { padding-left: 8px; margin-bottom: 12px; }
.tempo-map {
  margin: 32px 0;
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-3);
}
.tempo-map .head {
  padding: 17px 22px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.tempo-map dl { margin: 0; }
.tempo-map .row {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.3fr;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.tempo-map .row:last-child { border-bottom: 0; }
.tempo-map dt {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 18px;
}
.tempo-map dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.tempo-map .bpm {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--terra-deep);
  font-weight: 700;
}
.field-note {
  margin: 34px 0;
  padding: 26px 28px;
  background: var(--paper-2);
  border-left: 4px solid var(--terra);
  border-radius: 0 16px 16px 0;
}
.field-note strong {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin-bottom: 8px;
}
.field-note p { margin: 0; font-size: 16px; }
.rounds {
  counter-reset: practice-round;
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 12px;
}
.rounds li {
  counter-increment: practice-round;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0;
}
.rounds li::before {
  content: counter(practice-round, decimal-leading-zero);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--terra-deep);
  padding-top: 4px;
}
.note-cta {
  margin-top: 76px;
  background: var(--ink);
  color: var(--paper-3);
  border-radius: 24px;
  padding: 42px;
  position: relative;
  overflow: hidden;
}
.note-cta h2 {
  color: var(--paper-3);
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
}
.note-cta p { color: rgba(255,255,255,0.72); margin: 14px 0 24px; }
.note-cta p a,
.note-cta p a:visited {
  color: var(--paper-3);
  text-decoration-color: rgba(250,244,230,0.55);
}
.note-cta p a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
.note-cta .button {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.note-cta .button:hover { background: var(--terra-deep); }
.note-page footer.foot .r { line-height: 2; }

/* ─── website privacy and analytics choice ─────────── */
.website-privacy {
  margin: 42px auto 0;
  max-width: 760px;
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  text-align: left;
}
.website-privacy h3 {
  font-size: 28px;
  color: var(--forest-deep);
}
.website-privacy p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0 0;
}
.website-privacy .privacy-choice {
  appearance: none;
  margin-top: 20px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest-deep);
  padding: 10px 15px;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  cursor: pointer;
}
.website-privacy .privacy-choice:hover {
  background: var(--forest);
  color: var(--paper-3);
}
.consent-panel {
  position: fixed;
  z-index: 200;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: var(--ink);
  color: var(--paper-3);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.3);
}
.consent-panel[hidden] { display: none; }
.consent-panel h2 {
  color: var(--paper-3);
  font-size: 25px;
  letter-spacing: -0.01em;
}
.consent-panel p {
  margin: 10px 0 0;
  max-width: 66ch;
  color: rgba(255,255,255,0.74);
  font-size: 14px;
  line-height: 1.55;
}
.consent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.consent-actions button,
.consent-actions a {
  appearance: none;
  border-radius: 999px;
  padding: 10px 15px;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  cursor: pointer;
}
.consent-actions button {
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  color: var(--paper-3);
}
.consent-actions .allow {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
}
.consent-actions button:hover { border-color: rgba(255,255,255,0.6); }
.consent-actions .allow:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.consent-actions a {
  color: rgba(255,255,255,0.72);
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .note-hero { padding: 64px 0 54px; }
  .note-hero .inner,
  .practice-artifact,
  .note-article { padding-left: 20px; padding-right: 20px; }
  .practice-artifact { margin-bottom: 62px; }
  .practice-artifact .frame {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 38px 24px;
  }
  .practice-artifact .phone { max-width: 210px; }
  .tempo-map .row {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }
  .tempo-map .row dd:last-child { grid-column: 1 / -1; }
  .note-cta { padding: 32px 26px; }
  .website-privacy { padding: 26px 22px; }
  .consent-panel { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
