/* TAIDE — site styles. Two themes: day (default) and dusk (html[data-theme="dusk"]). */

:root {
  --bg: #f2eee6;          /* lime-plaster wall */
  --paper: #faf8f3;
  --ink: #1b1917;
  --ink-2: #47413a;
  --muted: #736b60;
  --line: #d6cec0;
  --line-soft: #e5dfd3;
  --oxblood: #4a1216;     /* the cover of our printed catalogue */
  --oxblood-ink: #e9cf9a; /* catalogue gold, for text on oxblood */
  --lamp: #e0731f;        /* the orange square in the logo */
  --lamp-text: #a9500f;   /* same hue, dark enough for small text on plaster */
  --on-lamp: #1b1917;
  --wall: #e8e2d6;
  --wall-edge: #dcd4c5;
  --glow: 0;
  --shadow: 0 1px 0 rgba(27, 25, 23, .04), 0 12px 32px -18px rgba(27, 25, 23, .28);
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

html[data-theme="dusk"] {
  --bg: #13111a;
  --paper: #1b1924;
  --ink: #f3ecdf;
  --ink-2: #d4cbbc;
  --muted: #a0978b;
  --line: #37323f;
  --line-soft: #292531;
  --lamp: #f3a04c;
  --lamp-text: #f3a04c;
  --wall: #211e2c;
  --wall-edge: #181620;
  --glow: 1;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  transition: background-color .5s ease, color .5s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lamp-text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; font-variation-settings: "wdth" 84; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); letter-spacing: -.022em; line-height: .94; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
::selection { background: var(--lamp); color: var(--on-lamp); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.mono, .eyebrow, .tag { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow { color: var(--muted); display: block; margin-bottom: 18px; }
.eyebrow b { color: var(--lamp-text); font-weight: 500; }
.lede { font-size: 1.16rem; line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.small { font-size: .88rem; color: var(--muted); }
.cn { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .96rem/1 var(--f-sans); font-variation-settings: "wdth" 92;
  padding: 15px 20px; border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-lamp { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); }
.btn-lamp:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 14px; font-size: .86rem; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }
.link-arrow.ext::after { content: " \2197"; }
.link-arrow.dl::after { content: " \2193"; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background-color .5s ease, border-color .5s ease; }
.hdr-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 63px; height: 34px; background: #faf8f3; padding: 3px 5px; border-radius: 2px; box-sizing: content-box; }
.brand b { display: block; font-size: 1.18rem; font-variation-settings: "wdth" 110; letter-spacing: .14em; line-height: 1; }
.brand i { display: block; font: 400 .64rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: .95rem; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--lamp); }
.hdr-tools { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; }

/* day / dusk switch */
.dusk-switch { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; color: var(--ink); font: 500 .7rem/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.dusk-switch .track { position: relative; width: 46px; height: 24px; border-radius: 12px; border: 1px solid var(--ink); background: transparent; transition: background-color .4s, border-color .4s; flex: none; }
.dusk-switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .4s cubic-bezier(.5, .1, .2, 1), background-color .4s, box-shadow .4s; }
html[data-theme="dusk"] .dusk-switch .track { border-color: var(--lamp); background: rgba(243, 160, 76, .14); }
html[data-theme="dusk"] .dusk-switch .knob { transform: translateX(22px); background: var(--lamp); box-shadow: 0 0 12px 3px rgba(243, 160, 76, .55); }
.dusk-switch .lbl-dusk { display: none; }
html[data-theme="dusk"] .dusk-switch .lbl-day { display: none; }
html[data-theme="dusk"] .dusk-switch .lbl-dusk { display: inline; }
.dusk-switch.big { font-size: .82rem; gap: 14px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: 40px; background: var(--paper); }
.dusk-switch.big .track { width: 58px; height: 30px; border-radius: 15px; }
.dusk-switch.big .knob { width: 22px; height: 22px; }
html[data-theme="dusk"] .dusk-switch.big .knob { transform: translateX(28px); }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.sec.flush { border-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(34px, 5vw, 60px); }
.sec-head .lede { margin: 0; }
.sec-num { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .07em; color: var(--muted); display: flex; gap: 14px; align-items: center; margin-bottom: 18px; text-transform: uppercase; }
.sec-num::before { content: ""; width: 9px; height: 9px; background: var(--lamp); border-radius: 50%; box-shadow: 0 0 calc(var(--glow) * 14px) calc(var(--glow) * 3px) rgba(243, 160, 76, .7); }

/* ---------- hero ---------- */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 5vw, 72px); align-items: end; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { font-size: 1.22rem; }
.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 10px 10px 0; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px 12px; font: 400 .7rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-weight: 500; }
.rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.rail li { flex: 1 1 auto; padding: 15px 22px 15px 0; margin-right: 22px; border-right: 1px solid var(--line); font: 400 .74rem/1.35 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rail li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* page head (inner pages) */
.phead { padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); }
.phead h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); max-width: 14em; margin-bottom: 24px; }

/* ---------- ledger: things you can check ---------- */
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.check { padding: 26px 24px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.check:last-child { border-right: 0; }
.check .n { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; color: var(--lamp-text); margin-bottom: 26px; text-transform: uppercase; }
.check h3 { font-size: 1.5rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.check p { font-size: .93rem; color: var(--ink-2); margin-bottom: 20px; }
.check .how { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .9rem; }
.check .models { font-family: var(--f-mono); font-size: .82rem; color: var(--ink); }

/* ---------- factory photos ---------- */
.plant { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.plant figure { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 8px 8px 0; }
.plant img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plant figcaption { padding: 10px 2px 11px; font-size: .86rem; color: var(--ink-2); line-height: 1.35; }
.plant figcaption b { display: block; font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.plant .c3 { grid-column: span 3; }
.plant .c4 { grid-column: span 4; }
.plant .c5 { grid-column: span 5; }
.plant .c6 { grid-column: span 6; }
.plant .tall img { aspect-ratio: 6 / 5; }
.plant-note { margin-top: 22px; display: flex; gap: 14px 30px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.plant-note p { margin: 0; max-width: 46em; }

/* ---------- the wall (product tiles) ---------- */
.wallband { background: var(--wall); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .6s ease; position: relative; overflow: hidden; }
html[data-theme="dusk"] .wallband { background: linear-gradient(180deg, #1a1826 0%, #221d2b 62%, #2c2029 100%); }
.wallband .sec-head { align-items: center; }
.wallrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: block; width: 100%; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.tile .stage { position: relative; width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(180deg, var(--wall) 0%, var(--wall-edge) 100%); overflow: hidden; transition: background .6s ease; }
.grid .tile .stage { border: 1px solid var(--line-soft); }
.tile .stage::before { /* the lamp's wash on the wall, dusk only */
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(closest-side at 50% 46%, rgba(255, 196, 120, .98) 0%, rgba(250, 164, 84, .62) 24%, rgba(230, 120, 48, .26) 50%, rgba(226, 116, 44, 0) 76%);
  opacity: var(--glow); transition: opacity .7s ease; pointer-events: none;
}
.tile img { position: relative; width: 70%; height: 76%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(27, 25, 23, .16)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
html[data-theme="dusk"] .tile img { filter: drop-shadow(0 0 1px rgba(255, 214, 160, .55)) drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile .cap { padding: 12px 2px 4px; display: block; }
.tile .cap b { display: block; font: 500 .84rem/1.2 var(--f-mono); letter-spacing: .04em; }
.tile .cap span { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.wallrow .tile .cap b { font-family: var(--f-sans); font-size: 1.02rem; font-weight: 650; letter-spacing: 0; font-variation-settings: "wdth" 88; }
.wall-foot { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; margin-top: 34px; }
.wall-foot p { margin: 0; }

/* ---------- record / timeline ---------- */
.record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.record li { list-style: none; padding: 22px 28px 0 0; position: relative; }
.record li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 calc(var(--glow) * 16px) calc(var(--glow) * 4px) rgba(243, 160, 76, .7); }
.record .yr { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; font-variation-settings: "wdth" 78; line-height: 1; letter-spacing: -.02em; display: block; margin-bottom: 12px; }
.record p { color: var(--ink-2); margin: 0; max-width: 24em; font-size: .98rem; }
ol.record { margin: 0; padding: 0; }

/* ---------- spec / terms table ---------- */
.rows { border-top: 2px solid var(--ink); margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 6fr) minmax(0, 4fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows.two > div { grid-template-columns: minmax(150px, 3fr) minmax(0, 9fr); }
.rows dt { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rows dd { margin: 0; font-size: 1.06rem; font-weight: 500; }
.rows dd.src { font-size: .88rem; font-weight: 400; color: var(--muted); }
.rows dd small { display: block; font-size: .88rem; font-weight: 400; color: var(--muted); margin-top: 3px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.split h2 { margin-bottom: 20px; }

/* ask-us list */
.asks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.asks li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.asks li::before { content: "?"; font: 500 .8rem/1 var(--f-mono); color: var(--lamp-text); flex: none; width: 1.2em; }
.asks b { font-weight: 600; }
.asks span { display: block; font-size: .9rem; color: var(--muted); }

/* ---------- certification block ---------- */
.cert { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.cert-id { padding: clamp(24px, 4vw, 44px); border-right: 1px solid var(--line); }
.cert-id .ctl { font: 500 clamp(2.2rem, 5vw, 3.6rem)/1 var(--f-mono); letter-spacing: -.02em; display: block; margin: 8px 0 18px; }
.cert-body { padding: clamp(24px, 4vw, 44px); }
.cert-body .rows { border-top-width: 1px; border-top-color: var(--line); }
.cert-body .rows > div:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .86rem/1 var(--f-mono); padding: 8px 10px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); }
.steps { counter-reset: s; list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 34px; font-size: .96rem; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; font: 500 .7rem/20px var(--f-mono); text-align: center; color: var(--ink); }
.notice { border-left: 3px solid var(--lamp); padding: 4px 0 4px 16px; font-size: .95rem; color: var(--ink-2); margin: 22px 0 0; }

/* ---------- catalogue downloads ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cat { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; background: var(--oxblood); color: #f4ead8; padding: 22px; align-items: center; position: relative; overflow: hidden; }
.cat::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 1px solid rgba(233, 207, 154, .35); pointer-events: none; }
.cat img { width: 150px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); border: 1px solid rgba(233, 207, 154, .25); position: relative; z-index: 1; }
.cat .tag { color: var(--oxblood-ink); display: block; margin-bottom: 10px; }
.cat h3 { font-size: 1.7rem; color: #fff; margin-bottom: 8px; }
.cat p { font-size: .93rem; color: #e6d7c1; margin-bottom: 18px; }
.cat .btn-lamp { background: var(--oxblood-ink); border-color: var(--oxblood-ink); color: #2a0b0d; }
.cat .btn-lamp:hover { background: #fff; border-color: #fff; color: #2a0b0d; }
.cat .alt { display: inline-block; margin-top: 12px; font-size: .84rem; color: #e6d7c1; }
.cat .alt:hover { color: #fff; }

/* ---------- product explorer ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 22px; position: sticky; top: 68px; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fbtn { font: 500 .88rem/1 var(--f-sans); padding: 9px 12px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.fbtn:hover { border-color: var(--ink); color: var(--ink); }
.fbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fbtn sup { font: 400 .66rem/1 var(--f-mono); margin-left: 4px; opacity: .7; }
.tool-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 30px; padding: 2px; }
.seg button { font: 500 .78rem/1 var(--f-sans); padding: 7px 11px; border: 0; background: none; color: var(--muted); border-radius: 30px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.count { font: 400 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.series-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 44px 0 16px; }
.series-head:first-child { margin-top: 10px; }
.series-head h3 { font-size: 1.7rem; }
.series-head p { margin: 0; color: var(--muted); font-size: .93rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
.pick { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 1.1rem/1 var(--f-sans); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s; position: absolute; top: 10px; right: 10px; z-index: 2; }
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); }
.cell { position: relative; min-width: 0; }
.empty { padding: 40px 0; color: var(--muted); }

/* product dialog */
dialog.sheet { border: 0; padding: 0; background: var(--bg); color: var(--ink); width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); }
dialog.sheet::backdrop { background: rgba(14, 12, 18, .66); backdrop-filter: blur(3px); }
.sheet-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet .stage { position: relative; display: grid; place-items: center; padding: 34px 0; background: linear-gradient(180deg, var(--wall) 0%, var(--wall-edge) 100%); min-height: 420px; overflow: hidden; }
.sheet .stage::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(closest-side at 50% 46%, rgba(255, 196, 120, .98) 0%, rgba(250, 164, 84, .62) 24%, rgba(230, 120, 48, .26) 50%, rgba(226, 116, 44, 0) 76%); opacity: var(--glow); transition: opacity .7s ease; }
.sheet .stage img { position: relative; max-width: 74%; max-height: min(74vh, 600px); width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(27, 25, 23, .18)); }
html[data-theme="dusk"] .sheet .stage img { filter: drop-shadow(0 0 1px rgba(255, 214, 160, .55)) drop-shadow(0 12px 26px rgba(0, 0, 0, .5)); }
.sheet .info { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; overflow-y: auto; }
.sheet .info h2 { font: 500 clamp(1.9rem, 4vw, 2.6rem)/1 var(--f-mono); letter-spacing: -.02em; margin: 6px 0 22px; }
.sheet .rows > div { grid-template-columns: 110px minmax(0, 1fr); padding: 12px 0; }
.sheet .rows dd { font-size: 1rem; }
.sheet .close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 3; }
.sheet .close:hover { border-color: var(--ink); }
.sheet .btn-row { margin-top: 24px; }
.sheet .small { margin-top: 18px; }

/* shortlist bar */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--bg); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tray.on { transform: none; }
.tray .wrap { display: flex; align-items: center; gap: 14px 22px; padding: 12px 0; flex-wrap: wrap; }
.tray .lbl { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; opacity: .75; flex: none; }
.tray .list { font: 400 .86rem/1.4 var(--f-mono); flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray .btn { border-color: var(--bg); color: var(--bg); }
.tray .btn-lamp { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); }
.tray .btn:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.tray .clear { background: none; border: 0; color: inherit; opacity: .7; font: inherit; font-size: .86rem; text-decoration: underline; cursor: pointer; padding: 6px; }
body.has-tray { padding-bottom: 70px; }

/* ---------- documents exhibit ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); gap: 14px; align-items: stretch; }
.doc { margin: 0; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.doc .pic { flex: 1; display: grid; place-items: center; padding: 16px; background: #fff; min-height: 240px; }
.doc.prod .pic { background: linear-gradient(180deg, var(--wall), var(--wall-edge)); position: relative; overflow: hidden; }
.doc.prod .pic::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(closest-side at 50% 46%, rgba(255, 196, 120, .98) 0%, rgba(250, 164, 84, .62) 24%, rgba(230, 120, 48, .26) 50%, rgba(226, 116, 44, 0) 76%); opacity: var(--glow); transition: opacity .7s ease; }
.doc.prod img { position: relative; max-height: 250px; width: auto; filter: drop-shadow(0 12px 12px rgba(27, 25, 23, .18)); }
.doc .pic img { max-height: 270px; width: auto; }
.doc figcaption { padding: 14px 16px 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.doc figcaption b { display: block; font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--lamp-text); margin-bottom: 5px; }

/* order steps */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: f; }
.flow li { counter-increment: f; padding: 20px 20px 0 0; position: relative; }
.flow li::before { content: "0" counter(f); font: 500 .74rem/1 var(--f-mono); letter-spacing: .07em; color: var(--lamp-text); display: block; margin-bottom: 14px; }
.flow b { display: block; font-size: 1.15rem; font-variation-settings: "wdth" 88; line-height: 1.15; margin-bottom: 8px; }
.flow span { font-size: .92rem; color: var(--ink-2); display: block; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
form.inq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label, .fld .lab { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select, .fld textarea { font: 400 1rem/1.4 var(--f-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; width: 100%; min-width: 0; }
.fld textarea { min-height: 150px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--lamp); outline-offset: 0; border-color: var(--lamp); }
.fld .hint { font-size: .84rem; color: var(--muted); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.checkline input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--lamp); flex: none; }
.sent { display: none; grid-column: 1 / -1; border: 1px solid var(--line); background: var(--paper); padding: 18px 20px; font-size: .95rem; }
.sent.on { display: block; }
.sent .btn-row { margin-top: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 14px; }
.card + .card { margin-top: 16px; }
.card address { font-style: normal; margin-bottom: 14px; }
.mail-big { font: 500 clamp(1.3rem, 3.4vw, 2.2rem)/1.1 var(--f-mono); letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid var(--lamp); overflow-wrap: anywhere; }

/* ---------- closing band + footer ---------- */
.close-band { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 110px) 0; transition: background-color .5s; }
.close-band h2 { max-width: 13em; margin-bottom: 22px; }
.close-band .mail-big { display: inline-block; margin-top: 8px; }
.ftr { background: var(--oxblood); color: #ecdcc6; padding: 0 0 30px; font-size: .93rem; }
html[data-theme="dusk"] .ftr { background: #2f0c10; }
.ftr .rule { border-top: 1px solid rgba(233, 207, 154, .5); margin: 18px 0 50px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 34px 40px; padding-top: 0; }
.ftr h4 { font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oxblood-ink); margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 9px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .name { font-size: 1.5rem; font-weight: 700; font-variation-settings: "wdth" 84; line-height: 1.1; color: var(--oxblood-ink); margin-bottom: 8px; }
.ftr address { font-style: normal; max-width: 24em; }
.ftr .legal { margin-top: 50px; padding-top: 18px; border-top: 1px solid rgba(233, 207, 154, .22); display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; font: 400 .7rem/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: #cdb99c; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check:nth-child(2) { border-right: 0; }
  .check:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .cat img { width: 110px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero-grid, .sec-head, .split, .cert, .contact-grid, .sheet-in { grid-template-columns: minmax(0, 1fr); }
  .sec-head { align-items: start; }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cert-id { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 6px 20px 16px; box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .4); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--lamp); }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 2px; background: none; color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .hdr .btn-sm { display: none; }
  .hdr-in { gap: 10px; min-height: 62px; }
  .toolbar { top: 62px; }
  html { scroll-padding-top: 76px; }
  .plant .c3, .plant .c4, .plant .c5, .plant .c6 { grid-column: span 6; }
  .record { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); }
  .record li { padding: 0 0 30px 24px; }
  .record li::before { top: 8px; left: -7px; }
  .rows > div, .rows.two > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sheet .stage { min-height: 0; padding: 26px 0; }
  .sheet .stage img { max-height: 38vh; }
  .rail li { flex: 1 1 100%; border-right: 0; margin-right: 0; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .rail li:last-child { border-bottom: 0; }
  .asks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .brand i { display: none; }
  .dusk-switch:not(.big) .lbl { display: none !important; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .check { border-right: 0; border-bottom: 1px solid var(--line); }
  .check:last-child { border-bottom: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .wallrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  form.inq { grid-template-columns: minmax(0, 1fr); }
  .plant .c3, .plant .c4, .plant .c5, .plant .c6 { grid-column: span 12; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .cat { grid-template-columns: 84px minmax(0, 1fr); padding: 26px 16px 18px; gap: 14px; align-items: start; }
  .cat img { width: 84px; }
  .cat h3 { font-size: 1.35rem; }
  .tray .list { display: none; }
  .tray .wrap { flex-wrap: nowrap; gap: 10px; }
  .tray .lbl { flex: 1 1 auto; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; max-width: 100vw; }
  .filters::-webkit-scrollbar { display: none; }
  .toolbar { gap: 10px; padding: 12px 0; }
  .tool-right { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .hdr, .tray, .dusk-switch, .menu-btn { display: none !important; }
  body { background: #fff; color: #000; }
}
