/* The photographic composition occupies its own full-width row outside .wrap. */
.film-scene {
  position: relative;
  isolation: isolate;
  container: film / inline-size;
  overflow: clip;
  background: #202b36;
  color: #111327;
  --film-photo: url("/film-storefront.webp");
  --film-art: url("/film-reference-clean.webp");
  --film-accent: linear-gradient(103deg, #bd20fb 0%, #8830ff 30%, #4f38ff 59%, #008bfa 87%, #00adf6 100%);
}
.film-scene::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  background: var(--film-photo) center / cover;
  filter: blur(20px) saturate(1.16);
}
.film-stage {
  position: relative;
  container-type: inline-size;
  width: min(100%, 1672px, max(1120px, calc((100svh - 24px) * 1.7768)));
  margin-inline: auto;
}
.film-illustration { position: relative; background: var(--film-photo) center / cover; }
.film-reference { display: block; width: 100%; height: auto; }
.film-brand {
  position: absolute;
  z-index: 1;
  top: 2.23%;
  left: 2.75%;
  width: 17.58%;
  height: auto;
}
/* The functional glass panel covers its illustrated counterpart at the same proportions. */
.film-word-fix { display: none; }
.film-nowrap { white-space: nowrap; }
.film-intro {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
}
.film-card {
  position: absolute;
  inset: 10.7% 2.57% 10.33% 56.13%;
  padding: 2.5cqw 2.55cqw 2.36cqw;
  border: 1.5px solid rgba(255,255,255,.92);
  border-radius: 2.66cqw;
  color: #111327;
  color-scheme: light;
  background:
    radial-gradient(ellipse at 6% 1%, #c7d3e9dc, transparent 45%),
    radial-gradient(ellipse at 69% -2%, #f3d9d3d6, transparent 48%),
    radial-gradient(ellipse at 0% 67%, #eae3ffca, transparent 65%),
    radial-gradient(ellipse at 95% 108%, #d2e9ffd1, transparent 45%),
    linear-gradient(120deg, #dedcf1ed 4%, #f1eaf2e8 49%, #d2cbd9e8 100%);
  backdrop-filter: blur(32px) saturate(75%);
  -webkit-backdrop-filter: blur(32px) saturate(75%);
  box-shadow: inset 0 1px 3px #ffffffb0, inset -5px -4px 24px #ffffff35, 0 8px 22px #15102232;
}
#film-form, .film-result {
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; gap: 0;
  background: transparent; color: inherit; font: 700 clamp(.82rem, 1.14cqw, 1.22rem)/1.26 Arial, sans-serif;
}
.film-heading { display: flex; align-items: center; gap: 1.35cqw; }
.film-calculator-icon {
  flex: none; width: 3.98cqw; aspect-ratio: 1;
  background: var(--film-art) 94.44% 16.34% / 2533.33% 1425.76% no-repeat;
  border-radius: 23%;
}
.film-card h3 {
  color: #111327; font: 800 clamp(1rem,1.86cqw,2rem)/1.14 Arial,sans-serif;
  letter-spacing: -.045em; margin: 0;
}
.film-heading p {
  color: #374059; font: 400 clamp(.78rem,1.09cqw,1.18rem)/1.32 Arial,sans-serif;
  margin: .4cqw 0 0;
}
.film-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.32cqw; }
.film-dimensions label {
  display: grid; gap: .48cqw; min-width: 0; padding: .83cqw .85cqw .66cqw;
  color: #13172b; background: rgba(255,255,255,.63);
  border-radius: 1cqw; font-size: clamp(.78rem, 1.05cqw, 1.15rem);
}
.film-number {
  display: flex; align-items: center; gap: .35em; min-height: 2.86cqw;
  background: #ffffffed; border-radius: .65cqw; padding-inline: .85cqw;
}
.film-number > span { color: #293348; font-weight: 400; font-size: .94em; }
.film-number input {
  display: block; width: 100%; min-width: 0; min-height: 2.65cqw; margin: 0; padding: 0;
  border: 0; border-radius: 4px; box-shadow: none; background: transparent; color: #111427;
  direction: ltr; text-align: right; font: 700 clamp(1rem,1.4cqw,1.5rem)/1.1 Arial,sans-serif;
  appearance: textfield; -moz-appearance: textfield;
}
.film-number input::-webkit-inner-spin-button, .film-number input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.film-distance-heading,.film-limits { display: flex; align-items: center; justify-content: space-between; }
.film-distance-value {
  display: inline-flex; align-items: baseline; gap: .3em; padding: .36cqw .97cqw;
  border-radius: 2em; background: #ffffffb5; font-weight: 400;
}
#film-meters { font: 750 clamp(1rem,1.45cqw,1.55rem)/1.32 Arial,sans-serif; font-variant-numeric: tabular-nums; }
#film-distance {
  --film-progress: 21.4286%;
  --film-track: linear-gradient(to right,#c11af9 0%,#795aff var(--film-progress),#afaddb var(--film-progress),#979ab7 100%);
  display: block; direction: ltr; width: 100%; height: max(2.4cqw,30px); min-width: 0;
  margin: .35cqw 0 .1cqw; padding: 0; border: 0; box-shadow: none; background: transparent;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
#film-distance::-webkit-slider-runnable-track { height: max(.52cqw,6px); border-radius: 20px; background: var(--film-track); }
#film-distance::-moz-range-track { height: max(.52cqw,6px); border-radius: 20px; background: var(--film-track); }
#film-distance::-webkit-slider-thumb {
  appearance: none; width: max(1.7cqw,18px); height: max(1.7cqw,18px);
  margin-top: min(-.59cqw,-6px); border: max(.29cqw,3px) solid #6840fa; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 10px #7851f862;
}
#film-distance::-moz-range-thumb {
  width: max(1.15cqw,12px); height: max(1.15cqw,12px); border: max(.29cqw,3px) solid #6840fa;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 10px #7851f862;
}
.film-limits { font-size: .89em; font-weight: 400; color: #364056; }
.film-content { margin: 0; padding: 0; border: 0; min-width: 0; }
.film-content legend { color: inherit; margin: 0; padding: 0 0 .66cqw; font-weight: 700; }
.film-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .78cqw; }
.film-options label { position: relative; min-width: 0; display: block; }
.film-options input { position: absolute; inset: 0; z-index: 1; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.film-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .62cqw;
  min-height: 7.55cqw; border-radius: 1.04cqw; border: 1.5px solid transparent;
  background: rgba(255,255,255,.66); color: #161a30; text-align: center;
  font-size: clamp(.74rem,1.06cqw,1.15rem); line-height: 1.25;
}
.film-aa { font-size: 1.9cqw; font-weight: 500; color: #27304b; line-height: 1; }
.film-choice-icon { width: 2.25cqw; height: 2.25cqw; fill: none; stroke: #29314d; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.film-options input:checked + .film-option {
  color: #0e1430; border-color: transparent;
  background: linear-gradient(145deg,#d8eafa,#e4e4fb 65%,#eff0fc) padding-box,
    linear-gradient(155deg,#00b5ff,#6161fd 60%,#ad32fc) border-box;
  box-shadow: inset 0 0 0 1px #ffffffab;
}
.film-options input:checked + .film-option::after {
  content: "✓" / ""; position: absolute; top: -.08em; right: .12em;
  display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 100%;
  color: white; font: 700 1em/1 Arial,sans-serif; background: linear-gradient(135deg,#4c51ff,#008ef8); box-shadow: 0 1px 4px #326bee4d;
}
.film-options input:checked + .film-option .film-choice-icon { stroke: #4c42ff; }
.film-options input:focus-visible + .film-option { outline: 3px solid #353496; outline-offset: 2px; }
#led-film .film-action {
  display: flex; align-items: center; justify-content: center; gap: .45em; width: 100%; min-height: 4.3cqw; padding: .48em .6em;
  border: 1.5px solid #ffffffe6; border-radius: 2em;
  background: var(--film-accent); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 18px #ffffff85; font: 700 clamp(1.05rem,1.68cqw,1.8rem)/1.2 Arial,sans-serif;
}
.film-action > svg { width: 1.16em; height: 1.16em; }
.film-action:hover { filter: brightness(1.04); }
.film-result { gap: 1em; }
.film-result h3:focus { outline: 0 !important; box-shadow: none; }
.film-pitch { display: grid; gap: .15em; color: #333754; }
.film-pitch strong { color: #4533af; font-size: clamp(2.8rem,4.8cqw,5.2rem); line-height: 1; letter-spacing: -.06em; text-align: right; }
.film-metrics { display: grid; grid-template-columns: 1fr 1.2fr; gap: .7em; }
.film-metrics > div { display: grid; align-content: start; gap: .25em; padding: .8em; border-radius: .85em; background: #ffffffab; }
.film-metrics strong { font-size: 1.25em; }
.film-result p { color: #222b41; font-weight: 400; margin: 0; }
.film-result .film-note { color: #424b62; margin-top: .5em; font-size: .94em; }
.film-result-actions { text-align: center; }
#film-edit { border: 0; background: transparent; color: #302789; font: inherit; cursor: pointer; text-decoration: underline; padding: .65em; min-height: 44px; }
/* On a desktop the approved artwork supplies the glass, printed lettering and
   ornaments. Native fields use the same coordinates as the artwork, measured
   on its 1672 × 941 canvas. Mobile, enlarged text and high contrast use the
   reflowable type and controls instead. */
@media (forced-colors: none) {
  @container film (min-width: 60rem) {
    html:where(:not([style*="font-size"]), [style*="font-size: 100%"]):not(.contrast)
    .has-artwork .film-card:has(#film-form:not([hidden])) {
      inset: 0; padding: 0; background: none; border: 0; border-radius: 0;
      box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none;

      & #film-form { position: absolute; inset: 0; width: 100%; height: 100%; }
      & .film-heading, & .film-content legend, & .film-limits, & .film-distance-heading label {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
      }
      /* Only the misspelled word is covered. Its surround is sampled from
         clear glass just below it on the same, unmodified artwork. */
      & .film-word-fix {
        position: absolute; inset: 20.21% auto auto 69.80%; width: 4.49%; height: 2.55%;
        display: grid; place-items: center; white-space: nowrap; color: #2c344d;
        font: 500 1.12cqw/1 Arial, sans-serif;
        background: var(--film-art) 73.07% 23.73% / 2229.33% 3920.83% no-repeat;
      }
      & .film-dimensions {
        position: absolute; inset: 27.1% auto auto 58.91%; width: 35.73%; height: 11.3%; pointer-events: auto;
      }
      & .film-dimensions label {
        display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
        padding: 0 .78cqw .65cqw; background: transparent; color: transparent;
      }
      & .film-number { background: transparent; height: 2.88cqw; padding-inline: .63cqw; }
      & .film-number input {
        flex: 1; width: 0; min-height: 2.28cqw; border-radius: .32cqw; background: #fefdfd;
        font-size: 1.42cqw; font-weight: 800;
      }
      & .film-number > span { opacity: 0; }
      & .film-distance { position: absolute; inset: 41.43% auto auto 58.9%; width: 35.57%; }
      & .film-distance-value {
        position: absolute; top: 0; left: 0; width: 7.29cqw; height: 2.73cqw; padding: 0;
        align-items: center; justify-content: center; background: #f5f1f8; border-radius: 4cqw;
      }
      & #film-distance {
        position: absolute; left: 0; top: 2.90cqw; height: 2.68cqw; margin: 0; pointer-events: auto;
        /* Sample the clear glass directly below the scale so just one live thumb is visible. */
        background: var(--film-art) 91.48% 54.62% / 281.16% 7841.67% no-repeat;
      }
      & .film-content { position: absolute; inset: 59.85% auto auto 58.92%; width: 35.7%; height: 13.51%; }
      & .film-options, & .film-option { height: 100%; min-height: 0; }
      & .film-options { pointer-events: auto; }
      & .film-options:has(input[value="logos"]:checked) .film-option { opacity: 0; }
      & .film-options label:has(input:focus-visible) { outline: 3px solid #343398; outline-offset: 3px; border-radius: 1.04cqw; }
      & .film-options:not(:has(input[value="logos"]:checked)) {
        background: var(--film-art) 91.62% 55.1% / 280% 7842% no-repeat;
        box-shadow: 0 -.22cqw .14cqw #e8e2ef;
      }
      & #film-form .film-action {
        position: absolute; inset: 77.78% auto auto 58.43%; width: 36.72%; height: 7.66%;
        min-height: 0; padding: 0; background: transparent; color: transparent; box-shadow: none; border: 0;
        pointer-events: auto;
      }
      & #film-form .film-action:hover { background: #ffffff12; }
    }
  }
}
@media(min-width:1673px) {
  .film-illustration { mask-image: linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent); }
}
/* At phone widths the approved illustration leads the section. The controls
   then reflow below the flower at touch size instead of scaling down the form. */
@container film (max-width:59.99rem) {
  .film-stage { width: 100%; padding-bottom: 1.2rem; }
  .film-illustration { position: absolute; inset: 0; overflow: hidden; background: var(--film-photo) center / cover; z-index: 0; }
  .film-illustration::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#19303e00 28%,#18212c33 65%,#17233077); backdrop-filter: blur(12px); }
  .film-reference { display: none; }
  .film-brand { top: 2.24cqw; left: 4.9%; width: 31.34%; }
  .film-intro {
    isolation: isolate; clip-path: none; position: relative; width: 100%; height: auto;
    overflow: hidden; padding: min(24vw,10.5rem) max(5%,1.1rem) 1.45rem; text-align: left; color: #fff;
    background: linear-gradient(90deg,#122134cf 0%,#152536a8 44%,transparent 77%), var(--film-photo) 15% top / auto 100% no-repeat;
  }
  .film-intro::after { content: ""; position: absolute; z-index: -1; inset: 74% 0 0; background: linear-gradient(transparent,#1a2535b5); }
  .film-intro::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: var(--film-art) left top / 178.25% auto no-repeat;
    mask-image: linear-gradient(180deg,#000 0 min(20vw,8.2rem),transparent min(24vw,10rem)),
      linear-gradient(90deg,transparent 63%,#000 69%);
  }
  .film-kicker {
    display: block; width: fit-content; margin-right: auto; padding: .25em .78em;
    border: 1px solid #d6e5ff; border-radius: 2em; color: white;
    background: #071321ba; font-weight: 700; font-size: .88rem;
  }
  #led-film .film-intro h2 { width: fit-content; margin: .55rem auto .65rem 0; color: #fff; font: 800 clamp(2rem,6.8vw,3.35rem)/1.07 Arial,sans-serif; letter-spacing: -.045em; text-shadow: 0 2px 10px #03112066; }
  .film-intro h2::after { content: ""; display: block; height: 2px; width: 44%; background: linear-gradient(90deg,#e728ff,#00c2ff); margin: .5rem auto 0; }
  #led-film .film-intro p { width: min(71%,28rem); margin: 0 auto 1rem 0; color: white; font-size: 1rem; line-height: 1.4; text-shadow: 0 1px 5px #071525; }
  .film-benefits { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: .7rem .2rem; margin: 0; background: #0d1d2c96; border-radius: 12px; }
  .film-benefits li { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 0 .3rem; font-size: .87rem; font-weight: 700; text-align: center; line-height: 1.22; }
  .film-benefits li + li { border-inline-start: 1px solid #ffffff45; }
  .film-benefits .film-symbol { height: 29px; width: 33px; display: grid; place-items: center; font: 700 1rem/1 Arial,sans-serif; }
  .film-benefits .film-symbol { width: 38px; height: 34px; border-radius: 7px; background-image: var(--film-art); background-size: 2259.46% 1383.82%; }
  .sun-symbol { background-position: 27.60% 67.13%; }
  .eye-symbol { background-position: 16.52% 67.13%; }
  .hd-symbol { background-position: 5.88% 67.13%; }
  .film-card { position: relative; inset: auto; width: min(calc(100% - 1.4rem),40rem); margin: -.25rem auto 0; border-radius: 25px; padding: clamp(1.1rem,4.8vw,2rem); }
  #film-form,.film-result { height: auto; gap: clamp(1.15rem,4.8vw,1.8rem); font-size: 1rem; }
  .film-heading { gap: .72rem; }
  .film-calculator-icon { width: 42px; }
  .film-card h3 { font-size: clamp(1.2rem,4.6vw,1.7rem); line-height: 1.14; }
  .film-heading p { font-size: .95rem; margin-top: .35rem; }
  .film-dimensions { gap: .65rem; }
  .film-dimensions label { font-size: .92rem; padding: .65rem; gap: .35rem; border-radius: 12px; }
  .film-number { min-height: 44px; padding-inline: .5rem; border-radius: 8px; }
  .film-number input { font-size: 1.14rem; min-height: 44px; }
  .film-distance-value { padding: .32em .72em; } #film-meters { font-size: 1.15rem; }
  #film-distance { height: 38px; margin: 0; }
  #film-distance::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; border-width: 4px; }
  .film-content legend { padding-bottom: .45rem; }
  .film-options { gap: .45rem; }
  .film-option { min-height: 90px; border-radius: 12px; gap: .5rem; padding: .5rem .18rem; font-size: .9rem; }
  .film-aa { font-size: 1.65rem; }
  .film-choice-icon { width: 27px; height: 27px; }
  .film-options input:checked + .film-option::after { width: 1.32rem; height: 1.32rem; top: .15rem; right: .15rem; font-size: .8rem; }
  #led-film .film-action { min-height: 48px; font-size: 1.16rem; }
}
@container film (min-width:37rem) and (max-width:59.99rem) {
  .film-intro { padding-left: 7%; padding-block-start: 12rem; }
  .film-benefits { max-width: 32rem; margin-right: auto; }
}
@media(forced-colors:active) {
  .film-options input:checked + .film-option { border: 3px solid Highlight; }
  .film-number,.film-dimensions label,.film-card,.film-action { border: 1px solid CanvasText; }
}

/* Retain the light calculator surface when the site's contrast preference is active. */
html.contrast #film-form, html.contrast .film-result { background: transparent; color: #080c1a; }
html.contrast .film-card :is(h3,p,legend,.film-limits,.film-pitch strong,.film-metrics strong,.film-metrics small,#film-edit) { color: #0d1428; }
html.contrast .film-card .film-option, html.contrast .film-dimensions label { border: 1px solid #697387; }
html.contrast .film-options input:checked + .film-option { border: 2px solid #4132cb; }
html.contrast .film-card .film-action { color: white; text-decoration: none; }


/* The additional guidance belongs only to the result view. */
.film-result .film-metrics small { color: #41485c; }
.film-result .film-advice { display: grid; gap: .45em; font-size: .96em; line-height: 1.38; }
.film-result .film-advice .film-note { margin: 0; font-size: .85em; }
.film-result[data-mode="consult"] .film-pitch strong { font-size: clamp(1.5rem, 2.6cqw, 2.8rem); }
.film-result[data-mode="consult"] #film-resolution { font-size: .88em; }
@container film (min-width: 60rem) {
  .film-card:has(.film-result:not([hidden])) { overflow-y: auto; }
  .film-result:not([hidden]) { height: auto; min-height: 100%; gap: .63em; }
}
