:root {
  --sc-canvas: #020812;
  --sc-surface: #101722;
  --sc-ink: #f8f9fb;
  --sc-ink-soft: #aeb6c2;
  --sc-accent: #3d63f3;
  --sc-accent-ink: #fff;
  --sc-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sc-font-text: "DM Sans", Arial, sans-serif;
}

.prodeck-page { --deck-display: "Barlow Condensed", "Arial Narrow", sans-serif; }
.prodeck-page h1, .prodeck-page h2 { font-family: var(--deck-display); font-weight: 600; text-transform: uppercase; letter-spacing: -.025em; line-height: 1; text-wrap: balance; }
.prodeck-page h2 { margin: 0 0 24px; font-size: clamp(2.8rem, 4.6vw, 4.6rem); }
.prodeck-page p { text-wrap: pretty; }
.prodeck-page figure { margin: 0; }
.prodeck-page img { width: 100%; height: auto; object-fit: contain; }
.prodeck-page .button { border-radius: 4px; gap: 28px; }
.prodeck-page a:focus-visible, .prodeck-page button:focus-visible { outline: 3px solid var(--signal); outline-offset: 5px; }
.prodeck-page [id] { scroll-margin-top: calc(var(--header-height) + 24px); }
.prodeck-page figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 16px; font-size: .82rem; }
.prodeck-page figcaption span { color: var(--muted); }
.deck-section { padding-block: clamp(64px, 8vw, 112px); }
.deck-showcase { padding-block: clamp(40px, 5vw, 80px); }
.deck-showcase-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 48px; align-items: center; }
.deck-brand-label { color: var(--signal); font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 20px; }
.deck-showcase h1 { font-size: clamp(3.2rem, 5.6vw, 5.8rem); margin: 0 0 24px; }
.deck-showcase-copy > p:not(.deck-brand-label) { color: var(--muted); margin: 0 0 32px; font-size: 1rem; line-height: 1.7; }
.deck-showcase-photo img { border-radius: 4px; }
.deck-index { border-block: 1px solid var(--line); }
.deck-index > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; }
.deck-index a { min-height: 64px; display: inline-flex; align-items: center; color: var(--muted); font-size: .88rem; transition: color 160ms ease-out; }
.deck-index a:hover { color: #fff; }
.deck-material { background: var(--workshop); }
.deck-material-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 128px); align-items: start; }
.deck-lead { max-width: 42ch; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.deck-material-spec { color: #fff; font-size: .84rem; line-height: 1.85; margin: 28px 0 0; }
.deck-facts { margin: 0; }
.deck-facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.deck-facts > div:first-child { padding-top: 0; }
.deck-facts dt { font-size: 1.05rem; margin-bottom: 6px; }
.deck-facts dd { margin: 0; color: var(--muted); font-size: .9rem; }
.deck-pattern-heading { max-width: 660px; margin-bottom: 48px; }
.deck-pattern-heading > p { color: var(--muted); max-width: 56ch; }
.deck-pattern-workbench { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.deck-pattern-preview { min-width: 0; }
.deck-pattern-preview img { height: auto; aspect-ratio: 1; object-fit: contain; padding: 0; clip-path: inset(.5% round 5%); }
.deck-pattern-preview figcaption { flex-direction: column; gap: 8px; min-height: 76px; }
.deck-pattern-preview figcaption strong { font-size: 1.15rem; font-weight: 500; }
.deck-pattern-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.deck-pattern-button { display: block; padding: 8px; min-width: 0; background: var(--workshop); border: 1px solid transparent; border-radius: 4px; cursor: pointer; transition: border-color 160ms ease-out, background 160ms ease-out; }
.deck-pattern-button img { aspect-ratio: 1; object-fit: contain; height: auto; clip-path: inset(.5% round 5%); }
.deck-pattern-button span { display: block; padding: 12px 0 4px; font-size: .8rem; white-space: nowrap; }
.deck-pattern-button[aria-pressed="true"] { border-color: var(--signal); background: var(--blueprint); }
.deck-pattern-button:hover { border-color: var(--muted); }
.deck-pattern-button:active { transform: translateY(1px); }
.deck-sample-note { color: var(--muted); font-size: .87rem; line-height: 1.7; margin: 24px 0; }
.deck-text-link { display: inline-flex; align-items: center; gap: 44px; min-height: 48px; border-bottom: 1px solid var(--signal); color: #fff; font-weight: 500; }
.deck-text-link:hover { color: var(--signal); }
.deck-selection-note { color: var(--muted); margin-top: 14px; font-size: .78rem; }
.deck-fit-section { background: var(--blueprint); }
.deck-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 128px); }
.deck-fit-steps { list-style: decimal-leading-zero; padding-left: 26px; margin: 0; }
.deck-fit-steps li { padding: 0 0 24px 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.deck-fit-steps li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.deck-fit-steps li::marker { color: var(--signal); font-size: .8rem; }
.deck-fit-steps h3 { font-family: var(--body); font-size: 1.2rem; font-weight: 500; margin: 0 0 10px; }
.deck-fit-steps p { font-size: .93rem; color: var(--muted); margin: 0; }
.deck-install-heading { margin-bottom: 40px; }
.deck-install-heading p { color: var(--muted); }
.deck-install-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.deck-install-grid figure:first-child { grid-row: span 2; }
.deck-install-grid figure:nth-child(2) { max-width: 440px; justify-self: end; }
.deck-install-grid figure:last-child { align-self: end; }
.deck-install-grid img { border-radius: 4px; }
.deck-install-grid figcaption { flex-direction: column; }
.deck-enquiry { padding-block: 64px; background: var(--workshop); border-top: 1px solid var(--line); }
.deck-enquiry-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.deck-enquiry h2 { font-size: clamp(2.8rem, 4vw, 4.2rem); margin-bottom: 16px; }
.deck-enquiry p { margin: 0; color: var(--muted); }
.deck-enquiry .button { flex-shrink: 0; }

/* Content remains readable if scripts are unavailable. */
html:not(.js) .prodeck-page [data-sc-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .prodeck-page [data-sc-in] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
  .deck-showcase-grid { gap: 28px; grid-template-columns: .85fr 1.15fr; }
  .deck-showcase h1 { font-size: clamp(2.8rem, 5.7vw, 4.2rem); }
  .deck-pattern-buttons { gap: 12px 8px; }
  .deck-pattern-button { padding: 5px; }
  .deck-pattern-button span { font-size: .73rem; }
}
@media (max-width: 680px) {
  .deck-showcase-grid, .deck-material-grid, .deck-pattern-workbench, .deck-fit-grid { grid-template-columns: 1fr; }
  .deck-showcase { padding-block: 40px; }
  .deck-showcase h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .deck-showcase-copy > p:not(.deck-brand-label) { margin-bottom: 24px; }
  .deck-index > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .deck-index a { min-height: 48px; font-size: .78rem; }
  .deck-material-grid, .deck-fit-grid { gap: 36px; }
  .deck-pattern-heading { margin-bottom: 32px; }
  .deck-pattern-workbench { gap: 24px; }
  .deck-pattern-preview img { max-width: 360px; max-height: none; margin-inline: auto; }
  .deck-pattern-buttons { gap: 12px; }
  .deck-pattern-button { padding: 7px; }
  .deck-pattern-button span { font-size: .77rem; }
  .deck-install-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .deck-install-grid figure:first-child { grid-row: auto; }
  .deck-install-grid figure:nth-child(2) { padding-top: 48px; }
  .deck-install-grid figure:last-child { grid-column: 1 / -1; }
  .deck-install-grid figcaption { font-size: .75rem; line-height: 1.55; }
  .deck-enquiry-inner { flex-direction: column; align-items: flex-start; }
}

/* Full-width marine hero, matching the About page composition. */
.deck-background-hero { position: relative; isolation: isolate; overflow: hidden; padding: 0; background: #07101b; }
.prodeck-page .deck-hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.deck-background-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,10,18,.91), rgba(4,10,18,.72) 32%, rgba(4,10,18,.18) 65%, rgba(4,10,18,.05)), linear-gradient(0deg, rgba(4,10,18,.5), transparent 45%); }
.deck-background-hero .deck-showcase-grid { display: flex; min-height: clamp(580px, 48vw, 740px); align-items: center; padding-block: 90px; }
.deck-background-hero .deck-showcase-copy { max-width: 650px; }
.deck-background-hero .deck-brand-label { color: #c6d5e8; }
.deck-background-hero h1 { font-size: clamp(4.4rem, 6.7vw, 7rem); line-height: .98; }
.deck-background-hero .deck-showcase-copy > p:not(.deck-brand-label) { color: #e0e5eb; font-size: 1.05rem; }
@media (max-width: 680px) {
  .deck-background-hero .deck-showcase-grid { min-height: 690px; align-items: flex-end; padding-block: 64px 48px; }
  .prodeck-page .deck-hero-background { object-position: 57% center; }
  .deck-background-hero::before { background: linear-gradient(0deg, rgba(4,10,18,.96), rgba(4,10,18,.76) 40%, rgba(4,10,18,.08) 100%); }
  .deck-background-hero h1 { font-size: clamp(3.3rem, 13.8vw, 5.5rem); }
}

/* Centre the selected-finish enquiry beneath the samples. */
.deck-pattern-options .deck-text-link { display: flex; width: fit-content; margin-inline: auto; justify-content: center; }
.deck-pattern-options .deck-text-link svg { flex: 0 0 20px; }
.deck-selection-note { text-align: center; }

/* Full collection: equal image frames keep the mixed scene formats orderly. */
.deck-install-grid.deck-scene-gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.deck-scene-gallery figure:nth-child(n) { grid-row: auto; grid-column: span 6; max-width: none; width: 100%; padding-top: 0; justify-self: stretch; align-self: start; }
.deck-scene-gallery figure:first-child { grid-column: 1 / -1; }
.deck-scene-gallery figure:nth-child(n+4):nth-child(-n+6), .deck-scene-gallery figure:nth-child(n+9):nth-child(-n+11) { grid-column: span 4; }
.prodeck-page .deck-scene-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--workshop); }
.prodeck-page .deck-scene-gallery figure:first-child img { aspect-ratio: 21 / 10; object-fit: cover; }
.deck-scene-gallery figcaption { padding-top: 14px; }
.deck-scene-open { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 5px; overflow: hidden; background: var(--workshop); color: white; cursor: zoom-in; }
.deck-scene-expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(4,10,18,.72); transition: background 200ms ease; }
.deck-scene-open:hover .deck-scene-expand { background: var(--procut-blue); }
.deck-scene-open:focus-visible { outline: 3px solid var(--procut-blue); outline-offset: 5px; }
.deck-lightbox { width: min(1240px, 96vw); max-width: 96vw; max-height: 94svh; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #07101b; color: white; }
.deck-lightbox::backdrop { background: rgba(2,8,18,.94); }
.deck-lightbox-toolbar, .deck-lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.deck-lightbox-toolbar p { margin: 0; font-size: 1rem; }
.deck-lightbox button { min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: white; background: #182233; cursor: pointer; }
.deck-lightbox button:hover { background: #294dde; }
.deck-lightbox button:focus-visible { outline: 3px solid #829bff; outline-offset: 3px; }
.deck-lightbox [data-scene-full] { display: block; width: 100%; height: min(70svh, 760px); object-fit: contain; margin-block: 16px; }
.deck-lightbox-controls { font-size: .85rem; }
body:has(.deck-lightbox[open]) { overflow: hidden; }
@media (max-width: 900px) {
  .deck-scene-gallery figure:nth-child(n) { grid-column: span 6; }
  .deck-scene-gallery figure:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .deck-install-grid.deck-scene-gallery { grid-template-columns: 1fr; gap: 28px; }
  .deck-scene-gallery figure:nth-child(n) { grid-column: 1; }
  .prodeck-page .deck-scene-gallery figure:first-child img { aspect-ratio: 16 / 10; object-fit: contain; }
  .deck-lightbox { padding: 12px; }
}
