/* ==========================================================================
   Art Aluminium — site styles
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ececee;
  --muted: #a1a1aa;
  --dim: #71717a;

  --orange: #f78104;
  --amber: #fcae1b;
  --teal: #249ea0;
  --grad-brand: linear-gradient(135deg, var(--amber) 0%, var(--orange) 100%);

  --paper: #eeeff1;
  --paper-2: #e3e5e8;
  --paper-ink: #111113;
  --paper-muted: #5b5f66;
  --paper-line: rgba(0, 0, 0, 0.08);

  --radius: 18px;
  --radius-lg: 28px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;

  --font-display: "Bai Jamjuree", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: #000;
  transform: translateY(-150%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  text-transform: uppercase;
  line-height: 0.98;
  margin-top: 20px;
}

.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 54ch; }

.text-metal {
  background: linear-gradient(100deg, #8e949c 0%, #f4f5f7 28%, #b3b8bf 46%, #ffffff 62%, #8e949c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
}
.text-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes sheen { to { background-position: -220% 0; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg.arrow { transform: translate(3px, -3px); }
.btn:hover svg.down { transform: translateY(3px); }

.btn-primary {
  background: var(--grad-brand);
  color: #1a0d00;
  box-shadow: 0 12px 32px -12px rgba(247, 129, 4, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(247, 129, 4, 0.85); }

.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }

.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-outline-dark { border: 1px solid rgba(17, 17, 19, 0.28); color: var(--paper-ink); }
.btn-outline-dark:hover { border-color: var(--paper-ink); background: rgba(17, 17, 19, 0.06); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; gap: 8px; }
.btn-sm svg { width: 15px; height: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.site-header .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.35s var(--ease);
}
.site-header.scrolled .bar { height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}
.logo svg { width: 30px; height: 28px; flex: none; }
.logo b { font-weight: 700; }
.logo span { font-weight: 400; margin-left: -4px; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, 0.07); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.lang button {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang button[aria-pressed="true"] { background: #fff; color: #000; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  align-items: center; justify-content: center;
  position: relative;
}
.menu-toggle i {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle i:nth-child(1) { top: 17px; }
.menu-toggle i:nth-child(2) { top: 25px; }
.menu-open .menu-toggle i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  background: rgba(10, 10, 11, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
.mobile-menu nav a:hover { color: var(--amber); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.04s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.08s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.12s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.16s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu .mm-foot { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu .mm-foot .btn { width: 100%; }
.mobile-menu .mm-foot small { color: var(--muted); font-size: 14px; }

@media (max-width: 1060px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .site-header .bar { gap: 12px; }
  .header-actions { gap: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo svg { width: 24px; height: 22px; }
  .lang button { padding: 6px 8px; }
}
@media (max-width: 350px) {
  .logo { font-size: 15px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0), 0) scale(1.08);
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.7) 45%, rgba(10, 10, 11, 0.25) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 11, 0) 45%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.7) 0%, rgba(10, 10, 11, 0) 22%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.hero-content { padding-top: calc(var(--header-h) + clamp(40px, 6vh, 72px)); padding-bottom: clamp(36px, 5vh, 56px); }
.hero h1 {
  font-size: clamp(44px, min(6.4vw, 10.5vh), 104px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: -0.035em;
  max-width: 11.5em;
  margin-top: 24px;
}
.hero-lede {
  max-width: 560px;
  margin: 30px 0 38px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: #c9cace;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.stat { padding: 28px 24px 34px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 0.5em; font-weight: 500; color: var(--amber); margin-left: 4px; }
.stat-label {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 64px;
  background: linear-gradient(var(--amber), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
  .hero::before {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 11, 0.75) 55%, rgba(10, 10, 11, 0.55) 100%);
  }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding: 26px 0;
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.ticker span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
}
.ticker span.fill { color: #fff; -webkit-text-stroke: 0; }
.ticker span.star { color: var(--orange); -webkit-text-stroke: 0; font-size: clamp(20px, 2.4vw, 32px); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head .lead { justify-self: end; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .lead { justify-self: start; }
}

.section-light { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.section-light .lead { color: var(--paper-muted); }
.section-light .eyebrow { color: #d96f00; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
.about-media { position: relative; aspect-ratio: 4 / 5; }
.about-media .img-main,
.about-media .img-sub { position: absolute; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.about-media .img-main { inset: 0 16% 16% 0; }
.about-media .img-sub { right: 0; bottom: 0; width: 54%; aspect-ratio: 1; outline: 8px solid var(--ink); }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover img { transform: scale(1.04); }
.about-badge {
  position: absolute; left: 20px; top: 20px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 16px;
  background: rgba(10, 10, 11, 0.62);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.about-badge .yr {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--grad-brand); color: #1a0d00;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.about-badge small { color: var(--muted); font-size: 13px; }

.about-copy p + p { margin-top: 18px; }
.about-copy .lead { margin-top: 28px; max-width: none; }
.about-copy .h2 { font-size: clamp(34px, 4.4vw, 60px); }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.pillar h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.pillar h3 svg { width: 22px; height: 22px; color: var(--amber); }
.pillar p { margin-top: 12px; font-size: 15px; color: var(--muted); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line-2);
}
.tl-item { position: relative; padding: 36px 36px 0 0; }
.tl-item::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 6px rgba(247, 129, 4, 0.15);
}
.tl-year { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; line-height: 1; }
.tl-item h3 { margin-top: 16px; font-size: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tl-item p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 34ch; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
}
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); margin-left: 4px; }
  .tl-item { padding: 0 0 40px 28px; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-item::before { top: 8px; left: -5px; }
}

/* ---------- Services ---------- */

.services { background: var(--ink); }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(247, 129, 4, 0.1), transparent 70%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.service {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 340px;
  padding: 36px 34px 40px;
  background: var(--ink);
  overflow: hidden;
  transition: background 0.4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(252, 174, 27, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.service:hover { background: var(--ink-2); }
.service:hover::before { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--dim); }
.service-icon {
  width: 60px; height: 60px; padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  color: var(--amber);
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.service:hover .service-icon { transform: translateY(-4px) rotate(-4deg); background: var(--grad-brand); color: #1a0d00; border-color: transparent; }
.service h3 { margin-top: auto; padding-top: 48px; font-size: clamp(21px, 1.9vw, 25px); text-transform: uppercase; line-height: 1.1; }
.service p { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 34ch; }

@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { padding-top: 36px; }
}

/* ---------- Products ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff 0%, var(--paper-2) 100%);
  border: 1px solid var(--paper-line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.product-media { position: relative; aspect-ratio: 1667 / 1542; }
.product-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 7%;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.product-media img.alt { opacity: 0; transform: scale(0.96); }
.product:hover .product-media img.main { opacity: 0; transform: scale(1.04); }
.product:hover .product-media img.alt { opacity: 1; transform: scale(1.02); }
.product-tag {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(17, 17, 19, 0.06);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #3a3d42;
}
.product-tag svg { width: 14px; height: 14px; }
.product-body {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 22px 24px 24px;
  border-top: 1px solid var(--paper-line);
}
.product h3 { font-size: 22px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.product p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--paper-muted); }
.product-open {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper-ink); color: #fff;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.product-open svg { width: 18px; height: 18px; }
.product-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product:hover .product-open { background: var(--orange); transform: rotate(45deg); }

.product-custom {
  background: var(--paper-ink);
  color: #fff;
  border-color: transparent;
  justify-content: space-between;
  padding: 32px;
  overflow: hidden;
}
.product-custom::before {
  content: ""; position: absolute; inset: auto -30% -40% auto; width: 90%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(247, 129, 4, 0.45), transparent 65%);
  pointer-events: none;
}
.product-custom .profile-art { width: 64%; max-width: 220px; color: var(--amber); opacity: 0.9; }
.product-custom h3 { font-size: 26px; margin-top: 28px; }
.product-custom p { color: var(--muted); margin: 10px 0 24px; }
.product-custom .btn { align-self: flex-start; position: relative; }

@media (max-width: 960px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(1120px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--paper-ink);
  overflow: hidden;
  color-scheme: light;
}
.lightbox::backdrop { background: rgba(5, 5, 6, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.lb-grid { display: grid; grid-template-columns: 1.35fr 1fr; max-height: 92vh; }
.lb-stage { position: relative; background: linear-gradient(165deg, #ffffff 0%, var(--paper-2) 100%); display: flex; flex-direction: column; }
.lb-main { position: relative; flex: 1; min-height: 0; aspect-ratio: 1667 / 1542; }
.lb-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, color 0.2s;
}
.lb-nav:hover { background: var(--paper-ink); color: #fff; }
.lb-nav svg { width: 18px; height: 18px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-thumbs { display: flex; gap: 10px; padding: 0 20px 20px; }
.lb-thumbs button {
  width: 78px; aspect-ratio: 1; border-radius: 12px;
  background: #fff; border: 2px solid transparent; padding: 6px;
  transition: border-color 0.2s;
}
.lb-thumbs button[aria-current="true"] { border-color: var(--orange); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lb-info { padding: 44px 40px 40px; display: flex; flex-direction: column; overflow-y: auto; }
.lb-info h2 { font-size: clamp(30px, 3vw, 42px); text-transform: uppercase; margin-top: 16px; }
.lb-info p { margin-top: 16px; color: var(--paper-muted); }
.lb-info ul { margin-top: 28px; border-top: 1px solid var(--paper-line); }
.lb-info li {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px;
}
.lb-info li svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.lb-info .btn { margin-top: auto; align-self: flex-start; }
.lb-info .lb-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-ink); color: #fff;
}
.lb-close svg { width: 18px; height: 18px; }
.lb-count { position: absolute; top: 20px; left: 20px; font-size: 13px; font-weight: 600; color: var(--paper-muted); }

@media (max-width: 820px) {
  .lb-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-main { flex: none; }
  .lb-info { padding: 28px 24px 32px; overflow: visible; }
  .lb-info .lb-actions { margin-top: 28px; }
}

/* ---------- Factory gallery ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(170px, 19vw, 250px);
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 10, 11, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
}
.t-a { grid-column: span 7; grid-row: span 2; }
.t-b { grid-column: span 5; }
.t-c { grid-column: span 5; }
.t-d { grid-column: span 4; }
.t-e { grid-column: span 8; }
.tile-text {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  background: var(--grad-brand);
  color: #1a0d00;
}
.tile-text .big { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; }
.tile-text p { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 12px; }
  .t-a { grid-column: span 2; grid-row: span 1; }
  .t-b, .t-c { grid-column: span 1; }
  .t-d { grid-column: span 2; }
  .t-e { grid-column: span 2; }
}

/* ---------- Quality ---------- */

.quality { overflow: hidden; }
.quality-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 100% 50%, rgba(252, 174, 27, 0.18), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.quality-list { margin-top: 36px; border-top: 1px solid var(--line); }
.quality-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.quality-list .qi {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(252, 174, 27, 0.12); color: var(--amber);
}
.quality-list .qi svg { width: 20px; height: 20px; }
.quality-list strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.quality-list span { color: var(--muted); font-size: 15px; }
.cert {
  position: relative;
  transform: perspective(1200px) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 6deg));
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}
.cert img { width: 100%; }
@media (max-width: 900px) { .quality-panel { grid-template-columns: 1fr; } .cert { max-width: 520px; } }

/* ---------- News ---------- */

.news-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s;
}
.news-card:hover { border-color: var(--line-2); }
.news-media { position: relative; min-height: 320px; overflow: hidden; }
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.chip {
  padding: 5px 11px; border-radius: 999px;
  background: rgba(252, 174, 27, 0.12); color: var(--amber);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.news-body h3 { margin-top: 22px; font-size: clamp(26px, 2.8vw, 38px); text-transform: uppercase; line-height: 1.05; }
.news-body p { margin: 18px 0 32px; color: var(--muted); }
.news-body .link-arrow { margin-top: auto; }
@media (max-width: 820px) { .news-card { grid-template-columns: 1fr; } .news-media { min-height: 240px; } }

/* ---------- Catalogue CTA ---------- */

.catalogue {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 6vw, 84px);
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  color: #1a0d00;
  overflow: hidden;
}
.catalogue::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 22px);
}
.catalogue .eyebrow { color: #3a1d00; }
.catalogue h2 { font-size: clamp(34px, 4.6vw, 62px); text-transform: uppercase; margin-top: 18px; line-height: 0.98; }
.catalogue p { margin: 20px 0 32px; max-width: 46ch; font-size: 17px; color: #3a2200; }
.catalogue-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.catalogue-ctas small { font-size: 13px; color: #4a2c00; }

.book {
  justify-self: center;
  position: relative;
  width: min(250px, 60vw);
  aspect-ratio: 3 / 4;
  padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 4px 14px 14px 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 14px, rgba(0, 0, 0, 0.25) 14px 15px, transparent 15px),
    linear-gradient(160deg, #1d1d20 0%, #0b0b0c 100%);
  color: #fff;
  transform: perspective(1200px) rotateY(-24deg) rotateX(8deg) rotateZ(2deg);
  box-shadow: 30px 40px 60px -20px rgba(60, 25, 0, 0.6), inset -1px 0 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.7s var(--ease);
}
.catalogue:hover .book { transform: perspective(1200px) rotateY(-12deg) rotateX(4deg) rotateZ(0deg) translateY(-6px); }
.book .logo { font-size: 15px; margin-left: 10px; }
.book .logo svg { width: 22px; height: 20px; }
.book-title { margin-left: 10px; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 0.95; text-transform: uppercase; }
.book-title small { display: block; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--amber); }
.book-lines { margin-left: 10px; height: 64px; background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 9px); opacity: 0.8; -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }

@media (max-width: 820px) {
  .catalogue { grid-template-columns: 1fr; }
  .book { order: -1; justify-self: start; width: 170px; }
  .book-title { font-size: 22px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-row .ci {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--amber);
}
.contact-row .ci svg { width: 20px; height: 20px; }
.contact-row .label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.contact-row .value { margin-top: 4px; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.4; }
.contact-row a.value:hover, .contact-row .value a:hover { color: var(--amber); }
.phones { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.phone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phone a:first-child { font-family: var(--font-display); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.phone a:first-child:hover { color: var(--amber); }
.wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(37, 211, 102, 0.12); color: #4ade80;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.2s;
}
.wa:hover { background: rgba(37, 211, 102, 0.22); }
.wa svg { width: 14px; height: 14px; }

.form {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.form h3 { font-size: 26px; text-transform: uppercase; }
.form > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 129, 4, 0.18);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot small { flex: 1 1 220px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.form-status { margin-top: 16px; font-size: 14px; color: #4ade80; min-height: 1em; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

.map {
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
  height: clamp(320px, 38vw, 460px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.95); }
.map-pin {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 16px;
  background: rgba(10, 10, 11, 0.8);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-width: calc(100% - 40px);
}
.map-pin .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; color: #1a0d00; flex: none; }
.map-pin .dot svg { width: 18px; height: 18px; }
.map-pin strong { display: block; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.map-pin a { font-size: 13px; color: var(--amber); }

/* ---------- Footer ---------- */

.footer { padding: clamp(72px, 9vw, 110px) 0 28px; border-top: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 36ch; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.socials a:hover { background: var(--grad-brand); color: #1a0d00; border-color: transparent; }
.socials svg { width: 18px; height: 18px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.footer ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #d4d4d8; font-size: 15px; transition: color 0.2s; }
.footer ul a:hover { color: var(--amber); }
.footer address { font-style: normal; margin-top: 18px; color: #d4d4d8; font-size: 15px; line-height: 1.7; }
.footer address a:hover { color: var(--amber); }

.footer-mark {
  margin: clamp(56px, 8vw, 96px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 11.2vw, 164px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  text-align: center;
  user-select: none;
}
.footer-mark span { -webkit-text-stroke: 0; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 32px; padding-top: 24px;
  padding-right: 190px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px 0 16px;
  border-radius: 999px;
  background: #25d366; color: #05290f;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.7);
  transform: translateY(120px);
  transition: transform 0.5s var(--ease), box-shadow 0.3s;
}
.wa-float.show { transform: none; }
.wa-float:hover { box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.9); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .footer-bottom { padding-right: 72px; } }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { width: 56px; padding: 0; justify-content: center; } }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--d, 0s) * 0.6);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Instant quote page
   ========================================================================== */

.field .lbl {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 92% 0%, rgba(247, 129, 4, 0.2), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(36, 158, 160, 0.08), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.page-hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero h1 {
  margin-top: 24px;
  font-size: clamp(42px, 6.4vw, 90px);
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.page-hero .lead { margin-top: 24px; }

.price-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.price-card .lbl, .q-sum-head .lbl, .q-bar .lbl {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim);
}
.price-card .price {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-card .price [data-price] {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card .price small { font-size: 0.36em; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps b { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; color: var(--amber); }

.q-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 10vw, 140px);
}
.q-panel {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.q-panel + .q-panel { margin-top: 20px; }
.q-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.q-step {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #1a0d00;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.q-panel-head h2 { font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; }
.q-panel-head p { margin-top: 3px; font-size: 14px; color: var(--muted); }

/* Profile picker */
.q-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-pick {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  text-align: left;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.q-pick:hover { border-color: var(--orange); background: #141416; transform: translateY(-2px); }
.q-pick .pic {
  flex: none; width: 58px; height: 58px; padding: 5px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, #f7f8f9, #cdd1d6);
  color: #d96f00;
}
.q-pick .pic img { width: 100%; height: 100%; object-fit: contain; }
.q-pick .pic svg { width: 82%; height: 70%; }
.q-pick .nm { font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.q-pick .add {
  flex: none; margin-left: auto;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.q-pick .add svg { width: 14px; height: 14px; }
.q-pick:hover .add { background: var(--grad-brand); color: #1a0d00; border-color: transparent; }
.q-pick .badge {
  position: absolute; top: -8px; left: -8px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: none; place-items: center;
  border-radius: 999px;
  background: var(--orange); color: #1a0d00;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 3px var(--ink-2);
}
.q-pick .badge.on { display: grid; }

/* Line items */
.q-lines { display: grid; gap: 14px; }
.q-empty {
  padding: 32px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: 18px;
}
.q-line {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--ink);
  animation: pop 0.45s var(--ease);
  transition: border-color 0.3s, opacity 0.22s, transform 0.22s;
}
.q-line:focus-within { border-color: rgba(247, 129, 4, 0.5); }
.q-line.flash { animation: pop 0.45s var(--ease), flash 1.2s var(--ease); }
.q-line.removing { opacity: 0; transform: scale(0.97); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(247, 129, 4, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(247, 129, 4, 0); } }
.q-thumb {
  width: 92px; height: 92px; padding: 6px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #f7f8f9, #cdd1d6);
  color: #d96f00;
}
.q-thumb img { width: 100%; height: 100%; object-fit: contain; }
.q-thumb svg { width: 80%; height: 70%; }
.q-idx { display: block; margin-top: 10px; text-align: center; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--dim); }
.q-remove {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--dim);
  transition: background 0.2s, color 0.2s;
}
.q-remove svg { width: 17px; height: 17px; }
.q-remove:hover { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.q-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 12px; padding-right: 44px; }
.q-hidden { display: none !important; }
.q-panel .field input,
.q-panel .field select,
.q-panel .field textarea { min-height: 48px; padding: 11px 14px; }
.q-panel .field select { padding-right: 40px; }
.q-panel .field { gap: 7px; }

.q-qty { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.seg { display: inline-flex; align-items: center; height: 48px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); }
.seg button {
  height: 40px; padding: 0 14px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; }
.q-kg { flex: 1 1 160px; max-width: 240px; }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 52px !important; font-variant-numeric: tabular-nums; }
.input-suffix .sfx { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--dim); pointer-events: none; }
.q-len { display: none; flex: 1 1 100%; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.q-line[data-mode="len"] .q-len { display: grid; }
.q-line[data-mode="len"] .q-kg { display: none; }
.q-len-result {
  height: 48px; padding: 0 14px;
  display: flex; align-items: center;
  border-radius: 12px;
  background: rgba(252, 174, 27, 0.1); color: var(--amber);
  font-family: var(--font-display); font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.q-line-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}
.q-calc { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-line-total { font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.q-add {
  width: 100%; height: 56px; margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px;
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.q-add svg { width: 18px; height: 18px; }
.q-add:hover { border-color: var(--orange); color: var(--amber); background: rgba(247, 129, 4, 0.05); }
.q-add[hidden] { display: none; }
.q-error {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: rgba(239, 68, 68, 0.1); color: #fca5a5; font-size: 14.5px;
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill > span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line-2);
  font-size: 15px; color: var(--muted); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pill svg { width: 18px; height: 18px; color: var(--amber); }
.pill input:checked + span { border-color: var(--orange); background: rgba(247, 129, 4, 0.1); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Summary */
.q-side { position: sticky; top: 88px; }
.q-summary {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #161618 0%, #0f0f11 100%);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.q-sum-head { display: flex; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.q-sum-head strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.q-sum-head > div:last-child { text-align: right; }
.q-sum-lines { max-height: 300px; overflow-y: auto; padding: 4px 24px; }
.q-sum-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-sum-lines li:last-child { border-bottom: 0; }
.q-sum-lines strong { display: block; font-size: 14.5px; font-weight: 600; }
.q-sum-lines small { font-size: 12.5px; color: var(--muted); }
.q-sum-lines .amt { font-weight: 600; font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-sum-empty { color: var(--dim); font-size: 14px; }
.q-sum-rows { display: grid; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.q-sum-rows div { display: flex; justify-content: space-between; gap: 12px; }
.q-sum-rows span:first-child { color: var(--muted); }
.q-sum-rows span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.q-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 22px 24px;
  background: var(--grad-brand); color: #1a0d00;
}
.q-total span { padding-bottom: 5px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.q-total strong { font-family: var(--font-display); font-size: clamp(32px, 3vw, 42px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.q-note { padding: 16px 24px 0; font-size: 12.5px; line-height: 1.55; color: var(--dim); }
.q-sum-actions { display: grid; gap: 10px; padding: 18px 24px 24px; }
.q-sum-actions .btn { width: 100%; }
.q-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-mini button {
  height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.q-mini button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.q-mini svg { width: 16px; height: 16px; }
.q-send-note { font-size: 12px; color: var(--dim); text-align: center; line-height: 1.45; }
.q-sent { display: none; padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.q-summary.sent .q-sent { display: block; animation: pop 0.45s var(--ease); }
.q-summary.sent .q-send-note { display: none; }
.q-sent .ok { display: flex; gap: 12px; align-items: flex-start; }
.q-sent .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.q-sent .ic svg { width: 18px; height: 18px; }
.q-sent p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.q-sent p strong { color: #fff; }
.q-sent .alt { display: grid; gap: 10px; margin-top: 18px; }
.q-sent .alt .btn { width: 100%; }
.btn-wa { background: #25d366; color: #05290f; }
.btn-wa:hover { transform: translateY(-2px); }
.q-link { justify-self: center; font-size: 13.5px; font-weight: 600; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.q-help { display: flex; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.q-help svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }
.q-help a { color: #fff; font-weight: 600; }
.q-help a:hover { color: var(--amber); }

/* Mobile total bar */
.q-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease);
}
.q-bar.hide { transform: translateY(110%); }
.q-bar strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

@media (max-width: 1060px) {
  .q-layout { grid-template-columns: 1fr; }
  .q-side { position: static; }
  .q-bar { display: flex; }
  .quote-page .footer { padding-bottom: 100px; }
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .q-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .q-line { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .q-thumb-wrap { display: flex; align-items: center; gap: 12px; }
  .q-thumb { width: 64px; height: 64px; }
  .q-idx { margin-top: 0; }
  .q-grid { grid-template-columns: 1fr 1fr; padding-right: 0; }
  .q-grid > :first-child { grid-column: 1 / -1; }
  .q-remove { top: 26px; right: 14px; }
  .q-kg { max-width: none; }
  .q-len { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q-len-result { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .q-pick { padding: 8px; gap: 10px; }
  .q-pick .pic { width: 46px; height: 46px; }
  .q-pick .nm { font-size: 12.5px; }
  .q-pick .add { display: none; }
  .q-grid { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; }
  .q-qty > .field:first-child { flex: 1 1 100%; }
}

/* ---------- Printable quote ---------- */
.print-doc { display: none; }
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body > *:not(.print-doc):not(.sprite) { display: none !important; }
  .print-doc { display: block; font-family: var(--font-body); font-size: 12px; color: #111; }
  .pd-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid #111; }
  .pd-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; }
  .pd-logo svg { width: 28px; height: 26px; }
  .pd-co { text-align: right; font-size: 11px; line-height: 1.5; color: #444; }
  .print-doc h1 { margin: 28px 0 12px; font-size: 28px; text-transform: uppercase; }
  .pd-meta, .pd-cust { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 16px; }
  .pd-meta span, .pd-cust span, .pd-notes span { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #666; }
  .pd-meta strong, .pd-cust strong { font-size: 13px; }
  .print-doc table { width: 100%; margin-top: 12px; border-collapse: collapse; }
  .print-doc th { padding: 8px 6px; border-bottom: 1.5px solid #111; text-align: left; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
  .print-doc td { padding: 9px 6px; border-bottom: 1px solid #ddd; }
  .print-doc .num { text-align: right; white-space: nowrap; }
  .pd-totals { margin: 16px 0 0 auto; width: 280px; }
  .pd-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
  .pd-totals .grand { margin-top: 6px; padding-top: 10px; border-top: 2px solid #111; font-size: 16px; font-weight: 700; }
  .pd-notes { margin-top: 20px; white-space: pre-wrap; }
  .pd-note { margin-top: 28px; font-size: 10.5px; color: #555; }
}

/* ---------- Quote: catalogue window ---------- */
.cat-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cat-search { position: relative; flex: 1 1 260px; }
.cat-search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.cat-search input {
  width: 100%; min-height: 48px; padding: 0 16px 0 44px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--text);
  font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-search input::placeholder { color: var(--dim); }
.cat-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247, 129, 4, 0.18); }
.cat-filter { flex: 0 1 280px; min-width: 200px; }

.cat-window {
  height: clamp(380px, 60vh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.cat-window:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cat-window::-webkit-scrollbar { width: 10px; }
.cat-window::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; border: 3px solid var(--ink); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.cat-none { padding: 48px 16px; text-align: center; color: var(--muted); }

.cat-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #141416;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.cat-card.in { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.cat-pick { display: flex; flex-direction: column; width: 100%; text-align: left; }
.cat-img { position: relative; display: grid; place-items: center; aspect-ratio: 420 / 298; background: #fff; color: #3f3f46; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cat-img svg { width: 46%; height: 62%; }
.std .cat-img { background: linear-gradient(160deg, #ffffff, #e7e9ec); }
.cat-new {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--grad-brand); color: #1a0d00;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.cat-body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.cat-code { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.cat-sec { overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.cat-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: 5px; font-size: 13px; }
.cat-w { color: #d4d4d8; white-space: nowrap; }
.cat-w b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-price { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-price small { color: var(--dim); font-weight: 500; }
.cat-price.req { color: var(--muted); font-size: 12px; font-weight: 500; }
.cat-add, .cat-zoom {
  position: absolute; top: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 17, 19, 0.82); color: #fff;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.cat-add { right: 8px; pointer-events: none; }
.cat-zoom { right: 46px; opacity: 0; }
.cat-add svg, .cat-zoom svg { width: 15px; height: 15px; }
.cat-add .ok { display: none; }
.cat-card:hover .cat-add { background: var(--grad-brand); color: #1a0d00; }
.cat-card:hover .cat-zoom, .cat-zoom:focus-visible { opacity: 1; }
.cat-zoom:hover { background: #fff; color: #111; }
.cat-card.in .cat-add { background: var(--orange); color: #1a0d00; }
.cat-card.in .cat-add .plus { display: none; }
.cat-card.in .cat-add .ok { display: block; }
@media (hover: none) { .cat-zoom { opacity: 1; } }
.cat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.cat-count { font-variant-numeric: tabular-nums; }

/* Catalogue lines */
.q-line-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 14px; padding-right: 44px; }
.q-code { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; }
.q-sub { font-size: 13.5px; color: var(--muted); }
.q-thumb-draw { background: #fff; padding: 4px; }
.q-thumb-draw svg { color: #3f3f46; }
.q-grid.q-grid-cat { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-right: 0; }
.q-amounts { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.q-per { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-warn { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(251, 191, 36, 0.1); color: #fcd34d; font-size: 13.5px; }
.q-line.req .q-line-total { font-size: 16px; color: var(--muted); }
.q-req-note { margin: 0; font-size: 13px; color: var(--amber); }
@media (max-width: 860px) { .q-grid.q-grid-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .q-grid.q-grid-cat > :first-child { grid-column: auto; }
  .q-line-title { padding-right: 0; margin-bottom: 10px; }
  .q-line-foot { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .q-grid.q-grid-cat { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-window { padding: 8px; }
  .cat-body { padding: 8px 10px 10px; }
  .cat-code { font-size: 14.5px; }
  .cat-row { font-size: 12px; }
}

/* Drawing preview */
.cat-preview .lb-main { aspect-ratio: 938 / 666; background: #fff; }
.cat-preview .lb-main img { padding: 4%; }
.cat-preview .cp-page { margin-top: 10px; }
.cat-preview .cp-facts li { justify-content: space-between; }
.cat-preview .cp-facts strong { font-variant-numeric: tabular-nums; }
.cat-preview .lb-actions { margin-top: 28px; }

/* "Added" toast */
.q-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #1c1c20;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 14.5px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0.3s;
}
.q-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0s; }
.q-toast b { font-family: var(--font-display); color: var(--amber); }
.q-toast .btn { flex: none; }
@media (max-width: 1060px) { .q-toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }
.q-line.no-colour .q-grid-cat > :nth-child(3) { grid-column: span 2; }
@media (max-width: 860px) { .q-line.no-colour .q-grid-cat > :nth-child(3) { grid-column: 1 / -1; } }


/* ---------- Catalogue downloads ---------- */
.dl-list { display: grid; gap: 10px; max-width: 540px; margin: -8px 0 24px; }
.dl-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 13, 0, 0.12);
  color: #1a0d00;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.dl-card:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(60, 25, 0, 0.6); }
.dl-ic {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 52px; border-radius: 6px 14px 6px 6px;
  background: #1a0d00; color: var(--amber);
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.dl-txt { display: grid; gap: 2px; min-width: 0; }
.dl-txt strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.2; }
.dl-txt small { font-size: 13px; color: #4a2c00; }
.dl-go {
  flex: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1a0d00; color: #fff;
  transition: transform 0.25s var(--ease);
}
.dl-go svg { width: 18px; height: 18px; }
.dl-card:hover .dl-go { transform: translateY(2px); }

/* ---------- Instagram ---------- */
.insta-head-right { display: grid; justify-items: end; gap: 18px; text-align: right; }
.insta-head-right .btn svg { width: 17px; height: 17px; }
.insta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.insta-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.insta-tile:hover img { transform: scale(1.05); }
.insta-ov {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55));
  color: #fff; opacity: 0;
  transition: opacity 0.35s;
}
.insta-ov svg { width: 34px; height: 34px; }
.insta-tile:hover .insta-ov, .insta-tile:focus-visible .insta-ov { opacity: 1; }
@media (max-width: 860px) {
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .insta-head-right { justify-items: start; text-align: left; }
}

/* ---------- Local images (replacing the old website's files) ---------- */
/* Product cards: catalogue photo fills the card, technical drawing sits on white */
.product-media img.photo { object-fit: cover; padding: 0; }
.product-media img.draw { background: #fff; padding: 8%; }

/* Hero photo: slow drift instead of the old video */
.hero-media { animation: hero-drift 32s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1.5%); } }

/* Certificates card, rebuilt with the logos from the catalogue */
.cert .cert-card {
  position: relative;
  aspect-ratio: 622 / 400;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 48px 28px 32px;
  border-radius: 22px;
  background: linear-gradient(140deg, #fcbf4a 0%, #f5a425 55%, #ef9116 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.cert .cert-card img {
  width: auto; max-width: 82%; height: auto; max-height: 96px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f0f0ef;
  box-shadow: 0 12px 26px -16px rgba(60, 25, 0, 0.6);
}
.cert-dots { position: absolute; top: 22px; left: 26px; display: flex; gap: 7px; }
.cert-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* Touch screens: let the page keep scrolling past the catalogue window */
@media (hover: none) {
  .cat-window { overscroll-behavior: auto; height: clamp(340px, 55vh, 520px); }
}

/* Comfortable tap area for text-style buttons */
.q-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; }
