@layer tokens, reset, base, layout, components, pages, utilities, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
  ul, ol { padding: 0; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; }
  button { color: inherit; }
  a { color: inherit; }
  address { font-style: normal; }
  summary { list-style: none; }
  summary::-webkit-details-marker { display: none; }
}

@layer base {
  html { color-scheme: light; background: var(--color-bg); }
  body {
    min-width: 20rem;
    overflow-x: hidden;
    color: var(--color-text);
    background:
      linear-gradient(90deg, transparent 0, transparent calc(50% - .5px), rgb(17 23 37 / .025) calc(50% - .5px), rgb(17 23 37 / .025) calc(50% + .5px), transparent calc(50% + .5px)),
      var(--color-bg);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  body.menu-open { overflow: hidden; }
  h1, h2, h3, h4 {
    color: var(--ink-950);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: var(--tracking-tight);
  }
  h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); }
  h2 { font-size: var(--text-3xl); line-height: 1.08; }
  h3 { font-size: var(--text-xl); line-height: var(--leading-snug); }
  h4 { font-size: var(--text-lg); line-height: var(--leading-snug); }
  p { color: var(--color-text-muted); }
  strong { color: var(--ink-950); }
  a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
  button, a { -webkit-tap-highlight-color: transparent; }
  input, select, textarea { color: var(--ink-900); }
  :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
  ::selection { color: var(--white); background: var(--brand-700); }
}

@layer layout {
  .container {
    width: min(100% - (2 * var(--gutter)), var(--container));
    margin-inline: auto;
  }
  .section { padding-block: var(--section-space); }
  .section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
  .section--paper { background: var(--stone-100); }
  .section--navy {
    color: rgb(255 255 255 / .76);
    background:
      radial-gradient(circle at 84% 20%, rgb(84 183 243 / .11), transparent 25rem),
      var(--brand-950);
  }
  .section--navy h2, .section--navy h3, .section--navy strong { color: var(--white); }
  .section--navy p { color: rgb(255 255 255 / .67); }
  .section-heading { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
  .section-heading h2 { max-width: 48rem; }
  .section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .72fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
  }
  .section-heading--split > p { max-width: 35rem; }
  .section-heading--light h2 { color: var(--white); }
  .section-heading--light > p { color: rgb(255 255 255 / .64); }
  .section-action { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 999;
    top: var(--space-3);
    left: var(--space-3);
    transform: translateY(-180%);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--brand-900);
  }
  .skip-link:focus { transform: translateY(0); }
  .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;
  }
  .svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .icon {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
  }
  .eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: var(--space-5);
    color: var(--brand-700);
    font-size: var(--text-xs);
    font-weight: 760;
    letter-spacing: var(--tracking-wide);
    line-height: 1.2;
    text-transform: uppercase;
  }
  .eyebrow > span { width: 2.3rem; height: 1px; background: currentColor; }
  .eyebrow--light { color: var(--brand-300); }

  .button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .83rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 740;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  }
  .button:hover { transform: translateY(-2px); }
  .button--primary { color: var(--white); background: var(--brand-800); box-shadow: 0 8px 22px rgb(28 59 116 / .18); }
  .button--primary:hover { background: var(--brand-900); }
  .button--secondary { color: var(--brand-900); border-color: var(--stone-300); background: transparent; }
  .button--secondary:hover { border-color: var(--brand-700); background: var(--surface); }
  .button--light { color: var(--brand-950); background: var(--surface); }
  .button--light:hover { background: var(--white); }
  .button--compact { min-height: 2.65rem; padding: .63rem 1rem; }
  .button--block { width: 100%; }
  .text-link, .card-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--brand-700);
    font-size: var(--text-sm);
    font-weight: 740;
    text-decoration: none;
  }
  .text-link--light { color: var(--brand-300); }
  .text-link .icon, .card-link .icon, .related-card > .icon, .solution-link > .icon { transition: transform var(--duration-fast) var(--ease-out); }
  .text-link:hover .icon, .card-link:hover .icon, .related-card:hover > .icon, .solution-link:hover > .icon { transform: translateX(4px); }

  /* Header */
  .site-header {
    position: relative;
    z-index: var(--z-header);
    border-bottom: 1px solid rgb(17 23 37 / .08);
    background: var(--canvas);
  }
  .site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 10px 30px rgb(17 23 37 / .07); }
  .utility-bar { color: rgb(255 255 255 / .78); background: var(--brand-950); font-size: var(--text-xs); }
  .utility-bar__inner { display: flex; min-height: 2.25rem; align-items: center; justify-content: space-between; gap: var(--space-4); }
  .utility-bar p, .utility-bar a { color: inherit; }
  .utility-bar__links { display: flex; align-items: center; gap: .65rem; }
  .utility-bar a { text-decoration: none; }
  .utility-bar a:hover { color: var(--white); }
  .nav-shell__inner { position: relative; display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: var(--space-8); }
  .brand { display: inline-flex; align-items: center; gap: .78rem; min-width: max-content; text-decoration: none; }
  .brand__mark {
    width: 2.95rem;
    height: 2.95rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .35);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    background: var(--brand-900);
  }
  .brand__mark img { width: 100%; height: 100%; object-fit: cover; }
  .brand__name { color: var(--brand-950); font-size: 1.03rem; font-weight: 760; letter-spacing: .015em; line-height: 1.05; }
  .brand__name small { display: block; margin-top: .22rem; color: var(--ink-600); font-size: .68rem; font-weight: 620; letter-spacing: .19em; text-transform: uppercase; }
  .primary-nav { display: flex; align-items: center; gap: clamp(.85rem, 1.55vw, 1.45rem); }
  .primary-nav > a:not(.button), .nav-group > summary { color: var(--ink-800); font-size: var(--text-sm); font-weight: 650; text-decoration: none; }
  .nav-group { position: relative; }
  .nav-group > summary { position: relative; display: flex; align-items: center; gap: .45rem; cursor: pointer; }
  .nav-group > summary::after { content: ""; width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.12rem) rotate(45deg); transition: transform var(--duration-fast); }
  .nav-group[open] > summary::after { transform: translateY(.1rem) rotate(225deg); }
  .nav-group > summary:hover, .primary-nav > a:not(.button):hover { color: var(--brand-700); }
  .mega-menu {
    position: absolute;
    z-index: var(--z-menu);
    top: calc(100% + 1.35rem);
    left: 50%;
    display: grid;
    width: min(23rem, calc(100vw - 2rem));
    gap: .2rem;
    padding: 1rem;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--surface-raised);
    transform: translateX(-50%);
  }
  .mega-menu::before { content: ""; position: absolute; top: -1.35rem; left: 0; right: 0; height: 1.35rem; }
  .mega-menu > a, .mega-menu > div > a { display: grid; gap: .1rem; padding: .75rem .8rem; border-radius: var(--radius-sm); text-decoration: none; }
  .mega-menu > a:hover, .mega-menu > div > a:hover { background: var(--stone-100); }
  .mega-menu strong { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 730; letter-spacing: 0; }
  .mega-menu span { color: var(--ink-600); font-size: var(--text-xs); line-height: 1.35; }
  .mega-menu--products { left: auto; right: -9.5rem; width: min(45rem, calc(100vw - 2rem)); grid-template-columns: 1fr 1fr; gap: .8rem 1rem; transform: none; }
  .mega-menu__label { padding: .45rem .8rem .3rem; color: var(--brand-700); font-size: .69rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
  .mega-menu__all { grid-column: 1 / -1; display: flex !important; grid-template-columns: 1fr auto !important; align-items: center; margin-top: .3rem; border-top: 1px solid var(--stone-200); border-radius: 0 !important; color: var(--brand-700); font-weight: 740; }
  .menu-toggle { display: none; }

  /* Forms */
  .quote-form, .contact-form, .form-demo { display: grid; gap: var(--space-4); }
  .quote-form label, .contact-form label, .form-demo label { display: grid; gap: .45rem; color: var(--ink-800); font-size: var(--text-xs); font-weight: 720; }
  .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .quote-form input, .quote-form select, .quote-form textarea,
  .contact-form input, .contact-form select, .contact-form textarea,
  .form-demo input, .form-demo select, .form-demo textarea,
  .search-field input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem .85rem;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-sm);
    color: var(--ink-900);
    background: var(--surface-raised);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
  }
  .quote-form textarea, .contact-form textarea, .form-demo textarea { min-height: 7rem; resize: vertical; }
  .quote-form input::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-500); }
  .quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus,
  .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
  .form-demo input:focus, .form-demo select:focus, .form-demo textarea:focus,
  .search-field input:focus { border-color: var(--brand-500); outline: none; box-shadow: 0 0 0 3px rgb(49 141 233 / .15); }
  .checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: .7rem !important; color: var(--ink-700) !important; font-weight: 520 !important; line-height: 1.45; cursor: pointer; }
  .checkbox input { width: 1.1rem !important; min-height: auto !important; height: 1.1rem; margin-top: .17rem; padding: 0 !important; accent-color: var(--brand-700); }
  .form-status { min-height: 1.35rem; color: var(--success-700); font-size: var(--text-xs); line-height: 1.4; }
  .form-status.is-error { color: var(--danger-700); }

  /* Footer */
  .site-footer { color: rgb(255 255 255 / .67); background: var(--brand-950); }
  .footer-cta { border-bottom: 1px solid rgb(255 255 255 / .13); background: var(--brand-850); }
  .footer-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
  .footer-cta h2 { max-width: 44rem; color: var(--white); }
  .footer-cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1.2rem; }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr .85fr .75fr; gap: clamp(1.8rem, 4vw, 4rem); padding-block: clamp(3.5rem, 6vw, 5.5rem); }
  .brand--footer .brand__name { color: var(--white); }
  .brand--footer .brand__name small { color: rgb(255 255 255 / .52); }
  .footer-brand > p { max-width: 24rem; margin-top: var(--space-5); color: inherit; font-size: var(--text-sm); }
  .footer-brand address { margin-top: var(--space-5); color: rgb(255 255 255 / .57); font-size: var(--text-xs); line-height: 1.75; }
  .footer-grid h3 { margin-bottom: var(--space-4); color: var(--white); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 740; letter-spacing: .02em; }
  .footer-grid ul { list-style: none; }
  .footer-grid li + li { margin-top: .45rem; }
  .footer-grid a { color: inherit; font-size: var(--text-xs); text-decoration: none; }
  .footer-grid a:hover { color: var(--white); }
  .footer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-block: var(--space-5); border-top: 1px solid rgb(255 255 255 / .13); }
  .footer-bottom p { color: rgb(255 255 255 / .48); font-size: .72rem; line-height: 1.55; }
  .footer-bottom p:last-child { max-width: 48rem; justify-self: end; text-align: right; }
  .cookie-banner {
    position: fixed;
    z-index: var(--z-float);
    right: var(--gutter);
    bottom: var(--gutter);
    display: flex;
    width: min(34rem, calc(100vw - (2 * var(--gutter))));
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--surface-raised);
  }
  .cookie-banner p { font-size: var(--text-xs); line-height: 1.45; }
  .cookie-banner a { color: var(--brand-700); }
}

@layer pages {
  /* Shared page heroes */
  .page-hero { position: relative; overflow: clip; padding-block: clamp(4rem, 7vw, 7rem); border-bottom: 1px solid var(--stone-300); }
  .page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -14rem;
    bottom: -21rem;
    width: 36rem;
    height: 36rem;
    border: 1px solid rgb(28 59 116 / .09);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgb(28 59 116 / .028), 0 0 0 10rem rgb(28 59 116 / .018);
  }
  .page-hero--compact { padding-block: clamp(3.5rem, 6vw, 5.7rem); }
  .page-hero--compact .container { max-width: var(--container-narrow); margin-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
  .page-hero--compact h1 { max-width: 50rem; font-size: clamp(2.6rem, 2rem + 2.4vw, 4.4rem); }
  .page-hero--compact .container > p:last-child { max-width: 46rem; margin-top: var(--space-6); font-size: var(--text-lg); }
  .page-hero__lead { max-width: 47rem; margin-top: var(--space-6); font-size: var(--text-lg); }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: var(--space-8); color: var(--ink-500); font-size: var(--text-xs); }
  .breadcrumbs a { text-decoration: none; }
  .breadcrumbs a:hover { color: var(--brand-700); }
  .fact-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: var(--space-8); list-style: none; }
  .fact-pills li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .72rem; border: 1px solid var(--stone-300); border-radius: var(--radius-pill); color: var(--ink-700); background: rgb(255 253 249 / .7); font-size: var(--text-xs); line-height: 1.25; }
  .fact-pills .icon { color: var(--brand-700); }

  /* Home */
  .hero { position: relative; overflow: clip; padding-block: clamp(4rem, 8vw, 7.5rem); }
  .hero::before {
    content: "";
    position: absolute;
    inset: auto auto -18rem -15rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgb(28 59 116 / .10);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgb(28 59 116 / .035), 0 0 0 8rem rgb(28 59 116 / .02);
    pointer-events: none;
  }
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(23rem, .78fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .hero__copy { position: relative; z-index: 1; max-width: 49rem; }
  .hero h1 em { color: var(--brand-700); font-style: italic; font-weight: 500; }
  .hero__lead { max-width: 43rem; margin-top: var(--space-6); font-size: var(--text-lg); }
  .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.5rem; margin-top: var(--space-8); }
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 46rem; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--stone-300); }
  .hero__facts > div { padding: var(--space-5) var(--space-4) 0 0; }
  .hero__facts > div + div { padding-left: var(--space-5); border-left: 1px solid var(--stone-300); }
  .hero__facts dt { color: var(--brand-850); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
  .hero__facts dd { margin-top: .35rem; color: var(--ink-600); font-size: var(--text-xs); line-height: 1.35; }
  .quote-card { position: relative; padding: clamp(1.4rem, 3vw, 2.25rem); border: 1px solid var(--stone-300); border-radius: .6rem 3.2rem .6rem .6rem; box-shadow: var(--shadow-md); background: var(--surface-raised); }
  .quote-card::before { content: ""; position: absolute; top: 1.25rem; right: 1.25rem; width: 2.8rem; height: 2.8rem; border-top: 1px solid var(--brand-300); border-right: 1px solid var(--brand-300); border-radius: 0 1.35rem 0 0; }
  .quote-card__head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--stone-200); }
  .quote-card__head > span { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--brand-700); background: var(--brand-100); }
  .quote-card__head p { color: var(--brand-700); font-size: var(--text-xs); font-weight: 740; letter-spacing: .09em; text-transform: uppercase; }
  .quote-card__head h2 { margin-top: .25rem; font-size: var(--text-2xl); }
  .quote-form--quick { gap: .8rem; }
  .quote-form--quick .form-row { gap: .8rem; }
  .quote-form--quick input, .quote-form--quick select { min-height: 2.85rem; padding: .65rem .72rem; }
  .trust-band { border-block: 1px solid var(--stone-300); background: rgb(255 253 249 / .58); }
  .trust-band__inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: var(--space-8); }
  .trust-band p { color: var(--ink-900); font-family: var(--font-display); font-size: var(--text-lg); }
  .trust-band ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1.8rem; color: var(--ink-600); font-size: var(--text-xs); list-style: none; }
  .trust-band li { position: relative; }
  .trust-band li + li::before { content: ""; position: absolute; top: 50%; left: -.95rem; width: .22rem; height: .22rem; border-radius: 50%; background: var(--brand-400); transform: translateY(-50%); }
  .product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--stone-300); border-left: 1px solid var(--stone-300); }
  .product-card { min-width: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border-right: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); background: rgb(255 253 249 / .42); transition: background var(--duration-base), transform var(--duration-base); }
  .product-card:hover { z-index: 1; background: var(--surface-raised); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
  .product-card__icon, .catalog-card__icon { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid var(--stone-300); border-radius: 50%; color: var(--brand-700); background: var(--surface); }
  .product-card__kicker { margin-top: var(--space-8); color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
  .product-card h3 { margin-top: .55rem; }
  .product-card h3 a { text-decoration: none; }
  .product-card > p:not(.product-card__kicker) { margin-top: var(--space-4); font-size: var(--text-sm); line-height: 1.55; }
  .product-card .card-link { margin-top: var(--space-6); }
  .sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  .sector-card { display: grid; min-height: 20rem; align-content: space-between; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius-md); background: rgb(255 255 255 / .035); transition: background var(--duration-base), transform var(--duration-base); }
  .sector-card:hover { background: rgb(255 255 255 / .07); transform: translateY(-3px); }
  .sector-card > span { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border: 1px solid rgb(255 255 255 / .18); border-radius: 50%; color: var(--brand-300); }
  .sector-card h3 { margin-bottom: var(--space-4); color: var(--white); }
  .sector-card p:not(.eyebrow) { color: rgb(255 255 255 / .62); font-size: var(--text-sm); }
  .sector-card .eyebrow { margin-top: var(--space-10); }
  .sector-card .card-link { margin-top: var(--space-6); color: var(--brand-300); }
  .process-section { background: var(--surface); }
  .process-layout { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
  .process-intro { position: sticky; top: 8rem; }
  .process-intro > p:not(.eyebrow) { max-width: 35rem; margin-top: var(--space-6); }
  .process-intro .button { margin-top: var(--space-8); }
  .timeline { list-style: none; border-top: 1px solid var(--stone-300); }
  .timeline li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-8); border-bottom: 1px solid var(--stone-300); }
  .timeline li > span { color: var(--brand-500); font-family: var(--font-display); font-size: var(--text-xl); }
  .timeline h3 { margin-bottom: .45rem; }
  .timeline p { font-size: var(--text-sm); }
  .parties-layout { display: grid; grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
  .parties-visual { position: relative; display: grid; width: min(100%, 30rem); aspect-ratio: 1; place-items: center; margin-inline: auto; }
  .parties-visual img { position: relative; z-index: 2; width: 48%; border-radius: 50%; box-shadow: var(--shadow-logo); }
  .orbit { position: absolute; border: 1px solid var(--brand-300); border-radius: 50%; transform: rotate(-22deg); }
  .orbit--one { inset: 13%; }
  .orbit--two { inset: 2%; border-color: var(--stone-300); transform: rotate(28deg); }
  .party-list { margin-top: var(--space-10); border-top: 1px solid var(--stone-300); }
  .party-list article { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-5); border-bottom: 1px solid var(--stone-300); }
  .party-list b { color: var(--brand-850); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
  .party-list p { font-size: var(--text-sm); }
  .guide-grid { display: grid; }
  .guide-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stone-300); border-left: 1px solid var(--stone-300); }
  .guide-card { min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); border-right: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); background: rgb(255 253 249 / .46); }
  .guide-card > p { color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
  .guide-card h2, .guide-card h3 { margin-top: var(--space-5); }
  .guide-card h2 { font-size: var(--text-xl); }
  .guide-card h2 a, .guide-card h3 a { text-decoration: none; }
  .guide-card > span { display: block; margin-top: var(--space-4); color: var(--ink-600); font-size: var(--text-sm); line-height: 1.55; }
  .guide-card .card-link { margin-top: var(--space-6); }
  .about-band { color: rgb(255 255 255 / .7); background: var(--brand-850); }
  .about-band__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .7fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
  .about-band h2 { color: var(--white); }
  .about-band__grid > div:first-child > p:not(.eyebrow) { max-width: 42rem; margin-top: var(--space-6); color: rgb(255 255 255 / .63); }
  .about-band__links { border-top: 1px solid rgb(255 255 255 / .18); }
  .about-band__links a { display: grid; gap: .35rem; padding-block: var(--space-5); border-bottom: 1px solid rgb(255 255 255 / .18); text-decoration: none; }
  .about-band__links strong { color: var(--white); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
  .about-band__links span { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); color: rgb(255 255 255 / .58); font-size: var(--text-xs); }

  /* Catalog */
  .catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
  .catalog-card { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--space-6); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: var(--surface); }
  .catalog-card > div > p:first-child { color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
  .catalog-card h2 { margin-top: .45rem; font-size: var(--text-2xl); }
  .catalog-card h2 a { text-decoration: none; }
  .catalog-card h2 + p { margin-top: var(--space-4); font-size: var(--text-sm); }
  .catalog-card .fact-pills { margin-top: var(--space-5); }
  .catalog-card .card-link { margin-top: var(--space-6); }
  .callout-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: center; }
  .callout-grid > div > p:not(.eyebrow) { max-width: 48rem; margin-top: var(--space-5); }

  /* Product pages */
  .product-hero__grid, .sector-hero__grid, .about-hero__grid, .ergo-hero__grid, .affiliate-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .58fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
  .product-emblem { position: relative; display: grid; min-height: 30rem; align-content: center; justify-items: center; padding: 2rem; border: 1px solid var(--stone-300); border-radius: .5rem 4rem .5rem .5rem; background: var(--brand-900); box-shadow: var(--shadow-md); }
  .product-emblem::before { content: ""; position: absolute; inset: 10%; border: 1px solid rgb(255 255 255 / .15); border-radius: 50%; }
  .product-emblem > span { position: absolute; top: 2rem; left: 2rem; display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; color: var(--brand-300); }
  .product-emblem img { position: relative; width: 43%; border-radius: 50%; box-shadow: var(--shadow-logo); }
  .product-emblem p { position: absolute; right: 2rem; bottom: 2rem; left: 2rem; color: rgb(255 255 255 / .62); font-size: var(--text-xs); text-align: center; }
  .article-section { background: var(--surface); }
  .article-layout { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .article-toc { position: sticky; top: 8rem; display: grid; gap: .2rem; padding-top: .2rem; }
  .article-toc p { margin-bottom: .65rem; color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
  .article-toc a { padding: .45rem 0; border-bottom: 1px solid var(--stone-200); color: var(--ink-600); font-size: var(--text-xs); text-decoration: none; }
  .article-toc a:hover { color: var(--brand-700); }
  .article-content { width: min(100%, 49rem); }
  .article-content > section + section { margin-top: clamp(3.2rem, 6vw, 5.5rem); }
  .article-content h2 { margin-bottom: var(--space-6); font-size: clamp(2rem, 1.65rem + 1.1vw, 3rem); }
  .article-content h3 { margin-bottom: var(--space-3); }
  .article-content p + p { margin-top: var(--space-4); }
  .article-lead { color: var(--ink-700); font-size: var(--text-lg); }
  .notice { margin-top: var(--space-8); padding: var(--space-5); border-left: 3px solid var(--brand-500); background: var(--brand-100); }
  .notice strong { display: block; margin-bottom: .35rem; color: var(--brand-900); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 760; }
  .notice p { color: var(--ink-700); font-size: var(--text-sm); }
  .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .info-card { position: relative; min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: var(--surface); }
  .info-card h3 { font-size: var(--text-xl); }
  .info-card p { margin-top: .6rem; font-size: var(--text-sm); line-height: 1.55; }
  .card-number { display: block; margin-bottom: var(--space-8); color: var(--brand-500); font-family: var(--font-display); font-size: var(--text-xl); }
  .check-list { display: grid; gap: .75rem; list-style: none; }
  .check-list li { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: .7rem; align-items: start; padding: .85rem 0; border-bottom: 1px solid var(--stone-200); color: var(--ink-700); }
  .check-list .icon { margin-top: .18rem; color: var(--brand-700); }
  .check-list--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); }
  .document-list { counter-reset: docs; display: grid; gap: .65rem; list-style: none; }
  .document-list li { counter-increment: docs; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--stone-200); color: var(--ink-700); }
  .document-list li::before { content: counter(docs, decimal-leading-zero); color: var(--brand-500); font-family: var(--font-display); }
  .small-note { margin-top: var(--space-5); color: var(--ink-500); font-size: var(--text-xs); }
  .faq-list { border-top: 1px solid var(--stone-300); }
  .faq-item { border-bottom: 1px solid var(--stone-300); }
  .faq-item summary { position: relative; padding: 1.25rem 2.6rem 1.25rem 0; color: var(--ink-900); font-weight: 720; line-height: 1.4; cursor: pointer; }
  .faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; top: 50%; right: .25rem; width: 1rem; height: 1px; background: var(--brand-700); transition: transform var(--duration-fast); }
  .faq-item summary::after { transform: rotate(90deg); }
  .faq-item[open] summary::after { transform: rotate(0deg); }
  .faq-item > div { padding: 0 2.5rem 1.35rem 0; }
  .faq-item p { font-size: var(--text-sm); }
  .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .related-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem var(--space-4); min-height: 10rem; align-content: end; padding: var(--space-6); border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; }
  .related-card span { grid-column: 1 / -1; color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
  .related-card strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
  .related-card > .icon { align-self: center; color: var(--brand-700); }

  /* Guides */
  .guide-hero__inner { max-width: 58rem; }
  .guide-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: var(--space-6); color: var(--ink-500); font-size: var(--text-xs); }
  .article-summary { margin-bottom: clamp(3rem, 6vw, 5rem); padding: var(--space-6); border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: var(--stone-100); }
  .article-summary > strong { display: block; margin-bottom: var(--space-4); color: var(--brand-900); font-size: var(--text-sm); }
  .article-summary .fact-pills { margin-top: 0; }
  .inline-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: center; padding: clamp(1.8rem, 4vw, 3rem); border-radius: .5rem 2.4rem .5rem .5rem; background: var(--brand-850); }
  .inline-cta h2 { color: var(--white); }
  .inline-cta p:not(.eyebrow) { color: rgb(255 255 255 / .62); }
  .source-note { margin-top: clamp(3rem, 6vw, 5rem); padding-top: var(--space-5); border-top: 1px solid var(--stone-300); }
  .source-note strong { display: block; color: var(--ink-700); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; }
  .source-note p { margin-top: .4rem; font-size: var(--text-xs); }
  .library-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
  .search-field { position: relative; width: min(100%, 28rem); }
  .search-field .icon { position: absolute; z-index: 1; top: 50%; left: .9rem; color: var(--ink-500); transform: translateY(-50%); }
  .search-field input { padding-left: 2.8rem; }
  .filter-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
  .filter-buttons button { padding: .55rem .8rem; border: 1px solid var(--stone-300); border-radius: var(--radius-pill); color: var(--ink-700); background: transparent; font-size: var(--text-xs); cursor: pointer; }
  .filter-buttons button:hover, .filter-buttons button.is-active { color: var(--white); border-color: var(--brand-800); background: var(--brand-800); }
  .result-count { min-height: 1.3rem; margin-bottom: var(--space-6); color: var(--ink-500); font-size: var(--text-xs); }
  .guide-grid--library { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stone-300); border-left: 1px solid var(--stone-300); }
  .guide-card--library { display: flex; min-height: 19rem; flex-direction: column; }
  .guide-card--library .card-link { margin-top: auto; padding-top: var(--space-6); }

  /* Sector pages */
  .sector-illustration { display: grid; min-height: 27rem; align-content: end; padding: 2.2rem; border: 1px solid var(--stone-300); border-radius: .5rem 4rem .5rem .5rem; color: var(--white); background: linear-gradient(150deg, var(--brand-800), var(--brand-950)); box-shadow: var(--shadow-md); }
  .sector-illustration > span { display: grid; width: 5rem; height: 5rem; place-items: center; margin-bottom: auto; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; color: var(--brand-300); }
  .sector-illustration > span .icon { width: 2rem; height: 2rem; }
  .sector-illustration p { max-width: 16rem; color: rgb(255 255 255 / .72); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; }
  .solution-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .solution-link { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; min-height: 7rem; padding: var(--space-5); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius-md); text-decoration: none; }
  .solution-link > span { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: 50%; color: var(--brand-300); background: rgb(255 255 255 / .07); }
  .solution-link small { display: block; color: rgb(255 255 255 / .48); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
  .solution-link strong { display: block; margin-top: .25rem; color: var(--white); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
  .solution-link > .icon { color: var(--brand-300); }
  .content-split { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.1fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
  .content-split--light h2 { color: var(--white); }
  .prose { color: var(--ink-700); }
  .prose p { font-size: var(--text-lg); }
  .prose p + p { margin-top: var(--space-5); }
  .content-split--light .prose p { color: rgb(255 255 255 / .67); }

  /* About & institutional */
  .logo-panel { overflow: hidden; border: 1px solid var(--stone-300); border-radius: .5rem 4rem .5rem .5rem; box-shadow: var(--shadow-md); background: var(--brand-900); }
  .logo-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .ergo-wordmark { display: grid; min-height: 28rem; place-items: center; padding: 2rem; border: 1px solid var(--stone-300); border-radius: .5rem 4rem .5rem .5rem; background: var(--brand-950); box-shadow: var(--shadow-md); }
  .ergo-wordmark strong { color: var(--white); font-family: var(--font-sans); font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.07em; }
  .ergo-wordmark small { display: block; margin-top: .5rem; color: var(--brand-300); font-size: var(--text-xs); font-weight: 650; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
  .method-grid, .presence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
  .presence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .presence-grid .info-card { min-height: 12rem; }
  .affiliate-hero { background: var(--surface); }
  .dashboard-paper { position: relative; padding: 1.25rem; border: 1px solid var(--stone-300); border-radius: .5rem 3rem .5rem .5rem; box-shadow: var(--shadow-md); background: var(--surface-raised); transform: rotate(1deg); }
  .dashboard-paper__top { display: flex; gap: .35rem; margin: -.25rem 0 2rem; }
  .dashboard-paper__top span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--stone-300); }
  .dashboard-paper > small { color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
  .dashboard-paper > strong { display: block; margin: .35rem 0 1.5rem; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; }
  .dashboard-paper dl { border-top: 1px solid var(--stone-200); }
  .dashboard-paper dl > div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: .8rem; border-bottom: 1px solid var(--stone-200); font-size: var(--text-xs); }
  .dashboard-paper dt { color: var(--ink-500); }
  .dashboard-paper dd { color: var(--ink-900); font-weight: 670; text-align: right; }
  .dashboard-paper button { width: 100%; margin-top: 1rem; padding: .8rem; border: 0; border-radius: var(--radius-pill); color: var(--white); background: var(--brand-800); font-size: var(--text-xs); font-weight: 740; }

  /* Glossary */
  .glossary-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .glossary-layout > aside { position: sticky; top: 8rem; }
  .glossary-layout > aside h2 { font-size: var(--text-2xl); }
  .glossary-layout > aside p { margin-top: var(--space-4); font-size: var(--text-sm); }
  .glossary-layout .search-field { margin-top: var(--space-6); }
  .glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--stone-300); border-left: 1px solid var(--stone-300); }
  .glossary-entry { padding: var(--space-6); border-right: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); }
  .glossary-entry h2 { font-size: var(--text-xl); }
  .glossary-entry p { margin-top: .55rem; font-size: var(--text-sm); }
  .empty-state { grid-column: 1 / -1; padding: 2rem; border-right: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); text-align: center; }

  /* FAQ page */
  .faq-page-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
  .faq-aside { position: sticky; top: 8rem; }
  .faq-aside h2 { font-size: var(--text-2xl); }
  .faq-aside > p:not(.eyebrow) { margin-top: var(--space-4); font-size: var(--text-sm); }
  .faq-aside .button { margin-top: var(--space-6); }
  .faq-category + .faq-category { margin-top: clamp(3rem, 6vw, 5rem); }
  .faq-category > h2 { margin-bottom: var(--space-5); font-size: var(--text-2xl); }

  /* Contact */
  .contact-hero .container { max-width: 60rem; }
  .contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .58fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .contact-form { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--stone-300); border-radius: .5rem 3rem .5rem .5rem; background: var(--surface); }
  .form-heading { margin-bottom: var(--space-4); padding-bottom: var(--space-6); border-bottom: 1px solid var(--stone-200); }
  .form-heading h2 { font-size: var(--text-2xl); }
  .form-heading > p:last-child { margin-top: var(--space-4); font-size: var(--text-sm); }
  .contact-sidebar { display: grid; gap: var(--space-4); }
  .contact-card { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: var(--surface); }
  .contact-card > span { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; color: var(--brand-700); background: var(--brand-100); }
  .contact-card small { display: block; margin-bottom: .35rem; color: var(--brand-700); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
  .contact-card a { display: block; color: var(--ink-900); font-size: var(--text-sm); text-decoration: none; overflow-wrap: anywhere; }
  .contact-card a + a { margin-top: .25rem; }
  .contact-card p, .contact-card address { margin-top: .35rem; color: var(--ink-600); font-size: var(--text-xs); line-height: 1.55; }
  .contact-sidebar .notice { margin-top: 0; }

  /* Legal */
  .legal-date { margin-top: var(--space-6) !important; color: var(--ink-500); font-size: var(--text-xs) !important; }
  .legal-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .legal-layout > .notice { position: sticky; top: 8rem; margin-top: 0; }
  .legal-content > section + section { margin-top: var(--space-10); }
  .legal-content h2 { font-size: var(--text-2xl); }
  .legal-content p { font-size: var(--text-sm); }

  /* Design system */
  .ds-stack { display: grid; gap: clamp(3rem, 7vw, 6rem); }
  .ds-stack > section { padding-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--stone-300); }
  .ds-stack > section > h2 { margin-bottom: var(--space-8); font-size: var(--text-2xl); }
  .swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
  .swatches > div { overflow: hidden; border: 1px solid var(--stone-300); border-radius: var(--radius-sm); background: var(--surface); }
  .swatches span { display: block; aspect-ratio: 1.5; background: var(--swatch); }
  .swatches code { display: block; padding: .65rem; color: var(--ink-700); font-size: .7rem; }
  .type-samples { display: grid; gap: var(--space-6); }
  .component-row { display: flex; flex-wrap: wrap; gap: var(--space-4); padding: var(--space-6); background: var(--brand-950); }
  .form-demo { max-width: 36rem; }

  /* 404 */
  .error-page { display: grid; min-height: 78vh; place-items: center; padding-block: var(--section-space); text-align: center; }
  .error-page .container { max-width: 48rem; }
  .error-page img { width: 8rem; margin-inline: auto; border-radius: 50%; box-shadow: var(--shadow-md); }
  .error-page .eyebrow { justify-content: center; margin-top: var(--space-8); }
  .error-page > .container > p:not(.eyebrow) { margin-top: var(--space-5); font-size: var(--text-lg); }
  .error-page .hero__actions { justify-content: center; }
}

@layer utilities {
  [hidden] { display: none !important; }
}

@layer responsive {
  @media (max-width: 72rem) {
    .primary-nav { gap: .75rem; }
    .primary-nav > a:not(.button), .nav-group > summary { font-size: .8rem; }
    .primary-nav .button { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
    .footer-grid > div:nth-child(5) { grid-column: 2 / -1; }
    .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 62rem) {
    .section-heading--split, .hero__grid, .product-hero__grid, .sector-hero__grid, .about-hero__grid, .ergo-hero__grid, .affiliate-hero__grid, .about-band__grid, .content-split { grid-template-columns: 1fr; }
    .hero__copy { max-width: 55rem; }
    .quote-card { width: min(100%, 42rem); }
    .sector-grid { grid-template-columns: 1fr; }
    .sector-card { min-height: auto; }
    .process-layout { grid-template-columns: 1fr; }
    .process-intro, .article-toc, .faq-aside, .glossary-layout > aside, .legal-layout > .notice { position: static; }
    .parties-layout { grid-template-columns: 1fr; }
    .parties-visual { width: min(100%, 24rem); }
    .guide-grid--home, .guide-grid--library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: 1fr; }
    .product-emblem, .sector-illustration, .ergo-wordmark, .logo-panel, .dashboard-paper { width: min(100%, 34rem); margin-inline: auto; }
    .article-layout { grid-template-columns: 1fr; }
    .article-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-4); padding-bottom: var(--space-6); border-bottom: 1px solid var(--stone-300); }
    .article-toc p { grid-column: 1 / -1; }
    .article-content { width: 100%; }
    .solution-links { grid-template-columns: 1fr; }
    .glossary-layout, .faq-page-layout, .legal-layout, .contact-layout { grid-template-columns: 1fr; }
    .glossary-layout > aside, .faq-aside { max-width: 44rem; }
    .glossary-layout > aside .search-field { width: min(100%, 34rem); }
    .contact-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-sidebar .notice { grid-column: 1 / -1; }
    .presence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 56rem) {
    .utility-bar__inner { justify-content: center; }
    .utility-bar p { display: none; }
    .nav-shell__inner { min-height: 4.7rem; }
    .menu-toggle {
      position: relative;
      z-index: calc(var(--z-menu) + 2);
      display: grid;
      width: 2.9rem;
      height: 2.9rem;
      place-content: center;
      gap: .32rem;
      border: 1px solid var(--stone-300);
      border-radius: 50%;
      background: var(--surface);
      cursor: pointer;
    }
    .menu-toggle > span:not(.sr-only) { width: 1.25rem; height: 1.5px; background: var(--ink-900); transition: transform var(--duration-fast), opacity var(--duration-fast); }
    .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(.41rem) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-.41rem) rotate(-45deg); }
    .primary-nav {
      position: fixed;
      z-index: var(--z-menu);
      inset: 0;
      display: block;
      visibility: hidden;
      overflow-y: auto;
      padding: 7rem var(--gutter) 3rem;
      opacity: 0;
      background: var(--canvas);
      transform: translateY(-1rem);
      transition: opacity var(--duration-base), transform var(--duration-base), visibility var(--duration-base);
    }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .primary-nav > a:not(.button), .nav-group > summary { width: 100%; padding-block: 1rem; border-bottom: 1px solid var(--stone-300); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; }
    .nav-group > summary { justify-content: space-between; }
    .nav-group { width: 100%; }
    .mega-menu, .mega-menu--products {
      position: static;
      width: 100%;
      grid-template-columns: 1fr;
      gap: 0;
      padding: .4rem 0 1rem 1rem;
      border: 0;
      border-bottom: 1px solid var(--stone-300);
      border-radius: 0;
      box-shadow: none;
      background: transparent;
      transform: none;
    }
    .mega-menu::before { display: none; }
    .mega-menu__label { padding-left: 0; }
    .mega-menu > a, .mega-menu > div > a { padding: .65rem 0; }
    .mega-menu > a:hover, .mega-menu > div > a:hover { background: transparent; }
    .mega-menu__all { grid-column: auto; padding-left: 0 !important; }
    .primary-nav .button { display: inline-flex; width: 100%; margin-top: var(--space-8); }
    .footer-cta__inner { grid-template-columns: 1fr; }
    .footer-cta__actions { justify-content: flex-start; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:nth-child(5) { grid-column: auto; }
    .footer-bottom { grid-template-columns: 1fr; }
    .footer-bottom p:last-child { justify-self: start; text-align: left; }
  }

  @media (max-width: 44rem) {
    :root { --section-space: 4.5rem; }
    body { background: var(--color-bg); }
    h1 { font-size: clamp(2.65rem, 2.2rem + 4vw, 3.7rem); }
    h2 { font-size: clamp(2rem, 1.7rem + 2.4vw, 2.8rem); }
    .utility-bar__links { width: 100%; justify-content: space-between; gap: .4rem; }
    .utility-bar__links span { display: none; }
    .brand__name { font-size: .94rem; }
    .brand__mark { width: 2.65rem; height: 2.65rem; }
    .hero { padding-top: 3.5rem; }
    .hero__actions { align-items: stretch; }
    .hero__actions .button { width: 100%; }
    .hero__facts { grid-template-columns: 1fr; }
    .hero__facts > div { padding: var(--space-4) 0; border-bottom: 1px solid var(--stone-300); }
    .hero__facts > div + div { padding-left: 0; border-left: 0; }
    .quote-card { border-radius: .5rem 2.3rem .5rem .5rem; }
    .form-row { grid-template-columns: 1fr; }
    .trust-band__inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: var(--space-6); }
    .trust-band ul { justify-content: flex-start; }
    .trust-band li + li::before { display: none; }
    .trust-band li { padding: .35rem .65rem; border: 1px solid var(--stone-300); border-radius: var(--radius-pill); }
    .product-grid, .guide-grid--home, .guide-grid--library { grid-template-columns: 1fr; }
    .timeline li { grid-template-columns: 3.2rem minmax(0, 1fr); gap: var(--space-4); }
    .party-list article { grid-template-columns: 1fr; gap: .5rem; }
    .catalog-card { grid-template-columns: 1fr; }
    .catalog-card__icon { width: 3rem; }
    .callout-grid { grid-template-columns: 1fr; }
    .product-emblem, .sector-illustration, .ergo-wordmark { min-height: 23rem; border-radius: .5rem 2.6rem .5rem .5rem; }
    .article-toc { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .check-list--columns { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .inline-cta { grid-template-columns: 1fr; border-radius: .5rem 2rem .5rem .5rem; }
    .library-tools { align-items: stretch; }
    .search-field { width: 100%; }
    .filter-buttons { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
    .filter-buttons button { flex: 0 0 auto; }
    .glossary-list { grid-template-columns: 1fr; }
    .contact-sidebar { grid-template-columns: 1fr; }
    .presence-grid, .method-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-cta__actions { align-items: stretch; flex-direction: column; }
    .footer-cta__actions .button { width: 100%; }
    .cookie-banner { align-items: stretch; flex-direction: column; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .component-row { align-items: stretch; flex-direction: column; }
  }

  @media (max-width: 24rem) {
    .utility-bar__links { justify-content: center; }
    .utility-bar__links a:nth-of-type(2), .utility-bar__links a:nth-of-type(3) { display: none; }
    .article-toc { grid-template-columns: 1fr; }
  }

  @media (hover: hover) {
    .nav-group:not([open]):hover > .mega-menu { display: grid; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }

  @media print {
    .site-header, .site-footer, .cookie-banner, .article-toc, .hero__actions, .quote-card { display: none !important; }
    body { background: white; }
    .section, .page-hero { padding-block: 2rem; }
    .article-layout { grid-template-columns: 1fr; }
  }
}

@layer pages {
  .parties-visual { overflow: clip; }

  .product-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--stone-300);
    border-left: 1px solid var(--stone-300);
  }
  .product-link-grid > a {
    display: grid;
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
    min-height: 7.2rem;
    padding: var(--space-5);
    border-right: 1px solid var(--stone-300);
    border-bottom: 1px solid var(--stone-300);
    background: rgb(255 253 249 / .55);
    text-decoration: none;
    transition: background var(--duration-fast), transform var(--duration-fast);
  }
  .product-link-grid > a:hover { z-index: 1; background: var(--surface-raised); transform: translateY(-2px); }
  .product-link-grid > a > .icon {
    width: 2.7rem;
    height: 2.7rem;
    padding: .72rem;
    border: 1px solid var(--stone-300);
    border-radius: 50%;
    color: var(--brand-700);
  }
  .product-link-grid strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; line-height: 1.2; }
  .product-link-grid small { display: block; margin-top: .3rem; color: var(--ink-600); font-size: var(--text-xs); line-height: 1.4; }

  .ergo-wordmark > span {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: -.07em;
    line-height: .92;
  }
  .ergo-wordmark > p {
    max-width: 18rem;
    margin-top: var(--space-10);
    color: rgb(255 255 255 / .56);
    font-size: var(--text-xs);
    line-height: 1.55;
    text-align: center;
  }

  .method-grid article {
    padding: var(--space-5) var(--space-5) var(--space-5) 0;
    border-top: 1px solid rgb(255 255 255 / .18);
  }
  .method-grid article > span { color: var(--brand-300); font-family: var(--font-display); font-size: var(--text-lg); }
  .method-grid h3 { margin-top: var(--space-6); color: var(--white); }
  .method-grid p { margin-top: .5rem; color: rgb(255 255 255 / .6); font-size: var(--text-sm); line-height: 1.5; }

  .address-card {
    min-height: 11rem;
    padding: var(--space-6);
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-md);
    background: var(--surface);
  }
  .address-card strong { display: block; color: var(--brand-900); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
  .address-card p { margin-top: var(--space-4); font-size: var(--text-sm); line-height: 1.55; }
}

@layer responsive {
  @media (max-width: 62rem) {
    .product-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 44rem) {
    .product-link-grid { grid-template-columns: 1fr; }
  }
}


/* ============================================================
   v2 — Refino visual + mobile (agosto 2026)
   ============================================================ */

@layer base {
  /* overflow-x: hidden no body quebra position: sticky — clip não */
  html, body { overflow-x: clip; }
  h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; }
  p, li, dd, figcaption { text-wrap: pretty; }
  h1, h2, h3, h4, [id] { scroll-margin-top: 7.5rem; }
}

@layer components {
  .site-header { position: sticky; top: 0; }
  .site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 10px 30px rgb(17 23 37 / .07); }
  .site-header.is-sticky .utility-bar { display: none; }
  .nav-shell {
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid rgb(17 23 37 / .08);
    background: rgb(246 243 237 / .88);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
  }
  body.menu-open .nav-shell { background: var(--canvas); backdrop-filter: none; }

  .utility-bar a { display: inline-flex; min-height: var(--tap); align-items: center; }
  .utility-bar__inner { min-height: 2.6rem; }
  .button--compact { min-height: var(--tap); }
  .primary-nav > a:not(.button), .nav-group > summary { min-height: var(--tap); display: inline-flex; align-items: center; }
  .footer-grid a { display: inline-block; padding-block: .34rem; }
  .footer-grid li + li { margin-top: .1rem; }
  .filter-buttons button { min-height: var(--tap); padding-inline: 1rem; }
  .breadcrumbs a { display: inline-flex; min-height: 2rem; align-items: center; }

  .mobile-actions {
    position: fixed;
    z-index: var(--z-float);
    inset: auto 0 0 0;
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: .8rem clamp(1rem, 3vw, 2rem) calc(.8rem + env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .mobile-actions .button {
    padding-inline: 1.4rem;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
  }
  .mobile-actions .button--secondary { background: var(--surface-raised); }

  @media (hover: none) {
    .button:hover, .product-card:hover, .sector-card:hover,
    .product-link-grid > a:hover { transform: none; box-shadow: none; }
  }

  .quote-collapse > summary { display: none; }
}

@layer responsive {
  /* A barra fixa acompanha todas as larguras */
  @media (max-width: 72rem) {
    body { padding-bottom: 5.2rem; }
    .cookie-banner { bottom: calc(5.4rem + var(--gutter)); }
  }

  /* O formulário recolhe quando o herói empilha */
  @media (max-width: 62rem) {
    .hero-banner { width: min(100%, 34rem); min-height: 24rem; }
    .quote-collapse { display: block; }
    .quote-collapse > summary {
      display: flex;
      min-height: 3.1rem;
      align-items: center;
      justify-content: space-between;
      gap: .75rem;
      padding: .7rem 1.1rem;
      border: 1px solid var(--brand-800);
      border-radius: var(--radius-pill);
      color: var(--brand-900);
      font-size: var(--text-sm);
      font-weight: 700;
      cursor: pointer;
    }
    .quote-collapse > summary::after {
      content: "";
      width: .45rem;
      height: .45rem;
      flex: 0 0 auto;
      border-right: 1.6px solid currentColor;
      border-bottom: 1.6px solid currentColor;
      transform: translateY(-.14rem) rotate(45deg);
    }
    .quote-collapse[open] > summary { margin-bottom: var(--space-5); }
    .quote-collapse[open] > summary::after { transform: translateY(.1rem) rotate(225deg); }
  }

  @media (max-width: 56rem) {
    body.menu-open .mobile-actions { display: none; }
    .mobile-actions {
      justify-content: stretch;
      padding-inline: var(--gutter);
      border-top: 1px solid var(--stone-300);
      background: rgb(255 253 249 / .94);
      backdrop-filter: saturate(160%) blur(14px);
      -webkit-backdrop-filter: saturate(160%) blur(14px);
    }
    .mobile-actions .button { width: 100%; }
    .primary-nav { padding-top: 6rem; padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
    .primary-nav > a:not(.button), .nav-group > summary { font-size: var(--text-xl); }
  }

  @media (max-width: 44rem) {
    .utility-bar__links a[href^="mailto:"], .utility-bar__links span { display: none; }
    .utility-bar__links { justify-content: space-between; gap: .5rem; }

    .hero { padding-top: 2.25rem; }
    .hero__lead, .page-hero__lead, .page-hero--compact .container > p:last-child { font-size: var(--text-base); }
    .hero__facts { margin-top: var(--space-8); }
    .hero__facts dt { font-size: var(--text-lg); }
    .hero-banner { min-height: 20rem; border-radius: .5rem 2.3rem .5rem .5rem; }
    .hero-banner__slide h2 { font-size: var(--text-xl); }
    .quote-card { padding: 1.15rem; }
    .quote-card__head { margin-bottom: var(--space-4); padding-bottom: var(--space-4); }
    .quote-card__head h2 { font-size: var(--text-xl); }

    .product-card { padding: 1.4rem 1.15rem; }
    .product-card__icon, .catalog-card__icon { width: 2.6rem; height: 2.6rem; }
    .product-card__kicker { margin-top: var(--space-5); }
    .product-card > p:not(.product-card__kicker) { margin-top: var(--space-3); }
    .product-card .card-link, .guide-card .card-link { margin-top: var(--space-4); min-height: var(--tap); }
    .guide-card { padding: 1.4rem 1.15rem; }
    .guide-card--library { min-height: auto; }
    .info-card, .related-card, .address-card { padding: 1.4rem 1.15rem; }
    .related-card { min-height: auto; }
    .card-number { margin-bottom: var(--space-5); }

    .product-emblem, .sector-illustration, .ergo-wordmark { min-height: 16.5rem; padding: 1.5rem; }
    .product-emblem > span { top: 1.25rem; left: 1.25rem; width: 2.9rem; height: 2.9rem; }
    .product-emblem p { right: 1.25rem; bottom: 1.25rem; left: 1.25rem; }
    .product-emblem img { width: 36%; }
    .sector-illustration > span { width: 3.6rem; height: 3.6rem; }
    .sector-illustration > span .icon { width: 1.5rem; height: 1.5rem; }
    .sector-illustration p { font-size: var(--text-lg); }
    .parties-visual { width: min(100%, 17rem); }
    .logo-panel, .dashboard-paper { width: min(100%, 26rem); }

    .article-toc {
      display: flex;
      overflow-x: auto;
      gap: .45rem;
      padding-bottom: .9rem;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .article-toc::-webkit-scrollbar { display: none; }
    .article-toc p { flex: 0 0 auto; align-self: center; margin: 0 .35rem 0 0; }
    .article-toc a {
      flex: 0 0 auto;
      display: inline-flex;
      min-height: 2.5rem;
      align-items: center;
      padding: .4rem .85rem;
      border: 1px solid var(--stone-300);
      border-radius: var(--radius-pill);
      background: var(--surface);
      scroll-snap-align: start;
    }
    .filter-buttons { scroll-snap-type: x proximity; scrollbar-width: none; }
    .filter-buttons::-webkit-scrollbar { display: none; }

    .faq-item summary { min-height: var(--tap); padding-right: 2.4rem; }
    .timeline li { padding-block: var(--space-6); }
    .section-heading { margin-bottom: var(--space-8); }
  }

  @media (max-width: 24rem) {
    .mobile-actions { grid-template-columns: 1fr; }
    body { padding-bottom: 4.6rem; }
  }

  @media print {
    .mobile-actions { display: none !important; }
    body { padding-bottom: 0; }
  }
}

@layer components {
  /* Logo do rodapé reduzido */
  .footer-grid .brand--footer { display: inline-flex; align-items: center; gap: .7rem; }
  .brand--footer .brand__mark { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; }
  .brand--footer .brand__mark img { width: 100%; height: 100%; object-fit: cover; }
  .brand--footer .brand__name { font-size: .95rem; }

  /* CTA de especialista no WhatsApp — pulso leve */
  @keyframes guev-pulse {
    0% { box-shadow: 0 0 0 0 rgb(84 183 243 / .5); }
    70% { box-shadow: 0 0 0 .9rem rgb(84 183 243 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(84 183 243 / 0); }
  }
  .button--whats {
    color: var(--brand-950);
    background: var(--surface);
    animation: guev-pulse 2.6s var(--ease-out) infinite;
  }
  .button--whats:hover { background: var(--white); }
  .mobile-actions .button--whats { border-color: var(--stone-300); }

  /* Banner rotativo do herói */
  .hero-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 30rem;
    align-content: end;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--stone-300);
    border-radius: .6rem 3.2rem .6rem .6rem;
    box-shadow: var(--shadow-md);
    background: var(--brand-950);
  }
  .hero-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
  }
  .hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(13 26 56 / .35) 0%, rgb(13 26 56 / .82) 52%, rgb(13 26 56 / .96) 100%);
  }
  .hero-banner__slides { position: relative; z-index: 1; display: grid; }
  .hero-banner__slide {
    grid-area: 1 / 1;
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    visibility: hidden;
    opacity: 0;
    transform: translateY(.6rem);
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
  }
  .hero-banner__slide.is-active { visibility: visible; opacity: 1; transform: none; }
  .hero-banner__slide .eyebrow { margin-bottom: 0; }
  .hero-banner__slide h2 { color: var(--white); font-size: var(--text-2xl); line-height: 1.1; }
  .hero-banner__slide p:not(.eyebrow) { color: rgb(255 255 255 / .7); font-size: var(--text-sm); }
  .hero-banner__dots { position: relative; z-index: 1; display: flex; gap: .5rem; margin-top: var(--space-6); }
  .hero-banner__dots button {
    width: 2.2rem;
    height: var(--tap);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .hero-banner__dots button::before {
    content: "";
    display: block;
    height: 2px;
    border-radius: 2px;
    background: rgb(255 255 255 / .3);
    transition: background var(--duration-fast);
  }
  .hero-banner__dots button.is-active::before { background: var(--brand-300); }
}


@layer pages {
  /* Fecha a moldura das grades quando a última linha fica incompleta */
  .product-grid,
  .guide-grid--home,
  .guide-grid--library,
  .product-link-grid,
  .glossary-list {
    border-right: 1px solid var(--stone-300);
    border-bottom: 1px solid var(--stone-300);
  }
  .product-grid > *,
  .guide-grid--home > *,
  .guide-grid--library > *,
  .product-link-grid > *,
  .glossary-list > * { margin-right: -1px; margin-bottom: -1px; }
}
