/* =========================================================
   Product one-pager (page-templates/template-product-sheet.php), loaded on that template only.
   The page is built from the site's own blocks (.page-hero, .section, .markets, .split,
   .aside-card, .cta); this file adds what the one-pager brings: the headline figures under the
   hero, the feature cards, the application photo tiles, the models list and the line chart.
   29/11/2026: first used for the XBC25 series (/xbc25/), asked for by Josia as a visual
   one-pager "instead of only text".
   Colours come from the --sheet-* tokens. They are declared with :where(), which has no
   specificity, so a site palette only has to redefine the tokens on the same selectors.
   ========================================================= */
:where(.sheet-hero, .sheet-features, .sheet-apps, .sheet-about) {
  --sheet-hero-ink: #fff;                        /* figures on the hero */
  --sheet-hero-soft: rgba(255, 255, 255, .7);
  --sheet-hero-line: rgba(255, 255, 255, .16);
  --sheet-hero-accent: var(--mint);
  --sheet-heading: var(--plum);
  --sheet-accent: var(--red);
  --sheet-accent-2: var(--coral);
  --sheet-tint: var(--mint-light);               /* icon chips and tags */
  --sheet-chart: var(--magenta);
}

/* ---------- hero ---------- */
.sheet-hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
/* the part of the headline before its colon: a label line over the message */
.sheet-hero__label { display: block; margin-bottom: .5em; font-size: .56em; font-weight: 500; line-height: 1.2; letter-spacing: .01em; color: var(--sheet-hero-accent); }
.sheet-hero .page-hero__lead { max-width: 660px; }
.sheet-hero .page-hero__media { min-height: 330px; }
.sheet-hero .page-hero__media img { max-width: 66%; max-height: 290px; }
/* the second, smaller product in front of the first (the XBC25A on its adapter) */
.sheet-hero .page-hero__media .sheet-hero__alt { position: absolute; right: 3%; bottom: 0; max-width: 37%; max-height: 150px; }
.sheet-hero__file { margin: 22px 0 0; }
.sheet-hero__file .link-arrow { font-size: .98rem; }
.sheet-hero__file .link-arrow:hover { gap: 8px; }
.sheet-hero__file .ico { transition: transform .3s var(--ease); }
.sheet-hero__file .link-arrow:hover .ico { transform: translateY(3px); }

/* headline figures: one hairline across the hero, a short accent bar over each number */
.sheet-figures { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 26px; margin: clamp(44px, 5vw, 68px) 0 0; border-top: 1px solid var(--sheet-hero-line); }
.sheet-figure { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 9px; padding-top: 24px; }
.sheet-figure::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 2px; border-radius: 2px; background: var(--sheet-hero-accent); }
.sheet-figure dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.15vw, 1.95rem); line-height: 1; letter-spacing: -.01em; color: var(--sheet-hero-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet-figure dd small { font-size: .5em; font-weight: 500; letter-spacing: .03em; color: var(--sheet-hero-accent); }
/* labels, tags and the chart unit carry units (Hz, mW, °C, s), so none of them is set in capitals */
.sheet-figure dt { font-size: .86rem; line-height: 1.4; letter-spacing: .01em; color: var(--sheet-hero-soft); }

/* ---------- features: numbered icon cards ---------- */
.sheet-features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: sheet-feature; }
.sheet-feature { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; counter-increment: sheet-feature; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.sheet-feature::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sheet-accent), var(--sheet-accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sheet-feature::after { content: counter(sheet-feature, decimal-leading-zero); position: absolute; right: 24px; top: 28px; font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; line-height: 1; color: var(--sheet-heading); opacity: .16; }
.sheet-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.sheet-feature:hover::before { transform: scaleX(1); }
.sheet-feature__icon { width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; display: grid; place-items: center; color: var(--sheet-heading); background: var(--sheet-tint); }
.sheet-feature__icon .ico { width: 28px; height: 28px; }
.sheet-feature h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.25; color: var(--sheet-heading); margin: 0 0 10px; padding-right: 8px; }
.sheet-feature p { font-size: .96rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- applications: photo tiles ---------- */
.sheet-apps__grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.sheet-app { position: relative; grid-column: span 2; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--plum-900); box-shadow: 0 26px 54px -32px rgba(20, 5, 24, .75); }
.sheet-app--wide { grid-column: span 3; aspect-ratio: 16 / 9; }
.sheet-app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.sheet-app:hover img { transform: scale(1.05); }
/* the plum wash that carries the caption */
.sheet-app::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(43, 13, 46, 0) 36%, rgba(43, 13, 46, .58) 62%, rgba(43, 13, 46, .94) 100%); }
.sheet-app figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 24px 22px; }
.sheet-app h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.25; color: #fff; margin: 0 0 6px; text-wrap: balance; }
.sheet-app p { font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .84); margin: 0; max-width: 50ch; }

/* ---------- description: text, models, chart ---------- */
.sheet-about .prose { max-width: none; }
.sheet-about .prose > p { font-size: 1.05rem; }
.sheet-about__single { max-width: 820px; }
.sheet-models { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sheet-models li { padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.sheet-models__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 6px; }
.sheet-models b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .01em; color: var(--sheet-heading); }
.sheet-models__tag { padding: 4px 10px; border-radius: 999px; background: var(--sheet-tint); color: var(--sheet-heading); font-family: var(--font-display); font-weight: 500; font-size: .76rem; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; }
.sheet-models p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
/* line chart: text labels over a stretched SVG line */
.sheet-chart { margin: 0; }
.sheet-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-chart figcaption h3 { margin: 0; }
.sheet-chart__unit { font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.sheet-chart__plot { position: relative; height: 270px; margin: 6px 0 2px; }
.sheet-chart__area { position: absolute; inset: 40px 0 40px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.sheet-chart__area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sheet-chart__area polygon { fill: var(--sheet-chart); opacity: .07; }
.sheet-chart__area polyline { fill: none; stroke: var(--sheet-chart); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sheet-chart__points { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
/* each point is a zero-width column at its x: the dot and the value sit at y, the label under the axis */
.sheet-chart__points li { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; }
.sheet-chart__points li::before { content: ""; position: absolute; left: -5.5px; top: calc(var(--y) - 5.5px); width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2.5px solid var(--sheet-chart); }
.sheet-chart__points b { position: absolute; left: 0; top: var(--y); transform: translate(7px, calc(-100% - 5px)); font-family: var(--font-display); font-weight: 600; font-size: .86rem; line-height: 1; color: var(--sheet-heading); white-space: nowrap; }
.sheet-chart__points span { position: absolute; left: 0; top: calc(100% + 14px); transform: translateX(-50%); font-family: var(--font-display); font-size: .72rem; line-height: 1; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.sheet-chart .sheet-chart__note { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .sheet-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .sheet-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-app, .sheet-app--wide { grid-column: span 3; aspect-ratio: 4 / 3; }
  /* an odd tile left on its own row takes the whole width */
  .sheet-app:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (max-width: 900px) {
  .sheet-hero .page-hero__media { min-height: 240px; }
  .sheet-hero .page-hero__media img { max-height: 220px; }
  .sheet-hero .page-hero__media .sheet-hero__alt { max-height: 118px; right: 8%; }
}
@media (max-width: 640px) {
  .sheet-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .sheet-figure { padding-top: 20px; }
  .sheet-figure dd { font-size: 1.55rem; }
  .sheet-features__grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-feature { padding: 26px 22px 24px; }
  .sheet-apps__grid { gap: 14px; }
  .sheet-app, .sheet-app--wide, .sheet-app:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
  .sheet-app figcaption { padding: 0 20px 20px; }
  .sheet-chart__plot { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-feature, .sheet-feature::before, .sheet-app img, .sheet-hero__file .ico { transition: none; }
  .sheet-app:hover img, .sheet-feature:hover { transform: none; }
}
