/*
  Styles for the HERO MINUTES "Other Projects" pages (Other Projects, Turtle GIF Keyboard, Desk Turtle).
  Every rule is scoped to body.hm-projects and every class starts with hm-, so these styles cannot touch
  the main herominutes.com site. Edit this file; `sync-css.sh` copies it into each page's assets folder.
*/

body.hm-projects {
  /* The space iOS reserves at the top (status bar / Dynamic Island) when the page extends under it, which `viewport-fit=cover`
     asks for. 0 on desktop and wherever the page already starts below the status bar. */
  --hm-sat: env(safe-area-inset-top, 0px);
  --hm-sal: env(safe-area-inset-left, 0px);
  --hm-sar: env(safe-area-inset-right, 0px);
  --hm-sab: env(safe-area-inset-bottom, 0px);
  --hm-bg: #000;
  --hm-surface: #0b0b0d;
  --hm-card: #131316;
  --hm-line: rgba(255, 255, 255, 0.12);
  --hm-line-strong: rgba(255, 255, 255, 0.24);
  --hm-text: #fff;
  --hm-muted: rgba(235, 235, 245, 0.62);
  --hm-lime: #ceff00;
  --hm-red: #ff453a;
  --hm-orange: #ff9f0a;
  --hm-teal: #2dd4bf;
  --hm-blue: #4d7cff;
  --hm-purple: #a259ff;
  --hm-radius: 22px;
  --hm-max: 1120px;

  margin: 0;
  background: var(--hm-bg);
  color: var(--hm-text);
  font: 400 17px/1.55 -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hm-projects *, body.hm-projects *::before, body.hm-projects *::after { box-sizing: border-box; }
body.hm-projects img { max-width: 100%; height: auto; display: block; }
:where(body.hm-projects) a { color: inherit; }
body.hm-projects :focus-visible { outline: 3px solid var(--hm-lime); outline-offset: 3px; border-radius: 8px; }

.hm-skip { position: absolute; left: -9999px; top: 8px; background: var(--hm-lime); color: #000; padding: 10px 16px; border-radius: 100px; font-weight: 800; z-index: 100; }
.hm-skip:focus { left: 16px; }

.hm-wrap { width: 100%; max-width: var(--hm-max); margin: 0 auto; padding-inline: max(20px, var(--hm-sal)) max(20px, var(--hm-sar)); }

/* ---------- Header: a floating iOS 26 glass capsule ---------- */
.hm-header { position: sticky; top: 0; z-index: 50; padding: calc(10px + var(--hm-sat)) max(12px, var(--hm-sar)) 0 max(12px, var(--hm-sal)); background: none; border: 0; pointer-events: none; }
/* Behind the clock: a soft fade, so scrolling text never collides with the status bar. Zero height wherever there is no inset. */
body.hm-projects::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--hm-sat); z-index: 49; pointer-events: none; background: linear-gradient(180deg, var(--hm-bg) 55%, transparent); }
.hm-header .hm-wrap { pointer-events: auto; max-width: var(--hm-max); min-height: 58px; padding: 0 10px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.1)), rgba(30, 32, 36, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(1.1); backdrop-filter: blur(22px) saturate(1.8) brightness(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 1px rgba(255, 255, 255, 0.08), 0 10px 34px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.5); }
.hm-logo { font-weight: 800; letter-spacing: 0.16em; font-size: 13px; text-decoration: none; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.1em; padding: 8px 4px; border-radius: 100px; }
.hm-logo .hm-bolt { fill: var(--hm-lime); width: 1em; height: 1em; vertical-align: baseline; }
.hm-bolt { width: 0.78em; height: 0.78em; fill: currentColor; vertical-align: -0.06em; margin-inline: 0.04em; flex: none; }
.hm-wm { font-weight: 800; white-space: nowrap; }
.hm-nav { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.hm-nav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 100px; color: var(--hm-muted); transition: color .2s, background .2s; }
.hm-nav a:hover, .hm-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.hm-nav .hm-pill { background: var(--hm-lime); color: #000; font-weight: 800; font-size: 12px; letter-spacing: 0.02em; }
.hm-nav .hm-pill:hover { background: #dcff4d; color: #000; }

/* ---------- Type ---------- */
.hm-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hm-lime); margin: 0 0 14px; }
.hm-h1 { font-size: clamp(42px, 8.2vw, 92px); line-height: 0.98; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 22px; text-wrap: balance; }
.hm-h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 16px; text-wrap: balance; }
.hm-h3 { font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.hm-lede { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; color: var(--hm-muted); max-width: 40em; margin: 0 0 28px; text-wrap: pretty; }
.hm-lime { color: var(--hm-lime); }
.hm-muted { color: var(--hm-muted); }
.hm-small { font-size: 14px; color: var(--hm-muted); }
.hm-section { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hm-line); }
.hm-section-head { max-width: 46em; margin-bottom: 44px; }
.hm-section-head p { color: var(--hm-muted); font-size: 19px; margin: 0; text-wrap: pretty; }
.hm-section-head p.hm-eyebrow { color: var(--hm-lime); font-size: 14px; margin: 0 0 14px; }

/* ---------- Buttons and badges ---------- */
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 100px; font-weight: 800; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .2s; }
.hm-btn:active { transform: scale(0.97); }
.hm-btn-primary { background: var(--hm-lime); color: #000; }
.hm-btn-primary:hover { background: #dcff4d; }
.hm-btn-ghost { border-color: var(--hm-line-strong); color: #fff; background: rgba(255, 255, 255, 0.04); }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.hm-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--hm-line-strong); color: var(--hm-muted); background: rgba(255, 255, 255, 0.04); }
.hm-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-lime); box-shadow: 0 0 12px var(--hm-lime); }
.hm-badge-soon i { background: var(--hm-orange); box-shadow: 0 0 12px var(--hm-orange); }
.hm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }

/* ---------- Hero ---------- */
.hm-hero { padding-block: clamp(40px, 7vw, 90px) clamp(48px, 8vw, 100px); position: relative; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; background: radial-gradient(closest-side, rgba(206, 255, 0, 0.1), transparent 70%); pointer-events: none; }
.hm-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; }
.hm-appmark { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.hm-icon { width: 84px; height: 84px; border-radius: 22%; position: relative; flex: none; }
.hm-icon img { width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 10px 40px rgba(45, 212, 191, 0.25); }
.hm-appmark strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.hm-appmark span { color: var(--hm-muted); font-size: 15px; }

/* ---------- Phone-bottom screenshot frames ---------- */
.hm-shot { margin: 0; }
.hm-shot-frame { border-radius: 5% / 5.8%; overflow: hidden; background: #121214; border: 1px solid var(--hm-line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.hm-shot-frame img { width: 100%; }
.hm-shot figcaption { margin-top: 14px; font-size: 14px; color: var(--hm-muted); }
.hm-shot figcaption strong { color: #fff; }
.hm-stack { display: grid; gap: 18px; }
.hm-stack .hm-shot:nth-child(2) { margin-left: clamp(0px, 5vw, 56px); }

/* ---------- Steps ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.hm-steps-3 { grid-template-columns: repeat(3, 1fr); }  /* the responsive rules below (same weight, later) take it to 2 columns, then 1 */
.hm-step { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; counter-increment: step; }
.hm-step::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--hm-lime); color: #000; font-weight: 800; display: grid; place-items: center; }
.hm-step p { margin: 0; color: var(--hm-muted); font-size: 15.5px; }
.hm-step .hm-shot-frame { margin-top: auto; }
.hm-paste { margin-top: auto; border: 1px dashed var(--hm-line-strong); border-radius: 16px; padding: 18px; font-size: 14.5px; color: var(--hm-muted); background: rgba(255, 255, 255, 0.03); }
.hm-paste b { color: #fff; }

/* ---------- Examples ---------- */
.hm-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-example { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.hm-bubble { align-self: flex-start; background: #0a84ff; color: #fff; padding: 10px 16px; border-radius: 20px 20px 20px 6px; font-size: 17px; font-weight: 500; max-width: 90%; }
.hm-query { font-size: 14px; color: var(--hm-muted); margin: 0; }
.hm-query b { color: var(--hm-lime); font-weight: 700; }
.hm-more { margin-top: 40px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); overflow: hidden; background: var(--hm-surface); }
.hm-more table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hm-more th, .hm-more td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--hm-line); vertical-align: top; }
.hm-more tr:last-child td { border-bottom: 0; }
.hm-more th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-muted); font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.hm-more td:first-child { font-weight: 600; }
.hm-more td:last-child { color: var(--hm-lime); font-weight: 600; }
.hm-more caption { text-align: left; padding: 16px 20px; color: var(--hm-muted); font-size: 14px; caption-side: bottom; border-top: 1px solid var(--hm-line); }

/* ---------- Privacy flow ---------- */
.hm-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 18px; }
.hm-node { background: var(--hm-card); border: 1px solid var(--hm-line-strong); border-radius: 18px; padding: 20px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.hm-node strong { font-size: 16px; letter-spacing: -0.01em; }
.hm-node span { font-size: 13.5px; color: var(--hm-muted); }
.hm-node.hm-private { border-color: rgba(206, 255, 0, 0.5); box-shadow: 0 0 0 1px rgba(206, 255, 0, 0.12) inset, 0 0 40px rgba(206, 255, 0, 0.07); }
.hm-arrow { align-self: center; color: var(--hm-muted); font-size: 22px; }
.hm-zone { display: grid; grid-template-columns: 3fr 4fr; gap: 10px; margin-bottom: 44px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hm-zone div { padding: 8px 12px; border-radius: 100px; text-align: center; }
.hm-zone .hm-in { background: rgba(206, 255, 0, 0.12); color: var(--hm-lime); border: 1px solid rgba(206, 255, 0, 0.4); }
.hm-zone .hm-out { background: rgba(255, 159, 10, 0.1); color: var(--hm-orange); border: 1px solid rgba(255, 159, 10, 0.4); }

.hm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-cards-2 { grid-template-columns: repeat(2, 1fr); }
.hm-card { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 24px; }
.hm-card p { margin: 0; color: var(--hm-muted); font-size: 16px; }
.hm-card .hm-ico { font-size: 26px; margin-bottom: 12px; display: block; }

.hm-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.hm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hm-list li { padding-left: 28px; position: relative; font-size: 16px; color: var(--hm-muted); }
.hm-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; }
.hm-list.hm-yes li::before { background: var(--hm-lime); }
.hm-list.hm-no li::before { background: transparent; border: 2px solid var(--hm-red); }
.hm-list li b { color: #fff; }

/* ---------- FAQ ---------- */
.hm-faq { display: grid; gap: 10px; max-width: 52em; }
.hm-faq details { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 16px; padding: 0 22px; }
.hm-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; color: var(--hm-lime); font-size: 22px; line-height: 1; }
.hm-faq details[open] summary::after { content: "–"; }
.hm-faq details p { margin: 0 0 18px; color: var(--hm-muted); }

/* ---------- Other projects ---------- */
.hm-projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hm-project { display: flex; flex-direction: column; gap: 16px; text-decoration: none; background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 28px; padding: 28px; transition: border-color .2s, transform .2s, background .2s; position: relative; }
.hm-project:hover { border-color: rgba(206, 255, 0, 0.55); background: #17171b; transform: translateY(-3px); }
.hm-project-top { display: flex; align-items: center; gap: 18px; }
.hm-project .hm-icon { width: 72px; height: 72px; }
.hm-project h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.hm-project p { margin: 0; color: var(--hm-muted); }
.hm-project .hm-go { margin-top: auto; font-weight: 800; color: var(--hm-lime); display: inline-flex; gap: 8px; align-items: center; }
.hm-project .hm-go span { transition: transform .2s; }
.hm-project:hover .hm-go span { transform: translateX(5px); }
.hm-icon-tile { background: #0d1017; border: 1px solid var(--hm-line-strong); border-radius: 22%; display: grid; place-items: center; }
.hm-icon-tile img { width: 84%; height: 84%; box-shadow: none; border-radius: 0; object-fit: contain; }
.hm-glyph { width: 100%; height: 100%; border-radius: 22%; background: linear-gradient(145deg, #1d2a14, #0c1206); border: 1px solid rgba(206, 255, 0, 0.35); display: grid; place-items: center; }
.hm-glyph svg { width: 62%; height: 62%; }

/* ---------- Policy (privacy page) ---------- */
.hm-policy { max-width: 46em; }
.hm-policy h2 { font-size: 26px; letter-spacing: -0.025em; margin: 44px 0 12px; line-height: 1.15; }
.hm-policy p, .hm-policy li { color: var(--hm-muted); font-size: 17px; }
.hm-policy ul { padding-left: 22px; display: grid; gap: 8px; }
.hm-policy strong, .hm-policy b { color: #fff; }
.hm-summary { background: var(--hm-card); border: 1px solid rgba(206, 255, 0, 0.35); border-radius: var(--hm-radius); padding: 24px 26px; margin: 24px 0 8px; }
.hm-summary p { margin: 0 0 10px; color: #fff; }
.hm-summary p:last-child { margin: 0; }

/* ---------- Liquid Glass pill and the join screen ---------- */
.hm-header-right { display: flex; align-items: center; gap: 8px; }
.hm-glass { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px 9px 12px; border-radius: 100px; color: #fff; font: 700 14px/1 -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.07) 55%, rgba(255, 255, 255, 0.15));
  -webkit-backdrop-filter: blur(18px) saturate(1.7) brightness(1.12); backdrop-filter: blur(18px) saturate(1.7) brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.12), 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); transition: transform .25s cubic-bezier(.32, .72, 0, 1), background .2s, box-shadow .2s; }
.hm-glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1) 55%, rgba(255, 255, 255, 0.2)); }
.hm-glass:active { transform: scale(0.95); }
.hm-glass svg { width: 20px; height: 20px; flex: none; stroke: var(--hm-lime); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-glass-lg { padding: 14px 24px 14px 18px; font-size: 16px; }
.hm-glass-lg svg { width: 22px; height: 22px; }

.hm-join { border: 0; padding: 0; background: transparent; color: #fff; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; margin: auto; }
.hm-join::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hm-join[open] { animation: hm-sheet .42s cubic-bezier(.32, .72, 0, 1); }
.hm-join[open]::backdrop { animation: hm-fade .3s ease; }
@keyframes hm-sheet { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
.hm-join-panel { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 30px 26px 26px; border-radius: 34px; text-align: center;
  background: linear-gradient(180deg, rgba(66, 70, 80, 0.8), rgba(26, 28, 34, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(34px) saturate(1.5); backdrop-filter: blur(34px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 40px 100px rgba(0, 0, 0, 0.75); }
.hm-join-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border-radius: 50%; color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.12); }
.hm-join-close:hover { background: rgba(255, 255, 255, 0.22); }
.hm-join-title { font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.hm-join-sub { margin: 0 0 18px; color: var(--hm-muted); font-size: 16px; }
.hm-qr { background: #fff; border-radius: 24px; padding: 10px; width: 236px; margin: 0 auto 10px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55); }
.hm-qr img { width: 100%; height: auto; border-radius: 14px; }
.hm-qr-note { margin: 0 0 20px; font-size: 14px; color: var(--hm-muted); }
.hm-block { display: flex; justify-content: center; width: 100%; }
.hm-join-steps { text-align: left; margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: j; }
.hm-join-steps li { counter-increment: j; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--hm-muted); }
.hm-join-steps li::before { content: counter(j); width: 28px; height: 28px; border-radius: 50%; background: rgba(206, 255, 0, 0.16); color: var(--hm-lime); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.hm-join-steps b { color: #fff; }
.hm-join-fine { margin: 18px 0 0; font-size: 13px; color: var(--hm-muted); }
/* A phone cannot scan its own screen, so touch devices get the button and the steps only. */
@media (hover: none) and (pointer: coarse) { .hm-qr, .hm-qr-note { display: none; } .hm-join-sub { margin-bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .hm-join[open], .hm-join[open]::backdrop { animation: none; } .hm-glass { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .hm-glass, .hm-join-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: #23262c; } }

/* ---------- Phone menu: a glass button and sheet, in place of the inline links ---------- */
.hm-menu { display: none; position: relative; flex: none; }
.hm-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hm-menu summary::-webkit-details-marker { display: none; }
.hm-menu summary:active { transform: scale(.92); }
.hm-bars { position: relative; width: 18px; height: 14px; display: block; }
.hm-bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s cubic-bezier(.32, .72, 0, 1), opacity .2s; }
.hm-bars i:nth-child(1) { top: 0; } .hm-bars i:nth-child(2) { top: 6px; } .hm-bars i:nth-child(3) { top: 12px; }
.hm-menu[open] .hm-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hm-menu[open] .hm-bars i:nth-child(2) { opacity: 0; }
.hm-menu[open] .hm-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hm-sheet { position: absolute; top: calc(100% + 18px); right: -2px; width: min(300px, calc(100vw - 48px)); padding: 8px; border-radius: 28px; display: grid; gap: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), rgba(22, 24, 28, 0.96); border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 24px 60px rgba(0, 0, 0, 0.65); animation: hm-menu-in .35s cubic-bezier(.32, .72, 0, 1); }
@keyframes hm-menu-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.hm-sheet a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 20px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; }
.hm-sheet a:hover { background: rgba(255, 255, 255, 0.12); }
.hm-sheet a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
.hm-sheet .hm-sheet-join { display: none; justify-content: center; background: var(--hm-lime); color: #000; font-weight: 800; border-radius: 100px; margin-bottom: 4px; }
.hm-sheet .hm-sheet-join:hover { background: #dcff4d; }
.hm-sheet .hm-sheet-back { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0 0 20px 20px; justify-content: center; gap: 8px; color: var(--hm-lime); font-weight: 800; letter-spacing: 0.02em; }
.hm-sheet .hm-bolt { fill: var(--hm-lime); }
@media (max-width: 700px) { .hm-nav { display: none; } .hm-menu { display: block; } }
/* The header pill, the wordmark and the menu button together need about 391pt; an iPhone has 378pt inside the capsule (402pt wide), so on every phone width the pill lives in the menu. */
@media (max-width: 480px) { .hm-header-right .hm-glass { display: none; } .hm-sheet .hm-sheet-join { display: flex; } .hm-header .hm-wrap { padding-left: 18px; } }
@media (prefers-reduced-motion: reduce) { .hm-sheet { animation: none; } .hm-bars i, .hm-menu summary { transition: none; } }
@media (prefers-contrast: more) { .hm-header .hm-wrap, .hm-sheet { background: #17191c; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(255, 255, 255, 0.7); } }
@media (prefers-reduced-transparency: reduce) { .hm-header .hm-wrap, .hm-sheet { background: #17191c; -webkit-backdrop-filter: none; backdrop-filter: none; } }
section[id] { scroll-margin-top: calc(86px + var(--hm-sat)); }

/* ---------- Footer ---------- */
.hm-footer { border-top: 1px solid var(--hm-line); padding-block: 40px calc(56px + var(--hm-sab)); color: var(--hm-muted); font-size: 14.5px; }
.hm-footer .hm-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 36px; }
.hm-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hm-footer a { text-decoration: none; }
.hm-footer a:hover { color: #fff; text-decoration: underline; }
.hm-footer p { margin: 0; max-width: 40em; }

/* ---------- Rainbow ring (the turtle's busy ring) ---------- */
@property --hm-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hm-ring::after { content: ""; position: absolute; inset: -5px; border-radius: 26%; padding: 3px; background: conic-gradient(from var(--hm-angle), #e5484d, #f5a623, #46a758, #2e6bff, #8e4ec6, #e5484d); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hm-spin 6s linear infinite; pointer-events: none; }
@keyframes hm-spin { to { --hm-angle: 360deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-steps { grid-template-columns: repeat(2, 1fr); }
  .hm-examples { grid-template-columns: 1fr 1fr; }
  .hm-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .hm-steps, .hm-examples, .hm-cards, .hm-cards-2, .hm-twocol, .hm-projects-grid { grid-template-columns: 1fr; }
  .hm-flow { grid-template-columns: 1fr; }
  .hm-arrow { transform: rotate(90deg); }
  .hm-zone { grid-template-columns: 1fr; }
  .hm-stack .hm-shot:nth-child(2) { margin-left: 0; }
  .hm-more th, .hm-more td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-ring::after { animation: none; }
  .hm-project, .hm-btn { transition: none; }
}

/* A badge that links somewhere (the "New: Beat Mode" tag in the hero) */
a.hm-badge { text-decoration: none; color: var(--hm-lime); border-color: var(--hm-lime); }
a.hm-badge:hover, a.hm-badge:focus-visible { background: rgba(255, 255, 255, 0.1); }

/* Beat Mode demo: transparent buttons laid over the glowing keys of the two keyboard screenshots */
.hm-playable { position: relative; }
.hm-key { position: absolute; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--rx) / var(--ry);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: backdrop-filter .5s ease-out, -webkit-backdrop-filter .5s ease-out, transform .5s ease-out; }
.hm-key:hover { -webkit-backdrop-filter: saturate(1.3) brightness(1.06); backdrop-filter: saturate(1.3) brightness(1.06); }
/* Pressed: the colour jumps bolder at once, then eases back like the real keys */
.hm-key.on { -webkit-backdrop-filter: saturate(1.9) contrast(1.22) brightness(1.04); backdrop-filter: saturate(1.9) contrast(1.22) brightness(1.04); transform: scale(1.04); transition: none; }
.hm-key:focus-visible { outline: 2px solid var(--hm-lime); outline-offset: 2px; }
.hm-play-hint { text-align: center; margin: 16px 0 0; color: var(--hm-muted); }
@media (prefers-reduced-motion: reduce) { .hm-key, .hm-key.on { transition: none; transform: none; } }
