/* ============================================================
   HEADMARK, shared design system (shared/hm.css)
   One look for headmark.art / .ai / .group / .shop.
   Dark cinematic ground, Fraunces display + Inter body.

   Per-site differences live in sites/<name>/theme.css and are
   ONLY the accent variables below (and the hero video in the page):
     --hm-primary        accent fill (buttons, numbers, wordmark TLD)
     --hm-primary-dark   accent hover / press
     --hm-on-primary     text on the accent fill
     --hm-accent         bright accent tint (links, dots, highlights)
   Everything else is identical on every site. Change it here.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Ground (wet blue-black) ---- */
  --hm-bg:            #0B0E10;
  --hm-surface:       #101417;
  --hm-surface-2:     #1D2428;
  --hm-white:         #151A1D;   /* "card" fill on this ground */
  --hm-dark:          #101518;   /* dark bands / footer */
  --hm-dark-2:        #1D2428;

  /* ---- Ink ---- */
  --hm-ink:           #EFF3F2;
  --hm-ink-2:         rgba(239, 243, 242, 0.74);
  --hm-ink-3:         rgba(239, 243, 242, 0.5);
  --hm-on-dark:       #EFF3F2;
  --hm-on-dark-2:     rgba(239, 243, 242, 0.72);
  --hm-border:        rgba(239, 243, 242, 0.14);
  --hm-border-strong: rgba(239, 243, 242, 0.32);

  /* ---- Accent: defaults are headmark.art's teal; each site's theme.css overrides ---- */
  --hm-primary:       #1CC9AD;
  --hm-primary-dark:  #17AE96;
  --hm-on-primary:    #06110E;
  --hm-accent:        #3ADFC2;
  --hm-primary-text:  var(--hm-accent);
  --hm-primary-soft:  color-mix(in srgb, var(--hm-accent) 16%, transparent);

  /* ---- Fixed secondary: warm amber radio glow (same on every site) ---- */
  --hm-amber:         #E0A458;

  /* ---- Type ---- */
  --hm-head:  "Fraunces", Georgia, "Times New Roman", serif;
  --hm-serif: var(--hm-head);
  --hm-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --hm-display:  clamp(2.4rem, 1.4rem + 4.6vw, 4rem);
  --hm-h1:       clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --hm-h2:       clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  --hm-h3:       1.5rem;
  --hm-h4:       1.25rem;
  --hm-body-lg:  1.1875rem;
  --hm-body:     1.0625rem;
  --hm-small:    0.875rem;
  --hm-eyebrow:  0.8125rem;

  --hm-lh-tight:  1.08;
  --hm-lh-snug:   1.18;
  --hm-lh-normal: 1.6;
  --hm-ls-tight:   -0.015em;
  --hm-ls-eyebrow:  0.13em;

  /* ---- Spacing (4px base) ---- */
  --hm-s1: 4px;   --hm-s2: 8px;   --hm-s3: 12px;  --hm-s4: 16px;
  --hm-s5: 24px;  --hm-s6: 32px;  --hm-s7: 48px;  --hm-s8: 64px;
  --hm-s9: 96px;  --hm-s10: 128px; --hm-s11: 160px;

  /* ---- Radius ---- */
  --hm-r-sm:  10px;
  --hm-r-md:  14px;
  --hm-r-lg:  20px;
  --hm-r-xl:  26px;
  --hm-r-pill: 999px;

  /* ---- Elevation ---- */
  --hm-shadow-sm: 0 2px 10px rgba(36, 27, 32, 0.06);
  --hm-shadow-md: 0 6px 20px rgba(36, 27, 32, 0.08);
  --hm-shadow-lg: 0 16px 44px rgba(36, 27, 32, 0.11);

  /* ---- Motion ---- */
  --hm-ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --hm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hm-dur:      180ms;
  --hm-dur-slow: 320ms;

  /* ---- Layout ---- */
  --hm-maxw:      1080px;
  --hm-maxw-text: 680px;
  --hm-gutter:    clamp(20px, 5vw, 64px);
}

/* ---- Focus ring ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--hm-accent);
  outline-offset: 3px;
}

/* ================= layout base ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--hm-sans); color: var(--hm-ink);
  background: var(--hm-bg); line-height: 1.6; font-size: var(--hm-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--hm-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--hm-primary-text); }
.wrap { width: 100%; max-width: var(--hm-maxw); margin: 0 auto; padding: 0 var(--hm-gutter); }

/* buttons (page-level, same as v1) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--hm-sans); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.95rem 1.6rem; border-radius: var(--hm-r-pill); border: 1.5px solid transparent; cursor: pointer; min-height: 48px; transition: transform var(--hm-dur) var(--hm-ease), background-color var(--hm-dur) var(--hm-ease), box-shadow var(--hm-dur) var(--hm-ease), border-color var(--hm-dur) var(--hm-ease); }
.btn .arrow { transition: transform var(--hm-dur) var(--hm-ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--hm-primary); color: var(--hm-on-primary); box-shadow: var(--hm-shadow-sm); }
.btn-primary:hover { background: var(--hm-primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--hm-ink); border-color: var(--hm-border-strong); }
.btn-ghost:hover { border-color: var(--hm-ink); transform: translateY(-2px); }
.nav .btn { padding: 0.6rem 1.2rem; min-height: 40px; font-size: 0.92rem; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ================= header ================= */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 12, 14, 0.82); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--hm-border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.brand { font-family: var(--hm-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--hm-ink); text-decoration: none; }
.brand span { color: var(--hm-primary); }
.loopnav { display: none; gap: 0.4rem; align-items: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; }
.loopnav a { color: var(--hm-ink-3); text-decoration: none; padding: 0.3rem 0.6rem; border-radius: var(--hm-r-pill); }
.loopnav a.on { color: var(--hm-ink); background: var(--hm-surface-2); }
.loopnav .sep { color: var(--hm-border); }
.nav .btn { display: none; }
@media (min-width: 760px) { .loopnav { display: flex; } .nav .btn { display: inline-flex; } }

/* ================= hero: identity slam ================= */
.hero { padding: 4rem 0 3.5rem; position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 85% -10%, color-mix(in srgb, var(--hm-accent) 16%, transparent), transparent 60%),
              radial-gradient(900px 520px at -10% 30%, rgba(224, 164, 88, 0.10), transparent 58%),
              var(--hm-bg); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(1.2); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,12,14,0.55), rgba(15,12,14,0.82) 65%, var(--hm-bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.avail { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--hm-ink-2); background: var(--hm-white); border: 1px solid var(--hm-border); padding: 0.45rem 0.9rem; border-radius: var(--hm-r-pill); margin-bottom: 1.75rem; }
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(2.4rem, 10vw, 7.5rem); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 1.25rem; text-transform: none; }
.hero h1 .tld { color: var(--hm-primary-text); }
.slashes { font-family: var(--hm-sans); font-weight: 600; font-size: clamp(0.95rem, 2.2vw, 1.25rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-ink-2); margin: 0 0 2rem; line-height: 1.9; }
.slashes b { color: var(--hm-accent); font-weight: 600; margin-right: 0.15em; }
.hero .lede { font-size: var(--hm-body-lg); color: var(--hm-ink-2); max-width: 56ch; margin-bottom: 2rem; }
.hero .lede strong { color: var(--hm-ink); font-weight: 650; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.85rem; color: var(--hm-ink-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.scroll-cue { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.75rem; font-size: 0.9rem; font-weight: 600; color: var(--hm-ink-2); text-decoration: none; }
.scroll-cue .arr { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* loop strip */
.loopstrip { border-top: 1px solid var(--hm-border); border-bottom: 1px solid var(--hm-border); background: var(--hm-white); }
.loopstrip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.loopstrip a { display: flex; gap: 0.75rem; align-items: baseline; padding: 1.1rem 0.5rem; text-decoration: none; color: var(--hm-ink); border-left: 1px solid var(--hm-border); }
.loopstrip a:first-child { border-left: 0; }
.loopstrip .n { font-family: var(--hm-head); font-weight: 700; color: var(--hm-primary); font-size: 1rem; }
.loopstrip .t { font-weight: 700; letter-spacing: 0.1em; font-size: 0.9rem; }
.loopstrip .d { display: none; color: var(--hm-ink-3); font-size: 0.85rem; }
@media (min-width: 880px) { .loopstrip .d { display: inline; } }

/* ================= chapters ================= */
.chapter-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.chapter-num { font-family: var(--hm-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; color: var(--hm-primary); }
.chapter-kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hm-ink-3); }
section.chapter { padding: 4.5rem 0; }
@media (min-width: 880px) { section.chapter { padding: 6rem 0; } }
.chapter h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.chapter .lede { font-size: var(--hm-body-lg); color: var(--hm-ink-2); max-width: 58ch; margin-bottom: 2.5rem; }

/* ---- 01 CREATE (dark) ---- */
.create { background: var(--hm-dark); color: var(--hm-on-dark-2); }
.create h2, .create h3 { color: var(--hm-on-dark); }
.create .chapter-kicker { color: rgba(243,237,227,0.55); }
.create .lede { color: var(--hm-on-dark-2); }
.create .lede strong { color: var(--hm-on-dark); }
.reel-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reel-grid { grid-template-columns: repeat(3, 1fr); } }
/* vertical pieces: letterboxed inside the uniform 16:9 tile, never cropped */
.reel.vert video { object-fit: contain; background: #000; }
.reel { position: relative; border-radius: var(--hm-r-lg); overflow: hidden; background: #000; box-shadow: var(--hm-shadow-lg); margin: 0; }
.reel video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reel figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.8rem; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: #fff; font-size: 0.9rem; font-weight: 600; }
.reel figcaption span { display: block; font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.75); }
.medium-label { display: flex; align-items: baseline; gap: 0.75rem; margin: 3.5rem 0 1.25rem; }
.medium-label h3 { font-size: 1.5rem; margin: 0; }
.medium-label .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-accent); }
/* music: ambient voltage band with albums, players, roster */
.music-band { position: relative; border-radius: var(--hm-r-lg); overflow: hidden; padding: 2rem 1.5rem; border: 1px solid rgba(255,255,255,0.1); }
.music-band::before { content: ""; position: absolute; inset: 0; background: url("media/voltage-backdrop.jpg") center / cover no-repeat; opacity: 0.35; }
.music-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,14,16,0.55), rgba(11,14,16,0.9)); }
.music-band > * { position: relative; z-index: 2; }
@media (min-width: 880px) { .music-band { padding: 2.5rem; } }
.music-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .music-cols { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; } }
.album-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); align-content: start; }
.album { margin: 0; }
.album img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--hm-r-md); box-shadow: var(--hm-shadow-lg); }
.album figcaption { margin-top: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--hm-on-dark); }
.album figcaption span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--hm-on-dark-2); }
/* avatar feature */
.avatar-feature { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .avatar-feature { grid-template-columns: 0.7fr 1.3fr; gap: 3rem; } }
.avatar-video { max-width: 340px; margin: 0; }
.avatar-video video { display: block; width: 100%; border-radius: var(--hm-r-lg); box-shadow: var(--hm-shadow-lg); background: #000; }
.avatar-info h4 { font-family: var(--hm-head); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 0.5rem; color: var(--hm-on-dark); }
.avatar-info p { color: var(--hm-on-dark-2); max-width: 48ch; }
.avatar-info p strong { color: var(--hm-on-dark); }
.avatar-info .btn { margin-top: 0.5rem; }

/* band click-through */
.band-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.band-tab { font-family: var(--hm-sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--hm-on-dark-2); background: transparent; border: 1.5px solid rgba(239,243,242,0.25); border-radius: var(--hm-r-pill); padding: 0.55rem 1.05rem; cursor: pointer; transition: all 0.2s ease; }
.band-tab:hover { border-color: var(--hm-accent); color: var(--hm-on-dark); }
.band-tab.on { background: var(--hm-primary); border-color: var(--hm-primary); color: var(--hm-on-primary); }
.band-panel { display: none; }
.band-panel.on { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .band-panel.on { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; } }
.band-art { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); }
.band-art.single { grid-template-columns: 1fr; max-width: 320px; }
.band-art img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--hm-r-md); box-shadow: var(--hm-shadow-lg); }
.band-info h4 { font-family: var(--hm-head); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 0.5rem; color: var(--hm-on-dark); }
.band-info p { color: var(--hm-on-dark-2); max-width: 46ch; }
.band-info .btn { margin-top: 0.5rem; }
.band-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.band-ctas .btn { margin-top: 0; }
.music-stats { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.6rem; font-size: 0.95rem; color: var(--hm-on-dark-2); }
.music-stats b { font-family: var(--hm-head); font-size: 1.3rem; color: var(--hm-accent); font-weight: 700; margin-right: 0.3em; }
.music-stats .btn { margin-left: auto; }
.music-stats .follow-link { margin-left: auto; font-size: 0.9rem; font-weight: 600; color: var(--hm-accent); text-decoration: none; }
.music-stats .follow-link:hover { text-decoration: underline; }
.roster { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-size: 0.9rem; font-weight: 600; color: var(--hm-on-dark); }
.roster a { color: var(--hm-on-dark); text-decoration: none; border-bottom: 1px solid var(--hm-accent); padding-bottom: 1px; }
.roster a:hover { color: var(--hm-accent); }
.create-note { margin-top: 2.25rem; font-size: 0.9rem; color: var(--hm-on-dark-2); }
.create-note b { color: var(--hm-on-dark); }
.also { margin-top: 2.5rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: rgba(243,237,227,0.6); line-height: 2; }
.also b { color: var(--hm-accent); font-weight: 600; margin-right: 0.1em; }

/* ---- 02 POST (cream) ---- */
.system { background: var(--hm-surface); }
.post { background: var(--hm-bg); }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.75rem; }
.day { background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-r-md); padding: 0.9rem; min-height: 118px; }
.day .dn { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-ink-3); margin-bottom: 0.6rem; }
.chip { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: var(--hm-r-pill); margin: 0 0.2rem 0.35rem 0; white-space: nowrap; }
.chip.v { background: color-mix(in srgb, var(--hm-accent) 14%, transparent); color: var(--hm-accent); }
.chip.m { background: rgba(224,164,88,0.16); color: var(--hm-amber); }
.chip.t { background: var(--hm-surface-2); color: var(--hm-ink-2); }
.post-point { margin-top: 2rem; font-size: var(--hm-body-lg); color: var(--hm-ink-2); max-width: 56ch; }
.post-point strong { color: var(--hm-ink); }

/* ---- 03 LEARN (surface) ---- */
.learn { background: var(--hm-surface); }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-r-lg); padding: 1.4rem; box-shadow: var(--hm-shadow-sm); }
.stat h4 { margin: 0 0 0.25rem; font-family: var(--hm-sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hm-ink-3); }
.stat p { font-size: 0.95rem; color: var(--hm-ink-2); margin: 0.5rem 0 0; }
.stat svg { width: 100%; height: 56px; display: block; }

/* ---- offer ---- */
.offer { background: var(--hm-bg); }
.svc { border-top: 1px solid var(--hm-border); padding: 2.5rem 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .svc { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; } }
.svc:last-of-type { border-bottom: 1px solid var(--hm-border); }
.svc .num { font-family: var(--hm-head); font-weight: 700; color: var(--hm-primary); font-size: 1rem; letter-spacing: 0.04em; }
.svc h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0.25rem 0 0.75rem; }
.svc .slist { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--hm-ink-2); line-height: 2.1; }
.svc .slist b { color: var(--hm-accent); font-weight: 600; margin-right: 0.1em; }
.svc .body p { color: var(--hm-ink-2); }
.svc .body p strong { color: var(--hm-ink); }
.ways { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.way { font-size: 0.85rem; font-weight: 600; background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-r-pill); padding: 0.5rem 1rem; color: var(--hm-ink-2); }
.way b { color: var(--hm-ink); }

/* ---- proof ---- */
.proof { background: var(--hm-surface); }
.proof-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-r-lg); padding: 1.4rem; }
.fact .big { font-family: var(--hm-head); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--hm-ink); line-height: 1.1; }
.fact .lbl { font-size: 0.85rem; color: var(--hm-ink-2); margin-top: 0.4rem; }
.proof .story { margin-top: 2.5rem; max-width: 60ch; color: var(--hm-ink-2); font-size: var(--hm-body-lg); }
.proof .story strong { color: var(--hm-ink); }

/* ---- close ---- */
.close { background: var(--hm-dark); color: var(--hm-on-dark-2); padding: 5rem 0; }
.close h2 { color: var(--hm-on-dark); font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; }
.close p { max-width: 52ch; font-size: var(--hm-body-lg); }
.close .hero-cta { margin-top: 2rem; }

/* footer */
.site-footer { background: var(--hm-dark); color: var(--hm-on-dark-2); padding: 2.25rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.foot-top { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 760px) { .foot-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer a { color: var(--hm-on-dark); text-decoration: none; }
.site-footer .fam { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
@media (min-width: 760px) { .site-footer .fam { flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.5rem; } }
.site-footer .fam a { color: var(--hm-on-dark-2); white-space: nowrap; }
.site-footer .fam a b { color: var(--hm-on-dark); font-weight: 600; }
.site-footer .fam a:hover, .site-footer .fam a:hover b { color: var(--hm-accent); }
.foot-bottom { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: var(--hm-ink-3); }
@media (min-width: 760px) { .foot-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer .brand { color: var(--hm-on-dark); font-size: 1.1rem; }
.site-footer .brand span { color: var(--hm-accent); }

/* ================= concierge widget (hmc-): chat + voice, Retell-backed ================= */
.hmc-launch { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: var(--hm-r-pill); border: none; background: var(--hm-primary); color: var(--hm-on-primary); box-shadow: var(--hm-shadow-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; }
.hmc-launch:hover { background: var(--hm-primary-dark); transform: translateY(-2px); }
.hmc-launch svg { width: 26px; height: 26px; }
.hmc-launch[hidden] { display: none; }
.hmc-panel { position: fixed; right: 22px; bottom: 22px; z-index: 61; width: min(384px, calc(100vw - 32px)); height: min(596px, calc(100vh - 96px)); display: flex; flex-direction: column; background: var(--hm-bg); border: 1px solid var(--hm-border-strong); border-radius: var(--hm-r-lg); box-shadow: var(--hm-shadow-lg); overflow: hidden; }
.hmc-panel[hidden] { display: none; }
@media (max-width: 480px) { .hmc-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); height: calc(100dvh - 24px); } }
.hmc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--hm-surface); border-bottom: 1px solid var(--hm-border); }
.hmc-id { display: flex; align-items: center; gap: 10px; }
.hmc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 18%, transparent); flex: none; }
.hmc-title { font-family: var(--hm-head); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--hm-ink); line-height: 1.1; }
.hmc-title span { color: var(--hm-primary); }
.hmc-sub { font-size: 11px; color: var(--hm-ink-3); margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.hmc-hbtns { display: flex; align-items: center; gap: 4px; }
.hmc-close { background: none; border: none; cursor: pointer; color: var(--hm-ink-2); padding: 4px; display: flex; border-radius: var(--hm-r-sm); }
.hmc-close:hover { color: var(--hm-ink); background: var(--hm-surface-2); }
.hmc-close svg { width: 20px; height: 20px; }
.hmc-callbtn { display: flex; align-items: center; gap: 6px; font-family: var(--hm-sans); font-size: 12.5px; font-weight: 600; color: var(--hm-ink-2); background: var(--hm-bg); border: 1px solid var(--hm-border-strong); border-radius: var(--hm-r-pill); padding: 6px 12px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.hmc-callbtn:hover { border-color: var(--hm-primary); color: var(--hm-primary-text); }
.hmc-callbtn svg { width: 14px; height: 14px; }
.hmc-callbtn.live { background: #b23b3b; border-color: #b23b3b; color: #fff; }
.hmc-callbtn:disabled { opacity: 0.6; cursor: default; }
.hmc-log { flex: 1; overflow-y: auto; padding: 18px 16px 6px; display: flex; flex-direction: column; gap: 12px; }
.hmc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.hmc-msg.bot { background: var(--hm-surface-2); color: var(--hm-ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.hmc-msg.me { background: var(--hm-primary); color: var(--hm-on-primary); align-self: flex-end; border-bottom-right-radius: 4px; }
.hmc-msg.sys { background: none; color: var(--hm-ink-3); font-size: 11.5px; align-self: center; padding: 2px 0; }
.hmc-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 2px; }
.hmc-chip { font-family: var(--hm-sans); font-size: 13px; font-weight: 500; color: var(--hm-ink-2); background: var(--hm-bg); border: 1px solid var(--hm-border-strong); border-radius: var(--hm-r-pill); padding: 7px 13px; cursor: pointer; text-align: left; transition: border-color 0.2s, color 0.2s; }
.hmc-chip:hover { border-color: var(--hm-primary); color: var(--hm-primary-text); }
.hmc-typing { display: flex; gap: 4px; align-items: center; width: auto; }
.hmc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--hm-ink-3); animation: hmcblink 1.2s infinite ease-in-out; }
.hmc-typing span:nth-child(2) { animation-delay: 0.2s; }
.hmc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hmcblink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.hmc-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 16px 0; padding: 10px 14px; font-family: var(--hm-sans); font-size: 14px; font-weight: 600; color: var(--hm-ink); background: var(--hm-bg); border: 1.5px solid var(--hm-border-strong); border-radius: var(--hm-r-sm); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.hmc-cta:hover { border-color: var(--hm-primary); color: var(--hm-primary-text); }
.hmc-cta svg { width: 16px; height: 16px; }
.hmc-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 6px; }
.hmc-input { flex: 1; resize: none; max-height: 120px; font-family: var(--hm-sans); font-size: 14.5px; line-height: 1.45; color: var(--hm-ink); background: var(--hm-surface); border: 1px solid var(--hm-border-strong); border-radius: var(--hm-r-md); padding: 10px 12px; outline: none; }
.hmc-input::placeholder { color: var(--hm-ink-3); }
.hmc-input:focus { border-color: var(--hm-primary); }
.hmc-send { flex: none; width: 40px; height: 40px; border-radius: var(--hm-r-md); border: none; background: var(--hm-primary); color: var(--hm-on-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.hmc-send:hover { background: var(--hm-primary-dark); }
.hmc-send:disabled { opacity: 0.5; cursor: default; }
.hmc-send svg { width: 18px; height: 18px; }
.hmc-disc { padding: 4px 16px 14px; font-size: 10.5px; line-height: 1.5; color: var(--hm-ink-3); }
@media (prefers-reduced-motion: reduce) { .hmc-launch, .hmc-chip, .hmc-cta, .hmc-send, .hmc-callbtn { transition: none; } .hmc-typing span { animation: none; opacity: 0.5; } }

/* ================= generic blocks (used by .ai / .group / .shop) ================= */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 0.5rem; background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-r-lg); padding: 1.4rem; box-shadow: var(--hm-shadow-sm); color: var(--hm-ink-2); }
.card .tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-accent); }
.card h3 { font-size: 1.35rem; margin: 0; color: var(--hm-ink); }
.card p { margin: 0; font-size: 0.95rem; flex: 1; }
.card p strong { color: var(--hm-ink); }
.card .more { font-weight: 600; font-size: 0.9rem; color: var(--hm-accent); text-decoration: none; margin-top: 0.25rem; }
.card .more:hover { text-decoration: underline; }
.tile { display: block; position: relative; border-radius: var(--hm-r-md); overflow: hidden; background: #000; box-shadow: var(--hm-shadow-lg); text-decoration: none; color: #fff; }
.tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s var(--hm-ease); }
.tile:hover img { transform: scale(1.03); }
.tile span { position: absolute; inset: auto 0 0 0; padding: 2rem 0.9rem 0.7rem; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); font-size: 0.85rem; font-weight: 600; }
.checks { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 64ch; }
.checks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--hm-ink-2); }
.checks li strong { color: var(--hm-ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--hm-accent); }

/* ================= family bar: switch between the Headmark sites (rendered by hm.js) =================
   A floating pill at the bottom of the viewport. The page gets bottom padding so the footer stays reachable. */
body { padding-bottom: 4.5rem; }
.hm-family { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 55; max-width: calc(100vw - 32px); background: rgba(16, 20, 23, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border: 1px solid var(--hm-border); border-radius: var(--hm-r-pill); box-shadow: var(--hm-shadow-lg); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hm-family .wrap { display: flex; align-items: center; gap: 1.1rem; overflow-x: auto; white-space: nowrap; padding: 0.6rem 1.1rem; max-width: none; scrollbar-width: none; }
.hm-family .wrap::-webkit-scrollbar { display: none; }
.hm-family .lbl { color: var(--hm-ink-3); margin-right: 0.2rem; }
.hm-family a { color: var(--hm-ink-3); text-decoration: none; padding: 0.15rem 0; border-bottom: 1px solid transparent; }
.hm-family a b { color: var(--hm-ink-2); font-weight: 600; }
.hm-family a:hover, .hm-family a:hover b { color: var(--hm-ink); }
.hm-family a.on, .hm-family a.on b { color: var(--hm-accent); border-bottom-color: var(--hm-accent); }
/* keep clear of the concierge launcher on pages that have it */
@media (max-width: 760px) { .hm-family { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; } .hm-family .lbl { display: none; } body:has(#hmcLaunch) .hm-family { right: 92px; } }
@media (min-width: 761px) { body:has(#hmcLaunch) .hm-family { left: calc(50% - 40px); } }

/* ================= work (portfolio entries rendered from a site's work.js) ================= */
.work h2 .tld { color: var(--hm-accent); }
.work .lede { max-width: 62ch; }
.media { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 2rem 0 0; }
@media (min-width: 760px) { .media { grid-template-columns: repeat(3, 1fr); } }
.media > * { margin: 0; min-width: 0; }
.media .wide { grid-column: span 2; }
.media figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--hm-r-md); border: 1px solid var(--hm-border); background: #000; cursor: zoom-in; transition: transform 0.35s var(--hm-ease); }
.media figure.square img { aspect-ratio: 1 / 1; object-position: center; }
.media figure img:hover { transform: translateY(-2px); }
.media figcaption { margin-top: 0.5rem; font-size: 0.82rem; color: var(--hm-ink-3); }
/* YouTube: a poster with a play button; the real player loads on click and plays here */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--hm-r-md); overflow: hidden; background: #000; border: 1px solid var(--hm-border); cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.yt .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt .play span { width: 64px; height: 64px; border-radius: 50%; background: var(--hm-primary); color: var(--hm-on-primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--hm-shadow-lg); transition: transform 0.2s ease; }
.yt:hover .play span { transform: scale(1.06); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* one-pagers and documents */
.doc { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-r-md); text-decoration: none; color: var(--hm-ink-2); min-height: 100%; }
.doc svg { flex: none; width: 22px; height: 22px; color: var(--hm-accent); margin-top: 2px; }
.doc b { display: block; color: var(--hm-ink); font-weight: 600; margin-bottom: 0.2rem; }
.doc span { font-size: 0.85rem; color: var(--hm-ink-3); }
.doc:hover { border-color: var(--hm-accent); }
/* facts row */
.facts { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--hm-border); }
.facts div { min-width: 12ch; }
.facts dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-ink-3); margin-bottom: 0.25rem; }
.facts dd { margin: 0; color: var(--hm-ink); font-size: 0.95rem; }
.work .visit { margin-top: 1.75rem; }
/* lightbox for screenshots */
.hm-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5, 7, 8, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.hm-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--hm-r-md); box-shadow: var(--hm-shadow-lg); }
.hm-lightbox[hidden] { display: none; }
.card .card-video { margin: 0.6rem 0 0; }
.card .card-video figcaption { display: none; }
