/* medially 2026: shared chrome (tokens, header, mega menu, drawer, footer, mobile CTA) */

    @font-face { font-family: Archivo; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 300 700; font-stretch: 100% 125%; font-display: swap; }
    @font-face { font-family: Archivo; src: url("fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-stretch: 100% 125%; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
    @font-face { font-family: Manrope; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }


    :root {
      --bg: #ffffff;
      --surface: #f5f3ee;
      --white: #ffffff;
      --ink: #121826;
      --ink-2: #242d40;
      --text-2: #5d626c;
      --text-3: #8b8f97;
      --rule: #e2ddd3;
      --rule-2: #ece8e0;
      --amber: #d89a2b;
      --amber-hi: #e5a83f;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --r: 8px;
      --max: 1320px;
      --gutter: clamp(16px, 3vw, 40px);
      --nav-h: 80px;
      --display: "Archivo", system-ui, sans-serif;
      --body: "Manrope", system-ui, sans-serif;
      color-scheme: light;
      interpolate-size: allow-keywords;

    /* scoped resets: never touch post content (lists, images) on subpages */
    html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body { background: var(--bg); color: var(--ink); padding-top: 0 !important; overflow-x: clip; }
    body.menu-open { overflow: hidden; }
    :where(.header, .drawer, .footer, .mbar) * { box-sizing: border-box; }
    :where(.header, .drawer, .footer) :where(ul) { list-style: none; margin: 0; padding: 0; }
    :where(.header, .drawer, .footer) :where(img) { display: block; max-width: 100%; }
    :where(.header, .drawer, .mbar) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    ::selection { background: var(--amber); color: var(--ink); }
    :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
    .container { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; }
    .sq { width: 8px; height: 8px; background: var(--amber); display: inline-block; flex: none; }
    .ar { width: 12px; height: 12px; flex: none; }
    .skip { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease); }
    .skip:focus { transform: none; }

    /* scroll progress (scroll-driven animation, progressive) */
    .progress { display: none; }
    @supports (animation-timeline: scroll()) {
      .progress { display: block; position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); pointer-events: none; }
      @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    }
    body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; overflow-x: clip; }
    body.menu-open { overflow: hidden; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    ul { list-style: none; }
    img { display: block; max-width: 100%; }
    ::selection { background: var(--amber); color: var(--ink); }
    :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
    [id] { scroll-margin-top: 90px; }

    .container { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; }
    .sq { width: 8px; height: 8px; background: var(--amber); display: inline-block; flex: none; }
    .ar { width: 12px; height: 12px; flex: none; }

    main, .band, .footer { position: relative; z-index: 1; }

    /* ================= HEADER ================= */
    .header { position: sticky; top: 0; z-index: 50; }
    .nav {
      position: relative; background: rgba(255, 255, 255, .92);
      backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
      border-bottom: 1px solid var(--rule);
      transition: box-shadow .4s var(--ease);
    }
    .header.is-scrolled .nav { box-shadow: 0 10px 30px -18px rgba(18, 24, 38, .25); }
    .nav > .container { display: flex; align-items: center; height: var(--nav-h); gap: 40px; transition: height .4s var(--ease); }
    .header.is-scrolled { --nav-h: 68px; }
    .logo img { height: 24px; width: auto; }

    .menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; height: 100%; }
    .menu > li { height: 100%; display: flex; align-items: center; }
    .menu__link {
      display: inline-flex; align-items: center; gap: 6px;
      height: 40px; padding: 0 14px; border-radius: 6px;
      font-size: 15px; font-weight: 500; transition: background .25s var(--ease);
    }
    .menu__link:hover, .has-mega.is-open > .menu__link { background: var(--surface); }
    .menu__link { position: relative; }
    .menu__link[aria-current="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--amber); }
    .menu__link .chev { width: 10px; height: 10px; opacity: .55; transition: transform .35s var(--ease); }
    .has-mega.is-open .chev { transform: rotate(180deg); }

    /* mega menu */
    .mega {
      position: absolute; left: 0; right: 0; top: 100%;
      background: var(--white); border-bottom: 1px solid var(--rule);
      box-shadow: 0 30px 60px -30px rgba(18, 24, 38, .3);
      opacity: 0; visibility: hidden; transform: translateY(-8px);
      transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s;
    }
    .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 32px; padding: 36px 0 40px; }
    .mega--small .mega__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2.3fr); }
    .mega__col h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rule-2); }
    .mi { width: 24px; height: 24px; flex: none; }
    /* fixed padding + negative margin: hover only paints the background, text never reflows */
    .mega__col a { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -10px; padding: 9px 10px; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1.35; transition: background .25s; }
    .mega__col a:hover { background: var(--surface); }
    .mega__col a .ar { color: var(--amber); opacity: 0; transform: translate(-4px, 4px); transition: .35s var(--ease); }
    .mega__col a:hover .ar { opacity: 1; transform: none; }
    .mega__col small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--text-2); }
    .mega__feature {
      position: relative; overflow: hidden; border-radius: var(--r); background: var(--ink); color: #fff;
      --cut: 36px;
      padding: 60px 28px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 280px;
    }
    .mega__feature .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
    .mega__feature strong { display: block; margin-top: 10px; max-width: 16ch; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: 22px; line-height: 1.12; letter-spacing: -.035em; }
    .mega__feature p { margin-top: 10px; max-width: 30ch; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
    .mega__feature .more { color: #fff; }
    .mega__feature .bars { position: absolute; right: 24px; bottom: 0; display: flex; gap: 8px; align-items: flex-end; }
    .mega__feature .bars i { width: 22px; background: var(--amber); clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); transform: translateY(30%); transition: transform .8s var(--ease); }
    .mega__feature .bars i:first-child { height: 70px; }
    .mega__feature .bars i:last-child { height: 110px; }
    .mega__feature:hover .bars i { transform: none; }

    /* ================= BUTTONS ================= */
    .btn {
      display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px;
      border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap;
      transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
    }
    .btn svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
    .btn:hover svg { transform: translateX(3px); }
    .btn--ink { background: var(--ink); color: #fff; }
    .btn--ink:hover { background: var(--ink-2); }
    .btn--amber { background: var(--amber); color: var(--ink); }
    .btn--amber:hover { background: var(--amber-hi); }
    .btn--line { border: 1px solid var(--rule); background: var(--white); }
    .btn--line:hover { border-color: var(--ink); }
    .btn--sm { height: 46px; padding: 0 22px; }
    .btn--lg { height: 58px; padding: 0 30px; font-size: 16px; }

    .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
    .more .ar { color: var(--amber); transition: transform .4s var(--ease); }
    .more span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
    .more:hover span, a:hover > .more span { background-size: 100% 1px; }
    .more:hover .ar, a:hover > .more .ar { transform: translate(2px, -2px); }

    /* burger + drawer */
    .burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; position: relative; flex: none; }
    .burger i { position: absolute; left: 15px; width: 16px; height: 1.6px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
    .burger i:first-child { top: 19px; }
    .burger i:last-child { top: 25px; }
    .menu-open .burger i:first-child { top: 22px; transform: rotate(45deg); }
    .menu-open .burger i:last-child { top: 22px; transform: rotate(-45deg); }
    .drawer {
      position: fixed; inset: 0; z-index: 40; background: var(--white);
      padding: calc(var(--nav-h) + 16px) var(--gutter) 32px;
      display: flex; flex-direction: column; overflow-y: auto;
      clip-path: inset(0 0 100% 0); visibility: hidden;
      transition: clip-path .6s var(--ease), visibility 0s .6s;
    }
    .menu-open .drawer { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
    .drawer__list > li { border-bottom: 1px solid var(--rule-2); }
    .drawer__list > li > a, .drawer__list summary {
      display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
      font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: 24px; letter-spacing: -.04em;
      list-style: none; cursor: pointer;
    }
    .drawer__list summary::-webkit-details-marker { display: none; }
    .drawer__list summary .chev { width: 16px; height: 16px; transition: transform .35s var(--ease); }
    .drawer__list details[open] summary .chev { transform: rotate(180deg); }
    .drawer__sub { padding: 0 0 18px; display: grid; gap: 12px; }
    .drawer__sub h5 { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
    .drawer__sub h5 .mi { width: 20px; height: 20px; }
    .drawer__sub a { font-size: 16px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
    .drawer__sub .sq { width: 6px; height: 6px; }
    .drawer__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 16px; }
    .drawer__foot .btn { justify-content: center; }
    .drawer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--text-2); }


    /* ---------- FOOTER ---------- */
    .footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-top: clamp(64px, 10vh, 112px); overflow: hidden; }
    .footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
    .footer__about p { font-size: 15px; line-height: 1.6; max-width: 34ch; }
    .footer__about .logo img { height: 26px; margin-bottom: 22px; }
    .footer__social { margin-top: 22px; display: flex; gap: 10px; }
    .footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
    .footer__social a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
    .footer__social svg { width: 14px; height: 14px; }
    .footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 18px; }
    .footer ul { display: grid; gap: 10px; font-size: 15px; }
    .footer ul a { transition: color .25s; }
    .footer ul a:hover { color: var(--amber); }
    .footer__mark { margin-top: clamp(56px, 9vh, 96px); }
    .footer__mark img { width: 100%; height: auto; }
    .footer__bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 24px 0 28px; margin-top: clamp(24px, 4vh, 40px); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
    .footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
    .footer__bottom a:hover { color: #fff; }

    /* mobile sticky CTA */
    .mbar { display: none; }


    .mega__feature {
      clip-path: polygon(
        0 calc(var(--cut) + 9px), .6px calc(var(--cut) + 5.6px), 2.3px calc(var(--cut) + 2.6px),
        5px calc(var(--cut) + .6px), 9px calc(var(--cut) - 1px), 100% 0, 100% 100%, 0 100%
      );
    }

    @media (max-width: 1180px) {
      .menu, .nav__cta { display: none; }
      .burger { display: block; }
      .nav > .container { justify-content: space-between; }
      .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .footer__about { grid-column: 1 / -1; }
    }
    @media (max-width: 640px) {
      :root { --nav-h: 68px; }
      .header.is-scrolled { --nav-h: 64px; }
      .mbar {
        display: flex; align-items: center; gap: 8px;
        position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
        padding: 6px; border-radius: 999px; background: rgba(18, 24, 38, .94);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 20px 40px -16px rgba(18, 24, 38, .5);
        transform: translateY(calc(100% + 24px)); transition: transform .5s var(--ease);
      }
      .show-mbar .mbar { transform: none; }
      .menu-open .mbar { transform: translateY(calc(100% + 24px)); }
      .mbar .btn { flex: 1; height: 48px; justify-content: center; }
      .mbar__call { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); flex: none; }
      .mbar__call svg { width: 18px; height: 18px; }
      .footer__bottom { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
      .footer__top { grid-template-columns: minmax(0, 1fr); }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .header *, .drawer *, .mbar *, .progress { animation: none !important; transition: none !important; }
      .progress { display: none; }
    }

    /* Keep the menu backdrop opaque while its content enters and leaves. */
    .drawer {
      clip-path: none; opacity: 1; transform: none; pointer-events: none;
      visibility: hidden; transition: visibility 0s .22s;
    }
    .menu-open .drawer { clip-path: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
    .drawer__list, .drawer__foot {
      opacity: 0; transform: translateY(-6px);
      transition: opacity .22s ease, transform .22s var(--ease);
    }
    .menu-open .drawer__list, .menu-open .drawer__foot { opacity: 1; transform: none; }
    .drawer__list details.is-collapsing summary .chev { transform: none; }
    @media (prefers-reduced-motion: reduce) {
      .drawer, .drawer__list, .drawer__foot { transition: none; transform: none; }
    }

    /* Keep the close control reachable when the menu locks page scrolling. */
    @media (max-width: 1180px) {
      body.menu-open .header { position: fixed; inset: 0 0 auto; z-index: 50; }
      .drawer__contact { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; text-align: center; }
      .drawer__contact a { max-width: 100%; overflow-wrap: anywhere; }
    }
}
