/* Shared stylesheet for the nine /services/<slug>/ pages.
 *
 * Every one of those pages carried a byte-identical copy of this block inline
 * in its <head>: 14 KB of CSS repeated nine times, downloaded again on every
 * page view, and the main reason a site audit measured their text-to-HTML
 * ratio at around 9%. One cached request now covers all nine.
 *
 * Extracted verbatim. The <link> that replaces the old <style> sits in the
 * same place in each <head>, so the cascade order is unchanged - in
 * particular it still comes before the <style data-nav-synced> block that
 * scripts/sync-static-nav.mjs maintains, which overrides some of these rules.
 *
 * Edit this file to restyle all nine pages at once. The ?v= hash in each
 * page's <link> is checked against this file by scripts/check-nav.mjs and
 * re-stamped by `npm run sync:nav`.
 */
/* ============================================================
     THEME - exact tokens from isaacs-co.com (warm-plum / inter)
     ============================================================ */
  :root{
    --pink:#A01F62;
    --purple:#562463;
    --plum:#832163;
    --ink:#1a1738;
    --ink-soft:#3b3654;
    --muted:#6b6680;
    --bg:#faf7f4;
    --card:#ffffff;
    --line:rgba(26,23,56,.10);
    --line-strong:rgba(26,23,56,.18);
    /* Boundary of anything that IS a control - ghost buttons, the burger and
       its close twin, the compact call pill, the social tiles. WCAG 1.4.11
       wants 3:1; --line-strong is 1.46:1 on --card, so it stays on decoration
       (the dashed rule under a team card, section rules), which 1.4.11
       exempts. 3.15:1 on --card #ffffff, 3.10:1 on --bg #faf7f4. Same value as
       src/layouts/Layout.astro and src/spa/home.template.html. */
    --line-control:rgba(26,23,56,.48);
    --font-body:'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-mono:'JetBrains Mono', ui-monospace, monospace;
  }

  *,*::before,*::after{box-sizing:border-box}
  html,body{margin:0;padding:0}
  html{scroll-behavior:smooth;scroll-padding-top:80px}
  body{
    font-family:var(--font-body);
    background:var(--bg);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }
  img{max-width:100%}
  /* Horizontal overflow guard. A single unbreakable string - the office email
     address, 36 characters with no break opportunity - set the min-content
     width of the footer column it sits in and pushed that column past the
     viewport, which is what let the page be dragged sideways on a phone. The
     mailto rule is the fix; `clip` on the root is the guard against the next
     string that does it. `clip` rather than `hidden` because it never creates
     a scroll container, so the sticky header and smooth scrolling are
     untouched; overflow-x:hidden is the fallback for browsers without it.
     Both propagate from the root to the viewport, which is why this moved off
     <body>: a non-visible overflow on <body> stops propagating once the root
     has one, and <body> would become a scroller with a broken sticky header. */
  html{overflow-x:hidden;overflow-x:clip}
  a[href^="mailto:"]{overflow-wrap:anywhere}
  em{font-style:italic;color:var(--plum)}
  .container{max-width:1320px;margin:0 auto;padding:0 32px}
  .h-display{font-weight:600;color:var(--ink);margin:0;text-wrap:balance}
  .section{position:relative}

  /* ---------- eyebrow ---------- */
  .eyebrow{
    display:inline-flex;align-items:center;gap:10px;
    font-family:var(--font-mono);
    font-size:12px;letter-spacing:.14em;text-transform:uppercase;
    color:var(--plum);
  }
  .eyebrow::before{content:"";width:24px;height:1px;background:currentColor;opacity:.6}

  /* ---------- buttons ---------- */
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:10px;
    text-align:center;
    padding:14px 22px;border-radius:999px;
    font-size:15px;font-weight:500;
    text-decoration:none;
    border:1px solid transparent;
    transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
    cursor:pointer;
  }
  .btn:hover{transform:translateY(-1px)}
  .btn-primary{background:var(--plum);color:#fff}
  .btn-primary:hover{background:color-mix(in oklab, var(--plum) 88%, #000)}
  .btn-ghost{background:transparent;color:var(--ink);border-color:var(--line-control)}
  .btn-ghost:hover{background:var(--card);border-color:var(--ink)}
  .btn:focus-visible{outline:3px solid var(--plum);outline-offset:3px}
  input:focus-visible,select:focus-visible,textarea:focus-visible{
    outline:2px solid var(--plum);outline-offset:2px;border-color:var(--plum);
  }

  /* ---------- nav (matches live site) ---------- */
  header.site{
    position:sticky;top:0;z-index:50;
    background:transparent;
    border-bottom:1px solid transparent;
    transition:all .25s ease;
  }
  header.site.scrolled{
    background:color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);
    border-bottom:1px solid var(--line);
  }
  .nav-inner{display:flex;align-items:center;justify-content:space-between;padding-top:18px;padding-bottom:18px}
  .nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
  .nav-logo img{height:auto;max-height:56px;width:auto;display:block}
  .nav-logo .text-logo{display:none;line-height:1.15}
  .nav-logo .text-logo .l1{font-size:12px;color:var(--muted);display:block}
  .nav-logo .text-logo .l2{font-weight:600;font-size:19px;display:block}
  .nav-logo .text-logo .l2 span{color:var(--plum)}
  nav.links{display:flex;align-items:center;gap:32px}
  .nav-link{
    font-size:14px;color:var(--ink-soft);text-decoration:none;font-weight:500;
    position:relative;transition:color .2s ease;
  }
  .nav-link:hover{color:var(--plum)}
  .nav-link.current{color:var(--plum)}
  .nav-cta{padding:10px 18px;font-size:14px}

  /* ---------- page hero ---------- */
  .page-hero{padding-top:60px;padding-bottom:80px}
  .page-hero h1{margin-top:20px;font-size:clamp(48px,6.5vw,104px);line-height:1;letter-spacing:-.025em}
  .page-hero p{font-size:19px;line-height:1.55;color:var(--ink-soft);max-width:560px;margin:28px 0 0}

  /* ---------- person cards ---------- */
  .photo-card{
    position:relative;aspect-ratio:4/5;border-radius:18px;overflow:hidden;
    border:1px solid var(--line);
    background:linear-gradient(160deg, #f1eae3 0%, #e6dad0 100%);
  }
  .photo-card img{
    position:absolute;inset:0;width:100%;height:100%;
    object-fit:cover;object-position:center 18%;
  }
  .photo-card .ph-initials{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    font-weight:600;font-size:72px;letter-spacing:-.02em;color:rgba(26,23,56,.22);
  }
  .photo-card .overlay{
    position:absolute;left:0;right:0;bottom:0;
    padding:56px 28px 24px;
    background:linear-gradient(180deg, transparent 0%, rgba(26,23,56,.55) 45%, rgba(26,23,56,.95) 100%);
    color:#fff;
  }
  .overlay .p-name{font-weight:600;font-size:30px;line-height:1;letter-spacing:-.01em;color:#fff}
  .overlay .p-cred{
    font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;
    text-transform:uppercase;opacity:.95;margin-top:8px;color:#fff;
  }

  /* ---------- featured (George) ---------- */
  .featured{
    padding-top:120px;padding-bottom:120px;
    display:grid;grid-template-columns:.9fr 1.2fr;gap:64px;align-items:center;
  }
  .featured h2{font-size:clamp(34px,4.2vw,58px);line-height:1.05;letter-spacing:-.02em;margin:20px 0}
  .featured p{font-size:18px;line-height:1.65;color:var(--ink-soft);margin:0 0 18px}
  .featured p:last-of-type{margin-bottom:32px}

  /* ---------- team grid ---------- */
  .team{padding-top:0;padding-bottom:120px}
  .team-head h2{font-size:clamp(34px,4.2vw,58px);line-height:1.05;letter-spacing:-.02em;margin:20px 0 48px}
  .team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
  .member .overlay .p-name{font-size:24px}
  .member .bio{font-size:16px;line-height:1.65;color:var(--ink-soft);margin:18px 4px 0}
  .li-link{
    display:inline-flex;align-items:center;gap:6px;
    margin-left:8px;
    font-size:13px;font-weight:500;color:var(--plum);
    text-decoration:none;white-space:nowrap;
    vertical-align:baseline;
  }
  .li-link:hover{text-decoration:underline}
  .li-link svg{position:relative;top:1px}
  .member .todo{
    font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;
    text-transform:uppercase;color:var(--muted);
    border-top:1px dashed var(--line-strong);
    margin:16px 4px 0;padding-top:12px;
  }

  /* ---------- CTA ---------- */
  .cta{border-top:1px solid var(--line);padding:100px 0 120px}
  .cta h2{font-size:clamp(34px,4.2vw,58px);line-height:1.05;letter-spacing:-.02em;margin:20px 0}
  .cta p{font-size:18px;line-height:1.65;color:var(--ink-soft);margin:0 0 32px;max-width:560px}
  .cta .btns{display:flex;gap:12px;flex-wrap:wrap}

  /* ---------- footer (matches live site) ---------- */
  footer.site{border-top:1px solid var(--line);padding:64px 0 36px}
  .f-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:48px}
  .f-brand img{height:52px;width:auto;display:block}
  .f-brand p{font-size:14px;line-height:1.6;color:var(--ink-soft);margin:18px 0 0;max-width:360px}
  .f-social{margin-top:18px;display:flex;gap:12px}
  .f-social a{
    display:inline-flex;align-items:center;justify-content:center;
    width:36px;height:36px;border-radius:8px;
    border:1px solid var(--line-control);color:var(--ink-soft);
    text-decoration:none;transition:color .2s, border-color .2s;
  }
  .f-social a:hover{color:var(--plum);border-color:var(--plum)}
  .f-col-title{
    font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;
    text-transform:uppercase;color:var(--plum);margin-bottom:16px;
  }
  .f-col ul{list-style:none;padding:0;margin:0}
  .f-col li{margin-bottom:10px}
  .f-col a{font-size:14px;color:var(--ink-soft);text-decoration:none;transition:color .2s}
  .f-col a:hover{color:var(--plum)}
  .f-bottom{
    margin-top:56px;padding-top:24px;border-top:1px solid var(--line);
    display:grid;grid-template-columns:1fr 1fr;gap:24px;
    font-size:12px;color:var(--muted);
    font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;
  }
  .f-bottom .col{display:flex;flex-direction:column;gap:6px}
  .f-bottom .col.right{text-align:right}
  .f-bottom .addr{text-transform:none;letter-spacing:0;font-family:inherit}

  /* ---------- responsive ---------- */
  @media (max-width:960px){
    .featured{grid-template-columns:1fr;gap:40px;padding-top:80px;padding-bottom:80px}
    .team-grid{grid-template-columns:1fr 1fr}
    nav.links{display:none}
    .f-grid{grid-template-columns:1fr 1fr}
  }
  @media (max-width:640px){
    .container{padding:0 22px}
    /* The lockup is the header item that gives way when the row is tight;
       min-width:0 is what lets it, and it is scoped here so a wide screen
       cannot squeeze it the same way. */
    .nav-logo{min-width:0}
    .nav-logo img{max-height:40px;min-width:0}
    .page-hero{padding-top:40px;padding-bottom:56px}
    .team-grid{grid-template-columns:1fr}
    .overlay .p-name{font-size:26px}
    .f-grid{grid-template-columns:1fr}
    .f-bottom{grid-template-columns:1fr}
    .f-bottom .col.right{text-align:left}
  }
  @media (prefers-reduced-motion:reduce){
    *{transition:none !important}
    html{scroll-behavior:auto}
  }

  /* ---------- service pages ---------- */
  .svc-hero{padding-top:60px;padding-bottom:44px}
  .svc-hero h1{margin-top:20px;font-size:clamp(40px,5.6vw,88px);line-height:1.02;letter-spacing:-.025em}
  .svc-hero p{font-size:19px;line-height:1.6;color:var(--ink-soft);max-width:660px;margin:28px 0 0}
  .svc-block{padding-top:52px;padding-bottom:52px;border-top:1px solid var(--line)}
  .svc-block h2{font-size:clamp(28px,3.4vw,46px);line-height:1.08;letter-spacing:-.02em;margin:18px 0 22px}
  .svc-block p{font-size:18px;line-height:1.65;color:var(--ink-soft);margin:0;max-width:680px}
  .svc-list{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:16px;max-width:760px}
  .svc-list li{position:relative;padding-left:36px;font-size:17px;line-height:1.55;color:var(--ink-soft)}
  .svc-list li::before{content:"";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:999px;background:color-mix(in oklab, var(--plum) 12%, transparent);border:1px solid var(--plum)}
  .svc-list li::after{content:"";position:absolute;left:8px;top:6px;width:6px;height:10px;border:solid var(--plum);border-width:0 2px 2px 0;transform:rotate(45deg)}
  /* Longer-form service copy (September 2026). The pages grew from one
     paragraph per section to several, with h3 sub-headings, inline links in
     the body copy and an FAQ block; .svc-block p{margin:0} above was written
     for the single-paragraph layout, so consecutive paragraphs need their
     spacing restored here. */
  .svc-block p + p{margin-top:14px}
  .svc-block h3{font-size:20px;line-height:1.3;letter-spacing:-.01em;color:var(--ink);margin:30px 0 10px;font-weight:600;max-width:680px}
  .svc-block p a{color:var(--plum);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
  .svc-block p a:hover{text-decoration-thickness:2px}
  .cta p a{color:var(--plum)}
  /* FAQs: visible h3/p pairs rather than an accordion, so every answer is in
     the raw HTML for readers and crawlers alike. The FAQPage JSON-LD in each
     page's head mirrors this markup word for word. */
  .svc-faq h3{margin-top:34px}
  .svc-faq h3:first-of-type{margin-top:24px}
  .svc-other{padding-top:52px;padding-bottom:96px;border-top:1px solid var(--line)}
  .svc-other-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:24px}
  .svc-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-radius:14px;border:1px solid var(--line);background:var(--card);text-decoration:none;color:var(--ink);font-weight:500;font-size:15px;line-height:1.35;transition:border-color .2s ease, transform .15s ease}
  .svc-card:hover{border-color:var(--plum);transform:translateY(-2px)}
  .svc-card .arw{color:var(--plum)}
  @media (max-width:960px){ .svc-other-grid{grid-template-columns:1fr 1fr} }
  @media (max-width:640px){ .svc-other-grid{grid-template-columns:1fr} }

  /* ---------- related guides ---------- */
  /* The blog posts each service page links to, between the last body section
     and the CTA. Same card idiom as .svc-card above, but two or three per row
     rather than four and with the title allowed to wrap: these are article
     headlines, not two-word service names, and the whole point of the block is
     that the link text is the guide's own title. Block generated by
     scripts/sync-static-nav.mjs from src/data/related-guides.js. */
  .svc-guides{padding-top:52px;padding-bottom:0;border-top:1px solid var(--line)}
  .svc-guides h2{font-size:clamp(28px,3.4vw,46px);line-height:1.08;letter-spacing:-.02em;margin:18px 0 22px}
  .svc-guides-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:24px}
  .svc-guide{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;border-radius:14px;border:1px solid var(--line);background:var(--card);text-decoration:none;color:var(--ink);font-weight:500;font-size:16px;line-height:1.4;transition:border-color .2s ease, transform .15s ease}
  .svc-guide:hover{border-color:var(--plum);transform:translateY(-2px)}
  .svc-guide .arw{color:var(--plum);flex-shrink:0}

  /* ---------- mobile nav ---------- */
  .nav-toggle{
    display:none;
    background:transparent;border:1px solid var(--line-control);
    width:46px;height:46px;flex-shrink:0;border-radius:11px;
    align-items:center;justify-content:center;cursor:pointer;color:var(--ink);
    transition:border-color .2s ease;
  }
  .nav-toggle:hover{border-color:var(--ink)}
  .mobile-menu{
    position:fixed;inset:0;z-index:60;background:var(--bg);
    padding:88px 22px 48px;overflow-y:auto;display:none;
  }
  .mobile-menu.open{display:block}
  .mobile-menu .mm-close{
    position:absolute;top:18px;right:20px;width:46px;height:46px;border-radius:11px;
    background:transparent;border:1px solid var(--line-control);color:var(--ink);cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;
  }
  .mobile-menu nav{display:flex;flex-direction:column}
  .mobile-menu a{
    display:flex;align-items:center;justify-content:space-between;
    padding:20px 4px;border-bottom:1px solid var(--line);
    text-decoration:none;color:var(--ink);font-size:22px;font-weight:500;letter-spacing:-.005em;
  }
  .mobile-menu a:hover{color:var(--plum)}
  .mobile-menu a.mm-cta{
    justify-content:center;margin-top:26px;border:none;color:#fff;background:var(--plum);
    border-radius:999px;font-size:16px;font-weight:500;padding:16px;
  }
  @media (max-width:960px){
    .nav-toggle{display:inline-flex}
  }

  /* ---------- mobile layout (<=768px): full-width, compact ---------- */
  @media (max-width:768px){
    .container{padding:0 24px}
    .eyebrow{font-size:11px;letter-spacing:.05em}
    .eyebrow::before{display:none}

    /* hero */
    .page-hero{padding-top:24px;padding-bottom:12px}
    .page-hero h1{font-size:clamp(28px,8vw,36px);line-height:1.12;margin-top:12px}
    .page-hero p{font-size:16px;line-height:1.6;margin-top:14px;max-width:none}
    .svc-hero{padding-top:24px;padding-bottom:12px}
    .svc-hero h1{font-size:clamp(26px,7.4vw,34px);line-height:1.14;margin-top:12px}
    .svc-hero p{font-size:16px;line-height:1.6;margin-top:14px;max-width:none}

    /* George featured */
    .featured{padding-top:12px;padding-bottom:18px;gap:18px}
    .featured .photo-card{width:auto;max-width:none;justify-self:stretch;margin:0 -8px}
    .featured h2{font-size:clamp(25px,6.6vw,31px);line-height:1.16;margin:12px 0}
    .featured p{font-size:16px;line-height:1.6;margin-bottom:12px}

    /* wider team */
    .team{padding-top:18px;padding-bottom:18px}
    .team-head h2{font-size:clamp(25px,6.6vw,31px);line-height:1.16;margin:12px 0 20px}
    .team-grid{gap:20px}
    .member .bio{font-size:16px;line-height:1.55;margin:14px 2px 0}

    /* image-frame cards -> full-width rounded image, no bordered box */
    .photo-card{border:none;border-radius:14px}
    .overlay{padding:38px 16px 16px}

    /* CTA */
    .cta{padding-top:18px;padding-bottom:32px}
    .cta h2{font-size:clamp(25px,6.6vw,31px);line-height:1.16}
    .cta p{font-size:16px;line-height:1.6;margin-bottom:20px}

    /* service content blocks */
    .svc-block{padding-top:18px;padding-bottom:18px}
    .svc-block h2{font-size:clamp(24px,6.2vw,30px);line-height:1.18;margin:12px 0 14px}
    .svc-block p{font-size:16px;line-height:1.6}
    .svc-list{gap:14px}
    .svc-list li{font-size:16px;line-height:1.55;padding-left:34px}
    .svc-other{padding-top:18px;padding-bottom:36px}
    .svc-other h2{font-size:clamp(24px,6.2vw,30px);line-height:1.18;margin-bottom:6px}
    .svc-card{padding:16px}
    .svc-guides{padding-top:18px}
    .svc-guides h2{font-size:clamp(24px,6.2vw,30px);line-height:1.18;margin-bottom:6px}
    .svc-guide{padding:16px;font-size:15px}

    /* footer: match homepage mobile treatment */
    .f-brand img{height:40px}
    .f-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
    .f-bottom{grid-template-columns:1fr}
    .f-bottom .col.right{text-align:left}
  }
