/* ==========================================================================
   UNIRAY - components
   ========================================================================== */
@layer components {

  /* ---------------------------------------------------------------- glass */
  .glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-1);
  }
  .glass--strong { background: var(--glass-fill-strong); }

  /* cursor-tracked specular highlight (set by ui.js) */
  .glass--spec { position: relative; overflow: hidden; }
  .glass--spec::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur-2) var(--ease-out);
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, .13), transparent 62%);
  }
  @media (hover: hover) and (pointer: fine) {
    .glass--spec:hover::after { opacity: 1; }
  }

  /* ---------------------------------------------------------------- buttons */
  .btn {
    --btn-h: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7em;
    min-height: var(--btn-h);
    padding-inline: 1.5em;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: .01em;
    text-align: center;
    transition: transform var(--dur-1) var(--ease-out),
                background-color var(--dur-2) var(--ease-out),
                color var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                box-shadow var(--dur-2) var(--ease-out);
    will-change: transform;
  }
  .btn:active { transform: scale(.97); }
  .btn .icon { flex: none; }

  .btn--primary {
    background: var(--lime-soft);
    color: var(--ink-950);
    border: 1.5px solid transparent;
  }
  .btn--primary:hover { background: #E0ED9F; box-shadow: var(--shadow-lime); }

  .btn--glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1.5px solid rgba(255, 255, 255, .7);
    color: var(--text);
    box-shadow: var(--glass-edge);
  }
  .btn--glass:hover {
    background: var(--lime-soft);
    color: var(--ink-950);
    border-color: var(--lime-soft);
  }

  .btn--ghost {
    border: 1px solid var(--line-strong);
    color: var(--text);
  }
  .btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

  .btn--sm { --btn-h: 42px; padding-inline: 1.1em; }
  .btn--lg { --btn-h: 58px; padding-inline: 1.9em; font-size: var(--fs-body); }
  .btn--block { display: flex; width: 100%; }

  .btn[aria-disabled='true'], .btn:disabled {
    opacity: .5;
    pointer-events: none;
  }

  /* square outline icon button (hero contact row) */
  .iconbtn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    transition: background-color var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                color var(--dur-2) var(--ease-out);
  }
  .iconbtn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink-950); }
  .iconbtn .icon { width: 17px; height: 17px; }

  /* round glass control (FABs, gallery arrows) */
  .roundbtn {
    display: inline-grid;
    place-items: center;
    width: var(--fab);
    height: var(--fab);
    border-radius: 50%;
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-1);
    color: var(--text);
    transition: transform var(--dur-1) var(--ease-out), color var(--dur-2) var(--ease-out);
  }
  .roundbtn:hover { color: var(--lime); transform: translateY(-2px); }
  .roundbtn:active { transform: scale(.95); }

  /* ---------------------------------------------------------------- chips */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    /* 44px is the tap target the icons inside these chips need */
    min-height: 44px;
    padding: .35em 1em;
    border-radius: var(--radius-pill);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: color var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                background-color var(--dur-2) var(--ease-out);
  }
  .chip:hover { color: var(--text); border-color: var(--line-strong); }
  .chip[aria-pressed='true'], .chip.is-active {
    color: var(--ink-950);
    background: var(--lime-soft);
    border-color: var(--lime-soft);
  }
  .chip__count {
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: .7;
  }

  .chiprow {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 4px;
    scroll-snap-type: x proximity;
  }
  .chiprow::-webkit-scrollbar { display: none; }
  .chiprow > * { scroll-snap-align: start; }

  /* 56px rounded-square category tile */
  .tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 84px;
    flex: none;
    text-align: center;
  }
  .tile__box {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
    color: var(--text-2);
    transition: color var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                box-shadow var(--dur-2) var(--ease-out);
  }
  .tile__box .icon { width: 24px; height: 24px; }
  .tile__label { font-size: 12px; line-height: 1.25; color: var(--text-2); }
  .tile:hover .tile__box { color: var(--text); }
  .tile.is-active .tile__box {
    color: var(--lime);
    border-color: var(--lime);
    box-shadow: var(--glass-edge), var(--shadow-lime);
  }
  .tile.is-active .tile__label { color: var(--text); }

  /* ---------------------------------------------------------------- search */
  .searchbar { display: flex; gap: 10px; align-items: center; }
  .searchpill {
    display: flex;
    align-items: center;
    gap: .7em;
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding-inline: 1.2em;
    border-radius: var(--radius-pill);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
  }
  .searchpill:focus-within { border-color: var(--lime); }
  .searchpill .icon { flex: none; color: var(--text-3); width: 19px; height: 19px; }
  .searchpill input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    outline: none;
    font-size: var(--fs-small);
  }
  .searchpill input::placeholder { color: var(--text-3); }
  .searchpill__clear { color: var(--text-3); display: grid; place-items: center; }
  .searchpill__clear:hover { color: var(--text); }

  .filterbtn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
    position: relative;
  }
  .filterbtn:hover { color: var(--lime); }
  .filterbtn[data-count]:not([data-count='0'])::after {
    content: attr(data-count);
    position: absolute;
    top: -5px; right: -5px;
    min-width: 19px; height: 19px;
    display: grid; place-items: center;
    padding-inline: 4px;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink-950);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
  }

  /* ---------------------------------------------------------------- cards */
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-m);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
    overflow: hidden;
    transition: transform var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                box-shadow var(--dur-2) var(--ease-out);
  }
  .card:hover {
    border-color: var(--line-strong);
    transform: translateY(-6px);
    box-shadow: var(--glass-edge), 0 24px 48px -20px rgba(0, 0, 0, .6);
  }
  .card:focus-within { border-color: var(--lime); }

  /* every card in a grid is the same height, whatever the name wraps to */
  .grid > .card { height: 100%; }

  /* product card: photo sits on a light surface, multiply-blended */
  .pcard__shot { position: relative; }
  .pcard__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--paper);
    border-radius: var(--radius-s);
    margin: 10px 10px 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 6px rgba(26, 34, 28, .16),
                inset 0 0 0 1px rgba(26, 34, 28, .06);
  }
  .pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 8%;
    transition: transform var(--dur-3) var(--ease-out);
  }
  .card:hover .pcard__media img { transform: scale(1.05); }

  /* skeleton shimmer until the photo has decoded */
  .pcard__media.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%,
                rgba(26, 34, 28, .07) 40%, transparent 60%);
    background-size: 250% 100%;
    animation: shimmer-paper 1.4s linear infinite;
    pointer-events: none;
  }
  /* distinct name: .skeleton already owns `shimmer` with a transform technique */
  @keyframes shimmer-paper { to { background-position: -250% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .pcard__media.is-loading::after { animation: none; }
  }

  /* "Dodaj u upit" slides up from the bottom of the image on hover. It is
     aria-hidden and tabindex=-1: the always-visible .pcard__add in the footer
     is the accessible control, so this is decoration, not a second tab stop. */
  .pcard__quickadd {
    position: absolute;
    left: 10px; right: 10px; bottom: 0;
    padding: 9px 12px;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink-950);
    font-size: 13px;
    font-weight: 600;
    transform: translateY(120%);
    opacity: 0;
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) {
    .card:hover .pcard__quickadd { transform: translateY(-14px); opacity: 1; }
  }
  @media (hover: none) {
    .pcard__quickadd { display: none; }
    .card:active { transform: scale(.985); }
  }

  .pcard__media--empty {
    background: linear-gradient(150deg, var(--ink-800), var(--ink-700));
    color: var(--lime);
  }
  .pcard__media--empty .icon { width: 38%; height: 38%; opacity: .5; mix-blend-mode: normal; }

  .pcard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    flex: 1;
  }
  .pcard__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-small);
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pcard__code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    letter-spacing: .04em;
  }
  .pcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
  }
  .pcard__link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .pcard__add {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text);
    transition: background-color var(--dur-2) var(--ease-out),
                color var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                transform var(--dur-1) var(--ease-out);
  }
  .pcard__add:hover { background: var(--lime); border-color: var(--lime); color: var(--ink-950); }
  .pcard__add:active { transform: scale(.9); }
  .pcard__add.is-in { background: var(--lime); border-color: var(--lime); color: var(--ink-950); }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .3em .75em;
    border-radius: var(--radius-pill);
    /* Inter, not the mono face: at 10.5px JetBrains Mono's slashed zero and
       dotted digits are hard to tell apart - a lone "0" read as an "8". Mono
       stays for the large counters and the product codes. */
    font-family: var(--font-body);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
  }
  .badge--lime { border-color: var(--lime); color: var(--lime); }
  .badge--verify { border-color: rgba(210, 227, 136, .5); color: var(--lime-soft); }

  .pcard__flag {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
  }

  /* big category card */
  .catcard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    padding: clamp(20px, 2.4vw, 32px);
    border-radius: var(--radius-l);
    overflow: hidden;
    isolation: isolate;
    background: var(--ink-850);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-1);
    transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  }
  .catcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
  .catcard__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .5;
    transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out);
  }
  .catcard:hover .catcard__bg { transform: scale(1.06); opacity: .65; }
  .catcard::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11,15,12,.15) 0%, rgba(11,15,12,.72) 58%, rgba(11,15,12,.93) 100%);
  }
  .catcard__icon {
    position: absolute;
    top: clamp(20px, 2.4vw, 32px);
    right: clamp(20px, 2.4vw, 32px);
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 16px;
    background: var(--glass-fill);
    border: var(--glass-border);
    color: var(--lime);
  }
  .catcard__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
  .catcard__desc {
    color: var(--text-2);
    font-size: var(--fs-small);
    margin-top: .5em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .catcard__meta {
    display: flex; align-items: center; gap: 10px;
    margin-top: 1.1em;
  }
  .catcard__link::after { content: ''; position: absolute; inset: 0; }

  /* ---------------------------------------------------------------- specs */
  .keyspecs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .keyspec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 10px;
    text-align: center;
  }
  .keyspec + .keyspec { border-left: 1px solid var(--line); }
  .keyspec .icon { width: 22px; height: 22px; color: var(--lime); }
  .keyspec__label {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  .keyspec__value {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text);
  }

  .spectable { width: 100%; border-collapse: collapse; }
  .spectable th, .spectable td {
    padding: 13px 4px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  .spectable th {
    font-weight: 500;
    color: var(--text-2);
    font-size: var(--fs-small);
    width: 45%;
  }
  .spectable td {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
  }
  .spectable tr:last-child th, .spectable tr:last-child td { border-bottom: 0; }
  .spectable td[colspan] { color: var(--text-2); font-family: var(--font-body); }

  /* dispenser compatibility */
  .compat { display: grid; gap: 10px; }
  .compat__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
  }
  .compat__mark {
    display: grid; place-items: center;
    width: 30px; height: 30px; flex: none;
    border-radius: 50%;
  }
  .compat__item--yes .compat__mark { background: rgba(166, 206, 57, .18); color: var(--lime); }
  .compat__item--no .compat__mark { background: rgba(255, 255, 255, .06); color: var(--text-3); }
  .compat__item--no { opacity: .62; }
  .compat__name { font-size: var(--fs-small); }
  /* 11.5px is below the large-text threshold, so this needs the 4.5:1 ramp */
  .compat__code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }

  .matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .matrix { border-collapse: collapse; width: 100%; min-width: 560px; }
  .matrix th, .matrix td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: var(--fs-small);
  }
  .matrix thead th {
    position: sticky; top: 0;
    background: var(--ink-900);
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 600;
  }
  .matrix tbody th {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
  }
  .matrix tbody th a { display: inline-flex; flex-direction: column; }
  .matrix tbody th .u-mono { font-size: 11px; color: var(--text-3); }
  .matrix .yes { color: var(--lime); }
  .matrix .no { color: var(--text-3); opacity: .55; }

  /* ---------------------------------------------------------------- stepper */
  .stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--glass-fill);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
  }
  .stepper button {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--text-2);
    transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  }
  /* The visible circle stays 36px - that is the design - but the hit area is
     grown to 44px with a transparent pseudo-element, so the target meets
     WCAG 2.5.8 without the button looking any different. */
  .stepper button { position: relative; }
  .stepper button::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
  }
  .stepper button:hover { background: rgba(255,255,255,.08); color: var(--text); }
  .stepper button:disabled { opacity: .35; pointer-events: none; }
  .stepper input {
    width: 3.5ch;
    border: 0; background: none; outline: none;
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    -moz-appearance: textfield;
  }
  .stepper input::-webkit-outer-spin-button,
  .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

  /* ---------------------------------------------------------------- header */
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-header);
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: height var(--dur-2) var(--ease-out),
                background-color var(--dur-2) var(--ease-out);
  }
  .site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,15,12,.72), rgba(11,15,12,0));
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    backdrop-filter: saturate(120%) blur(8px);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
    opacity: 1;
    transition: opacity var(--dur-2) var(--ease-out);
    pointer-events: none;
  }
  .site-header.is-stuck { height: 68px; }
  /* mobile: the top bar yields on scroll down and returns on scroll up.
     The tab bar deliberately stays - it is the primary nav on a phone. */
  @media (max-width: 767px) {
    .site-header {
      transition: height var(--dur-2) var(--ease-out),
                  background-color var(--dur-2) var(--ease-out),
                  transform var(--dur-2) var(--ease-out);
    }
    .site-header.is-hidden { transform: translateY(-100%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .site-header.is-hidden { transform: none; }
  }
  .site-header.is-stuck::before {
    background: rgba(11, 15, 12, .82);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    mask-image: none;
    border-bottom: 1px solid var(--line);
  }
  .site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 40px);
    width: 100%;
  }

  .brand { display: flex; align-items: center; flex: none; }
  .brand img {
    height: 58px;
    width: auto;
    transition: height var(--dur-2) var(--ease-out);
  }
  .site-header.is-stuck .brand img { height: 46px; }

  .nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; position: relative; }

  /* ---- "magic line": one lime indicator that glides between links and
     returns to the current page when the pointer leaves. The per-link ::after
     underline below is kept as the no-JS / reduced-motion fallback and is
     switched off once JS takes over (html.has-magic). */
  .nav__magic {
    position: absolute;
    bottom: .35em;
    left: 0;
    height: 1.5px;
    width: var(--magic-w, 0px);
    background: var(--lime);
    transform: translateX(var(--magic-x, 0px));
    opacity: 0;
    pointer-events: none;
    transition: transform .42s var(--ease-out), width .42s var(--ease-out),
                opacity .25s var(--ease-out);
  }
  .nav__magic.is-on { opacity: 1; }
  .has-magic .nav__link::after { display: none; }

  /* ---- label "roll" on hover */
  .nav__roll {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
  }
  .nav__rollA, .nav__rollB {
    display: block;
    transition: transform .4s var(--ease-out);
  }
  .nav__rollB { position: absolute; inset: 0; transform: translateY(100%); }
  .nav__link:hover .nav__rollA, .nav__link:focus-visible .nav__rollA { transform: translateY(-100%); }
  .nav__link:hover .nav__rollB, .nav__link:focus-visible .nav__rollB { transform: translateY(0); }

  .nav__chev {
    --icon-size: 14px;
    transition: transform var(--dur-2) var(--ease-out);
  }
  .nav__link[aria-expanded='true'] .nav__chev { transform: rotate(180deg); }

  @media (prefers-reduced-motion: reduce) {
    .nav__magic, .nav__rollA, .nav__rollB, .nav__chev { transition: none; }
  }
  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .6em .95em;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-2);
    transition: color var(--dur-2) var(--ease-out);
  }
  .nav__link:hover, .nav__link[aria-expanded='true'] { color: var(--text); }
  .nav__link::after {
    content: '';
    position: absolute;
    left: .95em; right: .95em; bottom: .35em;
    height: 1.5px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease-out);
  }
  .nav__link:hover::after, .nav__link[aria-expanded='true']::after { transform: scaleX(1); }
  .nav__link[aria-current='page'] { color: var(--text); }
  .nav__link[aria-current='page']::after { transform: scaleX(1); }

  .header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

  .langswitch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
  }
  .langswitch a {
    padding: .35em .7em;
    border-radius: var(--radius-pill);
    color: var(--text-3);
    transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  }
  .langswitch a:hover { color: var(--text); }
  .langswitch a[aria-current='true'] { background: var(--lime); color: var(--ink-950); font-weight: 600; }

  .header__phone {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-2);
    white-space: nowrap;
  }
  .header__phone:hover { color: var(--lime); }

  .quote-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 42px;
    padding-inline: 1.1em;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink-950);
    font-weight: 600;
    font-size: var(--fs-small);
    transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  }
  .quote-pill:hover { background: var(--lime-soft); }
  .quote-pill:active { transform: scale(.96); }
  /* The mono "0" has an inner dot and at 11.5px read as an "8". Inter 700
     with tabular numerals is unambiguous at this size. */
  .quote-pill__n {
    font-family: var(--font-body);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    letter-spacing: 0;
    min-width: 20px; height: 20px;
    display: grid; place-items: center;
    padding-inline: 4px;
    border-radius: var(--radius-pill);
    background: rgba(11, 15, 12, .22);
  }

  /* mega panel */
  .mega {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(940px, calc(100vw - 2 * var(--gutter)));
    padding: 22px;
    border-radius: var(--radius-l);
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out),
                transform var(--dur-2) var(--ease-out),
                visibility var(--dur-2);
  }
  .mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .mega__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  }
  .mega__item:hover { border-color: var(--lime); background: rgba(166, 206, 57, .07); }
  .mega__item .icon { width: 22px; height: 22px; color: var(--lime); }
  .mega__name { font-weight: 600; font-size: var(--fs-small); font-family: var(--font-display); }
  .mega__count { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
  .mega__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  @media (max-width: 1099px) {
    .nav, .header__phone, .mega { display: none; }
  }

  /* mobile top bar bits */
  .header__mobile { display: none; align-items: center; gap: 8px; margin-left: auto; }
  @media (max-width: 1099px) {
    .header__mobile { display: flex; }
    .header__actions .langswitch { display: none; }
    .brand img { height: 42px; }
    .site-header.is-stuck .brand img { height: 38px; }
  }
  @media (max-width: 1099px) {
    .header__actions .quote-pill { display: none; }
  }

  /* ---------------------------------------------------------------- tabbar */
  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: var(--z-tabbar);
    display: none;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 15, 12, .86);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--line);
  }
  @media (max-width: 767px) { .tabbar { display: block; } }

  .tabbar__list { display: flex; height: var(--tabbar-h); position: relative; }
  .tabbar__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    color: var(--text-3);
    font-size: 10.5px;
    transition: color var(--dur-2) var(--ease-out);
  }
  .tabbar__item .icon { width: 22px; height: 22px; }
  .tabbar__item[aria-current='page'], .tabbar__item.is-active { color: var(--lime); }
  .tabbar__pill {
    position: absolute;
    top: 6px;
    width: 52px; height: 32px;
    border-radius: var(--radius-pill);
    background: rgba(166, 206, 57, .16);
    pointer-events: none;
    transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out);
  }
  .tabbar__badge {
    position: absolute;
    top: 4px;
    left: 58%;
    min-width: 18px; height: 18px;
    display: grid; place-items: center;
    padding-inline: 4px;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink-950);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
  }

  /* ---------------------------------------------------------------- FABs */
  .fab-row {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(var(--tabbar-h) + var(--fab-gap) + env(safe-area-inset-bottom));
    z-index: var(--z-fab);
    display: flex;
    justify-content: space-between;
    padding-inline: clamp(14px, 3vw, 28px);
    pointer-events: none;
  }
  /* both FABs sit on one baseline: the row is flex-end aligned, so the
     assistant's optional nudge bubble grows upward and never shifts it */
  .fab-row {
    align-items: flex-end;
    transition: transform var(--dur-2) var(--ease-out);
  }
  @media (prefers-reduced-motion: reduce) { .fab-row { transition: none; } }
  .fab-row > * { pointer-events: auto; }
  .fab-row .roundbtn { width: var(--fab); height: var(--fab); }
  .totop { background: var(--glass-2-fill), var(--glass-tint); border-color: var(--glass-2-border); }
  .totop .icon { --icon-size: 22px; }

  /* the left slot is the positioning context for the nudge bubble; it must not
     add height, or the two FABs stop sharing a baseline */
  .fab-slot { position: relative; display: flex; align-items: center; }

  .fab-assistant {
    position: relative;
    width: var(--fab); height: var(--fab);
    border-radius: var(--radius-pill);
    background: var(--lime-soft);
    color: var(--ink-950);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 10px 30px -10px rgba(166, 206, 57, .5),
                0 0 0 1px rgba(210, 227, 136, .25);
    overflow: hidden;
    /* Column 1 is the full circle so the mark is centred in it; the label
       lives in column 2 and is 0-wide until the button expands. Packing the
       columns to the start (pass 2) put the mark 9px left of centre. */
    display: grid;
    grid-template-columns: var(--fab) auto;
    justify-content: start;
    align-items: center;
    justify-items: center;
    transition: width var(--dur-2) var(--ease-out),
                border-radius var(--dur-2) var(--ease-out),
                background-color var(--dur-2) var(--ease-out);
  }
  .fab-assistant .icon { --icon-size: 24px; color: var(--ink-950); }

  /* ---- "AI" monogram -----------------------------------------------------
     Pass 2 put a 14px dark chat glyph on a 56px lime circle; at that size it
     read as a smudge. A bold two-letter mark is legible at a glance and says
     what the button is. Measured contrast #0B0F0C on #D2E388 = 14.6:1.
     No transform on the resting state, and the optical centring is done with
     a whole pixel, so the letters stay crisp at 1x and 2x. */
  .fab-assistant__mark {
    /* Absolutely placed over the first 56px of the button and centred there,
       so the centring cannot be disturbed by the expanding label beside it -
       which is what pushed the mark 7px off centre when it was a grid item. */
    position: absolute;
    left: 0; top: 0;
    width: var(--fab); height: var(--fab);
    z-index: 1;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--ink-950);
    /* the sparkle hangs off the top-right of the letters, so the letters
       themselves sit 3.5px left of the geometric centre and the lockup as a
       whole reads centred */
    padding-right: 7px;
    /* the cap-height sits slightly high in the em box; 1px brings the optical
       centre onto the geometric centre of the circle */
    padding-top: 2px;
  }
  .fab-assistant__spark {
    position: absolute;
    left: 36px;
    top: 11px;
    width: 9px;
    height: 9px;
    fill: var(--ink-950);
    opacity: .85;
  }
  /* thin lime recycling ring, slowly rotating around the mark. Thinner and
     fainter than pass 2 so it frames the letters instead of competing. */
  .fab-assistant__ring {
    grid-area: 1 / 1;
    width: calc(var(--fab) - 8px);
    height: calc(var(--fab) - 8px);
    fill: none;
    stroke: var(--lime-deep);
    /* 1.75 in a 56-unit box drawn at 48px renders as ~1.5 device px */
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .7;
    animation: spin 22s linear infinite;
    transform-origin: 50% 50%;
    pointer-events: none;
  }
  .fab-assistant__ring use { transform-box: fill-box; }
  .fab-assistant__label {
    grid-area: 1 / 2;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    padding-inline-end: 20px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity var(--dur-2) var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) {
    .fab-assistant:hover, .fab-assistant:focus-visible {
      width: auto;
      padding-inline-start: 4px;
      background: var(--lime);
    }
    .fab-assistant:hover .fab-assistant__label,
    .fab-assistant:focus-visible .fab-assistant__label { opacity: 1; width: auto; }
  }

  /* one-time nudge, anchored above the FAB and never overlapping it */
  .fab-nudge {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: min(252px, calc(100vw - 2 * var(--gutter)));
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 12px 12px 14px;
    border-radius: var(--radius-s);
    background: var(--glass-3-fill), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-3-blur);
    backdrop-filter: var(--glass-3-blur);
    border: 1px solid var(--glass-3-border);
    box-shadow: var(--shadow-1), var(--glass-specular);
    animation: nudge-in .5s var(--ease-out) both;
  }
  .fab-nudge[hidden] { display: none; }
  .fab-nudge p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text); }
  .fab-nudge__x { flex: none; color: var(--text-3); padding: 2px; }
  .fab-nudge__x:hover { color: var(--text); }
  .fab-nudge::after {
    content: '';
    position: absolute;
    left: 20px; top: 100%;
    border: 7px solid transparent;
    border-top-color: rgba(255, 255, 255, .17);
  }
  @keyframes nudge-in {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .fab-assistant__ring { animation: none; }
    .fab-nudge { animation: none; }
  }

  .totop {
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--dur-2) var(--ease-out),
                transform var(--dur-2) var(--ease-out),
                visibility var(--dur-2);
  }
  .totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .totop svg.ring {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
  }
  .totop .ring circle { fill: none; stroke-width: 2; }
  .totop .ring .track { stroke: rgba(255,255,255,.12); }
  .totop .ring .bar {
    stroke: var(--lime);
    stroke-linecap: round;
    stroke-dasharray: var(--circ, 163);
    stroke-dashoffset: var(--dash, 163);
    transition: stroke-dashoffset .1s linear;
  }

  body.assistant-open .totop { opacity: 0; visibility: hidden; }
  @media (min-width: 768px) { body.assistant-open .totop { opacity: 1; visibility: visible; } }

  /* ---------------------------------------------------------------- sheets */
  .sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-sheet);
    background: rgba(6, 9, 7, .62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-2) var(--ease-out), visibility var(--dur-2);
  }
  .sheet-backdrop.is-open { opacity: 1; visibility: visible; }

  .sheet {
    position: fixed;
    z-index: calc(var(--z-sheet) + 1);
    display: flex;
    flex-direction: column;
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow-2);
    transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out);
  }
  .sheet[hidden] { display: none; }

  /* bottom sheet (mobile) */
  .sheet--bottom {
    inset: auto 0 0;
    max-height: 90dvh;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%);
  }
  .sheet--bottom.is-open { transform: translateY(0); }

  /* side panel (desktop) */
  .sheet--side {
    inset: 0 0 0 auto;
    width: min(420px, 100vw);
    border-radius: var(--radius-l) 0 0 var(--radius-l);
    transform: translateX(100%);
  }
  .sheet--side.is-open { transform: translateX(0); }

  .sheet__handle {
    width: 44px; height: 4px;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
    margin: 10px auto 2px;
    flex: none;
  }
  .sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px clamp(18px, 4vw, 24px);
    border-bottom: 1px solid var(--line);
    flex: none;
  }
  .sheet__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); }
  .sheet__body { padding: clamp(18px, 4vw, 24px); overflow-y: auto; flex: 1; }
  .sheet__foot {
    padding: 14px clamp(18px, 4vw, 24px) calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    flex: none;
  }

  /* ---------------------------------------------------------------- toast */
  .toasts {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-h) + var(--fab) + var(--fab-gap) * 2 + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(440px, calc(100vw - 32px));
    pointer-events: none;
  }
  .toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-1);
    font-size: var(--fs-small);
    pointer-events: auto;
    animation: toast-in .34s var(--ease-out) both;
  }
  .toast.is-out { animation: toast-out .24s var(--ease-out) both; }
  .toast__icon { color: var(--lime); flex: none; display: grid; place-items: center; }
  .toast__msg { flex: 1; min-width: 0; }
  .toast__action {
    font-weight: 600;
    color: var(--lime);
    flex: none;
    padding: .2em .4em;
  }
  .toast__action:hover { text-decoration: underline; }

  @keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
  @keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
  @keyframes breathe { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .9; transform: scale(1.09); } }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ---------------------------------------------------------------- forms */
  .field { display: flex; flex-direction: column; gap: 7px; }
  .field__label {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-2);
    display: flex;
    gap: .5em;
    align-items: baseline;
  }
  .field__hint { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
  .field input, .field textarea, .field select {
    width: 100%;
    min-height: 50px;
    padding: .8em 1em;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    outline: none;
    font-size: var(--fs-small);
    transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  }
  .field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
  .field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--lime);
    background: rgba(255, 255, 255, .06);
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
  .field__error {
    font-size: 12px;
    color: #FF9A8B;
    display: none;
  }
  .field.has-error input, .field.has-error textarea { border-color: #FF9A8B; }
  .field.has-error .field__error { display: block; }

  .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fs-small);
    color: var(--text-2);
    cursor: pointer;
    line-height: 1.5;
  }
  .checkbox input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    flex: none;
    margin-top: 1px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.04);
    display: grid;
    place-items: center;
    transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  }
  .checkbox input::after {
    content: '';
    width: 11px; height: 6px;
    border-left: 2px solid var(--ink-950);
    border-bottom: 2px solid var(--ink-950);
    transform: rotate(-45deg) scale(0);
    transition: transform var(--dur-1) var(--ease-out);
  }
  .checkbox input:checked { background: var(--lime); border-color: var(--lime); }
  .checkbox input:checked::after { transform: rotate(-45deg) scale(1); }
  .checkbox a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

  .hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  /* ---------------------------------------------------------------- footer */
  .site-footer {
    position: relative;
    background: #080B09;
    border-top: 1px solid var(--line);
    overflow: hidden;
    z-index: var(--z-content);
    /* Reserve the band the two fixed FABs occupy. They are viewport-fixed, so
       on a short page (upit.html) the legal line scrolled straight under them.
       Reserving the space here is deterministic - no scroll maths, and it
       cannot desynchronise from the FAB size because it reuses the tokens. */
    padding-bottom: calc(var(--fab) + var(--fab-gap) * 2 + var(--tabbar-h)
                         + env(safe-area-inset-bottom));
  }
  .footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 56px);
    padding-block: clamp(48px, 6vw, 84px) clamp(32px, 4vw, 48px);
  }
  @media (max-width: 899px) { .footer__top { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 519px) { .footer__top { grid-template-columns: 1fr; } }

  .footer__brand img { height: 80px; width: auto; }
  .footer__motto {
    margin-top: 1.1em;
    color: var(--text-2);
    font-size: var(--fs-small);
    max-width: 34ch;
    font-style: italic;
  }
  .footer__col h3 {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.1em;
    font-weight: 600;
  }
  .footer__col li + li { margin-top: .62em; }
  .footer__col a, .footer__col span {
    font-size: var(--fs-small);
    color: var(--text-2);
    transition: color var(--dur-2) var(--ease-out);
  }
  .footer__col a:hover { color: var(--lime); }
  .footer__social { display: flex; gap: 10px; margin-top: 1.2em; }

  .footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-3);
  }
  /* underlined, not colour-only: these sit inside a sentence, so colour alone
     would not distinguish them (WCAG 1.4.1) */
  .footer__legal a {
    color: var(--text-2);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .footer__legal a:hover { color: var(--lime); }

  .footer__wordmark {
    display: block;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
    line-height: 0;
  }
  .footer__wordmark svg { width: 100%; height: auto; display: block; }
  .footer__wordmark text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 100px;
    letter-spacing: .02em;
  }
  /* outline sits underneath; the filled copy is revealed left-to-right by a
     mask whose width is scroll-linked (--wm-fill, set in motion.js) */
  .footer__wordmark-out {
    fill: none;
    stroke: rgba(166, 206, 57, .25);
    stroke-width: 1;
  }
  .footer__wordmark-in {
    fill: var(--lime-soft);
    stroke: none;
    -webkit-mask-image: linear-gradient(90deg, #000 var(--wm-fill, 0%), transparent var(--wm-fill, 0%));
    mask-image: linear-gradient(90deg, #000 var(--wm-fill, 0%), transparent var(--wm-fill, 0%));
  }
  .footer__leaf {
    fill: none;
    stroke: var(--lime-soft);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: calc(var(--wm-leaf, 0));
    transition: opacity .4s var(--ease-out);
  }
  @media (prefers-reduced-motion: reduce) {
    .footer__wordmark-in { -webkit-mask-image: none; mask-image: none; }
    .footer__leaf { opacity: 1; }
  }

  /* ---------------------------------------------------------------- misc */
  .marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding-block: 14px;
    position: relative;
    z-index: var(--z-content);
    background: rgba(11, 15, 12, .5);
  }
  /* logo bands have no rule and no fill, so their 14px padding would read as
     dead space at the end of a section */
  .marquee--bare { padding-block: 0; border: 0; background: none; }
  .marquee__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee var(--marquee-dur, 46s) linear infinite;
    will-change: transform;
  }
  .marquee--rev .marquee__track { animation-direction: reverse; }
  .marquee:hover .marquee__track,
  .marquee:focus-within .marquee__track { animation-play-state: paused; }
  .marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
  }
  .marquee__item::after {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--lime);
    opacity: .8;
  }
  @keyframes marquee { to { transform: translateX(-50%); } }

  .client-logo {
    display: grid;
    place-items: center;
    width: 148px; height: 84px;
    flex: none;
    padding: 12px 16px;
    border-radius: var(--radius-s);
    background: var(--paper);
  }
  .client-logo img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    mix-blend-mode: multiply;
    transition: filter var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out);
  }
  .client-logo:hover img { filter: grayscale(0); opacity: 1; }

  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55em;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    color: rgba(255,255,255,.72);
  }
  .breadcrumb a:hover { color: var(--lime); }
  .breadcrumb li { display: flex; align-items: center; gap: .55em; }
  .breadcrumb li + li::before { content: '/'; opacity: .45; }

  .divider { height: 1px; background: var(--line); border: 0; margin: 0; }

  .note {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-s);
    border: 1px solid rgba(166, 206, 57, .28);
    background: rgba(166, 206, 57, .07);
    font-size: var(--fs-small);
    color: var(--text-2);
  }
  .note .icon { flex: none; color: var(--lime); }

  /* ---------------------------------------------------------------- icons
     One rule for every icon on the site. The symbol set is inlined per page
     (ICONS:START/END) and referenced locally as <use href="#i-name"> — an
     external reference is blocked by Chrome under file:// and renders nothing.
     Size comes from --icon-size so a parent can set it once for its children. */
  .icon {
    width: var(--icon-size, var(--icon-md));
    height: var(--icon-size, var(--icon-md));
    flex: none;
    display: inline-block;
    vertical-align: middle;
    color: inherit;
    fill: none;
    stroke: currentColor;
    /* >=1.75 so a 14-20px icon still has a visible line. The 24px+ sizes go
       back to 1.5: at that scale 1.75 reads as heavy. */
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
  }
  .icon--lg, .icon--xl { stroke-width: 1.5; }
  .icon--xs { --icon-size: var(--icon-xs); }
  .icon--sm { --icon-size: var(--icon-sm); }
  .icon--fill { fill: currentColor; stroke: none; }
  /* solid shapes carry their own fill; never let the stroke fatten them */

  /* optical alignment: an icon set next to text sits ~1px low on the cap line */
  .btn .icon, .nav__link .icon, .chip .icon, .link .icon { margin-block-start: -1px; }
  /* a 16px icon in a 44px chip reads as a speck; 20px is the floor */
  .chip .icon, .tile .icon { --icon-size: var(--icon-md); }
  /* labels wrap onto a second line rather than being clipped */
  .chip, .tile__label { white-space: normal; text-overflow: clip; }

  /* compatibility matrix marks */
  .icon--compat { --icon-size: 17px; stroke-width: 2.4; }
  td.yes .icon--compat { color: var(--lime); }
  td.no  .icon--compat { color: #E1655F; }
  td.na, .compat__na { color: var(--text-3); }

  .skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.05);
  }
  .skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
    animation: shimmer 1.4s infinite;
  }
  @keyframes shimmer { to { transform: translateX(100%); } }

  /* ==================================================================
     PASS 2 - glass material levels, quote peek, odometer, sticky product
     bar, success moment, footer finale, designed states.
     ================================================================== */

  /* ---- three glass levels, used everywhere instead of ad-hoc fills ---- */
  /* NB: no `position` here. This class is applied to .mega, which is
     position:absolute and declared EARLIER in this file - a `position:relative`
     on the utility silently won the cascade, dropped the mega panel into flow
     and blew a 900px hole in the header nav. The grain layer below is
     positioned against the nearest positioned ancestor, which every consumer
     of this class already provides. */
  .glass-3 {
    border-style: solid;
    border-width: 1px;
    isolation: isolate;
  }
  .glass-3 {
    background: var(--glass-3-fill), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-3-blur);
    backdrop-filter: var(--glass-3-blur);
    border-color: var(--glass-3-border);
    box-shadow: var(--glass-specular), var(--shadow-2);
  }
  /* 3% grain inside the glass so it reads as a material, not a flat tint */
  .glass-3::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-image: var(--grain);
    opacity: .03;
    pointer-events: none;
  }

  /* ---- Upit pill: digit odometer + desktop peek popover ---- */
  .quote-wrap { position: relative; }
  .odo {
    display: inline-grid;
    overflow: hidden;
    height: 1em;
    line-height: 1;
  }
  .odo__cur, .odo__next {
    grid-area: 1 / 1;
    transition: transform .34s var(--ease-out), opacity .34s var(--ease-out);
  }
  .odo__next { transform: translateY(100%); opacity: 0; }
  .odo.is-rolling .odo__cur { transform: translateY(-100%); opacity: 0; }
  .odo.is-rolling .odo__next { transform: translateY(0); opacity: 1; }

  .quote-peek {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    z-index: 5;
    padding: 12px;
    border-radius: var(--radius-s);
    background: var(--glass-3-fill), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-3-blur);
    backdrop-filter: var(--glass-3-blur);
    border: 1px solid var(--glass-3-border);
    box-shadow: var(--glass-specular), var(--shadow-2);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }
  .quote-peek[hidden] { display: none; }
  .quote-wrap:hover .quote-peek, .quote-wrap:focus-within .quote-peek {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  @media (hover: none), (max-width: 1099px) { .quote-peek { display: none; } }
  .qpeek__row { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
  .qpeek__thumb {
    width: 38px; height: 38px; flex: none;
    border-radius: var(--radius-xs);
    background: var(--paper);
    object-fit: contain; padding: 3px;
    mix-blend-mode: multiply;
  }
  .qpeek__name { font-size: 13px; line-height: 1.25; }
  .qpeek__meta {
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
  }
  .qpeek__foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .qpeek__empty { padding: 10px 4px; font-size: 13px; color: var(--text-3); text-align: center; }

  /* ---- sticky product action bar (desktop) ---- */
  .pbar {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: calc(var(--z-header) - 1);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px clamp(18px, 4vw, 56px);
    background: var(--glass-3-fill), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-3-blur);
    backdrop-filter: var(--glass-3-blur);
    border-block-end: 1px solid var(--glass-3-border);
    /* it is anchored at top:var(--header-h), so hiding it needs its own height
       PLUS that offset - translateY(-101%) alone left the stepper peeking out
       from under the header's translucent gradient */
    transform: translateY(calc(-100% - var(--header-h) - 8px));
    transition: transform var(--dur-2) var(--ease-out);
  }
  .pbar.is-on { transform: translateY(0); }
  .pbar__thumb {
    width: 40px; height: 40px; flex: none;
    border-radius: var(--radius-xs);
    background: var(--paper);
    object-fit: contain; padding: 3px;
    mix-blend-mode: multiply;
  }
  .pbar__name { font-weight: 600; font-size: var(--fs-small); }
  .pbar__code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: var(--text-2);
  }
  .pbar__spacer { margin-inline-start: auto; }
  @media (max-width: 1099px) { .pbar { display: none; } }
  @media (prefers-reduced-motion: reduce) { .pbar { transition: none; } }

  /* ---- inquiry success moment ---- */
  .success {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius-m);
    background: var(--glass-2-fill), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-2-blur);
    backdrop-filter: var(--glass-2-blur);
    border: 1px solid var(--glass-2-border);
  }
  .success__mark { width: 84px; height: 84px; color: var(--lime); }
  .success__mark path, .success__mark circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: var(--len, 200);
    stroke-dashoffset: var(--len, 200);
    animation: draw .9s var(--ease-out) forwards;
  }
  .success__mark .s2 { animation-delay: .45s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .success__ref {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .1em;
    font-variant-numeric: tabular-nums;
    color: var(--lime-soft);
    padding: 6px 12px;
    border: 1px dashed rgba(210, 227, 136, .4);
    border-radius: var(--radius-xs);
  }
  .success__next { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  @media (prefers-reduced-motion: reduce) {
    .success__mark path, .success__mark circle { animation: none; stroke-dashoffset: 0; }
  }

  /* ---- designed states: image failure, form errors, offline fallback ---- */
  .imgfail {
    display: grid;
    place-items: center;
    gap: 6px;
    background: linear-gradient(150deg, var(--ink-800), var(--ink-700));
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
    padding: 12px;
  }
  .imgfail .icon { --icon-size: 28px; color: var(--lime); opacity: .55; }

  .field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12.5px;
    color: #F2A6A2;
  }
  .field__error .icon { --icon-size: 14px; }
  .field__error:empty { display: none; }
  input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
    border-color: #E1655F;
    box-shadow: 0 0 0 1px rgba(225, 101, 95, .35);
  }

  .fallback-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: var(--radius-s);
    border: 1px solid rgba(225, 101, 95, .35);
    background: rgba(225, 101, 95, .07);
  }
  .fallback-card__title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .fallback-card .icon { color: #F2A6A2; }

  /* footer engineering details: coordinates + live Belgrade time */
  .footer__eng {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
  }
  .footer__eng-dot { opacity: .5; }

  /* calculator: the result drawn as bales stacking onto a pallet outline */
  .calc__stack { margin-top: 16px; min-height: 8px; }
  .stackviz { width: 100%; max-width: 330px; height: auto; display: block; }
  .stackviz__bale {
    fill: var(--lime-soft);
    opacity: .9;
    animation: bale-in .32s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 9ms);
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }
  .stackviz__pallet rect { fill: none; stroke: var(--text-3); stroke-width: 1.2; }
  @keyframes bale-in {
    from { opacity: 0; transform: translateY(-6px) scaleY(.6); }
    to   { opacity: .9; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .stackviz__bale { animation: none; opacity: .9; }
  }
  .calc__stack[data-capped="1"]::after {
    content: '+';
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
  }
}
