/* home.css — redesigned home page. All rules scoped under .hm to avoid
   colliding with the shared styles.css that every other page depends on.
   Dark-only, using the site's brand tokens plus semantic status colors. */

.hm {
  --surf: #0E0F11;
  --surf-2: #16181C;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --ink: #F7F8F8;
  --ok: #4FB477; --ok-tint: rgba(79,180,119,.13);
  --warn: #D69A3C; --warn-tint: rgba(214,154,60,.13);
  --idle: #7C8288; --idle-tint: rgba(124,130,136,.13);
  --brand-tint: rgba(99,102,241,.12);
  --hover: rgba(255,255,255,.05);
  --card-shadow: 0 40px 80px -50px rgba(0,0,0,.7); --card-inset: rgba(255,255,255,.05);
  --r: 14px;
}
/* ==== LIGHT THEME — .hm scoped tokens (mirrors the global flip in styles.css) ==== */
@media (prefers-color-scheme: light){:root:not([data-theme]) .hm{
  --surf: #FFFFFF; --surf-2: #F2F3F5;
  --line: rgba(0,0,0,.10); --line-strong: rgba(0,0,0,.16);
  --ink: #0A0B0D;
  --ok: #1A8A4F; --ok-tint: rgba(26,138,79,.12);
  --warn: #9A6400; --warn-tint: rgba(154,100,0,.12);
  --idle: #6B7178; --idle-tint: rgba(107,113,120,.12);
  --brand-tint: rgba(79,70,229,.10);
  --hover: rgba(0,0,0,.05);
  --card-shadow: 0 24px 60px -40px rgba(12,14,20,.22); --card-inset: rgba(255,255,255,.6);
}}
:root[data-theme="light"] .hm{
  --surf: #FFFFFF; --surf-2: #F2F3F5;
  --line: rgba(0,0,0,.10); --line-strong: rgba(0,0,0,.16);
  --ink: #0A0B0D;
  --ok: #1A8A4F; --ok-tint: rgba(26,138,79,.12);
  --warn: #9A6400; --warn-tint: rgba(154,100,0,.12);
  --idle: #6B7178; --idle-tint: rgba(107,113,120,.12);
  --brand-tint: rgba(79,70,229,.10);
  --hover: rgba(0,0,0,.05);
  --card-shadow: 0 24px 60px -40px rgba(12,14,20,.22); --card-inset: rgba(255,255,255,.6);
}
:root[data-theme="dark"] .hm{
  --surf: #0E0F11; --surf-2: #16181C;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --ink: #F7F8F8;
  --ok: #4FB477; --ok-tint: rgba(79,180,119,.13);
  --warn: #D69A3C; --warn-tint: rgba(214,154,60,.13);
  --idle: #7C8288; --idle-tint: rgba(124,130,136,.13);
  --brand-tint: rgba(99,102,241,.12);
  --hover: rgba(255,255,255,.05);
  --card-shadow: 0 40px 80px -50px rgba(0,0,0,.7); --card-inset: rgba(255,255,255,.05);
}
/* Product screenshots are dark PNGs — keep their frame dark on either theme (a dark app
   shown on a light marketing page, Linear/Vercel-style). Non-screenshot surfaces (e.g. the
   coverage table) theme normally. Fixed values so no per-theme duplication is needed. */
.hm .surface:has(.shot){ background: linear-gradient(180deg,#141416,#0E0F11); }
.hm .surface:has(.shot) .surface-bar{ border-bottom-color: rgba(255,255,255,.08); }
.hm .surface:has(.shot) .surface-title{ color: rgba(255,255,255,.5); }
.hm .surface:has(.shot) .surface-title b{ color: rgba(255,255,255,.72); }
.hm .surface:has(.shot) .tl i{ background: rgba(255,255,255,.16); }

.hm h1, .hm h2, .hm h3 { font-weight: 640; letter-spacing: -.028em; text-wrap: balance; margin: 0; }
.hm h1 { font-size: clamp(40px, 6.2vw, 62px); line-height: 1.0; }
.hm h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.hm .lead { color: var(--muted); font-size: clamp(16.5px, 1.6vw, 18.5px); max-width: 52ch; line-height: 1.55; }
.hm .eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin: 0 0 20px; display: block; }
.hm .btn-primary { background: var(--brand); color: #fff; border-color: transparent; }
.hm .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -14px var(--brand); }
.hm .btn-ghost { background: transparent; border-color: var(--line-strong); }

/* ---- subpage hero ---- */
.hm .ph { padding: 72px 0 24px; }
.hm .ph h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 18px; }

/* ---- packs catalog ---- */
.hm .pfilters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 34px; }
.hm .pfilter { font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.hm .pfilter:hover { color: var(--ink); }
.hm .pfilter.on { color: var(--ink); background: var(--surf-2); border-color: var(--line-strong); }
.hm .pfilter .c { color: var(--faint); }
.hm .pcat { display: grid; grid-template-columns: repeat(auto-fill, minmax(345px, 1fr)); gap: 16px; align-items: start; }
.hm .pcard { border: 1px solid var(--line); border-radius: 14px; background: var(--surf); padding: 22px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; scroll-margin-top: 90px; }
.hm .pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.hm .pcard .cat { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.hm .pcard .ptitle { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 11px 0 8px; }
.hm .pcard .ptitle h3 { font-size: 19px; letter-spacing: -.02em; }
.hm .pcard .ver { font-family: var(--mono); font-size: 12px; color: var(--brand); flex: none; }
.hm .pcard p.psum { font-size: 13.5px; color: var(--muted); line-height: 1.52; margin: 0 0 16px; }
.hm .pcard .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hm .pcard .src { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 6px; }
.hm .pcard .src .dotm { width: 5px; height: 5px; border-radius: 50%; background: var(--idle); flex: none; }
.hm .pcard .src.orig .dotm { background: var(--ok); }
.hm .pcard details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; }
.hm .pcard summary { font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.hm .pcard summary::-webkit-details-marker { display: none; }
.hm .pcard summary::before { content: "▸"; color: var(--faint); font-size: 10px; }
.hm .pcard details[open] summary::before { content: "▾"; }
.hm .pcard summary:hover { color: var(--ink); }
.hm .pcard pre { margin: 13px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 13px; overflow: auto; font-family: var(--mono); font-size: 11px; line-height: 1.65; color: var(--faint); max-height: 340px; }
.hm .pcard.hide { display: none; }

/* ---- rebuilt header (flat, no mega menu) ---- */
header.nav.hm-nav .nav-in { display: flex; align-items: center; gap: 26px; height: 62px; }
header.nav.hm-nav .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--text); }
header.nav.hm-nav .bmark { width: 24px; height: 24px; display: block; flex: none; border-radius: 7px; }
header.nav.hm-nav .hm-links { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
header.nav.hm-nav .hm-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
header.nav.hm-nav .hm-links a:hover, header.nav.hm-nav .hm-links a[aria-current="page"] { color: var(--text); background: var(--hover); }
header.nav.hm-nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
header.nav.hm-nav .nav-login { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
header.nav.hm-nav .nav-login:hover { color: var(--text); }
header.nav.hm-nav .btn { height: 36px; font-size: 14px; padding: 0 16px; border-radius: 9px; }
header.nav.hm-nav .btn-primary { background: var(--brand); color: #fff; }
header.nav.hm-nav .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -14px var(--brand); }
@media (max-width: 900px) { header.nav.hm-nav .hm-links, header.nav.hm-nav .nav-login { display: none; } }

/* ---- hero ---- */
.hm .hm-hero { position: relative; overflow: hidden; }
.hm .hm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(130% 92% at 82% -6%, #000 0%, transparent 56%);
  mask-image: radial-gradient(130% 92% at 82% -6%, #000 0%, transparent 56%); opacity: .5; }
.hm .hero-grid { position: relative; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 76px; align-items: stretch; padding: 72px 0 76px; }
/* Bold: let the product screenshot run wider than its column and bleed off the right edge
   (the .hm-hero clips it), and stretch it to the full height of the hero copy so it reads big
   and confident. Reset width + height when stacked. */
.hm .hero-grid .surface { width: 200%; margin-left: 56px; display: flex; flex-direction: column; align-self: start; }
.hm .hero-grid .surface .shot { flex: none; }
.hm .hero-copy { min-width: 0; }
.hm .hero-copy h1 { margin-bottom: 22px; }
.hm .hero-copy .lead { margin-bottom: 30px; }
.hm .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.hm .worksrow { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hm .worksrow .lab { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.hm .worksrow .tool { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px 4px 8px; }
.hm .tico { width: 14px; height: 14px; flex: none; color: var(--muted); }
.hm td .toolcell { display: inline-flex; align-items: center; gap: 7px; }
.hm td .toolcell .tico { width: 13px; height: 13px; }

/* ---- product surface / dashboard ---- */
.hm .surface { position: relative; min-width: 0; background: linear-gradient(180deg, var(--surf), var(--surf-2)); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--card-shadow), 0 1px 0 var(--card-inset) inset; overflow: hidden; }
.hm .surface-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
/* show the top ~88% of the dashboard and cut the rest (aspect = 1400 × 792, i.e. 0.88 of 900) */
.hm .hcard .shot { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 792; object-fit: cover; object-position: top left; }
/* in-section product screenshots (govern etc.) — full image, not the hero's top-crop */
.hm .surface:not(.hcard) .shot { display: block; width: 100%; height: auto; }
.hm .tl { display: flex; gap: 7px; }
.hm .tl i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: block; }
.hm .surface-title { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm .surface-title b { color: var(--muted); font-weight: 500; }
.hm .surface-title .st-b { color: var(--brand); font-weight: 500; }
.hm .tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.hm .tab { font-family: var(--mono); font-size: 12px; color: var(--faint); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: color .15s, background .15s; }
.hm .tab:hover { color: var(--muted); }
.hm .tab.on { color: var(--ink); background: var(--surf-2); border-color: var(--line); }
.hm .tab .cnt { color: var(--faint); }
.hm .metric { display: flex; align-items: flex-end; gap: 15px; padding: 16px 18px 6px; }
.hm .metric .big { font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: .9; color: var(--ok); font-variant-numeric: tabular-nums; }
.hm .metric .cap { padding-bottom: 5px; }
.hm .metric .cap .l1 { font-size: 13px; color: var(--ink); font-weight: 550; }
.hm .metric .cap .l2 { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 2px; }

.hm table.cov { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.hm table.cov th, .hm table.cov td { display: table-cell; text-align: left; padding: 8.5px 16px; border: 0; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm table.cov th { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding-top: 12px; padding-bottom: 10px; }
.hm table.cov td.repo { font-family: var(--mono); color: var(--ink); }
.hm table.cov td.pack { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.hm table.cov td.dim { font-family: var(--mono); color: var(--faint); font-size: 12px; }
.hm table.cov td.ver { font-family: var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.hm tr.cov-row { transition: background .12s; }
.hm tr.cov-row:hover { background: color-mix(in srgb, var(--brand-tint) 45%, transparent); }
.hm .status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.hm .status .d { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.hm .st-ok { color: var(--ok); background: var(--ok-tint); } .hm .st-ok .d { background: var(--ok); }
.hm .st-warn { color: var(--warn); background: var(--warn-tint); } .hm .st-warn .d { background: var(--warn); }
.hm .st-idle { color: var(--idle); background: var(--idle-tint); } .hm .st-idle .d { background: var(--idle); }
.hm .dash-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--faint); gap: 12px; }
.hm .spark { display: block; flex: none; }
.hm .dash-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 8px; gap: 16px; flex-wrap: wrap; }
.hm .dash-head .org { font-weight: 600; letter-spacing: -.01em; }
.hm .dash-head .org span { color: var(--faint); font-weight: 400; font-family: var(--mono); font-size: 12px; margin-left: 8px; }
.hm .stats { display: flex; gap: 22px; }
.hm .stat .n { font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm .stat .n.ok { color: var(--ok); } .hm .stat .n.warn { color: var(--warn); }
.hm .stat .k { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.hm .view { display: none; }
.hm .view.on { display: block; animation: hmviewin .32s ease both; }
@keyframes hmviewin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- sections ---- */
.hm .blk { padding: 92px 0; border-top: 1px solid var(--line); }
.hm .sec-head { max-width: 62ch; margin-bottom: 44px; }
.hm .sec-head p { color: var(--muted); margin: 16px 0 0; }
.hm .insight .big { font-size: clamp(30px, 5vw, 52px); font-weight: 620; letter-spacing: -.032em; line-height: 1.05; max-width: 19ch; text-wrap: balance; }
.hm .insight .big em { font-style: normal; color: var(--faint); }
.hm .insight .sub { color: var(--muted); margin-top: 26px; max-width: 52ch; }

.hm .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surf); }
.hm .step { padding: 26px 22px 28px; border-right: 1px solid var(--line); min-height: 262px; display: flex; flex-direction: column; }
.hm .step:last-child { border-right: none; }
.hm .step .no { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: .1em; }
.hm .step h3 { font-size: 19px; margin: 14px 0 8px; letter-spacing: -.02em; }
.hm .step p { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.hm .step .art { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; line-height: 1.7; overflow-x: auto; }
.hm .step .art .c { color: var(--brand); } .hm .step .art .g { color: var(--ok); }

.hm .packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm .pack { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); padding: 22px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.hm .pack:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.hm .pack .pid { font-family: var(--mono); font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; }
.hm .pack .pid .v { color: var(--brand); }
.hm .pack h3 { font-size: 18px; margin: 14px 0 8px; }
.hm .pack p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; }
.hm .pack .pmeta { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.hm .chip { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

.hm .dev { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.hm .dev .dlist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 2px; }
.hm .dev .dlist li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.hm .dev .dlist li .k { font-family: var(--mono); font-size: 12px; color: var(--brand); min-width: 80px; padding-top: 2px; }
.hm .dev .dlist li .b { font-size: 14.5px; color: var(--muted); }
.hm .dev .dlist li .b b { color: var(--ink); font-weight: 600; }
.hm .dl-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hm .dl-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.hm .term { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.hm .term .tbody { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.85; }
.hm .term .p { color: var(--brand); } .hm .term .cmd { color: var(--ink); } .hm .term .out { color: var(--faint); } .hm .term .g { color: var(--ok); }

.hm .cta-blk { padding: 100px 0; border-top: 1px solid var(--line); }
.hm .cta-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.hm .cta-in h2 { margin-bottom: 16px; }
.hm .cta-in .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- motion ---- */
.hm .hm-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.hm .hm-rv.in { opacity: 1; transform: none; }
.hm.anim .hstag { opacity: 0; transform: translateY(14px); animation: hmrise .8s cubic-bezier(.22,.61,.36,1) forwards; }
.hm.anim .hstag.d1 { animation-delay: .05s; } .hm.anim .hstag.d2 { animation-delay: .13s; }
.hm.anim .hstag.d3 { animation-delay: .21s; } .hm.anim .hstag.d4 { animation-delay: .29s; } .hm.anim .hstag.d5 { animation-delay: .37s; }
.hm.anim .hcard { opacity: 0; transform: translateY(22px) scale(.985); animation: hmrise .95s cubic-bezier(.22,.61,.36,1) .22s forwards; }
@keyframes hmrise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hm .hm-rv, .hm.anim .hstag, .hm.anim .hcard { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hm .view.on { animation: none; }
}

@media (max-width: 1000px) { .hm .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; } .hm .hero-grid .surface { width: 100%; margin-left: 0; } }
@media (max-width: 900px) {
  .hm .steps { grid-template-columns: repeat(2, 1fr); }
  .hm .step:nth-child(2) { border-right: none; }
  .hm .step { border-bottom: 1px solid var(--line); }
  .hm .packs { grid-template-columns: 1fr; }
  .hm .dev { grid-template-columns: 1fr; gap: 32px; }
  .hm .cta-in { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .hm .cta-in .row { justify-content: flex-start; }
}
@media (max-width: 560px) { .hm .steps { grid-template-columns: 1fr; } .hm .step { border-right: none; } .hm .stats { gap: 16px; } }

/* ---- waitlist form (CTA) ---- */
.hm .wl-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hm .wl-form input { height: 44px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surf); color: var(--ink); font-size: 14.5px; font-family: var(--sans); min-width: 240px; }
.hm .wl-form input::placeholder { color: var(--faint); }
.hm .wl-form input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.hm .wl-done { color: var(--ok); font-family: var(--mono); font-size: 13px; margin-top: 14px; }
.hm .wl-done a { color: var(--brand); }

/* ---- mobile: readable data table + comfortable tap targets + breathing room ---- */
/* the coverage table uses fixed layout + nowrap; below 600px let it scroll instead of
   shredding every cell to an ellipsis (names/tool labels stay fully readable) */
@media (max-width: 600px) {
  .hm .surface:has(table.cov) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hm table.cov { min-width: 520px; }
}
@media (max-width: 900px) {
  /* the compact 36px desktop-nav button is below the comfortable tap target on mobile */
  header.nav.hm-nav .btn { height: 44px; padding: 0 18px; }
  .hm .packs { gap: 18px; }
}
@media (max-width: 640px) {
  /* give the hero and stacked sections real air on small screens */
  .hm .hero-grid { gap: 44px; padding: 40px 0 52px; }
  .hm .hero-copy h1 { margin-bottom: 18px; }
  .hm .blk, .hm .cta-blk { padding: 76px 0; }
  .hm .sec-head { margin-bottom: 34px; }
  .hm .dev { gap: 36px; }
  .hm .worksrow { gap: 8px; }
}
