@font-face {
  font-family: "Peyda";
  src: url("fonts/peyda/Peyda-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("fonts/peyda/Peyda-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("fonts/peyda/Peyda-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("fonts/peyda/Peyda-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("fonts/peyda/Peyda-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --black: #000000;
  --silver: #bcbec0;
  --red: #d7182a;
  --red-bright: #ee3142;
  --paper: #f4f3ef;
  --paper-strong: #ffffff;
  --ink: #101010;
  --ink-soft: #565656;
  --line: rgba(0, 0, 0, .13);
  --line-strong: rgba(0, 0, 0, .28);
  --glass: rgba(255, 255, 255, .72);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --scroll-shift: 0px;
  --journey-progress: 0;
  --font: "Peyda", Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--paper);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, textarea, select {
  font: inherit;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(215, 24, 42, .42);
  outline-offset: 4px;
}

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

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 15%, rgba(215, 24, 42, .08), transparent 28%),
    radial-gradient(circle at 88% 75%, rgba(188, 190, 192, .22), transparent 34%),
    var(--paper);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.ambient-stroke {
  position: absolute;
  width: 42vw;
  height: 120vh;
  border: 1px solid rgba(215,24,42,.14);
  border-radius: 50%;
  transform: rotate(22deg);
}

.stroke-one { inset-block-start: -45vh; inset-inline-start: -20vw; }
.stroke-two { inset-block-end: -54vh; inset-inline-end: -20vw; transform: rotate(-28deg); }

.lang-overlay {
  isolation: isolate;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(1.2rem, 3.5vw, 2.5rem);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 380ms cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 380ms cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.lang-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.lang-overlay.is-closing {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
}

.lang-overlay.is-closing .lang-modal {
  animation: modal-float-out 280ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lang-modal {
  isolation: isolate;
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  overflow: hidden;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 24px 70px -12px rgba(0, 0, 0, 0.09),
    0 10px 24px -6px rgba(0, 0, 0, 0.04),
    0 0 1px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(35px) scale(0.93);
  opacity: 0;
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1), opacity 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-overlay.is-open .lang-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: modal-enter-lux 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modal-enter-lux {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-float-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
}

.modal-header {
  position: relative;
  max-width: 680px;
  margin: 0 auto clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}

.brand-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.9rem 0.3rem 0.45rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: #f7f7f6;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  opacity: 0;
  transform: translateY(-12px);
}

.lang-overlay.is-open .brand-badge {
  animation: header-fade-down 460ms cubic-bezier(0.16, 1, 0.3, 1) both 80ms;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.brand-mark img { width: 88%; height: 88%; object-fit: contain; }

.step-indicator {
  position: absolute;
  inset-block-start: 0.25rem;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  direction: ltr;
}

.step {
  width: 20px;
  height: 3.5px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  transition: background 300ms ease;
}
.step.active { background: var(--red); }
.step-label {
  margin-inline-start: 0.3rem;
  color: #888888;
  font-size: 0.72rem;
  font-family: Arial, sans-serif;
  font-weight: 600;
}

.modal-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #111111;
  opacity: 0;
  transform: translateY(-14px);
}

.lang-overlay.is-open .modal-title {
  animation: header-fade-down 500ms cubic-bezier(0.16, 1, 0.3, 1) both 120ms;
}

.modal-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: #666666;
  font-size: clamp(0.94rem, 1.4vw, 1.04rem);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-12px);
}

.lang-overlay.is-open .modal-subtitle {
  animation: header-fade-down 500ms cubic-bezier(0.16, 1, 0.3, 1) both 160ms;
}

@keyframes header-fade-down {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  direction: ltr;
}

.lang-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 204px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.3rem 0.85rem 1.1rem;
  overflow: visible;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  appearance: none;
  opacity: 0;
  transform: translateY(44px) scale(0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms ease,
              background-color 220ms ease;
}

.lang-overlay.is-open .lang-card {
  animation: card-appear-spring 620ms cubic-bezier(0.2, 1.18, 0.35, 1) both;
  animation-delay: calc(var(--card-index, 0) * 85ms + 140ms);
}

@keyframes card-appear-spring {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.86);
  }
  65% {
    opacity: 1;
    transform: translateY(-7px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.lang-card:active {
  transform: translateY(-1px) scale(0.98);
}

.lang-card.selected {
  border-color: var(--red);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(215, 24, 42, 0.12), 0 0 0 1px var(--red);
}

.card-header-row {
  position: absolute;
  z-index: 2;
  inset-block-start: 0.85rem;
  inset-inline: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-code-pill {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 7px;
  background: #f5f5f4;
  color: #666666;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.selected .lang-code-pill {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.dir-indicator {
  color: #aaaaaa;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang-symbol {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #f7f7f6;
  color: #1a1a1a;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 220ms ease,
              color 220ms ease,
              border-color 220ms ease,
              box-shadow 260ms ease;
}

.lang-overlay.is-open .lang-card .lang-symbol {
  animation: symbol-spring-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--card-index, 0) * 85ms + 260ms);
}

@keyframes symbol-spring-pop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lang-card:hover .lang-symbol {
  transform: scale(1.06);
}

.lang-card.selected .lang-symbol {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  box-shadow: 0 6px 18px rgba(215, 24, 42, 0.26);
  transform: scale(1.06);
}

.lang-native-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
}

.lang-english-name {
  margin-top: 0.15rem;
  color: #777777;
  font-size: 0.78rem;
  font-weight: 500;
}

.lang-region-tag {
  margin-top: 0.4rem;
  color: #999999;
  font-size: 0.7rem;
}

.card-check-icon {
  position: absolute;
  z-index: 3;
  inset-block-start: -8px;
  inset-inline-end: -8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(215, 24, 42, 0.28);
}

.lang-card.selected .card-check-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.modal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(14px);
}

.lang-overlay.is-open .modal-footer {
  animation: footer-fade-up 500ms cubic-bezier(0.16, 1, 0.3, 1) both 380ms;
}

@keyframes footer-fade-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hint-text {
  margin: 0;
  color: #777777;
  font-size: 0.85rem;
  line-height: 1.5;
}

.btn-confirm,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, background-color 200ms ease;
}

.btn-confirm,
.btn-primary {
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  box-shadow: 0 10px 24px rgba(215, 24, 42, 0.22);
}

.btn-confirm {
  padding: 0.82rem 1.6rem;
  font-size: 0.94rem;
}

.btn-secondary {
  padding: .72rem 1.2rem;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
}

.btn-confirm:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(215, 24, 42, 0.32);
  background-color: var(--red-bright);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--black);
  color: white;
}

.btn-confirm:active,
.btn-primary:active,
.btn-secondary:active {
  transform: scale(.98);
}

.btn-confirm svg {
  transition: transform 220ms var(--ease);
}

.btn-confirm:hover svg {
  transform: translateX(4px);
}

html[dir="rtl"] .btn-confirm svg {
  transform: rotate(180deg);
}

html[dir="rtl"] .btn-confirm:hover svg {
  transform: rotate(180deg) translateX(4px);
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

#app.blurred {
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

.navbar {
  position: sticky;
  z-index: 100;
  top: 0;
  padding: .7rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(0,0,0,.1);
  background: rgba(244,243,239,.82);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav-container,
.footer-content { width: min(1240px, 100%); margin-inline: auto; }
.nav-container,
.nav-brand,
.nav-actions,
.lang-switch-btn,
.system-status-pill { display: flex; align-items: center; }
.nav-container { justify-content: space-between; gap: 1rem; }
.nav-brand { gap: .7rem; color: var(--black); text-decoration: none; }
.brand-logo-icon { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border: 1px solid var(--black); border-radius: 50%; background: white; transition: transform 240ms var(--ease); }
.brand-logo-icon img { width: 82%; height: 82%; object-fit: contain; }
.nav-brand:hover .brand-logo-icon { transform: rotate(12deg); }
.brand-text-col { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; line-height: 1.05; }
.brand-tag { color: #6c6c6c; font-size: .7rem; }
.nav-links { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav-link { position: relative; color: #545454; font-size: .86rem; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -5px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 220ms var(--ease); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-actions { gap: .75rem; }
.system-status-pill { gap: .45rem; color: #444; font-size: .74rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(215,24,42,.09); }
.lang-switch-btn { min-height: 44px; gap: .5rem; padding: .5rem .8rem; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; background: rgba(255,255,255,.62); cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.lang-switch-btn:hover { border-color: var(--black); background: white; }
.nav-globe { display: grid; place-items: center; color: var(--red); }

.hero-section {
  isolation: isolate;
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(100svh - 70px);
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem) 8.5rem;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(700px, 48vw);
  max-width: 700px;
  margin-right: max(2rem, calc((100vw - 1320px) / 2));
  margin-left: auto;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: rgba(244,243,239,.76);
  box-shadow: 0 24px 80px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
}
.hero-kicker { display: flex; justify-content: space-between; max-width: 430px; margin-bottom: 1.4rem; color: #3f3f3f; font-size: .7rem; letter-spacing: .14em; direction: ltr; }
.hero-pill { display: inline-flex; padding: .4rem .9rem; border: 1px solid rgba(215,24,42,.32); border-radius: 999px; background: rgba(255,255,255,.52); color: var(--red); font-size: .78rem; font-weight: 700; }
.hero-title { max-width: 850px; margin: 1.2rem 0 1rem; font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 800; line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.hero-title::first-line { color: var(--red); }
.hero-desc { max-width: 670px; margin: 0 0 2rem; color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-buttons .btn-primary,
.finale-copy .btn-primary { padding: .72rem 1.3rem; }

.hero-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.hero-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244,243,239,.04) 0%, rgba(244,243,239,.13) 38%, rgba(244,243,239,.7) 76%, rgba(244,243,239,.9) 100%),
    linear-gradient(0deg, rgba(244,243,239,.52) 0%, transparent 34%);
  content: "";
  pointer-events: none;
}

.hero-building {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.82) contrast(.98);
  transform: translate3d(0, var(--hero-image-shift, 0), 0) scale(var(--hero-image-scale, 1.04));
  transition: filter 500ms ease;
  will-change: transform;
}

.hero-stage:hover .hero-building { filter: saturate(.95) contrast(1); }

.stage-word {
  position: absolute;
  z-index: 2;
  inset-block-start: 13%;
  inset-inline-start: -18%;
  color: rgba(0,0,0,.06);
  font-family: Arial, sans-serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -.06em;
  white-space: nowrap;
  transform: translateX(var(--scroll-shift));
  will-change: transform;
}

.stage-orbit { position: absolute; z-index: 2; inset: 50%; width: 74%; aspect-ratio: 1; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 48%; border-color: rgba(215,24,42,.3); }
.motion-anchor.hero-anchor { position: absolute; z-index: 3; top: 48%; right: auto; bottom: auto; left: 25%; transform: translate(-50%, -50%); }
.stage-note { position: absolute; z-index: 2; right: auto; bottom: 8.4rem; left: clamp(1.5rem, 7vw, 8rem); max-width: 90px; padding: .55rem; border-radius: 10px; background: rgba(255,255,255,.74); color: #272727; font-family: Arial, sans-serif; font-size: .66rem; line-height: 1.3; letter-spacing: .12em; direction: ltr; backdrop-filter: blur(10px); }

.stats-ribbon {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: -54px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 2.5rem));
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  border: 1px solid var(--black);
  background: var(--paper-strong);
  box-shadow: 10px 10px 0 var(--red);
}

.stat-box { display: flex; min-height: 108px; flex-direction: column; justify-content: center; padding: 1.25rem; border-inline-end: 1px solid var(--line); }
.stat-box:last-child { border-inline-end: 0; }
.stat-number { font-size: 1.35rem; font-weight: 800; }
.stat-label { color: #6a6a6a; font-size: .78rem; }

.story-intro {
  display: grid;
  width: min(1180px, calc(100% - 2.5rem));
  min-height: 72vh;
  grid-template-columns: .35fr 1.65fr;
  align-content: center;
  gap: 2rem;
  margin-inline: auto;
  padding: 10rem 0 5rem;
}

.story-intro-index { color: var(--red); font-family: Arial, sans-serif; font-size: .82rem; letter-spacing: .16em; direction: ltr; }
.story-intro h2 { max-width: 900px; margin: 0; font-size: clamp(3rem, 8vw, 7.5rem); line-height: .95; letter-spacing: -.05em; }
.story-intro p { grid-column: 2; max-width: 620px; margin: 1rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }

.story-panel {
  position: relative;
  display: grid;
  width: min(1240px, calc(100% - 2.5rem));
  min-height: 108vh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  margin-inline: auto;
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}

.panel-index { position: absolute; inset-block-start: 1.5rem; inset-inline-start: 0; color: rgba(0,0,0,.1); font-family: Arial, sans-serif; font-size: clamp(5rem, 13vw, 12rem); font-weight: 900; line-height: 1; }
.panel-copy { grid-column: 1; position: relative; z-index: 2; max-width: 540px; }
.panel-left .panel-copy { grid-column: 2; }
.panel-left .panel-art { grid-column: 1; grid-row: 1; }
.panel-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--red); font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .14em; direction: ltr; }
.panel-eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--red); }
.panel-copy h2 { margin: 1rem 0 .8rem; font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.panel-copy p { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.panel-metric { display: flex; align-items: baseline; gap: 1rem; margin-top: 2.5rem; direction: ltr; }
.panel-metric strong { color: var(--red); font-family: Arial, sans-serif; font-size: 2.5rem; line-height: 1; }
.panel-metric span { color: #666; font-family: Arial, sans-serif; font-size: .66rem; letter-spacing: .12em; }

.panel-art {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--black);
  background: rgba(255,255,255,.62);
  box-shadow: 14px 14px 0 var(--silver);
}

.panel-art::after { content: attr(data-label); position: absolute; inset-inline-start: 1rem; inset-block-end: .8rem; color: rgba(0,0,0,.3); font-family: Arial, sans-serif; font-size: .68rem; letter-spacing: .14em; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); background-size: 42px 42px; }
.object-dock { position: relative; z-index: 3; display: grid; width: 230px; height: 230px; place-items: center; border: 1px dashed rgba(0,0,0,.3); border-radius: 50%; }
.dock-pill { width: 280px; height: 170px; border-radius: 999px; }
.dock-shield { width: 220px; height: 260px; border-radius: 50% 50% 42% 42% / 32% 32% 68% 68%; }
.dock-network { border-style: solid; border-color: rgba(215,24,42,.28); }

.motion-anchor {
  position: relative;
  width: 132px;
  height: 132px;
  border: 1px dashed rgba(215,24,42,.35);
  border-radius: 50%;
}

.motion-anchor::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(215,24,42,.1); border-radius: inherit; }

.data-bars { position: absolute; inset-inline: 8%; inset-block-end: 8%; display: flex; align-items: end; gap: 12px; height: 28%; }
.data-bars i { width: 16px; height: var(--bar-height); background: rgba(0,0,0,.1); transform: scaleY(0); transform-origin: bottom; transition: transform 700ms var(--ease); }
.data-bars i:nth-child(1) { --bar-height: 28%; }
.data-bars i:nth-child(2) { --bar-height: 54%; }
.data-bars i:nth-child(3) { --bar-height: 78%; }
.data-bars i:nth-child(4) { --bar-height: 48%; }
.data-bars i:nth-child(5) { --bar-height: 92%; background: var(--red); }
.is-active .data-bars i { transform: scaleY(1); }

.radar-lines { position: absolute; width: 430px; aspect-ratio: 1; border: 1px solid rgba(0,0,0,.1); border-radius: 50%; box-shadow: inset 0 0 0 70px transparent, inset 0 0 0 71px rgba(0,0,0,.06), inset 0 0 0 140px transparent, inset 0 0 0 141px rgba(0,0,0,.06); }
.radar-lines::before,
.radar-lines::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(0,0,0,.12); }
.radar-lines::after { transform: rotate(90deg); }
.orbit-dots i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--red); opacity: 0; transition: opacity 300ms ease, transform 760ms var(--ease); }
.orbit-dots i:nth-child(1) { inset: 17% auto auto 22%; transform: translate(50px, 80px); }
.orbit-dots i:nth-child(2) { inset: auto 18% 23% auto; transform: translate(-55px, -70px); }
.orbit-dots i:nth-child(3) { inset: 28% 17% auto auto; transform: translate(-80px, 30px); }
.is-active .orbit-dots i { opacity: 1; transform: translate(0,0); }

.shield-lines { position: absolute; width: 70%; height: 78%; border: 1px solid rgba(0,0,0,.1); border-radius: 50% 50% 44% 44% / 32% 32% 68% 68%; }
.shield-lines::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(215,24,42,.22); border-radius: inherit; }
.security-pulse { position: absolute; width: 20px; height: 20px; border: 2px solid var(--red); border-radius: 50%; opacity: 0; }
.is-active .security-pulse { animation: pulse-once 1000ms var(--ease) both; }
@keyframes pulse-once { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(12); } }

.network-lines { position: absolute; inset: 10%; }
.network-lines::before,
.network-lines::after,
.network-lines i { content: ""; position: absolute; background: rgba(0,0,0,.12); transform-origin: center; }
.network-lines::before { inset: 50% 0 auto; height: 1px; }
.network-lines::after { inset: 0 50% auto; width: 1px; height: 100%; }
.network-lines i { width: 14px; height: 14px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform 500ms var(--ease); }
.network-lines i:nth-child(1) { inset: 7% auto auto 10%; }
.network-lines i:nth-child(2) { inset: 14% 8% auto auto; transition-delay: 80ms; }
.network-lines i:nth-child(3) { inset: auto auto 6% 18%; transition-delay: 160ms; }
.network-lines i:nth-child(4) { inset: auto 4% 12% auto; transition-delay: 240ms; }
.is-active .network-lines i { transform: scale(1); }

.story-rail {
  position: fixed;
  z-index: 30;
  inset-inline-end: 18px;
  inset-block-start: 30vh;
  width: 3px;
  height: 40vh;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(0,0,0,.1);
  opacity: 0;
  transition: opacity 240ms ease;
}

body.journey-ready .story-rail { opacity: 1; }
.story-rail-progress { display: block; width: 100%; height: 100%; background: var(--red); transform: scaleY(var(--journey-progress)); transform-origin: top; }

.journey-object {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border-radius: 66px;
  background: var(--red);
  box-shadow: 0 18px 40px rgba(215,24,42,.26), inset 0 0 0 1px rgba(255,255,255,.26);
  color: white;
  opacity: 0;
  pointer-events: none;
  will-change: transform, border-radius;
  transition: opacity 220ms ease;
}

body.journey-ready .journey-object { opacity: 1; }
body.modal-open .journey-object { opacity: 0; }
.journey-object-ring { position: absolute; inset: 14%; border: 1px solid rgba(255,255,255,.42); border-radius: inherit; }
.journey-object-ring::before,
.journey-object-ring::after { content: ""; position: absolute; inset: 50% 12% auto; height: 1px; background: rgba(255,255,255,.34); }
.journey-object-ring::after { transform: rotate(90deg); }
.journey-object-label { position: relative; z-index: 1; font-family: Arial, sans-serif; font-size: .86rem; font-weight: 800; letter-spacing: .12em; direction: ltr; }

.journey-section { transition: opacity 360ms ease; }
.journey-section:not(.is-active):not(.hero-section) .panel-copy { opacity: .46; }
.journey-section .panel-copy { transition: opacity 360ms ease; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms var(--ease), transform 720ms var(--ease);
}
.reveal-on-scroll.reveal-visible { opacity: 1; transform: translateY(0); }

.finale-section {
  display: grid;
  width: min(1240px, calc(100% - 2.5rem));
  min-height: 106vh;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 4rem;
  margin-inline: auto;
  padding: 9rem 0;
  border-top: 1px solid var(--line);
}

.finale-copy h2 { margin: 1rem 0 1.5rem; font-size: clamp(4rem, 10vw, 9rem); line-height: .86; letter-spacing: -.06em; }
.finale-copy h2 em { color: var(--red); font-style: normal; }
.finale-copy p { max-width: 620px; margin-bottom: 2rem; color: var(--ink-soft); }
.finale-target { position: relative; display: grid; min-height: 540px; place-items: center; }
.finale-ring { position: absolute; width: min(480px, 90%); aspect-ratio: 1; border: 1px solid var(--black); border-radius: 50%; box-shadow: 0 0 0 38px rgba(215,24,42,.05), 0 0 0 76px rgba(0,0,0,.03); }

.footer { position: relative; z-index: 2; padding: 1.4rem; border-top: 1px solid var(--black); background: var(--black); color: white; }
.footer-content { display: flex; justify-content: space-between; gap: 1rem; font-size: .76rem; }
.footer-status { display: flex; gap: .45rem; color: var(--silver); direction: ltr; }

@media (max-width: 1000px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-copy { width: min(650px, 58vw); }
  .hero-title { font-size: clamp(3rem, 7vw, 5.2rem); }
  .nav-links { display: none; }
  .story-panel { gap: 2.5rem; }
  .panel-art { min-height: 460px; }
}

@media (max-width: 760px) {
  .lang-overlay { align-items: start; padding: 0; background: rgba(255, 255, 255, 0.88); }
  .lang-modal { min-height: 100dvh; border: 0; border-radius: 0; background: #ffffff; box-shadow: none; padding: max(1.2rem, env(safe-area-inset-top)) 1.1rem max(1.2rem, env(safe-area-inset-bottom)); }
  .modal-header { margin-bottom: 1.2rem; padding-top: .3rem; }
  .brand-badge { margin-bottom: .85rem; }
  .step-indicator { position: static; justify-content: center; margin-bottom: .9rem; }
  .modal-title { font-size: 1.75rem; color: #111111; }
  .modal-subtitle { max-width: 34ch; font-size: .92rem; color: #666666; }
  .lang-grid { grid-template-columns: 1fr; gap: .6rem; }
  .lang-card { min-height: 74px; flex-direction: row; justify-content: flex-start; gap: .85rem; padding: .65rem 4.7rem .65rem .75rem; border: 1.5px solid rgba(0, 0, 0, 0.08); border-radius: 17px; background: #ffffff; text-align: start; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02); }
  html[dir="rtl"] .lang-card { padding: .65rem .75rem .65rem 4.7rem; }
  .card-header-row { inset-block-start: 50%; inset-inline-end: .85rem; inset-inline-start: auto; width: auto; gap: .4rem; transform: translateY(-50%); }
  html[dir="rtl"] .card-header-row { inset-inline-start: .85rem; inset-inline-end: auto; }
  .dir-indicator { display: none; }
  .lang-symbol { width: 46px; height: 46px; flex: 0 0 46px; margin: 0; border-radius: 14px; background: #f7f7f6; }
  .lang-native-name { font-size: 1.05rem; color: #111111; }
  .lang-english-name { margin: 0; color: #777777; }
  .lang-region-tag { display: none; }
  .card-check-icon { inset-block-start: 50%; inset-inline-end: auto; inset-inline-start: -7px; transform: translateY(-50%) scale(.6); }
  html[dir="rtl"] .card-check-icon { inset-inline-start: auto; inset-inline-end: -7px; }
  .lang-card.selected { border-color: var(--red); background: #ffffff; box-shadow: 0 8px 24px rgba(215, 24, 42, 0.12), 0 0 0 1px var(--red); }
  .lang-card.selected .card-check-icon { transform: translateY(-50%) scale(1); }
  .lang-card.selected .lang-symbol { background: var(--red); color: #ffffff; border-color: var(--red); }
  .modal-footer { grid-template-columns: 1fr; gap: .85rem; margin-top: 1.2rem; padding-top: 1rem; }
  .hint-text { text-align: center; }
  .btn-confirm { width: 100%; }

  .system-status-pill,
  .brand-text-col { display: none; }
  .navbar { padding-inline: .8rem; }
  .hero-section { display: flex; min-height: 100svh; flex-direction: column; justify-content: flex-end; gap: 1.5rem; padding: 7rem 1rem 2rem; }
  .hero-copy { width: 100%; margin: 0; padding: 1.25rem; border-radius: 22px; background: rgba(244,243,239,.79); }
  .hero-kicker { margin-bottom: 1.2rem; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-stage { position: absolute; inset: 0; width: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
  .hero-stage::after { background: linear-gradient(0deg, rgba(244,243,239,.94) 0%, rgba(244,243,239,.52) 58%, rgba(244,243,239,.08) 100%); }
  .hero-building { object-position: 43% 50%; }
  .motion-anchor.hero-anchor { top: 11%; left: 18%; }
  .journey-object { z-index: 1; }
  .stage-note { display: none; }
  .stats-ribbon { position: relative; inset: auto; width: 100%; grid-template-columns: repeat(2, 1fr); transform: none; box-shadow: 7px 7px 0 var(--red); }
  .stat-box { min-height: 90px; border-bottom: 1px solid var(--line); }
  .story-intro { min-height: 62vh; grid-template-columns: 1fr; padding-top: 7rem; }
  .story-intro h2 { font-size: clamp(3.4rem, 16vw, 6rem); }
  .story-intro p { grid-column: auto; }
  .story-panel { display: flex; min-height: auto; flex-direction: column; gap: 3rem; padding: 7rem 0; }
  .panel-copy,
  .panel-left .panel-copy,
  .panel-left .panel-art { width: 100%; max-width: none; order: initial; }
  .panel-art { width: 100%; min-height: 440px; order: 2; box-shadow: 8px 8px 0 var(--silver); }
  .panel-copy { order: 1; }
  .panel-copy h2 { font-size: clamp(2.7rem, 12vw, 4.4rem); }
  .panel-index { font-size: 7rem; }
  .story-rail { inset-inline-end: 7px; }
  .finale-section { display: flex; min-height: auto; flex-direction: column; gap: 2rem; padding: 7rem 0; }
  .finale-copy h2 { font-size: clamp(4.2rem, 18vw, 7rem); }
  .finale-target { width: 100%; min-height: 430px; }
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 390px) {
  .lang-modal { padding-inline: .75rem; }
  .modal-title { font-size: 1.55rem; }
  .modal-subtitle,
  .hint-text { font-size: .8rem; }
  .lang-card { min-height: 69px; }
  .hero-title { font-size: 3.25rem; }
  .panel-art { min-height: 390px; }
  .object-dock { width: 190px; height: 190px; }
  .dock-pill { width: 230px; height: 150px; }
  .dock-shield { width: 180px; height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .journey-object,
  .story-rail { display: none !important; }
  .motion-anchor { border: 0; background: var(--red); }
  .motion-anchor::after { border-color: rgba(255,255,255,.45); }
  .reveal-on-scroll { opacity: 1; transform: none; }
  .kinetic-word { transform: none; }
}

.navbar { padding: 0; overflow: visible; }
.utility-bar { border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.45); }
.utility-inner { display: flex; width: min(1320px, 100%); min-height: 34px; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.utility-links { display: flex; align-items: center; gap: 1rem; }
.utility-link { padding: 0; border: 0; background: transparent; color: #555; font-size: .72rem; text-decoration: none; cursor: pointer; }
.utility-link:hover { color: var(--red); }
.utility-bar .lang-switch-btn { min-height: 30px; padding: .15rem .55rem; border: 0; background: transparent; font-size: .72rem; }
.navbar .nav-container { width: min(1320px, 100%); min-height: 64px; padding-inline: clamp(1rem, 4vw, 2rem); }
.navbar .nav-links { gap: clamp(.65rem, 1.6vw, 1.45rem); }
.navbar .nav-link { display: flex; min-height: 44px; align-items: center; gap: .32rem; padding: 0; border: 0; background: transparent; color: #363636; font-weight: 600; white-space: nowrap; cursor: pointer; }
.navbar .nav-link > span { color: var(--red); font-family: Arial, sans-serif; font-size: .72rem; transition: transform 200ms ease; }
.navbar .nav-link[aria-expanded="true"] { color: var(--black); }
.navbar .nav-link[aria-expanded="true"] > span { transform: rotate(180deg); }
.navbar .nav-link::after { inset-block-end: 3px; }
.icon-button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid rgba(0,0,0,.14); border-radius: 50%; background: rgba(255,255,255,.68); cursor: pointer; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.icon-button:hover { border-color: var(--black); background: white; color: var(--red); }
.mobile-menu-button { display: none; }
.basket-button { display: flex; min-height: 44px; align-items: center; gap: .42rem; padding: .4rem .65rem; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; background: rgba(255,255,255,.7); cursor: pointer; }
.basket-label { white-space: nowrap; font-size: .76rem; font-weight: 700; }
.basket-count { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--black); color: white; font-size: .68rem; }
.upload-list-button { min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--red); border-radius: 13px; background: var(--red); color: white; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 24px rgba(215,24,42,.18); transition: transform 200ms var(--ease), box-shadow 200ms ease; }
.upload-list-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(215,24,42,.28); }

.mega-menu { position: absolute; z-index: 4; top: 100%; right: 0; left: 0; padding: 0 clamp(1rem, 4vw, 2rem) 1rem; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity 200ms ease, visibility 200ms ease, transform 260ms var(--ease); }
.mega-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mega-shell { display: grid; width: min(1320px, 100%); max-height: calc(100vh - 125px); gap: clamp(1.3rem, 3vw, 3rem); margin-inline: auto; padding: clamp(1.4rem, 3vw, 2.7rem); overflow-y: auto; border: 1px solid rgba(0,0,0,.16); border-radius: 0 0 28px 28px; background: rgba(250,249,246,.96); box-shadow: 0 30px 70px rgba(0,0,0,.16); backdrop-filter: blur(24px); }
.mega-heading { display: flex; align-items: flex-start; gap: 1rem; }
.mega-heading strong { display: block; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.mega-heading p { margin: .18rem 0 0; color: #666; font-size: .82rem; }
.mega-index { color: var(--red); font-family: Arial, sans-serif; font-size: .72rem; letter-spacing: .14em; }
.menu-label { display: block; margin-bottom: .9rem; color: #777; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.products-mega { grid-template-columns: .7fr 1fr 1.15fr; }
.product-family-state { padding-inline-end: 1.5rem; border-inline-end: 1px solid var(--line); }
.product-family-state p, .muted-column p, .approved-content-state p { color: #666; font-size: .85rem; }
.support-link { padding: 0; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: var(--red); font-weight: 700; cursor: pointer; }
.product-approved-visual { position: relative; display: grid; min-height: 260px; align-content: center; overflow: hidden; padding: 1.5rem; border: 1px solid rgba(0,0,0,.14); border-radius: 20px; background: linear-gradient(145deg, rgba(188,190,192,.18), white); }
.product-approved-visual::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px); background-size: 30px 30px; content: ""; }
.approval-mark, .catalog-link { position: relative; z-index: 1; }
.approval-mark { display: flex; flex-direction: column; align-items: center; text-align: center; }
.approval-mark > span { display: block; width: 64px; height: 64px; margin-bottom: .8rem; border: 1px dashed var(--red); border-radius: 50%; background: rgba(215,24,42,.06); }
.approval-mark small { color: #777; }
.catalog-link { justify-self: center; margin-top: 1rem; padding: .6rem .9rem; border: 1px solid rgba(0,0,0,.14); border-radius: 10px; background: white; color: var(--red); font-weight: 700; text-decoration: none; }
.columns-mega { grid-template-columns: .7fr 1fr 1fr 1.05fr; }
.mega-column { display: flex; flex-direction: column; gap: .58rem; }
.mega-column a, .about-links a { color: #222; font-size: .88rem; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.mega-column a:hover, .about-links a:hover { color: var(--red); transform: translateX(-3px); }
.muted-column { padding: 1rem; border-radius: 16px; background: rgba(188,190,192,.14); }
.mega-action-card { align-self: stretch; padding: 1.25rem; border-radius: 18px; background: var(--black); color: white; }
.mega-action-card strong { font-size: 1.08rem; }
.mega-action-card p { color: #c9c9c9; font-size: .8rem; }
.mega-action-card button { min-height: 42px; padding: .45rem .8rem; border: 1px solid var(--red); border-radius: 10px; background: var(--red); color: white; font-weight: 700; cursor: pointer; }
.mega-action-card.compact { background: #292929; }
.technical-mega { grid-template-columns: .72fr repeat(3, 1fr) 1.05fr; }
.document-group { display: flex; flex-direction: column; gap: .45rem; padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.document-group strong { margin-bottom: .3rem; }
.document-group > span:not(.document-type) { color: #484848; font-size: .82rem; }
.document-type { align-self: flex-start; padding: .25rem .42rem; border-radius: 6px; background: var(--black); color: white; font-family: Arial, sans-serif; font-size: .6rem; }
.document-group .pending-item { color: #8a8a8a; }
.magazine-mega { grid-template-columns: .65fr .9fr 1.45fr; }
.approved-content-state { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem; border: 1px dashed rgba(0,0,0,.22); border-radius: 18px; }
.approved-content-state .menu-label { grid-column: 1 / -1; margin: 0; }
.empty-content-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--silver), #eee); }
.approved-content-state button { padding: .55rem .8rem; border: 1px solid rgba(0,0,0,.14); border-radius: 9px; background: white; }
.about-mega { grid-template-columns: .62fr 1fr 1.25fr; }
.about-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-content: start; gap: .65rem 1.2rem; }
.factory-tour-card { position: relative; min-height: 260px; overflow: hidden; border-radius: 20px; }
.factory-tour-card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.08)); content: ""; }
.factory-tour-card img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.factory-tour-card > div { position: absolute; z-index: 1; inset: auto 1.2rem 1.2rem; display: flex; flex-direction: column; color: white; }
.factory-tour-card span { color: #ddd; font-family: Arial, sans-serif; font-size: .65rem; letter-spacing: .12em; }
.factory-tour-card strong { font-size: 1.25rem; }
.factory-tour-card small { color: #ddd; }
.factory-tour-card button { align-self: flex-start; margin-top: .7rem; padding: .5rem .75rem; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; background: rgba(255,255,255,.15); color: white; }
.nav-scrim { position: fixed; z-index: 3; top: 100px; right: 0; bottom: 0; left: 0; display: none; border: 0; background: rgba(0,0,0,.18); backdrop-filter: blur(3px); }
.navbar.menu-open .nav-scrim { display: block; }

.ui-overlay { position: fixed; z-index: 900; inset: 0; display: grid; place-items: start center; overflow-y: auto; padding: max(5rem, 9vh) 1rem 2rem; background: rgba(244,243,239,.72); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(18px); transition: opacity 220ms ease, visibility 220ms ease; }
.ui-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.command-panel, .form-panel { width: min(880px, 100%); padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid rgba(0,0,0,.18); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 28px 80px rgba(0,0,0,.18); }
.form-panel { width: min(720px, 100%); }
.narrow-panel { width: min(560px, 100%); }
.command-panel h2, .form-panel h2, .side-drawer h2 { margin: .7rem 0 .3rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.form-panel > p { margin: 0 0 1.2rem; color: #666; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; color: #777; font-family: Arial, sans-serif; font-size: .68rem; letter-spacing: .12em; direction: ltr; }
.panel-close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(0,0,0,.16); border-radius: 50%; background: white; cursor: pointer; }
.search-field { display: flex; min-height: 62px; align-items: center; gap: .8rem; margin-top: 1.5rem; padding: 0 1rem; border: 1px solid var(--black); border-radius: 16px; background: white; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.search-groups { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-top: 1.2rem; }
.search-groups > div { min-height: 130px; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: #fafafa; }
.search-groups span { color: var(--red); font-weight: 700; }
.search-groups p { color: #777; font-size: .78rem; }
.side-drawer { position: fixed; z-index: 920; top: 0; bottom: 0; left: 0; display: flex; width: min(440px, 94vw); flex-direction: column; padding: 1.5rem; background: var(--paper-strong); box-shadow: 20px 0 70px rgba(0,0,0,.2); visibility: hidden; transform: translateX(-105%); transition: transform 300ms var(--ease), visibility 300ms ease; }
.side-drawer.is-open { visibility: visible; transform: translateX(0); }
.drawer-scrim { position: fixed; z-index: 910; inset: 0; border: 0; background: rgba(0,0,0,.28); opacity: 0; visibility: hidden; cursor: pointer; backdrop-filter: blur(4px); transition: opacity 220ms ease, visibility 220ms ease; }
body.drawer-open .drawer-scrim { opacity: 1; visibility: visible; }
.basket-empty { display: grid; flex: 1; place-items: center; align-content: center; text-align: center; }
.basket-empty > span { color: rgba(0,0,0,.08); font-family: Arial, sans-serif; font-size: 8rem; font-weight: 800; line-height: 1; }
.basket-empty p { max-width: 320px; color: #666; }
.drawer-actions { display: grid; gap: .7rem; }
.drawer-actions .btn-primary, .drawer-actions .btn-secondary { width: 100%; }
.file-drop { display: grid; min-height: 150px; place-items: center; align-content: center; padding: 1rem; border: 1px dashed rgba(0,0,0,.32); border-radius: 18px; background: #fafafa; text-align: center; cursor: pointer; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop svg { color: var(--red); }
.file-drop span { color: #777; font-size: .78rem; }
.selected-files { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.selected-files span { padding: .3rem .55rem; border-radius: 999px; background: rgba(188,190,192,.22); font-size: .72rem; direction: ltr; }
.field-label { display: grid; gap: .4rem; margin-top: 1rem; font-size: .82rem; font-weight: 700; }
.field-label input, .field-label textarea { width: 100%; padding: .75rem .85rem; border: 1px solid rgba(0,0,0,.2); border-radius: 12px; background: white; outline: none; }
.field-label input:focus, .field-label textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,24,42,.1); }
.form-panel form > .btn-primary { width: 100%; margin-top: 1rem; }
.form-status { min-height: 1.5rem; margin: .7rem 0 0; color: #555; font-size: .8rem; }
body.ui-panel-open { overflow: hidden; }
body.ui-panel-open .journey-object { opacity: 0; }

@media (max-width: 1180px) {
  .basket-label { display: none; }
  .navbar .nav-links { gap: .6rem; }
  .navbar .nav-link { font-size: .78rem; }
  .brand-text-col { display: none; }
  .technical-mega { grid-template-columns: repeat(2,1fr); }
  .technical-mega .mega-heading { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .mobile-menu-button { display: grid; order: 3; }
  .primary-nav { position: absolute; z-index: 5; top: 100%; right: 1rem; left: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 0 0 18px 18px; background: rgba(250,249,246,.98); box-shadow: 0 20px 50px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 200ms ease, visibility 200ms ease, transform 220ms var(--ease); }
  .navbar.mobile-open .primary-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .navbar.menu-open .primary-nav { opacity: 0; visibility: hidden; pointer-events: none; }
  .navbar .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: .1rem; }
  .navbar .nav-link { width: 100%; justify-content: space-between; padding: 0 .65rem; }
  .navbar .nav-link::after { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .products-mega, .columns-mega, .magazine-mega, .about-mega { grid-template-columns: 1fr 1fr; }
  .mega-heading { grid-column: 1 / -1; }
  .mega-action-card, .product-approved-visual, .factory-tour-card, .approved-content-state { min-height: 220px; }
}

@media (max-width: 680px) {
  .utility-inner { min-height: 32px; padding-inline: .75rem; }
  .utility-links .utility-link:last-child { display: none; }
  .navbar .nav-container { min-height: 58px; padding-inline: .75rem; }
  .brand-logo-icon { width: 40px; height: 40px; }
  .upload-list-button { width: 44px; padding: 0; overflow: hidden; color: transparent; }
  .upload-list-button::before { color: white; content: "+"; font-family: Arial, sans-serif; font-size: 1.3rem; }
  .nav-actions { gap: .35rem; }
  .nav-scrim { top: 92px; }
  .mega-menu { padding: 0 .5rem .5rem; }
  .mega-shell { max-height: calc(100vh - 92px); grid-template-columns: 1fr; gap: 1.4rem; padding: 1.2rem; border-radius: 0 0 20px 20px; }
  .mega-heading, .technical-mega .mega-heading { grid-column: auto; }
  .product-family-state { padding: 0 0 1.2rem; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .about-links { grid-template-columns: 1fr; }
  .search-groups { grid-template-columns: 1fr; }
  .approved-content-state { grid-template-columns: 44px 1fr; }
  .approved-content-state button { grid-column: 1 / -1; }
  .ui-overlay { padding: 1rem .65rem; align-items: start; }
  .command-panel, .form-panel { border-radius: 20px; padding: 1.2rem; }
}
