  :root {
    --ink: #0e2a3b;
    --ink-soft: #3d5566;
    --paper: #f4f5f7;
    --paper-deep: #e8eaee;
    --care: #1d8a72;
    --care-bright: #5cc8a8; /* care teal lifted for dark grounds: 8.1:1 on the footer navy */
    --care-soft: #d7ece5;
    --care-deep: #16705c; /* care teal for small text: 4.9:1 on paper */
    --line: rgba(14, 42, 59, 0.14);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
  }
  * { 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; --sheet: #0b2130; }
  .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;
    background: rgba(11, 33, 48, 0.86);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
  .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; }
  .dc-mark { display: block; width: 30px; height: 30px; flex: 0 0 auto; }
  .dc-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; }
  @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. */
  .site-header-profile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px; padding: 0; color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 200ms ease, transform 0.2s ease; }
  .site-header-profile:hover { color: #fff; }
  .site-header-profile:active { transform: scale(0.95); }
  .site-header-profile .profile-svg { display: block; }
  .site-header-avatar { display: block; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
  @media (prefers-reduced-motion: reduce) { .site-header-profile:active { transform: none; } }
  .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 .dc-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 .dc-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;
  }
  .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 .dc-mark { width: 3.25rem; height: 3.25rem; }
  .site-footer-logo-link .dc-word { font-size: 26px; }
  .site-footer-col-title { 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 stays canon orange in every brand. */
  .site-footer-built-link { color: var(--care-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(--care); 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(--care); }
  .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(--care); }
  .legal .callout { margin-top: 16px; border: 1px solid rgba(200, 85, 61, 0.35); background: rgba(200, 85, 61, 0.06); border-radius: 14px; padding: 16px 20px; color: var(--ink); }
