/* Reamaze — Screen and Shadow
   A printed lattice screen in Doha midday sun. Limestone ground, lit stone, cobalt shadow,
   logo blue for action. Square corners, 1px ink rules, everything on the 48px module.
   Night (dark mode): the screen is lit from behind and its shadow becomes light.
   Variable names --maroon/--pei are kept from the previous theme because pages use them. */
:root {
  --plate: #EEF1F4;      /* brand light grey ground */
  --surface: #FFFFFF;
  --stone: #CBD5E1;      /* the lattice, lit */
  --hole: #16233F;       /* looking through the screen */
  --shade: #1B3A7A;      /* cast shadow */
  --shade-a: .3;
  --ink: #1E2328;        /* brand charcoal, a shade deeper for text */
  --ink-2: #3D454D;
  --ink-3: #5F6770;      /* brand steel grey */
  --maroon: #1565C0;     /* brand blue: actions */
  --maroon-2: #0D47A1;   /* brand deep blue */
  --cobalt: #0D47A1;
  --pei: #C98A1E;        /* sun: focus and small highlights */
  --line: #D2D9E0;
  --rule: #2E3338;
  --ok: #2F7D4F; --warn: #9A4C12; --bad: #B3261E;
  --hdr-bg: rgba(238,241,244,.9);
  --photo: #E3E8EE;
  --photo-2: #E3E8EE;
  --solid-bg: #2E3338;
  --solid-fg: #FFFFFF;
  --deep: #0B1322;
  --tag-bg: rgba(255,255,255,.92);
  --ok-bg: #DDEFE3; --warn-bg: #F7ECDD; --bad-bg: #F8E1E0;
  --swatch-edge: rgba(0,0,0,.18);
  color-scheme: light;
  --font: 'Archivo', 'Noto Kufi Arabic', system-ui, sans-serif;
  --font-cond: 'Archivo', 'Noto Kufi Arabic', system-ui, sans-serif;
  --r-sm: 2px;
  --r-md: 2px;
  --m: 48px;
  --wrap: 1248px;
  --gut: clamp(16px, 4vw, 48px);
}
:root[data-theme="dark"] {
  --plate: #0B1322; --surface: #111C30; --stone: #253049; --hole: #F2C46B; --shade: #F2C46B; --shade-a: .1;
  --ink: #E9EDF3; --ink-2: #B9C2D0; --ink-3: #94A0B3; --maroon: #4C9BEA; --maroon-2: #78B4F0; --cobalt: #142A57;
  --line: #26334C; --rule: #E9EDF3; --ok: #6BC48F; --warn: #E9A562; --bad: #FF8A80;
  --hdr-bg: rgba(11,19,34,.88); --photo: #D9D8D2; --photo-2: #17233A; --solid-bg: #E9EDF3; --solid-fg: #0B1322; --deep: #070D18;
  --tag-bg: rgba(11,19,34,.88); --ok-bg: #173327; --warn-bg: #3A2A17; --bad-bg: #3A1C1B; --swatch-edge: rgba(255,255,255,.25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plate: #0B1322; --surface: #111C30; --stone: #253049; --hole: #F2C46B; --shade: #F2C46B; --shade-a: .1;
    --ink: #E9EDF3; --ink-2: #B9C2D0; --ink-3: #94A0B3; --maroon: #4C9BEA; --maroon-2: #78B4F0; --cobalt: #142A57;
    --line: #26334C; --rule: #E9EDF3; --ok: #6BC48F; --warn: #E9A562; --bad: #FF8A80;
    --hdr-bg: rgba(11,19,34,.88); --photo: #D9D8D2; --photo-2: #17233A; --solid-bg: #E9EDF3; --solid-fg: #0B1322; --deep: #070D18;
    --tag-bg: rgba(11,19,34,.88); --ok-bg: #173327; --warn-bg: #3A2A17; --bad-bg: #3A1C1B; --swatch-edge: rgba(255,255,255,.25);
    color-scheme: dark;
  }
}
:root[dir="rtl"] { --font: 'Noto Kufi Arabic', 'Archivo', system-ui, sans-serif; --font-cond: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; /* nothing may widen the page sideways, in either direction */
  margin: 0; background: var(--plate); color: var(--ink);
  font: 400 17px/1.6 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--maroon); color: #fff; }
html { scrollbar-color: var(--ink-3) var(--plate); accent-color: var(--maroon); caret-color: var(--maroon); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pei); outline-offset: 3px; border-radius: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; }
.skip:focus { top: 8px; background: var(--solid-bg); color: var(--solid-fg); padding: 8px 12px; z-index: 99; }

/* type: Archivo, widened for display; Noto Kufi Arabic for Arabic */
h1, h2, h3 { font-family: var(--font-cond); line-height: 1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.2vw, 96px); font-weight: 800; font-stretch: 115%; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 750; font-stretch: 112%; letter-spacing: -0.03em; }
h3 { font-size: 21px; font-weight: 650; font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; font-stretch: 100%; }
[dir="rtl"] h1 { font-size: clamp(40px, 6vw, 80px); }

/* header: a thin limestone bar ruled in ink */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--hdr-bg); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--rule); }
.hdr .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { height: 36px; width: auto; }
.logo-word { height: 15px; width: auto; }
[dir="rtl"] .logo { direction: ltr; }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.flag { width: 20px; height: auto; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex-shrink: 0; }
.nav { display: flex; gap: 28px; margin-inline-start: 8px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 20px 0 19px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--maroon); }
.hdr-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 1px solid var(--line); border-radius: var(--r-sm); height: 36px; padding: 0 10px; cursor: pointer; font-size: 14px; }
.lang:hover, .theme-btn:hover, .menu-btn:hover { border-color: var(--ink); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; height: 36px; padding: 0 14px; border-radius: var(--r-sm); background: var(--solid-bg); color: var(--solid-fg); font-size: 15px; font-weight: 500; }
.cart-link b { background: var(--pei); color: #13203A; min-width: 20px; height: 20px; font-size: 12px; display: inline-grid; place-items: center; padding: 0 5px; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); height: 36px; padding: 0 10px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; inset-inline: 0; background: var(--plate); flex-direction: column; gap: 0; padding: 4px var(--gut) 16px; border-bottom: 1px solid var(--rule); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
  .hdr .quote-btn { display: none; }
}

/* buttons: square, ruled */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--m); padding: 0 24px; border-radius: var(--r-sm); border: 1px solid var(--ink); background: transparent; text-decoration: none; font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color .18s cubic-bezier(.2,.7,.2,1), color .18s, border-color .18s, transform .12s; }
.btn:hover { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-2); border-color: var(--maroon-2); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #0B1322; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #0B1322; } }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: #13203A; }
.btn-light:hover { background: #fff; border-color: #fff; color: #13203A; }
.btn-line { border-color: rgba(245,245,241,.7); color: #FFFFFF; }
.btn-line:hover { background: #FFFFFF; border-color: #FFFFFF; color: #13203A; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--ink-3); margin: 0; }
.hero-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--pei); margin-inline-end: 24px; vertical-align: middle; transform: rotate(45deg) translateY(-2px); }

/* ---------- home: the screen and its shadow ---------- */
.sunlit { position: relative; overflow: hidden; padding: 0; min-height: min(calc(100svh - 64px), 960px); display: flex; align-items: center; isolation: isolate; --sx: 0; --sy: 0; --scr: 50%; }
.screen { position: absolute; inset-block: 0; inset-inline-end: 0; width: var(--scr); background: var(--stone); z-index: 0; }
.screen svg, .cast svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen .holes { clip-path: inset(100% 0 0 0); transition: clip-path 2.8s steps(56, end) .2s; }
.nozzle { position: absolute; inset-inline: 0; top: 100%; height: 2px; background: var(--pei); z-index: 2; opacity: 0; transition: top 2.8s steps(56, end) .2s, opacity .4s 3s; }
.sunlit.printed .screen .holes { clip-path: inset(0 0 0 0); }
.sunlit.printed .nozzle { top: 0; opacity: 0; }
.sunlit:not(.printed) .nozzle { opacity: 1; }
/* the shadow lands only on the ground in front of the screen, under the type */
.castclip { position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: inset(0 var(--scr) 0 0); }
[dir="rtl"] .castclip { clip-path: inset(0 0 0 var(--scr)); }
.cast {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: var(--scr);
  opacity: 0; transform-origin: 50% 100%;
  transform: translateX(calc(-58% - var(--sx) * 3%)) skewX(calc(32deg + var(--sx) * -5deg)) scaleY(calc(1 + var(--sy) * .03));
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%); mask-image: linear-gradient(to left, #000 30%, transparent 96%);
  transition: opacity 2.4s ease-out .9s, transform .9s cubic-bezier(.16,1,.3,1);
}
.sunlit.printed .cast { opacity: var(--shade-a); }
:root[data-theme="dark"] .cast { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cast { mix-blend-mode: screen; } }
[dir="rtl"] .cast { transform: translateX(calc(58% - var(--sx) * 3%)) skewX(calc(-32deg + var(--sx) * -5deg)); -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 96%); mask-image: linear-gradient(to right, #000 30%, transparent 96%); }
.sun-copy { position: relative; z-index: 1; width: 100%; padding-block: calc(var(--m) * 2); }
.sun-copy > * { max-width: calc(48vw - var(--gut) - max(0px, (100vw - var(--wrap)) / 2)); }
/* brand slogan: a gold kicker above the headline, sitting on the plate beside the screen */
.hero-kicker { font-family: var(--font-cond); font-weight: 700; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .08em; text-transform: uppercase; color: var(--pei); line-height: 1.4; margin: 0 0 18px; }
[dir="rtl"] .hero-kicker { letter-spacing: normal; }
/* the headline runs on past the screen's edge; screen.js leaves a solid stone panel behind it */
.sunlit h1 { max-width: none !important; width: 15ch; font-size: clamp(56px, 7vw, 104px); font-stretch: 108%; margin-bottom: 28px; }
.sunlit .lead { max-width: min(40ch, calc(48vw - var(--gut) - max(0px, (100vw - var(--wrap)) / 2))); }
[dir="rtl"] .sunlit h1 { width: auto; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.3; }
.drop { position: relative; display: block; width: min(600px, 100%); margin-top: 36px; border: 2px dashed var(--maroon); background: var(--surface); cursor: pointer; transition: background-color .2s, border-color .2s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop > span { display: flex; align-items: center; gap: 18px; min-height: 112px; padding: 20px 24px; pointer-events: none; }
.drop svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--maroon); stroke-width: 1.6; stroke-linecap: square; }
.drop b { display: block; font-weight: 650; font-size: 18px; }
.drop span span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.drop .pick { flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--maroon); color: #fff; font-size: 15px; font-weight: 600; }
:root[data-theme="dark"] .drop .pick { color: #0B1322; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drop .pick { color: #0B1322; } }
.drop:hover, .drop.over { border-style: solid; }
.drop:hover .pick { background: var(--maroon-2); }
.drop:focus-within { outline: 2px solid var(--pei); outline-offset: 3px; }
.drop.has-file { border-style: solid; }
.nofile { margin: -8px 0 20px; font-size: 15px; }
.nofile a { font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.nofile a:hover { color: var(--maroon); }
.drop .err { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--bad); }
.drop.bad { border-color: var(--bad); }
.drop.has-file #dropInfo { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.drop [hidden] { display: none; }
@media (max-width: 900px) {
  .sunlit { flex-direction: column; align-items: stretch; min-height: 0; }
  .screen { position: relative; width: 100%; height: 42vw; min-height: 200px; inset: auto; }
  .castclip, [dir="rtl"] .castclip { clip-path: inset(max(42vw, 200px) 0 0 0); }
  .cast { width: 100%; height: 42vw; min-height: 200px; inset-block: auto; top: max(42vw, 200px); transform: skewX(calc(30deg + var(--sx) * -5deg)) scaleY(-1); transform-origin: 50% 0; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
  [dir="rtl"] .cast { transform: skewX(-30deg) scaleY(-1); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
  .sun-copy { padding-block: var(--m) calc(var(--m) * 1.5); }
  .sun-copy > *, .sunlit .lead { max-width: none; }
  .sunlit h1 { width: auto; }
}

/* sections: two modules of air, ruled in ink */
section { padding: calc(var(--m) * 2) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: var(--m); flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 12px 0 0; color: var(--ink-2); }
.sec-head > a { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.sec-head > a:hover { color: var(--maroon); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* home: the three trades as ruled rows, not cards */
.trades { border-top: 1px solid var(--rule); }
.trade { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: var(--m); align-items: center; padding: 24px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.trade:last-child { border-bottom: 1px solid var(--rule); }
.trade h3 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 750; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; transition: color .2s; }
[dir="rtl"] .trade h3 { line-height: 1.35; letter-spacing: 0; }
.trade p { margin: 0; color: var(--ink-2); }
.trade img, .trade video { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; background: var(--photo-2); filter: grayscale(.35) contrast(1.05); transition: filter .4s; }
.trade:hover h3 { color: var(--maroon); }
.trade:hover img, .trade:hover video { filter: none; }
@media (max-width: 900px) { .trade { grid-template-columns: 1fr; gap: 12px; } .trade img, .trade video { order: -1; } }

/* home: the order process as four fixed stations on one rail */
.stations-sec { background: var(--surface); border-block: 1px solid var(--line); }
.stations { list-style: none; margin: var(--m) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.stations li { counter-increment: s; position: relative; padding: 32px 24px 0 0; border-top: 1px solid var(--line); }
[dir="rtl"] .stations li { padding: 32px 0 0 24px; }
.stations li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 3px; width: 0; background: var(--maroon); transition: width .9s cubic-bezier(.16,1,.3,1); }
.stations li::after { content: counter(s); position: absolute; top: -13px; inset-inline-start: 0; width: 24px; height: 24px; display: grid; place-items: center; font: 650 13px/1 var(--font); background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s, border-color .3s; }
.stations li.on::before { width: 100%; }
.stations li.on::after { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.stations li:nth-child(2).on::before, .stations li:nth-child(2).on::after { transition-delay: .15s; }
.stations li:nth-child(3).on::before, .stations li:nth-child(3).on::after { transition-delay: .3s; }
.stations li:nth-child(4).on::before, .stations li:nth-child(4).on::after { transition-delay: .45s; }
.stations h3 { font-size: 19px; }
.stations p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .stations { grid-template-columns: 1fr 1fr; row-gap: var(--m); } }
@media (max-width: 520px) { .stations { grid-template-columns: 1fr; } }
/* older pages still use .steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 22px 0 0; border-top: 1px solid var(--rule); }
[dir="rtl"] .steps li { padding: 22px 0 0 22px; }
.steps li::before { content: counter(s); display: block; font: 650 14px/1 var(--font); color: var(--maroon); margin-bottom: 14px; }
.steps h3 { font-size: 18px; }
.steps p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* home: catalogue in a full cobalt field */
.cobalt { background: var(--cobalt); color: #FFFFFF; }
.cobalt p { color: #CBD5E8; }
.cat-promo { display: grid; grid-template-columns: 6fr 6fr; gap: var(--m); align-items: center; }
.cat-promo-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding-bottom: var(--m); }
.cat-promo-imgs img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; background: var(--photo); }
.cat-promo-imgs img:nth-child(2) { transform: translateY(var(--m)); }
@media (max-width: 900px) { .cat-promo { grid-template-columns: 1fr; } .cat-promo-imgs img:nth-child(2) { transform: none; } }

/* home: the close */
.close .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: var(--m); align-items: end; }
.close h2 { font-size: clamp(40px, 5vw, 72px); max-width: 16ch; }
.close p { font-size: 19px; color: var(--ink-2); }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts a { text-decoration: none; } .facts a:hover { color: var(--maroon); text-decoration: underline; }
@media (max-width: 900px) { .close .wrap { grid-template-columns: 1fr; } }

/* printed reveal: pictures build up in 0.2 mm steps as they come into view */
.js .print-in { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s steps(22, end); }
.js .print-in.in { clip-path: inset(0 0 0 0); }

/* services: photo strip (services page) */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc img, .svc-block img { width: 100%; height: auto; }
.svc { display: block; text-decoration: none; }
.svc img { aspect-ratio: 4/3; object-fit: cover; margin-bottom: 16px; background: var(--photo-2); }
.svc h3 { margin-bottom: 6px; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc:hover h3 { color: var(--maroon); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--m) 24px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .ph { position: relative; aspect-ratio: 1; background: var(--photo); overflow: hidden; margin-bottom: 14px; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
/* hover loop: the rendered video fades in over the photo once it is actually playing */
.card .ph video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.card.moving .ph video.loop { opacity: 1; }
.card .ph { transition: transform .12s ease-out; }
.card:active .ph { transform: scale(.985); }
/* printed in: rows build up from the bottom in layer steps, the nozzle line riding the top of the print */
.card .ph::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 2px; background: var(--pei); opacity: 0; z-index: 2; pointer-events: none; }
.card.print:not(.in) .ph { clip-path: inset(100% 0 0 0); }
.card.print.in:not(.done) .ph { animation: print-in 1s steps(20, end) var(--d, 0ms) both; }
.card.print.in:not(.done) .ph::after { animation: nozzle 1s steps(20, end) var(--d, 0ms) both; }
@keyframes print-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle { from { top: 100%; opacity: 1; } 96% { top: 0; opacity: 1; } to { top: 0; opacity: 0; } }
.card:hover .ph img { transform: scale(1.025); }
.card h3 { font-size: 17px; margin: 0 0 2px; font-weight: 600; }
.card:hover h3 { color: var(--maroon); }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches i { width: 12px; height: 12px; border: 1px solid var(--swatch-edge); }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; } .card h3 { font-size: 15px; } .card .row { flex-direction: column; gap: 2px; } }
.chip { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--surface); font-size: 13px; padding: 4px 9px; color: var(--ink-2); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 8px 16px; cursor: pointer; font-size: 15px; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }

/* product page */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--m); padding: 40px 0 72px; }
.gallery .main { aspect-ratio: 1; overflow: hidden; background: var(--photo); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 84px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; overflow: hidden; background: var(--photo); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--maroon); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .motion { position: relative; }
.thumbs .motion svg { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; padding: 8px; fill: #fff; background: rgba(19,32,58,.72); border-radius: 50%; }
.gallery .main { position: relative; }
.gallery .main video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .main [hidden] { display: none; }
.pdp .price { font-size: 28px; display: block; margin: 4px 0 18px; }
.field { margin-bottom: 20px; }
.field > label, .field > .lbl { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors label { cursor: pointer; }
.colors input { position: absolute; opacity: 0; pointer-events: none; }
.colors span { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 6px 12px 6px 6px; font-size: 14px; background: var(--surface); }
[dir="rtl"] .colors span { padding: 6px 6px 6px 12px; }
.colors span i { width: 22px; height: 22px; border: 1px solid var(--swatch-edge); }
.colors input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.colors input:focus-visible + span { outline: 2px solid var(--pei); outline-offset: 2px; }
.qty { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.qty button { width: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input, .qty input[type=number] { width: 48px; min-height: 46px; padding: 0; text-align: center; border: 0; background: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; font-variant-numeric: tabular-nums; }
.specs th, .specs td { text-align: start; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--ink-3); font-weight: 400; width: 40%; }
.note { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; } }

/* forms */
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: var(--m); padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); outline: none; }
.err { color: var(--bad); font-size: 14px; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 14px; background: var(--surface); cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.radio-list .fee { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

/* instant STL estimate (quote page and home drop panel) */
.estimate { border: 1px solid var(--rule); background: var(--surface); padding: 18px 20px; margin: 4px 0 20px; }
.estimate .est-h { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.estimate .est-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.estimate .est-p b { font-size: 34px; font-weight: 750; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.1; }
.estimate .est-t { color: var(--ink-2); font-weight: 600; }
.estimate .est-f { color: var(--ink-2); font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.estimate p { margin: 10px 0 0; }
.drop .drop-price { display: block; margin-top: 6px; font-size: 16px; font-weight: 650; color: var(--maroon); font-variant-numeric: tabular-nums; }

/* cart & checkout */
.page { padding: var(--m) 0 calc(var(--m) * 2); }
.cols { display: grid; grid-template-columns: 1fr 380px; gap: var(--m); align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 96px; height: 96px; object-fit: cover; background: var(--photo); }
.line h3 { font-size: 17px; margin: 0; }
.line .meta { font-size: 14px; color: var(--ink-3); }
.line .ctl { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: 14px; }
.linkbtn:hover { color: var(--ink); }
.summary { background: var(--surface); border: 1px solid var(--rule); padding: 24px; position: sticky; top: 88px; }
.summary h2 { font-size: 24px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.summary dd { margin: 0; text-align: end; }
.summary .total { font-weight: 700; font-size: 20px; border-top: 1px solid var(--rule); padding-top: 12px; }
.pay-marks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.pay-marks span { border: 1px solid var(--line); padding: 3px 7px; }
.empty { text-align: center; padding: 60px 0; }
.empty p { margin-inline: auto; }

.status { display: inline-block; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.status.paid { background: var(--ok-bg); color: var(--ok); }
.status.pending { background: var(--warn-bg); color: var(--warn); }
.status.failed { background: var(--bad-bg); color: var(--bad); }

/* quote cta (other pages) */
.cta { background: var(--cobalt); color: #FFFFFF; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.cta p { color: #CBD5E8; }
.cta .btn { border-color: #FFFFFF; color: #FFFFFF; }
.cta .btn:hover { background: #FFFFFF; color: #13203A; }
.cta .btn-primary { background: #FFFFFF; color: #13203A; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* services page */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); align-items: center; padding: var(--m) 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.svc-block:nth-child(even) .svc-img { order: 2; }
.svc-block img { aspect-ratio: 4/3; object-fit: cover; }
.svc-block ul { padding-inline-start: 20px; color: var(--ink-2); }
.svc-block li { margin-bottom: 6px; }
.svc-block li::marker { color: var(--maroon); }
@media (max-width: 860px) { .svc-block { grid-template-columns: 1fr; } .svc-block:nth-child(even) .svc-img { order: 0; } }

/* footer: night ground */
.ftr { background: var(--deep); color: #B9C2D0; padding: calc(var(--m) * 1.5) 0 28px; font-size: 15px; }
.ftr .cols4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ftr h4 { color: #FFFFFF; font-size: 15px; margin: 0 0 14px; font-weight: 650; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .logo { margin-bottom: 16px; }
.ftr .logo-mark { height: 44px; }
.ftr .logo-word { height: 17px; }
.ftr .base { border-top: 1px solid #253049; margin-top: var(--m); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 760px) { .ftr .cols4 { grid-template-columns: 1fr 1fr; } .ftr .cols4 > div:first-child { grid-column: 1 / -1; } }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--solid-bg); color: var(--solid-fg); padding: 12px 18px; opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.16,1,.3,1); z-index: 50; display: flex; gap: 14px; align-items: center; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(11,19,34,.45); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: inherit; font-weight: 600; }
.test-banner { background: var(--pei); color: #13203A; text-align: center; font-size: 14px; padding: 6px var(--gut); }
@media (max-width: 900px) { .hdr .wrap { gap: 10px; } .hdr-tools { gap: 6px; } }
@media (max-width: 440px) { .hdr .logo-word { display: none !important; } .lang span { display: none; } .lang, .menu-btn { padding: 0 8px; } .cart-link { padding: 0 10px; } }

/* theme switch + logo for dark backgrounds */
.theme-btn { background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: block; } .theme-btn .sun { display: none; }
.logo .for-dark { display: none; }
:root[data-theme="dark"] .theme-btn .moon, :root[data-theme="dark"] .logo .for-light { display: none; }
:root[data-theme="dark"] .theme-btn .sun, :root[data-theme="dark"] .logo .for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .moon, :root:not([data-theme="light"]) .logo .for-light { display: none; }
  :root:not([data-theme="light"]) .theme-btn .sun, :root:not([data-theme="light"]) .logo .for-dark { display: block; }
}
.ftr .logo .for-dark { display: block; } .ftr .logo .for-light { display: none !important; }
input[type=radio], input[type=checkbox] { accent-color: var(--maroon); }
body { transition: background-color .2s, color .2s; }

/* catalogue */
.lines { position: sticky; top: 64px; z-index: 5; margin-inline: calc(var(--gut) * -1); padding: 12px var(--gut); background: var(--hdr-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lines .chip-link { flex: none; transition: background-color .25s, color .25s, border-color .25s; }
.lines .chip-link[aria-current] { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-head .lead { margin-bottom: 0; }
.chip-link { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; font-size: 15px; text-decoration: none; }
.chip-link:hover { border-color: var(--ink); }
.cat-line { padding: 36px 0 8px; border-top: 1px solid var(--rule); margin-top: 28px; scroll-margin-top: 140px; }
.card .code { font: 650 13px/1 var(--font); color: var(--maroon); letter-spacing: .04em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.cat-blurb { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* bot check on the quote form (Cloudflare Turnstile); usually invisible */
.ts { margin: 18px 0 4px; min-height: 0; }

/* partner discount code (cart, quote) */
.promo-form { margin: 14px 0 6px; }
.promo-row { display: flex; gap: 8px; margin-top: 6px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.promo-row .btn { flex: none; }
.promo-on { color: #1F7A4D; font-weight: 600; margin: 10px 0; }
.promo-on.err { color: var(--danger, #B42318); }
.partner-collabs{padding:clamp(58px,8vw,104px) 0;background:#eef1f4}.partner-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:34px}.partner-eyebrow{font:700 11px/1.4 var(--font-mono,monospace);letter-spacing:.14em;color:#1565c0}.partner-heading h2{max-width:650px;margin:10px 0 0;color:#2e3338;font-size:clamp(32px,4.5vw,52px);line-height:1.08;letter-spacing:-.04em}.partner-heading>p{max-width:370px;margin:0 0 4px;color:#5f6770}.partner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.partner-card{display:flex;flex-direction:column;align-items:flex-start;min-height:345px;padding:26px;border:1px solid #dce2e8;border-radius:16px;background:#fff;box-shadow:0 14px 38px #2e33380a}.partner-brands{display:flex;align-items:center;gap:14px;min-height:72px;margin-bottom:20px}.partner-brands>span{color:#87919b;font:500 24px/1 Arial,sans-serif}.partner-reamaze{width:62px;height:62px;object-fit:contain}.partner-d20{width:72px;height:72px;object-fit:contain;border-radius:50%;background:#fff}.partner-vipet{width:112px;height:72px;object-fit:contain}.partner-tag{color:#5f6770;font:700 9px/1.4 var(--font-mono,monospace);letter-spacing:.12em}.partner-card h3{margin:8px 0;font-size:23px;line-height:1.2;color:#2e3338}.partner-card>p{max-width:48ch;margin:0 0 18px;color:#5f6770;font-size:14px;line-height:1.65}.partner-offer-pill{margin-top:auto;margin-bottom:14px;padding:8px 11px;border-radius:7px;background:#e8f1fb;color:#0d47a1;font-size:12px;font-weight:700}.partner-link{display:flex;align-items:center;gap:10px;margin-top:auto;color:#1565c0;font-size:13px;font-weight:700;text-decoration:none}.vipet-partner-card .partner-link{margin-top:0}.partner-link:hover{color:#0d47a1}.partner-link b{font-size:18px}@media(max-width:760px){.partner-heading{display:block}.partner-heading>p{margin-top:14px}.partner-grid{grid-template-columns:1fr}.partner-card{min-height:0}}@media(max-width:520px){.partner-card{padding:21px}.partner-card h3{font-size:20px}.partner-brands{margin-bottom:16px}}
/* Dark mode: light-blue buttons carry dark text, for readable contrast (white on #4C9BEA is under 3:1). */
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #0B1322; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #0B1322; } }

/* header: the "Reamaze services" menu */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 20px 0 19px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-drop[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.nav-drop summary:hover, .nav-drop[open] summary, .nav-drop[data-current] summary { color: var(--ink); border-color: var(--maroon); }
.nav-drop__list { position: absolute; top: 100%; inset-inline-start: -16px; min-width: 250px; display: grid; padding: 8px; background: var(--plate); border: 1px solid var(--line); border-top: 3px solid var(--maroon); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); z-index: 30; }
.nav .nav-drop__list a { padding: 12px 14px; border: 0; margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.nav .nav-drop__list a:hover, .nav .nav-drop__list a[aria-current="page"] { background: var(--surface); color: var(--maroon); }
.nav .nav-drop__list a:last-child { border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
@media (max-width: 860px) {
  .nav-drop summary { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; justify-content: space-between; }
  .nav-drop__list { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px; padding-inline-start: 14px; background: none; }
  .nav .nav-drop__list a { border-bottom: 1px solid var(--line); padding: 12px 0; }
}

/* services menu, grouped by business line */
.nav-drop__list { min-width: 280px; }
.nav-group + .nav-group { border-top: 1px solid var(--line); }
.nav .nav-drop__list a.nav-group__h { font-weight: 750; font-size: 16px; color: var(--ink); border: 0; }
.nav-group__items { display: grid; padding: 0 0 8px; }
.nav .nav-drop__list .nav-group__items a { padding: 8px 14px; padding-inline-start: 28px; font-size: 15px; font-weight: 500; color: var(--ink-2); border: 0; }
.nav .nav-drop__list .nav-group__items a:last-child { border-top: 0; font-weight: 500; }
.nav .nav-drop__list a.nav-all { border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 15px; }
@media (max-width: 860px) {
  .nav .nav-drop__list a.nav-group__h { padding: 12px 0; border-bottom: 0; }
  .nav .nav-drop__list .nav-group__items a { padding: 10px 0; padding-inline-start: 16px; border-bottom: 0; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .nav-group + .nav-group { border-top: 0; }
}
.nav .nav-drop__list a.nav-group__h, .nav .nav-drop__list a.nav-all { display: block; padding: 12px 14px; }
@media (max-width: 860px) { .nav .nav-drop__list a.nav-group__h, .nav .nav-drop__list a.nav-all { padding: 12px 0; } }

/* footer link that opens the quick-answers helper */
.ftr-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.ftr-link:hover { text-decoration: underline; }

/* ----- 404: a print that came off the bed ----- */
.nf__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; min-height: 56vh; }
.nf__art svg { display: block; width: 100%; height: auto; max-width: 440px; margin-inline: auto; }
.nf__bed { fill: var(--line); } .nf__good rect { fill: var(--maroon, #1565C0); }
.nf__mess { fill: none; stroke: #F2C46B; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.nf__nozzle { fill: var(--ink-3); transform: translate(18px, 96px); }
.nf__code { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 6px; }
.nf h1 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 12px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
@media (prefers-reduced-motion: no-preference) {
  .nf__mess { animation: nf-draw 2.6s cubic-bezier(.4, 0, .2, 1) .35s both; }
  .nf__nozzle { animation: nf-wander 2.6s cubic-bezier(.4, 0, .2, 1) .35s both; }
  .nf__good rect { animation: nf-rise .5s cubic-bezier(.16, 1, .3, 1) both; } .nf__good rect:nth-child(2) { animation-delay: .06s; } .nf__good rect:nth-child(3) { animation-delay: .12s; } .nf__good rect:nth-child(4) { animation-delay: .18s; }
}
@keyframes nf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nf-wander { 0% { transform: translate(0, 138px); } 25% { transform: translate(-58px, 84px); } 50% { transform: translate(40px, 62px); } 75% { transform: translate(-22px, 104px); } 100% { transform: translate(18px, 96px); } }
@keyframes nf-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .nf__wrap { grid-template-columns: minmax(0, 1fr); } .nf__art svg { max-width: 260px; } }

/* ----- a filament line is laid along the bottom of the header as the page scrolls ----- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hdr::after { content: ''; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, #1565C0, #F2C46B); transform: scaleX(0); transform-origin: 0 50%; animation: lay-line linear both; animation-timeline: scroll(root block); pointer-events: none; }
    [dir="rtl"] .hdr::after { transform-origin: 100% 50%; background: linear-gradient(270deg, #1565C0, #F2C46B); }
  }
}
@keyframes lay-line { to { transform: scaleX(1); } }

/* the shop's product list as it is in the HTML, before the script redraws it */
.pcard-static { display: grid; gap: 6px; text-decoration: none; color: inherit; font-weight: 600; } .pcard-static img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--photo); } .pcard-static span + span { font-weight: 400; color: var(--ink-2); }

/* plain link list in the HTML (replaced by the footer once the script runs) */
.static-nav { padding: 24px var(--gutter, 20px); font-size: 14px; } .static-nav ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; } .static-nav p { margin: 0; color: var(--ink-3); }
/* common questions */
.faq { margin-top: var(--m, 56px); max-width: 820px; } .faq h2 { margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); } .faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--ink-3); } .faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 68ch; }

/* service pages: a clip sits in the picture slot like an image, and generated pictures carry a small note */
.svc-block video { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.svc-note { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); opacity: .75; }

/* recent work (coming soon) and the answers page */
.soon { margin-top: var(--m); padding: clamp(28px, 5vw, 64px); border: 1px dashed var(--rule); border-radius: 14px; max-width: 760px; }
.soon__tag { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 99px; background: var(--maroon); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.soon h2 { font-size: clamp(26px, 3.4vw, 40px); } .soon p { max-width: 60ch; color: var(--ink-2); }
.guide-toc ul { list-style: none; padding: 0; margin: var(--m) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 6px 24px; }
.guide-toc a { display: block; padding: 6px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.guide-toc a:hover { color: var(--maroon); }
.guide { padding: var(--m) 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; max-width: 780px; }
.guide h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; } .guide p { color: var(--ink-2); font-size: 17px; line-height: 1.65; margin: 0; }
.guide-meta { color: var(--ink-2); font-size: 14px; margin: 0; }
.guide-tbl { overflow-x: auto; margin-top: 18px; } .guide-tbl table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; } .guide-tbl th, .guide-tbl td { text-align: start; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 25%, transparent); vertical-align: top; } .guide-tbl thead th { font-size: 13px; color: var(--ink-2); }
