/*
  site.css (demo-kit, synced from ~/Developer/demo-kit; never edit it inside a
  site). The Demo family frame, drawn to Democura's standard: reset, header,
  menu sheet, footer, legal pages and the profile menu. Colors and type come
  from each site's src/styles/brand.css: --ink, --ink-soft, --paper, --line,
  --accent, --accent-bright (accent on dark), --accent-soft, --accent-deep
  (accent for small text), --sheet, --header-glass, --callout-line,
  --callout-fill, --serif, --sans.
*/
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ── Site header: the family canon (timkinzie SiteHeader). Fixed glass bar that
     grows into a full-viewport menu sheet when the hamburger is toggled. ── */
  :root { --header-height: 4rem; --header-blur: blur(24px) saturate(180%); }
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-height);
    overflow: hidden; isolation: isolate;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Glass on its own layer behind the content (iOS Safari can drop painted
     children of a fixed backdrop-filter element). */
  .site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    /* The header glass (brand.css sets --header-glass). Bars beneath the header (DashboardBar) use the same two tokens. */
    background: var(--header-glass);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
  }
  .site-header.is-open { height: 100svh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; z-index: 10000; }
  /* iOS Safari toolbar strip: the page paints the sheet color and fades out on the grow curve. */
  .site-header.is-open::before { background: var(--sheet); }
  html:has(.site-header.is-open), html:has(.site-header.is-open) body { background: var(--sheet); }
  html:has(.site-header.is-open) body > :not(.site-header):not(script):not(style) {
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
  }
  .site-header-bar {
    height: var(--header-height); max-width: 1266px; margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between;
    color: #fff; position: relative; transform: translateZ(0);
  }
  .site-header-logo-link { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
  .brand-mark { display: block; width: 30px; height: 30px; flex: 0 0 auto; }
  .brand-word { font: 600 20px/1 var(--serif); letter-spacing: 0.01em; }
  .site-header-actions { display: flex; align-items: center; gap: 1.5rem; }
  .site-header-nav { display: none; }
  .site-header-pipe { display: block; width: 1px; height: 14px; background: currentColor; opacity: 0.6; }
  .site-header-pipe-nav { display: none; }
  /* The pipe between the profile and the menu stays on phones (as on timkinzie.com). */
  .site-header-pipe-menu { display: block; }
  @media (min-width: 900px) {
    .site-header-nav { display: flex; align-items: center; gap: 1.5rem; }
    .site-header-pipe-nav { display: block; }
  }
  .site-header-nav-link {
    font: 600 0.82rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.78); text-decoration: none; white-space: nowrap;
    transition: color 200ms ease;
  }
  .site-header-nav-link:hover, .site-header-nav-link[data-active] { color: #fff; }
  /* Profile / sign-in icon (family canon): same footprint as the hamburger. */
  /* Profile icon: the family header profile menu (.hpm, end of this file). */
  .site-header-menu {
    display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 5px;
    width: 20px; height: 20px; border: none; background: none; color: #fff; cursor: pointer; padding: 0;
  }
  .menu-line { display: block; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease; transform-origin: center; }
  .site-header-menu.is-active .menu-line-1 { transform: translateX(-1px) translateY(7px) rotate(45deg); width: calc(100% + 2px); }
  .site-header-menu.is-active .menu-line-2 { opacity: 0; }
  .site-header-menu.is-active .menu-line-3 { transform: translateX(-1px) translateY(-7px) rotate(-45deg); width: calc(100% + 2px); }

  /* Menu sheet */
  .site-menu {
    transform: translateZ(0); will-change: opacity;
    display: flex; flex-direction: column;
    height: calc(100svh - var(--header-height)); height: calc(100dvh - var(--header-height));
    opacity: 0; transition: opacity 0.2s ease;
  }
  .site-menu.is-open { opacity: 1; }
  .site-menu-links { display: flex; flex-direction: column; align-items: center; padding-top: 2rem; flex: 1; }
  .site-menu-logo-link { display: flex; margin-bottom: 2rem; outline: none; }
  .site-menu-logo-link .brand-mark { width: clamp(3.5rem, 9vw, 5rem); height: clamp(3.5rem, 9vw, 5rem); }
  .site-menu-link {
    font: 500 1rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.04em;
    color: #fff; text-decoration: none; padding: 0.5rem 0; opacity: 0.8;
  }
  .site-menu-link:hover, .site-menu-link[data-active] { opacity: 1; }
  .site-menu-link[hidden] { display: none; }
  button.site-menu-link { background: none; border: none; font: 500 1rem/1 var(--sans); cursor: pointer; }
  .site-menu-divider { display: block; width: 32px; height: 1px; margin: 1rem 0; background: rgba(255, 255, 255, 0.3); }
  .site-menu-footer { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 4rem 0 2rem; flex-shrink: 0; }
  .site-menu-footer-logo-link { display: flex; color: #fff; text-decoration: none; align-items: center; gap: 8px; }
  .site-menu-footer-logo-link .brand-mark { width: 2rem; height: 2rem; }
  .site-menu-copyright { font: 400 0.75rem/1.4 var(--sans); color: #fff; }
  @keyframes menuItemCascade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 0.8; transform: translateY(0); } }
  @keyframes menuItemCascadeFull { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes menuItemFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes logoSlideFromBottom { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  [id] { scroll-margin-top: calc(var(--header-height) + 12px); }
  @media (max-width: 820px) { .wrap { padding: 0 16px; } }

  /* ── Site footer: the family canon (timkinzie SiteFooter). Solid dark surface at
     full-viewport height: logo + link columns pinned top, legal row pinned bottom. ── */
  .site-footer { position: relative; z-index: 10; overflow: hidden; background: var(--sheet); color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  /* Repeating seal pattern for texture, strongest bottom-right, fading to the top-left. */
  .site-footer-mark {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: url('/mark-tile.svg'); background-repeat: repeat; background-size: 42px auto;
    opacity: 0.07;
    -webkit-mask-image: radial-gradient(150% 130% at 100% 100%, #000 0%, rgba(0, 0, 0, 0.4) 42%, transparent 74%);
    mask-image: radial-gradient(150% 130% at 100% 100%, #000 0%, rgba(0, 0, 0, 0.4) 42%, transparent 74%);
  }
  .site-footer-grid {
    position: relative; z-index: 1; box-sizing: border-box;
    max-width: 1266px; margin: 0 auto; padding: 4rem 16px;
    min-height: 100svh;
    display: grid; grid-template-columns: 1fr; gap: 3rem 16px; text-align: center;
  }
  /* Room under the last line so the floating chat button never covers it on phones. */
  @media (max-width: 699px) { .site-footer-grid { padding-bottom: 7rem; } }
  .site-footer-logo-col { display: flex; align-items: flex-start; justify-content: center; }
  .site-footer-logo-link { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
  .site-footer-logo-link .brand-mark { width: 3.25rem; height: 3.25rem; }
  .site-footer-logo-link .brand-word { font-size: 26px; }
  .site-footer-col-title { max-width: none; font: 600 1rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin-bottom: 0.9rem; }
  .site-footer-col-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
  .site-footer-link { font: 400 1rem/1.5 var(--sans); color: #fff; text-decoration: none; opacity: 0.8; transition: opacity 200ms ease; }
  a.site-footer-link:hover { opacity: 1; }
  .site-footer-text { cursor: default; }
  .site-footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding-top: 2rem; }
  .site-footer-legal { display: flex; flex-direction: column; gap: 0.35rem; }
  .site-footer-copyright, .site-footer-built { font: 400 0.75rem/1.5 var(--sans); color: #fff; opacity: 0.8; }
  .site-footer-legal-link { color: inherit; text-decoration: none; }
  .site-footer-legal-link:hover { opacity: 0.7; }
  /* The Timatsu credit takes the brand accent on dark. */
  .site-footer-built-link { color: var(--accent-bright); font-weight: 600; text-decoration: none; }
  .site-footer-built-link:hover { opacity: 0.8; }
  @media (min-width: 700px) {
    .site-footer-grid { grid-template-columns: repeat(4, 1fr); align-content: space-between; padding: 8rem 16px; text-align: left; }
    .site-footer-logo-col { justify-content: flex-start; grid-column: 1 / -1; }
    .site-footer-col-links { align-items: flex-start; }
    .site-footer-bottom { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
    .site-footer-legal { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
  }
  /* Wide screens: the logo beside the four link columns. */
  @media (min-width: 1000px) {
    .site-footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
    .site-footer-logo-col { grid-column: auto; }
  }

  /* ── Legal pages ── */
  .legal { padding: calc(var(--header-height) + 72px) 0 112px; }
  .legal .wrap { max-width: 760px; }
  .legal .eyebrow { font: 600 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
  .legal h1 { font: 400 clamp(40px, 6vw, 60px)/1.05 var(--serif); letter-spacing: -0.02em; }
  .legal .updated { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
  .legal .short { margin-top: 32px; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; color: var(--ink); }
  .legal .short strong { color: var(--accent); }
  .legal h2 { font: 600 26px/1.25 var(--serif); margin: 48px 0 12px; }
  .legal p, .legal li { color: var(--ink-soft); }
  .legal p + p { margin-top: 12px; }
  .legal ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
  .legal a { color: var(--accent); }
  .legal .callout { margin-top: 16px; border: 1px solid var(--callout-line); background: var(--callout-fill); border-radius: 14px; padding: 16px 20px; color: var(--ink); }

/* Header profile menu (family). The trigger keeps the header icon's footprint; the panel is the
   header's own glass (the script copies the bar's color into --hpm-glass), frosted, above the
   header and its open menu sheet. */
.hpm { display: inline-flex; align-items: center; flex: 0 0 auto; }
.hpm-signin, .hpm-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 22px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease, color 200ms ease, transform 0.2s ease;
}
.hpm-signin[hidden], .hpm-btn[hidden] { display: none; }
.hpm-signin:hover, .hpm-btn:hover { opacity: 0.7; }
.hpm[data-tone="dim"] .hpm-signin, .hpm[data-tone="dim"] .hpm-btn { color: rgba(255, 255, 255, 0.78); }
.hpm[data-tone="dim"] .hpm-signin:hover, .hpm[data-tone="dim"] .hpm-btn:hover { color: #fff; opacity: 1; }
.hpm-signin:active, .hpm-btn:active { transform: scale(0.95); }
.hpm-signin:focus-visible, .hpm-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.hpm-face { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; }
.hpm-face svg { display: block; width: 100%; height: 100%; }
.hpm-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hpm-face.is-img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.hpm-face.is-initial { background: rgba(255, 255, 255, 0.16); color: #fff; font-family: var(--font-family); font-size: 11px; font-weight: 600; line-height: 1; }
.hpm-btn[aria-expanded="true"] { opacity: 1; color: #fff; }
.hpm-btn[aria-expanded="true"] .hpm-face { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }

.hpm-menu {
  position: fixed; top: 4.5rem; right: 16px; z-index: 10001;
  box-sizing: border-box; min-width: 232px; max-width: calc(100vw - 24px); padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  background: var(--hpm-glass, rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #fff; font-family: var(--font-family); text-align: left;
  animation: hpmIn 160ms ease;
}
.hpm-menu[hidden] { display: none; }
.hpm-menu.is-sheet { left: 12px; right: 12px; min-width: 0; max-width: none; }
.hpm-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.hpm-who .hpm-face { width: 32px; height: 32px; }
.hpm-who .hpm-face.is-initial { font-size: 14px; }
.hpm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.25; color: #fff; }
.hpm-sep { height: 1px; margin: 6px 4px; background: rgba(255, 255, 255, 0.12); }
.hpm-item {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 40px;
  margin: 0; padding: 0 10px; border: 0; border-radius: 9px; background: none;
  color: rgba(255, 255, 255, 0.86); font-family: var(--font-family); font-size: 14px; font-weight: 500; line-height: 1.2;
  text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease, color 140ms ease;
}
.hpm-item[hidden] { display: none; }
.hpm-item svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.hpm-item:hover, .hpm-item:focus-visible { background: rgba(255, 255, 255, 0.09); color: #fff; outline: none; }
.hpm-item:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.hpm-item:disabled { opacity: 0.6; cursor: default; }
@media (pointer: coarse) { .hpm-item { min-height: 44px; } }
@keyframes hpmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hpm-menu { animation: none; }
  .hpm-signin:active, .hpm-btn:active { transform: none; }
}

/* Share-image capture (/?og): the corner agent button stays out of the shot. */
.og-shot .ic { display: none !important; }

/* AI Models: the family ModelRoster (timkinzie.com, timatsu.com, unchanged) fitted to the
   Demo page: the same column, rhythm, eyebrow and type as the brand's other dark sections,
   and cards in the brand's dark glass, no lab colors (Tim 2026-10-13). */
.models-band { background: var(--ink); }
.models-band .mr { padding: 112px 0; font-family: var(--sans); }
.models-band .mr .mr-wrap { max-width: 1080px; padding: 0 24px; }
.models-band .mr .mr-eyebrow { margin: 0 0 22px; font: 600 13px/1 var(--sans); letter-spacing: 0.16em; color: var(--accent-bright); }
.models-band .mr .mr-h2 { max-width: 16ch; font: 400 clamp(34px, 4.8vw, 58px)/1.06 var(--serif); letter-spacing: -0.02em; color: var(--paper); }
.models-band .mr .mr-lead { margin: 18px 0 44px; max-width: 58ch; font-size: 18px; line-height: 1.6; color: rgba(244, 245, 247, 0.82); }
.models-band .mr .mr-card { border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(244, 245, 247, 0.14); }
.models-band .mr .mr-card::before { display: none; }
.models-band .mr .mr-card:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(244, 245, 247, 0.28); }
.models-band .mr .mr-mark { background: rgba(255, 255, 255, 0.06); border-color: rgba(244, 245, 247, 0.16); }
.models-band .mr .mr-name { font: 600 20px/1.2 var(--serif); letter-spacing: 0; color: var(--paper); }
.models-band .mr .mr-maker { color: rgba(244, 245, 247, 0.55); }
.models-band .mr .mr-line { font-size: 15px; color: rgba(244, 245, 247, 0.78); }
@media (max-width: 820px) {
  .models-band .mr { padding: 76px 0; }
  .models-band .mr .mr-wrap { padding: 0 16px; }
}
@media (max-width: 559px) {
  .models-band .mr .mr-name { font-size: 17px; }
}

/* Device frames for real app screenshots (Screen.astro and IPhone.astro; on a
   raw-HTML page, write the same markup: figure.dv-ph > .dv-ph-body >
   .dv-ph-screen > img). One frame on every site; the dark tones come from
   brand.css: --dv-hi, --dv-mid, --dv-deep (the phone body, light to dark),
   --dv-bezel (the landscape screen's bezel), --dv-glass (behind the image)
   and --dv-shadow (an "r, g, b" triple for the drop shadows). Images keep
   their own aspect: never cropped or stretched. */
.dv-cap { margin-top: 2px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.dv-scr { margin: 0; width: 100%; max-width: 540px; container-type: inline-size; }
.dv-scr-body { position: relative; padding: 2.8cqw; border-radius: 4.6cqw; background: var(--dv-bezel, var(--sheet)); box-shadow: inset 0 0 0 0.4cqw var(--dv-hi, var(--ink-soft)), 0 6cqw 12cqw -6cqw rgba(var(--dv-shadow, 0, 0, 0), 0.55); }
.dv-cam { position: absolute; top: 0.95cqw; left: 50%; width: 0.95cqw; height: 0.95cqw; margin-left: -0.475cqw; border-radius: 50%; background: var(--dv-hi, var(--ink-soft)); box-shadow: 0 0 0 0.25cqw var(--dv-bezel, var(--sheet)); }
.dv-scr-screen { position: relative; overflow: hidden; border-radius: 1.8cqw; background: var(--paper); }
.dv-scr-screen img, .dv-ph-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dv-ph { margin: 0; width: 100%; max-width: 250px; container-type: inline-size; flex: none; }
.dv-ph-body { position: relative; padding: 3.4cqw; border-radius: 15cqw; background: linear-gradient(150deg, var(--dv-hi, var(--ink-soft)) 0%, var(--dv-mid, var(--ink)) 40%, var(--dv-deep, var(--sheet)) 100%); box-shadow: inset 0 0 0 0.8cqw rgba(255, 255, 255, 0.10), inset 0 0 0 1.6cqw var(--dv-deep, var(--sheet)), 0 10cqw 24cqw -10cqw rgba(var(--dv-shadow, 0, 0, 0), 0.5), 0 1cqw 3cqw rgba(var(--dv-shadow, 0, 0, 0), 0.14); }
.dv-ph-body::before, .dv-ph-body::after { content: ''; position: absolute; width: 1.1cqw; border-radius: 1cqw; background: var(--dv-deep, var(--sheet)); }
.dv-ph-body::before { left: -0.9cqw; top: 22%; height: 14%; }
.dv-ph-body::after { right: -0.9cqw; top: 28%; height: 20%; }
.dv-ph-screen { position: relative; overflow: hidden; aspect-ratio: 390 / 844; border-radius: 11.6cqw; background: var(--dv-glass, var(--ink)); }

/* The go link (kit 1.8.0): a card's or section's way onward. Its own line under
   the copy, never inline in a sentence; Title Case words; an arrow that nudges
   on hover. <a class="go-link" href="...">For Practices <svg viewBox="0 0 24 24"
   aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a> */
.go-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 15px/1.2 var(--sans); color: var(--accent-deep); text-decoration: none; }
.go-link svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.go-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.go-link:hover svg, a:hover > * > .go-link svg, a:hover .go-link svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .go-link svg { transition: none; } .go-link:hover svg, a:hover .go-link svg { transform: none; } }
