/* Aluprofile hero film, ported from aluprofile.confbuild.com
   (website-aluprofile-hugo: static/css/styles.css + static/js/alu-hero-film.js).
   Shell: layouts/partials/film-aluprofile.html. Every rule is scoped under
   .cbf-alu and every class carries the af- prefix, so nothing leaks into the
   main site and the main site's generic class names never match the film.
   Layout follows the width of the slot (container query), not the viewport:
   from 580 px the browser mock shows the configurator panel and the cut list
   and enquiry overlap below it; narrower it stacks like the subdomain's phone
   layout. Palette: anodised aluminium greys + graphite, light sky blue accent. */

@font-face {
  font-family: "CBF Alu Manrope";
  src: url('/films/aluprofile/fonts/manrope-latin-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "CBF Alu Plex";
  src: url('/films/aluprofile/fonts/ibm-plex-sans-latin-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

.cbf-alu {
  --af-white: #ffffff;
  --af-paper-2: #eceeeb;
  --af-ink: #131619;
  --af-ink-2: #2b3137;
  --af-muted: #5f666e;
  --af-muted-2: #8a9199;
  --af-line: #dde0e3;
  --af-line-strong: #c3c8cd;
  --af-alu-1: #eef0f2;
  --af-alu-2: #cfd4d9;
  --af-alu-3: #a3abb3;
  --af-signal: #8fd0f6;
  --af-signal-deep: #62bcf0;
  --af-signal-soft: #e3f3fd;
  --af-signal-mark: #bfe5fb;
  --af-shadow: 0 1px 2px rgba(19,22,25,.06), 0 18px 48px rgba(19,22,25,.10);
  --af-shadow-lg: 0 2px 4px rgba(19,22,25,.06), 0 40px 90px rgba(19,22,25,.18);
  --af-display: "CBF Alu Manrope", "Avenir Next", "Segoe UI Variable Display", system-ui, sans-serif;
  --af-body: "CBF Alu Plex", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --af-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  container: cbf-alu / inline-size;
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color-scheme: light;
  color: var(--af-ink);
  font: 400 17px/1.6 var(--af-body);
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* local reset: the main site resets margin/padding globally, the subdomain
   also reset lists, figures and images */
.cbf-alu *, .cbf-alu *::before, .cbf-alu *::after { box-sizing: border-box; }
.cbf-alu p, .cbf-alu figure, .cbf-alu ul, .cbf-alu li, .cbf-alu table { margin: 0; }
.cbf-alu ul { padding: 0; list-style: none; }
.cbf-alu p { text-wrap: pretty; }
.cbf-alu img, .cbf-alu svg { max-width: 100%; }
.cbf-alu .af-icon { width: 1em; height: 1em; flex: 0 0 auto; }

/* film root: the cut list and the enquiry hang below the browser mock. The
   bottom padding reserves their full height (subdomain: 268 px, +10 px so the
   tallest cut list stays inside the slot); the cards grow inside it, so the
   film never changes height while the rows fold in and out. */
.cbf-alu .af-film { position: relative; margin: 0; padding: 0 0 278px 0; }

/* browser mock */
.cbf-alu .af-mock { position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--af-line-strong); border-radius: 12px; background: var(--af-white); box-shadow: var(--af-shadow-lg); }
.cbf-alu .af-mock-bar { height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 7px; background: #1c2024; }
.cbf-alu .af-mock-bar i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #474e55; }
.cbf-alu .af-mock-bar i:first-child { background: #ef6b5b; }
.cbf-alu .af-mock-bar i:nth-child(2) { background: #f2bd4b; }
.cbf-alu .af-mock-bar i:nth-child(3) { background: #5cc06c; }
.cbf-alu .af-mock-bar span { margin-left: 12px; padding: 4px 12px; min-width: 0; overflow: hidden; border-radius: 999px; background: #2b3137; color: #c3c9cf; font: 500 11px var(--af-mono); white-space: nowrap; text-overflow: ellipsis; }
.cbf-alu .af-mock-site { height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--af-line); }
.cbf-alu .af-mock-logo { display: inline-flex; align-items: center; gap: 8px; font: 800 13px var(--af-display); letter-spacing: -.02em; white-space: nowrap; }
.cbf-alu .af-mock-logo i { width: 20px; height: 20px; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--af-alu-2) 0 4px, var(--af-alu-1) 4px 8px); border: 1px solid var(--af-alu-3); }
.cbf-alu .af-mock-nav { display: flex; gap: 4px; }
.cbf-alu .af-mock-nav em { padding: 5px 10px; border-radius: 999px; color: var(--af-muted); font: 600 11px var(--af-body); font-style: normal; white-space: nowrap; }
.cbf-alu .af-mock-nav em.active { background: var(--af-ink); color: var(--af-white); }
.cbf-alu .af-mock-body { display: grid; grid-template-columns: minmax(0, 1fr) 212px; }
.cbf-alu .af-mock-stage { position: relative; min-height: 320px; overflow: hidden; background: #fff; }
.cbf-alu .af-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cbf-alu .af-fallback { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.cbf-alu .af-mock-variant { position: absolute; z-index: 1; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); overflow: hidden; padding: 6px 10px; border-radius: 999px; background: rgba(19,22,25,.86); color: var(--af-white); font: 500 11px var(--af-mono); white-space: nowrap; text-overflow: ellipsis; }
.cbf-alu .af-mock-variant b { color: var(--af-signal); font-weight: 600; font-size: 11px; text-transform: none; letter-spacing: 0; }

/* configurator panel */
.cbf-alu .af-mock-panel { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 7px; border-left: 1px solid var(--af-line); background: #fafbfa; font-size: 11px; }
.cbf-alu .af-mock-panel > * { opacity: calc(1 - var(--switch, 0) * .85); }
.cbf-alu .af-mock-product { font: 800 13px/1.25 var(--af-display); letter-spacing: -.01em; }
.cbf-alu .af-mock-slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding-top: 2px; }
.cbf-alu .af-mock-slider span { color: var(--af-muted); }
.cbf-alu .af-mock-slider b { padding: 1px 4px; margin-right: -4px; border-radius: 3px; font: 600 11px var(--af-mono); }
.cbf-alu .af-mock-slider.is-active b { background: var(--af-signal-mark); }
.cbf-alu .af-mock-slider i { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 4px; background: var(--af-alu-2); }
.cbf-alu .af-mock-slider em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--af-ink); transition: none; }
.cbf-alu .af-mock-slider em::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--af-white); border: 2px solid var(--af-ink); transform: translateY(-50%); }
.cbf-alu .af-mock-label { margin-top: 4px; color: var(--af-muted-2); font: 600 9px var(--af-mono); letter-spacing: .1em; text-transform: uppercase; }
.cbf-alu .af-mock-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cbf-alu .af-mock-chips span { padding: 4px 7px; border: 1px solid var(--af-line-strong); border-radius: 4px; color: var(--af-muted); font-size: 10px; }
.cbf-alu .af-mock-chips .active { border-color: var(--af-ink); color: var(--af-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--af-ink); }
.cbf-alu .af-mock-options { display: grid; gap: 5px; }
.cbf-alu .af-mock-options li { display: flex; align-items: center; gap: 7px; color: var(--af-ink-2); }
.cbf-alu .af-mock-options i { flex: 0 0 auto; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 3px; background: var(--af-white); box-shadow: inset 0 0 0 1.5px var(--af-line-strong); }
.cbf-alu .af-mock-options .af-icon { width: 11px; height: 11px; stroke-width: 3; opacity: 0; }
.cbf-alu .af-mock-options .is-on i { background: var(--af-signal); box-shadow: none; }
.cbf-alu .af-mock-options .is-on .af-icon { opacity: 1; }
.cbf-alu .af-mock-cta { margin-top: auto; padding: 9px 0; text-align: center; border-radius: 5px; background: var(--af-ink); color: var(--af-white); font: 700 11px var(--af-display); transition: transform .12s ease; }
.cbf-alu .af-mock-cta.is-pressed { transform: scale(.96); }
.cbf-alu .af-mock-cta.is-sent { background: var(--af-signal); color: var(--af-ink); }

/* cut list */
.cbf-alu .af-cutcard { position: absolute; z-index: 2; left: 0; top: calc(100% - 294px); bottom: auto; width: min(340px, 58%); overflow: hidden; border: 1px solid var(--af-line-strong); border-radius: 10px; background: var(--af-white); box-shadow: var(--af-shadow); }
.cbf-alu .af-cutcard figcaption { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--af-ink); color: var(--af-white); }
.cbf-alu .af-cutcard figcaption span { display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--af-display); white-space: nowrap; }
.cbf-alu .af-cutcard figcaption .af-icon { width: 18px; height: 18px; color: var(--af-signal); }
.cbf-alu .af-cutcard figcaption small { color: #b9c0c6; font: 500 10px var(--af-mono); letter-spacing: .04em; text-align: right; }
.cbf-alu .af-cutcard table { width: 100%; border-collapse: collapse; border-spacing: 0; font: 500 11.5px/1.3 var(--af-mono); }
.cbf-alu .af-cutcard th { padding: 8px 14px 6px; text-align: left; color: var(--af-muted-2); font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 0; border-bottom: 1px solid var(--af-line); background: none; }
.cbf-alu .af-cutcard td { padding: 7px 14px; border: 0; border-bottom: 1px solid var(--af-alu-1); color: var(--af-ink); white-space: nowrap; background: none; }
.cbf-alu .af-cutcard tr:last-child td { border-bottom: 0; }
.cbf-alu .af-cutcard td:nth-child(3), .cbf-alu .af-cutcard th:nth-child(3), .cbf-alu .af-cutcard td:nth-child(4), .cbf-alu .af-cutcard th:nth-child(4) { text-align: right; }
.cbf-alu .af-cutcard td:nth-child(3) { font-weight: 700; }
.cbf-alu .af-cutcard tbody tr { opacity: var(--op, 0); transition: background-color .25s ease; }
.cbf-alu .af-cutcard tbody td { padding-top: calc(var(--in, 0) * 6px); padding-bottom: calc(var(--in, 0) * 6px); border-bottom-color: rgba(238,240,242,var(--in, 0)); }
.cbf-alu .af-cutcard tbody td > span { display: block; height: calc(var(--in, 0) * 15px); overflow: hidden; }
.cbf-alu .af-cutcard tr.is-hot td { background: var(--af-signal-soft); }
.cbf-alu .af-cutcard tr.is-hot td:first-child { box-shadow: inset 3px 0 0 var(--af-signal-deep); }
.cbf-alu .af-cut-bars { padding: 8px 14px 0; display: grid; gap: 4px; }
.cbf-alu .af-cut-bars:empty { display: none; }
.cbf-alu .af-cut-bars i { display: flex; gap: 1px; height: 6px; overflow: hidden; border-radius: 1px; background: var(--af-alu-1); box-shadow: inset 0 0 0 1px var(--af-line); }
.cbf-alu .af-cut-bars b { flex: 0 0 auto; height: 100%; background: var(--af-alu-3); transition: background-color .25s ease; }
.cbf-alu .af-cut-bars b.is-hot { background: var(--af-signal-deep); }
.cbf-alu .af-cutcard-foot { margin-top: 8px; min-height: 31px; padding: 8px 14px 10px; border-top: 1px solid var(--af-line); background: var(--af-signal-soft); color: var(--af-ink-2); font: 600 11px var(--af-mono); }

/* enquiry in the vendor's inbox */
.cbf-alu .af-inquiry { position: absolute; z-index: 3; right: 0; top: calc(100% - 262px); width: min(324px, 52%); padding: 14px 14px 15px; border: 1px solid var(--af-line-strong); border-radius: 10px; background: var(--af-white); box-shadow: var(--af-shadow-lg); opacity: var(--in, 0); transform: translateY(calc((1 - var(--in, 0)) * 18px)); pointer-events: none; }
.cbf-alu .af-inq-head { display: flex; align-items: center; gap: 8px; font: 700 13px var(--af-display); }
.cbf-alu .af-inq-head .af-icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--af-ink); color: var(--af-signal); }
.cbf-alu .af-inq-head small { margin-left: auto; color: var(--af-muted-2); font: 500 10px var(--af-mono); white-space: nowrap; }
.cbf-alu .af-inquiry-from { margin-top: 10px; color: var(--af-muted); font: 500 11px var(--af-mono); }
.cbf-alu .af-inquiry strong { display: block; margin-top: 2px; font: 700 13.5px/1.3 var(--af-display); letter-spacing: -.01em; }
.cbf-alu .af-inquiry-dims { margin-top: 2px; color: var(--af-ink); font: 600 11.5px var(--af-mono); }
.cbf-alu .af-inquiry-meta { margin-top: 2px; color: var(--af-ink-2); font-size: 12px; line-height: 1.4; }
.cbf-alu .af-inquiry-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 5px; background: var(--af-signal); color: var(--af-ink); font: 700 11px var(--af-display); }
.cbf-alu .af-inquiry-link .af-icon { width: 13px; height: 13px; }
.cbf-alu .af-inquiry-docs-label { margin-top: 12px; display: block; color: var(--af-muted-2); font: 600 9px var(--af-mono); letter-spacing: .1em; text-transform: uppercase; }
.cbf-alu .af-inquiry-docs { margin-top: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.cbf-alu .af-inquiry-docs li { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 4px 6px; border: 1px solid var(--af-line); border-radius: 4px; color: var(--af-muted-2); font: 600 10px var(--af-body); transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.cbf-alu .af-inquiry-docs .af-icon { width: 12px; height: 12px; }
.cbf-alu .af-inquiry-docs li.is-on { border-color: var(--af-ink); color: var(--af-ink); background: var(--af-signal-soft); }

/* pointer */
.cbf-alu .af-pointer { position: absolute; z-index: 6; left: -3px; top: -2px; width: 22px; height: 22px; pointer-events: none; will-change: transform; }
.cbf-alu .af-pointer svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(19,22,25,.28)); transform-origin: 3px 2px; transition: transform .1s ease; }
.cbf-alu .af-pointer.is-down svg { transform: scale(.86); }
.cbf-alu .af-pointer::before { content: ""; position: absolute; left: -11px; top: -12px; width: 28px; height: 28px; border: 2px solid var(--af-signal-deep); border-radius: 50%; opacity: calc((1 - var(--ring, 1)) * .9); transform: scale(calc(.3 + var(--ring, 1) * 1.1)); }
.cbf-alu .af-pointer.is-hidden { visibility: hidden; }

/* narrow slot (phones, subdomain layout below 700 px): stage only, the cut
   list follows below (overlapping the stage by 24 px), the enquiry lands on
   the stage. The cut list stays absolute in a reserved 266 px band (tallest
   list 290 px) so the page below does not jump with every loop. */
@container cbf-alu (max-width: 579px) {
  .cbf-alu .af-film { padding-bottom: 266px; }
  .cbf-alu .af-mock-nav { display: none; }
  .cbf-alu .af-mock-body { grid-template-columns: 1fr; }
  .cbf-alu .af-mock-panel { display: none; }
  .cbf-alu .af-mock-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .cbf-alu .af-cutcard { left: 12px; right: 12px; top: calc(100% - 290px); width: auto; }
  .cbf-alu .af-cutcard td { padding-left: 10px; padding-right: 10px; }
  .cbf-alu .af-cutcard th { padding: 7px 10px 5px; }
  .cbf-alu .af-inquiry { top: 64px; right: 12px; width: min(290px, calc(100% - 24px)); }
  .cbf-alu .af-pointer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cbf-alu *, .cbf-alu *::before, .cbf-alu *::after { transition: none !important; }
}
