:root {
  --bg: #14110f;
  --surface: #1e1a17;
  --surface-2: #282320;
  --border: #3a332d;
  --text: #f4ede6;
  --muted: #b5a99c;
  --accent: #ff8a3d;
  --accent-ink: #1a0d03;
  --glow: #ffcf7a;
  --accent-2: #ffb36b;
  --accent-hover: #ff9d5c;
  --stage: #0d0b0a;
  --card-glow: #3a2f27;
  --badge-bg: rgba(20,17,15,.88);
  --border-hover: #5a4e43;
  --switch-off: #4a423b;
  color-scheme: dark;
  --radius: 6px;
  --font-head: "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Assistant", system-ui, sans-serif;
  --font-hand: "Amatic SC", "Assistant", cursive;
}

/* ---------- Colour palettes (preview with ?theme=sand / sage / navy / rose) ---------- */
:root[data-skin="sand"] {
  --bg: #F6F0E8; --surface: #FFFBF5; --surface-2: #EFE6DA; --border: #E2D6C6; --text: #2E2620; --muted: #6E6157;
  --accent: #C8623A; --accent-ink: #FFFFFF; --accent-2: #E39A6F; --accent-hover: #B4552F;
  --stage: #EFE6DA; --card-glow: #F3E7D8; --badge-bg: rgba(255,251,245,.92); --border-hover: #CDBBA6; --switch-off: #CDBFB1;
  color-scheme: light;
}
:root[data-skin="sage"] {
  --bg: #F4F3EC; --surface: #FFFFFF; --surface-2: #ECEEE4; --border: #DCE0D2; --text: #23302A; --muted: #5F6B62;
  --accent: #5E7D4F; --accent-ink: #FFFFFF; --accent-2: #B07A4A; --accent-hover: #4F6B42;
  --stage: #E9ECE2; --card-glow: #EEF0E7; --badge-bg: rgba(255,255,255,.92); --border-hover: #BFC8B3; --switch-off: #C9CFBF;
  color-scheme: light;
}
:root[data-skin="navy"] {
  --bg: #121826; --surface: #1B2335; --surface-2: #242E44; --border: #33405C; --text: #F2EEE6; --muted: #A9B1C2;
  --accent: #E0B45C; --accent-ink: #1A1405; --accent-2: #F3D48E; --accent-hover: #EBC478;
  --stage: #0C111C; --card-glow: #26314A; --badge-bg: rgba(18,24,38,.88); --border-hover: #4A5A7E; --switch-off: #3A4560;
}
:root[data-skin="rose"] {
  --bg: #16121A; --surface: #221C26; --surface-2: #2D2532; --border: #3E3444; --text: #F5EEF0; --muted: #BBAEB6;
  --accent: #FF7A6B; --accent-ink: #2A0A06; --accent-2: #FFB0A3; --accent-hover: #FF9285;
  --stage: #0E0B10; --card-glow: #34293A; --badge-bg: rgba(22,18,26,.88); --border-hover: #5A4A60; --switch-off: #4A3F50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px, grows with the browser's / accessibility menu's text size */
  line-height: 1.6;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); margin: 6px 0 0; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.logo svg { width: 24px; height: 24px; color: var(--accent); }
/* header switch: light all the lamps at once */
.lights-all { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.lights-all svg { width: 20px; height: 20px; flex: none; }
.lights-all[aria-pressed="true"] { background: #FFD27A; color: #3A2A08; border-color: #E9B44C; box-shadow: 0 0 18px rgba(255,190,90,.75); }
.lights-all[aria-pressed="true"] svg path { fill: #FFF3C9; }
.card-lit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; z-index: 2; }
.lights-on .card-lit { opacity: 1; }
.lights-on .card:has(.card-lit) .card-media { box-shadow: 0 0 0 2px rgba(255,200,110,.7), 0 8px 30px rgba(255,180,80,.45); }
.lights-on .card-gallery:has(.card-lit) :is(.gallery-btn, .gallery-dots) { display: none; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; color: var(--text); padding: 10px 0; font-weight: 600; text-underline-offset: 6px; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 4px; font: 700 1rem var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; padding: 10px 4px; }
.link-arrow:hover { color: var(--accent); }
.hand-note { font-family: var(--font-hand); font-size: 1.9rem; line-height: 1; color: var(--accent-2); margin: 0; }
.hand-note.small { font-size: 1.5rem; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.12; position: relative; z-index: 0; }
.scribble { position: relative; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; inset-inline: -2%; bottom: -.12em; height: .32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 80 5 120 8s60 4 77-2' fill='none' stroke='%23B07A4A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; z-index: -1; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 22px 0 26px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* Polaroid-ish real photos */
.hero-photos { position: relative; height: 460px; }
.snap { position: absolute; margin: 0; background: #fff; padding: 8px 8px 30px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 20px rgba(40,50,35,.14); }
.snap img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.snap-1 { width: 46%; top: 10px; inset-inline-start: 4%; transform: rotate(3deg); z-index: 2; }
.snap-2 { width: 40%; top: 24px; inset-inline-end: 2%; transform: rotate(-4deg); }
.snap-3 { width: 36%; bottom: 0; inset-inline-start: 34%; transform: rotate(-1.5deg); z-index: 3; }
.snap::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 20px; translate: -50% 0; rotate: -3deg; background: rgba(230,220,190,.75); }
.hero-photos .hand-note { position: absolute; bottom: 6px; inset-inline-end: 2%; rotate: -6deg; width: 30%; text-align: center; z-index: 4; }

/* Sections */
.section { padding: 56px 0; scroll-margin-top: 60px; border-top: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 900; }

/* Category filter: plain text tabs with an underline, not pills */
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.chip { min-height: 40px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 600 1rem var(--font-body); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px 22px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s ease; }
.card:hover .card-media img { scale: 1.03; }
.card-media .placeholder { width: 40%; color: var(--accent); opacity: .5; }
.badge { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.badge svg { width: 14px; height: 14px; color: var(--accent-2); }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; }
.card-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-meta { color: var(--muted); font-size: .9rem; }
.card-foot { margin-top: auto; padding-top: 4px; }
.card-foot .link-arrow { background: none; border: 0; font: 700 .97rem var(--font-body); color: var(--text); cursor: pointer; padding: 8px 0; }
button.card-media { width: 100%; padding: 0; border: 0; cursor: pointer; }
.price { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }

/* Lamp demo */
.lamp-demo { background: var(--stage); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; overflow: hidden; }
.lamp-demo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,207,122,.45), transparent 60%); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.lamp-demo.on::before { opacity: 1; }
.lamp-stage { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; display: grid; place-items: center; }
.lamp-stage svg { width: 78%; height: auto; }
.lamp-shade { fill: var(--lamp-color, #4a423b); transition: fill .5s ease, filter .5s ease; }
.lamp-ridge { stroke: rgba(0,0,0,.28); transition: stroke .5s ease; }
.lamp-demo.on .lamp-shade { fill: color-mix(in srgb, var(--lamp-color, #fff) 35%, var(--glow)); filter: drop-shadow(0 0 22px rgba(255,190,90,.9)); }
.lamp-demo.on .lamp-ridge { stroke: rgba(160,90,20,.45); }

/* Lamp power label + colour dots */
.badge-power { background: var(--badge-bg); }
.badge-inline { align-self: flex-start; }
.dots { display: flex; gap: 6px; padding-top: 4px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.lamp-stage.has-photo { aspect-ratio: 3 / 4; max-width: 360px; }
.lamp-stage.busy .lamp-photo { filter: blur(2px) brightness(.85); }
.sim-tag { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 1; background: var(--badge-bg); color: var(--text); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.lamp-demo:has(.has-photo) { padding: 14px; }
.lamp-demo:has(.has-photo)::before { display: none; }
.lamp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: opacity .6s ease; }
.lamp-photo.on-img { opacity: 0; }
.lamp-demo.on .lamp-photo.on-img { opacity: 1; }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 1rem var(--font-body); cursor: pointer; position: relative; z-index: 1; }
.switch-track { width: 52px; height: 30px; border-radius: 999px; background: var(--switch-off); position: relative; transition: background .3s; }
.switch-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .3s cubic-bezier(.3,1.4,.6,1); }
.switch[aria-pressed="true"] .switch-track { background: var(--accent); }
.switch[aria-pressed="true"] .switch-track::after { inset-inline-start: 25px; }

/* Before / after (art line) */
.ba { display: flex; flex-direction: column; gap: 12px; }
.ba-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--stage); border-radius: var(--radius); padding: 12px; }
.ba-pair.single { grid-template-columns: 1fr; }
.ba-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ba-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.ba-pair.single .ba-fig img { aspect-ratio: auto; max-height: 60vh; object-fit: contain; }
.ba-fig figcaption { text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ba-arrow { color: var(--accent); }
.ba-arrow svg { width: 26px; height: 26px; display: block; }

/* Name personalisation demo */
.name-demo { background: var(--stage); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.name-stage { display: grid; place-items: center; }
.name-stage svg { width: 100%; max-width: 340px; height: auto; }
.name-stage [data-tint] { transition: fill .3s ease; }
.name-controls { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 1.1rem var(--font-head); }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.swatches legend span { color: var(--muted); font-weight: 400; }
.swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: transform .15s, box-shadow .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent); }

/* Modal */
/* Modal */
.modal { width: min(920px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(25,30,25,.6); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 4px; border: 0; background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: var(--surface-2); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px; }
.modal-media { display: flex; flex-direction: column; gap: 14px; }
.modal-media .card-media { border-radius: var(--radius); }
.modal-info { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.modal-info h2 { font-size: 1.9rem; }
.modal-info p { margin: 0; color: var(--muted); }
.specs { padding-inline-start: 1.1em; margin: 0; display: grid; gap: 6px; }
.specs li::marker { color: var(--accent); }
.tabs { display: flex; gap: 18px; }

.sizes { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.sizes legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.size { min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 700 1rem var(--font-body); cursor: pointer; }
.size[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.name-demo.has-photo {padding: 0; overflow: hidden; gap: 14px; }
.name-demo.has-photo .name-stage svg { max-width: none; display: block; }
.name-demo.has-photo .name-controls { padding: 0 16px 16px; }
.name-note { margin: 0; padding: 0 16px; color: var(--muted); font-size: .9rem; }

/* Photo gallery (swipe / arrows / dots) */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > .slide { flex: 0 0 100%; width: 100%; position: relative; scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* label on images that are generated renders, not photos */
.render-tag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; padding: 2px 8px; border-radius: 4px; background: rgba(20,24,20,.72); color: #fff; font: 600 .78rem/1.5 var(--font-body); pointer-events: none; }
.gallery-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #23302A; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.gallery-btn svg { width: 22px; height: 22px; }
.gallery-btn.prev { right: 10px; }
.gallery-btn.next { left: 10px; }
.gallery-dots { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; display: flex; gap: 2px; }
.gallery-dots > * { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.gallery-dots > *::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.gallery-dots > [aria-current="true"]::after { background: #fff; width: 18px; border-radius: 4px; }

/* Small gallery on a product card: swipe or use the arrows without opening the product */
.card-gallery { display: block; }
.card-gallery .gallery-track { height: 100%; cursor: pointer; }
.card-gallery .gallery-track > .slide { height: 100%; }
.card-gallery .gallery-track img { height: 100%; aspect-ratio: auto; }
.card-gallery .gallery-btn { width: 36px; height: 36px; opacity: 0; transition: opacity .2s; }
.card-gallery .gallery-btn svg { width: 18px; height: 18px; }
.card-gallery .gallery-btn.prev { right: 8px; }
.card-gallery .gallery-btn.next { left: 8px; }
.card-gallery:hover .gallery-btn, .card-gallery:focus-within .gallery-btn { opacity: 1; }
.card-gallery .gallery-dots { bottom: 6px; pointer-events: none; }
.card-gallery .gallery-dots > * { width: 14px; }
@media (hover: none) { .card-gallery .gallery-btn { opacity: 1; width: 32px; height: 32px; } }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 22px; }
.video-frame { aspect-ratio: 16 / 9; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; position: relative; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-missing { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: .95rem; }
.video-missing svg { width: 36px; height: 36px; color: var(--accent); margin: 0 auto 8px; opacity: .7; }
.video-card .info { padding: 12px 2px 0; }
.video-card h3 { font-size: 1.15rem; font-weight: 700; }
.video-card p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* Order */
.order { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.order .hand-note { margin-top: 10px; rotate: -3deg; display: inline-block; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 40px; font-size: 1.08rem; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 4px; top: -2px; font: 700 2.1rem/1 var(--font-hand); color: var(--accent); }
.steps strong { color: var(--text); }

/* hides the "Powered by Netlify" corner badge that the host adds to the page */
#nl-badge-frame { display: none !important; }
/* extra space at the bottom so the host's corner badge (and the accessibility button) never cover the footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 96px; color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }

@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  .hero-grid, .modal-body, .order { grid-template-columns: 1fr; }
  .order { gap: 18px; }
  .hero-photos { height: 390px; order: -1; max-width: 460px; width: 100%; margin-inline: auto; }
  .modal-body { padding: 20px; gap: 20px; }
}
@media (max-width: 560px) {
  nav { gap: 14px; }
  nav a { font-size: .95rem; }
  .logo span { display: none; }
  .header-row { gap: 10px; }
  .lights-all { padding: 0 10px; font-size: .88rem; }
  .video-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .card-title { flex-direction: column; gap: 2px; }
  .card-body h3 { font-size: 1.05rem; }
  .card-body p { display: none; }
  .hand-note { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.footer-link { color: var(--text); font-weight: 600; text-underline-offset: 4px; padding: 10px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Short privacy notice next to the WhatsApp order buttons */
.order-note { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.order-note a { color: var(--text); text-underline-offset: 3px; }

/* Legal pages (privacy, terms) */
.legal-page { background: var(--bg); }
.legal { max-width: 760px; padding: 36px 0 96px; display: grid; gap: 12px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.45rem; margin-top: 18px; scroll-margin-top: 72px; }
.legal h3 { font-size: 1.15rem; margin-top: 6px; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.legal a { text-underline-offset: 3px; }
.legal-details { list-style: none; padding: 14px 16px !important; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.legal-missing { color: #8a4b12; font-style: italic; }
.legal-toc, .legal-nav { color: var(--muted); line-height: 2; }
.legal-nav { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Accessibility menu ---------- */
.a11y-fab { position: fixed; bottom: 16px; left: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1f4a8a; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-fab:focus-visible { outline: 3px solid #1f4a8a; outline-offset: 3px; }
.a11y-panel { position: fixed; bottom: 80px; left: 16px; z-index: 40; width: min(300px, 100% - 32px); max-height: calc(100dvh - 100px); overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; display: grid; gap: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.3rem; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 6px; }
.a11y-size div { display: flex; gap: 6px; }
.a11y-size button, .a11y-opt, .a11y-reset { min-height: 44px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 700 1rem var(--font-body); cursor: pointer; }
.a11y-size button { min-width: 48px; }
.a11y-opt { text-align: start; padding: 0 14px; position: relative; }
.a11y-opt::after { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; border-radius: 4px; border: 2px solid currentColor; }
.a11y-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.a11y-opt[aria-pressed="true"]::after { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.a11y-reset { background: none; }
.a11y-link { text-align: center; padding: 8px; font-weight: 600; }

/* Accessibility statement */
.statement { width: min(720px, 100% - 24px); }
.statement-body { padding: 28px; display: grid; gap: 10px; }
.statement-body h2 { font-size: 1.8rem; padding-inline-end: 48px; }
.statement-body h3 { font-size: 1.2rem; margin-top: 8px; }
.statement-body p, .statement-body ul { margin: 0; }
.statement-body ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }

/* Settings from the menu */
html[data-a11y-text="1"] { font-size: 112.5%; }
html[data-a11y-text="2"] { font-size: 125%; }
html[data-a11y-text="3"] { font-size: 140%; }
:root.a11y-contrast {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F1F1F1; --border: #000000; --text: #000000; --muted: #1A1A1A;
  --accent: #1E4A12; --accent-hover: #143509; --accent-2: #5A2E0B; --accent-ink: #FFFFFF; --stage: #F1F1F1; --badge-bg: #FFFFFF; --switch-off: #6B6B6B;
}
.a11y-contrast .chip[aria-pressed="true"] { border-bottom-width: 4px; }
.a11y-contrast .card-media, .a11y-contrast .gallery { outline: 1px solid #000; }
.a11y-links a, .a11y-links .link-arrow, .a11y-links .chip, .a11y-links .footer-link { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #FFF3A3; color: #000 !important; }
.a11y-links .btn, .a11y-links button:not(.swatch) { outline: 2px dashed currentColor; outline-offset: 2px; }
:root.a11y-font { --font-head: "Assistant", Arial, sans-serif; --font-hand: "Assistant", Arial, sans-serif; }
.a11y-font .hand-note { font-size: 1.25rem; font-weight: 700; }
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still { scroll-behavior: auto; }

/* ---------- Opening animation (intro.js) ---------- */
.intro-on, .intro-on body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, var(--surface-2), var(--bg) 70%); }
.intro .printer { width: min(80vw, 400px); max-height: 80vh; overflow: visible; transition: opacity .2s; }
.intro .part, .intro .spin { transform-box: fill-box; transform-origin: center; }
.intro .tip { transition: opacity .15s; }
.intro .tube { transition: opacity .25s; }
.intro-pla, .intro .tube-in { fill: var(--accent); stroke: none; }
.intro .tube-in { fill: none; stroke: var(--accent); }
.intro-stripe { position: absolute; left: 0; right: 0; background: var(--bg); }
.intro-peel { background: transparent; }
.intro-peel .printer { opacity: 0; }
.intro-out { animation: intro-out .35s ease forwards; }
@keyframes intro-out { to { opacity: 0; } }
.intro-skip { position: fixed; top: 16px; inset-inline-start: 16px; z-index: 1001; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; }
.intro-skip:hover { border-color: var(--accent); }
