/* FK Consulting — shared styles (Design System + Nav + CTA + Footer + Utilities) */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/font-0f781d7b.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/font-d9161f2f.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/font-4b33453e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/font-2ec42be5.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/font-24ac54d4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/font-cf1afaf9.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/font-9c873ccc.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/font-cd27f91c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/font-6200a64e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-9c873ccc.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-cd27f91c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-6200a64e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-9c873ccc.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-cd27f91c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-6200a64e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-9c873ccc.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-cd27f91c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-6200a64e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  :root {
    --bg:         #F5F2EC;
    --surface:    #FFFFFF;
    --ink:        #0E0E0C;
    --muted:      #5C5A54;
    --line:       #CFC9BC;
    --accent:     #B08B3F;
    --accent-2:   #c9a15a;
    --accent-text: #826831; /* a11y — dunkleres Gold für kleinen Text auf hellem bg (4.77:1, WCAG AA) */
    --highlight:  #B08B3F;
    --danger:     #a8402e;
    --danger-soft: color-mix(in oklab, #a8402e 12%, #F5F2EC);
    --ease-soft:  cubic-bezier(0.6, 0.01, 0.05, 0.95);
    --ease-expo:  cubic-bezier(0.19, 1, 0.22, 1);
  }

  *, *::before, *::after { box-sizing: border-box; }

  html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Geist", "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-stopped { overflow: hidden; }

  /* cursor + selection — Custom-Cursor deaktiviert (a11y), System-Cursor sichtbar */
  .cursor { display: none !important; }
  .form-submit button:disabled { cursor: not-allowed; }
  ::selection { background: var(--accent); color: var(--bg); }

  /* a11y — globaler Focus-Indicator (WCAG 2.4.7).
     currentColor passt sich automatisch an helle/dunkle Hintergründe an.
     Spezifischere :focus-visible-Regeln (z.B. Cookie-Banner) überschreiben dies. */
  :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* a11y — Skip-Link (WCAG 2.4.1 Bypass Blocks).
     Versteckt bis fokussiert via Tab → springt zu #top im <main>. */
  .skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--bg);
    font-family: "Geist", sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.2s ease;
  }
  .skip-link:focus,
  .skip-link:focus-visible {
    top: 16px;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .serif { font-family: "Fraunces", "Times New Roman", serif; font-variation-settings: "SOFT" 30, "opsz" 144; font-weight: 400; letter-spacing: -0.035em; }
  .serif em, em.serif { font-style: italic; font-variation-settings: "SOFT" 80, "opsz" 144; }

  .eyebrow {
    font-family: "Geist", sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
  }

  a { color: inherit; text-decoration: none; }

  /* ---------- grain overlay ---------- */
  .grain {
    position: fixed; inset: 0; pointer-events: none;
    z-index: 1000; mix-blend-mode: multiply; opacity: 0.09;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* ---------- cursor ---------- */
  .cursor {
    position: fixed; top:0; left:0; width: 12px; height: 12px;
    border-radius: 999px; background: #fff;
    transform: translate3d(-50%,-50%,0);
    pointer-events: none; z-index: 2000;
    transition: width .2s var(--ease-expo), height .2s var(--ease-expo), opacity .2s ease;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor.is-down  { width: 22px; height: 22px; }

  /* ---------- nav ---------- */
  .nav {
    position: fixed; top:0; left:0; right:0; z-index: 800;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px clamp(24px, 4vw, 56px);
    transition: background .5s var(--ease-soft), backdrop-filter .5s, border-color .5s, color .5s var(--ease-soft);
    border-bottom: 1px solid transparent;
    color: #fff;
  }
  .nav.scrolled {
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border-bottom-color: color-mix(in oklab, var(--ink) 8%, transparent);
    color: var(--ink);
  }
  .nav .wordmark .mark-fk, .nav .wordmark .mark-co { transition: color .5s var(--ease-soft); }
  .nav:not(.scrolled) .wordmark .mark-co { color: #fff; }
  .nav:not(.scrolled) .wordmark .mark-fk { color: var(--highlight) !important; }
  .wordmark { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 10; }
  .wordmark .mark-fk {
    font-family: "Fraunces", serif; font-weight: 500;
    font-variation-settings: "SOFT" 30, "opsz" 60;
    font-size: 26px; letter-spacing: -0.02em; color: var(--accent);
    line-height: 1;
  }
  .wordmark .mark-div { width: 14px; height: 1px; background: var(--highlight); }
  .wordmark .mark-co {
    font-family: "Geist", sans-serif; font-weight: 500;
    font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ink);
  }

  .nav-links { display:flex; gap: 36px; font-size: 14px; }
  .nav-link { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
  .nav-link span {
    display: block; transition: transform .5s var(--ease-expo);
  }
  .nav-link span:last-child {
    position: absolute; top: 100%; left: 0; color: var(--accent);
  }
  .nav-link:hover span { transform: translateY(-100%); }
  .nav-link.is-active span:first-child { color: var(--accent); }

  .nav-link.is-cta > span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  /* ---------- nav dropdown ---------- */
  .nav-item.has-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 1.3em;
    line-height: 1.3em;
  }
  .nav-dropdown-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    /* a11y — WCAG 2.5.8 Touch-Target min 24x24 (SVG ist 12x8, brauchen ≥6px padding) */
    padding: 10px 8px;
    margin: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform .35s var(--ease-soft), color .35s var(--ease-soft);
  }
  .nav-dropdown-toggle:hover,
  .nav-item.has-dropdown:hover .nav-dropdown-toggle,
  .nav-item.has-dropdown:focus-within .nav-dropdown-toggle {
    color: var(--accent);
  }
  .nav-item.has-dropdown:hover .nav-dropdown-toggle,
  .nav-item.has-dropdown:focus-within .nav-dropdown-toggle,
  .nav-dropdown-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
  }
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: -10px;
    min-width: 240px;
    background: transparent;
    color: inherit;
    padding: 4px 0;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft), background .5s var(--ease-soft), backdrop-filter .5s, visibility 0s linear .25s;
    z-index: 20;
  }
  .nav.scrolled .nav-dropdown {
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    padding: 8px 10px;
    border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  }
  .nav-dropdown::before {
    /* invisible bridge so dropdown stays open while moving cursor down */
    content: "";
    position: absolute;
    top: -14px; left: 0; right: 0; height: 14px;
  }
  .nav-item.has-dropdown:hover .nav-dropdown,
  .nav-item.has-dropdown:focus-within .nav-dropdown,
  .nav-item.has-dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft), visibility 0s linear 0s;
  }
  .nav-dropdown__link {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease-soft);
  }
  .nav-dropdown__link:hover,
  .nav-dropdown__link.is-current {
    color: var(--accent);
  }

  /* ---------- mobile nav toggle (hamburger) ---------- */
  .nav-toggle {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    z-index: 10;
  }
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px;
    height: 1.5px;
    background: currentColor;
    transition: transform .4s var(--ease-expo), top .4s var(--ease-expo), opacity .2s;
  }
  .nav-toggle::before { top: 16px; }
  .nav-toggle::after  { top: 26px; }
  .nav.is-open .nav-toggle::before { top: 21px; transform: rotate(45deg); }
  .nav.is-open .nav-toggle::after  { top: 21px; transform: rotate(-45deg); }

  @media (max-width: 720px) {
    .nav { padding: 16px clamp(18px, 4vw, 24px); }
    .wordmark .mark-fk { font-size: 22px; }
    .wordmark .mark-co { font-size: 10px; letter-spacing: 0.22em; }

    .nav-toggle { display: inline-block; }

    .nav-links {
      /* explicit svh height + translate in svh units, damit backdrop-filter
         auf .nav das Overlay nicht zum nav-Rand einschnürt. */
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 100svh;
      background: var(--ink);
      color: var(--bg);
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      gap: 8px;
      padding: 80px clamp(28px, 6vw, 40px) 40px;
      font-size: 28px;
      font-family: "Fraunces", serif;
      font-variation-settings: "SOFT" 40, "opsz" 144;
      font-weight: 400;
      letter-spacing: -0.02em;
      line-height: 1.2;
      transform: translateY(-100svh);
      transition: transform .5s var(--ease-expo);
      z-index: 5;
      overscroll-behavior: contain;
      pointer-events: none;
    }
    .nav.is-open .nav-links { transform: translateY(0); pointer-events: auto; }
    .nav-link { height: auto; line-height: 1.3; padding: 10px 0; overflow: visible; }
    .nav-link span:last-child { display: none; }
    .nav-link.is-active span:first-child { color: var(--accent); }
    .nav.is-open { color: var(--bg); }
    .nav.is-open .wordmark .mark-fk { color: var(--accent) !important; }
    .nav.is-open .wordmark .mark-co { color: var(--bg); }

    /* Dropdown auf Mobile: inline, ausklappbar */
    .nav-item.has-dropdown {
      display: block;
      width: 100%;
      height: auto;
      line-height: 1.3;
      gap: 0;
    }
    .nav-item.has-dropdown > .nav-link {
      display: inline-block;
      padding-right: 12px;
    }
    .nav-dropdown-toggle {
      display: inline-flex;
      vertical-align: middle;
      color: var(--bg);
      padding: 10px;
      margin-left: -4px;
    }
    .nav-dropdown,
    .nav.scrolled .nav-dropdown {
      position: static;
      display: none;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      border: 0;
      border-radius: 0;
      color: var(--bg);
      padding: 4px 0 8px 18px;
      margin-top: 4px;
      min-width: 0;
      opacity: 1;
      visibility: visible;
      transform: none;
      transition: none;
    }
    .nav-dropdown::before { display: none; }
    .nav-item.has-dropdown.is-open .nav-dropdown {
      display: block;
    }
    .nav-item.has-dropdown:hover .nav-dropdown,
    .nav-item.has-dropdown:focus-within .nav-dropdown {
      /* auf mobile NICHT via hover öffnen — nur via toggle */
      display: none;
    }
    .nav-item.has-dropdown.is-open .nav-dropdown { display: block; }
    .nav-dropdown__link {
      color: var(--bg);
      font-family: "Fraunces", serif;
      font-size: 20px;
      padding: 8px 0;
      border-radius: 0;
    }
    .nav-dropdown__link:hover {
      background: transparent;
      color: var(--accent);
    }
    .nav-item.has-dropdown:hover .nav-dropdown-toggle,
    .nav-item.has-dropdown:focus-within .nav-dropdown-toggle {
      transform: none;
    }
    .nav-dropdown-toggle[aria-expanded="true"] {
      transform: rotate(180deg);
    }

    body.nav-locked { overflow: hidden; }
  }


  /* ---------- big CTA ---------- */
  .cta-section {
    position: relative;
    padding: clamp(120px, 18vh, 220px) clamp(24px, 4vw, 56px);
    background: var(--ink);
    color: var(--bg);
    overflow: hidden;
  }
  .cta-section::before {
    content:""; position: absolute; inset:0; pointer-events:none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.05; mix-blend-mode: screen;
  }
  .cta-grid {
    display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: end;
    max-width: 1440px; margin: 0 auto;
  }
  .cta-head {
    font-size: clamp(48px, 7vw, 120px);
    line-height: 1.0; letter-spacing: -0.04em; margin: 0;
    max-width: 14ch;
  }
  .cta-head .hl { font-style: italic; color: var(--highlight); font-variation-settings: "SOFT" 90, "opsz" 144; }

  /* ---------- Button: editorial CTA ---------- */
  .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 22px 36px 22px 40px;
    border-radius: 999px;
    font-family: "Geist", sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.005em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    isolation: isolate;
    overflow: hidden;
    color: var(--ink);
    background: var(--bg);
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent),
      0 22px 40px -24px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 color-mix(in oklab, #fff 65%, transparent);
    transition:
      color .55s cubic-bezier(.2,.8,.2,1),
      box-shadow .55s cubic-bezier(.2,.8,.2,1),
      letter-spacing .55s cubic-bezier(.2,.8,.2,1);
  }
  /* hover fill: gold sweep from bottom */
  .btn-primary::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background:
      linear-gradient(135deg,
        color-mix(in oklab, var(--accent-2) 95%, #fff 5%) 0%,
        var(--accent) 55%,
        color-mix(in oklab, var(--accent) 80%, var(--ink) 20%) 100%);
    transform: translateY(102%);
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
    z-index: -1;
  }
  /* hairline hover ring */
  .btn-primary::after {
    content: "";
    position: absolute; inset: -6px;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
  }
  .btn-primary:hover { color: var(--bg); letter-spacing: 0.015em; }
  .btn-primary:hover::before { transform: translateY(0); }
  .btn-primary:hover::after { opacity: 1; transform: scale(1); }
  .btn-primary:hover {
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent),
      0 30px 60px -18px color-mix(in oklab, var(--accent) 70%, rgba(0,0,0,0.5)),
      inset 0 1px 0 color-mix(in oklab, #fff 25%, transparent);
  }
  .btn-primary:active { transform: translateY(1px); }

  /* arrow: line + chevron, grows on hover */
  .btn-primary .arrow {
    position: relative;
    display: inline-block;
    width: 30px; height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: width .55s cubic-bezier(.2,.8,.2,1), background-color .55s ease;
  }
  .btn-primary .arrow::after {
    content: "";
    position: absolute;
    right: -1px; top: 50%;
    width: 10px; height: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: right center;
    border-radius: 1px;
  }
  .btn-primary:hover .arrow { width: 44px; }

  /* Variant — keep for API parity, but .btn-primary already carries the look. */
  .btn-light { background: var(--bg); color: var(--ink); }

  @media (max-width: 800px) {
    .cta-grid { grid-template-columns: 1fr; gap: 40px; }
    .btn-primary { font-size: 15px; padding: 20px 30px 20px 34px; gap: 22px; }
    .btn-primary .arrow { width: 26px; }
    .btn-primary:hover .arrow { width: 36px; }
  }

  /* ---------- footer (Letter Footer) ---------- */
  footer.site-footer {
    position: relative; background: var(--ink); color: var(--bg);
    padding: clamp(72px, 10vh, 120px) clamp(24px, 4vw, 56px) 36px;
    border-top: 1px solid color-mix(in oklab, #fff 10%, transparent);
  }

  .footer-letter {
    display: grid;
    grid-template-columns: 240px 1.1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 56px;
  }

  /* Portrait column */
  .footer-portrait {
    width: 260px;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
      radial-gradient(120% 85% at 50% 115%, color-mix(in oklab, var(--ink) 92%, #000 8%) 0%, transparent 60%),
      linear-gradient(158deg,
        color-mix(in oklab, var(--accent) 95%, #fff 5%) 0%,
        color-mix(in oklab, var(--accent) 80%, var(--ink) 20%) 45%,
        color-mix(in oklab, var(--accent-2) 35%, var(--ink) 65%) 100%);
    box-shadow:
      0 30px 60px -20px rgba(0,0,0,0.55),
      0 12px 28px -12px rgba(0,0,0,0.35),
      inset 0 0 0 1px color-mix(in oklab, #fff 10%, transparent),
      inset 0 -40px 80px -40px rgba(0,0,0,0.45);
  }
  /* soft studio halo behind the head */
  .portrait-halo {
    position: absolute; inset: 0;
    background: radial-gradient(55% 40% at 50% 28%,
      color-mix(in oklab, #fff 22%, transparent) 0%,
      color-mix(in oklab, #fff 8%, transparent) 45%,
      transparent 75%);
    z-index: 0;
    pointer-events: none;
  }
  .portrait-img {
    position: absolute;
    inset: 5% 0 0 0;
    display: block;
    width: 100%; height: 95%;
    object-fit: cover;
    object-position: 50% 0%;
    z-index: 1;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,0.35));
  }
  /* bottom vignette to melt the figure into the frame */
  .portrait-vignette {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
      transparent 55%,
      color-mix(in oklab, var(--ink) 55%, transparent) 92%,
      color-mix(in oklab, var(--ink) 75%, transparent) 100%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: multiply;
  }

  /* Person column */
  .footer-person { max-width: 38ch; }
  .footer-person .eyebrow {
    color: color-mix(in oklab, var(--accent) 75%, var(--bg) 25%);
    margin-bottom: 14px;
  }
  .person-name {
    font-family: "Fraunces", serif;
    font-variation-settings: "SOFT" 40, "opsz" 144;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 8px;
    color: var(--bg);
  }
  .person-role {
    font-size: 14px;
    color: color-mix(in oklab, var(--bg) 65%, transparent);
    margin: 0 0 24px;
    letter-spacing: 0.005em;
  }
  .person-quote {
    font-family: "Fraunces", serif;
    font-variation-settings: "SOFT" 70, "opsz" 72;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: color-mix(in oklab, var(--bg) 88%, transparent);
    border-left: 1px solid var(--accent);
    padding: 4px 0 4px 18px;
    margin: 0;
  }

  /* Contact column */
  .footer-contact { display: flex; flex-direction: column; gap: 10px; }
  .footer-contact .eyebrow {
    color: color-mix(in oklab, var(--bg) 55%, transparent);
    margin-bottom: 6px;
  }
  .contact-phone {
    font-family: "Fraunces", serif;
    font-variation-settings: "SOFT" 40, "opsz" 60;
    font-weight: 400;
    font-size: clamp(28px, 2.8vw, 40px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--bg);
    font-variant-numeric: tabular-nums;
    display: inline-block;
    position: relative;
    width: fit-content;
    transition: color .3s var(--ease-soft);
  }
  .contact-phone::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease-expo);
  }
  .contact-phone:hover { color: var(--accent); }
  .contact-phone:hover::after { transform: scaleX(1); }
  .contact-email {
    font-size: 16px;
    color: color-mix(in oklab, var(--bg) 78%, transparent);
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease-soft), color .3s var(--ease-soft);
  }
  .contact-email:hover { color: var(--accent); border-bottom-color: var(--accent); }
  .contact-hours {
    font-size: 13px;
    color: color-mix(in oklab, var(--bg) 55%, transparent);
    margin: 14px 0 0;
    letter-spacing: 0.03em;
  }
  .contact-hours .dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 50%;
    background: #6bd584; margin-right: 8px; vertical-align: middle;
    box-shadow: 0 0 8px #6bd584;
  }

  /* Divider */
  .footer-rule {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: color-mix(in oklab, #fff 10%, transparent);
  }

  .footer-bottom {
    display: flex; justify-content: space-between; gap: 24px;
    max-width: 1200px; margin: 0 auto;
    padding-top: 28px;
    font-size: 12px; letter-spacing: 0.04em;
    color: color-mix(in oklab, var(--bg) 55%, transparent);
    flex-wrap: wrap;
  }
  .footer-bottom .legal { display: inline-flex; gap: 20px; }
  .footer-bottom .credit {
    opacity: 0.85;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
  }
  .footer-bottom a {
    position: relative;
    transition: color .3s var(--ease-soft), opacity .3s var(--ease-soft);
  }
  .footer-bottom a:hover { color: var(--accent); }
  .footer-bottom a.credit:hover { opacity: 1; }

  @media (max-width: 960px) {
    .footer-letter {
      grid-template-columns: 200px 1fr;
      gap: 40px;
    }
    .footer-contact { grid-column: 1 / -1; margin-top: 8px; }
    .footer-portrait { width: 220px; }
  }
  @media (max-width: 600px) {
    .footer-letter { grid-template-columns: 1fr; }
    .footer-portrait { width: 180px; }
  }

  /* ---------- reveal utilities ---------- */
  .reveal-line { display:block; overflow:hidden; }
  .reveal-inner { display:block; transform: translateY(110%); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-headline .line-inner { transform: none !important; }
    .reveal-inner { transform: none !important; }
  }
