/* Piar site — Apple-style layout in Piar brand colours (logo blue #0095db, dot red #ec1a3b, ink #292d36): big quiet type, white / #f5f5f7 / black bands, pill buttons, product as hero. One stylesheet, no build. */
:root {
  --bg: #fff;
  --bg-2: #f5f5f7;          /* Apple's light grey band */
  --ink: #292d36;           /* Piar ink */
  --ink-2: #585f6e;
  --black: #292d36;         /* dark bands in Piar ink, not pure black */
  --on-black: #f5f5f7;
  --on-black-2: #86868b;
  --brand: #0095db;         /* logo blue: accents, gradients */
  --red: #ec1a3b;           /* logo dot: one detail only */
  --blue: #0077b0;          /* buttons: brand blue darkened to pass AA with white text */
  --link: #0077b0;          /* text links on light */
  --link-dark: #4fb8ee;     /* text links on black */
  --line: #d2d2d7;
  --max: 1024px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .35em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.05; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.07; letter-spacing: -.005em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.14; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.eyebrow { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; color: var(--ink-2); margin-bottom: .4em; letter-spacing: .004em; }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.25; font-weight: 400; color: var(--ink); max-width: 34em; }
.muted { color: var(--ink-2); font-size: .9rem; }
.edge { display: none; }

/* Header: translucent bar like apple.com */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: rgba(251, 251, 253, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; min-height: 48px; }
.logo { display: block; padding: 11px 0; }
.logo img { height: 26px; width: auto; }
.logo:hover { text-decoration: none; }
.menu { display: none; font: inherit; font-size: .8rem; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.nav a { color: var(--ink); opacity: .8; display: block; padding: 8px 10px; font-size: .78rem; letter-spacing: -.01em; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav a.btn { opacity: 1; color: #fff; padding: 5px 12px; margin-left: 8px; font-size: .75rem; }
@media (max-width: 959px) {
  .js .menu { display: block; }
  .nav { width: 100%; }
  .js .site-head .nav { width: auto; }
  .js .nav ul { display: none; }
  .js .nav.open { width: 100%; }
  .js .nav.open ul { display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
  .js .nav.open a { font-size: 1.5rem; font-weight: 600; padding: 8px 0; opacity: 1; }
  .js .nav.open a.btn { font-size: 1rem; margin: 12px 0 0; text-align: center; }
  .site-head .wrap { position: relative; }
  .js .nav.open .menu { position: absolute; right: max(22px, env(safe-area-inset-right, 0px)); top: 6px; }
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(251, 251, 253, .95); }

/* NRF ribbon: thin grey line under the bar */
.strip { background: var(--bg-2); color: var(--ink); font-size: .85rem; }
.strip .wrap { padding-block: 12px; display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: center; text-align: center; }
.strip a { color: var(--link); }

/* Buttons: pills */
.btn { display: inline-block; padding: 12px 22px; border-radius: 980px; font-size: 1.05rem; font-weight: 400; background: var(--blue); color: #fff; border: 1px solid var(--blue); line-height: 1.18; letter-spacing: -.01em; }
.btn:hover { background: #0095db; text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.more::after, .links a::after { content: " ›"; }

/* Sections */
section { padding-block: clamp(64px, 10vw, 120px); }
section.tight { padding-block: 64px; }
.alt { background: var(--bg-2); }
.dark, .tech, .cta { background: var(--black); color: var(--on-black); }
:is(.dark, .tech, .cta) :is(.lead, p) { color: var(--on-black); }
:is(.dark, .tech, .cta) :is(.muted, .eyebrow, figcaption) { color: var(--on-black-2); }
:is(.dark, .tech, .cta) a:not(.btn) { color: var(--link-dark); }
:is(.dark, .tech, .cta) .btn.ghost { color: var(--link-dark); border-color: var(--link-dark); }
:is(.dark, .tech, .cta) .btn.ghost:hover { background: var(--link-dark); color: #000; }
/* the one loud move: RFID headlines in the logo blue → dot red gradient */
.tech h1, .tech h2, .grad, .tile.black .grad { background: linear-gradient(90deg, var(--brand) 30%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero: centred statement, product below */
.hero { padding-block: clamp(56px, 8vw, 96px) 0; text-align: center; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; justify-items: center; }
.hero .lead { margin-inline: auto; }
.hero .btn-row { justify-content: center; }
.hero figure { max-width: 760px; width: 100%; }
.hero figure img, .hero figure video { margin-inline: auto; max-height: 72vh; width: auto; }
.hero figcaption { text-align: center; }
.hero.dark, .hero.tech { padding-bottom: clamp(56px, 8vw, 96px); }
.price { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0 0 .6em; }
:is(.dark, .tech) .price { color: var(--on-black); }

/* Grids and tiles */
.grid { display: grid; gap: 16px; }
@media (min-width: 734px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg-2); border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; }
.alt .card { background: var(--bg); }
.card h3 { font-size: 1.5rem; }
.card .more { margin-top: auto; }
.card p:last-of-type { flex-grow: 1; }
.dark .card, .tech .card { background: #1d1d1f; color: var(--on-black); }
.card.tech, .alt .card.tech { background: var(--black); color: var(--on-black); } /* dark card on a light band */

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

/* Process steps: the order is real, so numbers stay */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 32px; }
@media (min-width: 800px) { .steps.row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 20px; color: var(--ink-2); }
.steps li strong { color: var(--ink); display: block; font-size: 1.2rem; margin-bottom: 4px; }
.steps li::before { content: counter(s); display: block; font: 600 2.6rem/1 var(--font-display); color: var(--ink); margin-bottom: 14px; }
.tech .steps li { border-color: #424245; color: var(--on-black-2); }
.tech .steps li strong, .tech .steps li::before { color: var(--on-black); }

/* Fact list */
.facts { list-style: none; padding: 0; margin: 0 0 1em; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
:is(.dark, .tech) .facts li { border-color: #424245; }

/* Big-number statements */
.trust { display: grid; gap: 40px; text-align: center; }
@media (min-width: 800px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust div { color: var(--on-black-2); font-size: 1.05rem; }
.trust strong { display: block; font: 600 clamp(2.5rem, 5vw, 3.75rem)/1.05 var(--font-display); color: var(--on-black); margin-bottom: 8px; }

/* Figures and placeholders */
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 12px; }
.ph { border-radius: 28px; background: var(--bg-2); min-height: 280px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: .9rem; border: 1px dashed var(--line); }
:is(.dark, .tech) .ph { background: #1d1d1f; border-color: #424245 !important; color: var(--on-black-2) !important; }
.shot { border-radius: 28px; background: var(--bg-2); }

/* Comparison table */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }

/* Closing CTA: centred */
.cta { text-align: center; }
.cta .wrap { display: grid; gap: 8px; justify-items: center; }
.cta .btn-row { justify-content: center; }
.cta p { color: var(--on-black-2); font-size: 1.2rem; }

/* Booth badge */
.booth { display: inline-grid; gap: 4px; text-align: center; }
.booth b { font: 600 clamp(4rem, 12vw, 8rem)/1 var(--font-display); letter-spacing: -.03em; background: linear-gradient(90deg, var(--brand) 30%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Forms */
form { display: grid; gap: 20px; }
.fields { display: grid; gap: 20px; }
@media (min-width: 700px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
:is(.dark, .tech) :is(input, select, textarea) { background: #1d1d1f; border-color: #424245; color: var(--on-black); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 149, 219, .25); }
.form-note { font-size: .85rem; color: var(--ink-2); }
button.btn { font: inherit; cursor: pointer; justify-self: start; }

/* Footer: small grey type */
.site-foot { background: var(--bg-2); color: var(--ink-2); padding-block: 40px 24px; font-size: .78rem; line-height: 1.6; }
.site-foot .grid { gap: 28px; }
@media (min-width: 800px) { .site-foot .grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--ink); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot h3 { color: var(--ink); font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
.site-foot .legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; margin-bottom: 0; }

/* Home: Apple-style product tiles */
.tiles { display: grid; gap: 12px; padding: 12px; background: var(--bg); }
@media (min-width: 834px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--bg-2); border-radius: 0; text-align: center; padding: 52px 24px 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: 580px; }
@media (min-width: 834px) { .tile { border-radius: 4px; } }
.tile.black { background: var(--black); color: var(--on-black); }
.tile h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .15em; }
.tile p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.3; max-width: 22em; margin-bottom: .6em; }
.tile.black p { color: var(--on-black); }
.tile .sub { font-size: .95rem; color: var(--ink-2); margin-bottom: 0; }
.tile.black .sub { color: var(--on-black-2); }
.links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 1.05rem; margin: 14px 0 28px; }
.tile.black .links a { color: var(--link-dark); }
.tile img { mix-blend-mode: multiply; margin-top: auto; max-height: 440px; width: auto; }
.tile .big { font: 600 clamp(4.5rem, 10vw, 7.5rem)/1 var(--font-display); letter-spacing: -.03em; margin: auto 0 56px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Home: full-bleed factory film behind the headline */
.hero-video { position: relative; overflow: hidden; background: var(--black); color: #fff; text-align: center; min-height: min(86vh, 860px); display: grid; align-items: end; padding-block: 120px 72px; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41, 45, 54, .15) 0%, rgba(41, 45, 54, .35) 45%, rgba(41, 45, 54, .85) 100%); }
.hero-video .wrap { position: relative; z-index: 1; display: grid; justify-items: center; }
.hero-video h1 { color: #fff; }
.hero-video .eyebrow { color: rgba(255, 255, 255, .75); }
.hero-video .lead { color: #fff; margin-inline: auto; }
.hero-video .btn-row { justify-content: center; }
.hero-video .btn.ghost { color: #fff; border-color: #fff; }
.hero-video .btn.ghost:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } .hero-video { background: var(--black) url("img/promo/hero-poster.jpg") center / cover; } }

/* Home: factory mosaic */
.factory { padding-bottom: 12px; }
.factory .wrap { text-align: center; }
.factory .lead { margin-inline: auto; color: var(--ink-2); }
.mosaic { display: grid; gap: 12px; padding: 48px 12px 0; }
@media (min-width: 834px) { .mosaic { grid-template-columns: repeat(3, 1fr); } .mosaic .m-wide { grid-column: span 2; } }
.mosaic figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; max-width: 100%; }
@media (min-width: 834px) { .mosaic figure { aspect-ratio: auto; height: clamp(300px, 34vw, 440px); } }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 20px; bottom: 16px; margin: 0; color: #fff; font-size: 1rem; font-weight: 600; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

/* EU / EAS funding notices (required publicity for co-financed projects) */
.eu-band { margin: 28px 0 0; }
.eu-band a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ink-2); }
.eu-band img { height: 44px; width: auto; background: #fff; border-radius: 4px; padding: 4px; }
.funds { display: grid; gap: 16px; margin-top: 40px; }
.fund { background: var(--bg); border-radius: 18px; padding: 28px; display: grid; gap: 20px; align-items: start; }
@media (min-width: 734px) { .fund { grid-template-columns: 220px 1fr; } }
.fund img { width: 220px; max-width: 100%; height: auto; }
.fund p { font-size: .95rem; color: var(--ink-2); max-width: 65ch; }
.fund p:last-child { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; border-radius: 12px; background: #e8f6ee; color: #1d5c37; margin: 0; }
.form-status.err { background: #fdecef; color: #8a1328; }
/* product videos on white: browsers decode video white as ~#fdfdfd, which shows a visible box on the #fff page */
.on-white { filter: brightness(1.03); }

/* NRF form: pick one or more days, calendar-tile style */
.days { border: 0; padding: 0; margin: 0; min-width: 0; }
.days legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.day-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 420px; }
.day { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; font-weight: 400; text-align: center; transition: border-color .15s, background .15s; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day .dow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 600; }
.day .dnum { font: 600 2rem/1 var(--font-display); color: var(--ink); }
.day .dmon { font-size: .75rem; color: var(--ink-2); }
.day:hover { border-color: var(--brand); }
.day:has(input:checked) { background: var(--blue); border-color: var(--blue); }
.day:has(input:checked) :is(.dow, .dnum, .dmon) { color: #fff; }
.day:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0, 149, 219, .3); }
/* home tiles: backgrounds matched to the product imagery so no box shows around it */
.tile-mdf { background: #f4f7fc; }
.tile-white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tile video { margin-top: auto; max-height: 440px; width: 100%; object-fit: contain; }
.tile-mdf img { mix-blend-mode: normal; }

/* Work: portfolio from the brochure (panels keep the brochure's #f4f7fc ground) */
.pf-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 834px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
.pf { background: #f4f7fc; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.pf img { width: 100%; height: auto; }
.pf figcaption { padding: 0 24px 24px; margin: 0; font-size: .95rem; color: var(--ink-2); }
.pf figcaption strong { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: 4px; }

/* Shop-in-shop theme gallery: white renders on the white page */
.sns-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sns-grid img { width: 100%; height: auto; }
.sns-grid figcaption { text-align: center; font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 0; }
/* real factory photo in a home tile: full-bleed at the tile bottom */
.tile img.tile-photo { mix-blend-mode: normal; width: calc(100% + 48px); max-width: none; max-height: none; margin: auto -24px 0; aspect-ratio: 4 / 3; object-fit: cover; }
