/* NewClick EU — site styles
   World: the facade's slat rhythm (Barcode 1:2:3) on an anodised-aluminium ground.
   Edit colours and type in the :root block; everything else derives from it. */

:root {
  --ground: #E6E7E3;
  --ground-2: #DCDDD8;
  --ground-3: #CFD1CB;
  --ink: #1E1D1A;
  --ink-2: #3E3C37;
  --ink-3: #66645E;
  --alu: #B9BBB6;
  --rail: #4A4C4F;
  --rail-hi: #7C7E82;
  --oak: #C89A5C;
  --teak: #B27544;
  --walnut: #5B4434;
  --black: #2A2825;
  --weathered: #A8A08F;
  --error: #9B2F16;
  --ok: #2F6B3A;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --u: 56px;                 /* one slat unit = 50 mm working width */
  --gap: 3px;                /* the 3 mm joint */
  --max: 1400px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .9, .2, 1);
}

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  caret-color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; max-width: 68ch; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
small, .small { font-size: .875rem; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--alu) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--alu); border: 2px solid var(--ground); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-weight: 700; font-variation-settings: "wdth" 118; font-size: clamp(2.5rem, 5.4vw, 4.75rem); max-width: 12ch; }
h2 { font-weight: 700; font-variation-settings: "wdth" 112; font-size: clamp(1.85rem, 3.4vw, 2.85rem); max-width: 18ch; }
h3, .h3 { font-weight: 650; font-variation-settings: "wdth" 106; font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -.015em; line-height: 1.15; max-width: none; }
h4 { font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.4; color: var(--ink-2); max-width: 36ch; }
.lede strong { color: var(--ink); }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 120px); }
.section-tight { padding-block: clamp(36px, 5vw, 72px); }
.grid6 { display: grid; grid-template-columns: 1fr 1fr 2fr 3fr 3fr 2fr; column-gap: clamp(16px, 2.5vw, 40px); row-gap: 32px; }
.grid6 > .c-1-4 { grid-column: 1 / 4; }
.grid6 > .c-1-3 { grid-column: 1 / 3; }
.grid6 > .c-3-7 { grid-column: 3 / 7; }
.grid6 > .c-4-7 { grid-column: 4 / 7; }
.grid6 > .c-1-5 { grid-column: 1 / 5; }
.grid6 > .c-5-7 { grid-column: 5 / 7; }
.grid6 > .c-1-7 { grid-column: 1 / 7; }
.grid6 > .c-2-6 { grid-column: 2 / 6; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.split.rev { grid-template-columns: 7fr 5fr; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.stack > * + * { margin-top: 1.25rem; }
.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.rule-thin { border: 0; border-top: 1px solid var(--ground-3); margin: 0; }
.head { margin-bottom: clamp(28px, 4vw, 56px); }
.head p { margin-top: 1rem; }
.section-dark { background: var(--ink); color: var(--ground); }
.section-dark .lede, .section-dark .muted { color: #C9CAC5; }
.section-dark ::selection { background: var(--ground); color: var(--ink); }
.section-dark :focus-visible { outline-color: var(--ground); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--ground-3); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--alu); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { border-bottom: 2px solid var(--ink); padding: 11px 16px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: .005em; padding: 15px 22px; border: 2px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: var(--ground-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: #35332E; border-color: #35332E; }
.btn-sm { padding: 11px 16px; font-size: .9rem; }
.btn-light { border-color: var(--ground); color: var(--ground); }
.btn-light:hover { background: rgba(230, 231, 227, .12); }
.btn-light.btn-primary { background: var(--ground); color: var(--ink); }
.btn-light.btn-primary:hover { background: #fff; border-color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- slat wall (hero) ---------- */
.hero { position: relative; overflow: hidden; }
.hero .grid6 { min-height: min(78vh, 760px); align-items: stretch; }
.hero-copy { grid-column: 1 / 4; padding-block: clamp(48px, 8vw, 120px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .btns { margin-top: 2.2rem; }
.hero-wall { grid-column: 4 / 7; margin-right: calc(-1 * var(--pad)); }
.wall { position: relative; height: 100%; min-height: 520px; background: var(--alu); overflow: hidden; perspective: 1100px; perspective-origin: 35% 50%; }
.wall .rail { position: absolute; left: 0; right: 0; height: 46px; margin-top: -8px; background: url("../img/tex/rail.jpg") left center / auto 100% repeat-x; box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
.wall .slats { position: absolute; inset: -14% 0; display: flex; gap: var(--gap); background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)) content-box; padding-left: clamp(40px, 4.5vw, 64px); transform-style: preserve-3d; }
.slat { flex: none; position: relative; height: 100%; border: 0; padding: 0; margin: 0; cursor: pointer; background-size: cover; background-position: center; transform-style: preserve-3d; box-shadow: 5px 0 9px rgba(0, 0, 0, .55), inset -8px 0 14px rgba(0, 0, 0, .32), inset 2px 0 0 rgba(255, 255, 255, .14), inset 0 -60px 60px -40px rgba(0, 0, 0, .25); transform-origin: left center; transition: transform .55s var(--ease), box-shadow .55s var(--ease); will-change: transform; }
.slat.w1 { width: calc(var(--u) * 1); }
.slat.w2 { width: calc(var(--u) * 2); }
.slat.w3 { width: calc(var(--u) * 3); }
.slat:hover, .slat:focus-visible { box-shadow: 5px 0 9px rgba(0, 0, 0, .55), inset -8px 0 14px rgba(0, 0, 0, .32), inset 2px 0 0 rgba(255, 255, 255, .3), inset 0 -60px 60px -40px rgba(0, 0, 0, .25); }
.slat:focus-visible { outline: 2px solid var(--ground); outline-offset: -4px; }
.slat .edge { position: absolute; top: 0; bottom: 0; left: 0; width: 24px; background: inherit; background-size: cover; filter: brightness(.45) saturate(.9); box-shadow: inset -2px 0 0 rgba(255, 255, 255, .22); transform: rotateY(90deg); transform-origin: left center; opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.slat.is-open { transform: translateZ(70px) rotateY(-20deg) translateX(6px); box-shadow: 30px 0 34px rgba(0, 0, 0, .55), 70px 0 100px rgba(0, 0, 0, .5), inset 3px 0 0 rgba(255, 255, 255, .35); z-index: 3; }
.slat.is-open .edge { opacity: 1; }
.wall.is-loading .slat { transform: rotateY(-62deg) translateX(-14px); }
.wall-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 10px 32px; padding-right: calc(var(--pad) + 32px); background: rgba(30, 29, 26, .92); color: #E6E7E3; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; z-index: 4; pointer-events: none; }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: .875rem; color: var(--ink-2); }
.chip { width: 34px; height: 34px; flex: none; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); border: 0; padding: 0; }
button.chip { cursor: pointer; outline-offset: 3px; transition: transform .15s var(--ease); }
button.chip:hover { transform: translateY(-2px); }
button.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ink); }
button.chip.is-unavailable { opacity: .3; cursor: not-allowed; }
.chip-lg { width: 100%; aspect-ratio: 3 / 4; }

.profile-switch { position: absolute; top: 16px; left: 16px; z-index: 5; display: inline-flex; border: 2px solid var(--ink); background: var(--ground); }
.profile-switch button { font: inherit; font-size: .85rem; font-weight: 600; padding: 9px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.profile-switch button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.profile-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.hero-photo { grid-column: 4 / 7; margin: 0; margin-right: calc(-1 * var(--pad)); min-height: 520px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.wall-block { height: min(72vh, 640px); min-height: 420px; }
.wall-section .head { margin-bottom: 24px; }
.wall-section .chips { margin-bottom: 6px; }

/* ---------- slat band divider ---------- */
.slat-band { height: 28px; display: flex; gap: var(--gap); overflow: hidden; background: var(--rail); }
.slat-band span { flex: none; height: 100%; background-size: cover; background-position: center; }
.slat-band .w1 { width: calc(var(--u) * .5); }
.slat-band .w2 { width: calc(var(--u) * 1); }
.slat-band .w3 { width: calc(var(--u) * 1.5); }
.slat-band-tall { height: 120px; }

/* ---------- content blocks ---------- */
.usps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.usp { border-top: 2px solid var(--ink); padding: 24px 0 32px; }
.usp h3 { margin-bottom: .6rem; }
.usp p { margin: 0; color: var(--ink-2); }
.figure { margin: 0; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption { font-size: .875rem; color: var(--ink-3); margin-top: 10px; }
.photo { width: 100%; object-fit: cover; background: var(--ground-2); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: none; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--ground-3); margin: 0; }
.steps li:last-child { border-bottom: 1px solid var(--ground-3); }
.steps li::before { counter-increment: step; content: counter(step); font-weight: 700; font-variation-settings: "wdth" 118; font-size: 2rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--ink-2); }
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-top: 1px solid var(--ground-3); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--ground-3); }
.spec th { font-weight: 500; color: var(--ink-3); width: 44%; padding-right: 16px; }
.spec td { font-variant-numeric: tabular-nums; font-weight: 500; }
.spec .pending { color: var(--ink-3); font-weight: 400; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 12px 14px 0; border-top: 1px solid var(--ground-3); text-align: left; vertical-align: top; }
.compare thead th { border-top: 0; font-weight: 600; color: var(--ink); padding-bottom: 8px; }
.compare tbody th { font-weight: 500; color: var(--ink-3); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 1px solid var(--ground-3); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; max-width: none; }
.facts-2 { grid-template-columns: 1fr 1fr; max-width: 420px; }
.facts li { border-top: 2px solid var(--ink); padding-top: 12px; }
.facts .v { display: block; font-weight: 700; font-variation-settings: "wdth" 112; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts .l { display: block; margin-top: 8px; font-size: .9rem; color: var(--ink-3); }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.section-dark .check li::before { border-color: var(--ground); }

/* product blocks */
.product { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(40px, 5vw, 72px); border-top: 2px solid var(--ink); }
.product:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.product:nth-of-type(even) .product-media, .product:nth-of-type(even) .pgal { order: 2; }
/* Product photos are square (1:1): one large photo with two beside each other below it. */
.product-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.product-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.product-media > img:first-child { grid-column: 1 / -1; }
/* Four equal squares with a caption, for example mix pack and the single widths. */
.product-media.grid4 > img:first-child { grid-column: auto; }
.product-media figure { margin: 0; }
.product-media figure img { display: block; }
.product-media figcaption { font-size: .875rem; color: var(--ink-3); margin-top: 8px; line-height: 1.35; }
/* Product photo picker (inc/gallery.php, assets/js/gallery.js) */
.pgal { min-width: 0; align-self: start; }
.pgal-main { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.pgal-thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; max-width: none; }
.pgal-thumb { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; }
.pgal-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pgal-thumb[aria-pressed="true"] { border-color: var(--ink); }
.pgal-caption { margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); }
.pgal-caption .code { color: var(--ink); font-weight: 600; margin-right: 6px; }
.pgal-variants { display: inline-flex; flex-wrap: wrap; margin-top: 14px; border: 2px solid var(--ink); }
.pgal-variants button { font: inherit; font-size: .85rem; font-weight: 600; padding: 9px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.pgal-variants button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.pgal-colours { margin-top: 14px; }
/* Product codes: a code under each swatch, and tables of codes by colour. */
.swatches .code { display: block; margin-top: 2px; color: var(--ink-3); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; letter-spacing: .01em; }
.codes-wrap { overflow-x: auto; margin-top: 1.4rem; }
.codes { width: 100%; border-collapse: collapse; font-size: .875rem; }
.codes th, .codes td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--ground-3); }
.codes thead th { border-top: 0; font-weight: 600; color: var(--ink-3); }
.codes tbody th { font-weight: 400; min-width: 14rem; }
.codes td { white-space: nowrap; }
.codes .na { color: var(--ink-3); }
.codes small { display: block; margin-top: 2px; font-size: .78rem; color: var(--ink-3); }
.codes .group th { padding-top: 22px; border-top: 1px solid var(--ink); color: var(--ink); font-weight: 600; }
.codes .group .code { margin-left: 8px; color: var(--ink-3); font-weight: 400; }
.product h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-variation-settings: "wdth" 112; }
.product .spec { margin-top: 1.2rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; max-width: none; }
.swatches li { font-size: .875rem; }
.swatches .sw { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); margin-bottom: 8px; }
.tile-note { font-size: .875rem; color: var(--ink-3); }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 14px; border: 1.5px solid var(--ground-3); background: transparent; color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; list-style: none; padding: 0; margin: 0; max-width: none; }
.projects li { min-width: 0; }
.projects li.is-hidden { display: none; }
.projects-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project { display: block; text-decoration: none; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ground-2); }
.project .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: .9rem; }
.project .meta strong { display: block; font-size: 1rem; }
.project .meta span { color: var(--ink-3); }
.placeholder-note { border: 1.5px dashed var(--ground-3); padding: 16px 20px; font-size: .9rem; color: var(--ink-3); }

/* downloads */
.dl-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.dl-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--ground-3); }
.dl-list li:last-child { border-bottom: 1px solid var(--ground-3); }
.dl-list .type { font-size: .85rem; color: var(--ink-3); white-space: nowrap; }
.dl-list a { font-weight: 600; }
.dl-list .pending { color: var(--ink-3); }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-3); margin: -2px 0 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border: 2px solid var(--ground-3); background: #F4F4F1; color: var(--ink); width: 100%; border-radius: 0; transition: border-color .2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: #8A8882; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--alu); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231E1D1A' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field .error { display: none; font-size: .875rem; color: var(--error); margin: 0; }
.field.is-invalid .error { display: block; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status { display: none; padding: 16px 18px; border: 2px solid var(--ink); font-weight: 500; }
.form-status.is-ok { display: block; border-color: var(--ok); color: var(--ok); }
.form-status.is-error { display: block; border-color: var(--error); color: var(--error); }
.form-note { font-size: .875rem; color: var(--ink-3); }
.section-dark .field .hint, .section-dark .form-note { color: #B4B3AD; }
.section-dark .field .error, .section-dark .form-status.is-error { color: #F2A48E; border-color: #F2A48E; }
.section-dark .form-status.is-ok { color: #9FD3A8; border-color: #9FD3A8; }
.section-dark .field.is-invalid input, .section-dark .field.is-invalid select, .section-dark .field.is-invalid textarea { border-color: #F2A48E; }
.honey { position: absolute; left: -9999px; }

/* ---------- CTA band & footer ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 110px); }
.cta-band .grid6 { align-items: center; }
.cta-band h2 { max-width: 16ch; }
.site-footer { background: var(--ink); color: #C9CAC5; padding-block: 56px 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer img { height: 22px; width: auto; margin-bottom: 18px; }
.site-footer a { color: #E6E7E3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .ft { color: #E6E7E3; margin: 0 0 14px; font-size: .95rem; font-weight: 650; letter-spacing: -.01em; }
.site-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3E3C37; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #9C9B95; }
.site-footer .legal a { color: #C9CAC5; }
[data-config-empty] { display: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slat, .btn, .arrow-link svg { transition: none !important; }
  .wall.is-loading .slat { transform: none; }
}

/* Wide hero banner: photo across the full width, text on a dark gradient at the left */
.hero-banner { position: relative; display: flex; align-items: flex-end; min-height: min(82vh, 760px); overflow: hidden; background: #2A2420; color: #fff; }
.hero-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .72) 0%, rgba(20, 14, 10, .45) 38%, rgba(20, 14, 10, 0) 68%), linear-gradient(0deg, rgba(20, 14, 10, .45) 0%, rgba(20, 14, 10, 0) 40%); }
.hero-banner .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 96px); }
.hero-banner h1 { max-width: 13ch; color: #fff; }
.hero-banner .lede { margin-top: 1.2rem; max-width: 34ch; color: rgba(255, 255, 255, .88); }
.hero-banner .lede strong { color: #fff; }
.hero-banner .btns { margin-top: 2rem; }
.hero-banner .meta { margin: 2.2rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .72); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid6 { grid-template-columns: repeat(6, 1fr); }
  .hero-copy { grid-column: 1 / 4; }
  .hero-wall { grid-column: 4 / 7; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid6, .split, .split.rev, .two, .usps, .product, .product:nth-of-type(even) { grid-template-columns: 1fr; }
  .grid6 > [class^="c-"] { grid-column: 1 / -1 !important; }
  .hero .grid6 { min-height: 0; row-gap: 0; }
  .hero-copy { grid-column: 1 / -1; padding-block: 48px 40px; }
  .hero-wall, .hero-photo { grid-column: 1 / -1; margin-inline: calc(-1 * var(--pad)); }
  .hero-photo { min-height: 0; height: 68vw; order: -1; }
  .hero-copy { padding-top: 32px; }
  .hero-banner { display: block; min-height: 0; background: var(--ground); color: var(--ink); }
  .hero-banner > img { position: static; height: 68vw; }
  .hero-banner::after { display: none; }
  .hero-banner .wrap { padding-block: 32px 40px; }
  .hero-banner h1 { color: var(--ink); }
  .hero-banner .lede { color: var(--ink-2); }
  .hero-banner .lede strong { color: var(--ink); }
  .hero-banner .meta { color: var(--ink-3); }
  .hero-banner .btn-light { border-color: var(--ink); color: var(--ink); }
  .hero-banner .btn-light:hover { background: rgba(30, 29, 26, .06); }
  .hero-banner .btn-light.btn-primary { background: var(--ink); color: var(--ground); }
  .wall-block { height: 360px; min-height: 0; }
  .wall { min-height: 0; height: 360px; }
  .product-media, .pgal { order: 0 !important; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .row { grid-template-columns: 1fr; }
  .site-header .bar { min-height: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: .95rem; background: none; border: 2px solid var(--ink); padding: 9px 14px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground); border-bottom: 2px solid var(--ink); padding: 8px var(--pad) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ground-3); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--ground-3); font-weight: 700; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; }
  .steps li::before { font-size: 1.5rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --u: 40px; }
  .wall { height: 300px; }
  .wall .slats { padding-left: 48px; }
  .wall .rail { height: 36px; }
  .wall-caption { padding: 8px 20px; font-size: .7rem; }
  .projects, .projects-2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .compare { font-size: .9rem; }
  .btns .btn { flex: 1 1 100%; }
}

/* project photo slider */
.pslides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; }
.pslides::-webkit-scrollbar { display: none; }
.pslides img { flex: 0 0 100%; scroll-snap-align: start; }
.pslider { position: relative; }
.pslider button { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.88); color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pslider button:hover, .pslider button:focus-visible { background: #fff; }
.pslider .prev { left: 0; }
.pslider .next { right: 0; }
.pslider .count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 2px 8px; }

/* anchor buttons (product page) */
.anchors { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.anchors a { font-size: .9rem; font-weight: 500; padding: 9px 16px; border: 1.5px solid var(--ground-3); color: var(--ink-2); text-decoration: none; }
.anchors a:hover, .anchors a:focus-visible { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.product, section[id] { scroll-margin-top: 90px; }

/* long headings and wide tables must not spill out of their grid column */
.grid6 > * { min-width: 0; }
.grid6 h2 { overflow-wrap: break-word; hyphens: manual; }
.grid6 > .c-1-3 h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.spec td { overflow-wrap: anywhere; }

/* finishing trims: main photo, second photo on hover (mouse) or tap (touch, keyboard) */
.trims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trims .figure { margin: 0; }
.swap { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: #fff; overflow: hidden; cursor: pointer; font: inherit; }
.swap-single { cursor: default; }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s var(--ease); }
.swap .alt { opacity: 0; object-fit: cover; }
.swap.is-alt .alt { opacity: 1; }
.swap-hint { display: none; position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: 3px 9px; }
@media (hover: hover) { .swap:hover .alt { opacity: 1; } }
@media (hover: none) { .swap-hint { display: block; } .swap.is-alt .swap-hint { display: none; } }
.swap:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.trims figcaption strong { color: var(--ink); font-weight: 600; }
.trims figcaption .code { color: var(--ink-3); }
@media (max-width: 900px) { .trims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* System page: general shots + installation tabs */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tablist button { font: inherit; font-weight: 600; padding: 10px 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.tablist button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tabs .tabpanel + .tabpanel { margin-top: 48px; }
.tabs.is-ready .tabpanel + .tabpanel { margin-top: 0; }
.stepgrid { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.stepgrid h3 { margin: 14px 0 6px; font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; }
.stepgrid p { margin: 0; max-width: none; color: var(--ink-2); font-size: .92rem; }
.stepno { flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ink); color: var(--ground); font-size: .8rem; }
.spec { width: 100%; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }

/* Dark sections: readable compare table */
.section-dark .compare thead th { color: var(--ground); }
.section-dark .compare th, .section-dark .compare td { border-color: rgba(230, 231, 227, .28); }

/* Homepage: USP spacing, story band */
.usp .h3 { margin-bottom: .6rem; }
.usp-section { padding-bottom: clamp(24px, 3vw, 40px); }
.story h2 { max-width: 14ch; }
.story-text p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: #C9CAC5; max-width: 52ch; }
.story .arrow-link { color: var(--ground); border-color: var(--ground); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 3vw, 40px); margin: clamp(40px, 6vw, 80px) 0 0; }
.stats > div { border-top: 1px solid rgba(230, 231, 227, .35); padding-top: 18px; }
.stats dt { font-weight: 700; font-variation-settings: "wdth" 118; font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1; letter-spacing: -.03em; }
.stats dd { margin: 10px 0 0; color: #C9CAC5; font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* FAQ (native details, no script needed) */
.faq { border-top: 1px solid var(--ground-3); }
.faq-item { border-bottom: 1px solid var(--ground-3); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 650; font-size: 1.1rem; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 0 22px; color: var(--ink-2); }
.section-dark .lede a { color: var(--ground); }
