@layer base, layout, components, responsive;

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/open-sans-latin-v44.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;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-v22-500.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;
}

@layer base {
  :root {
    font-family: var(--body-font, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: var(--body-size, 16px);
    font-weight: var(--body-weight, 400);
    color: #182c2b;
    background: #fff;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    --muted: #64716f;
    --header-height: 112px;
    --page-gutter-x: max(5vw, calc((100vw - 1728px) / 2));
    --page-gutter-y: 5vw;
    --display-font: "Space Grotesk", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --menu-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --menu-weight: 400;
  }

  * { box-sizing: border-box; }
  html { scroll-padding-top: var(--header-height); scrollbar-gutter: stable; overflow-x: clip; }
  body { margin: 0; overflow-x: clip; }
  :where(h1, h2, h3, p, li, blockquote, a, span, strong) { overflow-wrap: break-word; }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea, summary { font: inherit; }
  button, a, summary { -webkit-tap-highlight-color: transparent; }
  button:disabled { cursor: not-allowed; }
  :focus-visible { outline: 2px solid #147f78; outline-offset: 6px; }
  h1, h2, h3, p { margin: 0; }
  h1 { font-family: var(--display-font); }
  ::selection { background: #d5f4de; color: #132d2c; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: 12px; left: 5%; z-index: 20; padding: 12px 18px; background: #fff; transform: translateY(-160%); }
  .skip-link:focus { transform: translateY(0); }
}

@layer layout {
  .shell { margin-inline: var(--page-gutter-x); }
  .site-header { height: var(--header-height); padding-inline: calc(var(--page-gutter-x) + clamp(28px, 3.5vw, 64px)); display: flex; align-items: center; justify-content: space-between; gap: 36px; position: sticky; top: 0; z-index: 5; background: #fff; transition: color 240ms, background-color 240ms, padding-top 360ms cubic-bezier(.2,.7,.2,1), padding-inline 360ms cubic-bezier(.2,.7,.2,1), transform 360ms cubic-bezier(.2,.7,.2,1); }
  .home-header.over-home-panel { color: #f2f6ee; background: transparent; transform: translateY(var(--page-gutter-y)); }
  .brand { display: inline-flex; flex-shrink: 0; position: relative; isolation: isolate; }
  .home-header .brand::before, .home-header .desktop-nav::before, .home-header .mobile-menu::before { content: ""; position: absolute; inset: -24px -36px; z-index: -1; border-radius: 50%; pointer-events: none; background: color-mix(in srgb, var(--ascii-bg, #193c34) 78%, transparent); filter: blur(24px); opacity: 0; transition: opacity 240ms; }
  .home-header.over-home-panel .brand::before, .home-header.over-home-panel .desktop-nav::before, .home-header.over-home-panel .mobile-menu::before { opacity: 1; transition-delay: 360ms; }
  .brand svg { display: block; width: 190px; height: auto; overflow: visible; }
  .brand path { fill: #000; stroke: #000; stroke-width: .3; stroke-linejoin: round; transition: fill 240ms, stroke 240ms; }
  .home-header.over-home-panel .brand path { fill: #f2f6ee; stroke: #f2f6ee; }
  .desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 38px); position: relative; isolation: isolate; font-family: var(--menu-font); font-size: var(--menu-desktop-size, 13px); font-weight: var(--menu-weight); }
  .desktop-nav a:not(.contact-link) { padding-block: 12px; position: relative; }
  .desktop-nav a:not(.contact-link)::after { content: ""; position: absolute; bottom: 3px; left: 0; width: 100%; height: 1px; background: #21806f; transform: scaleX(0); transform-origin: right; transition: transform 200ms ease; }
  .home-header.over-home-panel .desktop-nav a:not(.contact-link)::after { background: #f2f6ee; }
  .desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .contact-link { display: flex; align-items: center; gap: 24px; padding: 13px 20px; border: 1px solid #dce3df; border-radius: 999px; transition: background 180ms; }
  .contact-link:hover { background: #f0f5f2; }
  .home-header.over-home-panel .contact-link { border-color: #f2f6ee66; }
  .home-header.over-home-panel .contact-link:hover { background: #ffffff14; }
  .mobile-menu { display: none; position: relative; isolation: isolate; font-family: var(--menu-font); font-weight: var(--menu-weight); }
  main { padding-bottom: var(--page-gutter-y); }
  body:has(.home-header) main { margin-top: calc(var(--page-gutter-y) - var(--header-height)); }
  main:focus { outline: none; }
  .site-footer { padding-block: clamp(80px, 9vw, 156px) 36px; }
  .footer-directory { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); border-top: 1px solid #cfd9d4; padding-block: 54px 72px; font-size: 13px; line-height: 1.55; }
  .footer-directory section { position: relative; }
  .footer-directory h2 { margin: 0 0 24px; color: #293f3c; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
  .footer-directory address { font-style: normal; }
  .footer-directory ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .footer-directory a { display: inline-block; position: relative; }
  .footer-directory a::after { content: ""; position: absolute; right: 0; bottom: -2px; left: 0; height: 1px; background: #21806f; transform: scaleX(0); transform-origin: right; transition: transform 200ms ease; }
  .footer-directory a:hover::after, .footer-directory a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .footer-socials { display: flex; flex-wrap: wrap; gap: 16px; }
  .footer-socials a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
  .footer-socials svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
  .footer-copyright { border-top: 1px solid #dfe5e2; padding-top: 28px; color: var(--muted); text-align: center; font-size: 11px; }
}

@layer components {
  .hero-panel, .content-panel { border: 1px solid #ffffff26; border-radius: 26px; height: calc(100svh - var(--page-gutter-y) * 2); min-height: 620px; padding: clamp(28px, 3.5vw, 64px); position: relative; overflow: hidden; box-shadow: 0 0 36px #102c2b0a; }
  .hero-panel { --ascii-bg: #193c34; display: flex; flex-direction: column; color: #f2f6ee; background: var(--ascii-bg); isolation: isolate; }
  body:has(.home-header) .hero-panel { padding-top: var(--header-height); }
  .hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#d5f4de05 1px, transparent 1px), linear-gradient(90deg, #d5f4de05 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, #000); }
  .ascii-background { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .88; }
  .ascii-background > video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ascii-edge-veil { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 84% 76% at 52% 48%, transparent 52%, color-mix(in srgb, var(--ascii-bg) 65%, #000 35%) 100%); box-shadow: inset 0 0 60px 22px var(--ascii-bg); }
  .ascii-edge-veil::before { content: ""; position: absolute; inset: -18%; background: radial-gradient(circle at 20% 32%, var(--ascii-bg) 0 8%, transparent 29%), radial-gradient(circle at 76% 72%, var(--ascii-bg) 0 10%, transparent 32%), radial-gradient(ellipse at 58% 18%, var(--ascii-bg) 0 7%, transparent 27%); filter: blur(32px); opacity: .72; animation: edge-drift 19s ease-in-out infinite alternate; }
  .panel-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
  .eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--display-font); font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
  .accent-dot { width: 6px; height: 6px; border-radius: 50%; background: #c6e6bd; flex-shrink: 0; }
  .hero-body { position: relative; z-index: 2; display: flex; align-items: center; min-height: 0; flex: 1; padding-block: 46px; }
  .hero-copy { position: relative; max-width: 830px; isolation: isolate; text-shadow: 0 2px 22px #00000099; }
  .hero-copy::before { content: ""; position: absolute; inset: -25%; z-index: -1; border-radius: 50%; pointer-events: none; background: var(--ascii-bg); filter: blur(45px); opacity: .88; }
  .hero-copy h1 { font-family: var(--hero-font, var(--display-font)); font-size: clamp(var(--hero-min-size, var(--hero-default-min-size, 42px)), var(--hero-fluid-size, var(--hero-default-fluid-size, 4.2vw)), var(--hero-max-size, var(--hero-default-max-size, 72px))); line-height: 1.08; font-weight: var(--hero-weight, 500); letter-spacing: -.025em; max-width: 830px; text-wrap: balance; }
  .hero-copy h1 > span { display: block; margin-top: 20px; color: color-mix(in srgb, var(--ascii-fg, #c7e8cb) 58%, #f2f6ee 42%); font-size: .52em; line-height: 1.28; letter-spacing: -.01em; max-width: 630px; }
  .hero-copy > p { margin-top: 27px; color: #d0ded7; font-size: 15px; line-height: 1.7; max-width: 540px; }
  .panel-bottom { position: relative; z-index: 2; }
  .chat-preview { position: relative; width: 50%; max-width: 720px; padding: 18px; border: 1px solid #fff; border-radius: 16px; color: #17302d; background: #f8f9f4; box-shadow: 0 0 60px 32px var(--ascii-bg), 0 22px 65px #00000059; transition: width 240ms ease; }
  .chat-preview.is-open { width: min(100%, 720px); }
  .chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .chat-heading h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
  .chat-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
  .chat-ai-badge { padding: 2px 7px; border: 1px solid #c5d5cd; border-radius: 999px; color: #365048; background: #eef4f0; font-size: 10px; font-weight: 600; }
  .chat-legal-link { color: #647770; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; transition: color 160ms; }
  .chat-legal-link:hover { color: #173f39; }
  .chat-reset-btn { border: 1px solid #c5d5cd; border-radius: 999px; padding: 3px 9px; color: #365048; background: #fff; font-size: 10px; cursor: pointer; transition: border-color 160ms, background 160ms; }
  .chat-reset-btn:hover { border-color: #52776b; background: #eaf2ed; }
  .chat-messages { display: flex; flex-direction: column; gap: 8px; max-height: clamp(130px, 24svh, 230px); margin-top: 12px; padding-right: 4px; overflow-y: auto; scrollbar-width: thin; }
  .chat-messages[hidden] { display: none; }
  .chat-bubble { max-width: 92%; padding: 9px 12px; border-radius: 11px; font-size: 12.5px; line-height: 1.55; }
  .chat-bubble p { margin: 0; }
  .chat-bubble p + p { margin-top: 7px; }
  .chat-bubble a { color: #166553; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
  .chat-bubble-user { align-self: flex-end; color: #f2f6ee; background: #1b4942; border-bottom-right-radius: 3px; }
  .chat-bubble-assistant { align-self: flex-start; color: #17302d; background: #fff; border: 1px solid #d8e3dd; border-bottom-left-radius: 3px; }
  .chat-bubble.is-error { border-color: #d9a39c; background: #fdf5f4; color: #6e261e; }
  .example-questions { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin-top: 10px; padding-bottom: 2px; overflow-x: auto; color: #7a8782; font-size: 9px; scrollbar-width: none; }
  .example-questions::-webkit-scrollbar { display: none; }
  .example-questions > span, .example-questions button { flex: none; }
  .example-questions button { border: 1px solid #c5d5cd; border-radius: 999px; padding: 5px 9px; color: #49635b; background: #f2f7f3; font-size: 9px; cursor: pointer; transition: border-color 160ms, color 160ms, background 160ms, opacity 160ms; }
  .example-questions button::after { content: " ›"; color: #768e85; }
  .example-questions button:hover:not(:disabled) { border-color: #52776b; color: #173f39; background: #e5f0e9; }
  .example-questions button:disabled { opacity: .5; cursor: wait; }
  .chat-input-row { display: flex; gap: 10px; margin-top: 10px; padding: 7px 7px 7px 14px; border: 1px solid #cad7cf; border-radius: 10px; background: #fff; transition: border-color 160ms; }
  .chat-input-row:focus-within { border-color: #21806f; }
  .chat-input-row input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; font-size: 13px; color: #344b44; background: transparent; }
  .chat-input-row input::placeholder { color: #72817c; opacity: 1; }
  .chat-input-row button { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 7px; color: #e4f1e8; background: #1b4942; cursor: pointer; transition: background 160ms, opacity 160ms; }
  .chat-input-row button:hover:not(:disabled) { background: #143832; }
  .chat-input-row button:disabled { opacity: .5; cursor: wait; }
  .chat-input-row button svg { width: 18px; height: 18px; fill: currentColor; }
  .type-lab { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: min(380px, calc(100vw - 36px)); border: 1px solid #ccd7d1; border-radius: 15px; color: #17302d; background: #fffffff5; box-shadow: 0 18px 55px #071b1938; font-family: "Open Sans", sans-serif; font-size: 12px; font-weight: 400; backdrop-filter: blur(16px); }
  .type-lab.is-collapsed { width: auto; }
  .type-lab-toggle { width: 100%; display: flex; justify-content: space-between; gap: 28px; border: 0; padding: 11px 14px; color: inherit; background: transparent; cursor: pointer; font-family: var(--display-font); font-weight: 600; }
  .type-lab.is-collapsed .type-lab-toggle { width: auto; }
  .type-lab-panel { max-height: min(680px, calc(100dvh - 90px)); overflow-y: auto; padding: 12px 14px 14px; border-top: 1px solid #e0e7e3; }
  .type-lab.is-collapsed .type-lab-panel { display: none; }
  .type-lab-group { margin-top: 12px; }
  .type-lab-label { margin-bottom: 7px; color: #68766f; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
  .type-lab-select { width: 100%; border: 1px solid #cad5cf; border-radius: 9px; padding: 8px 10px; color: #263e38; background: #fff; font-size: 11px; }
  .type-lab-options { display: flex; flex-wrap: wrap; gap: 6px; }
  .type-lab-options button, .type-lab-reset { border: 1px solid #cad5cf; border-radius: 999px; padding: 6px 9px; color: #314a43; background: #fff; cursor: pointer; font-size: 10px; }
  .type-lab-options button:hover, .type-lab-reset:hover { border-color: #50756a; }
  .type-lab-options button[aria-pressed="true"] { border-color: #173f39; color: #fff; background: #173f39; }
  .type-lab-reset { margin-top: 14px; }
  .ascii-lab { margin-top: 13px; }
  .ascii-lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .ascii-lab-grid label, .ascii-lab-list { color: #52635d; font-size: 10px; }
  .ascii-lab-grid output { float: right; color: #173f39; font-variant-numeric: tabular-nums; }
  .ascii-lab-grid input { width: 100%; margin: 6px 0 0; accent-color: #1b544b; }
  .ascii-lab-list { display: block; margin-top: 12px; }
  .ascii-lab-list input { width: 100%; margin-top: 6px; border: 1px solid #cad5cf; border-radius: 8px; padding: 8px 9px; color: #263e38; background: #fff; font-size: 11px; }
  .content-panel { display: flex; flex-direction: column; background: #f0f4ef; }
  .ascii-lab-page { min-height: 100svh; background: #fff; }
  .ascii-lab-shell { margin: 0; padding: 5vw; }
  .ascii-lab-panel { width: 100%; height: 90svh; min-height: 520px; padding: 0; }
  .content-panel .accent-dot { background: #287365; }
  .page-copy { max-width: 900px; margin-block: auto; padding-block: 80px; }
  .page-copy h1 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
  .page-copy > p { max-width: 620px; margin-top: 28px; font-size: 18px; line-height: 1.7; color: #51625c; }
  .page-copy .page-note { font-size: 12px; }
  .back-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding-bottom: 7px; border-bottom: 1px solid #899c91; font-size: 13px; }
  .back-link:hover { border-color: #182c2b; }
  .services-hero { --ascii-bg: #193c34; color: #f2f6ee; background: linear-gradient(135deg, #193c34 0%, #112a26 100%); border-color: #ffffff1f; box-shadow: 0 20px 50px #0d221f24; isolation: isolate; }
  .services-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(112deg, transparent 52%, #a7d7bb0d 52.1%, transparent 72%), linear-gradient(#d5f4de07 1px, transparent 1px), linear-gradient(90deg, #d5f4de07 1px, transparent 1px); background-size: 100% 100%, 64px 64px, 64px 64px; }
  .services-hero .ascii-background { opacity: .36; }
  .services-hero .accent-dot { background: #c6e6bd; }
  .services-hero .eyebrow { color: #d5e6dc; }
  .services-hero-body { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(50px, 10vw, 180px); text-shadow: 0 2px 20px #0d221fe6; }
  .services-hero-copy { position: relative; z-index: 1; }
  .services-hero-copy h1 { max-width: 650px; font-size: clamp(44px, 5vw, 82px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; color: #f2f6ee; }
  .services-hero-copy p { max-width: 620px; margin-top: 30px; color: #c7dbd2; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.65; }
  .services-hero-context { position: relative; z-index: 1; max-width: 590px; padding-left: clamp(26px, 4vw, 64px); border-left: 1px solid #a7d7bb38; }
  .services-hero-context p { color: #dceae3; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.65; }
  .services-hero-context p + p { margin-top: 24px; }
  .services-hero-context span { display: block; margin-top: 44px; color: #a7d7bb; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .services-hero .panel-topline, .services-hero-copy h1, .services-hero-copy p, .services-hero-context p, .services-hero-context span { animation: services-copy-in 760ms cubic-bezier(.2,.7,.2,1) both; }
  .services-hero .panel-topline { animation-delay: 100ms; }
  .services-hero-copy h1 { animation-delay: 200ms; }
  .services-hero-copy p { animation-delay: 300ms; }
  .services-hero-context p:first-child { animation-delay: 400ms; }
  .services-hero-context p:nth-child(2) { animation-delay: 500ms; }
  .services-hero-context span { animation-delay: 600ms; }
  .services-page { padding-top: clamp(110px, 12vw, 210px); color: #203431; }
  .services-page h2 { font-family: var(--display-font); font-size: clamp(34px, 4.1vw, 68px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
  .services-page h3 { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
  .services-page p { line-height: 1.75; }
  .section-label { color: #287365; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
  .services-intro { display: grid; grid-template-columns: minmax(160px, .6fr) minmax(0, 2fr); gap: clamp(36px, 8vw, 150px); padding: 0 clamp(0px, 6vw, 110px) clamp(120px, 13vw, 220px); }
  .services-intro > div { max-width: 1040px; }
  .services-intro .services-lead { max-width: 850px; margin-top: 40px; color: #28433e; font-family: var(--display-font); font-size: clamp(22px, 2.1vw, 34px); font-weight: 500; line-height: 1.35; }
  .services-intro div > p:not(.services-lead) { max-width: 720px; margin-top: 28px; color: #5a6965; font-size: 16px; }
  .service-chapter { display: grid; grid-template-columns: minmax(72px, .35fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); padding-block: clamp(100px, 11vw, 180px); border-top: 1px solid #d9e1dd; }
  .service-chapter:nth-of-type(even) { margin-inline: calc(var(--page-gutter-x) * -1); padding-inline: var(--page-gutter-x); background: #eef3ef; border-top-color: #d3e0d9; }
  .chapter-number { color: #718881; font-family: var(--display-font); font-size: 13px; font-variant-numeric: tabular-nums; }
  .chapter-heading h2 { margin-top: 24px; font-size: clamp(31px, 3.3vw, 54px); }
  .chapter-content { max-width: 650px; color: #4c5d58; font-size: 15px; }
  .chapter-content > p + p { margin-top: 22px; }
  .chapter-content h3 { margin-top: 48px; color: #203431; }
  .service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 20px 0 0; padding: 0; list-style: none; color: #26403a; }
  .service-list li { padding: 13px 0; border-top: 1px solid #cedbd4; font-size: 13px; line-height: 1.45; }
  .chapter-content blockquote { margin: 52px 0 0; padding: 22px 26px; border-left: 3px solid #287365; border-radius: 0 14px 14px 0; color: #183832; background: #e5eee9; font-family: var(--display-font); font-size: clamp(19px, 1.8vw, 27px); line-height: 1.4; }
  .capability-grid { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 38px; padding: 8px clamp(20px, 2.5vw, 36px); border: 1px solid #d2dfd8; border-radius: 20px; background: #eef4f0; }
  .capability-grid section { min-height: 190px; padding: 26px clamp(18px, 2.5vw, 40px) 30px 0; }
  .capability-grid section + section { padding-left: clamp(18px, 2.5vw, 40px); border-left: 1px solid #d2dfd8; }
  .capability-grid p { margin-top: 20px; color: #546460; font-size: 13px; }
  .chapter-statement { grid-column: 2 / -1; max-width: 940px; margin-top: 30px; font-family: var(--display-font); font-size: clamp(23px, 2.7vw, 40px); line-height: 1.3 !important; }
  .ai-context { display: grid; grid-template-columns: minmax(90px, .45fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 6vw, 100px); margin-inline: calc(var(--page-gutter-x) * -1); padding: clamp(80px, 9vw, 150px) var(--page-gutter-x); color: #eaf2eb; background: #143735; }
  .ai-context .section-label { color: #a7d7bb; }
  .ai-context h2 { font-size: clamp(32px, 3.5vw, 58px); }
  .ai-context div p { max-width: 700px; margin-top: 30px; color: #b9cac3; font-size: 15px; }
  .ai-context ul { align-self: end; margin: 0; padding: 0; list-style: none; }
  .ai-context li { padding: 14px 0; border-top: 1px solid #ffffff24; color: #d7e4dc; font-size: 12px; }
  .entry-points { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 140px); margin-block: clamp(20px, 4vw, 60px); padding: clamp(64px, 8vw, 130px) clamp(28px, 4.5vw, 80px); border: 1px solid #d3e0d9; border-radius: 24px; background: #e8f0eb; }
  .entry-points h2 { margin-top: 24px; font-size: clamp(34px, 3.8vw, 62px); }
  .entry-points ol { margin: 0; padding: 0; list-style: none; counter-reset: entry; }
  .entry-points li { counter-increment: entry; display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 24px 0; border-top: 1px solid #cbd9d2; }
  .entry-points li::before { content: "0" counter(entry); grid-row: 1 / 3; color: #287365; font-weight: 600; font-size: 10px; }
  .entry-points strong { font-size: 14px; font-weight: 600; line-height: 1.45; }
  .entry-points span { margin-top: 8px; color: #546460; font-size: 13px; line-height: 1.55; }
  .platform-proof { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 8vw, 180px); padding: clamp(80px, 9vw, 150px); background: #f0f4ef; border-radius: 24px; }
  .platform-proof h2 { margin-top: 24px; font-size: clamp(31px, 3.4vw, 54px); }
  .platform-proof div > p:last-child { max-width: 650px; margin-top: 28px; color: #63716d; font-size: 14px; }
  .platform-proof ul { margin: 0; padding: 0; list-style: none; }
  .platform-proof li { padding: 15px 0; border-top: 1px solid #ccd8d2; font-size: 13px; }
  .text-link { grid-column: 2; width: fit-content; padding-bottom: 6px; border-bottom: 1px solid #6f8880; font-size: 12px; }
  .services-cta { margin-top: clamp(72px, 9vw, 140px); padding: clamp(64px, 8vw, 120px) clamp(28px, 5vw, 88px); border: 1px solid #ffffff1f; border-radius: 26px; color: #f2f6ee; background: linear-gradient(135deg, #193c34 0%, #112a26 100%); box-shadow: 0 20px 50px #0d221f1f; }
  .services-cta .section-label { color: #a7d7bb; }
  .services-cta h2 { margin-top: 24px; max-width: 920px; color: #f2f6ee; }
  .services-cta > p:not(.section-label) { max-width: 610px; margin-top: 28px; color: #c7dbd2; font-size: 16px; }
  .services-cta a { display: inline-flex; align-items: center; gap: 28px; margin-top: 40px; padding: 16px 24px; border: 1px solid #f2f6ee; border-radius: 999px; color: #132d29; background: #f2f6ee; font-size: 13px; font-weight: 600; transition: color 180ms, background 180ms, border-color 180ms; }
  .services-cta a:hover { color: #132d29; border-color: #c6e6bd; background: #c6e6bd; }
  .contact-form :is(input, select, textarea) { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #cad7cf; border-radius: 8px; background: #fff; color: #182c2b; }
  .contact-form :is(input, select, textarea):user-invalid { border-color: #b42318; background: #fffbfa; }
  .contact-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
  .contact-message { display: block; margin-top: 16px; }
  .contact-privacy { margin-top: 12px; font-size: 12px; }
  .contact-submit { margin-top: 20px; padding: 13px 22px; border: 1px solid #173f39; border-radius: 999px; color: #fff; background: #173f39; cursor: pointer; }
  .contact-status { margin-top: 14px; font-size: 14px; color: #173f39; }
  .impressum-page { padding-top: clamp(44px, 5.5vw, 84px); }
  .impressum-page .services-intro { grid-template-columns: minmax(96px, .24fr) minmax(0, .82fr) minmax(0, 1.14fr); gap: clamp(28px, 4.5vw, 84px); align-items: baseline; padding: 0 0 clamp(52px, 6vw, 88px); }
  .impressum-page .services-intro > div { grid-column: 2 / -1; max-width: 820px; }
  .impressum-page .services-intro h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
  .impressum-page .services-intro div > p:not(.services-lead) { max-width: 640px; margin-top: 18px; }
  .impressum-page .service-chapter { grid-template-columns: minmax(96px, .24fr) minmax(0, .82fr) minmax(0, 1.14fr); gap: clamp(28px, 4.5vw, 84px); align-items: start; padding-block: clamp(52px, 6vw, 88px); }
  .impressum-page .chapter-heading h2 { margin-top: 14px; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.12; }
  .impressum-page .chapter-content { max-width: 680px; }
  .detail-list { margin: 0; padding: 0; list-style: none; }
  .detail-list li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 6px 28px; padding: 16px 0; align-items: baseline; }
  .detail-list li:first-child { padding-top: 0; }
  .detail-list li:last-child { padding-bottom: 0; }
  .detail-list li + li { border-top: 1px solid #cedbd4; }
  .detail-list strong { color: #52645f; font-size: 13px; font-weight: 600; line-height: 1.5; }
  .detail-value { color: #182c2b; font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; }
  .detail-muted { color: #5a6965; font-size: 13px; }
  .detail-value a, .detail-link { color: #186455; border-bottom: 1px solid #9dc1b7; padding-bottom: 1px; transition: color 160ms, border-color 160ms; }
  .detail-value a:hover, .detail-link:hover { color: #123e36; border-color: #123e36; }
  .detail-block + .detail-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid #cedbd4; }
  .detail-block h3 { margin: 0 0 12px; color: #182c2b; font-size: 15px; font-weight: 600; }
  .detail-block p + p { margin-top: 14px; }
  .detail-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 600; }
  @supports (animation-timeline: view()) {
    .services-hero-body {
      animation: services-hero-out linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 70%;
    }
    .services-page:not(.impressum-page) :is(h2, h3, p, blockquote, li, a) {
      animation: services-section-in linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@layer responsive {
  @media (min-width: 1600px) {
    .hero-body { padding-block: 56px; }
    .hero-copy > p { font-size: 15px; }
  }
  @media (max-width: 1000px) {
    :root { --header-height: 96px; }
    .brand svg { width: 160px; }
    .desktop-nav { gap: 18px; font-size: var(--menu-tablet-size, 12px); }
    .desktop-nav .contact-link { display: none; }
    .hero-copy h1 { --hero-default-min-size: 46px; --hero-default-fluid-size: 46px; --hero-default-max-size: 46px; }
    .hero-copy > p { font-size: 13px; }
    .footer-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .services-hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
    .services-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 0 clamp(96px, 11vw, 150px); }
    .capability-grid { grid-column: auto; grid-template-columns: minmax(0, 1fr); margin-top: 28px; padding: 4px 24px; }
    .capability-grid section { min-height: 0; padding: 24px 0; }
    .capability-grid section + section { padding-left: 0; border-top: 1px solid #d2dfd8; border-left: 0; }
    .service-chapter { grid-template-columns: 56px minmax(0, 1fr); gap: 28px; padding-block: clamp(72px, 9vw, 120px); }
    .service-chapter .chapter-number { grid-column: 1; padding-top: 2px; }
    .service-chapter :is(.chapter-heading, .chapter-content, .chapter-statement) { grid-column: 2; }
    .entry-points { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: clamp(48px, 6vw, 76px) clamp(24px, 4vw, 52px); }
    .ai-context { grid-template-columns: 80px minmax(0, 1fr); gap: 28px 32px; }
    .ai-context > div, .ai-context > ul { grid-column: 2; }
    .platform-proof { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: clamp(54px, 7vw, 88px) clamp(24px, 4vw, 52px); }
    .text-link { grid-column: auto; }
    .impressum-page .services-intro { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 28px; }
    .impressum-page .services-intro .section-label, .impressum-page .services-intro > div { grid-column: 2; }
    .impressum-page .service-chapter { grid-template-columns: 56px minmax(0, 1fr); gap: 26px 28px; }
    .impressum-page .chapter-number { grid-column: 1; padding-top: 2px; }
    .impressum-page .chapter-heading, .impressum-page .chapter-content { grid-column: 2; }
  }
  @media (max-width: 700px) {
    :root { --header-height: 88px; }
    .brand { min-width: 0; flex-shrink: 1; }
    .brand svg { max-width: 100%; }
    .desktop-nav { display: none; }
    .mobile-menu { display: block; flex-shrink: 0; }
    .mobile-menu:not([open]) nav { display: none; }
    .mobile-menu summary { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid #dce3df; border-radius: 999px; cursor: pointer; list-style: none; font-size: var(--menu-mobile-summary-size, 13px); transition: color 180ms, border-color 180ms, background 180ms; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu summary span { font-size: 21px; line-height: 1; transition: transform 180ms; }
    .mobile-menu[open] summary span { transform: rotate(45deg); }
    .mobile-menu[open] summary { color: #fff; border-color: #1b4942; background: #1b4942; }
    .mobile-menu nav { width: calc(100vw - var(--page-gutter-x) * 2); position: absolute; top: calc(100% + 10px); right: -22px; display: flex; flex-direction: column; padding: 10px 18px 16px; color: #182c2b; background: #fff; border: 1px solid #dce3df; border-radius: 18px; box-shadow: 0 22px 55px #102c2b26; }
    .site-header { gap: 16px; padding-inline: calc(var(--page-gutter-x) + 22px); }
    .home-header .mobile-menu::before { inset: -16px 0; filter: blur(8px); }
    .home-header.over-home-panel .mobile-menu summary { border-color: #f2f6ee80; }
    .home-header.over-home-panel .mobile-menu[open] summary { color: #17302d; border-color: #fff; background: #fff; }
    .home-header.over-home-panel .mobile-menu nav { color: #182c2b; }
    .mobile-menu nav a { min-height: 50px; display: flex; align-items: center; border-bottom: 1px solid #e4e9e6; font-size: var(--menu-mobile-item-size, 16px); }
    .mobile-menu nav a[aria-current="page"] { color: #187c65; }
    .mobile-menu nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: currentColor; }
    .mobile-menu nav .mobile-contact-link { min-height: 48px; justify-content: space-between; margin-top: 14px; padding: 0 16px; border: 0; border-radius: 10px; color: #fff; background: #1b4942; }
    .hero-panel, .content-panel { height: calc(100svh - var(--page-gutter-y) * 2); min-height: 620px; border-radius: 20px; padding: 26px 22px; }
    .content-panel { height: calc(100svh - var(--header-height) - var(--page-gutter-y)); min-height: 0; }
    body:has(.home-header) .hero-panel { min-height: calc(100svh - var(--page-gutter-y) * 2); padding-top: var(--header-height); }
    .eyebrow { font-size: 8px; letter-spacing: 1.4px; gap: 9px; }
    .ascii-background { opacity: .62; }
    .ascii-edge-veil::before { animation: none; filter: blur(16px); }
    .hero-copy::before { filter: blur(22px); }
    .hero-body { min-height: 0; padding-block: 24px; }
    .hero-copy h1 { --hero-default-min-size: 34px; --hero-default-fluid-size: 8.2vw; --hero-default-max-size: 48px; max-width: 440px; }
    .hero-copy h1 > span { max-width: 390px; }
    .hero-copy > p { margin-top: 20px; max-width: 360px; font-size: 12px; }
    .desktop-break { display: none; }
    .chat-preview { width: 100%; padding: 14px 12px 12px; border-radius: 14px; }
    .hero-panel:has(.chat-preview.is-open) .hero-body { padding-block: 10px; }
    .hero-panel:has(.chat-preview.is-open) .hero-copy h1 { font-size: clamp(22px, 5.8vw, 30px); }
    .hero-panel:has(.chat-preview.is-open) .hero-copy h1 > span { margin-top: 8px; }
    .chat-messages { max-height: 28svh; }
    .chat-bubble { font-size: 11.5px; padding: 8px 10px; }
    .chat-heading { flex-wrap: wrap; font-size: 11px; }
    .example-questions { margin-inline: -12px; padding-inline: 12px; }
    .chat-input-row { padding-left: 10px; margin-top: 12px; }
    .chat-input-row input { font-size: 11px; }
    .site-footer { padding-block: 64px 24px; }
    .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 24px; padding-block: 38px 52px; }
    .page-copy { padding-block: 60px; }
    .page-copy > p { font-size: 16px; }
    .services-hero .ascii-background { opacity: .26; }
    .services-hero-body { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; }
    .services-hero-copy h1 { font-size: clamp(28px, 8.8vw, 48px); }
    .services-hero-copy p { margin-top: 18px; }
    .services-hero-context { padding: 20px 0 0; border-top: 1px solid #a7d7bb38; border-left: 0; }
    .services-hero-context p { font-size: 13px; line-height: 1.55; }
    .services-hero-context p + p { margin-top: 12px; }
    .services-hero-context span { margin-top: 18px; font-size: 8px; }
    .services-page { padding-top: 100px; }
    .services-page h1 { font-size: clamp(28px, 8.2vw, 42px); line-height: 1.12; }
    .services-page h2 { font-size: clamp(25px, 7.6vw, 34px); }
    .services-intro { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 0 0 110px; }
    .services-intro .services-lead { margin-top: 30px; font-size: clamp(20px, 6vw, 23px); }
    .service-chapter { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 90px; }
    .chapter-number { display: none; }
    .service-chapter :is(.chapter-heading, .chapter-content, .chapter-statement) { grid-column: auto; }
    .chapter-heading h2 { margin-top: 18px; font-size: clamp(25px, 7.6vw, 34px); }
    .chapter-content { font-size: 14px; }
    .service-list { grid-template-columns: minmax(0, 1fr); }
    .chapter-content blockquote { margin-top: 38px; padding: 18px 20px; font-size: 20px; }
    .capability-grid { grid-column: auto; grid-template-columns: minmax(0, 1fr); margin-top: 10px; padding: 4px 20px; }
    .capability-grid section { min-height: 0; padding: 25px 0; }
    .capability-grid section + section { padding-left: 0; border-top: 1px solid #d2dfd8; border-left: 0; }
    .chapter-statement { grid-column: auto; font-size: 24px; }
    .ai-context { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-inline: calc(var(--page-gutter-x) * -1); padding-block: 80px; }
    .ai-context > div, .ai-context > ul { grid-column: auto; }
    .ai-context h2 { font-size: clamp(25px, 7.6vw, 34px); }
    .entry-points { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 48px 22px; border-radius: 20px; }
    .entry-points h2 { font-size: clamp(25px, 7.6vw, 35px); }
    .platform-proof { grid-template-columns: minmax(0, 1fr); gap: 50px; padding: 54px 24px; border-radius: 20px; }
    .platform-proof h2 { font-size: clamp(25px, 7.6vw, 34px); }
    .text-link { grid-column: auto; }
    .services-cta { margin-top: 56px; padding: 52px 24px; border-radius: 20px; }
    .services-cta h2 { font-size: clamp(25px, 7.6vw, 34px); }
    .impressum-page { padding-top: 28px; }
    .impressum-page .services-intro { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 40px; }
    .impressum-page .services-intro .section-label, .impressum-page .services-intro > div { grid-column: auto; }
    .impressum-page .services-intro h1 { font-size: clamp(28px, 8.2vw, 40px); }
    .impressum-page .services-intro div > p:not(.services-lead) { margin-top: 14px; font-size: 14px; }
    .impressum-page .service-chapter { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 42px; }
    .impressum-page .chapter-heading, .impressum-page .chapter-content { grid-column: auto; }
    .impressum-page .chapter-heading h2 { margin-top: 10px; font-size: clamp(24px, 6.8vw, 32px); }
    .detail-list li { grid-template-columns: 124px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; }
    .detail-list strong { font-size: 12.5px; }
    .detail-value { font-size: 14px; line-height: 1.55; }
    .detail-muted { font-size: 12px; }
    .detail-block + .detail-block { margin-top: 22px; padding-top: 22px; }
    .detail-block h3 { margin-bottom: 8px; font-size: 14px; }
  }
  @media (max-width: 380px) {
    .footer-directory { grid-template-columns: minmax(0, 1fr); }
    .detail-list li { grid-template-columns: 1fr; gap: 4px; }
    .detail-list strong { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  }
  @media (max-width: 340px) {
    .site-header { gap: 12px; padding-inline: calc(var(--page-gutter-x) + 8px); }
    .brand svg { width: min(160px, calc(90vw - 126px)); }
    .mobile-menu nav { right: -8px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}

@keyframes panel-out {
  to { opacity: 0; transform: translateY(18px) scale(.965); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes edge-drift {
  from { transform: translate3d(-3%, 2%, 0) rotate(-2deg) scale(1); }
  to { transform: translate3d(4%, -3%, 0) rotate(3deg) scale(1.08); }
}

@keyframes services-copy-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes services-hero-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

@keyframes services-section-in {
  0% { opacity: 0; transform: translateY(24px); }
  15%, 85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-24px); }
}
