:root {
  --ink: #171717;
  --muted: #686868;
  --paper: #f7f5f1;
  --panel: #ffffff;
  --line: #e5dfd7;
  --brand: #e0312b;
  --brand-dark: #a91f1b;
  --charcoal: #24272b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 241, 0.72);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
  backdrop-filter: blur(22px) saturate(1.15);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 245, 241, 0.9);
  border-bottom-color: rgba(23, 23, 23, 0.08);
  box-shadow: 0 18px 55px rgba(17, 17, 17, 0.12);
}

.site-nav,
.content-shell,
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.navbar {
  padding: 12px 0;
}

.site-nav {
  position: relative;
  min-height: 66px;
}

.navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.brand-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 220ms var(--ease), background 220ms ease, box-shadow 220ms ease;
}

.brand-lockup:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.08);
  transform: translateY(-1px);
}

.brand-mark-img {
  flex: 0 0 auto;
  width: 50px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: transform 360ms var(--ease);
}

.brand-wordmark-img {
  width: 174px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-lockup:hover .brand-mark-img {
  transform: rotate(-6deg) scale(1.04);
}

.nav-link {
  position: relative;
  color: var(--charcoal);
  font-weight: 850;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}

.site-header .nav-link {
  color: var(--charcoal);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--brand);
}

.navbar-collapse > .navbar-nav:first-child {
  gap: 4px;
  padding: 6px;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 999px;
}

.navbar-collapse > .navbar-nav:first-child .nav-link {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
}

.navbar-collapse > .navbar-nav:first-child .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.navbar-collapse > .navbar-nav:first-child .nav-link:hover,
.navbar-collapse > .navbar-nav:first-child .nav-link:focus {
  background: #fff;
  transform: translateY(-1px);
}

.navbar-collapse > .navbar-nav:first-child .nav-link:hover::after,
.navbar-collapse > .navbar-nav:first-child .nav-link:focus::after {
  transform: scaleX(1);
}

.identity-nav {
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 999px;
}

.identity-nav .nav-link {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
}

.identity-nav .nav-link:not(.account-chip):hover,
.identity-nav .nav-link:not(.account-chip):focus {
  background: #fff;
  transform: translateY(-1px);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-left: 18px;
  padding-right: 18px;
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(224, 49, 43, 0.7);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(224, 49, 43, 0.22);
}

.account-chip:hover,
.account-chip:focus {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.identity-nav form .nav-link {
  color: var(--muted);
  text-decoration: none;
}

.identity-nav form .nav-link:hover {
  color: var(--brand);
}

.btn {
  border-radius: 6px;
  border: 0;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 34px rgba(224, 49, 43, 0.28);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost.dark {
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost.dark:hover {
  background: #ebe6df;
  color: var(--ink);
}

.hero-section {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.52) 44%, rgba(10, 10, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-media::after {
  z-index: 3;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 120px);
  mix-blend-mode: soft-light;
}

.hero-slide {
  position: absolute;
  inset: -2%;
  z-index: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.06) translate3d(0, 0, 0);
  transition: opacity 1400ms ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  animation: heroSlideDrift 7600ms ease-in-out forwards;
}

.hero-slide.drift-left.active {
  --drift-x: -26px;
  --drift-y: 12px;
}

.hero-slide.drift-right.active {
  --drift-x: 28px;
  --drift-y: -10px;
}

.hero-slide.drift-up.active {
  --drift-x: -14px;
  --drift-y: -24px;
}

.hero-slide.drift-down.active {
  --drift-x: 18px;
  --drift-y: 24px;
}

.hero-frame {
  position: absolute;
  inset: 34px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 1px;
  background: var(--brand);
}

.hero-frame::before {
  top: -1px;
  left: 36px;
}

.hero-frame::after {
  right: 36px;
  bottom: -1px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 190px;
}

.hero-side-note {
  position: absolute;
  z-index: 2;
  right: 26px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

.hero-side-note::before {
  content: "";
  width: 62px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-side-note strong {
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  z-index: 3;
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.12);
}

.hero-stats div {
  padding: 24px;
  border-right: 1px solid var(--line);
  transition: background 220ms ease, transform 220ms var(--ease);
}

.hero-stats div:hover {
  background: #fff;
  transform: translateY(-4px);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-weight: 700;
}

.intro-band,
.design-preview-section,
.material-showcase,
.about-section,
.collection-section,
.latest-work-section,
.craft-section {
  padding: 86px 0;
}

.intro-band .content-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 920;
  letter-spacing: 0;
}

.intro-band p:not(.eyebrow),
.design-preview-copy p,
.material-copy p,
.craft-grid p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.design-preview-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #181818 0%, #252629 44%, #f7f5f1 44%, #f7f5f1 100%);
}

.design-preview-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 42px;
  align-items: center;
}

.design-preview-copy {
  color: #fff;
}

.design-preview-copy h2 {
  max-width: 560px;
}

.design-preview-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.design-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.design-preview-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 16%, rgba(224, 49, 43, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 232, 222, 0.94));
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.18);
}

.design-preview-stage::before,
.design-preview-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.design-preview-stage::before {
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.design-preview-stage::after {
  left: 28px;
  right: 28px;
  bottom: 78px;
  z-index: 1;
  height: 1px;
  background: rgba(17, 17, 17, 0.12);
}

.design-preview-stage canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.three-fallback-message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-weight: 800;
}

.design-preview-stage .three-fallback-message {
  color: var(--charcoal);
}

.design-preview-badges {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.design-preview-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.kitchen-configurator-page {
  min-height: calc(100vh - 78px);
  padding: 70px 0 92px;
  background:
    linear-gradient(135deg, rgba(247, 245, 241, 0.96), rgba(255, 255, 255, 0.82)),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.kitchen-configurator-shell {
  display: grid;
  gap: 30px;
}

.kitchen-configurator-head {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.62fr);
  gap: 32px;
  align-items: end;
}

.kitchen-configurator-head h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
}

.kitchen-configurator-head p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.kitchen-configurator-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.kitchen-control-panel {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  align-items: end;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(17, 17, 17, 0.1);
}

.kitchen-control-group {
  display: grid;
  gap: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}

.kitchen-control-panel > .kitchen-control-group:not(:first-child):not(.kitchen-plan-group):not([data-selected-cabinet-panel]),
.kitchen-control-panel > .kitchen-module-panel {
  display: none;
}

.kitchen-control-panel > .kitchen-control-group:first-child {
  flex: 0 1 320px;
}

.kitchen-plan-group {
  flex: 1 1 420px;
}

.kitchen-control-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.kitchen-control-title,
.kitchen-range-label {
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kitchen-range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kitchen-range-label strong {
  color: var(--brand);
  white-space: nowrap;
}

.kitchen-control-panel input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.kitchen-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: #f1ece4;
  border-radius: 8px;
}

.kitchen-segmented label,
.kitchen-toggle,
.kitchen-swatches label,
.kitchen-mini-segmented label {
  cursor: pointer;
}

.kitchen-segmented input,
.kitchen-swatches input,
.kitchen-mini-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kitchen-segmented span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 8px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.kitchen-segmented input:checked + span {
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);
}

.kitchen-mini-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: #f1ece4;
  border-radius: 8px;
}

.kitchen-mini-segmented span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 8px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.kitchen-mini-segmented input:checked + span {
  color: #fff;
  background: var(--charcoal);
}

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

.kitchen-swatches.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kitchen-swatches span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.kitchen-swatches span::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: var(--swatch);
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 50%;
}

.kitchen-swatches input:checked + span {
  border-color: rgba(224, 49, 43, 0.46);
  box-shadow: 0 0 0 3px rgba(224, 49, 43, 0.1);
}

.kitchen-toggle-grid {
  grid-template-columns: 1fr;
}

.kitchen-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--charcoal);
  font-weight: 900;
}

.kitchen-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.kitchen-select-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.kitchen-plan-grid label {
  display: grid;
  gap: 7px;
}

.kitchen-plan-toggle {
  align-content: center;
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.kitchen-plan-grid label[hidden] {
  display: none;
}

.kitchen-plan-grid span {
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kitchen-plan-grid input:not([type="checkbox"]),
.kitchen-plan-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.kitchen-plan-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.kitchen-generate-btn,
.kitchen-restore-module-btn {
  justify-content: center;
}

.kitchen-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kitchen-presets button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.kitchen-presets button:hover,
.kitchen-presets button:focus {
  color: #fff;
  background: var(--charcoal);
}

.kitchen-restore-module-btn[hidden] {
  display: none;
}

.kitchen-select-grid label,
.kitchen-select-field {
  display: grid;
  gap: 7px;
}

.kitchen-select-grid span,
.kitchen-select-field span {
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kitchen-select-grid select,
.kitchen-select-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 9px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.kitchen-control-group[hidden],
.kitchen-module-panel[hidden] {
  display: none;
}

.kitchen-control-panel > [data-selected-cabinet-panel] {
  position: fixed;
  top: 112px;
  right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  z-index: 2147483000;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.22);
}

.kitchen-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kitchen-panel-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--charcoal);
  background: #f1ece4;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.kitchen-panel-close:hover,
.kitchen-panel-close:focus {
  color: #fff;
  background: var(--charcoal);
}

.kitchen-inspector-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: #f1ece4;
  border-radius: 8px;
}

.kitchen-inspector-tabs button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.kitchen-inspector-tabs button.active {
  color: #fff;
  background: var(--charcoal);
}

.kitchen-inspector-pane {
  display: none;
  gap: 10px;
}

.kitchen-inspector-pane.active {
  display: grid;
}

.kitchen-inspector-tabs [hidden],
.kitchen-inspector-pane[hidden] {
  display: none;
}

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

.kitchen-split-handle-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(241, 236, 228, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
}

.kitchen-split-handle-panel[hidden] {
  display: none;
}

.kitchen-remove-module-btn {
  justify-content: center;
  width: 100%;
  min-height: 42px;
}

@media (max-width: 760px) {
  .kitchen-control-panel > [data-selected-cabinet-panel] {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 58vh;
    overflow: auto;
  }
}

.kitchen-control-panel > [data-selected-cabinet-panel][hidden] {
  display: none;
}

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

.kitchen-module-grid label {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kitchen-module-grid span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
}

.kitchen-module-grid input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  color: var(--charcoal);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 6px;
  font-weight: 850;
}

.kitchen-request-btn {
  justify-content: center;
  text-align: center;
}

.kitchen-preview-panel {
  display: grid;
  grid-template-rows: auto minmax(640px, 1fr);
  overflow: hidden;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.18);
}

.kitchen-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kitchen-preview-toolbar span:first-child {
  color: #fff;
}

.kitchen-canvas-stage {
  position: relative;
  min-height: 640px;
  background:
    radial-gradient(circle at 50% 26%, rgba(224, 49, 43, 0.16), transparent 30%),
    linear-gradient(180deg, #222428 0%, #141414 100%);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.kitchen-canvas-stage:active {
  cursor: grabbing;
}

.kitchen-canvas-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.kitchen-plan-preview {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: min(260px, calc(100% - 28px));
  height: 168px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.18);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.kitchen-plan-main,
.kitchen-plan-island {
  position: absolute;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 3px;
  height: 24px;
}

.kitchen-plan-main {
  top: 28px;
}

.kitchen-plan-island {
  left: 72px;
  right: 72px;
  bottom: 28px;
  height: 30px;
}

.kitchen-plan-side {
  position: absolute;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 24px;
}

.kitchen-plan-side.left {
  left: 24px;
}

.kitchen-plan-side.right {
  right: 24px;
}

.kitchen-plan-cell {
  display: block;
  min-width: 8px;
  min-height: 8px;
  background: #2d2d2d;
  border-radius: 3px;
}

.kitchen-plan-main .kitchen-plan-cell {
  background: #111;
}

.kitchen-plan-island .kitchen-plan-cell {
  background: #6a625b;
}

.kitchen-plan-cell.selected {
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(224, 49, 43, 0.24);
}

.kitchen-dimension-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.kitchen-dimension-overlay span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.kitchen-wizard-page {
  min-height: calc(100vh - 78px);
  padding: 56px 0 86px;
  background:
    linear-gradient(135deg, rgba(247, 245, 241, 0.96), rgba(255, 255, 255, 0.9)),
    url("https://images.unsplash.com/photo-1556912173-3bb406ef7e77?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.kitchen-wizard-shell {
  display: grid;
  gap: 24px;
}

.kitchen-wizard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
}

.kitchen-wizard-head h1 {
  max-width: 760px;
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
}

.kitchen-wizard-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.kitchen-wizard-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.kitchen-wizard-panel,
.kitchen-wizard-preview {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.14);
}

.kitchen-wizard-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 16px;
}

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

.wizard-steps button {
  min-height: 40px;
  color: var(--charcoal);
  background: #f1ece4;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.wizard-steps button.active {
  color: #fff;
  background: var(--charcoal);
}

.wizard-step {
  display: none;
  gap: 14px;
}

.wizard-step.active {
  display: grid;
}

.wizard-field-grid,
.wizard-choice-grid,
.wizard-toggle-grid,
.wizard-template-grid,
.wizard-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-field-grid label,
.wizard-color-field {
  display: grid;
  gap: 7px;
}

.wizard-field-grid span,
.wizard-color-field span {
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wizard-field-grid input,
.wizard-field-grid select,
.wizard-color-field select,
.wizard-color-field input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.wizard-color-field input[type="color"] {
  padding: 4px;
}

.wizard-choice-grid label,
.wizard-toggle-grid label,
.wizard-palette button,
.wizard-template-grid button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.wizard-choice-grid input,
.wizard-toggle-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.wizard-palette,
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-palette button,
.wizard-template-grid button {
  justify-content: center;
  border: 1px solid rgba(23, 23, 23, 0.1);
}

.wizard-palette button.active,
.wizard-template-grid button:hover,
.wizard-template-grid button:focus {
  color: #fff;
  background: var(--charcoal);
}

.wizard-final-actions .btn,
.wizard-nav .btn {
  justify-content: center;
}

.wizard-help-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.wizard-nav {
  justify-content: space-between;
  padding-top: 4px;
}

.kitchen-wizard-preview {
  display: grid;
  grid-template-rows: auto minmax(620px, 1fr);
  overflow: hidden;
  background: #f7f5f1;
}

.wizard-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  color: #fff;
  background: rgba(17, 17, 17, 0.96);
  font-weight: 950;
  text-transform: uppercase;
}

.wizard-preview-toolbar div {
  display: flex;
  gap: 8px;
}

.wizard-preview-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-weight: 900;
}

.wizard-canvas-stage,
.wizard-sketch-stage {
  position: relative;
  min-height: 620px;
  padding: 18px;
  background: #e8e2d8;
}

.wizard-canvas-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.wizard-sketch-paper {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 584px;
  padding: 14px;
  background: #fffdfa;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.03);
}

.wizard-sketch-paper svg {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: block;
}

.sketch-room {
  stroke: rgba(17, 17, 17, 0.24);
  stroke-width: 2;
}

.sketch-wall {
  stroke: rgba(17, 17, 17, 0.18);
  stroke-width: 1;
}

.sketch-cabinet,
.sketch-island {
  stroke: #fff;
  stroke-width: 2.5;
}

.sketch-counter {
  stroke: rgba(17, 17, 17, 0.55);
  stroke-width: 1.5;
}

.sketch-fridge {
  fill: #25282c;
  stroke: rgba(17, 17, 17, 0.3);
  stroke-width: 2;
}

.sketch-oven {
  fill: #202124;
  stroke: #fff;
  stroke-width: 2;
}

.sketch-sink {
  fill: #c9d0d3;
  stroke: rgba(17, 17, 17, 0.25);
  stroke-width: 2;
}

.sketch-hood {
  fill: #b9b3aa;
  stroke: rgba(17, 17, 17, 0.25);
  stroke-width: 2;
}

.sketch-dim-line {
  stroke: #202124;
  stroke-width: 1.4;
  marker-start: url("#arrow");
  marker-end: url("#arrow");
}

.sketch-label {
  fill: #171717;
  font-size: 18px;
  font-weight: 950;
}

.sketch-small {
  fill: #171717;
  font-size: 13px;
  font-weight: 950;
}

.sketch-dim-text,
.sketch-note {
  fill: #4f4a43;
  font-size: 15px;
  font-weight: 900;
}

.wizard-message,
.wizard-element-list {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(17, 17, 17, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.wizard-message.error {
  background: rgba(160, 34, 31, 0.88);
}

.wizard-element-list {
  top: 14px;
  right: auto;
  bottom: auto;
  width: min(300px, calc(100% - 28px));
  max-height: 280px;
  overflow: auto;
}

.material-showcase {
  background:
    linear-gradient(90deg, #111 0%, #111 36%, #f7f5f1 36%, #f7f5f1 100%);
  overflow: hidden;
}

.material-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.material-copy {
  color: #fff;
  padding: 28px 0;
}

.material-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.68);
}

.material-gallery {
  display: grid;
  grid-template-columns: 0.82fr 1fr 0.82fr;
  gap: 14px;
  min-height: 440px;
}

.material-gallery img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(17, 17, 17, 0.18);
  transition: transform 550ms var(--ease), filter 260ms ease;
}

.material-gallery img:nth-child(1),
.material-gallery img:nth-child(3) {
  transform: translateY(34px);
}

.material-gallery img:hover {
  filter: saturate(1.06) contrast(1.04);
  transform: translateY(-8px) scale(1.015);
}

.about-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #f7f5f1 0%, #fff 58%, #efe9df 100%);
}

.about-section::before {
  content: "TRIMI";
  position: absolute;
  right: -0.12em;
  bottom: -0.32em;
  color: rgba(17, 17, 17, 0.035);
  font-size: clamp(8rem, 24vw, 24rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.76)),
    url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1000&q=84") center / cover;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.about-visual span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.about-visual span img {
  width: 92px;
  height: 74px;
  object-fit: contain;
  display: block;
}

.about-copy {
  max-width: 720px;
}

.about-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.about-points div {
  min-height: 118px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
  transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease;
}

.about-points div:hover {
  border-color: rgba(224, 49, 43, 0.22);
  box-shadow: 0 24px 62px rgba(17, 17, 17, 0.1);
  transform: translateY(-5px);
}

.about-points strong {
  display: block;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 950;
}

.about-points span {
  display: block;
  margin-top: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.collection-section {
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading span {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.7;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 28px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 241, 234, 0.94)),
    linear-gradient(90deg, rgba(224, 49, 43, 0.08), transparent 42%, rgba(17, 17, 17, 0.035));
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 18px 55px rgba(17, 17, 17, 0.06);
}

.category-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px 0 8px;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 900;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.category-filter-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--brand);
  background: #fff;
  border: 1px solid rgba(224, 49, 43, 0.12);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
}

.category-filter-btn:hover,
.category-filter-btn:focus {
  color: var(--brand);
  background: #fff;
  border-color: rgba(224, 49, 43, 0.14);
  transform: translateY(-1px);
}

.category-filter-btn.active {
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: rgba(224, 49, 43, 0.24);
  box-shadow: 0 14px 34px rgba(224, 49, 43, 0.28);
}

.category-filter-btn.active .category-filter-mark {
  color: var(--brand);
  border-color: rgba(255, 255, 255, 0.5);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
  transition: transform 320ms var(--ease), box-shadow 320ms ease, border-color 320ms ease;
}

.product-card.is-filtered-out {
  display: none;
}

.product-card.is-filtering-in {
  animation: productFilterIn 360ms var(--ease);
}

.product-card:hover {
  color: inherit;
  border-color: rgba(224, 49, 43, 0.3);
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.13);
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 650ms var(--ease);
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-card-body {
  padding: 20px;
}

.product-card-body.category-only {
  position: relative;
  padding: 18px 20px 20px;
}

.product-card-body.category-only::after {
  content: "Shiko";
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms var(--ease);
}

.product-card:hover .product-card-body.category-only::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.product-card span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.product-card p {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
}

.product-meta small {
  color: var(--muted);
  font-weight: 800;
}

.product-meta strong {
  color: var(--ink);
}

.latest-work-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, #f4efe7 100%);
}

.latest-work-section::before {
  content: "TM";
  position: absolute;
  right: -0.24em;
  top: -0.28em;
  color: rgba(224, 49, 43, 0.045);
  font-size: clamp(9rem, 24vw, 24rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.latest-work-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: 240px;
  gap: 18px;
}

.latest-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
  transition: transform 320ms var(--ease), box-shadow 320ms ease;
}

.latest-work-card.featured {
  grid-row: span 2;
}

.latest-work-card:only-child {
  grid-column: 1 / -1;
  min-height: 420px;
}

.latest-work-card:hover {
  color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 34px 90px rgba(17, 17, 17, 0.18);
}

.latest-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 700ms var(--ease), opacity 260ms ease;
}

.latest-work-card:hover img {
  opacity: 1;
  transform: scale(1.055);
}

.latest-work-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: rgba(17, 17, 17, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.latest-work-card span,
.latest-work-card strong {
  display: block;
}

.latest-work-card span {
  color: #fff;
  font-size: clamp(1.15rem, 3vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
}

.latest-work-card strong {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-page {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background:
    radial-gradient(circle at 78% 8%, rgba(224, 49, 43, 0.08), transparent 30%),
    linear-gradient(180deg, #fff, #f5f1ea);
}

.product-detail-page::before {
  content: "TRIMI";
  position: absolute;
  left: -0.11em;
  bottom: -0.28em;
  color: rgba(17, 17, 17, 0.035);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms var(--ease);
}

.back-link::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.back-link:hover {
  color: var(--brand);
  transform: translateX(-3px);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 34px;
  align-items: stretch;
}

.product-detail-media,
.product-detail-copy {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(17, 17, 17, 0.08);
}

.product-detail-media {
  overflow: hidden;
}

.product-detail-stage {
  position: relative;
  overflow: hidden;
  background: #111;
}

.detail-brand-stamp {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.product-detail-main {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  background: #eee8df;
}

.product-detail-main.is-changing {
  animation: galleryImageIn 360ms var(--ease);
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  padding: 12px;
  background: #fff;
}

.product-detail-thumb {
  padding: 0;
  overflow: hidden;
  background: #f2eee8;
  border: 2px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms var(--ease), opacity 180ms ease;
}

.product-detail-thumb:hover,
.product-detail-thumb.active {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.product-detail-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.product-detail-copy h1 {
  max-width: 620px;
  margin: 8px 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
}

.product-detail-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.product-detail-facts div {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-detail-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-facts strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 950;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-contact-panel {
  margin: 24px 0 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(36, 39, 43, 0.96)),
    linear-gradient(90deg, rgba(224, 49, 43, 0.22), transparent);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 20px 55px rgba(17, 17, 17, 0.16);
}

.detail-contact-panel > span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-contact-panel > strong {
  display: block;
  margin: 4px 0 14px;
  font-size: 1.35rem;
  font-weight: 950;
}

.detail-contact-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-contact-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.craft-section {
  position: relative;
  background:
    linear-gradient(135deg, rgba(36, 39, 43, 0.94), rgba(17, 17, 17, 0.98)),
    url("https://images.unsplash.com/photo-1581539250439-c96689b516dd?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: #fff;
  overflow: hidden;
}

.craft-section::before {
  content: "TRIMI";
  position: absolute;
  right: -0.08em;
  bottom: -0.32em;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(8rem, 26vw, 24rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.craft-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.craft-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  min-height: 92px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  transition: transform 260ms var(--ease), background 260ms ease, border-color 260ms ease;
}

.process-list div:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateX(8px);
}

.process-list strong {
  color: var(--brand);
  font-size: 1.35rem;
}

.process-list span {
  font-weight: 800;
}

.site-footer {
  background:
    linear-gradient(90deg, #111, #1f2022);
  color: #fff;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  box-shadow: 0 20px 55px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
}

.floating-contact-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.floating-contact-btn:hover {
  color: #fff;
  transform: translateY(-3px);
}

.floating-contact-btn.call {
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(224, 49, 43, 0.32);
}

.floating-contact-btn.whatsapp {
  background: #111;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.22);
  font-size: 0;
}

.floating-contact-btn.whatsapp::before {
  content: "";
  width: 25px;
  height: 25px;
  background: #25d366;
  display: block;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 3.2A12.5 12.5 0 0 0 5.1 21.8L3.7 28.6l6.9-1.8A12.5 12.5 0 1 0 16 3.2Zm0 2.4a10.1 10.1 0 0 1 8.6 15.4 10.1 10.1 0 0 1-13.4 3.6l-.5-.3-4 1 .8-3.9-.3-.5A10.1 10.1 0 0 1 16 5.6Zm-4.1 5.2c-.2 0-.6.1-.9.5-.3.4-1.1 1.1-1.1 2.6s1.1 3 1.2 3.2c.2.2 2.2 3.5 5.4 4.7 2.7 1.1 3.2.9 3.8.8.6-.1 1.9-.8 2.2-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.2-.7-.4l-2.1-1c-.3-.1-.6-.2-.8.2-.2.3-.9 1-1.1 1.2-.2.2-.4.2-.8.1-.4-.2-1.5-.6-2.8-1.8-1-1-1.7-2.1-1.9-2.5-.2-.4 0-.6.2-.7.2-.2.4-.4.5-.6.2-.2.2-.3.3-.6.1-.2 0-.4 0-.6l-.9-2.2c-.2-.5-.5-.5-.7-.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 3.2A12.5 12.5 0 0 0 5.1 21.8L3.7 28.6l6.9-1.8A12.5 12.5 0 1 0 16 3.2Zm0 2.4a10.1 10.1 0 0 1 8.6 15.4 10.1 10.1 0 0 1-13.4 3.6l-.5-.3-4 1 .8-3.9-.3-.5A10.1 10.1 0 0 1 16 5.6Zm-4.1 5.2c-.2 0-.6.1-.9.5-.3.4-1.1 1.1-1.1 2.6s1.1 3 1.2 3.2c.2.2 2.2 3.5 5.4 4.7 2.7 1.1 3.2.9 3.8.8.6-.1 1.9-.8 2.2-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.2-.7-.4l-2.1-1c-.3-.1-.6-.2-.8.2-.2.3-.9 1-1.1 1.2-.2.2-.4.2-.8.1-.4-.2-1.5-.6-2.8-1.8-1-1-1.7-2.1-1.9-2.5-.2-.4 0-.6.2-.7.2-.2.4-.4.5-.6.2-.2.2-.3.3-.6.1-.2 0-.4 0-.6l-.9-2.2c-.2-.5-.5-.5-.7-.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.whatsapp-icon {
  width: 25px;
  height: 25px;
  fill: #25d366;
  display: none;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 9px 14px 9px 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.footer-logo-lockup:hover {
  transform: translateY(-1px);
}

.footer-mark-img {
  width: 44px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.footer-wordmark-img {
  width: 152px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.footer-logo {
  max-height: 52px;
  width: auto;
}

.footer-note {
  display: block;
  margin-left: 4px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  line-height: 1.45;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 800;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.footer-contact-btn:hover {
  transform: translateY(-2px);
}

.footer-contact-btn.call {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 16px 34px rgba(224, 49, 43, 0.28);
}

.footer-contact-btn.whatsapp {
  color: #111;
  background: #fff;
  border-color: #fff;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
    align-items: center;
  }
}

.admin-page {
  max-width: 1120px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 64px 24px 90px;
}

.admin-page.narrow {
  max-width: 860px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-header h1,
.delete-panel h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 920;
  line-height: 1;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.empty-panel {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
}

.empty-panel strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.empty-panel span {
  color: var(--muted);
}

.admin-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row img {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}

.hero-slide-row img {
  aspect-ratio: 16 / 9;
}

.hero-preview-panel {
  margin-bottom: 18px;
}

.category-row {
  grid-template-columns: 68px 1fr auto auto auto;
}

.category-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 8px;
  font-size: 1.45rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(224, 49, 43, 0.24);
}

.category-mark.large {
  width: 100%;
  min-height: 220px;
  font-size: 5rem;
}

.category-count {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  color: var(--muted);
}

.status-pill {
  padding: 7px 10px;
  color: var(--muted);
  background: #eee8df;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.status-pill.active {
  color: #fff;
  background: var(--brand);
}

.row-actions {
  display: flex;
  gap: 12px;
  font-weight: 900;
}

.row-actions a:hover {
  color: var(--brand);
}

.admin-form,
.delete-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-group label,
.form-check-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 900;
}

.form-control {
  min-height: 46px;
  border-color: var(--line);
  border-radius: 6px;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.22rem rgba(224, 49, 43, 0.12);
}

.form-check-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(224, 49, 43, 0.05), rgba(255, 255, 255, 0.92)),
    #fff;
  border: 1.5px dashed rgba(224, 49, 43, 0.42);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease);
}

.product-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.product-dropzone:hover,
.product-dropzone:focus-within {
  background: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
}

.product-dropzone .upload-message {
  display: grid;
  gap: 6px;
  margin: 0;
  text-align: center;
}

.product-dropzone .upload-message strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.product-dropzone .upload-message span,
.form-hint {
  color: var(--muted);
}

.selected-photo-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  pointer-events: none;
}

.selected-photo-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
}

.selected-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.selected-photo-item span {
  display: block;
  overflow: hidden;
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-status {
  margin-top: 10px;
  color: var(--brand);
  font-weight: 900;
}

.existing-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.existing-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.delete-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.delete-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.auth-page,
.identity-manage-page {
  min-height: calc(100vh - 78px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 245, 241, 0.94)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 86px 24px 110px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 560px;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.86)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1200&q=85") center / cover;
  border-radius: 8px;
}

.auth-panel .brand-mark-img {
  margin-bottom: auto;
}

.auth-panel h1,
.auth-card h2,
.manage-hero h1,
.manage-card h2 {
  margin: 0;
  font-weight: 920;
  letter-spacing: 0;
}

.auth-panel h1 {
  max-width: 560px;
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 0.96;
}

.auth-panel p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.75;
}

.auth-card,
.manage-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.08);
}

.auth-card {
  align-self: center;
  padding: 34px;
}

.auth-card h2,
.manage-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
}

.auth-card-head,
.manage-card-head {
  margin-bottom: 24px;
}

.manage-card-head span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.auth-options a,
.manage-nav a:hover,
.manage-nav a.active {
  color: var(--brand);
}

.identity-manage-page {
  padding: 70px 24px 90px;
}

.manage-hero,
.manage-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.manage-hero {
  margin-bottom: 28px;
}

.manage-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.manage-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.manage-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.manage-sidebar {
  position: sticky;
  top: 100px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manage-nav {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.manage-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: var(--charcoal);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.manage-nav a.active {
  background: rgba(224, 49, 43, 0.1);
}

.manage-card {
  padding: 30px;
}

.identity-form {
  max-width: 560px;
}

.identity-form .btn {
  min-width: 190px;
}

.alert {
  border-radius: 8px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-grid .reveal-on-scroll:nth-child(2),
.material-gallery .reveal-on-scroll:nth-child(2),
.process-list .reveal-on-scroll:nth-child(2),
.hero-stats .reveal-on-scroll:nth-child(2) {
  transition-delay: 90ms;
}

.product-grid .reveal-on-scroll:nth-child(3),
.material-gallery .reveal-on-scroll:nth-child(3),
.process-list .reveal-on-scroll:nth-child(3),
.hero-stats .reveal-on-scroll:nth-child(3) {
  transition-delay: 180ms;
}

@keyframes heroSlideDrift {
  0%,
  100% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.13) translate3d(var(--drift-x, -20px), var(--drift-y, 12px), 0);
  }
}

@keyframes productFilterIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes galleryImageIn {
  from {
    opacity: 0.72;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-slide {
    transition: opacity 700ms ease !important;
  }

  .hero-slide.active {
    animation: none !important;
    transform: scale(1.06) translate3d(0, 0, 0);
  }
}

@media (max-width: 900px) {
  .brand-wordmark-img {
    width: 150px;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.24) 0%, rgba(10, 10, 10, 0.46) 34%, rgba(10, 10, 10, 0.58) 100%),
      linear-gradient(90deg, rgba(10, 10, 10, 0.74) 0%, rgba(10, 10, 10, 0.44) 62%, rgba(10, 10, 10, 0.24) 100%);
  }

  .navbar-collapse {
    margin-top: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(17, 17, 17, 0.12);
  }

  .navbar-collapse > .navbar-nav:first-child {
    gap: 6px;
    padding: 0;
    margin-right: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .navbar-collapse > .navbar-nav:first-child .nav-link,
  .identity-nav .nav-link,
  .identity-nav form .nav-link {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .navbar-collapse > .navbar-nav:first-child .nav-link:hover,
  .navbar-collapse > .navbar-nav:first-child .nav-link:focus {
    background: rgba(224, 49, 43, 0.08);
  }

  .identity-nav {
    align-items: stretch;
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(247, 245, 241, 0.72);
  }

  .account-chip {
    justify-content: center;
  }

  .hero-section {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 220px;
  }

  .intro-band .content-shell,
  .design-preview-grid,
  .kitchen-configurator-head,
  .kitchen-configurator-grid,
  .material-grid,
  .about-grid,
  .craft-grid,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .material-showcase {
    background: #111;
  }

  .design-preview-section {
    background: #181818;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-work-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .latest-work-card.featured {
    grid-row: span 1;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-copy {
    min-height: 0;
  }

  .kitchen-preview-panel {
    grid-template-rows: auto minmax(440px, 1fr);
  }

  .kitchen-canvas-stage {
    min-height: 440px;
  }

  .kitchen-wizard-head,
  .kitchen-wizard-layout {
    grid-template-columns: 1fr;
  }

  .kitchen-wizard-preview {
    grid-template-rows: auto minmax(480px, 1fr);
  }

  .wizard-canvas-stage,
  .wizard-sketch-stage {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .site-nav,
  .content-shell,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    min-height: 62px;
  }

  .brand-lockup {
    min-height: 50px;
    max-width: calc(100vw - 98px);
    padding-right: 12px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  }

  .navbar-toggler {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  }

  .brand-mark-img {
    width: 44px;
    height: 36px;
  }

  .brand-wordmark-img {
    width: 128px;
    height: 26px;
  }

  .hero-section {
    display: block;
    min-height: 0;
  }

  .hero-content {
    padding: 94px 16px 28px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-stats {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    transform: none;
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .hero-stats div {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .intro-band,
  .design-preview-section,
  .material-showcase,
  .about-section,
  .collection-section,
  .latest-work-section,
  .craft-section {
    padding: 58px 0;
  }

  .kitchen-configurator-page {
    padding: 42px 0 66px;
  }

  .kitchen-configurator-head h1 {
    font-size: 3.25rem;
  }

  .kitchen-control-panel {
    padding: 14px;
  }

  .kitchen-control-panel {
    display: grid;
  }

  .kitchen-control-panel > .kitchen-control-group:first-child,
  .kitchen-plan-group {
    flex: none;
  }

  .kitchen-control-panel > [data-selected-cabinet-panel] {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 52vh;
    overflow: auto;
  }

  .kitchen-segmented,
  .kitchen-swatches,
  .kitchen-swatches.compact {
    grid-template-columns: 1fr;
  }

  .kitchen-module-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-select-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-plan-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-preview-toolbar {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
  }

  .kitchen-preview-panel {
    grid-template-rows: auto minmax(360px, 1fr);
  }

  .kitchen-canvas-stage {
    min-height: 360px;
  }

  .kitchen-plan-preview {
    display: none;
  }

  .kitchen-wizard-page {
    padding: 42px 0 66px;
  }

  .kitchen-wizard-head h1 {
    font-size: 3.15rem;
  }

  .wizard-field-grid,
  .wizard-choice-grid,
  .wizard-toggle-grid,
  .wizard-template-grid,
  .wizard-final-actions {
    grid-template-columns: 1fr;
  }

  .wizard-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
  }

  .kitchen-wizard-preview {
    grid-template-rows: auto minmax(380px, 1fr);
  }

  .wizard-canvas-stage,
  .wizard-sketch-stage {
    min-height: 380px;
  }

  .hero-frame,
  .hero-side-note {
    display: none;
  }

  .material-gallery {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .material-gallery img,
  .material-gallery img:nth-child(1),
  .material-gallery img:nth-child(3) {
    min-height: 250px;
    transform: none;
  }

  .design-preview-stage {
    min-height: 360px;
  }

  .design-preview-badges {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .about-visual {
    min-height: 300px;
  }

  .product-grid,
  .latest-work-grid,
  .about-points,
  .product-detail-facts,
  .form-grid,
  .delete-panel {
    grid-template-columns: 1fr;
  }

  .latest-work-grid {
    grid-auto-rows: auto;
  }

  .latest-work-card,
  .latest-work-card.featured {
    min-height: 250px;
  }

  .latest-work-card div {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: start;
    flex-direction: column;
  }

  .product-detail-page {
    padding: 34px 0 64px;
  }

  .product-detail-grid {
    gap: 16px;
  }

  .product-detail-main {
    aspect-ratio: 4 / 3;
  }

  .product-detail-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-copy {
    padding: 24px;
  }

  .product-detail-copy h1 {
    font-size: 2.8rem;
  }

  .category-filter {
    border-radius: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px;
  }

  .category-filter-btn {
    flex: 0 0 auto;
  }

  .product-card-body.category-only::after {
    opacity: 1;
  }

  .detail-contact-panel div,
  .product-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
    gap: 8px;
    padding: 6px;
  }

  .floating-contact-btn {
    width: 46px;
    height: 46px;
  }

  .admin-header,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .auth-shell,
  .manage-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 42px 16px 70px;
  }

  .auth-panel {
    min-height: 420px;
    padding: 28px;
  }

  .auth-card,
  .manage-card {
    padding: 22px;
  }

  .auth-options {
    align-items: start;
    flex-direction: column;
  }

  .identity-manage-page {
    padding: 44px 16px 70px;
  }

  .manage-sidebar {
    position: static;
  }

  .footer-contact {
    text-align: left;
  }

  .admin-row {
    grid-template-columns: 72px 1fr;
  }

  .category-row {
    grid-template-columns: 58px 1fr;
  }

  .admin-row img {
    width: 72px;
    height: 62px;
  }

  .status-pill,
  .category-count,
  .row-actions {
    grid-column: 1 / -1;
  }
}
