/* ==========================================================================
   unitakfans.com: product switcher home, About and Contact (built by _build-src/main/build_home.py)
   A. picker (pill marquee + lens)   B. product bar + edge tabs   C. product panel
   D. enquiry sheet   E. About / Contact page parts
   Product colours come from .pl-* (--lc, --lc-ink, --lc-soft) in shared/css/unitak.css.
   ========================================================================== */

.pcard__title, .hi__title, .why-card__title, .faq__q, .pp__h, .stage__title, .who__title,
.line-card__name, .page-top__title, .pick__title { text-wrap: balance; }

/* =============================================================== A. picker */
.pick { padding: 36px 0 18px; background: linear-gradient(180deg, var(--bg-soft), #fff 78%); overflow: hidden; }
.pick__intro { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pick__title { font-size: clamp(1.625rem, 3.4vw, 2.625rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.pick__title span { color: var(--brand); }
.pick__hint { display: inline-flex; align-items: center; gap: 8px; max-width: 64ch; color: var(--ink-2); font-size: 1rem; }
.pick__hint::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4FE0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pick.is-locked .pick__hint::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4FE0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E");
}
.pick__hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pick__hint-touch { display: none; }
  .pick__hint-mouse { display: inline; }
}

/* the strip: one wide rounded rectangle; pills drift through it; the lens marks the current one */
.marquee {
  --pill-w: 300px; --pill-h: 84px; --pill-gap: 12px;
  position: relative; width: min(100% - 32px, 1240px); margin: 22px auto 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 18px 40px -24px rgb(15 23 42 / .28);
}
.marquee__viewport {
  overflow: hidden; border-radius: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  touch-action: pan-y pinch-zoom;
}
.marquee__track { display: flex; gap: var(--pill-gap); width: max-content; will-change: transform; }
.marquee__lens {
  position: absolute; z-index: 2; top: 6px; bottom: 6px; left: 50%; width: calc(var(--pill-w) + 8px); translate: -50% 0;
  border-radius: 26px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--lc, var(--brand)), 0 10px 24px -10px color-mix(in srgb, var(--lc, var(--brand)) 60%, transparent);
  transition: box-shadow 400ms var(--ease);
}
.mpill {
  position: relative; flex: none; display: flex; align-items: center; gap: 14px;
  width: var(--pill-w); height: var(--pill-h); padding: 8px 18px 8px 8px;
  border-radius: 20px; background: var(--bg-soft); color: var(--ink); text-decoration: none;
  transition: background-color 400ms var(--ease), opacity 400ms var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-drag: none;
}
.mpill:hover { background: color-mix(in srgb, var(--lc) 8%, var(--bg-soft)); }
.mpill[aria-selected="true"] { background: var(--lc-soft); }
.marquee.is-locked .mpill:not([aria-selected="true"]) { opacity: .6; }
.marquee.is-locked .mpill:not([aria-selected="true"]):hover { opacity: 1; }
.mpill__img { flex: none; display: grid; place-items: center; width: 72px; height: 100%; border-radius: 14px; background: #fff; overflow: hidden; }
.mpill__img img { width: 64px; height: 48px; object-fit: contain; pointer-events: none; }
.mpill__body { display: grid; gap: 2px; min-width: 0; }
.mpill__name { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpill[aria-selected="true"] .mpill__name { color: var(--lc-ink); }
.mpill__note { font-size: .875rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpill:focus-visible { outline-offset: -3px; }
/* no script: the pills are a plain wrapping row of links to the stacked panels */
html:not(.js) .marquee__viewport { -webkit-mask-image: none; mask-image: none; }
html:not(.js) .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
html:not(.js) .marquee__lens { display: none; }

@media (max-width: 640px) {
  .pick { padding: 22px 0 10px; }
  .pick__hint { font-size: .9375rem; text-align: left; }
  .marquee { --pill-w: 236px; --pill-h: 70px; --pill-gap: 10px; width: calc(100% - 24px); margin-top: 16px; padding: 8px; border-radius: 26px; }
  .marquee__lens { top: 4px; bottom: 4px; width: calc(var(--pill-w) + 8px); border-radius: 22px; }
  .mpill { gap: 10px; padding: 6px 12px 6px 6px; border-radius: 18px; }
  .mpill__img { width: 58px; border-radius: 12px; }
  .mpill__img img { width: 52px; height: 40px; }
  .mpill__name { font-size: .9688rem; }
  .mpill__note { font-size: .8125rem; }
}

/* =============================================================== B. product bar + edge tabs */
/* One bar at a time: on tablets and desktops the product bar takes the header's place at the
   top of the screen. Scrolling down tucks the header and slides the bar in; scrolling up swaps
   them back, so the two are never stacked and Send enquiry never shows twice. */
.pbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: calc(var(--z-sticky) - 1);
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px -22px rgb(15 23 42 / .45);
  transform: translateY(-110%); visibility: hidden;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1), visibility 0s 320ms;
}
.pbar.is-shown { transform: none; visibility: visible; transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
@media (min-width: 761px) {
  .pbar .pbar__inner { height: var(--header-h); } /* same height as the header, so Send enquiry stays put during the swap */
  html:not(.header-hidden) .pbar.is-shown { transform: translateY(-110%); visibility: hidden; transition: transform 320ms cubic-bezier(.22, 1, .36, 1), visibility 0s 320ms; }
}
/* reduced motion: the header never tucks, so the bar stays under it without a second Send enquiry */
@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  .pbar { top: var(--header-h); }
  html:not(.header-hidden) .pbar.is-shown { transform: none; visibility: visible; }
  .pbar__cta { display: none; }
}
.pbar__inner { display: flex; align-items: center; gap: 6px; height: 58px; }
.pbar__nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); transition: background-color 160ms var(--ease); }
.pbar__nav:hover { background: var(--bg-soft); color: var(--ink); }
.pbar__nav .icon { width: 20px; height: 20px; }
.pbar__now { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; }
.pbar__now > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lc, var(--brand)); box-shadow: 0 0 0 4px var(--lc-soft, var(--brand-soft)); }
.pbar__cta { margin-left: auto; flex: none; }
@media (max-width: 420px) {
  .pbar__inner { gap: 2px; padding-inline: 8px; }
  .pbar__now { font-size: .9688rem; gap: 8px; }
  .pbar__cta { padding-inline: 14px; }
}

.edge {
  position: fixed; top: 50%; z-index: var(--z-fab); translate: 0 -50%;
  opacity: 0; transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.edge--prev { left: 0; transform: translateX(-8px); }
.edge--next { right: 0; transform: translateX(8px); }
.edge.is-on { opacity: 1; transform: none; }
.edge__btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; width: 30px; padding: 12px 0; overflow: hidden;
  background: rgb(255 255 255 / .94); color: var(--lc-ink, var(--ink));
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-head); font-weight: 600; font-size: .75rem; letter-spacing: .02em;
  transition: width 260ms cubic-bezier(.22, 1, .36, 1), min-height 260ms cubic-bezier(.22, 1, .36, 1), background-color 200ms var(--ease);
}
.edge--prev .edge__btn { border-left: 0; border-radius: 0 14px 14px 0; }
.edge--next .edge__btn { border-right: 0; border-radius: 14px 0 0 14px; }
.edge__btn .icon { width: 16px; height: 16px; flex: none; }
.edge__name { writing-mode: vertical-rl; white-space: nowrap; transition: opacity 200ms var(--ease); }
.edge--prev .edge__name { transform: rotate(180deg); }
.edge__btn:hover { background: #fff; }
/* resting: a slim coloured handle (tap area stays 24px wide), only where the side margin is too narrow for a labelled tab */
@media (max-width: 1023px) {
  .edge:not(.is-peek):not(:hover):not(:focus-within) .edge__btn { width: 10px; min-height: 64px; padding: 0; background: var(--lc, var(--brand)); border-color: transparent; box-shadow: none; }
  .edge:not(.is-peek):not(:hover):not(:focus-within) .edge__btn > * { opacity: 0; }
  .edge:not(.is-peek):not(:hover):not(:focus-within) .edge__btn::after { content: ""; position: absolute; inset: -12px -14px; }
  .edge--prev:not(.is-peek):not(:hover):not(:focus-within) .edge__btn::after { left: 0; }
  .edge--next:not(.is-peek):not(:hover):not(:focus-within) .edge__btn::after { right: 0; }
  .edge:not(.is-peek):not(:hover):not(:focus-within) .edge__btn { overflow: visible; }
}
@media (min-width: 1360px) { .edge .edge__btn { width: 36px; font-size: .8125rem; } }

/* home "One supplier, four products": the four products fill the top of the blue card */
.why-card__art { align-self: flex-end; width: min(80%, 460px); height: auto; margin: -8px -8px auto auto; filter: drop-shadow(0 18px 24px rgb(8 20 70 / .35)); }
@media (max-width: 1000px) { .why-card__art { width: min(62%, 360px); } }
@media (max-width: 640px) { .why-card__art { width: 72%; margin: -6px -4px 4px auto; } }

/* =============================================================== C. product panel */
.js .pp[data-inactive] { display: none; }
.pp.is-enter-next { animation: pp-in 420ms cubic-bezier(.22, 1, .36, 1) both; --pp-from: 36px; }
.pp.is-enter-prev { animation: pp-in 420ms cubic-bezier(.22, 1, .36, 1) both; --pp-from: -36px; }
.pp.is-enter-fade .stage__card { animation: pp-fade 480ms var(--ease) both; }
@keyframes pp-in { from { opacity: 0; transform: translateX(var(--pp-from)); } }
@keyframes pp-fade { from { opacity: .35; } }
html:not(.js) .pp + .pp { border-top: 8px solid var(--bg-soft); }

.stage { padding: 18px 0 8px; }
.stage__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  min-height: 460px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 80% at 22% 50%, #fff 0%, transparent 70%),
    linear-gradient(135deg, var(--lc-soft) 0%, #fff 62%);
  border: 1px solid color-mix(in srgb, var(--lc) 18%, var(--line));
}
.stage__card::before {
  content: ""; position: absolute; z-index: -1; left: -8%; top: 50%; width: 52%; aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lc) 22%, transparent), transparent 66%);
}
.stage__media { display: grid; place-items: center; padding: 32px; }
.stage__media img { width: 100%; max-width: 500px; height: auto; filter: drop-shadow(0 24px 30px rgb(15 23 42 / .16)); }
.stage__body { display: grid; justify-items: start; gap: 16px; padding: 48px 56px 48px 8px; }
.stage__title { font-size: clamp(1.75rem, 3.3vw, 2.875rem); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.stage__text { max-width: 52ch; font-size: 1.125rem; color: var(--ink-2); }
.stage__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.stage__chips .chip { background: #fff; }
.stage__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 900px) {
  .stage__card { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .stage__card::before { left: 50%; top: 22%; width: 80%; translate: -50% -50%; }
  .stage__media { padding: 22px 22px 0; }
  .stage__media img { max-width: 340px; }
  .stage__body { padding: 8px 22px 26px; gap: 12px; }
  .stage__text { font-size: 1.0625rem; }
}
@media (max-width: 480px) {
  .stage { padding-top: 12px; }
  .stage__media img { max-width: 270px; }
  .stage__cta { width: 100%; }
  .stage__cta .btn { flex: 1 1 100%; }
}

.pp__sec.section { padding-block: 64px; }
.pp__sec.section--tight { padding-block: 40px; }
@media (max-width: 640px) { .pp__sec.section { padding-block: 44px; } .pp__sec.section--tight { padding-block: 28px; } }
.pp__h { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.pp__head { display: grid; gap: 8px; margin-bottom: 24px; }
.pp__lead { color: var(--ink-2); max-width: 60ch; }
.pp__split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 24px 56px; align-items: start; }
.pp__split .pp__head { margin-bottom: 0; position: sticky; top: calc(var(--header-offset, 0px) + 80px); }
@media (max-width: 900px) { .pp__split { grid-template-columns: 1fr; } .pp__split .pp__head { position: static; } }

/* highlights */
.pp__sec > .container > .pp__h { margin-bottom: 22px; }
.hi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.hi { display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.hi__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: var(--lc-soft); color: var(--lc-ink); }
.hi__icon .icon { width: 22px; height: 22px; }
.hi__title { font-size: 1.0625rem; font-weight: 600; }
.hi__text { color: var(--ink-2); font-size: .9688rem; }
@media (max-width: 1000px) { .hi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .hi-grid { gap: 10px; }
  .hi { padding: 16px; border-radius: 16px; }
  .hi__icon { width: 40px; height: 40px; border-radius: 12px; }
  .hi__title { font-size: 1rem; }
  .hi__text { font-size: .9375rem; }
}

/* range cards */
.pp__cards { gap: 20px; }
.pp__cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); max-width: 820px; }
.pp__cards .pcard__media { aspect-ratio: 16 / 11; padding: 18px; }
.pp__cards .pcard__body { gap: 8px; }
.pcard__use { font-size: .9375rem; color: var(--ink-2); }
.pp__cards .pcard__actions { margin-top: auto; padding-top: 6px; }
@media (max-width: 560px) {
  .pp__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pp__cards .pcard__media { padding: 10px; }
  .pp__cards .pcard__body { padding: 12px 12px 14px; }
  .pp__cards .pcard__title { font-size: .9688rem; }
  .pp__cards .pcard__model, .pp__cards .pcard__use { font-size: .8438rem; }
  .pp__cards .pcard__specs { display: none; }
  .pp__cards .pcard__actions .btn { width: 100%; padding-inline: 8px; font-size: .8438rem; }
  .pp__cards .pcard__badge { font-size: .6875rem; }
}

/* explainer */
.pp__ex-media { display: grid; place-items: center; padding: 28px; border-radius: 28px; background: radial-gradient(circle at 50% 45%, var(--lc-soft), var(--bg-soft) 70%); }
.pp__ex-media img { width: 100%; max-width: 420px; height: auto; }
.ticks { display: grid; gap: 12px; list-style: none; padding: 0; margin: 4px 0 0; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 900px) { .pp__ex-media { padding: 18px; } .pp__ex-media img { max-width: 280px; } }

/* details list */
.facts { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.facts__row { display: grid; grid-template-columns: minmax(140px, .7fr) 1.3fr; gap: 4px 24px; padding: 16px 22px; border-top: 1px solid var(--line); }
.facts__row:first-child { border-top: 0; }
.facts dt { font-family: var(--font-head); font-weight: 500; font-size: .9375rem; color: var(--ink-2); }
.facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .facts__row { grid-template-columns: 1fr; padding: 12px 16px; } .facts dt { font-size: .875rem; } }

/* product CTA band */
.pp-cta {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px 48px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(115deg, var(--ink) 30%, color-mix(in srgb, var(--lc) 70%, var(--ink)));
}
.pp-cta::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 320px; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .07); }
.pp-cta__title { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; color: #fff; }
.pp-cta__text { margin-top: 8px; max-width: 54ch; color: #E2E8F0; font-size: 1.0625rem; }
.pp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .pp-cta { padding: 28px 22px; border-radius: 22px; }
  .pp-cta__actions, .pp-cta__actions .btn { width: 100%; }
}

/* =============================================================== D. enquiry sheet */
.sheet {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: hidden;
}
.sheet[open] { display: grid; place-items: center; padding: 24px; }
.sheet::backdrop { background: rgb(15 23 42 / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__panel {
  width: min(100%, 580px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px; background: #fff; border-radius: 26px; box-shadow: 0 30px 80px -20px rgb(15 23 42 / .45);
  animation: sheet-up 340ms cubic-bezier(.22, 1, .36, 1);
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .875rem; color: var(--lc-ink, var(--brand)); }
.sheet__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lc, var(--brand)); }
.sheet__title { margin-top: 4px; font-size: 1.5rem; font-weight: 700; }
.sheet__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -6px -8px 0 0; border-radius: 50%; color: var(--ink-2); }
.sheet__close:hover { background: var(--bg-soft); color: var(--ink); }
.sheet__lead { margin: 6px 0 20px; color: var(--ink-2); }
.sheet .form { gap: 16px; }
.sheet .form__actions .btn { flex: 1 1 auto; }
html.sheet-open { overflow: hidden; }
@media (max-width: 640px) {
  .sheet[open] { place-items: end stretch; padding: 0; }
  .sheet__panel { width: 100%; max-height: 92dvh; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; animation-name: sheet-up-phone; }
  .sheet__panel::before { content: ""; display: block; width: 40px; height: 4px; margin: -6px auto 14px; border-radius: 4px; background: var(--line); }
  .sheet .form__row { grid-template-columns: 1fr; gap: 16px; }
  @keyframes sheet-up-phone { from { transform: translateY(100%); } }
}

/* =============================================================== E. About / Contact */
.page-top { padding: 40px 0 56px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.page-top--short { padding-bottom: 32px; }
.page-top__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; }
.page-top .breadcrumb { margin-bottom: 18px; }
.page-top__title { font-size: clamp(2rem, 4vw, 3.125rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.page-top__lead { margin-top: 14px; max-width: 60ch; font-size: 1.125rem; color: var(--ink-2); }
.page-top__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-top__media img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgb(15 23 42 / .14)); }
@media (max-width: 900px) { .page-top__grid { grid-template-columns: 1fr; } .page-top__media { max-width: 460px; } }

.line-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.line-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.line-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.line-card__img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 20px; background: radial-gradient(circle at 50% 50%, var(--lc-soft), var(--bg-soft) 72%); }
.line-card__img img { width: 100%; height: 100%; object-fit: contain; }
.line-card__body { display: grid; gap: 8px; padding: 18px 20px 22px; flex: 1; align-content: start; }
.line-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; }
.line-card__text { color: var(--ink-2); font-size: .9375rem; }
.line-card .link-arrow { margin-top: 4px; }
@media (max-width: 1000px) { .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .line-grid { grid-template-columns: 1fr; } }

.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.who { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; }
.who__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.who__title { font-size: 1.0625rem; font-weight: 600; }
.who__text { color: var(--ink-2); font-size: .9688rem; }
.who .link-arrow { margin-top: 6px; }
@media (max-width: 1000px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-offset, 0px) + 20px); }
.contact-box { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.contact-box__title { margin-bottom: 14px; font-size: 1.125rem; font-weight: 600; }
.quick { display: grid; gap: 4px; list-style: none; padding: 0; margin: 0; }
.quick__item { display: flex; align-items: flex-start; gap: 14px; padding: 12px; margin-inline: -12px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color 160ms var(--ease); }
.quick__item:hover { background: var(--bg-soft); }
.quick__item > .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
.quick__item strong { display: block; font-family: var(--font-head); font-weight: 600; }
.quick__item span span { display: block; font-size: .9375rem; color: var(--ink-2); }
.reach { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.reach li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.reach li[hidden] { display: none; }
.reach .icon { flex: none; width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { position: static; } }

.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .pp.is-enter-next, .pp.is-enter-prev, .pp.is-enter-fade .stage__card, .sheet__panel { animation: none; }
  .pbar, .edge, .line-card { transition: none; }
}

/* sideways swipes switch product on the home page, so the browser's own swipe-to-go-back
   (Chrome on touch screens and trackpads) is turned off here; phone system edge gestures still work */
html:has(body.page--home), body.page--home { overscroll-behavior-x: none; }
/* A product switch slides the new panel in from 36px to the side. On phones the panel is
   full width, so for a moment it stuck out past the screen and a sideways swipe panned the
   whole page. Clip it (clip, unlike hidden, keeps sticky parts working) and tell the browser
   the swipe areas only scroll vertically; the page script handles the sideways swipe. */
body.page--home main { overflow-x: clip; }
body.page--home .marquee, body.page--home .products { touch-action: pan-y pinch-zoom; }
.sheet .form__note { display: none; }

/* =============================================================== F. full width + phones
   The main site's pages run near full width: content up to 1840px with gutters that grow with the
   screen. Phones get a compact first screen (Send enquiry visible without scrolling), the product bar
   at the bottom of the screen, and shorter sections. */
body.page--home, body.page--about, body.page--contact { --container: 1840px; --gutter: clamp(16px, 3.6vw, 64px); }
.sm-hide { display: inline; }

/* wide screens: give the larger width to the product, keep text lines readable */
@media (min-width: 1500px) {
  .stage__card { min-height: 540px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .stage__media img { max-width: 620px; }
  .stage__body { padding-right: clamp(56px, 5vw, 112px); }
  .stage__title { font-size: clamp(2.75rem, 2.6vw, 3.5rem); }
  .marquee { --pill-w: 340px; --pill-h: 92px; }
  .mpill__img { width: 84px; }
  .mpill__img img { width: 74px; height: 56px; }
  .pp__split { grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: 24px 96px; }
  .feature-row { gap: 96px; }
}
.marquee { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); }
/* range cards: one row of four on wide screens instead of half-empty auto columns */
@media (min-width: 1100px) {
  .pp__cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp__cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
}
@media (min-width: 641px) and (max-width: 1099px) {
  .pp__cards--4, .pp__cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

/* product bar on phones and small tablets: bottom of the screen, within thumb reach */
@media (max-width: 760px) {
  .pbar {
    top: auto; bottom: 0; border-bottom: 0; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px -18px rgb(15 23 42 / .35);
    transform: translateY(110%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .pbar.is-shown { transform: none; }
  .pbar__inner { height: 64px; }
  .pbar__cta { min-height: 46px; padding-inline: 18px; font-size: .9375rem; }
  body.page--home .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* the dark top bar repeats links that are in the menu; phones get the space back */
  body.page--home .topbar, body.page--about .topbar, body.page--contact .topbar { display: none; }
  .edge { display: none; } /* the bottom bar's arrows and sideways swipes switch product on phones */
}

@media (max-width: 640px) {
  .sm-hide { display: none; }

  /* first screen: header 64 + picker ~190 + stage with both buttons in view on a 390x844 phone */
  .pick { padding: 16px 0 6px; }
  .pick__intro { gap: 6px; }
  .pick__title { font-size: 1.5rem; }
  .pick__hint { font-size: .875rem; line-height: 1.4; }
  .pick__hint::before { width: 20px; height: 20px; background-size: 12px; }
  .marquee { --pill-w: min(68vw, 260px); --pill-h: 66px; margin-top: 12px; }
  .mpill__img { width: 54px; }
  .mpill__img img { width: 48px; height: 38px; }

  /* the stage runs edge to edge on phones */
  .stage { padding: 8px 0 0; }
  .stage > .container { width: 100%; }
  .stage__card { border-radius: 0; border-inline: 0; }
  .stage__card::before { top: 20%; width: 70%; }
  .stage__media { padding: 14px 16px 0; height: 186px; }
  .stage__media { grid-template-rows: 100%; }
  .stage__media img { height: 100%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
  .stage__body { padding: 4px var(--gutter) 22px; gap: 10px; }
  .stage .line-tag--pill { padding: 4px 10px 4px 8px; font-size: .8125rem; }
  .stage__title { font-size: 1.625rem; line-height: 1.15; }
  .stage__text { font-size: 1rem; line-height: 1.5; }
  .stage__chips { gap: 6px; }
  .stage__chips .chip { padding: 4px 10px; font-size: .8125rem; min-height: 0; }
  .stage__cta { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
  .stage__cta .btn { width: 100%; min-height: 50px; padding: 10px 12px; font-size: 1rem; }
  .stage__cta .btn .icon { display: none; }

  /* sections: tighter rhythm */
  .pp__sec.section { padding-block: 36px; }
  .pp__sec.section--tight { padding-block: 24px; }
  .pp__sec > .container > .pp__h { margin-bottom: 14px; }
  .pp__head { margin-bottom: 16px; gap: 6px; }
  .pp__h { font-size: 1.375rem; }
  .pp__lead { font-size: .9688rem; }

  /* highlights: 2 x 2, icon beside the title */
  .hi { grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 14px; }
  .hi__icon { width: 34px; height: 34px; margin: 0; border-radius: 10px; }
  .hi__icon .icon { width: 18px; height: 18px; }
  .hi__title { font-size: .9375rem; line-height: 1.25; }
  .hi__text { grid-column: 1 / -1; font-size: .875rem; line-height: 1.45; }

  /* range cards: shorter tiles, no repeated use line */
  .pp__cards .pcard__media { aspect-ratio: 4 / 3; }
  .pp__cards .pcard__use { display: none; }

  /* explainer: the stage already shows the product, so no second picture */
  .pp__ex-media { display: none; }
  .feature-row__title { font-size: 1.375rem; }
  .ticks { gap: 10px; }
  .ticks li { font-size: .9688rem; }

  /* details: label and value side by side */
  .facts { border-radius: 16px; }
  .facts__row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; padding: 11px 14px; align-items: baseline; }
  .facts dt { font-size: .8438rem; }
  .facts dd { font-size: .9375rem; line-height: 1.4; }

  .faq__q { font-size: 1rem; }

  .pp-cta { padding: 24px 20px; gap: 16px; }
  .pp-cta__title { font-size: 1.3125rem; }
  .pp-cta__text { font-size: .9688rem; }
  .pp-cta__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-cta__actions .btn { min-height: 50px; padding: 10px 12px; font-size: .9375rem; }
  .pp-cta__actions .btn .icon { display: none; }

  /* why UNITAK: feature card on top, the rest two by two */
  #why.section, body.page--about .section { padding-block: 40px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .why-card--feature { grid-column: 1 / -1; padding: 22px 20px; }
  .why-card--feature .why-card__title { font-size: 1.25rem; }
  .why-card--feature .why-card__text { font-size: .9375rem; }
  .why-card:not(.why-card--feature) { padding: 14px; gap: 8px; }
  .why-card:not(.why-card--feature) .why-card__icon { width: 36px; height: 36px; }
  .why-card:not(.why-card--feature) .why-card__title { font-size: .9688rem; }
  .why-card:not(.why-card--feature) .why-card__text { font-size: .875rem; line-height: 1.45; }
  /* one column: two narrow columns squeezed the titles to three lines */
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 18px; }
  .section-head__title { font-size: 1.5rem; }

  .cta-band { padding: 26px 20px; }
  .cta-band__title { font-size: 1.375rem; }
  .cta-band__actions { display: grid; grid-template-columns: 1fr; width: 100%; }

  /* footer: brand on top, link lists two by two */
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-block: 36px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer .site-footer__col--wide-only { display: block; }
  .site-footer__links a { min-height: 40px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* about / contact */
  .page-top { padding: 22px 0 32px; }
  .page-top__title { font-size: 1.875rem; }
  .page-top__lead { font-size: 1rem; }
  .page-top__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-top__cta .btn { min-height: 50px; padding: 10px 12px; font-size: .9688rem; }
  .page-top__media { max-width: 300px; margin-inline: auto; }
  .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .line-card__img { padding: 10px; }
  .line-card__body { padding: 12px 12px 14px; gap: 6px; }
  .line-card__name { font-size: .9688rem; }
  .line-card__text { display: none; }
  .who-grid { gap: 10px; }
  .who { padding: 16px; }
  .form-card { padding: 20px 16px; border-radius: 18px; }
  .contact-grid { gap: 16px; }
  .contact-box { padding: 18px 16px; }
}
/* short phones (360x740 and similar): a smaller picture keeps both buttons on the first screen */
@media (max-width: 640px) and (max-height: 780px) {
  .pick__title { font-size: 1.375rem; }
  .stage__media { height: 140px; padding-top: 10px; }
  .stage__text { font-size: .9688rem; }
}
@media (max-width: 340px) {
  .stage__cta, .pp-cta__actions, .page-top__cta { grid-template-columns: 1fr; }
  .hi-grid, .why-grid, .line-grid { grid-template-columns: 1fr; }
}
/* tablets: wider, shorter card pictures and a smaller explainer picture */
@media (min-width: 641px) and (max-width: 1099px) {
  .pp__cards .pcard__media { aspect-ratio: 16 / 10; }
  .pp__ex-media img { max-width: 300px; }
  .pp__ex-media { padding: 16px; }
}
