/* =========================================================================
   GBP Ceramics - "Porcelain & Navy" design system
   ---------------------------------------------------------------------
   Direction: a showroom catalogue. Warm porcelain paper, the logo's navy
   as ink, the logo's copper swoosh as the one accent. Fraunces (serif,
   optical sizes) carries the headlines; Inter carries everything else.
   Photography of real tile faces does the decorating - the chrome stays
   quiet: hairlines, soft shadows, 14px card radius, pill buttons.
   Dark theme ("midnight") swaps porcelain for deep navy, ink for ivory.
   ========================================================================= */

:root {
  color-scheme: light;

  /* surfaces */
  --paper: #f7f3ec;          /* porcelain page */
  --paper-2: #ffffff;        /* cards */
  --paper-3: #ece5d9;        /* stone wells, image placeholders */
  --paper-4: #e3dacb;

  /* ink */
  --ink: #10233b;            /* navy ink, from the wordmark */
  --ink-soft: #3b4859;
  --muted: #69655e;          /* 5.1:1 on --paper */
  --line: rgba(16, 35, 59, .11);
  --line-strong: rgba(16, 35, 59, .22);

  /* brand */
  --brand: #0d3461;          /* logo navy */
  --brand-2: #0a2747;
  --accent: #9e4a22;         /* logo copper, deepened: 5.5:1 on paper, 4.9:1 on stone */
  --accent-dark: #823b1a;
  --accent-soft: rgba(181, 87, 42, .09);
  --gold: #c9a36a;

  --dark: #0b1a2c;           /* always-dark surfaces: footer, photo stages */
  --dark-2: #102338;
  --on-dark: #f3eee6;
  --white: #ffffff;
  --wa: #0f7d42;
  --danger: #b3261e;
  --ok: #0f7d42;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;

  --header-h: 76px;
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 40px);

  --shadow-sm: 0 1px 2px rgba(16, 35, 59, .06), 0 2px 8px rgba(16, 35, 59, .05);
  --shadow: 0 2px 6px rgba(16, 35, 59, .05), 0 18px 40px -12px rgba(16, 35, 59, .16);
  --shadow-lg: 0 30px 80px -20px rgba(16, 35, 59, .35);

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(181, 87, 42, .2); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 450;
  font-optical-sizing: auto;
  color: var(--ink);
  letter-spacing: -.022em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); font-weight: 400; letter-spacing: -.03em; line-height: .98; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.32rem; line-height: 1.2; letter-spacing: -.012em; }
h4 { font-size: 1.05rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 380; color: var(--accent); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; flex: none; border-radius: 2px; }

.lede { font-size: clamp(1.04rem, 1.3vw, 1.16rem); line-height: 1.65; color: var(--ink-soft); max-width: 56ch; margin-top: 18px; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ wrap */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--paper2 { background: var(--paper-2); }
.section--stone { background: var(--paper-3); }
.section--rule { border-top: 1px solid var(--line); }

.section--dark { background: var(--dark); color: rgba(243, 238, 230, .78); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lede, .section--dark .muted { color: rgba(243, 238, 230, .68); }
.section--dark .eyebrow { color: var(--gold); }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 62ch; }
.section-head h2 + .lede { margin-top: 14px; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 18px 48px; align-items: end;
}
.section-head--split .lede { margin-top: 0; justify-self: end; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } .section-head--split .lede { justify-self: start; } }

/* page heads on inner pages */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 84px)); padding-bottom: clamp(28px, 4vw, 48px); position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper-2);
  --btn-bd: var(--btn-bg);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .35); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-2); box-shadow: none; }
.btn--terra { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--terra:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(243, 238, 230, .34); }
.btn--on-dark:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); box-shadow: none; }
.btn--light { --btn-bg: var(--on-dark); --btn-fg: var(--dark); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--dark); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn--wa:hover { background: #0b6534; border-color: #0b6534; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color .2s ease, color .2s ease;
}
.text-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link:hover svg { transform: translateX(3px); }

/* ----------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  background: rgba(247, 243, 236, .78);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.on-hero { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-solid { background: rgba(247, 243, 236, .9); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; overflow: hidden; background: #fff; border-radius: 8px; padding: 2px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand > span { min-width: 0; display: block; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
.brand-sub { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; font-size: .93rem; font-weight: 500;
  text-decoration: none; color: var(--ink-soft); padding: 9px 16px; border-radius: var(--pill);
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(16, 35, 59, .05); }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(16, 35, 59, .07); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-link, .icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--ink); background: transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.icon-link svg, .icon-btn svg { width: 17px; height: 17px; }
.icon-link:hover, .icon-btn:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.icon-btn.is-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.header-actions .btn { min-height: 42px; padding: 0 18px; font-size: .88rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  border-radius: 50%; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .site-nav {
    position: absolute; inset: var(--header-h) 12px auto 12px;
    flex-direction: column; align-items: stretch; gap: 2px; display: none;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; margin-left: 0; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; color: var(--ink); }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 0 13px; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px));
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* soft daylight wash behind the slabs */
  content: ""; position: absolute; z-index: -1;
  width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  right: -18vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 163, 106, .22), rgba(201, 163, 106, 0));
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-copy { padding-block: 12px; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 5.3rem); max-width: 13ch; }
.hero h1 em { display: inline; }
.hero .lede { max-width: 44ch; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.hero-proof b { color: var(--ink); font-weight: 600; }
.hero-proof-sep { width: 1px; height: 22px; background: var(--line-strong); }

/* the visual: three slabs of real tile faces, staggered like the logo,
   resting on the copper swoosh */
.hero-slabs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px); align-items: end;
  height: clamp(380px, 46vw, 600px); padding-bottom: 46px;
}
.slab {
  position: relative; margin: 0; height: 100%; overflow: hidden;
  border-radius: 12px 12px 4px 4px; background: var(--paper-3);
  box-shadow: 0 30px 60px -28px rgba(16, 35, 59, .45), 0 2px 6px rgba(16, 35, 59, .08);
  transform: translateY(var(--rise, 0));
}
.slab img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.slab::after {
  /* glaze highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .1) 100%);
}
.slab--1 { height: 64%; }
.slab--2 { height: 100%; }
.slab--3 { height: 80%; }
.hero-slabs:hover .slab img { transform: scale(1.05); }
.hero-swoosh {
  position: absolute; left: -6%; right: -4%; bottom: 0; width: 110%; height: 80px;
  color: var(--accent); pointer-events: none; z-index: 2;
}
.hero-badge {
  position: absolute; z-index: 3; left: -26px; top: 18%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .92); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: .86rem; line-height: 1.25;
}
.hero-badge b { display: block; font-weight: 650; }
.hero-badge span { color: var(--muted); font-size: .78rem; }
.hero-badge-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.hero-badge-icon svg { width: 18px; height: 18px; }
.hero-badge--2 { left: auto; right: -14px; top: auto; bottom: 30%; }
.hero-badge--2 .hero-badge-icon { background: rgba(18, 140, 74, .1); color: var(--wa); }
.hero-badge.is-closed .hero-badge-icon { background: rgba(179, 38, 30, .1); color: var(--danger); }

/* legacy hero-plate kept for other templates */
.hero-plate { position: relative; border-radius: var(--radius-lg); background: var(--dark); aspect-ratio: 4 / 3; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; height: 100%; }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim, .hero-plate-cap, .hero-hint, .scroll-cue, .hero-content { display: none; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: 14ch; }
  .hero-slabs { height: clamp(320px, 70vw, 480px); }
  .hero-badge { left: 8px; }
  .hero-badge--2 { right: 8px; left: auto; }
}

/* trust strip under the hero */
.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-fact {
  display: flex; flex-direction: column; gap: 4px; padding: 24px 24px 24px 0;
  font-size: .88rem; color: var(--muted); line-height: 1.4;
}
.hero-fact + .hero-fact { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-fact b { font-family: var(--font-display); font-weight: 450; font-size: 1.7rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.hero-fact .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
@media (max-width: 820px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-fact { padding: 18px 14px 18px 0; }
  .hero-fact + .hero-fact { padding-left: 14px; }
  .hero-fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero-fact:nth-child(4) { border-top: 1px solid var(--line); }
}

[data-stars] { display: inline-flex; gap: 2px; vertical-align: -1px; }
[data-stars] svg { width: 13px; height: 13px; display: inline-block; }

/* ----------------------------------------------------------------- ticker */

.marquee { overflow: hidden; padding-block: 22px; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -.01em;
  color: var(--ink); white-space: nowrap;
}
.marquee-item svg { width: 14px; height: 14px; color: var(--accent); order: 2; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- range grid */

.range-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px); counter-reset: range;
}
.range-card {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; background: var(--paper-2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  counter-increment: range;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.range-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.range-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.range-visual::after {
  content: counter(range, decimal-leading-zero);
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font-size: .72rem; font-weight: 650; letter-spacing: .08em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.range-visual canvas, .range-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.range-card:hover .range-visual img, .range-card:hover .range-visual canvas { transform: scale(1.06); }
.range-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.range-body h3 { margin-bottom: 8px; font-size: 1.42rem; }
.range-body p {
  font-size: .93rem; color: var(--muted); line-height: 1.55; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.range-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--accent);
}
.range-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.range-card:hover .range-link svg { transform: translateX(4px); }

/* first card is a 2x2 lead on wide screens; six ranges fill a clean 3x3 */
@media (min-width: 981px) {
  .range-grid--feature .range-card:first-child { grid-column: span 2; grid-row: span 2; }
  .range-grid--feature .range-card:first-child .range-visual { aspect-ratio: auto; flex: 1 1 auto; min-height: 380px; }
  .range-grid--feature .range-card:first-child .range-visual img { position: absolute; inset: 0; object-position: 50% 70%; }
  .range-grid--feature .range-card:first-child .range-body { flex: 0 0 auto; padding: 26px 28px 28px; }
  .range-grid--feature .range-card:first-child h3 { font-size: 2rem; }
}
@media (max-width: 980px) { .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .range-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- pillars */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.pillar {
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line);
}
.pillar { position: relative; }
.pillar-num {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 3.4rem; line-height: 1; letter-spacing: -.03em; color: var(--accent);
  padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: .95rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- showroom */

.showroom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.showroom-photo { position: relative; margin: 0; }
.showroom-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.showroom-photo figcaption {
  position: absolute; left: 18px; bottom: 18px;
  padding: 8px 14px; border-radius: var(--pill);
  background: rgba(11, 26, 44, .72); color: var(--on-dark);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 500;
}
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
@media (max-width: 900px) { .showroom { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ toolbar/chips */

.toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px 24px; align-items: center;
  margin-bottom: 24px; padding: 10px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  border-radius: var(--pill); padding: 9px 16px; min-height: 40px;
  font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: rgba(16, 35, 59, .05); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

.search-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); padding: 0 16px; border-radius: var(--pill);
  background: var(--paper); min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search-box input {
  border: 0; background: transparent; width: 100%; padding: 11px 0;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); outline: none;
}
.search-box input::placeholder { color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

@media (max-width: 820px) { .toolbar { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- product cards */

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.product-grid:empty { display: none; }
@media (min-width: 861px) { [data-featured].product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card[data-open], .product-card[role="button"] { cursor: pointer; }

.product-media { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-3); }
.product-media img, .product-media canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.05); }

.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.product-cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.product-name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 450; letter-spacing: -.01em; line-height: 1.22; color: var(--ink); }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product-specs li { font-size: .78rem; font-weight: 500; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 3px 10px; border-radius: var(--pill); }
.product-body > p { font-size: .88rem; color: var(--muted); }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.product-actions .btn { flex: 1; }

.product-media .badge, .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff; border-radius: var(--pill);
  font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px;
}

/* ------------------------------------------------------------- empty state */

.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 30px; max-width: 64ch; background: var(--paper-2); }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------------------------------------------ modal */

.modal {
  position: fixed; inset: 0; z-index: 120; display: none; padding: 24px;
  overflow-y: auto; background: rgba(11, 26, 44, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal.is-open { display: grid; place-items: center; animation: fade-in .25s ease; }
.modal-card {
  position: relative; width: min(1060px, 100%);
  background: var(--paper-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop-in .35s var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
  border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background-color .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--ink); color: var(--paper-2); }
.modal-close svg { width: 16px; height: 16px; }

.inspect-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.inspect-stage { position: relative; min-height: 460px; background: var(--paper-3); }
.inspect-stage > canvas, .inspect-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; touch-action: none; }
.inspect-thumbs {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px;
}
.inspect-thumbs::-webkit-scrollbar { display: none; }
.inspect-thumb {
  flex: none; width: 58px; height: 58px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .7); background: var(--paper-3); opacity: .78;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: opacity .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.inspect-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inspect-thumb:hover { opacity: 1; transform: translateY(-2px); }
.inspect-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.inspect-stage .hint:empty { display: none; }
.inspect-stage .hint {
  top: 14px; bottom: auto;
  position: absolute; left: 16px; padding: 6px 12px; border-radius: var(--pill);
  background: rgba(11, 26, 44, .6); color: rgba(243, 238, 230, .9);
  font-size: .74rem; pointer-events: none;
}
.inspect-body { padding: 40px 36px 32px; }
.inspect-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.inspect-body .product-cat { margin-bottom: 12px; display: block; }

.spec-table { width: 100%; border-collapse: collapse; margin-block: 20px 24px; }
.spec-table tr { border-top: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 12px 0; text-align: left; vertical-align: top; }
.spec-table th { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 40%; }
.spec-table td { font-size: .95rem; color: var(--ink); }

@media (max-width: 860px) {
  .inspect-grid { grid-template-columns: 1fr; }
  .inspect-stage { min-height: 300px; }
}

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 130; display: none;
  place-items: center; padding: 24px; background: rgba(8, 18, 30, .94);
}
.lightbox.is-open { display: grid; animation: fade-in .25s ease; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08);
  color: #fff; border-radius: 50%; cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-stage { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox-stage img { animation: fade-in .25s ease; }
.lightbox-cap { color: #d7dde6; text-align: center; font-size: .92rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lightbox-count { color: rgba(215, 221, 230, .6); font-variant-numeric: tabular-nums; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff;
  transition: background-color .2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav--prev { left: 18px; }
.lightbox-nav--next { right: 18px; }
.photo-mosaic figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 860px) {
  .lightbox-nav { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; width: 46px; height: 46px; }
}

/* ---------------------------------------------------------------- gallery */

.gallery-wall { position: relative; height: clamp(420px, 58vh, 620px); border-radius: var(--radius-lg); background: var(--dark); overflow: hidden; }
.gallery-wall canvas { width: 100%; height: 100%; touch-action: pan-y; }
.gallery-hint { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.gallery-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.snap-gallery { display: none; }
.gallery-print { margin: 0 0 4px; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.gallery-print img { width: 100%; max-height: 68vh; object-fit: cover; display: block; }
.gallery-print figcaption { padding: 12px 16px; font-size: .85rem; color: rgba(243, 238, 230, .8); }

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.photo-mosaic figure {
  margin: 0; position: relative; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); background: var(--paper-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.photo-mosaic figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.photo-mosaic img, .photo-mosaic canvas {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform .9s var(--ease-out);
}
.photo-mosaic figure:hover img { transform: scale(1.05); }
.photo-mosaic figcaption { padding: 14px 16px 16px; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }

.photo-frame { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo-frame img { width: 100%; }

/* ------------------------------------------------------------------ forms */

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 450; margin-bottom: 22px; }

.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: grid; gap: 8px; }
.field label, .label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--ink); padding: 13px 15px; min-height: 50px;
  font-family: var(--font-body); font-size: .98rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #8f8a82; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(16, 35, 59, .34); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--paper-2); box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint, .hint { font-size: .8rem; color: var(--muted); }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.form-status { display: none; margin-top: 14px; font-size: .9rem; font-weight: 500; padding: 10px 14px; border-radius: 10px; }
.form-status.is-error { display: block; color: var(--danger); background: rgba(179, 38, 30, .07); }
.form-status.is-ok { display: block; color: var(--ok); background: rgba(18, 140, 74, .08); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- WhatsApp / CTA bands */

.wa-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, auto); gap: 32px; align-items: center;
  padding: clamp(30px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--brand); color: rgba(243, 238, 230, .82);
}
.wa-band::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 87, 42, .5), rgba(181, 87, 42, 0));
}
.wa-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); color: #fff; max-width: 20ch; }
.wa-band h2 em { color: #f0b08a; }
.wa-band p { color: rgba(243, 238, 230, .78); margin-top: 14px; max-width: 52ch; font-size: 1.02rem; }
.wa-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wa-step {
  display: inline-flex; gap: 10px; align-items: center; font-size: .88rem; color: #fff;
  padding: 8px 14px 8px 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.wa-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); font-size: .74rem; font-weight: 700; flex: none; }
.wa-band .btn--block { min-width: 260px; }
.wa-band--dark { background: var(--dark); }
@media (max-width: 820px) { .wa-band { grid-template-columns: 1fr; } .wa-band .btn--block { min-width: 0; } }

/* ------------------------------------------------------------- info cards */

.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.info-card + .info-card { margin-top: 16px; }
.info-card h3 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row + .info-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-row > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.info-row p, .info-row address { margin: 0; font-style: normal; font-size: .98rem; color: var(--ink); }
.info-row a { color: var(--ink); }
.info-row a:hover { color: var(--accent); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; filter: saturate(.85) contrast(1.02); }
@media (min-width: 901px) { .map-frame { position: sticky; top: calc(var(--header-h) + 20px); } .map-frame iframe { height: 480px; } }
@media (max-width: 720px) { .map-frame iframe { height: 260px; } }

.hours-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: 0; }
.hours-table th, .hours-table td { padding: 10px 0; text-align: left; font-weight: 400; color: var(--ink-soft); }
.hours-table td + td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today td { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------ auth */

.auth-shell {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: min(76vh, 720px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); overflow: hidden; box-shadow: var(--shadow);
}
.auth-art { position: relative; background: var(--brand) url('/assets/img/plate/p2.jpg') center / cover; min-height: 420px; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 44, .1), rgba(11, 26, 44, .82)); z-index: 1; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art-copy { position: absolute; inset: auto 32px 32px 32px; z-index: 2; color: #eef2f7; }
.auth-art-copy .eyebrow { color: var(--gold); }
.auth-art-copy :is(h1, h2) { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.auth-art-copy p { color: rgba(238, 242, 247, .78); font-size: .95rem; margin-top: 10px; }
.auth-panel { padding: clamp(24px, 4vw, 56px); display: grid; align-content: center; }
.auth-card { width: 100%; max-width: 410px; margin-inline: auto; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); margin-bottom: 24px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: var(--pill);
  font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tabs button[aria-selected="true"] { background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow-sm); }

@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { min-height: 220px; } }

/* --------------------------------------------------------------- account */

.acct-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 3vw, 52px); align-items: start; }
.acct-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 20px); padding: 8px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.acct-nav button {
  text-align: left; padding: 12px 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-soft); font-size: .94rem; font-weight: 500;
  cursor: pointer; transition: color .2s ease, background-color .2s ease;
}
.acct-nav button:hover { color: var(--ink); background: var(--paper); }
.acct-nav button[aria-current="true"] { color: var(--paper-2); background: var(--ink); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat span { font-size: .82rem; color: var(--muted); margin-top: 8px; display: block; }

.lead-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.lead-item.is-unread .lead-top :is(b, strong)::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 9px; vertical-align: 1px;
}
.lead-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lead-top b { font-weight: 600; color: var(--ink); }
.lead-meta { font-size: .8rem; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; }
.lead-item p { margin-top: 8px; font-size: .93rem; color: var(--ink-soft); }

@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } .acct-nav { position: static; } }

/* ------------------------------------------------------------------ admin */

.admin-body { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100svh; }
.admin-side {
  background: var(--dark); color: var(--on-dark); padding: 22px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.admin-side .brand, .admin-side .brand-name { color: #fff; }
.admin-side .brand-sub { color: rgba(243, 238, 230, .5); }
.admin-nav { display: grid; gap: 2px; margin-top: 24px; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: transparent; border: 0; color: rgba(243, 238, 230, .68); border-radius: 10px;
  padding: 11px 12px; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.admin-nav button svg { width: 17px; height: 17px; flex: none; }
.admin-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav button[aria-current="true"] { background: var(--accent); color: #fff; }
.admin-nav .count { margin-left: auto; font-size: .7rem; font-weight: 600; background: rgba(255, 255, 255, .2); padding: 1px 7px; border-radius: var(--pill); }
.side-foot { margin-top: auto; display: grid; gap: 2px; }
.side-link {
  background: none; border: 0; text-align: left; cursor: pointer; border-radius: 10px;
  color: rgba(243, 238, 230, .6); padding: 10px 12px; font-size: .86rem; text-decoration: none;
}
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.admin-main { padding: 28px clamp(16px, 3vw, 40px) 60px; max-width: 1240px; }
.admin-head {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.admin-head h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.admin-body { display: grid; gap: 16px; }
.admin-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 24px); background: var(--paper-2); margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.admin-panel > h2 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th {
  text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600;
  padding: 0 10px 10px; border-bottom: 1px solid var(--line-strong);
}
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.admin-table tr:hover td { background: var(--paper); }
.admin-table .thumb { width: 54px; height: 42px; object-fit: cover; background: var(--paper-3); border-radius: 6px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.img-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-3); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile button {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; border: 0;
  background: rgba(11, 26, 44, .76); color: #fff; cursor: pointer;
}
.img-tile button svg { width: 12px; height: 12px; }
.img-tile .cover {
  position: absolute; left: 5px; bottom: 5px; background: var(--accent); color: #fff; border-radius: var(--pill);
  font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px;
}

.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 26px 18px; text-align: center;
  color: var(--muted); font-size: .9rem; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.dropzone svg { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--accent); }
.dropzone p { margin: 0; }

.banner { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 16px; font-size: .9rem; background: var(--paper-2); margin-bottom: 16px; }
.banner strong { display: block; margin-bottom: 2px; }
.banner--warn { border-color: rgba(179, 38, 30, .4); color: #8c1d18; background: #fbeeec; }
.banner--info { border-color: rgba(181, 87, 42, .4); color: var(--accent-dark); background: var(--accent-soft); }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 12px; }
  .admin-nav { display: flex; margin-top: 0; }
  .side-foot { display: none; }
  .admin-table thead { display: none; }
  .admin-table td { display: block; border: 0; padding: 3px 0; }
  .admin-table tr { display: block; border-bottom: 1px solid var(--line); padding-block: 12px; }
  .row-actions { justify-content: flex-start; }
}

/* ------------------------------------------------------------- pill/toast */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(18, 140, 74, .28); background: rgba(18, 140, 74, .08);
  padding: 6px 12px; border-radius: var(--pill);
  font-size: .82rem; font-weight: 600; color: var(--ok);
}
.pill.is-closed { border-color: rgba(179, 38, 30, .3); background: rgba(179, 38, 30, .07); color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); flex: none; }
.pill.is-closed .dot, .is-closed .dot { background: var(--danger); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 140;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper-2); padding: 12px 20px;
  font-size: .9rem; font-weight: 500; border-radius: var(--pill); box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ footer */

.site-footer { position: relative; background: var(--dark); color: rgba(243, 238, 230, .7); padding-block: clamp(56px, 7vw, 96px) clamp(80px, 8vw, 110px); overflow: hidden; }
.site-footer::before {
  /* the copper swoosh, echoed at the top of the footer */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #d88a5e 60%, transparent);
}
.site-footer a { color: rgba(243, 238, 230, .74); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.footer-grid h3 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { display: grid; gap: 11px; font-size: .95rem; }
.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-sub { color: rgba(243, 238, 230, .46); }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-weight: 350; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--on-dark); margin-top: 22px; line-height: 1.25; }
.footer-about { font-size: .93rem; line-height: 1.65; max-width: 40ch; margin-top: 14px; color: rgba(243, 238, 230, .62); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 64px); padding-top: 20px;
  border-top: 1px solid rgba(243, 238, 230, .12);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .82rem; color: rgba(243, 238, 230, .5);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- misc */

.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 20px 14px 16px;
  background: var(--wa); color: #fff; text-decoration: none; border-radius: var(--pill);
  font-size: .92rem; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease), background-color .2s ease;
}
.wa-fab:hover { background: #0b6534; transform: translateY(-2px); color: #fff; }
.wa-fab svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: 15px; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transform-origin: 0 50%;
}
.offline-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }

/* -------------------------------------------------------------- animation */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-words span { display: inline-block; transform: translateY(40%); opacity: 0; }
body.is-ready .reveal-words span { animation: word-in .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes word-in { to { transform: translateY(0); opacity: 1; } }

.rise-in { animation: rise-in 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(40px); } }
.draw-in path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-words span { opacity: 1; transform: none; animation: none !important; }
  .rise-in { animation: none; }
  .draw-in path { animation: none; stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .range-card, .product-card, .btn, .slab img { transition: none; }
}

.no-webgl .hero-canvas canvas, .no-webgl .gallery-wall canvas { display: none; }
.ambient-bg { display: none; }

/* ---------------------------------------------------------------- logo */
/* Two prints of the wordmark: navy for porcelain, ivory for midnight.
   Always-dark surfaces (footer, admin rail) use the ivory print. */
.brand-lockup { display: inline-flex; align-items: center; }
.brand-lockup img { height: 50px; width: auto; display: block; }
.brand-lockup .logo-on-dark { display: none; }
:root[data-theme="dark"] .brand-lockup .logo-on-light { display: none; }
:root[data-theme="dark"] .brand-lockup .logo-on-dark { display: block; }

.footer-logo { height: 96px; width: auto; display: block; }
.admin-logo { height: 30px; width: auto; display: block; }

@media (max-width: 860px) {
  .brand-lockup img { height: 36px; }
  .footer-logo { height: 80px; }
}
.auth-card .brand-lockup img { height: 58px; }

/* =========================================================================
   midnight theme. Deep navy instead of porcelain, ivory ink, a lighter
   copper so links and accents hold contrast. Photographs stay as they are.
   ========================================================================= */

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a1522;
  --paper-2: #101e30;
  --paper-3: #16263b;
  --paper-4: #1d3049;
  --ink: #f3eee6;
  --ink-soft: #c5ccd6;
  --muted: #93a0b2;
  --line: rgba(243, 238, 230, .1);
  --line-strong: rgba(243, 238, 230, .22);
  --brand: #12365f;
  --accent: #e3926a;
  --accent-dark: #f0ab88;
  --accent-soft: rgba(227, 146, 106, .12);
  --dark: #060e18;
  --dark-2: #0a1522;
  --wa: #1fa55c;
  --ok: #4cc283;
  --danger: #f08a7e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 18px 40px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] .site-header { background: rgba(10, 21, 34, .78); }
:root[data-theme="dark"] .site-header.on-hero { background: transparent; }
:root[data-theme="dark"] .site-header.is-solid { background: rgba(10, 21, 34, .9); }
:root[data-theme="dark"] .site-nav a:hover { background: rgba(243, 238, 230, .06); }
:root[data-theme="dark"] .site-nav a[aria-current="page"] { background: rgba(243, 238, 230, .09); }
:root[data-theme="dark"] .btn:hover { background: var(--accent); border-color: var(--accent); color: #0a1522; }
:root[data-theme="dark"] .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .btn--wa:hover { background: #17884a; border-color: #17884a; color: #fff; }
:root[data-theme="dark"] .btn--terra { --btn-fg: #0a1522; }
:root[data-theme="dark"] .chip:hover { background: rgba(243, 238, 230, .06); }
:root[data-theme="dark"] .hero::before { background: radial-gradient(closest-side, rgba(227, 146, 106, .14), rgba(227, 146, 106, 0)); }
:root[data-theme="dark"] .hero-badge { background: rgba(16, 30, 48, .9); }
:root[data-theme="dark"] .range-visual::after { background: rgba(10, 21, 34, .82); }
:root[data-theme="dark"] .field input::placeholder, :root[data-theme="dark"] .field textarea::placeholder { color: #6f7c8e; }
:root[data-theme="dark"] .field input:hover, :root[data-theme="dark"] .field textarea:hover { border-color: rgba(243, 238, 230, .34); }
:root[data-theme="dark"] .wa-band { background: #12365f; }
:root[data-theme="dark"] .banner--warn { color: #ffd9d4; background: rgba(179, 38, 30, .18); }
:root[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
:root[data-theme="dark"] ::selection { background: rgba(227, 146, 106, .3); color: #fff; }

/* static hosting: no customer accounts, so their entry points are hidden */
[data-mode="static"] a[href="/account"],
[data-mode="static"] [data-account-link],
[data-mode="static"] #save-item { display: none !important; }
