/* Aliquam Consulting – utseende (design) för sidan Kontakt.
   Ändra bara här om du vet vad du gör: färger, typsnitt och avstånd styrs av den här filen. */
:root {
    --bg:        #000000;
    --bg-alt:    #000000;
    --paper:     #FFFFFF;
    --glass:     rgba(255,255,255,0.05);
    --glass-hi:  rgba(255,255,255,0.08);
    --border:    rgba(255,255,255,0.10);
    --border-hi: rgba(255,255,255,0.16);
    --ink:       #F3F3F4;
    --muted:     rgba(243,243,244,0.62);
    --faint:     rgba(243,243,244,0.42);
    --accent:    #8B3439;
    --accent-hi: #E36470;   /* the system's own dark-mode-safe tint of the brand red */
    --accent-deep: #6E2529;
  }
  /* light-theme override: redefining these custom properties inside a
     scoped section flips every child rule already written in terms of
     them (cards, icons, text, beams) — no separate light-mode markup,
     no structural changes, just a different set of token values. */
  section.theme-light {
    --bg:        #FFFFFF;
    --bg-alt:    #F5F4F1;
    --glass:     rgba(20,20,22,0.035);
    --glass-hi:  rgba(20,20,22,0.055);
    --border:    rgba(20,20,22,0.10);
    --border-hi: rgba(20,20,22,0.18);
    --ink:       #17171A;
    --muted:     rgba(23,23,26,0.62);
    --faint:     rgba(23,23,26,0.45);
    --accent-hi: #8B3439;
    background: var(--bg);
    color: var(--ink);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0; width: 100%;
    background: var(--bg);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }
  em { font-style: normal; color: var(--accent-hi); }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  @media (min-width: 768px) { .wrap { padding: 0 40px; } }

  .eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--faint);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }
  .eyebrow .mark { color: var(--accent-hi); }

  h1.headline, h2.headline {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0;
    color: var(--ink);
  }
  h1.headline { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
  h2.headline { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

  p.body-lg { font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 0; }
  p.body-md { font-size: 0.94rem; line-height: 1.6; color: var(--muted); margin: 0; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "Manrope", sans-serif;
    font-size: 14.5px; font-weight: 600;
    padding: 13px 24px;
    border-radius: 4px 10px 4px 4px;
    transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn.primary { background: var(--accent); color: #fff; }
  .btn.primary:hover { background: var(--accent-deep); }
  .btn.secondary { background: var(--glass); color: var(--ink); border: 1px solid var(--border); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .btn.secondary:hover { border-color: var(--border-hi); }

  .chrome-section { position: relative; overflow: hidden; }
  .chrome-section canvas.chromebg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .chrome-section .content { position: relative; z-index: 2; }

  .glass-card {
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 4px 20px 4px 4px;
    box-shadow: 0 6px 16px -10px rgba(0,0,0,0.2);
  }
  .glass-card:hover { border-color: var(--border-hi); }

  :root { --section-pad: 72px; }
  @media (min-width: 641px) { :root { --section-pad: clamp(100px, calc(5.5vw + 50px), 136px); } }
  section { padding: var(--section-pad) 0; position: relative; background: var(--bg); color: var(--ink); }
  section.alt { background: var(--bg-alt); }

  /* visually hidden but read by search engines and screen readers */
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  header.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,12,0.72);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
  @media (min-width: 768px) { .header-inner { padding: 0 40px; } }
  .logo-link { display: flex; align-items: center; gap: 12px; }
  .logo-link img { height: 34px; width: auto; filter: brightness(1.15) saturate(1.05); transition: transform .35s cubic-bezier(.16,1,.3,1); }
  .logo-link:hover img { transform: scale(1.07) rotate(-2deg); }
  .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
  .logo-text .name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink); }
  .logo-text .sub { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
  nav.main-nav { display: none; align-items: center; gap: 30px; }
  @media (min-width: 1024px) { nav.main-nav { display: flex; } }
  /* ===== mobile menu: below 1024px the same nav element becomes a dropdown panel under the
     header (one link list, so each page's "active" marking keeps working). Positioned absolute,
     not fixed — the header's backdrop-filter makes it the containing block for fixed children. ===== */
  .nav-toggle { display: none; }
  @media (max-width: 1023px) {
    .header-inner { gap: 12px; }
    .header-inner > .header-cta { margin-left: auto; white-space: nowrap; flex: none; }
    .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-left: 0; padding: 0; background: transparent; border: 1px solid var(--border-hi); border-radius: 4px 10px 4px 4px; cursor: pointer; flex: none; }
    .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
    header.site-header.nav-open nav.main-nav {
      display: flex; flex-direction: column; align-items: stretch; gap: 0;
      position: absolute; top: 100%; left: 0; right: 0;
      padding: 8px 24px 20px; background: #0a0a0c; border-bottom: 1px solid var(--border-hi);
      box-shadow: 0 24px 40px -16px rgba(0,0,0,0.7);
      max-height: calc(100vh - 76px); overflow-y: auto;
      animation: navDrop .28s cubic-bezier(.16,1,.3,1);
    }
    header.site-header.nav-open nav.main-nav a { font-size: 1.05rem; padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
    header.site-header.nav-open nav.main-nav a:last-child { border-bottom: none; }
    header.site-header.nav-open nav.main-nav a::after { display: none; }
    header.site-header.nav-open nav.main-nav a.active { color: var(--accent-hi); border-bottom: 1px solid var(--border); }
  }
  @media (max-width: 767px) { header.site-header.nav-open nav.main-nav { padding: 8px 24px 20px; } }
  @media (min-width: 768px) and (max-width: 1023px) { header.site-header.nav-open nav.main-nav { padding: 8px 40px 24px; } }
  @media (max-width: 399px) { .header-inner > .header-cta { padding-left: 14px; padding-right: 14px; font-size: 0.85rem; } }
  @media (max-width: 359px) {
    .header-inner { padding: 0 16px; gap: 10px; }
    .logo-link { gap: 8px; } .logo-link img { height: 30px; }
    .header-inner > .header-cta { padding: 11px 12px; font-size: 0.8rem; }
    .nav-toggle { margin-left: 0; }
    header.site-header.nav-open nav.main-nav { padding: 8px 16px 20px; }
  }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { header.site-header.nav-open nav.main-nav { animation: none; } .nav-toggle span { transition: none; } }
  nav.main-nav a { font-size: 0.9rem; color: var(--muted); padding: 8px 0; transition: color 0.15s; }
  nav.main-nav a:hover { color: var(--ink); }
  nav.main-nav a.active { color: var(--accent-hi); font-weight: 600; border-bottom: 2px solid var(--accent-hi); }

  footer.site-footer { background: #060607; color: var(--muted); border-top: 1px solid var(--border); padding: 56px 0 28px; }
  .footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 32px; }
  @media (min-width: 768px) { .footer-grid { grid-template-columns: 7fr 5fr; } }
  .footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .footer-brand .mark { font-family: "JetBrains Mono", monospace; color: var(--accent-hi); }
  .footer-brand .name { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--ink); }
  .footer-eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 8px; display: block; }
  .footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; color: var(--faint); }
  @media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
  /* ================= shared site footer (.sf) — the same on every page; markup in shared/site_footer.py ================= */
  .sf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-bottom: 36px; }
  @media (min-width: 600px) and (max-width: 899px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } .sf-col-brand { grid-column: 1 / -1; } }
  @media (min-width: 900px) { .sf-grid { grid-template-columns: 1.7fr 0.9fr 1.2fr; gap: 48px; } }
  .sf-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .sf-logo { display: block; height: 40px; width: auto; flex: none; filter: brightness(1.15) saturate(1.05); }
  .sf-name { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
  .sf-sub { display: block; margin-top: 2px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
  .sf-tagline { margin: 0; max-width: 36ch; font-size: 0.88rem; line-height: 1.7; color: var(--faint); }
  .sf-eyebrow { display: block; margin-bottom: 12px; font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
  .sf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .sf-links li { font-size: 0.88rem; line-height: 1.5; color: var(--faint); }
  .sf-links a { font-size: 0.9rem; color: var(--muted); display: inline-block; transition: color .2s ease, transform .3s cubic-bezier(.16,1,.3,1); }
  .sf-links a:hover { color: var(--ink); transform: translateX(4px); }
  .sf-plain a:hover { transform: none; }
  .sf-team { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; }
  .sf-team li { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
  .sf-team-role { color: var(--faint); }
  .sf-team-role::before { content: " · "; }
  .sf-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
  .sf-bottom p { margin: 0; font-size: 0.85rem; color: var(--faint); }
  .sf-bottom .sf-eyebrow { margin: 0; }
  @media (max-width: 1023px), (pointer: coarse) { .sf-links { gap: 0; } .sf-links li { padding: 6px 0; } .sf-links a { padding: 2px 0; } }
  @media (prefers-reduced-motion: reduce) { .sf-links a { transition: none; } }



  /* ================= base additions ================= */
  .icon { display: inline-flex; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
  .icon svg { width: 100%; height: 100%; display: block; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  section[id] { scroll-margin-top: 76px; }
  main > section:first-child { padding-top: clamp(56px, 6vw, 96px); }   /* the page opens straight on its first section */

  /* heading column + content column (used by every section) */
  .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  @media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
  @media (min-width: 1024px) and (min-height: 700px) { .split-sticky > .split-left { position: sticky; top: 108px; } }
  .split-left .body-lg { margin-top: 18px; max-width: 480px; }

  /* ================= direktkontakt: one bordered grid of cards (5 people + the quick-pick) ================= */
  .team-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: clamp(36px, 5vw, 56px); }
  @media (min-width: 900px) { .team-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: end; } }
  .team-head .body-lg { max-width: 540px; }
  .team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--border-hi); border: 1px solid var(--border-hi); border-radius: 4px 20px 4px 4px; overflow: hidden; }
  @media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .team-cell { display: flex; flex-direction: column; gap: 20px; padding: 24px; min-width: 0; background: #0a0a0c; transition: background .25s ease; }
  @media (min-width: 640px) { .team-cell { padding: 32px; } }
  .team-cell:hover { background: #111114; }
  .team-id { display: flex; align-items: center; gap: 16px; }
  .avatar { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border-hi); background: var(--glass); display: flex; align-items: center; justify-content: center; }
  .avatar-fallback { font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
  .avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1); transition: filter .3s ease; }   /* a real photo goes here: grey until the card is hovered; top-anchored because the cover crop window is already ~75% of a tall portrait's height, so anchoring top keeps the head fully in frame */
  .team-cell:hover .avatar-img { filter: grayscale(0); }
  .team-who { min-width: 0; }
  /* the sixth cell: the quick-pick, in the accent */
  .team-cell.quick { justify-content: center; align-items: flex-start; background: linear-gradient(160deg, #1d0f12 0%, #0d0708 72%); box-shadow: inset 0 2px 0 var(--accent-hi); }
  .team-cell.quick:hover { background: linear-gradient(160deg, #241315 0%, #100809 72%); }
  h3.quick-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
  .quick p { margin: 0; }
  .quick p a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .quick p a:hover { color: var(--ink); }

  h3.team-name { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
  .team-role { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
  .team-actions { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
  .person-link { display: inline-flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; transition: color .2s ease; }
  .person-link .icon { width: 16px; height: 16px; color: var(--accent-hi); }
  a.person-link:hover { color: var(--ink); }
  a.person-link:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
  .person-link.is-placeholder { color: var(--faint); }
  /* ================= besök: the fact plate ================= */
  .facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border-hi); border-left: 1px solid var(--border-hi); }
  @media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .fact { padding: 30px 28px 32px; border-right: 1px solid var(--border-hi); border-bottom: 1px solid var(--border-hi); transition: background .3s ease; }
  .fact:hover { background: var(--glass); }
  .fact dt { display: flex; align-items: center; gap: 12px; margin: 0; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
  .fact dt .icon { width: 24px; height: 24px; color: var(--accent-hi); }
  .fact dd { margin: 16px 0 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); }
  .fact a { border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
  .fact a:hover { color: var(--accent-hi); border-color: var(--accent-hi); }

  /* ================= faq ================= */
  .faq { border-top: 1px solid var(--border); }
  .faq-item { position: relative; border-bottom: 1px solid var(--border); }
  .faq-item .faq-h { margin: 0; font-size: inherit; font-weight: inherit; }
  .faq-top { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 20px; padding: 26px 8px 26px 4px; cursor: pointer; }
  .faq-top:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -2px; }
  .faq-n { min-width: 26px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--faint); transition: color .3s ease; }
  .faq-q { flex: 1; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
  .faq-plus { flex: none; width: 34px; height: 34px; position: relative; border: 1px solid var(--border-hi); border-radius: 50%; transition: border-color .3s ease, background .3s ease; }
  .faq-plus span { position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--accent-hi); transform: translate(-50%, -50%); transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease; }
  .faq-plus span.vert { transform: translate(-50%, -50%) rotate(90deg); }
  .faq-item:hover .faq-n, .faq-item.open .faq-n { color: var(--accent-hi); }
  .faq-item:hover .faq-plus { border-color: var(--accent-hi); }
  .faq-item.open .faq-plus { background: rgba(227,100,112,0.10); border-color: var(--accent-hi); }
  .faq-item.open .faq-plus span.vert { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
  .faq-bottom { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.16,1,.3,1); }
  .faq-item.open .faq-bottom { grid-template-rows: 1fr; }
  .faq-bottom-inner { overflow: hidden; visibility: hidden; transition: visibility 0s .4s; }
  .faq-item.open .faq-bottom-inner { visibility: visible; transition-delay: 0s; }
  .faq-bottom p { margin: 0; padding: 0 60px 28px 50px; font-size: 0.98rem; line-height: 1.7; color: var(--muted); }
  /* phones: answers use the full width (the button column only matters on the question row);
     left edge stays aligned with the question text */
  @media (max-width: 639px) {
    .faq-top { gap: 14px; padding: 22px 4px 22px 2px; }
    .faq-bottom p { padding: 0 4px 24px 42px; font-size: 0.96rem; }
  }

  /* ================= form ================= */
  .brief { list-style: none; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
  .brief li { display: flex; align-items: flex-start; gap: 14px; }
  .brief .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-hi); flex: none; }
  .brief-label { display: block; font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
  .brief-value { display: block; margin-top: 3px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink); }
  a.brief-value { transition: color .2s ease; }
  a.brief-value:hover { color: var(--accent-hi); }

  .contact-form { padding: 40px; display: flex; flex-direction: column; gap: 22px; }
  @media (max-width: 640px) { .contact-form { padding: 26px 20px; } }
  .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
  .field label, .topics legend { font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
  .field input, .field textarea {
    width: 100%; padding: 12px 14px; font-size: 0.95rem; font-family: "Manrope", sans-serif;
    background: #FFFFFF; border: 1px solid var(--border-hi); border-radius: 4px; color: var(--ink);
    transition: border-color .2s ease, box-shadow .25s ease;
  }
  .field textarea { resize: vertical; min-height: 130px; }
  .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(139,52,57,0.12); }
  .field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  @media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .topics { border: 0; padding: 0; margin: 0; min-width: 0; }
  .topics legend { padding: 0; margin-bottom: 12px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { position: relative; display: inline-flex; }
  .chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .chip span { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 12px; border: 1px solid var(--border-hi); border-radius: 999px; background: #FFFFFF; font-size: 0.86rem; line-height: 1.2; color: var(--muted); cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
  .chip span::before { content: ""; flex: none; width: 15px; height: 15px; border: 1.5px solid var(--faint); border-radius: 50%; transition: background .2s ease, border-color .2s ease; }
  .chip:hover span { border-color: var(--accent-hi); color: var(--ink); }
  .chip input:checked + span { border-color: var(--accent-hi); background: rgba(139,52,57,0.07); color: var(--ink); }
  .chip input:checked + span::before { border-color: var(--accent-hi); background: var(--accent-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
  .chip input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
  .consent-row { display: flex; align-items: flex-start; gap: 10px; }
  .consent-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
  .consent-row label { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .contact-form .btn { justify-content: center; width: 100%; }
  .form-success { padding: 56px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; outline: none; }
  .form-success[hidden], .contact-form[hidden] { display: none; }
  .success-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(75,107,98,0.12); color: #2F5247; display: flex; align-items: center; justify-content: center; }
  .success-ico .icon { width: 32px; height: 32px; }
  .form-success h3 { margin: 6px 0 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
  .form-success p { margin: 0; max-width: 440px; }
  .form-success .btn { margin-top: 12px; }
  @keyframes successIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
  .form-success:not([hidden]) { animation: successIn .55s cubic-bezier(.16,1,.3,1); }

  /* ================= footer (this page's own content) ================= */
  .footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 32px; }
  @media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
  .footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
  .footer-brand .mark { color: var(--accent-hi); }
  .footer-name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.35rem; color: var(--ink); margin: 0; }
  .footer-col p { margin: 0 0 8px; font-size: 0.88rem; color: var(--faint); line-height: 1.7; }
  .footer-col p a { transition: color .2s ease; }
  .footer-col p a:hover { color: var(--ink); }
  .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .footer-links a { font-size: 0.9rem; color: var(--muted); display: inline-block; transition: color .2s ease, transform .3s cubic-bezier(.16,1,.3,1); }
  .footer-links a:hover { color: var(--ink); transform: translateX(4px); }
  .footer-bottom .dot { color: var(--accent-hi); }
  .footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 6px 12px; }

  /* ================= touch / small screens =================
     - form fields at 16px: iOS Safari zooms the whole page into any field smaller than that
     - contact links, chips, footer links and the consent box get finger-sized hit areas
     desktop with a mouse keeps its original, tighter spacing */
  @media (max-width: 1023px), (pointer: coarse) {
    .field input, .field textarea { font-size: 16px; }
    .team-actions { gap: 0; padding-top: 10px; }
    .person-link { display: flex; min-height: 40px; font-size: 13px; }
    .chip span { min-height: 42px; padding-top: 10px; padding-bottom: 10px; }
    .consent-row { gap: 12px; }
    .consent-row input { width: 20px; height: 20px; margin-top: 1px; }
    .consent-row label { font-size: 13.5px; }
    .footer-links { gap: 0; }
    .footer-links a { padding: 7px 0; }
  }
  @media (prefers-reduced-motion: reduce) { .team-cell, .faq-bottom, .faq-plus span, .chip span, .fact { transition: none; } .form-success:not([hidden]) { animation: none; } }
  h2.headline.headline-lg { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }  /* the FAQ heading keeps its former H1 size */

  /* ================= motion (all of it off for prefers-reduced-motion) ================= */
  .scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: var(--accent-hi); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

  /* nav: underline slides in from the left on hover */
  nav.main-nav a { position: relative; }
  nav.main-nav a:not(.active)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent-hi); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.16,1,.3,1); }
  nav.main-nav a:not(.active):hover::after { transform: scaleX(1); }

  /* buttons: lift, glow, and the arrow nudges forward */
  .btn { transition: background 0.2s ease, transform 0.25s cubic-bezier(.16,1,.3,1), border-color 0.2s ease, box-shadow 0.25s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px); }
  .btn.primary:hover { box-shadow: 0 12px 22px -12px rgba(139,52,57,0.75); }
  .btn .icon { transition: transform .25s cubic-bezier(.16,1,.3,1); }
  .btn:hover .icon { transform: translateX(4px); }
  .contact-actions a { transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s ease, border-color .2s ease, box-shadow .25s ease; }
  .contact-actions a:hover { transform: translateY(-2px); }

  /* form: fields respond to focus, success message slides in */
  .field input, .field textarea { transition: border-color .2s ease, background .2s ease, box-shadow .25s ease; }
  .field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(139,52,57,0.12); }
  @keyframes feedbackIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  .form-feedback.show { animation: feedbackIn .5s cubic-bezier(.16,1,.3,1) backwards; }

  @keyframes revealUp    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes revealLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
  @keyframes revealRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
  @keyframes revealScale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes tilePop     { from { opacity: 0; transform: translateY(18px) scale(.88); } to { opacity: 1; transform: none; } }
  @keyframes tileFloat   { from { transform: translateY(0); } to { transform: translateY(-4px); } }

  @media (prefers-reduced-motion: no-preference) {
    /* scroll reveals: hidden only until JS marks them in view. `backwards` fill (not `forwards`) so hover transforms keep working afterwards */
    .js .reveal { opacity: 0; }
    .js .reveal.is-in { opacity: 1; animation: revealUp .9s cubic-bezier(.16,1,.3,1) backwards; animation-delay: var(--d, 0s); }
    .js .reveal.from-left.is-in  { animation-name: revealLeft; }
    .js .reveal.from-right.is-in { animation-name: revealRight; }
    .js .reveal.from-scale.is-in { animation-name: revealScale; }

    /* hero: staggered entrance on load, then the tiles drift gently */
    .js #hero-section .eyebrow   { animation: revealUp .9s cubic-bezier(.16,1,.3,1) .05s backwards; }
    .js #hero-section h1         { animation: revealUp .9s cubic-bezier(.16,1,.3,1) .15s backwards; }
    .js #hero-section p.body-lg  { animation: revealUp .9s cubic-bezier(.16,1,.3,1) .28s backwards; }
    .js #hero-section .hero-ctas { animation: revealUp .9s cubic-bezier(.16,1,.3,1) .42s backwards; }
    .js .cluster-badge {
      animation: tilePop .85s cubic-bezier(.16,1,.3,1) calc(.3s + var(--i, 0) * .09s) backwards,
                 tileFloat 7s ease-in-out calc(1.7s + var(--i, 0) * .35s) infinite alternate;
    }
  }
