.biin-color-section {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #111315;
  color: #f2f3f1;
  direction: rtl;
  --product-x: 0px;
  --product-y: 0px;
  --lines-x: 0px;
  --lines-y: 0px;
  --scene-background: #111315;
  --scene-tint: rgb(92 96 98);
  --scene-tint-opacity: 0.038;
  --contour-major: rgb(223 227 225 / 0.19);
  --contour-minor: rgb(223 227 225 / 0.11);
  --ghost-color: #f0f2ef;
  --ghost-opacity: 0.16;
}

.biin-color-section,
.biin-color-section * { box-sizing: border-box; }
.biin-color-section button,
.biin-color-section a { font: inherit; }

.biin-color-section {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  height: clamp(590px, 80svh, 900px);
  overflow: hidden;
  background: var(--scene-background);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.biin-color-section::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background-color: var(--scene-tint);
  opacity: var(--scene-tint-opacity);
  transition: background-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.biin-color-section::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 18%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(17, 19, 21, 0.48));
}

.biin-color-section .section-inner {
  position: relative;
  z-index: 3;
  width: min(100%, 1680px);
  height: 100%;
  margin-inline: auto;
}

.biin-color-section .wordmark {
  position: absolute;
  z-index: 1;
  top: 7%;
  right: -6%;
  left: -6%;
  overflow: visible;
  padding-block: 0.16em 0.22em;
  color: var(--ghost-color);
  font-family: "Segoe UI Light", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(116px, 15vw, 272px);
  font-weight: 200;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.biin-color-section .wordmark__text {
  display: block;
  opacity: 0;
  transform: translateY(18px) scaleX(1.06);
  transform-origin: center;
  clip-path: inset(-0.2em 100% -0.24em -0.12em);
}

.biin-color-section .contours {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--lines-x), var(--lines-y));
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.biin-color-section .contours svg { width: 100%; height: 100%; }
.biin-color-section .contours path {
  fill: none;
  stroke: var(--contour-major);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 8 12;
  animation: contour-drift 18s linear infinite;
  transition: stroke 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.biin-color-section .contours path:nth-child(even) { animation-direction: reverse; animation-duration: 23s; }
.biin-color-section .contours .contour-minor { stroke: var(--contour-minor); }
.biin-color-section .contours svg { transform-origin: 68% 52%; }

.biin-color-section .product-stage {
  position: absolute;
  z-index: 2;
  top: 4%;
  right: 0;
  bottom: 0;
  left: 22%;
  overflow: hidden;
}

.biin-color-section .product-frame {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translate3d(var(--product-x), var(--product-y), 0);
  transform-origin: 55% 65%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.biin-color-section #product-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

.biin-color-section .loading-state {
  position: absolute;
  z-index: 4;
  top: 56%;
  left: 42%;
  width: min(210px, 46%);
  color: rgba(244, 245, 242, 0.62);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: right;
  opacity: 0;
  transition: opacity 240ms ease;
}

.biin-color-section .loading-track {
  display: block;
  height: 1px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.biin-color-section .loading-track > span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ecede9;
  transform: scaleX(0.08);
  transform-origin: right;
  transition: transform 180ms ease-out;
}

.biin-color-section.is-loading .loading-state { opacity: 1; }
.biin-color-section.is-ready .loading-state { opacity: 0; pointer-events: none; }

.biin-color-section .content-panel {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: auto;
  left: clamp(28px, 5.2vw, 96px);
  width: min(360px, 26vw);
  transform: translateY(-43%);
}

.biin-color-section .section-copy { margin-bottom: clamp(28px, 4vh, 45px); }
.biin-color-section .brand-mark {
  margin: 0 0 18px;
  color: rgba(245, 246, 243, 0.52);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  direction: ltr;
  text-align: right;
  opacity: 0;
  transform: translateY(10px);
}

.biin-color-section h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 68px);
  font-weight: 320;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(18px);
}

.biin-color-section .intro {
  margin: 14px 0 0;
  color: rgba(242, 243, 241, 0.62);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 350;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(14px);
}

.biin-color-section .color-controls { display: grid; gap: 24px; }
.biin-color-section fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.biin-color-section legend {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  color: rgba(244, 245, 242, 0.66);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
}

.biin-color-section .selected-color-name {
  color: rgba(244, 245, 242, 0.42);
  font-size: 11px;
  font-weight: 300;
  white-space: nowrap;
}

.biin-color-section .swatch-row { display: flex; gap: 7px; direction: rtl; }
.biin-color-section .swatch {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(10px);
}

.biin-color-section .swatch::before {
  width: 24px;
  height: 24px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.biin-color-section .swatch::after {
  position: absolute;
  inset: 1px;
  content: "";
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 220ms ease;
}

.biin-color-section .swatch:hover::before { transform: scale(1.12); }
.biin-color-section .swatch[aria-pressed="true"]::after { border-color: rgba(242, 243, 241, 0.78); }
.biin-color-section .swatch:focus-visible::after { border-color: #ffffff; box-shadow: 0 0 0 3px rgba(255,255,255,0.13); }

.biin-color-section .model-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(30px, 4.5vh, 50px);
  padding-block: 7px;
  color: #f2f3f1;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 243, 241, 0.36);
  opacity: 0;
  transform: translateY(12px);
  transition: border-color 220ms ease;
}
.biin-color-section .model-link:hover, .biin-color-section .model-link:focus-visible { border-color: #f2f3f1; }

.biin-color-section.is-entered .contours { animation: fade-lines 700ms ease-out 40ms both; }
.biin-color-section.is-entered .wordmark__text { animation: reveal-word 920ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }
.biin-color-section.is-assembling .product-frame,
.biin-color-section.is-ready .product-frame { animation: reveal-canvas 360ms ease-out both; }
.biin-color-section.is-customizing .brand-mark { animation: enter-copy 520ms ease-out 40ms both; }
.biin-color-section.is-customizing h1 { animation: enter-copy 650ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both; }
.biin-color-section.is-customizing .intro { animation: enter-copy 620ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both; }
.biin-color-section.is-customizing legend { animation: enter-copy 480ms ease-out 220ms both; }
.biin-color-section.is-customizing .swatch { animation: enter-copy 450ms ease-out calc(280ms + var(--stagger)) both; }
.biin-color-section.is-customizing .model-link { animation: enter-copy 540ms ease-out 570ms both; }

.biin-color-section.is-paused .contours path { animation-play-state: paused; }
.biin-color-section + .route-end { height: 1px; background: #111315; }

@keyframes contour-drift { to { stroke-dashoffset: 220; } }
@keyframes fade-lines { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-word {
  from { opacity: 0; clip-path: inset(-0.2em 100% -0.24em -0.12em); transform: translateY(18px) scaleX(1.06); }
  to { opacity: var(--ghost-opacity); clip-path: inset(-0.2em -0.12em -0.24em -0.12em); transform: translateY(0) scaleX(1.06); }
}
@keyframes reveal-canvas { from { opacity: 0; } to { opacity: 1; } }
@keyframes enter-copy { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .biin-color-section { min-height: 620px; height: min(92svh, 820px); }
  .biin-color-section .product-stage { top: 2%; right: 0; left: 28%; }
  .biin-color-section .content-panel { width: min(310px, 34vw); }
  .biin-color-section .wordmark { top: 7%; font-size: clamp(108px, 16vw, 176px); }
}

@media (max-width: 700px) {
  .biin-color-section { min-height: 620px; height: clamp(620px, 93svh, 880px); }
  .biin-color-section::after { height: 10%; }
  .biin-color-section .section-inner { display: grid; grid-template-rows: minmax(280px, 49%) 1fr; }
  .biin-color-section .wordmark {
    top: 3%;
    right: -28%;
    left: -28%;
    font-size: clamp(88px, 27vw, 124px);
  }
  .biin-color-section .contours path:nth-child(n+4) { display: none; }
  .biin-color-section .product-stage { position: relative; top: auto; right: auto; bottom: auto; left: auto; grid-row: 1; min-height: 0; }
  .biin-color-section .product-frame { width: 118%; margin-right: -9%; transform-origin: 54% 62%; }
  .biin-color-section .loading-state { top: 58%; left: 50%; transform: translateX(-50%); }
  .biin-color-section .content-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-row: 2;
    width: auto;
    padding: 0 24px max(20px, env(safe-area-inset-bottom));
    transform: none;
  }
  .biin-color-section .section-copy { margin-bottom: 17px; }
  .biin-color-section .brand-mark { display: none; }
  .biin-color-section h1 { font-size: clamp(34px, 10.5vw, 46px); }
  .biin-color-section .intro { margin-top: 7px; font-size: 14px; }
  .biin-color-section .color-controls { gap: 12px; }
  .biin-color-section legend { margin-bottom: 4px; }
  .biin-color-section .swatch-row { gap: 3px; }
  .biin-color-section .swatch { flex-basis: 42px; width: 42px; height: 42px; }
  .biin-color-section .swatch::before { width: 26px; height: 26px; }
  .biin-color-section .model-link { margin-top: 17px; font-size: 13px; }
}

@media (max-width: 380px) {
  .biin-color-section { height: 95svh; }
  .biin-color-section .section-inner { grid-template-rows: minmax(250px, 46%) 1fr; }
  .biin-color-section .content-panel { padding-inline: 18px; }
  .biin-color-section .section-copy { margin-bottom: 12px; }
  .biin-color-section h1 { font-size: 34px; }
  .biin-color-section .intro { font-size: 13px; }
  .biin-color-section .color-controls { gap: 8px; }
  .biin-color-section .swatch { flex-basis: 40px; width: 40px; height: 40px; }
  .biin-color-section .swatch::before { width: 24px; height: 24px; }
  .biin-color-section .model-link { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .biin-color-section,
  .biin-color-section *,
  .biin-color-section *::before,
  .biin-color-section *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .biin-color-section .contours { transform: none; }
  .biin-color-section .contours path { animation: none; }
  .biin-color-section .product-frame { transition: none; }
  .biin-color-section::before, .biin-color-section .contours path { transition-duration: 80ms; }
}

.biin-color-section.reduce-motion *, .biin-color-section.reduce-motion *::before, .biin-color-section.reduce-motion *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; }
.biin-color-section.reduce-motion .contours { transform: none; }
.biin-color-section.reduce-motion .contours path { animation: none; }
.biin-color-section.reduce-motion::before, .biin-color-section.reduce-motion .contours path { transition-duration: 80ms; }
