/* ==========================================================================
   AL-PER Kraljevo — stylesheet
   Mobile-first: base ≤480px, breakpoints 768 / 1024 / 1280 / 1536
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand — sampled from assets/images/al-per-kraljevo-logo.png */
  --brand-red: #EA2A38;          /* logo red */
  --brand-red-ink: #C41C2B;      /* darker red for small text (AA on light) */
  --brand-red-soft: #F35C67;     /* red on dark surfaces */
  --brand-blue: #1C67B2;         /* logo blue */
  --brand-navy: #1C3D5F;         /* logo blue hue (210°), deepened */
  --brand-navy-deep: #11263B;

  --ink: #1C1915;                /* warm near-black */
  --ink-2: #3D3731;
  --muted: #6E665D;
  --paper: #F8F5F0;              /* warm off-white */
  --stone: #EAE6E0;              /* page background */
  --stone-2: #DCD6CD;
  --white: #FFFFFF;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(17, 38, 59, 0.55);
  --line: rgba(28, 25, 21, 0.12);
  --line-strong: rgba(28, 25, 21, 0.24);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-frame: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 1px 2px rgba(28, 25, 21, 0.04), 0 18px 40px -20px rgba(28, 25, 21, 0.25);
  --shadow-float: 0 2px 6px rgba(28, 25, 21, 0.05), 0 34px 70px -30px rgba(28, 25, 21, 0.42);
  --shadow-bloom: 0 4px 10px rgba(28, 25, 21, 0.05), 0 50px 90px -34px rgba(17, 38, 59, 0.5);
  --blur: blur(18px) saturate(1.5);

  --gap: 12px;                   /* frame inset from viewport */
  --gutter: 20px;                /* content side padding */
  --maxw: 1200px;
  --dock-space: 0px;
  --header-h: 72px;
  --sticky-top: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 768px) {
  :root { --gap: 16px; --gutter: 32px; --header-h: 80px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; --dock-space: 128px; --header-h: 92px; --sticky-top: 100px; }
}

/* ---------- 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--stone);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Marble-like stone texture behind the frames */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 8% -8%, rgba(255, 255, 255, 0.75), transparent 62%),
    radial-gradient(900px 640px at 100% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0032 0.0085' numOctaves='5' seed='14'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 -2.4 1.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='0.5'/%3E%3C/svg%3E") center / 900px 900px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.28 0 0 0 0 0.25 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--stone);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: inherit;
  font-variant-numeric: lining-nums;
}

p, figure, dl, dd, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; }
::selection { background: var(--brand-red); color: #fff; }

main:focus { outline: none; }

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Utilities ------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1024px) {
  .container {
    max-width: none;
    padding-left: max(var(--dock-space), calc((100% - var(--maxw)) / 2));
    padding-right: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 300;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.eyebrow--line::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-red);
}

.accent { color: var(--brand-red); }

.section { padding-block: clamp(72px, 9vw, 136px); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }

.section-head--split {
  display: grid;
  gap: 16px;
  max-width: none;
}

@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 64px;
  }
}

.section-head__aside { display: grid; gap: 16px; justify-items: start; }

.section-title {
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.section-title--sm { font-size: clamp(1.875rem, 1.35rem + 2vw, 3rem); }

.section-lead {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 58ch;
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

/* Image crop helper: reuse the three photos with different framing */
.ph {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--stone-2);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--pos, 50% 50%);
  transition: transform 1.2s var(--ease);
}

.ph--mono img { filter: grayscale(1) contrast(1.05); }
.ph--blur img { filter: blur(10px) saturate(1.1); }

.ph--duo img { filter: grayscale(1) contrast(1.15); }
.ph--duo::before,
.ph--duo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ph--duo::before { background: var(--brand-navy); mix-blend-mode: lighten; }
.ph--duo::after { background: #F1E9DE; mix-blend-mode: multiply; }

.ph--navy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(28, 61, 95, 0.15), rgba(17, 38, 59, 0.65));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ph--warm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(170deg, rgba(255, 196, 140, 0.35), rgba(196, 118, 72, 0.3));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* ---------- 4. Buttons & controls --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), transform 0.5s var(--ease);
}

.btn__arrow { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); }
.btn--dark:hover { background: var(--brand-navy); }

.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn--light:hover { background: var(--paper); }

.btn--red { background: var(--brand-red); color: #fff; }
.btn--red:hover { background: var(--brand-red-ink); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.35); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-cta {
  display: none;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 4px 4px 4px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.35s var(--ease), transform 0.5s var(--ease);
}
.btn-cta:hover { background: var(--brand-navy); }

.btn-cta__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 0.5s var(--ease), background-color 0.35s;
}
.btn-cta__icon .i { width: 18px; height: 18px; }
.btn-cta:hover .btn-cta__icon { transform: rotate(-45deg); }

@media (min-width: 768px) {
  .btn-cta { display: inline-flex; }
}

.round-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease), opacity 0.3s;
}
.round-btn .i { width: 18px; height: 18px; }
.round-btn--light { background: rgba(28, 25, 21, 0.07); color: var(--ink); }
.round-btn--light:hover { background: rgba(28, 25, 21, 0.14); }
.round-btn--dark { background: var(--ink); color: #fff; }
.round-btn--dark:hover { background: var(--brand-navy); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

.icon-btn {
  display: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.35s var(--ease), transform 0.5s var(--ease);
}
.icon-btn:hover { background: #fff; }
.js .icon-btn { display: grid; }
@media (max-width: 767.98px) {
  .js .icon-btn { display: none; }
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.play-link__circle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease);
}
.play-link__circle .i { width: 16px; height: 16px; margin-left: 2px; }
.play-link:hover .play-link__circle { background: var(--ink); color: #fff; transform: scale(1.06); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.link-arrow .i { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.chip:hover,
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.chip--dark {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.chip--dark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-red-soft);
  transform: rotate(45deg);
}
.chip--dark:hover { background: #fff; border-color: #fff; color: var(--ink); }

.ticks { display: grid; gap: 12px; margin-top: 32px; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.ticks .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(234, 42, 56, 0.1);
  color: var(--brand-red-ink);
  stroke-width: 2;
  margin-top: 1px;
}

/* ---------- 5. Preloader -------------------------------------------------
   Full: paper stage (outline stroke → masked logo → eyebrow → % counter),
   then the stage fades and a navy/red curtain splits away.
   Short (.is-return): 350 ms paper fade. Fixed overlay → no layout shift. */
.preloader { display: none; }

.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  pointer-events: none;
}
.js:not(.pre-done) body { cursor: progress; }

.preloader__curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}
.preloader__curtain--l { left: 0; background: var(--brand-navy-deep); }
.preloader__curtain--r {
  right: 0;
  background: linear-gradient(rgba(234, 42, 56, 0.16), rgba(234, 42, 56, 0.16)), var(--paper);
}
.pre-exit .preloader__curtain--l { transform: translateX(-101%); transition-delay: 0.22s; }
.pre-exit .preloader__curtain--r { transform: translateX(101%); transition-delay: 0.22s; }

.preloader__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--paper);
  transition: opacity 0.32s ease, transform 0.6s var(--ease);
}
.pre-exit .preloader__stage { opacity: 0; transform: scale(1.02); }

.preloader__mark { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }

.preloader__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--brand-red);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.preloader__outline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pre-run .preloader__outline path { animation: pre-draw 1.1s var(--ease-io) 0.1s forwards; }
.pre-run .preloader__outline .preloader__roof { stroke: var(--brand-navy); animation-delay: 0.55s; animation-duration: 0.7s; }

.preloader__logo {
  position: relative;
  width: 52px;
  height: auto;
  clip-path: inset(100% 0 0 0);
}
.pre-run .preloader__logo { animation: pre-mask 0.9s var(--ease) 0.75s forwards; }

.preloader__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  margin-right: -0.6em;
}
.pre-run .preloader__eyebrow { animation: pre-letters 1.4s var(--ease) 0.5s forwards; }

.preloader__progress { display: flex; align-items: center; gap: 16px; opacity: 0; }
.pre-run .preloader__progress { animation: pre-fade 0.6s ease 0.3s forwards; }
.preloader__bar { position: relative; width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0; background: var(--brand-red); transform-origin: left; transform: scaleX(0); }
.preloader__pct {
  min-width: 3.4ch;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}

/* short version on later pages */
.is-return .preloader__curtain,
.is-return .preloader__progress,
.is-return .preloader__eyebrow,
.is-return .preloader__outline { display: none; }
.is-return .preloader__logo { clip-path: none; opacity: 0.9; }
.is-return .preloader__stage { transition: opacity 0.23s ease; }

@keyframes pre-draw { to { stroke-dashoffset: 0; } }
@keyframes pre-mask { to { clip-path: inset(0 0 0 0); } }
@keyframes pre-letters { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 1; letter-spacing: 0.32em; } }
@keyframes pre-fade { to { opacity: 1; } }

/* ---------- 6. Header ---------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--gap);
  left: var(--gap);
  right: var(--gap);
  z-index: 50;
  pointer-events: none;
}

.site-header__inner {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  margin-inline: auto;
  padding: 12px 12px 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: max-width 0.6s var(--ease), padding 0.5s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

.is-scrolled .site-header__inner {
  max-width: 1280px;
  padding: 8px 8px 8px 12px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-float);
}

@media (min-width: 1024px) {
  .site-header__inner { padding: 16px 24px; }
  .is-scrolled .site-header__inner { padding: 8px 8px 8px 16px; transform: translateY(-6px); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  flex: none;
}

.brand__logo {
  width: 46px;
  height: auto;
  transition: width 0.5s var(--ease);
}
.is-scrolled .site-header .brand__logo { width: 40px; }

.brand__text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__text span { font-weight: 500; color: var(--muted); margin-left: 0.35em; }

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .site-header .brand__text { display: none; }
}

.nav-pill { display: none; }

@media (min-width: 1024px) {
  .nav-pill { display: block; }
}

.nav-pill ul {
  display: flex;
  gap: 2px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.is-scrolled .nav-pill ul { background: transparent; box-shadow: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.nav-pill a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-pill a:hover { color: var(--ink); background: rgba(28, 25, 21, 0.06); }
.nav-pill a[aria-current] { background: var(--ink); color: #fff; }

@media (min-width: 1280px) {
  .nav-pill a { padding: 0 24px; }
}

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

.menu-toggle {
  position: relative;
  display: grid;
  place-content: center;
  gap: 8px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.menu-toggle span:last-child { width: 13px; justify-self: end; }
.menu-toggle:hover span:last-child { width: 20px; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* ---------- 7. Mobile menu ---------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--gap) + 8px) 16px max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(28, 103, 178, 0.35), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(234, 42, 56, 0.16), transparent 70%),
    var(--brand-navy-deep);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0 round 0 0 28px 28px);
  transition: opacity 0.5s var(--ease), clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0 round 0);
  transition: opacity 0.4s var(--ease), clip-path 0.7s var(--ease);
}

.menu-open, .menu-open body,
.is-locked, .is-locked body { overflow: hidden; }

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 8px 2px;
}

.brand__chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
}
.brand__chip .brand__logo { width: 38px; }
.brand--light .brand__text span { color: rgba(255, 255, 255, 0.6); }

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}
.mobile-menu__close:hover { background: rgba(255, 255, 255, 0.1); }

.mobile-menu__nav { margin-top: clamp(32px, 7vh, 64px); }

.mobile-menu__links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.menu-open .mobile-menu__links li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i) * 0.06s);
}

.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.45rem + 1.6vw, 2.375rem);
  line-height: 1.15;
}
.mobile-menu__links a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}
.mobile-menu__links a[aria-current] { color: var(--brand-red-soft); }

.mobile-menu__foot {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: auto;
  padding-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.menu-open .mobile-menu__foot { opacity: 1; transform: none; transition-delay: 0.5s; }
.mobile-menu__foot .eyebrow { color: rgba(255, 255, 255, 0.55); }

.mobile-menu__phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
}
.mobile-menu__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
}
.mobile-menu__foot .btn { margin-top: 16px; }

/* ---------- 8. Left dock ------------------------------------------------- */
.dock { display: none; }

@media (min-width: 1024px) {
  .dock {
    position: fixed;
    left: 28px;
    top: 50%;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 12px;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-float);
    transform: translateY(-50%);
  }
}

.dock a { position: relative; display: grid; place-items: center; border-radius: 50%; }

.dock__home {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 4px;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.dock__home:hover { background: var(--brand-navy); }

.dock__link {
  width: 46px;
  height: 46px;
  color: var(--ink-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.dock__link .i { width: 19px; height: 19px; }
.dock__link:hover { background: rgba(28, 25, 21, 0.07); color: var(--ink); }
.dock__link[aria-current] { background: #fff; color: var(--brand-red-ink); box-shadow: var(--shadow-soft); }

.dock [aria-current]::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-red);
  transform: translateY(-50%);
}
.dock__home[aria-current]::after { right: -8px; }

.dock__divider { width: 26px; height: 1px; margin: 8px 0; background: var(--line-strong); }

.dock__thumb {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--shadow-soft);
}
.dock__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.6); transition: transform 0.6s var(--ease); }
.dock__thumb:hover img { transform: scale(1.8); }

.dock .dock__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 56px;
  padding-top: 8px;
  border-radius: 16px;
}
.dock__play-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.dock__play-icon .i { width: 13px; height: 13px; margin-left: 2px; }
.dock__play:hover .dock__play-icon { background: var(--ink); color: #fff; }
.dock__play-label {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-2);
}

.dock [data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.dock [data-tip]:hover::before,
.dock [data-tip]:focus-visible::before { opacity: 1; transform: translate(0, -50%); }

@media (min-width: 1024px) and (max-height: 700px) {
  .dock__divider, .dock__thumb { display: none; }
}
@media (min-width: 1024px) and (max-height: 560px) {
  .dock { display: none; }
}

/* ---------- 9. Home hero ------------------------------------------------- */
.hero { position: relative; padding: var(--gap) var(--gap) 0; }

.hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: max(600px, calc(100vh - 2 * var(--gap) - 24px));
  min-height: max(600px, calc(100svh - 2 * var(--gap) - 24px));
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  border-radius: var(--radius-frame);
  background: var(--stone-2);
  box-shadow: var(--shadow-float);
}

.hero__media {
  position: absolute;
  inset: -28px;
  z-index: -2;
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0);
  transition: transform 1.4s var(--ease);
}

.hero__img,
.hero__media > .ph,
.hero__media > .ph img {
  width: 100%;
  height: 100%;
}

.hero__img {
  object-fit: cover;
  object-position: 56% 50%;
  animation: kenburns 28s var(--ease-io) infinite alternate;
}

.hero__media > .ph img { animation: kenburns-soft 30s var(--ease-io) infinite alternate; }

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes kenburns-soft {
  from { transform: scale(var(--zoom, 1)); }
  to { transform: scale(calc(var(--zoom, 1) * 1.08)) translate3d(-1%, -0.8%, 0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248, 245, 240, 0.94) 0%, rgba(248, 245, 240, 0.88) 50%, rgba(248, 245, 240, 0.72) 76%, rgba(248, 245, 240, 0.35) 100%);
}

@media (min-width: 768px) {
  .hero__scrim {
    background:
      linear-gradient(100deg, rgba(248, 245, 240, 0.95) 0%, rgba(248, 245, 240, 0.86) 34%, rgba(248, 245, 240, 0.42) 58%, rgba(248, 245, 240, 0) 78%),
      linear-gradient(180deg, rgba(248, 245, 240, 0.55) 0%, rgba(248, 245, 240, 0) 24%);
  }
}

.hero__content { position: relative; max-width: 760px; }

.hero__eyebrow { color: var(--ink-2); }

.hero__title {
  margin-top: 16px;
  font-size: clamp(3.1rem, 1rem + 6.4vw, 7.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.word { display: inline-block; }

.hero__lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.hero__tags {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__tags li { display: flex; align-items: center; gap: 8px; }
.hero__tags li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--brand-red);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .hero__tags { display: flex; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .hero__frame {
    min-height: max(640px, calc(100vh - var(--gap) - 100px));
    min-height: max(640px, calc(100svh - var(--gap) - 100px));
    padding: calc(var(--header-h) + 72px) 40px 192px calc(var(--dock-space) - var(--gap) + 8px);
  }
  .hero__tags {
    position: absolute;
    top: calc(var(--header-h) + 64px);
    right: 40px;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 2px 0 2px 16px;
    border-left: 1px solid rgba(28, 25, 21, 0.45);
    color: var(--ink);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
  }
  .hero__tags li::before { display: none; }
}

/* Floating cards row */
.hero__cards {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  margin-top: -48px;
  padding-inline: 8px;
}

@media (min-width: 768px) {
  .hero__cards {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 16px;
    padding-inline: 16px;
  }
  .hero__card--feature { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .hero__cards {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) minmax(176px, 0.5fr);
    align-items: stretch;
    margin-top: -152px;
    padding: 0 24px 0 calc(var(--dock-space) - var(--gap) - 16px);
  }
  .hero__card--feature { grid-column: auto; }
}

@media (min-width: 1280px) {
  .hero__cards { gap: 16px; padding-right: 40px; }
}

.hero__card { display: flex; min-width: 0; }
.hero__card > * { flex: 1; min-width: 0; }

/* Featured mini slider */
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 16px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: auto;
}
.feature-card:hover { box-shadow: var(--shadow-bloom); }

.feature-card__media {
  position: relative;
  min-height: 176px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--stone-2);
}

.feature-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.9s var(--ease), transform 1.6s var(--ease);
}
.feature-card__media img.is-active { opacity: 1; transform: scale(1); }

.feature-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 38, 59, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 4px 2px 0;
}

.feature-card__body { container-type: inline-size; }
.feature-card__top { display: flex; justify-content: space-between; gap: 8px; }

@container (max-width: 290px) {
  .feature-card__top { flex-direction: column-reverse; justify-content: flex-start; gap: 8px; }
}

.feature-card__slides { display: grid; min-width: 0; }

.feature-card__slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.feature-card__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease) 0.12s, transform 0.8s var(--ease) 0.12s, visibility 0s;
}

.feature-card__title { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.12; }

.feature-card__text {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.feature-card .link-arrow { margin-top: 0; font-size: 0.75rem; }

.feature-card__count {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.feature-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.feature-card__nav { display: flex; gap: 8px; }
.feature-card__nav .round-btn { width: 46px; height: 46px; }

.dashes { display: flex; align-items: center; gap: 8px; }
.dashes span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(28, 25, 21, 0.16);
  overflow: hidden;
  transition: width 0.5s var(--ease);
}
.dashes span.is-active { width: 34px; }
.dashes i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.dashes .is-active i { transform: scaleX(1); }
.is-autoplay .dashes .is-active i { transform: scaleX(0); animation: dash-fill var(--slide-ms, 6000ms) linear forwards; }
.is-autoplay.is-paused .dashes .is-active i { animation-play-state: paused; }

@keyframes dash-fill { to { transform: scaleX(1); } }

@container (max-width: 290px) {
  .feature-card__nav { gap: 8px; }
  .feature-card__nav .round-btn { width: 44px; height: 44px; }
  .dashes { gap: 4px; }
  .dashes span { width: 9px; }
  .dashes span.is-active { width: 22px; }
}

/* Stats glass card */
.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 24px 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}
.hero__card--stats .stats-card { align-content: center; }

.stat {
  display: grid;
  justify-items: start;
  padding: 2px 16px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.stat:first-child { border-left: 0; }
.stat .i { width: 24px; height: 24px; color: var(--brand-red); stroke-width: 1.4; }

.stat__num {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat__label {
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.stats-card--wide { padding: clamp(24px, 4vw, 48px) 8px; }
.stats-card--wide .stat { padding-inline: clamp(16px, 3vw, 40px); }
.stats-card--wide .stat__num { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); }
.stats-card--wide .stat__label { font-size: 0.8125rem; }

/* Dark "vision" card */
.vision-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 196px;
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(240px 180px at 100% 100%, rgba(234, 42, 56, 0.22), transparent 70%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-float);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.vision-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-bloom); }

.vision-card__thumb {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}
.vision-card__thumb .ph { width: 100%; height: 100%; }

.vision-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 0.6s var(--ease), background-color 0.35s, color 0.35s;
}
.vision-card__arrow .i { width: 18px; height: 18px; }
.vision-card:hover .vision-card__arrow { transform: rotate(45deg); background: var(--brand-red); color: #fff; }

.vision-card__title {
  margin-top: 80px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.02;
}
.vision-card__text { margin-top: 8px; font-size: 0.75rem; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }

.vision-card__line {
  position: relative;
  display: block;
  height: 2px;
  margin-top: 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.vision-card__line::after {
  content: "";
  position: absolute;
  inset: 0 55% 0 0;
  background: #fff;
  transition: right 0.8s var(--ease);
}
.vision-card:hover .vision-card__line::after { right: 0; }

@media (max-width: 479.98px) {
  .feature-card { grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); gap: 12px; }
  .feature-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .stat { padding-inline: 8px; }
  .stat__label { font-size: 0.625rem; }
}

/* ---------- 10. Inner page hero ---------------------------------------- */
.page-hero { position: relative; padding: var(--gap) var(--gap) 0; }

.page-hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(520px, 78vh, 780px);
  min-height: clamp(520px, 78svh, 780px);
  padding: calc(var(--header-h) + 48px) var(--gutter) 56px;
  border-radius: var(--radius-frame);
  background: var(--stone-2);
  box-shadow: var(--shadow-float);
}

.page-hero__ph { width: 100%; height: 100%; }

/* Inner heroes keep their copy at the bottom, so the mobile scrim is anchored there */
@media (max-width: 767.98px) {
  .page-hero .hero__scrim {
    background:
      linear-gradient(0deg, rgba(248, 245, 240, 0.96) 0%, rgba(248, 245, 240, 0.9) 48%, rgba(248, 245, 240, 0.55) 72%, rgba(248, 245, 240, 0.35) 100%);
  }
}

.page-hero__content { position: relative; max-width: 820px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: 0.4; }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: rgba(28, 25, 21, 0.25);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}
.breadcrumb a:hover { text-decoration-color: var(--brand-red); }
.breadcrumb [aria-current] { color: var(--brand-red-ink); }

.page-hero .hero__eyebrow { margin-top: 8px; }

.page-title {
  margin-top: 16px;
  font-size: clamp(2.75rem, 1.5rem + 4.8vw, 6.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-hero__lead {
  margin-top: 24px;
  max-width: 48ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: var(--ink-2);
}

.page-hero__facts { position: relative; z-index: 3; margin-top: -32px; padding-inline: 8px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 4px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}
.facts__item { padding: 2px 16px; border-left: 1px solid var(--line); min-width: 0; }
.facts__item:first-child { border-left: 0; }
.facts dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.92rem + 0.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.2;
}

.page-hero--facts .page-hero__frame { padding-bottom: 80px; }

@media (min-width: 768px) {
  .page-hero__facts { padding-inline: 16px; }
}

@media (min-width: 1024px) {
  .page-hero__frame {
    padding: calc(var(--header-h) + 72px) 40px 80px calc(var(--dock-space) - var(--gap) + 8px);
  }
  .page-hero .hero__tags { top: calc(var(--header-h) + 64px); }
  .page-hero--facts .page-hero__frame { padding-bottom: 128px; }
  .page-hero__facts {
    max-width: 820px;
    margin-top: -64px;
    padding: 0 0 0 calc(var(--dock-space) - var(--gap) - 16px);
  }
  .facts { padding: 24px 8px; }
  .facts__item { padding-inline: 24px; }
}

/* ---------- 11. Marquee -------------------------------------------------- */
.marquee {
  margin-top: clamp(32px, 6vw, 72px);
  overflow: hidden;
  -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: marquee 56s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group { display: flex; align-items: center; flex: none; }

.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
}
.marquee__item::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand-red);
  transform: rotate(45deg);
}
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(28, 25, 21, 0.55); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 12. About split & collage ---------------------------------- */
.about { display: grid; gap: 56px; align-items: center; }

@media (min-width: 1024px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
}

.about__text .section-lead { margin-top: 24px; }
.about__body { margin-top: 16px; color: var(--muted); max-width: 58ch; }
.about__text .btn { margin-top: 32px; }

.collage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 620px;
  justify-self: center;
}

.collage__a,
.collage__b {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  background: var(--stone-2);
}
.collage__a { inset: 0 16% 20% 0; }
.collage__b { inset: 40% 0 0 36%; border: 6px solid var(--paper); }

.collage__layer { position: absolute; inset: -10% 0; }
.collage__layer .ph { width: 100%; height: 100%; }

.collage__badge {
  position: absolute;
  left: 4%;
  bottom: 3%;
  display: grid;
  gap: 2px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}
.collage__year {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.3vw, 2.875rem);
  font-weight: 500;
  line-height: 1;
  color: var(--brand-red);
}
.collage__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- 13. Product cards ----------------------------------------- */
.products { display: grid; gap: 16px; }

@media (min-width: 640px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), background-color 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-bloom); background: rgba(255, 255, 255, 0.92); }

.product-card__media { position: relative; border-radius: 16px; overflow: hidden; }
.product-card__media .ph { aspect-ratio: 4 / 3; }
.product-card:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px 8px 12px;
  flex: 1;
}
.product-card__title { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); }
.product-card__text { margin-top: 8px; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.product-card:hover .product-card__arrow { background: var(--brand-red); transform: rotate(45deg); }

/* ---------- 14. Panel & timeline ------------------------------------- */
.panel {
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4.5vw, 64px);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.timeline { position: relative; display: grid; gap: 32px; }

.timeline__line {
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line-strong);
}
.timeline__line span {
  position: absolute;
  inset: 0;
  background: var(--brand-red);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.8s var(--ease) 0.2s;
}
.timeline.is-revealed .timeline__line span,
html:not(.js) .timeline__line span { transform: none; }

.timeline__step { position: relative; display: grid; grid-template-columns: 52px 1fr; align-content: start; gap: 16px; }

.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.timeline__step:hover .timeline__num { background: var(--ink); border-color: var(--ink); color: #fff; }

.timeline__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(234, 42, 56, 0.09);
  color: var(--brand-red-ink);
}
.timeline__title { margin-top: 16px; font-size: 1.375rem; }
.timeline__text { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); max-width: 34ch; }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
  .timeline__line { left: 0; right: 0; top: 26px; bottom: auto; width: auto; height: 1px; }
  .timeline__line span { transform-origin: left; transform: scaleX(0); }
  .timeline.is-revealed .timeline__line span { transform: none; }
  .timeline__step { grid-template-columns: 1fr; gap: 24px; }
  .timeline__text { max-width: none; }
}

/* ---------- 15. Feature tiles --------------------------------------- */
.features { display: grid; gap: 16px; }

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-bloom); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(234, 42, 56, 0.09);
  color: var(--brand-red-ink);
}
.feature__icon .i { width: 22px; height: 22px; }
.feature__title { margin-top: auto; padding-top: 48px; font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); line-height: 1.12; }
.feature__text { margin-top: 12px; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

.feature--dark {
  background:
    radial-gradient(280px 220px at 100% 0%, rgba(28, 103, 178, 0.35), transparent 70%),
    linear-gradient(160deg, var(--brand-navy), var(--brand-navy-deep));
  border-color: transparent;
  color: #fff;
}
.feature--dark .feature__icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.feature--dark .feature__text { color: rgba(255, 255, 255, 0.74); }

.feature--image { color: #fff; border-color: transparent; }
.feature--image > .ph { position: absolute; inset: 0; z-index: -2; }
.feature--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 38, 59, 0.15) 0%, rgba(17, 38, 59, 0.82) 72%);
}
.feature--image:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.feature--image .feature__icon { background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.feature--image .feature__text { color: rgba(255, 255, 255, 0.82); }

/* ---------- 16. Dark band ------------------------------------------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: var(--gap);
  padding-block: clamp(72px, 9vw, 128px);
  border-radius: var(--radius-frame);
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(28, 103, 178, 0.35), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(234, 42, 56, 0.14), transparent 70%),
    var(--brand-navy-deep);
  color: #fff;
}

.band__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.12; }
.band__bg .ph { width: 100%; height: 100%; background: transparent; }

.band .eyebrow { color: rgba(255, 255, 255, 0.6); }
.band .accent { color: var(--brand-red-soft); }
.band .section-lead { color: rgba(255, 255, 255, 0.75); }

.band__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

/* ---------- 17. References ------------------------------------------ */
.scroller-nav { display: flex; gap: 8px; }

.ref-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 32px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.ref-scroller::-webkit-scrollbar { display: none; }
.ref-scroller:focus-visible { outline-offset: -4px; }

@media (min-width: 1024px) {
  .ref-scroller {
    padding-left: max(var(--dock-space), calc((100% - var(--maxw)) / 2));
    padding-right: max(var(--gutter), calc((100% - var(--maxw)) / 2));
    scroll-padding-left: max(var(--dock-space), calc((100% - var(--maxw)) / 2));
  }
}

.ref-card {
  flex: 0 0 min(80vw, 330px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease), background-color 0.4s, box-shadow 0.6s var(--ease);
}
.ref-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-bloom); }
.ref-card:nth-child(3n + 2) { background: linear-gradient(160deg, var(--brand-navy), var(--brand-navy-deep)); color: #fff; border-color: transparent; }
.ref-card:nth-child(3n + 2) .ref-card__city { color: rgba(255, 255, 255, 0.7); }
.ref-card:nth-child(3n + 2) .ref-card__num { color: var(--brand-red-soft); }

.ref-card__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-red);
  font-variant-numeric: lining-nums;
}
.ref-card__title { font-size: 1.375rem; line-height: 1.15; }
.ref-card__city {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ref-card__city .i { width: 15px; height: 15px; }

.refs__more { margin-top: 8px; }

/* ---------- 18. CTA card ------------------------------------------- */
.cta { padding-bottom: clamp(72px, 9vw, 128px); }

.cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-frame);
  overflow: hidden;
  background:
    radial-gradient(520px 360px at 100% 100%, rgba(234, 42, 56, 0.26), transparent 70%),
    radial-gradient(520px 360px at 0% 0%, rgba(28, 103, 178, 0.3), transparent 70%),
    linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep));
  color: #fff;
  box-shadow: var(--shadow-bloom);
}

.cta-card__thumb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.cta-card__thumb .ph { width: 100%; height: 100%; }

.cta-card__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.cta-card__title .accent { color: var(--brand-red-soft); }
.cta-card__text { margin-top: 16px; max-width: 50ch; color: rgba(255, 255, 255, 0.75); }

.cta-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.cta-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  font-weight: 600;
}
.cta-card__phone .i {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.35s, color 0.35s;
}
.cta-card__phone:hover .i { background: #fff; color: var(--ink); }
.cta-card__phone--dark .i { border-color: var(--line-strong); }
.cta-card__phone--dark:hover .i { background: var(--ink); color: #fff; }

@media (min-width: 1024px) {
  .cta-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; }
  .cta-card__actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- 19. Footer --------------------------------------------- */
.site-footer { padding: 0 var(--gap) var(--gap); }

.footer-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
  border-radius: var(--radius-frame);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(28, 103, 178, 0.28), transparent 70%),
    var(--brand-navy-deep);
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid { display: grid; gap: 48px; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .footer-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; }
}

.footer-brand p { margin-top: 24px; max-width: 38ch; font-size: 0.9375rem; }

.footer-logo { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; color: #fff; }
.footer-logo__chip {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fff;
}
.footer-logo__chip img { width: 46px; }
.footer-logo__name { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.footer-logo__name span { font-weight: 500; color: rgba(255, 255, 255, 0.6); margin-left: 0.35em; }

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  transition: color 0.3s, transform 0.4s var(--ease);
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }

@media (min-width: 1024px) {
  .footer-links a { min-height: 36px; }
}

.footer-address { font-size: 0.9375rem; line-height: 1.7; }

.footer-contact { display: grid; gap: 4px; margin-top: 16px; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #fff;
  font-weight: 500;
  word-break: break-word;
}
.footer-contact .i {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.3s, color 0.3s;
}
.footer-contact a:hover .i { background: #fff; color: var(--ink); }
.footer-contact small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}
.footer-mini { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-mini a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.footer-mini a:hover { color: #fff; }

/* ---------- 20. Back to top ---------------------------------------- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-float);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s, background-color 0.3s;
}
.js .to-top { opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s, background-color 0.3s; }
.js .to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s, background-color 0.3s; }
.to-top:hover { background: var(--brand-navy); }
.to-top > .i { width: 18px; height: 18px; }

.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.to-top__track { stroke: rgba(255, 255, 255, 0.16); }
.to-top__bar { stroke: var(--brand-red-soft); stroke-linecap: round; stroke-dasharray: 163.36; stroke-dashoffset: 163.36; }

/* ---------- 21. Products overview rows ----------------------------- */
.prows { display: grid; }

.prow { display: grid; gap: 32px; align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.prow + .prow { border-top: 1px solid var(--line); }

.prow__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.prow__media .ph { aspect-ratio: 5 / 4; }
.prow__media:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }

.prow__title { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.prow__lead { margin-top: 16px; max-width: 52ch; color: var(--ink-2); }
.prow .btn { margin-top: 32px; }

@media (min-width: 1024px) {
  .prow { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 80px; }
  .prow:nth-child(even) .prow__media { order: 2; }
}

/* ---------- 22. Product detail ------------------------------------- */
.intro { display: grid; gap: 32px; }
.intro__body { display: grid; gap: 16px; color: var(--ink-2); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem); max-width: 62ch; }
.intro__body p:first-child { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--ink); }

@media (min-width: 1024px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
}

.checklist { display: grid; gap: 12px; }

@media (min-width: 768px) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  font-weight: 500;
  line-height: 1.4;
}
.checklist__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.checklist__icon .i { width: 16px; height: 16px; stroke-width: 2; }

.gallery-3 { display: grid; gap: 12px; }

.gallery-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.gallery-tile .ph { aspect-ratio: 4 / 3; height: 100%; }
.gallery-tile:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }

.gallery-tile__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .gallery-3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(200px, 1fr)); gap: 16px; }
  .gallery-tile--lead { grid-row: span 2; }
  .gallery-tile .ph { aspect-ratio: auto; }
  .gallery-tile--lead .ph { min-height: 440px; }
}

.specs-wrap { display: grid; gap: 32px; }

@media (min-width: 1024px) {
  .specs-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .specs-wrap__head { position: sticky; top: calc(var(--sticky-top) + 24px); }
}

.specs-wrap__head .section-lead { margin-top: 16px; }

.specs { border-top: 1px solid var(--line-strong); }

.specs__row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.specs__row dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs__row dd { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem); font-weight: 400; line-height: 1.3; }

@media (min-width: 768px) {
  .specs__row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; }
}

.pn { display: grid; gap: 12px; padding-bottom: clamp(72px, 9vw, 128px); }

@media (min-width: 768px) {
  .pn { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.pn__link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.4s;
}
.pn__link:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-bloom); }
.pn__link--next { flex-direction: row-reverse; text-align: right; }

.pn__thumb { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.pn__thumb .ph { width: 100%; height: 100%; }
.pn__text { flex: 1; min-width: 0; }
.pn__text small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pn__name { display: block; margin-top: 4px; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.1; }
.pn__link:hover .pn__arrow { background: var(--ink); color: #fff; }

/* ---------- 23. Sales catalog -------------------------------------- */
.catalog-nav {
  position: sticky;
  top: var(--sticky-top);
  z-index: 30;
  margin-top: 16px;
  pointer-events: none;
}
.catalog-nav .container { pointer-events: none; }

.catalog-nav__inner {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  scrollbar-width: none;
}
.catalog-nav__inner::-webkit-scrollbar { display: none; }
.catalog-nav .chip { flex: none; border-color: transparent; font-size: 0.8125rem; }
.catalog-nav .chip:not(.is-active):hover { background: rgba(28, 25, 21, 0.07); color: var(--ink); }

.catalog { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 96px); }

.cat-section { padding-block: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--sticky-top) + 72px); }
.cat-section + .cat-section { border-top: 1px solid var(--line); }

.cat-head { display: grid; gap: 12px; margin-bottom: 32px; }
.cat-title { font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.875rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
.cat-intro { max-width: 52ch; color: var(--muted); }

@media (min-width: 1024px) {
  .cat-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; }
}

.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr)); }

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.4s;
}
.cat-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-bloom); }

.cat-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(168px, 15vw, 210px);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: var(--brand-navy);
  background: linear-gradient(145deg, #fff 0%, var(--paper) 45%, var(--stone) 100%);
}
.cat-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(28, 61, 95, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 61, 95, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 78%);
}
.cat-card__visual--navy {
  color: #fff;
  background:
    radial-gradient(240px 180px at 100% 0%, rgba(28, 103, 178, 0.4), transparent 70%),
    linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep));
}
.cat-card__visual--navy::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.illus {
  width: clamp(92px, 9vw, 124px);
  height: auto;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.8s var(--ease);
}
.illus .f { fill: currentColor; fill-opacity: 0.07; stroke: none; }
.illus .a { stroke: var(--brand-red); }
.illus .fa { fill: var(--brand-red); stroke: none; }
.cat-card__visual--navy .illus .f { fill-opacity: 0.1; }
.cat-card__visual--navy .illus .a { stroke: var(--brand-red-soft); }
.cat-card__visual--navy .illus .fa { fill: var(--brand-red-soft); }
.cat-card:hover .illus { transform: scale(1.07) rotate(-2deg); }

.cat-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 8px 8px; }
.cat-card__cat {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red-ink);
}
.cat-card__title { font-size: 1.375rem; line-height: 1.15; }
.cat-card__text { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }

.cat-card__specs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.cat-card__specs-label { width: 100%; font-size: 0.6875rem; font-weight: 600; color: var(--ink-2); }
.spec-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cat-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.3s var(--ease);
}
.cat-card__body .cat-card__cta { margin-top: auto; }
.cat-card__text + .cat-card__cta,
.cat-card__specs + .cat-card__cta { margin-top: 16px; }
.cat-card__cta .i { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.cat-card__cta:hover { background: var(--brand-red-ink); }
.cat-card__cta:hover .i { transform: translateX(3px); }

@media (min-width: 768px) {
  .cat-grid--single { grid-template-columns: minmax(0, 1fr); }
  .cat-grid--single .cat-card { flex-direction: row; align-items: stretch; gap: 8px; }
  .cat-grid--single .cat-card__visual { flex: 0 0 46%; height: auto; min-height: 240px; }
  .cat-grid--single .illus { width: 140px; }
  .cat-grid--single .cat-card__body { justify-content: center; padding: 24px 32px; }
  .cat-grid--single .cat-card__title { font-size: 1.875rem; }
  .cat-grid--single .cat-card__cta { margin-top: 16px; }
}

/* ---------- 24. Reference page ------------------------------------- */
.ref-list { border-top: 1px solid var(--line-strong); }

.ref-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.ref-row:hover { background: rgba(255, 255, 255, 0.5); }

.ref-row__num {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1;
  color: var(--brand-red);
  font-variant-numeric: lining-nums;
}
.ref-row__title {
  font-size: clamp(1.3125rem, 1.1rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.18;
  transition: transform 0.6s var(--ease);
}
.ref-row:hover .ref-row__title { transform: translateX(8px); }
.ref-row__city {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ref-row__city .i { width: 14px; height: 14px; }

@media (min-width: 768px) {
  .ref-row { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; padding: 32px 12px; }
  .ref-row__num { grid-row: auto; font-size: 2.5rem; }
  .ref-row__city { justify-content: flex-end; }
}

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.gallery__tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.gallery__tile .ph { position: absolute; inset: 0; }
.gallery__tile:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.gallery__tile--1,
.gallery__tile--6 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 260px); gap: 16px; }
  .gallery__tile { aspect-ratio: auto; }
  .gallery__tile--1 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery__tile--4,
  .gallery__tile--5,
  .gallery__tile--6 { grid-column: span 2; }
}

/* ---------- 25. Contact -------------------------------------------- */
.contact { display: grid; gap: 16px; align-items: start; }

@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 24px; }
}

.company-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: start;
  gap: 0;
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-frame);
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(28, 103, 178, 0.35), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgba(234, 42, 56, 0.16), transparent 70%),
    linear-gradient(160deg, var(--brand-navy), var(--brand-navy-deep));
  color: #fff;
  box-shadow: var(--shadow-bloom);
}

@media (min-width: 1024px) {
  .company-card { position: sticky; top: calc(var(--sticky-top) + 16px); }
}

.company-card__logo { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: #fff; }
.company-card__logo img { width: 50px; }
.company-card__title { margin-top: 24px; font-size: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem); font-weight: 400; }
.company-card__address { margin-top: 8px; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

.company-card__list { display: grid; gap: 8px; width: 100%; margin: 32px 0 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.company-card__list a { display: flex; align-items: center; gap: 16px; min-height: 56px; font-size: 1.0625rem; font-weight: 600; word-break: break-word; }
.company-card__list small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.company-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background-color 0.3s, color 0.3s;
}
.company-card__icon .i { width: 18px; height: 18px; }
.company-card__list a:hover .company-card__icon { background: #fff; color: var(--ink); }

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  scroll-margin-top: calc(var(--sticky-top) + 12px);
}
.form-card__title { font-size: clamp(1.875rem, 1.55rem + 1.3vw, 2.625rem); font-weight: 400; }
.form-card__note { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

.form { display: grid; gap: 16px; margin-top: 32px; }

@media (min-width: 768px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; align-content: start; }
.field > label { font-size: 0.8125rem; font-weight: 600; }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; padding: 16px 16px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1915' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: rgba(28, 25, 21, 0.4); }
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 61, 95, 0.12);
}
.field textarea::placeholder { color: #8C847A; }

.field.is-invalid input:not([type="checkbox"]),
.field.is-invalid textarea { border-color: var(--brand-red-ink); box-shadow: 0 0 0 4px rgba(234, 42, 56, 0.1); }

.field__error { min-height: 0; font-size: 0.8125rem; font-weight: 600; color: var(--brand-red-ink); }
.field__error:empty { display: none; }

.consent { position: relative; display: flex; align-items: flex-start; gap: 16px; min-height: 44px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { position: absolute; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.consent__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: transparent;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.consent__box .i { width: 14px; height: 14px; stroke-width: 2.4; }
.consent input:checked + .consent__box { background: var(--ink); border-color: var(--ink); color: #fff; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--brand-red); outline-offset: 3px; }
.field.is-invalid .consent__box { border-color: var(--brand-red-ink); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.form__hint { font-size: 0.8125rem; color: var(--muted); }

.form-success { display: grid; justify-items: start; gap: 16px; outline: none; }
.form-success p { color: var(--ink-2); max-width: 52ch; }
.form-success a { color: var(--brand-red-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-success .btn { margin-top: 8px; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  animation: pop 0.7s var(--ease) both;
}
.form-success__icon .i { width: 28px; height: 28px; stroke-width: 2; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

.map {
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius-frame);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  background: var(--stone-2);
  aspect-ratio: 4 / 3;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.03); }

@media (min-width: 768px) {
  .map { aspect-ratio: 21 / 9; }
}

/* ---------- 26. 404 ------------------------------------------------- */
.page-hero--404 .page-hero__frame { justify-content: center; min-height: max(620px, calc(100svh - 2 * var(--gap))); }
.nf__code {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 3rem + 12vw, 13rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.85;
  color: var(--brand-red);
  font-variant-numeric: lining-nums;
}
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nf__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.nf__chips .chip { background: rgba(255, 255, 255, 0.55); }
.nf__chips .chip:hover { background: var(--ink); }

/* ---------- 27. Showroom (O nama) --------------------------------- */
.showroom { display: grid; gap: 40px; align-items: center; }

@media (min-width: 1024px) {
  .showroom { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 80px; }
}

.showroom__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-float);
}
.showroom__pin {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
}
.showroom__pin .i { color: var(--brand-red); }
.showroom__text .section-lead { margin-top: 24px; }
.showroom__address { margin-top: 16px; font-weight: 600; }
.showroom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* ---------- 28. Search overlay ----------------------------------- */
.search {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--gap) + 80px) 12px 24px;
  background: rgba(17, 22, 30, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.search.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }

.search__panel {
  width: min(660px, 100%);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
  transform: translateY(-14px) scale(0.98);
  transition: transform 0.5s var(--ease);
}
.search.is-open .search__panel { transform: none; }

.search__field { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.search__field > .i { color: var(--muted); }
.search__input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  border: 0;
  background: none;
  font-size: 1.0625rem;
  outline: none;
}
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.search__close:hover { background: rgba(28, 25, 21, 0.07); }

.search__results { max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.search__result {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 14px;
  transition: background-color 0.2s;
}
.search__result:hover,
.search__result:focus-visible { background: rgba(28, 25, 21, 0.06); outline: none; }
.search__result-title { font-weight: 600; }
.search__result-type {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.search__result .i { color: var(--brand-red); }
.search__empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.search__empty a { color: var(--brand-red-ink); font-weight: 600; text-decoration: underline; }

/* ---------- 29. Gallery reel (lightbox) -------------------------- */
.reel {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 72px 12px 96px;
  background: rgba(10, 18, 28, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.reel.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }

.reel__stage {
  position: relative;
  width: min(1200px, calc(100vw - 24px), calc((100vh - 180px) * 16 / 9));
  width: min(1200px, calc(100vw - 24px), calc((100svh - 180px) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.6s var(--ease);
}
.reel.is-open .reel__stage { transform: none; }

.reel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.reel__slide.is-active { opacity: 1; }
.reel__slide img { width: 100%; height: 100%; object-fit: cover; }
.reel__slide.is-active img { animation: reel-zoom 7s linear both; }
@keyframes reel-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.reel__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
}

.reel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.reel__controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  color: #fff;
}
.reel__controls .round-btn { background: rgba(255, 255, 255, 0.14); color: #fff; }
.reel__controls .round-btn:hover { background: #fff; color: var(--ink); }
.reel__count { min-width: 64px; text-align: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.reel__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.2); }
.reel__progress i { display: block; height: 100%; background: var(--brand-red); transform-origin: left; transform: scaleX(0); }
.reel.is-playing .reel__progress i { animation: dash-fill 5.5s linear forwards; }

/* ---------- 30. AI assistant ------------------------------------- */
.assistant-launcher {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.assistant-launcher:hover { transform: scale(1.06); }
.assistant-launcher img { width: 36px; height: auto; }
.assistant-launcher::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  opacity: 0;
  animation: pulse-ring 2.8s var(--ease) infinite;
}
.assistant-launcher.is-seen::before { animation: none; }
.assistant-launcher__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-red);
  border: 2px solid #fff;
}
.assistant-launcher.is-seen .assistant-launcher__dot { display: none; }
.assistant-open .assistant-launcher { opacity: 0; pointer-events: none; transform: scale(0.8); }

@media (max-width: 767.98px) {
  .assistant-launcher { width: 54px; height: 54px; }
  .assistant-launcher img { width: 30px; }
  .to-top { width: 52px; height: 52px; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.assistant {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  height: min(640px, calc(100vh - 20px));
  height: min(640px, calc(100dvh - 20px));
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(250, 248, 245, 0.9);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.assistant.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.55s var(--ease); }

@media (min-width: 768px) {
  .assistant { left: 24px; right: auto; bottom: 24px; width: 400px; height: min(620px, calc(100vh - 120px)); height: min(620px, calc(100dvh - 120px)); }
}

.assistant__header { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.assistant__logo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.assistant__logo img { width: 32px; }
.assistant__title { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; }
.assistant__status { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.assistant__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2F9E62; }
.assistant__close { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; }
.assistant__close:hover { background: rgba(28, 25, 21, 0.07); }

.assistant__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 16px 16px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.msg { display: flex; flex-direction: column; gap: 4px; max-width: 88%; animation: msg-in 0.45s var(--ease) both; }
.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; align-items: flex-end; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }

.msg__bubble { padding: 12px 16px; border-radius: 18px; font-size: 0.875rem; line-height: 1.55; overflow-wrap: anywhere; }
.msg--bot .msg__bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user .msg__bubble { background: var(--brand-navy); color: #fff; border-bottom-right-radius: 6px; }
.msg__bubble a { color: var(--brand-red-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msg__bubble ul { margin-top: 8px; padding-left: 16px; list-style: disc; }
.msg__bubble li + li { margin-top: 2px; }
.msg__bubble strong { font-weight: 700; }
.msg__time { padding-inline: 8px; font-size: 0.6875rem; color: var(--muted); }

.typing { display: inline-flex; gap: 4px; padding: 16px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }

.assistant__chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 2px; scrollbar-width: none; }
.assistant__chips::-webkit-scrollbar { display: none; }
.assistant__chips button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.assistant__chips button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.assistant__form { display: flex; gap: 8px; padding: 8px 12px 8px; }
.assistant__input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 1rem;
}
.assistant__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28, 61, 95, 0.12); }
.assistant__send { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color 0.3s; }
.assistant__send:hover { background: var(--brand-navy); }
.assistant__note { padding: 0 16px 12px; font-size: 0.6875rem; text-align: center; color: var(--muted); }
.assistant__note a { font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   v2 — catalog build-out: mega-menus, catalog engine, quick view, galleries
   ========================================================================== */
:root {
  --stage: #F6F3EE;
  --stage-shadow: inset 0 0 0 1px rgba(28, 25, 21, 0.05), inset 0 14px 30px -20px rgba(28, 25, 21, 0.28);
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ---------- 34. Typography polish -------------------------------------- */
main p { max-width: 72ch; }
.section-lead { max-width: 64ch; }
.section--compact { padding-block: clamp(48px, 6vw, 88px); }

.btn--sm { min-height: 44px; padding: 0 16px; gap: 8px; font-size: 0.8125rem; }
.btn--sm .btn__arrow, .btn--sm .i { width: 16px; height: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge--red { background: var(--brand-red); border-color: transparent; color: #fff; }

.chip__n { font-size: 0.6875rem; font-weight: 600; opacity: 0.6; font-variant-numeric: tabular-nums; }
.chip--accent { background: var(--brand-red); border-color: transparent; color: #fff; }
.chip--accent .i { width: 16px; height: 16px; }
.chip--accent:hover { background: var(--brand-red-ink); border-color: transparent; }

/* ---------- 35. Nav triggers + mega-menus ------------------------------ */
.nav-pill__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-pill__trigger:hover,
.nav-pill__trigger[aria-expanded="true"] { background: rgba(28, 25, 21, 0.07); color: var(--ink); }
.nav-pill__trigger[data-current] { background: var(--ink); color: #fff; }
.i--chev { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
[aria-expanded="true"] > .i--chev { transform: rotate(180deg); }
@media (min-width: 1280px) { .nav-pill__trigger { padding: 0 16px 0 24px; } }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  width: min(1180px, calc(100vw - 2 * var(--gap) - 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}
@media (max-width: 1023.98px) { .mega { display: none; } }

.mega__inner {
  border-radius: 24px;
  padding: 24px;
  background: rgba(250, 248, 245, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
}
.mega .eyebrow--line { margin-bottom: 16px; }
.mega__inner { max-height: calc(100vh - var(--header-h) - 36px); max-height: calc(100svh - var(--header-h) - 36px); overflow-y: auto; overscroll-behavior: contain; }

.mega--products .mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.mega-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mega-tile { display: grid; gap: 4px; padding: 8px; border-radius: 18px; transition: background-color 0.3s; }
.mega-tile:hover, .mega-tile:focus-visible { background: #fff; }
.mega-tile__img { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; }
.mega-tile__img .ph { width: 100%; height: 100%; }
.mega-tile:hover .ph img { transform: scale(1.04); }
.mega-tile__name { margin-top: 8px; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.2; transition: color 0.3s; }
.mega-tile:hover .mega-tile__name { color: var(--brand-red-ink); }
.mega-tile__text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--brand-navy), var(--brand-navy-deep));
  color: #fff;
}
.mega__aside .eyebrow { color: rgba(255, 255, 255, 0.6); }
.mega-steps { display: grid; gap: 8px; counter-reset: s; }
.mega-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 0.8125rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.mega-steps__num { font-family: var(--font-serif); font-size: 0.9375rem; color: var(--brand-red-soft); }
.mega__aside .btn { margin-top: auto; align-self: flex-start; background: #fff; color: var(--ink); }

.mega--catalog .mega__inner { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 16px; min-height: 380px; }
.mega-groups { display: flex; flex-direction: column; gap: 8px; padding-right: 16px; border-right: 1px solid var(--line); }
.mega-groups__list { display: grid; gap: 2px; }
.mega-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.mega-group__name { flex: 1; }
.mega-group__count { font-size: 0.6875rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega-group .i--chev { transform: rotate(-90deg); opacity: 0; transition: opacity 0.2s, transform 0.3s var(--ease); }
.mega-group.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.mega-group.is-active .i--chev { opacity: 1; color: var(--brand-red); }
.mega-groups .link-arrow { margin-top: auto; }

.mega-pane { display: none; }
.mega-pane.is-active { display: block; animation: pane-in 0.28s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateX(8px); } }
.mega-pane__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.mega-pane__title { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.15; }
.mega-pane__title:hover { color: var(--brand-red-ink); }
.mega-pane__meta { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.mega-pane__note { font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.mega-link:hover, .mega-link:focus-visible { background: #fff; border-color: transparent; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.mega-link__name { font-size: 0.875rem; font-weight: 600; }
.mega-link:hover .mega-link__name { color: var(--brand-red-ink); }
.mega-link__count { font-size: 0.75rem; color: var(--muted); }
.mega-series { display: flex; flex-wrap: wrap; gap: 8px; }
.mega-series__chip {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.mega-series__chip:hover, .mega-series__chip:focus-visible { background: var(--ink); color: #fff; }

.mega-preview { display: flex; flex-direction: column; gap: 8px; }
.mega-preview__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--stage);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  color: var(--brand-navy);
}
.mega-preview__stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; opacity: 1; transition: opacity 0.25s; }
.mega-preview__stage img:not(.is-in) { opacity: 0.25; }
.mega-preview__stage img[src=""] { display: none; }
.mega-preview__illus { display: grid; place-items: center; }
.mega-preview__illus .illus { width: 110px; }
.mega-preview__name { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.2; }
.mega-preview__meta { font-size: 0.75rem; color: var(--muted); }
.mega-preview .btn { align-self: flex-start; }

/* ---------- 36. Mobile menu accordion --------------------------------- */
.mm-acc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  line-height: 1.1;
  cursor: pointer;
}
.mm-acc > summary::-webkit-details-marker { display: none; }
.mm-acc > summary .i--chev { width: 22px; height: 22px; flex: none; opacity: 0.7; }
.mm-acc[open] > summary .i--chev { transform: rotate(180deg); }
.mm-count {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.mobile-menu__links .mm-sub { padding: 0 0 16px 2px; }
.mobile-menu__links .mm-sub li { border-bottom: 0; }
.mobile-menu__links .mm-sub a,
.mm-acc--nested > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}
.mobile-menu__links .mm-sub a::after { display: none; }
.mobile-menu__links .mm-sub a[aria-current] { color: var(--brand-red-soft); }
.mm-acc--nested > summary { font-weight: 600; color: #fff; }
.mm-acc--nested > summary .i--chev { width: 18px; height: 18px; }
.mm-acc--nested .mm-sub { margin-left: 4px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.mm-acc[open] > .mm-sub > li { animation: mm-in 0.45s var(--ease) backwards; animation-delay: calc(var(--j, 0) * 40ms); }
@keyframes mm-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 37. Footer tree -------------------------------------------- */
.footer-brand .footer-address { margin-top: 24px; }
.footer-title a { transition: color 0.3s; }
.footer-title a:hover { color: var(--brand-red-soft); }
.footer-tree { columns: 1; column-gap: 32px; }
.footer-tree > li { break-inside: avoid; margin-bottom: 12px; }
.footer-tree__group { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; transition: color 0.3s; }
.footer-tree__sub { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.footer-tree__sub a { display: inline-flex; align-items: center; min-height: 40px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.66); transition: color 0.3s; }
.footer-tree a:hover { color: #fff; }
@media (min-width: 640px) { .footer-tree { columns: 2; } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.65fr) minmax(0, 1.7fr); gap: 48px; }
  .footer-tree__group { min-height: 34px; }
  .footer-tree__sub a { min-height: 30px; }
}

/* ---------- 38. Inner hero (shorter) + preview card -------------------- */
.page-hero__frame { min-height: clamp(460px, 66vh, 680px); min-height: clamp(460px, 66svh, 680px); }
.page-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.page-hero__aside { display: none; }
.hero-preview {
  margin: 0;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
}
.hero-preview__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--stage);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  color: var(--brand-navy);
}
.hero-preview__stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.hero-preview__stage--navy { background: linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep)); color: #fff; }
.hero-preview__stage--navy .illus { width: 48%; }
.hero-preview__stage--navy .illus .a { stroke: var(--brand-red-soft); }
.hero-preview__stage--navy .illus .fa { fill: var(--brand-red-soft); }
.hero-preview figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 8px 2px; font-size: 0.75rem; font-weight: 600; }
.hero-preview__code { font-family: var(--font-mono); color: var(--brand-red-ink); }
@media (min-width: 1024px) {
  .page-hero__aside { display: block; position: absolute; right: 40px; bottom: 120px; width: clamp(210px, 19vw, 270px); }
  .page-hero--aside .page-hero__content { max-width: min(760px, calc(100% - 320px)); }
  .page-hero--aside .hero-preview { transform: rotate(-2deg); transition: transform 0.6s var(--ease); }
  .page-hero--aside .hero-preview:hover { transform: rotate(0); }
}

/* ---------- 39. Entity tiles (groups / subcategories) ------------------ */
.entity-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.entity-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.3s;
}
.entity-tile::after,
.item-card__link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.entity-tile:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-bloom); }
.entity-tile:hover::after, .item-card__link:hover::after, .item-card__link:focus-visible::after { transform: scaleX(1); }
.entity-tile__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--stage);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  color: var(--brand-navy);
}
.entity-tile__stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.entity-tile:hover .entity-tile__stage img { transform: scale(1.04); }
.entity-tile__stage--navy { background: linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep)); color: #fff; }
.entity-tile__stage .illus { width: 38%; }
.entity-tile__stage--navy .illus .a { stroke: var(--brand-red-soft); }
.entity-tile__stage--navy .illus .fa { fill: var(--brand-red-soft); }
.entity-tile__body { display: grid; gap: 4px; padding: 16px 48px 8px 8px; }
.entity-tile__name { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2; }
.entity-tile__count { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.entity-tile__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.entity-tile__arrow .i { width: 16px; height: 16px; }
.entity-tile:hover .entity-tile__arrow { background: var(--brand-red); transform: rotate(45deg); }

/* ---------- 40. Item cards ---------------------------------------------- */
.item-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); }
@media (min-width: 768px) { .item-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); } }
.item-card[hidden] { display: none; }
.item-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s;
}
.item-card__link:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow-bloom); }
.item-card__stage {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--stage);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
}
.item-card__stage img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; transition: transform 0.6s var(--ease), opacity 0.4s; }
.item-card__link:hover .item-card__stage img { transform: scale(1.04); }

/* skeleton shimmer until the image arrives (enhanced catalog only) */
.catalog-app.is-enhanced .item-card__stage:not(.is-loaded) img { opacity: 0; }
.catalog-app.is-enhanced .item-card__stage:not(.is-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%) var(--stage);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.item-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px 8px; min-width: 0; }
.item-card__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  color: var(--brand-red-ink);
  overflow-wrap: anywhere;
}
.item-card__name {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.item-card__chip { padding: 2px 8px; border-radius: 999px; background: rgba(28, 25, 21, 0.06); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.item-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.4s var(--ease), background-color 0.3s;
}
.item-card__arrow .i { width: 15px; height: 15px; }
.item-card__link:hover .item-card__arrow, .item-card__link:focus-visible .item-card__arrow { opacity: 1; transform: none; background: var(--brand-red); }
mark { background: rgba(234, 42, 56, 0.16); color: inherit; border-radius: 3px; padding: 0 1px; }

.item-grid--list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.item-grid--list .item-card__link { flex-direction: row; align-items: center; gap: 16px; padding: 8px 64px 8px 8px; border-radius: 18px; }
.item-grid--list .item-card__stage { width: 84px; flex: none; }
.item-grid--list .item-card__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 0; }
.item-grid--list .item-card__code { min-width: 13ch; font-size: 0.8125rem; }
.item-grid--list .item-card__name { -webkit-line-clamp: 1; }
.item-grid--list .item-card__chips { margin: 0; }
.item-grid--list .item-card__arrow { top: 50%; right: 16px; margin-top: -16px; opacity: 1; transform: none; }
.item-grid--list .item-card__link::after { left: 108px; }

.item-grid--static { margin-top: 4px; }
.group-more { margin-top: 24px; }

/* ---------- 41. Catalog app (filters, toolbar, drawer) ----------------- */
.cat-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .cat-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 24px; }
  .no-facets .cat-layout { grid-template-columns: minmax(0, 1fr); }
}
html:not(.js) .cat-toolbar, html:not(.js) .cat-sidebar { display: none; }
.no-facets .cat-sidebar, .no-facets .cat-filter-btn { display: none !important; }

.cat-sidebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 93;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  max-height: 86svh;
  border-radius: 26px 26px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 60px -10px rgba(17, 22, 30, 0.35);
  visibility: hidden;
  transform: translateY(105%);
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.cat-sidebar.is-open { visibility: visible; transform: none; transition: transform 0.45s var(--ease); }
.cat-sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 24px; border-bottom: 1px solid var(--line); }
.cat-sidebar__head::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -16px;
  border-radius: 4px;
  background: var(--line-strong);
}
.cat-sidebar__title { font-family: var(--font-serif); font-size: 1.5rem; }
.cat-sidebar__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(28, 25, 21, 0.06); }
.cat-sidebar__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 12px; }
.cat-sidebar__foot { display: flex; gap: 8px; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.cat-sidebar__foot .btn { flex: 1; }
.cat-sidebar__none { padding: 16px 0; font-size: 0.875rem; color: var(--muted); }

.cat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(17, 22, 30, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.cat-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s; }

@media (min-width: 1024px) {
  .cat-sidebar {
    position: sticky;
    top: calc(var(--sticky-top) + 4px);
    z-index: 1;
    max-height: calc(100vh - var(--sticky-top) - 24px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    visibility: visible;
    transform: none;
    transition: none;
  }
  .cat-sidebar__head { padding: 16px 16px 8px; border-bottom: 0; }
  .cat-sidebar__head::before, .cat-sidebar__close, .cat-sidebar__foot { display: none; }
  .cat-sidebar__title { font-size: 1.25rem; }
  .cat-sidebar__body { padding: 0 16px 8px; }
  .cat-backdrop { display: none; }
}

.facet { border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: 0; }
.facet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
}
.facet__head > span:first-child { flex: 1; }
.facet__sel:not(:empty) {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0;
}
.facet__head[aria-expanded="false"] .i--chev { transform: rotate(-90deg); }
.facet__hint { margin: -4px 0 8px; font-size: 0.75rem; color: var(--muted); }
.facet__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 16px; }
.facet--scroll .facet__chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.facet--list .facet__chips { flex-direction: column; align-items: stretch; }
.facet--list .fchip { justify-content: space-between; border-radius: 12px; }

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.3s var(--ease);
}
.fchip:hover { border-color: var(--ink); }
.fchip:active { transform: scale(0.97); }
.fchip__n { font-size: 0.6875rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip[aria-pressed="true"] .fchip__n { color: rgba(255, 255, 255, 0.7); }
.fchip[aria-disabled="true"] { opacity: 0.38; cursor: default; }
.fchip[aria-disabled="true"]:hover { border-color: var(--line-strong); }
@media (min-width: 1024px) { .fchip { min-height: 36px; } }

.cat-toolbar {
  position: sticky;
  top: calc(var(--sticky-top) - 6px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.cat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28, 61, 95, 0.12); }
.cat-search .i { color: var(--muted); }
.cat-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none; font-size: 1rem; }
.cat-search input::-webkit-search-cancel-button { cursor: pointer; }
.cat-count { padding: 0 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-toolbar__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cat-sort select {
  min-height: 44px;
  padding: 0 32px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1915' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.cat-view { display: flex; padding: 3px; border-radius: 999px; background: rgba(28, 25, 21, 0.06); }
.cat-view button { display: grid; place-items: center; width: 42px; height: 38px; border-radius: 999px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.cat-view button .i { width: 18px; height: 18px; }
.cat-view button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.cat-filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.cat-filter-btn .i { width: 18px; height: 18px; }
.cat-filter-btn__n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--brand-red); font-size: 0.6875rem; }
@media (max-width: 479.98px) {
  .cat-view { display: none; }
  .cat-count { flex: 1; }
}
@media (min-width: 768px) {
  .cat-search { flex: 1 1 240px; }
  .cat-toolbar { border-radius: 999px; padding: 8px; }
}
@media (min-width: 1024px) { .cat-filter-btn { display: none; } }

.cat-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pop 0.35s var(--ease) both;
  transition: background-color 0.2s;
}
.pill:hover { background: var(--brand-red-ink); }
.pill .i { width: 14px; height: 14px; }
.pill__k { opacity: 0.7; font-weight: 500; }
.pill--reset { background: transparent; color: var(--brand-red-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.pill--reset:hover { background: rgba(234, 42, 56, 0.08); }

.cat-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.cat-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(234, 42, 56, 0.1); color: var(--brand-red-ink); }
.cat-empty__title { font-family: var(--font-serif); font-size: 1.375rem; }
.cat-empty p { color: var(--muted); }
.cat-empty a { color: var(--brand-red-ink); font-weight: 600; text-decoration: underline; }

/* sales overview sections */
.cat-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-head__aside { display: grid; gap: 8px; justify-items: start; }
.cat-title a { transition: color 0.3s; }
.cat-title a:hover { color: var(--brand-red-ink); }
.catalog-app { scroll-margin-top: calc(var(--sticky-top) - 20px); }

/* ---------- 42. Quick view ---------------------------------------------- */
.qv {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: grid;
  place-items: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.qv.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.qv__backdrop { position: absolute; inset: 0; background: rgba(14, 20, 30, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qv__panel {
  position: relative;
  display: grid;
  width: min(1060px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  background: rgba(250, 248, 245, 0.96);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.qv.is-open .qv__panel { transform: none; }
.qv__close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }
.qv__media { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.qv__stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--stage);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  cursor: zoom-in;
}
.qv__stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; opacity: 0; transition: transform 0.35s var(--ease), opacity 0.3s; }
.qv__stage img.is-in { opacity: 1; }
.qv__stage.is-zoomed { cursor: zoom-out; }
.qv__stage.is-zoomed img { transform: scale(2.3); }
.qv__zoom-hint { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.qv__zoom-hint .i { width: 16px; height: 16px; }
.qv__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.qv__thumb { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 12px 4px 4px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 0.75rem; font-weight: 600; }
.qv__thumb img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--stage); mix-blend-mode: multiply; }
.qv__thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.qv__info { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px 16px; }
.qv__crumb { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-right: 48px; }
.qv__code { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brand-red-ink); }
.qv__title { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.12; }
.qv__facets { display: flex; flex-wrap: wrap; gap: 8px; }
.qv__facet { padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.qv__facet dt { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.qv__facet dd { margin-top: 2px; font-size: 0.875rem; font-weight: 600; }
.qv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qv__actions .i { width: 18px; height: 18px; }
.qv__nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.qv__pos { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (min-width: 860px) {
  .qv { padding: 24px; }
  .qv__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-height: calc(100vh - 48px); }
  .qv__media { padding: 16px; }
  .qv__stage { aspect-ratio: 1; }
  .qv__info { padding: 32px 32px 24px 12px; }
}

/* ---------- 43. Work gallery (product pages) ---------------------------- */
.work-gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--stone-2);
  box-shadow: var(--shadow-soft);
}
.work-tile .ph { position: absolute; inset: 0; }
.work-tile:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.work-tile--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.work-tile__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
}
.work-tile__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.work-tile:hover .work-tile__zoom, .work-tile:focus-visible .work-tile__zoom { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .work-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 260px); grid-auto-flow: dense; gap: 16px; }
  .work-tile { aspect-ratio: auto; }
  .work-tile--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .work-gallery--3 .work-tile--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .work-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 13vw, 220px); }
  .work-gallery--4 .work-tile--wide { grid-column: span 2; }
}

.prow__media { position: relative; }
.prow__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 700;
}

/* reel in lightbox mode: photos keep their proportions */
.reel__slides { position: absolute; inset: 0; }
.reel--lightbox .reel__slide img { object-fit: contain; background: #0c131c; }
.reel--lightbox .reel__slide.is-active img { animation: none; }
.reel .reel__caption {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel .reel__caption:empty { display: none; }

/* ---------- 44. Note card (programs without catalog content) ----------- */
.note-card {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.note-card__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep));
  color: #fff;
}
.note-card__icon .illus { width: 58px; }
.note-card__icon .illus .a { stroke: var(--brand-red-soft); }
.note-card__icon .illus .fa { fill: var(--brand-red-soft); }
.note-card__icon > .i { width: 32px; height: 32px; }
.note-card__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 400; }
.note-card p { margin-top: 8px; color: var(--muted); }
@media (min-width: 768px) { .note-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; } }

.pn__thumb--stage { display: grid; place-items: center; background: var(--stage); box-shadow: var(--stage-shadow); color: var(--brand-navy); }
.pn__thumb--stage img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.pn__thumb--stage .illus { width: 62%; }

.search__result--catalog { background: rgba(234, 42, 56, 0.06); }
@media (min-width: 768px) and (max-width: 1023.98px) { .footer-col--tree { grid-column: 1 / -1; } }
.page-catalog .cat-toolbar { top: calc(var(--sticky-top) + 60px); }
@media (min-width: 1024px) {
  .page-catalog .cat-sidebar { top: calc(var(--sticky-top) + 66px); max-height: calc(100vh - var(--sticky-top) - 86px); }
}


/* ---------- 31. Motion: load + scroll reveals -------------------- */
.js:not(.is-loaded) [data-hero] { opacity: 0; }
.is-loaded [data-hero] { animation: rise 1.1s var(--ease) var(--d, 0s) backwards; }

.js:not(.is-loaded) .line > .word { transform: translateY(112%); }
.is-loaded .line > .word { animation: word-up 1.25s var(--ease) var(--d, 0s) backwards; }

.js:not(.is-loaded) .hero__card,
.js:not(.is-loaded) .page-hero__facts { opacity: 0; }
.is-loaded .hero__card { animation: card-up 1.2s var(--ease) var(--d, 1s) backwards; }

.js:not(.is-loaded) .dock { opacity: 0; }
.is-loaded .dock { animation: dock-in 1s var(--ease) 0.5s backwards; }

.js:not(.is-loaded) .hero__frame,
.js:not(.is-loaded) .page-hero__frame { transform: scale(0.985); }
.is-loaded .hero__frame,
.is-loaded .page-hero__frame { animation: frame-in 1.4s var(--ease) backwards; }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes word-up { from { transform: translate3d(0, 112%, 0); } }
@keyframes card-up { from { opacity: 0; transform: translate3d(0, 60px, 0); } }
@keyframes dock-in { from { opacity: 0; transform: translate(-24px, -50%); } }
@keyframes frame-in { from { transform: scale(0.985); } }

.js [data-reveal]:not(.is-revealed),
.js [data-stagger]:not(.is-revealed) > * { opacity: 0; }

.js [data-reveal].is-revealed { animation: reveal-up 1s var(--ease) calc(var(--i, 0) * 90ms) backwards; }
.js [data-reveal="blur"].is-revealed { animation-name: reveal-blur; animation-duration: 1.2s; }
.js [data-reveal="scale"].is-revealed { animation-name: reveal-scale; animation-duration: 1.3s; }
.js [data-stagger].is-revealed > * { animation: reveal-up 0.95s var(--ease) calc(var(--i, 0) * 80ms) backwards; }

@keyframes reveal-up { from { opacity: 0; transform: translate3d(0, 34px, 0); } }
@keyframes reveal-blur { from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(10px); } }
@keyframes reveal-scale { from { opacity: 0; transform: scale(0.94); } }

/* ---------- 32. Reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero__img, .hero__media > .ph img, .marquee__track { animation: none !important; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
  .assistant-launcher::before { display: none; }
}

/* ---------- 33. Print -------------------------------------------- */
@media print {
  .site-header, .dock, .to-top, .assistant-launcher, .assistant, .preloader, .mobile-menu, .marquee { display: none !important; }
  body::before { display: none; }
}

/* ==========================================================================
   v3 — real imagery everywhere, accounts, cart & ordering, layout polish
   ========================================================================== */

/* ---------- 45. Tokens: 8-pt spacing, three shadow levels, wrap ------------ */
:root {
  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 40px; --space-6: 48px; --space-8: 64px; --space-10: 80px;
  /* elevation: --shadow-soft (1, resting cards) · --shadow-float (2, floating glass) · --shadow-bloom (3, hover / dialogs) */
  --wrap: 1280px;          /* content container, padding included */
  --body-pad: 0px;         /* space reserved for the left dock */
  --ring: 0 0 0 4px rgba(28, 61, 95, 0.14);
  --ok: #1F6B40;
}
@media (min-width: 1024px) {
  :root { --body-pad: 112px; }
}

/* ---------- 46. Layout: centered 1280 container, dock space on body ------- */
.container { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1024px) {
  body { padding-left: var(--body-pad); }
  .container { max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); }
  /* the home hero keeps the reference composition: full width, dock floating over the frame */
  .page-home .hero { margin-left: calc(-1 * var(--body-pad)); }
  body:not(.page-home) .site-header { left: calc(var(--gap) + var(--body-pad)); }
  .ref-scroller {
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    scroll-padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  }
}

/* Scrolled header: a frosted band behind the pill so nothing shows through around it */
.site-header::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--gap) + 72px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(234, 230, 224, 0.94) 0%, rgba(234, 230, 224, 0.82) 62%, rgba(234, 230, 224, 0) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 64%, transparent);
  mask-image: linear-gradient(#000 64%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.menu-open .site-header::before { opacity: 0; }

/* focus rings on every interactive card */
.entity-tile:focus-visible, .item-card__link:focus-visible, .work-tile:focus-visible, .mosaic__tile:focus-visible,
.strip__tile:focus-visible, .product-card:focus-visible, .prow__media:focus-visible, .dash-card:focus-visible,
.order-row:focus-visible, .pn__link:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 4px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: var(--ring); }

/* skeleton shimmer while photos load */
.ph img { transition: transform 1.2s var(--ease), opacity 0.5s var(--ease); }
.js .ph:not(.is-loaded) {
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%) var(--stone-2);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.js .ph:not(.is-loaded) img { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .ph:not(.is-loaded) { animation: none; } }

.link-inline { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(234, 42, 56, 0.5); text-underline-offset: 3px; }
.link-inline:hover { text-decoration-color: var(--brand-red); }
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(28, 25, 21, 0.3);
  text-underline-offset: 4px;
}
.link-btn:hover { text-decoration-color: var(--brand-red); }
.link-btn--danger { color: var(--brand-red-ink); }
.btn--block { width: 100%; }
.btn.is-busy { opacity: 0.7; cursor: progress; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.note-inline { margin-bottom: var(--space-2); padding: 16px; border-radius: 16px; background: rgba(234, 42, 56, 0.08); font-weight: 600; }

/* ---------- 47. Header: account + cart buttons, popover, compact nav ------ */
.hdr-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.35s var(--ease), transform 0.5s var(--ease);
}
.hdr-btn:hover { background: #fff; }
.hdr-btn--account { display: none; }
@media (min-width: 768px) { .hdr-btn--account { display: grid; } }
.hdr-btn__initials {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hdr-btn.is-user > .i { opacity: 0; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.cart-badge.is-bump { animation: badge-bump 0.6s var(--ease); }
@keyframes badge-bump { 0% { transform: scale(1); } 30% { transform: scale(1.5); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }

.acct { position: relative; }
.acct-pop {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 32px));
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}
.acct-pop.is-open { opacity: 1; transform: none; }
.acct-pop__title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: var(--space-2); }
.acct-pop__form { display: grid; gap: 12px; }
.acct-pop .field input:not([type="checkbox"]) { min-height: 48px; border-radius: 12px; }
.acct-pop__links { display: flex; justify-content: space-between; gap: 8px; margin-top: var(--space-2); font-size: 0.8125rem; font-weight: 600; }
.acct-pop__links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(28, 25, 21, 0.3); }
.acct-pop__note { margin-top: 8px; font-size: 0.75rem; color: var(--muted); }
.acct-pop__head { display: flex; align-items: center; gap: 12px; padding-bottom: var(--space-2); margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.acct-pop__head small { display: block; font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
}
.acct-menu a:hover, .acct-menu button:hover { background: rgba(28, 25, 21, 0.06); }
.acct-menu button { color: var(--brand-red-ink); }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.consent--sm { min-height: 32px; gap: 12px; font-size: 0.8125rem; }

/* keep the header on one line: wordmark only from 1536 px, compact nav below that,
   and between 1024 and 1279 px the CTA gives way (Kontakt stays in the pill) */
.nav-pill ul { flex-wrap: nowrap; }
@media (min-width: 1024px) { .site-header.is-scrolled .brand__text { display: none; } }
@media (min-width: 1024px) and (max-width: 1535.98px) {
  .site-header .brand__text { display: none; }
  .nav-pill a { padding: 0 16px; }
  .nav-pill__trigger { padding: 0 12px 0 16px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav-pill a { padding: 0 12px; font-size: 0.8125rem; }
  .nav-pill__trigger { padding: 0 8px 0 12px; font-size: 0.8125rem; }
  .header-actions .btn-cta { display: none; }
  .header-actions { gap: 8px; }
  .hdr-btn, .header-actions .icon-btn { width: 48px; height: 48px; }
}

/* ---------- 48. Inner hero v3 ------------------------------------------- */
.page-hero__frame {
  justify-content: flex-start;
  gap: var(--space-3);
  padding: calc(var(--header-h) + 16px) var(--gutter) var(--space-6);
}
.page-hero--facts .page-hero__frame { padding-bottom: 80px; }
.page-hero__top { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.page-hero__top .page-hero__badges { margin: 0; }
.page-hero__grid { position: relative; display: grid; gap: var(--space-3); align-items: end; margin-top: auto; }
.page-hero__content { max-width: 820px; }
.page-hero__facts { margin-top: -40px; padding-inline: 8px; }
.facts { max-width: 760px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
@media (min-width: 768px) { .page-hero__facts { padding-inline: var(--space-3); } }
@media (min-width: 1024px) {
  .page-hero__frame {
    padding: calc(var(--header-h) + 24px) max(calc(var(--gutter) - var(--gap)), calc((100% - var(--wrap)) / 2 + var(--gutter))) var(--space-8);
  }
  .page-hero--facts .page-hero__frame { padding-bottom: 104px; }
  .page-hero .hero__tags { top: calc(var(--header-h) + 80px); right: max(calc(var(--gutter) - var(--gap)), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
  .page-hero__facts {
    max-width: none;
    margin-top: -48px;
    padding: 0 max(calc(var(--gutter) - var(--gap)), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  }
  .page-hero__aside { display: block; position: static; width: auto; }
  .page-hero--aside .page-hero__grid { grid-template-columns: minmax(0, 1fr) clamp(208px, 18vw, 256px); }
  .page-hero--aside .page-hero__content { max-width: 820px; }
  .page-hero--aside .hero__tags { display: none; }
}

/* full-bleed photo hero (sales pages): light band for the header + breadcrumb, dark base for the title */
.page-hero--photo .page-hero__frame { min-height: clamp(520px, 72vh, 760px); min-height: clamp(520px, 72svh, 760px); background: var(--brand-navy-deep); }
.page-hero--photo .hero__scrim {
  background:
    linear-gradient(180deg, rgba(248, 245, 240, 0.86) 0, rgba(248, 245, 240, 0.5) 130px, rgba(248, 245, 240, 0) 210px),
    linear-gradient(0deg, rgba(10, 18, 28, 0.88) 0%, rgba(10, 18, 28, 0.6) 32%, rgba(10, 18, 28, 0) 64%);
}
.page-hero--photo .page-hero__content { color: #fff; }
.page-hero--photo .page-hero__content .hero__eyebrow { color: rgba(255, 255, 255, 0.78); }
.page-hero--photo .page-hero__content .accent { color: var(--brand-red-soft); }
.page-hero--photo .page-hero__lead { color: rgba(255, 255, 255, 0.88); max-width: 56ch; }
.page-hero--photo .page-title { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
@media (max-width: 767.98px) {
  .page-hero--photo .hero__scrim {
    background:
      linear-gradient(180deg, rgba(248, 245, 240, 0.9) 0, rgba(248, 245, 240, 0.55) 130px, rgba(248, 245, 240, 0) 210px),
      linear-gradient(0deg, rgba(10, 18, 28, 0.9) 0%, rgba(10, 18, 28, 0.66) 45%, rgba(10, 18, 28, 0) 78%);
  }
}

/* compact hero for account / cart / checkout */
.page-hero--mini .page-hero__frame { min-height: clamp(340px, 46vh, 440px); min-height: clamp(340px, 46svh, 440px); }
.page-hero--mini .page-title { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); }

.hero-preview__stage img { mix-blend-mode: multiply; }

/* ---------- 49. Entity tiles v3: photo, corner badge, title + description -- */
.entity-grid { gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1024px) {
  .entity-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .entity-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entity-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.entity-tile { padding: 8px; }
.entity-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--stone-2);
}
.entity-tile__media .ph { position: absolute; inset: 0; }
.entity-tile:hover .entity-tile__media .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.entity-tile__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(17, 38, 59, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.entity-tile__badge .illus { width: 28px; }
.entity-tile__badge .illus .a { stroke: var(--brand-red-soft); }
.entity-tile__badge .illus .fa { fill: var(--brand-red-soft); }
.entity-tile__badge .illus .f { fill: rgba(255, 255, 255, 0.12); }
.entity-tile__media .entity-tile__count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}
.entity-tile__body { display: grid; gap: 8px; padding: 16px 8px 8px; }
.entity-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.entity-tile__name { font-size: 1.25rem; line-height: 1.2; }
.entity-tile .entity-tile__arrow { position: static; flex: none; width: 36px; height: 36px; margin-top: -6px; }
.entity-tile__desc { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

/* ---------- 50. Mosaic, rails, strips, gallery source labels ------------- */
.mosaic { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic__tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--stone-2);
  box-shadow: var(--shadow-soft);
}
.mosaic__tile .ph { position: absolute; inset: 0; }
.mosaic__tile:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.mosaic__tile:hover .work-tile__zoom, .mosaic__tile:focus-visible .work-tile__zoom { opacity: 1; transform: none; }
.mosaic__tile--lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
  .mosaic--4, .mosaic--3 { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(160px, 17vw, 240px); }
  .mosaic--3 { grid-template-columns: 2fr 1fr; }
  .mosaic--4 .mosaic__tile, .mosaic--3 .mosaic__tile { aspect-ratio: auto; }
  .mosaic--4 .mosaic__tile--lead, .mosaic--3 .mosaic__tile--lead { grid-column: auto; grid-row: span 2; }
  .mosaic--4 .mosaic__tile:last-child { grid-column: span 2; }
  .mosaic--2 .mosaic__tile--lead { grid-column: auto; aspect-ratio: 4 / 3; }
}
.work-tile__src {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(17, 38, 59, 0.72);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}

.item-rail, .strip {
  display: grid;
  grid-auto-flow: column;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 4px var(--space-3);
}
.item-rail::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
.item-rail { grid-auto-columns: minmax(196px, 224px); }
.strip { grid-auto-columns: minmax(248px, 304px); }
.item-rail > li, .strip > li { scroll-snap-align: start; }
.item-rail:focus-visible, .strip:focus-visible { outline-offset: -4px; }
.strip__tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--stone-2);
  box-shadow: var(--shadow-soft);
}
.strip__tile .ph { position: absolute; inset: 0; }
.strip__tile:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.refs__photos { margin-top: var(--space-4); }
.refs__photos-label { margin-bottom: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }

/* ---------- 51. Add-to-cart on item cards, fly-to-cart ghost ------------- */
.item-card { position: relative; }
.item-card__body { padding-right: 48px; }
.item-card__add {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.item-card__add .i { width: 18px; height: 18px; }
.item-card__add:hover { background: var(--brand-red); border-color: transparent; color: #fff; transform: scale(1.06); }
.item-card__add.is-added { background: var(--ink); color: #fff; animation: badge-bump 0.6s var(--ease); }
.item-grid--list .item-card__add { right: 64px; bottom: auto; top: 50%; margin-top: -20px; }
.item-grid--list .item-card__body { padding-right: 56px; }
.fly-ghost {
  position: fixed;
  z-index: 400;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-bloom);
  pointer-events: none;
}

/* ---------- 52. Order block / configurator ------------------------------- */
.order-block {
  display: grid;
  gap: var(--space-4);
  padding: clamp(16px, 3vw, 40px);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}
@media (min-width: 1024px) { .order-block { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-6); } }
.order-block__media { aspect-ratio: 16 / 10; margin-bottom: var(--space-3); border-radius: 18px; overflow: hidden; }
.order-block__media .ph { width: 100%; height: 100%; }
.order-block__lead { margin-top: var(--space-2); max-width: 52ch; color: var(--ink-2); }
.order-block .ticks { margin-top: var(--space-3); }
.order-block__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: var(--space-2); font-weight: 600; }
.config { margin-top: 0; align-content: start; }
.seg-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg-field legend { margin-bottom: 8px; padding: 0; font-size: 0.8125rem; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.seg__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--brand-red); outline-offset: 3px; }
.qty {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}
.qty__btn { display: grid; place-items: center; width: 48px; height: 52px; border-radius: 14px; color: var(--ink); }
.qty__btn:hover { background: rgba(28, 25, 21, 0.06); }
.qty input, .field .qty input:not([type="checkbox"]) {
  width: 64px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field .qty input:focus { box-shadow: none; }
.qty:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.qty--sm { border-radius: 12px; }
.qty--sm .qty__btn { width: 36px; height: 40px; border-radius: 10px; }
.qty--sm .qty__btn .i { width: 16px; height: 16px; }
.qty--sm input { width: 40px; min-height: 40px; font-size: 0.875rem; }
.config textarea { min-height: 96px; }
.config__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.config__done { grid-column: 1 / -1; padding: 16px; border-radius: 16px; background: rgba(31, 107, 64, 0.1); font-size: 0.875rem; }
.config__done .link-btn { min-height: 0; }

/* ---------- 53. Toasts ---------------------------------------------------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 260;
  display: grid;
  gap: 8px;
  width: min(460px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 768px) { .toasts { bottom: var(--space-3); } }
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: rgba(17, 38, 59, 0.94);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: #fff;
  box-shadow: var(--shadow-float);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast__msg { flex: 1; padding-block: 8px; font-size: 0.875rem; font-weight: 500; }
.toast__action { min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 700; color: var(--brand-red-soft); white-space: nowrap; }
.toast__action:hover { background: rgba(255, 255, 255, 0.1); }
.toast__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; opacity: 0.75; }
.toast__close .i { width: 16px; height: 16px; }

/* ---------- 54. Cart drawer, lines, cart page ---------------------------- */
.drawer { position: fixed; inset: 0; z-index: 230; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.5s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 19, 28, 0.42); opacity: 0; transition: opacity 0.35s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: var(--gap);
  right: var(--gap);
  bottom: var(--gap);
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 2 * var(--gap)));
  border-radius: var(--radius-frame);
  background: rgba(248, 245, 240, 0.92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-bloom);
  transform: translateX(calc(100% + 32px));
  transition: transform 0.5s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: var(--space-3) var(--space-2) var(--space-2) var(--space-3); }
.drawer__title { font-size: 1.75rem; font-weight: 400; }
.drawer__title span { font-family: var(--font-sans); font-size: 1rem; color: var(--muted); }
.drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(28, 25, 21, 0.07); }
.drawer__close:hover { background: rgba(28, 25, 21, 0.14); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--space-2) var(--space-2); overscroll-behavior: contain; }
.drawer__foot { padding: var(--space-2) var(--space-3) var(--space-3); border-top: 1px solid var(--line); }
.drawer__note { margin-bottom: 12px; font-size: 0.8125rem; color: var(--muted); }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__actions .btn { padding: 0 16px; font-size: 0.875rem; }

.clines { display: grid; gap: 8px; }
.cline {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.cline__thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--stage); }
.cline__thumb img, .oline__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.cline__thumb img.is-photo, .oline__thumb img.is-photo { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.cline__info { display: grid; gap: 4px; min-width: 0; }
.cline__code { display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--brand-red-ink); }
.cline__code span { font-family: var(--font-sans); font-weight: 500; color: var(--muted); }
.cline__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.cline__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cline__cfg, .cline__note { font-size: 0.8125rem; color: var(--muted); }
.cline__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.cline__price { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.cline__remove { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: background-color 0.3s, color 0.3s; }
.cline__remove:hover { background: rgba(234, 42, 56, 0.1); color: var(--brand-red-ink); }
.cline__notefield span { display: block; margin: 8px 0 4px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.cline__notefield textarea {
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  resize: vertical;
}
.cline__notefield textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
@media (min-width: 640px) {
  .clines--page .cline { grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-2); }
  .clines--page .cline__thumb { width: 112px; height: 112px; }
}

.cart-page__grid { display: grid; gap: var(--space-3); }
@media (min-width: 1024px) { .cart-page__grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: var(--space-4); } }
.cart-page__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cart-page__count { font-weight: 600; }
.sum, .checkout__summary {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 1024px) { .sum, .checkout__summary { position: sticky; top: var(--sticky-top); } }
.sum__title { font-size: 1.5rem; font-weight: 400; }
.sum__rows { display: grid; gap: 8px; }
.sum__rows > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.sum__rows dt { color: var(--muted); }
.sum__rows dd { font-weight: 600; text-align: right; }
.sum__note { font-size: 0.8125rem; color: var(--muted); }

.cart-empty { display: grid; justify-items: center; gap: 8px; padding: var(--space-5) var(--space-2); text-align: center; }
.cart-empty p { max-width: 44ch; color: var(--muted); }
.cart-empty--page { padding: var(--space-8) var(--space-3); border-radius: var(--radius-frame); background: rgba(255, 255, 255, 0.66); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); }
.cart-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--stage); box-shadow: var(--stage-shadow); }
.cart-empty__icon .i { width: 28px; height: 28px; }
.cart-empty .cart-empty__title { font-family: var(--font-serif); font-size: 1.625rem; color: var(--ink); }
.cart-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.cart-empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-2); }

/* ---------- 55. Account pages ------------------------------------------- */
.auth { display: grid; gap: var(--space-3); }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: start; gap: var(--space-5); } }
.auth > noscript { grid-column: 1 / -1; }
.auth-card, .checkout__main {
  padding: clamp(16px, 3.5vw, 40px);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(28, 25, 21, 0.06); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab { position: relative; z-index: 1; flex: 1 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color 0.3s; }
.tabs__tab[aria-selected="true"] { color: #fff; }
.tabs__ink { position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.tabs__panel:not([hidden]) { animation: fade-up 0.4s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form--single { grid-template-columns: minmax(0, 1fr); }
.field--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pass { position: relative; }
.field .pass input:not([type="checkbox"]) { padding-right: 96px; }
.pass__toggle { position: absolute; top: 50%; right: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); transform: translateY(-50%); }
.pass__toggle:hover { background: rgba(28, 25, 21, 0.06); }
.meter { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.meter__bar { flex: 0 0 120px; height: 6px; border-radius: 6px; background: rgba(28, 25, 21, 0.1); overflow: hidden; }
.meter__bar i { display: block; width: 0; height: 100%; background: var(--brand-red); transition: width 0.4s var(--ease), background-color 0.4s; }
.meter[data-score="1"] .meter__bar i { width: 25%; background: var(--brand-red); }
.meter[data-score="2"] .meter__bar i { width: 50%; background: #D9822B; }
.meter[data-score="3"] .meter__bar i { width: 75%; background: #6E9A3C; }
.meter[data-score="4"] .meter__bar i { width: 100%; background: var(--ok); }
.form-alert { grid-column: 1 / -1; padding: 12px 16px; border-radius: 14px; background: rgba(28, 61, 95, 0.08); font-size: 0.875rem; font-weight: 600; }
.form-alert--error { background: rgba(234, 42, 56, 0.1); color: var(--brand-red-ink); }
.form-alert--ok { background: rgba(31, 107, 64, 0.12); color: var(--ok); }
.auth-switch { text-align: center; font-size: 0.875rem; color: var(--muted); }
.auth-note { padding: 12px 16px; border-radius: 14px; background: rgba(28, 61, 95, 0.06); font-size: 0.875rem; color: var(--ink-2); }
.auth-foot { display: flex; align-items: center; gap: 8px; margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.auth-foot .i { color: var(--brand-red-ink); }
.auth-aside { padding: var(--space-2); border-radius: var(--radius-frame); background: rgba(255, 255, 255, 0.5); border: 1px solid var(--glass-border); }
.auth-aside__media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.auth-aside__media .ph { width: 100%; height: 100%; }
.auth-aside__title { margin: var(--space-3) 8px 0; font-size: 1.75rem; font-weight: 400; }
.auth-aside .ticks { margin: var(--space-2) 8px 0; }
.auth-aside__guest { margin: var(--space-2) 8px 8px; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- 56. Dashboard ------------------------------------------------ */
.dash { display: grid; gap: var(--space-3); }
@media (min-width: 1024px) { .dash { grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: var(--space-4); } }
.dash > noscript { grid-column: 1 / -1; }
.dash-nav { display: flex; gap: 4px; padding: 8px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.74); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); overflow-x: auto; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav__user { display: none; }
@media (min-width: 1024px) {
  .dash-nav { position: sticky; top: var(--sticky-top); flex-direction: column; padding: var(--space-2); }
  .dash-nav__user { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 8px 8px var(--space-2); border-bottom: 1px solid var(--line); }
  .dash-nav__user strong { display: block; font-size: 0.9375rem; line-height: 1.3; }
  .dash-nav__user small { display: block; font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
  .dash-nav__tab--out { margin-top: 8px; }
}
.dash-nav__tab { display: flex; align-items: center; gap: 12px; flex: none; min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.dash-nav__tab .i { width: 18px; height: 18px; }
.dash-nav__tab:hover { background: rgba(28, 25, 21, 0.06); }
.dash-nav__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.dash-nav__tab--out { color: var(--brand-red-ink); }
.dash-panel { padding: clamp(16px, 3vw, 32px); border-radius: var(--radius-frame); background: rgba(255, 255, 255, 0.74); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); }
.dash-panel:not([hidden]) { animation: fade-up 0.4s var(--ease); }
.dash-panel:focus { outline: none; }
.dash-title { margin-bottom: var(--space-3); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 400; }
.dash-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .dash-cards { gap: var(--space-2); } }
.dash-card { display: grid; gap: 4px; padding: var(--space-2); border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.dash-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.dash-card__n { font-family: var(--font-serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; }
.dash-card__label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.dash-split { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
@media (min-width: 768px) { .dash-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-box { padding: var(--space-3); border-radius: 20px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.dash-box__title { margin-bottom: 12px; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.dash-box--out { margin-top: var(--space-3); }
.dash-box--out p { margin-bottom: var(--space-2); color: var(--muted); }
.dash-empty { color: var(--muted); }
.dash-foot { margin-top: var(--space-3); font-size: 0.8125rem; color: var(--muted); }
.dash-form + .dash-form { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.dash-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-list { display: grid; gap: 8px; }
.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  width: 100%;
  padding: var(--space-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.order-row:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.order-row__nr { font-family: var(--font-mono); font-weight: 700; color: var(--brand-red-ink); }
.order-row__date, .order-row__meta { grid-column: 1; font-size: 0.8125rem; color: var(--muted); }
.order-row .status { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
@media (min-width: 768px) {
  .order-row { grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; }
  .order-row__date, .order-row__meta { grid-column: auto; }
  .order-row .status { grid-column: auto; grid-row: auto; }
}
.status { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(28, 61, 95, 0.1); color: var(--brand-navy); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.status--primljeno { background: rgba(234, 42, 56, 0.1); color: var(--brand-red-ink); }
.addr-list { display: grid; gap: 12px; margin-bottom: var(--space-2); }
@media (min-width: 768px) { .addr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addr { padding: var(--space-2); border-radius: 18px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); }
.addr.is-default { border-color: rgba(234, 42, 56, 0.4); }
.addr__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 700; }
.addr__actions { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.drawer--order .drawer__panel { width: min(560px, calc(100vw - 2 * var(--gap))); }
.od__date { margin-bottom: 8px; color: var(--muted); font-size: 0.875rem; }
.od__title { margin: var(--space-2) 0 8px; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.od__boxes { display: grid; gap: 8px; }

/* status timeline (shared by dashboard and confirmation) */
.timeline-s { display: grid; margin: 8px 0 var(--space-3); }
.timeline-s__step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); }
.timeline-s__step + .timeline-s__step::before { content: ""; position: absolute; top: -12px; left: 11px; width: 2px; height: 24px; background: var(--line-strong); }
.timeline-s__step.is-done + .timeline-s__step.is-done::before { background: var(--ink); }
.timeline-s__dot { position: relative; z-index: 1; justify-self: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.timeline-s__step.is-done { color: var(--ink); }
.is-done .timeline-s__dot { background: var(--ink); border-color: var(--ink); }
.is-current .timeline-s__dot { background: var(--brand-red); border-color: var(--brand-red); box-shadow: 0 0 0 6px rgba(234, 42, 56, 0.18); }
.timeline-s__label { font-weight: 600; }
.timeline-s__date { font-size: 0.75rem; }

/* order lines (review, confirmation, dashboard) */
.olines { display: grid; gap: 8px; margin-bottom: var(--space-2); }
.oline { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); }
.oline__thumb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--stage); }
.oline__info { display: grid; gap: 2px; min-width: 0; }
.oline__code { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; color: var(--brand-red-ink); }
.oline__name { font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.oline__cfg { font-size: 0.75rem; color: var(--muted); }
.oline__qty { padding-right: 8px; font-size: 0.875rem; font-weight: 700; white-space: nowrap; }

/* ---------- 57. Checkout ------------------------------------------------- */
.checkout { display: grid; gap: var(--space-3); }
@media (min-width: 1024px) { .checkout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: var(--space-4); } }
.checkout > noscript { grid-column: 1 / -1; }
.steps { margin-bottom: var(--space-3); }
.steps__bar { position: relative; height: 4px; margin: 0 16.6% -20px; border-radius: 4px; background: rgba(28, 25, 21, 0.1); overflow: hidden; transform: translateY(14px); }
.steps__bar i { position: absolute; inset: 0; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.steps__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 700; transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.steps__item.is-current { color: var(--ink); }
.steps__item.is-current .steps__num { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgba(28, 25, 21, 0.08); }
.steps__item.is-done .steps__num { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.co-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.co-step.is-active { animation: step-in 0.5s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .co-step.is-active, .tabs__panel:not([hidden]), .dash-panel:not([hidden]) { animation: none; } }
.co-step__title { margin-bottom: 8px; padding: 0; font-family: var(--font-serif); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.co-step__note { padding: 12px 16px; border-radius: 14px; background: rgba(28, 61, 95, 0.06); font-size: 0.875rem; color: var(--ink-2); }
.co-step .form { margin-top: var(--space-3); }
.co-address { margin-top: var(--space-2); }
.choice-grid { display: grid; gap: 12px; margin-top: var(--space-3); }
@media (min-width: 768px) { .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-grid--pay > .co-review__label, .choice-grid--pay > .co-online { grid-column: 1 / -1; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box { display: grid; align-content: start; gap: 4px; height: 100%; padding: var(--space-2); border-radius: 18px; border: 1.5px solid var(--line-strong); background: rgba(255, 255, 255, 0.82); transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s; }
.choice:hover .choice__box { border-color: rgba(28, 25, 21, 0.5); }
.choice__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: rgba(28, 25, 21, 0.06); transition: background-color 0.3s, color 0.3s; }
.choice__title { font-weight: 700; }
.choice__text { font-size: 0.8125rem; color: var(--muted); }
.choice input:checked + .choice__box { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(28, 25, 21, 0.08); }
.choice input:checked + .choice__box .choice__icon { background: var(--brand-red); color: #fff; }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--brand-red); outline-offset: 3px; }
.choice.is-disabled { cursor: not-allowed; opacity: 0.55; }
.co-online { font-size: 0.8125rem; color: var(--muted); }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }
.co-actions [data-co-next] { margin-left: auto; }
.co-review__grid { display: grid; gap: 12px; margin: var(--space-2) 0; }
@media (min-width: 768px) { .co-review__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-review__box { padding: var(--space-2); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; }
.co-review__label { margin: var(--space-2) 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.co-review__box .co-review__label { margin-top: 0; }
.co-review__box .link-btn { min-height: 32px; }
.checkout .form-alert { margin-top: var(--space-2); }
.sum__title + div .olines { margin-bottom: 8px; }

/* ---------- 58. Confirmation page --------------------------------------- */
.done { display: grid; gap: var(--space-3); }
.done__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}
.done__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-red); color: #fff; animation: pop 0.7s var(--ease) both; }
.done__check .i { width: 28px; height: 28px; stroke-width: 2.4; }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.1); } 100% { transform: scale(1); } }
.done__label { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.done__nr { font-family: var(--font-mono); font-size: clamp(1.375rem, 1.1rem + 1.5vw, 2.25rem); font-weight: 700; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.done__date { font-size: 0.875rem; color: var(--muted); }
.done__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 768px) { .done__head { grid-template-columns: auto minmax(0, 1fr) auto; } .done__actions { grid-column: auto; } }
.done__grid { display: grid; gap: var(--space-3); }
@media (min-width: 1024px) { .done__grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.done__main, .done__next { padding: clamp(16px, 3vw, 32px); border-radius: var(--radius-frame); background: rgba(255, 255, 255, 0.74); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); }
.done__side { display: grid; align-content: start; gap: 12px; }
.done__title { margin: 8px 0 var(--space-2); font-size: 1.5rem; font-weight: 400; }
@media (min-width: 768px) {
  .done .timeline-s { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .done .timeline-s__step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 0; }
  .done .timeline-s__step + .timeline-s__step::before { top: 7px; left: calc(-50% + 8px); width: calc(100% - 16px + 8px); height: 2px; }
}
.done__steps { display: grid; gap: var(--space-2); counter-reset: d; }
.done__steps li { position: relative; padding-left: 48px; counter-increment: d; }
.done__steps li::before { content: counter(d); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 700; }
.done__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
@media print {
  .site-header, .mobile-menu, .dock, .site-footer, .to-top, .preloader, .page-hero, .assistant, .assistant-launcher,
  .done__actions, .done__links, .toasts, .skip-link { display: none !important; }
  body { padding: 0 !important; background: #fff; }
  body::before { display: none; }
  .section { padding: 0; }
  .done__head, .done__main, .done__next, .co-review__box { box-shadow: none; border-color: #ccc; background: #fff; }
}

/* ---------- 59. Quick view: buy row ------------------------------------- */
.qv__buy { display: grid; gap: 12px; margin-top: var(--space-2); padding: var(--space-2); border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.qv__buy[hidden] { display: none; }
.qv__buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.qv__qty > label, .qv__buy .field > label { font-size: 0.75rem; }
.qv__buy .field input:not([type="checkbox"]) { min-height: 48px; border-radius: 12px; }
.qv__buy .qty__btn { height: 48px; }
.qv__buy .field .qty input:not([type="checkbox"]) { min-height: 48px; }
.qv__add { flex: 1 1 180px; }

/* ---------- 60. Mega preview photos, mobile menu account ---------------- */
.mega-preview__stage.is-photo { background: var(--stone-2); box-shadow: none; }
.mega-preview__stage.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.mm-account { display: grid; }
.mobile-menu__links .mm-account__sub {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding-left: 2px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
}
.mobile-menu__links .mm-account__sub::after { display: none; }
.mobile-menu__links .mm-account a .mm-count, .mobile-menu__links a .mm-count { margin-right: 16px; }

/* anchors and focused fields never land under the fixed header */
html { scroll-padding-top: calc(var(--header-h) + 24px); }
@media (max-width: 479.98px) {
  .drawer__actions { grid-template-columns: minmax(0, 1fr); }
  .drawer .cline__price { display: none; }
}
@media (min-width: 768px) {
  .work-tile--span2 { grid-column: span 2; }
  .work-tile--span3 { grid-column: span 3; }
}
@media (min-width: 1024px) { .work-tile--span4 { grid-column: span 4; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .work-gallery--4 .work-tile--span4 { grid-column: span 3; } }
