/* medially 2026: front page sections (front page only; old medially.css is not loaded there) */
    .m-home h1, .m-home h2, .m-home h3, .about__quote { text-wrap: balance; }
    .m-home p, .m-home blockquote { text-wrap: pretty; }
    :where(.m-home main) :where(ul) { list-style: none; }
    :where(.m-home main) :where(img) { display: block; max-width: 100%; }
    :where(.m-home main) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    [id] { scroll-margin-top: 96px; }
    /* ================= HERO ================= */
    .hero { padding: clamp(24px, 5vh, 64px) 0 0; }
    .label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }

    .hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
    h1 {
      margin-top: 22px;
      font-family: var(--display); font-stretch: 125%; font-weight: 500;
      font-size: clamp(2.5rem, 5.6vw, 6rem); line-height: .98; letter-spacing: -.055em;
    }

    /* founder visual - transparent composition echoing the rising-bar motif */
    .hero__visual { position: relative; justify-self: end; width: 100%; max-width: 540px; margin-bottom: -1px; }
    .hero__visual img { width: 100%; height: auto; aspect-ratio: 1; }

    /* client logos */
    .clients { margin-top: clamp(28px, 5vh, 48px); display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; gap: 32px; padding: 26px clamp(20px, 3vw, 40px); background: var(--surface); border-radius: var(--r); }
    .clients__label { font-size: 13px; line-height: 1.45; color: var(--text-2); }
    .clients__label b { display: block; color: var(--ink); font-weight: 600; }
    .clients__logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
    .clients__track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
    .clients__logos:hover .clients__track { animation-play-state: paused; }
    .clients__track img { flex: none; width: auto; height: var(--h, 40px); max-width: var(--mw, 190px); object-fit: contain; margin-right: clamp(48px, 6vw, 88px); filter: grayscale(1); opacity: .62; mix-blend-mode: multiply; transition: filter .35s, opacity .35s; }
    .clients__track img:hover { filter: none; opacity: 1; }
    .clients__track img[src*="fitelite"]:not(:hover) { filter: grayscale(1) brightness(.5) contrast(1.6); }
    h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
    h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
    h1 .ln:nth-child(2) > span { animation-delay: .09s; }
    h1 .thin { font-weight: 300; }
    h1 em { font-style: normal; color: var(--amber); }
    h1 .dot { display: inline-block; width: .15em; height: .15em; background: var(--amber); margin-left: .04em; }
    @keyframes rise { to { transform: none; } }

    .lede { max-width: 540px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
    .lede b { color: var(--ink); font-weight: 500; }
    .hero .lede { margin-top: 28px; }
    .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }


    .fade { opacity: 0; animation: fade .9s var(--ease) forwards; animation-delay: var(--d, .4s); }
    @keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

    /* stats row */
    /* stats: light panel, same surface as the other boxes */
    .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r); }
    .stat { padding: clamp(28px, 3vw, 44px); }
    .stat + .stat { border-left: 1px solid var(--rule); }
    .stat b { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-stretch: 125%; font-weight: 400; font-size: clamp(40px, 4.4vw, 68px); letter-spacing: -.055em; line-height: .95; font-variant-numeric: tabular-nums; }
    .stat b small { font-size: .45em; color: var(--amber); letter-spacing: -.02em; }
    .stat p { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 24ch; }

    /* ---------- PILLARS: rising slanted boxes ---------- */
    .pillars-head { margin-top: clamp(56px, 9vh, 96px); display: flex; justify-content: space-between; align-items: end; gap: 32px; }
    .pillars-head h2 { font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.04em; line-height: 1.1; }
    .pillars-head h2 .thin { font-weight: 300; }
    .pillars-head h2 em { font-style: normal; color: var(--amber); }
    .pillars-head p { max-width: 460px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

    .pillars { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; height: clamp(520px, 66vh, 640px); }
    .pillar {
      --cut: 56px;
      position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r);
      height: var(--h);
      color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
      padding: clamp(20px, 2vw, 28px);
      opacity: 0; transform: translateY(40px); animation: up 1.1s var(--ease) forwards; animation-delay: var(--d, 0s);
    }
    @keyframes up { to { opacity: 1; transform: none; } }
    .pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
    .pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 24, 38, .15) 0%, rgba(18, 24, 38, .35) 40%, rgba(18, 24, 38, .92)); }
    .pillar:hover img { transform: scale(1.05); }
    .pillar__num { position: absolute; top: calc(var(--cut) + 16px); left: clamp(20px, 2vw, 28px); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 5px 10px; border-radius: 6px; background: rgba(18, 24, 38, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .pillar h3 { font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.035em; line-height: 1.1; }
    .pillar p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
    .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
    .tags span { font-size: 12px; padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); white-space: nowrap; }
    .pillar .more { margin-top: 18px; font-size: 14px; }
    .pillar--amber { background: var(--amber); color: var(--ink); }
    .pillar--amber::before { display: none; }
    .pillar--amber p { color: rgba(18, 24, 38, .74); }
    .pillar--amber .tags span { border-color: rgba(18, 24, 38, .3); }
    .pillar--amber .more .ar { color: var(--ink); }
    .pillar--amber .pillar__num { background: var(--ink); color: #fff; }
    .pillar--amber .bars { position: absolute; right: 22px; top: calc(var(--cut) + 12px); display: flex; gap: 7px; align-items: flex-end; }
    .pillar--amber .bars i { width: 16px; background: var(--ink); clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%); }
    .pillar--amber .bars i:nth-child(1) { height: 30px; }
    .pillar--amber .bars i:nth-child(2) { height: 46px; }
    .pillar--amber .bars i:nth-child(3) { height: 64px; }

    /* tech marquee */
    .tech {
      margin-top: 12px; background: var(--surface); border-radius: var(--r);
      display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center;
    }
    .tech__title { padding: 24px 28px; border-right: 1px solid var(--rule-2); }
    .tech__title b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: 16px; letter-spacing: -.03em; white-space: nowrap; }
    .tech__title small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
    .marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
    .marquee + .marquee { border-top: 1px solid var(--rule-2); }
    .marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
    .marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 44s; }
    .tech:hover .marquee__track { animation-play-state: paused; }
    .marquee__track span {
      display: inline-flex; align-items: center; gap: 28px; padding: 0 14px; height: 56px; white-space: nowrap;
      font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 16px; letter-spacing: -.02em; color: var(--text-2);
    }
    .marquee__track span::after { content: ""; width: 6px; height: 6px; background: var(--rule); }
    @keyframes marquee { to { transform: translateX(-50%); } }

    /* ================= SECTIONS ================= */
    .sec { padding: clamp(88px, 13vh, 150px) 0 0; }
    .sec__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(36px, 6vh, 64px); }
    .sec__head .lede { justify-self: end; }
    h2.h2 { margin-top: 0; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: 1.02; letter-spacing: -.05em; }
    h2.h2 .thin { font-weight: 300; }
    h2.h2 em { font-style: normal; color: var(--amber); }

    /* hidden only when JS runs, so content never disappears without it */
    .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
    .js .reveal.in { opacity: 1; transform: none; }


    /* ---------- SKALA ---------- */
    .scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
    .tier {
      --cut: 44px;
      position: relative; background: var(--surface); border-radius: var(--r);
      padding: calc(var(--cut) + 24px) clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px);
      min-height: var(--mh); display: flex; flex-direction: column;
      transition: background .4s var(--ease), color .4s var(--ease);
    }
    .tier__name { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
    .tier__range { margin-top: auto; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.045em; line-height: 1.05; }
    .tier__range small { display: block; margin-top: 6px; font-family: var(--body); font-stretch: 100%; font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--text-2); }
    .tier p:last-child { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.55; color: var(--text-2); transition: color .4s; }
    /* hover states only on real pointers - avoids "sticky" dark cards after tap on mobile */
    @media (hover: hover) {
      .tier:hover { background: var(--ink); color: #fff; }
      .tier:hover .tier__name { color: rgba(255, 255, 255, .6); }
      .tier:hover .tier__range small, .tier:hover p { color: rgba(255, 255, 255, .66); }
      .tier:hover p:last-child { border-color: rgba(255, 255, 255, .12); }
    }
    .tier__bars { display: flex; gap: 5px; align-items: flex-end; margin-top: 14px; }
    .tier__bars i { width: 10px; background: var(--rule); clip-path: polygon(0 6px, 100% 0, 100% 100%, 0 100%); }
    .tier__bars i.on { background: var(--amber); }
    .tier__bars i:nth-child(1) { height: 16px; } .tier__bars i:nth-child(2) { height: 24px; } .tier__bars i:nth-child(3) { height: 32px; }

    /* ---------- PROCES (dark band) ---------- */
    .band { margin-top: clamp(88px, 13vh, 150px); background: var(--ink); color: #fff; overflow: hidden; padding: clamp(80px, 12vh, 136px) 0; }
    .band .label { color: rgba(255, 255, 255, .6); }
    .band .lede { color: rgba(255, 255, 255, .66); }
    .band .bars-bg { position: absolute; right: 6%; bottom: 0; display: flex; gap: clamp(20px, 3vw, 44px); align-items: flex-end; pointer-events: none; }
    .band .bars-bg i { width: clamp(48px, 6vw, 96px); background: linear-gradient(180deg, rgba(216, 154, 43, .2), rgba(216, 154, 43, .03)); clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); }
    .band .bars-bg i:first-child { height: clamp(200px, 30vh, 320px); }
    .band .bars-bg i:last-child { height: clamp(300px, 46vh, 480px); }
    .steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .step { padding: 28px; min-height: 280px; border-radius: var(--r); background: #171e2d; border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; transition: background .4s var(--ease), border-color .4s; }
    .step:hover { background: #1c2436; border-color: rgba(216, 154, 43, .5); }
    .step__num { font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: 56px; letter-spacing: -.05em; color: var(--amber); line-height: 1; }
    .step h3 { margin-top: auto; padding-top: 48px; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: 21px; letter-spacing: -.035em; }
    .step p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .64); min-height: 4.65em; }

    .band__cta { position: relative; z-index: 1; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: clamp(22px, 2.4vw, 30px) clamp(24px, 2.6vw, 36px); border-radius: var(--r); background: var(--amber); color: var(--ink); }
    .band__cta p { font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.035em; line-height: 1.2; }
    .band__cta p span { display: block; margin-top: 4px; font-family: var(--body); font-stretch: 100%; font-weight: 400; font-size: 15px; letter-spacing: 0; color: rgba(18, 24, 38, .72); }

    /* ---------- REALIZACJE ---------- */
    .cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .case { --cut: 48px; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
    .case__img { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
    .case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
    .case:hover .case__img img { transform: scale(1.04); }
    .case__cat { position: absolute; left: 20px; bottom: 18px; font-size: 12px; font-weight: 500; color: #fff; padding: 5px 10px; border-radius: 6px; background: rgba(18, 24, 38, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .case__body { padding: 26px clamp(22px, 2vw, 30px) 28px; display: flex; flex-direction: column; flex: 1; }
    .case__metric { font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(38px, 3.6vw, 54px); letter-spacing: -.055em; line-height: 1; }
    .case__metric small { font-size: .5em; color: var(--amber); }
    .case__metric-l { margin-top: 6px; font-size: 14px; color: var(--text-2); }
    .case__desc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.55; color: var(--text-2); }
    .case__foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
    .case__scope { font-size: 13px; color: var(--text-3); }
    .case .more { font-size: 14px; }
    .cases__more { margin-top: 36px; display: flex; justify-content: center; }

    /* ---------- OPINIE ---------- */
    .quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .quote { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; min-height: 320px; }
    .stars { color: var(--amber); letter-spacing: 3px; font-size: 15px; }
    .quote blockquote { margin-top: 20px; font-family: var(--display); font-stretch: 112%; font-weight: 400; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.4; letter-spacing: -.02em; }
    .quote figcaption { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 14px; }
    .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
    .quote figcaption b { display: block; font-weight: 500; font-size: 15px; }
    .quote figcaption small { display: block; font-size: 13px; color: var(--text-2); }

    /* ---------- O NAS ---------- */
    .about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
    .about__quote { font-family: var(--display); font-stretch: 125%; font-weight: 400; font-size: clamp(1.8rem, 3.3vw, 3.3rem); line-height: 1.08; letter-spacing: -.05em; }
    .about__quote em { font-style: normal; color: var(--amber); }
    .author { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
    .author__photo { width: 72px; height: 72px; border-radius: 50%; flex: none; background: var(--surface) url("assets/medially-founder-avatar.webp") center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--rule); }
    .author b { display: block; font-weight: 500; }
    .author small { display: block; font-size: 14px; color: var(--text-2); }
    .values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
    .value { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--rule); }
    .value:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--rule); }
    .value small { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
    .value h3 { margin-top: 24px; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: 20px; letter-spacing: -.035em; }
    .value p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

    /* ---------- FAQ ---------- */
    .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
    .faq__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
    .faq__aside .lede { margin-top: 20px; }
    .faq__aside .actions { margin-top: 28px; }
    .qa { border-top: 1px solid var(--rule); }
    .qa:last-child { border-bottom: 1px solid var(--rule); }
    .qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.03em; }
    .qa summary::-webkit-details-marker { display: none; }
    .qa__icon { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); flex: none; transition: background .3s, border-color .3s, transform .45s var(--ease); }
    .qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; }
    .qa__icon::after { transform: rotate(90deg); }
    .qa[open] .qa__icon { background: var(--amber); border-color: var(--amber); transform: rotate(45deg); }
    .qa summary:hover .qa__icon { border-color: var(--ink); }
    .qa p { padding: 0 64px 26px 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
    /* smooth open/close where supported (Chrome 131+), instant elsewhere */
    .qa::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
    .qa[open]::details-content { block-size: auto; }
    .qa p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

    /* ---------- KONTAKT ---------- */
    .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); border-radius: var(--r); overflow: hidden; margin-bottom: clamp(88px, 13vh, 150px); }
    .contact__info { position: relative; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; background: var(--ink); color: #fff; overflow: hidden; }
    .contact__info .label { color: rgba(255, 255, 255, .6); }
    .contact__info .lede { margin-top: 20px; color: rgba(255, 255, 255, .7); }
    .next { margin-top: 32px; display: grid; gap: 14px; counter-reset: next; position: relative; z-index: 1; }
    .next li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
    .next li::before { counter-increment: next; content: counter(next); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--amber); }
    .next b { display: block; color: #fff; font-weight: 600; }
    .next__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-top: 36px; }
    .contact__lines { margin-top: auto; padding-top: 40px; display: grid; gap: 12px; position: relative; z-index: 1; }
    .contact__lines a { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-stretch: 125%; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.035em; transition: color .25s; }
    .contact__lines a:hover { color: var(--amber); }
    .contact__lines a .ar { color: var(--amber); }
    .contact__info .bars-bg { position: absolute; right: 28px; bottom: 0; display: flex; gap: 14px; align-items: flex-end; }
    .contact__info .bars-bg i { width: 44px; background: linear-gradient(180deg, rgba(216, 154, 43, .35), rgba(216, 154, 43, .05)); clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%); }
    .contact__info .bars-bg i:first-child { height: 120px; }
    .contact__info .bars-bg i:last-child { height: 190px; }

    .form { padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: start; }
    .field { display: grid; gap: 8px; }
    .field--full { grid-column: 1 / -1; }
    .field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
    .field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; padding: 10px 0; transition: border-color .3s var(--ease); }
    .field__err { display: none; font-size: 12.5px; color: #c2410c; }
    .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c2410c; }
    .field input[aria-invalid="true"] ~ .field__err, .field textarea[aria-invalid="true"] ~ .field__err { display: block; }
    .consent.is-invalid { color: #c2410c; }
    .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
    .form__err { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: 6px; background: #fdecdf; color: #9a3412; font-size: 15px; }
    .form.failed .form__err { display: block; }
    .field textarea { resize: vertical; min-height: 110px; }
    .field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
    .field input::placeholder, .field textarea::placeholder { color: #b3b6bc; }
    .consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
    .consent input { margin-top: 3px; accent-color: var(--ink); flex: none; }
    .consent a { text-decoration: underline; text-underline-offset: 2px; }
    .form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 4px; }
    .form__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
    .form__note svg { width: 14px; height: 14px; color: #2fa66a; }
    .form__ok { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: 6px; background: var(--white); font-size: 15px; }
    .form.sent .form__ok { display: block; }

    /* shared slanted top: the low-left corner is rounded with a few points
       (border-radius cannot reach a clip-path corner); the high-right corner keeps border-radius */
    .pillar, .tier, .case {
      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) {
      .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
      .hero__visual { justify-self: center; max-width: 440px; }
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stat:nth-child(3) { border-left: 0; }
      .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
      .clients { grid-template-columns: minmax(0, 1fr); gap: 18px; }
      .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
      .pillar { height: auto; min-height: 460px; }
      .pillars-head { flex-direction: column; align-items: flex-start; gap: 12px; }
      .tech { grid-template-columns: minmax(0, 1fr); }
      .tech__title { border-right: 0; border-bottom: 1px solid var(--rule-2); }
      .sec__head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
      .sec__head .lede { justify-self: start; }
      .scale { grid-template-columns: minmax(0, 1fr); }
      .tier { min-height: 0; }
      .tier__range { margin-top: 24px; }
      .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cases, .quotes { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
      .about, .faq { grid-template-columns: minmax(0, 1fr); }
      .faq__aside { position: static; }
      .contact { grid-template-columns: minmax(0, 1fr); }
    }
    @media (max-width: 640px) {
      .lede { font-size: 17px; }
      .actions .btn { flex: 1 1 100%; justify-content: center; }
      .stat { padding: 22px 16px 26px 20px; }
      .hero__visual { max-width: 340px; }
      .clients__track { animation-duration: 45s; }
      .clients__track img { height: calc(var(--h, 40px) * .8); margin-right: 44px; }
      .pillars { grid-template-columns: minmax(0, 1fr); }
      .pillar { min-height: 400px; --cut: 40px; }
      .steps { grid-template-columns: minmax(0, 1fr); }
      .step { min-height: 0; }
      .values { grid-template-columns: minmax(0, 1fr); }
      .value, .value:nth-child(even) { padding: 22px 0 26px; border-left: 0; }
      .qa p { padding-right: 0; }
      .form { grid-template-columns: minmax(0, 1fr); }
      .form__foot .btn { flex: 1; justify-content: center; }
    }
    }
    @media (prefers-reduced-motion: reduce) {
      .m-home *, .m-home *::before, .m-home *::after { animation: none !important; transition: none !important; }
      h1 .ln > span, .fade, .pillar, .js .reveal { opacity: 1; transform: none; }
    }

    /* ---------- Contact Form 7 inside the contact panel ---------- */
    .form.m-cf7 { display: block; }
    .m-cf7 .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .m-cf7 .wpcf7-form > * { grid-column: 1 / -1; margin: 0; }
    .m-cf7 .wpcf7-form > p:nth-of-type(1), .m-cf7 .wpcf7-form > p:nth-of-type(2) { grid-column: auto; }
    .m-cf7 .hidden-fields-container { display: none; }
    .m-cf7 .wpcf7-turnstile { order: 8; }
    .m-cf7 .wpcf7-form > p:has(.wpcf7-submit) { order: 9; }
    .m-cf7 .wpcf7-response-output { order: 10; }
    .m-cf7 label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
    .m-cf7 label br { display: none; }
    .m-cf7 input[type="text"], .m-cf7 input[type="email"], .m-cf7 input[type="tel"], .m-cf7 input[type="url"], .m-cf7 textarea {
      width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
      background: transparent; padding: 10px 0; transition: border-color .3s var(--ease);
    }
    .m-cf7 textarea { resize: vertical; min-height: 110px; height: 130px; }
    .m-cf7 input:focus, .m-cf7 textarea:focus { outline: none; border-color: var(--ink); }
    .m-cf7 .wpcf7-form-control-wrap { display: block; }
    .m-cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
    .m-cf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 12.5px; line-height: 1.5; cursor: pointer; }
    .m-cf7 .wpcf7-acceptance input { margin-top: 3px; accent-color: var(--ink); flex: none; }
    .m-cf7 .wpcf7-acceptance a { text-decoration: underline; text-underline-offset: 2px; }
    .m-cf7 .wpcf7-acceptance a b { font-weight: 500; }
    .m-cf7 .wpcf7-submit {
      display: inline-flex; align-items: center; height: 58px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
      background: var(--amber); color: var(--ink); font: 500 16px var(--body); transition: background .3s var(--ease);
    }
    .m-cf7 .wpcf7-submit:hover { background: var(--amber-hi); }
    .m-cf7 .wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }
    .m-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12.5px; color: #c2410c; }
    .m-cf7 .wpcf7-not-valid { border-color: #c2410c !important; }
    .m-cf7 .wpcf7-response-output { margin: 0 !important; padding: 14px 16px !important; border-radius: 6px; border: 0 !important; background: var(--white); font-size: 15px; }
    .m-cf7 .wpcf7-form.invalid .wpcf7-response-output, .m-cf7 .wpcf7-form.failed .wpcf7-response-output { background: #fdecdf; color: #9a3412; }
    .m-cf7 .wpcf7-form.init .wpcf7-response-output { display: none; }
    .m-cf7 .wpcf7-spinner { margin-left: 12px; }
    .m-cf7 .form__note { margin-top: 18px; }
    @media (max-width: 640px) {
      .m-cf7 .wpcf7-form { grid-template-columns: minmax(0, 1fr); }
      .m-cf7 .wpcf7-submit { width: 100%; justify-content: center; }
    }

/* Keep service-card text readable over the darkened photographs. */
.m-home .pillar:not(.pillar--amber) { color: #fff; }
@media (max-width: 400px) {
  .m-home .m-cf7 { min-width: 0; }
  .m-home .wpcf7-turnstile { transform: scale(.8); transform-origin: left top; width: 300px; max-width: 100%; margin-bottom: -13px; }
}
@media (max-width: 340px) {
  .m-home .wpcf7-turnstile { transform: scale(.7); margin-bottom: -19px; }
}
