@font-face {
  font-family: 'Bahij TheSansArabic';
  src: url('font/Bahij TheSansArabic/Bahij TheSansArabic-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Bahij TheSansArabic';
  src: url('font/Bahij TheSansArabic/Bahij TheSansArabic-Plain.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Bahij TheSansArabic';
  src: url('font/Bahij TheSansArabic/Bahij TheSansArabic-SemiBold.ttf') format('truetype');
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bahij TheSansArabic';
  src: url('font/Bahij TheSansArabic/Bahij TheSansArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bahij TheSansArabic';
  src: url('font/Bahij TheSansArabic/Bahij TheSansArabic-ExtraBold.ttf') format('truetype');
  font-weight: 800 900;
  font-display: swap;
}
:root {
  --teal: #6fb9a5;
  --ink: #042725;
  --ink2: #073835;
  --text: #042725;
  --muted: #b5c6bd;
  --line: rgba(231, 193, 116, 0.72);
  --sand: #f6ecd6;
  --white: #f6ecd6;
  --gold: #e4bd70;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: manipulation;
}
body {
  position: relative;
  background: radial-gradient(circle at 52% -18%, #0a4a43 0%, var(--ink) 52%, #021d1d 100%);
  color: var(--white);
  font-family: 'Bahij TheSansArabic', 'Segoe UI', Tahoma, sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 18px,
    rgba(226, 191, 116, 0.075) 19px 20px,
    transparent 21px 42px
  );
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 76%);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 86px 5vw 22px;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.screen.off {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}
body.lang-switching [data-i18n],
body.lang-switching [data-i18n-alt],
body.lang-switching [data-i18n-placeholder],
body.lang-switching [data-i18n-aria] {
  opacity: 0.25;
  transform: translateY(4px);
}
[data-i18n],
[data-i18n-alt],
[data-i18n-placeholder],
[data-i18n-aria] {
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.lang-picker {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 50%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 0;
}
.lang-btn {
  padding: 12px 22px;
  border: 1px solid rgba(111, 185, 165, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.lang-btn:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}
.lang-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}
.fullscreen-btn {
  position: fixed;
  z-index: 21;
  top: 12px;
  left: 5vw;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 185, 165, 0.45);
  border-radius: 50%;
  background: rgba(4, 39, 37, 0.72);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.fullscreen-btn:hover {
  background: var(--ink2);
  border-color: var(--teal);
  transform: scale(1.05);
}
.fullscreen-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
/* attract */
#attract {
  align-items: center;
  justify-content: center;
  text-align: center;
}
html::before {
  content: '';
  position: fixed;
  inset: -20px;
  z-index: -3;
  pointer-events: none;
  background: var(--ink) url(../media/homecover.jpg) center/cover no-repeat;
  filter: blur(5px) saturate(1.1);
  transform: scale(1.03);
}
html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(7, 56, 53, 0.58), rgba(4, 39, 37, 0.82) 85%);
}
#attract > * {
  position: relative;
  z-index: 1;
}
#attract h1 {
  font-size: clamp(28px, 4.4vw, 58px);
  font-weight: 700;
  margin: 34px 0 14px;
  white-space: nowrap;
  line-height: 1.3;
}
#attract p {
  position: relative;
  width: 0;
  min-width: 100%;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.8;
  margin: 0;
  padding-top: 18px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 94vw;
  margin-bottom: 40px;
}
#attract p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%) scaleX(0);
  animation: lineDraw 1s 0.9s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lineDraw {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}
.touch {
  padding: 20px 56px;
  border-radius: 60px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 189, 112, 0.55);
  }
  70% {
    box-shadow: 0 0 0 28px rgba(228, 189, 112, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 189, 112, 0);
  }
}
.brand-hero {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: clamp(140px, 15vw, 210px);
  perspective: 900px;
  cursor: pointer;
}
.brand-tilt {
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-tilt img {
  display: block;
  width: 100%;
  height: auto;
  filter: url(#logoTint);
  animation: brandFloat 6s ease-in-out infinite;
}
.brand-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%) 200% 0/250% 100%
    no-repeat;
  -webkit-mask: url(../media/logowhite.png) center/contain no-repeat;
  mask: url(../media/logowhite.png) center/contain no-repeat;
  animation:
    brandShine 2.4s ease-in-out 0.8s infinite,
    brandFloat 6s ease-in-out infinite;
}
#attract:not(.off) .brand-hero {
  animation: brandIn 1.2s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
#attract:not(.off) h1 {
  animation: brandIn 1s 0.25s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
#attract:not(.off) p {
  animation: brandIn 1s 0.4s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-hero.tap .brand-tilt {
  animation: brandPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes brandFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@keyframes brandShine {
  0% {
    background-position: 200% 0;
  }
  45%,
  100% {
    background-position: -100% 0;
  }
}
@keyframes brandPop {
  40% {
    scale: 1.08;
  }
  100% {
    scale: 1;
  }
}
/* home */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.top-logo {
  position: fixed;
  z-index: 21;
  top: 2px;
  right: 5vw;
  height: clamp(44px, 5vw, 64px);
  display: flex;
  align-items: center;
  padding: 0;
  transition: opacity 0.4s;
}
.top-logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: min(240px, 38vw);
  object-fit: contain;
}
body:has(#attract:not(.off)) .top-logo {
  opacity: 0;
  pointer-events: none;
}
.home-t {
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 700;
  margin: 0 0 4px;
}
.home-s {
  opacity: 0.7;
  font-weight: 300;
  margin: 0;
  font-size: clamp(15px, 1.8vw, 22px);
}
.grid {
  flex: 0 0 clamp(96px, 17vh, 150px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  gap: 16px;
  min-height: 0;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  text-align: right;
  background: linear-gradient(145deg, rgba(8, 63, 58, 0.95), rgba(3, 42, 40, 0.87));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  box-shadow: 0 18px 48px rgba(0, 17, 16, 0.28);
  transition:
    transform 0.25s,
    background 0.25s;
}
.tile:active {
  transform: scale(0.97);
  background: var(--line);
}
.tile b {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
}
.tile b,
.tile span {
  white-space: nowrap;
}
/* icon sits on the title row, so it never rises above the tile or covers the subtitle */
.grid .tile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: end;
  justify-content: normal;
  gap: 6px 12px;
}
.grid .tile > svg {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: clamp(34px, 5.4vh, 52px);
  height: clamp(34px, 5.4vh, 52px);
}
.grid .tile b {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.grid .tile span {
  grid-column: 1/-1;
  grid-row: 2;
}
.tile span {
  font-weight: 300;
  color: var(--muted);
  opacity: 0.9;
  font-size: clamp(13px, 1.4vw, 18px);
}
.tile svg {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 64px;
  height: 64px;
  opacity: 0.9;
}
.tile.a {
  grid-column: span 4;
  grid-row: span 1;
  background: var(--sand);
  color: var(--text);
  border-color: var(--sand);
}
.tile.a span {
  opacity: 1;
}
.tile.b {
  grid-column: span 4;
}
.tile.c {
  grid-column: span 4;
}
.tile.cta {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.tile.cta span {
  color: var(--ink);
  opacity: 1;
}
@media (max-width: 900px) {
  .screen {
    overflow: hidden;
    padding-top: 80px;
  }
  .lang-picker {
    left: calc(5vw + 54px);
    transform: none;
    max-width: calc(90vw - 210px);
  }
  html,
body {
    overflow: hidden;
  }
  .lang-picker {
    gap: 6px;
    overflow: hidden;
    justify-content: flex-start;
  }
  .lang-btn {
    padding: 11px 15px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .tile,
.tile.a,
.tile.b,
.tile.c {
    grid-column: span 1;
    min-height: 150px;
  }
  .tile.a {
    grid-column: span 2;
  }
}
/* panels */
.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.back {
  padding: 14px 28px;
  border-radius: 40px;
  background: var(--ink2);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 18px;
}
.bar h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
}
.body {
  flex: 1;
  display: flex;
  gap: 24px;
  min-height: 0;
}
.build-layout {
  flex-direction: row;
}
.build-visual {
  flex: 0 0 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.build-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.build-details .chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.build-details .chip {
  width: 100%;
}
.card {
  background: linear-gradient(145deg, rgba(8, 63, 58, 0.95), rgba(3, 42, 40, 0.87));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(0, 17, 16, 0.28);
}
.stage {
  flex: 1.6;
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
  min-height: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 14px 24px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: clamp(15px, 1.6vw, 20px);
}
.chip.on {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 700;
}
.range {
  width: 100%;
  accent-color: var(--gold);
  height: 50px;
  margin: 8px 0;
}
.stage-range {
  flex: 0 0 30px;
  width: 100%;
  height: 30px;
  margin: 0;
  writing-mode: horizontal-tb;
  direction: rtl;
  accent-color: var(--gold);
}
.nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  flex: 1;
  min-height: 0;
}
.num {
  container-type: size;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: min(2.2cqh, 8px);
  padding: 8px 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 63, 58, 0.92), rgba(3, 42, 40, 0.8));
  border: 1px solid rgba(228, 189, 112, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s,
    box-shadow 0.35s;
}
.nums.in .num {
  animation: numIn 0.7s calc(var(--i) * 0.09s) both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes numIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.num::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(228, 189, 112, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}
.num:hover,
.num:active {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}
.num:hover::before,
.num:active::before {
  opacity: 1;
}
.num .ico {
  position: relative;
  flex: none;
  width: clamp(26px, min(17cqh, 17cqw), 52px);
  height: clamp(26px, min(17cqh, 17cqw), 52px);
  padding: min(2.4cqh, 9px);
  border-radius: 50%;
  background: rgba(228, 189, 112, 0.12);
  border: 1px solid rgba(228, 189, 112, 0.4);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-sizing: content-box;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s;
}
.nums.in .ico * {
  stroke-dasharray: 80;
  animation: icoDraw 1.4s calc(0.3s + var(--i) * 0.09s) both ease-out;
}
@keyframes icoDraw {
  from {
    stroke-dashoffset: 80;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.num:hover .ico {
  transform: rotate(-8deg) scale(1.12);
  background: rgba(228, 189, 112, 0.24);
}
.num.tap .ico {
  animation: icoPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.num.tap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 38px;
  width: 20px;
  height: 20px;
  margin: -10px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: ripple 0.8s ease-out forwards;
}
@keyframes icoPop {
  40% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: none;
  }
}
@keyframes ripple {
  to {
    transform: scale(11);
    opacity: 0;
  }
}
.num b {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: clamp(22px, min(16cqh, 12cqw), 54px);
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.num b em {
  font-style: normal;
  font-size: 0.7em;
}
.num i {
  font-style: normal;
}
.num strong {
  position: relative;
  font-size: clamp(14px, min(8.5cqh, 7.5cqw), 23px);
  font-weight: 700;
}
.num span {
  position: relative;
  font-size: clamp(10px, min(6.2cqh, 5.4cqw), 15px);
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.82;
}
@media (max-width: 900px) {
  .nums {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}
#quote .body {
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .body {
    flex-direction: column;
  }
  .build-layout {
    flex-direction: column;
  }
  .build-visual {
    flex: 1 1 auto;
    min-height: 0;
  }
  .stage-range {
    flex: 0 0 auto;
    width: 100%;
    height: 34px;
  }
  .stage {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* sectors */
[hidden] {
  display: none !important;
}
.plans-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
}
.sectors,
.sector-detail {
  min-height: 0;
  min-width: 0;
}
.sector-detail {
  flex: 1;
}
.sectors {
  flex: 1;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
}
.sector {
  position: relative;
  container-type: size;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(228, 189, 112, 0.3);
  animation: numIn 0.8s calc(var(--i) * 0.12s) both cubic-bezier(0.2, 0.8, 0.2, 1);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s,
    box-shadow 0.4s;
}
.sector:hover,
.sector:active {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.35);
}
.sector .ico,
.sd-head .ico,
.item .ico {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sector .go,
.item .go {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 16px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--gold);
  border-inline-start: 3px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 0.3s;
  opacity: 0.8;
}
[dir='rtl'] .sector .go,
[dir='rtl'] .item .go {
  transform: rotate(-45deg);
}
[dir='ltr'] .sector .go,
[dir='ltr'] .item .go {
  transform: rotate(135deg);
}
.item .go {
  border-color: var(--ink2);
  bottom: 12px;
  inset-inline-end: 14px;
  width: 10px;
  height: 10px;
}
.sector.tap::after,
.item.tap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: ripple 0.8s ease-out forwards;
  pointer-events: none;
}
.sector-detail {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 20px);
  animation: numIn 0.6s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sd-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.sd-head .ico {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(228, 189, 112, 0.12);
  border: 1px solid rgba(228, 189, 112, 0.4);
  box-sizing: content-box;
}
.sd-head h3 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(22px, 2.8vw, 38px);
}
.sd-head .back {
  margin-inline-end: 6px;
}
.items {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}
.items .item {
  grid-column: span 6;
}
.items.n5 .item {
  grid-column: span 8;
}
.items.n5 .item:nth-child(4) {
  grid-column: 5/13;
}
.items.n5 .item:nth-child(5) {
  grid-column: 13/21;
}
.items.n2,
.items.n3 {
  grid-template-rows: minmax(0, 1fr);
}
.items.n2 .item {
  grid-column: span 12;
}
.items.n3 .item {
  grid-column: span 8;
}
.items.n4 .item {
  grid-column: span 12;
}
.items.n7 .item:nth-child(5) {
  grid-column: 4/10;
}
.items.n7 .item:nth-child(6) {
  grid-column: 10/16;
}
.items.n7 .item:nth-child(7) {
  grid-column: 16/22;
}
.item {
  position: relative;
  container-type: size;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(6cqh, 14px);
  padding: 10px 14px;
  text-align: center;
  border-radius: 22px;
  overflow: hidden;
  animation: numIn 0.7s calc(0.15s + var(--i) * 0.08s) both cubic-bezier(0.2, 0.8, 0.2, 1);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s,
    box-shadow 0.35s;
}
.item::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.item:hover,
.item:active {
  transform: translateY(-6px);
}
.item:hover::before,
.item:active::before {
  opacity: 1;
}
.item .ico {
  position: relative;
  flex: none;
  width: clamp(26px, min(26cqh, 24cqw), 56px);
  height: clamp(26px, min(26cqh, 24cqw), 56px);
  padding: min(5cqh, 11px);
  border-radius: 50%;
  border: 1px solid rgba(228, 189, 112, 0.4);
  box-sizing: content-box;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s;
}
.item .ico * {
  stroke-dasharray: 90;
  animation: icoDraw 1.4s calc(0.4s + var(--i) * 0.08s) both ease-out;
}
.item:hover .ico {
  transform: rotate(-8deg) scale(1.12);
}
.item.tap .ico {
  animation: icoPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.item strong {
  position: relative;
  font-size: clamp(13px, min(11cqh, 8cqw), 24px);
  font-weight: 700;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .sectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 300px;
  }
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  }
  .items .item,
.items.n2 .item,
.items.n3 .item,
.items.n4 .item,
.items.n5 .item:nth-child(n),
.items.n7 .item:nth-child(n) {
    grid-column: auto;
  }
  .items.n2,
.items.n3 {
    grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  }
  .items .item:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .num {
    opacity: 1;
    transform: none;
  }
}
/* inner sector cards: translucent white, green content */
.item {
  background: linear-gradient(145deg, rgba(246, 236, 214, 0.9), rgba(246, 236, 214, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
}
.item::before {
  background: radial-gradient(circle at 50% 0, rgba(111, 185, 165, 0.38), transparent 65%);
}
.item:hover,
.item:active {
  border-color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}
.item .ico {
  stroke: var(--ink2);
  background: rgba(7, 56, 53, 0.09);
  border-color: rgba(7, 56, 53, 0.35);
}
.item:hover .ico {
  background: rgba(7, 56, 53, 0.18);
}
.item.tap::after {
  border-color: var(--ink2);
}
/* premium stages */
.pv-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.pv-drift {
  position: absolute;
  inset: 0;
  animation: pvDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.pv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pv-next {
  pointer-events: none;
}
@keyframes pvDrift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.09) translate(-1.2%, -0.8%);
  }
}
.pv-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 42, 40, 0.45), transparent 22%);
}
.pv-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  inset-inline-start: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(3, 42, 40, 0.55);
  border: 1px solid rgba(228, 189, 112, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  direction: ltr;
}
.pv-badge b {
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--gold);
  line-height: 1;
}
.pv-badge span {
  font-size: clamp(12px, 1.2vw, 16px);
  opacity: 0.8;
}
.pv .build-details .chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pv .chip {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  line-height: 1.3;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.pv .chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.pv .chip i {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85em;
  opacity: 0.7;
  flex: none;
}
.pv .chip.on i {
  opacity: 1;
}
/* build type popup */
.choice {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}
.choice-back {
  position: absolute;
  inset: 0;
  background: rgba(2, 29, 28, 0.5);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  transition:
    opacity 0.45s ease,
    backdrop-filter 0.45s ease,
    -webkit-backdrop-filter 0.45s ease;
}
.choice.open .choice-back {
  opacity: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.choice-panel {
  position: relative;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 38px);
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(150deg, rgba(10, 74, 67, 0.88), rgba(3, 42, 40, 0.92));
  border: 1px solid rgba(228, 189, 112, 0.45);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
.choice.open .choice-panel {
  opacity: 1;
  transform: none;
}
.choice-panel h3 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 44px);
  color: var(--gold);
}
.choice-panel p {
  margin: 0 0 clamp(14px, 2.4vw, 28px);
  font-weight: 300;
  font-size: clamp(14px, 1.7vw, 21px);
  opacity: 0.85;
}
.choice-x {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(228, 189, 112, 0.5);
  transition:
    transform 0.35s,
    background 0.3s;
}
.choice-x:hover {
  background: rgba(228, 189, 112, 0.18);
  transform: rotate(90deg);
}
.choice-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
}
.choice-cards {
  display: grid;
  gap: clamp(12px, 2vw, 26px);
  min-height: 0;
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  text-align: center;
  background: rgba(246, 236, 214, 0.08);
  border: 1px solid rgba(246, 236, 214, 0.28);
  opacity: 0;
  transform: translateY(34px) scale(0.95);
  transition:
    opacity 0.6s calc(0.2s + var(--i) * 0.12s) ease,
    transform 0.7s calc(0.2s + var(--i) * 0.12s) cubic-bezier(0.2, 0.9, 0.25, 1.05),
    border-color 0.3s,
    box-shadow 0.4s;
}
.choice.open .choice-card,
.sector-detail .choice-card {
  opacity: 1;
  transform: none;
}
.choice.open .choice-card:hover,
.sector-detail .choice-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.4);
  transition-delay: 0s, 0s, 0s, 0s;
}
.choice.open .choice-card:active,
.sector-detail .choice-card:active,
.choice-card.picked {
  transform: scale(0.97) !important;
  transition-duration: 0.2s !important;
  transition-delay: 0s !important;
}
.choice-card.picked {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(228, 189, 112, 0.35);
}
.cc-img {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink);
}
.cc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.choice-card:hover .cc-img img {
  transform: scale(1.1);
}
.cc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 42, 40, 0.6));
}
.cc-tag {
  position: absolute;
  z-index: 1;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: linear-gradient(135deg, #f3d58f, #d7a94a);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.cc-tag svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
}
.cc-txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(12px, 2vw, 22px) 18px clamp(16px, 2.4vw, 28px);
}
.cc-txt b {
  font-size: clamp(18px, 2.4vw, 30px);
}
.cc-txt small {
  font-size: clamp(12px, 1.35vw, 17px);
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.6;
}
.choice-card.premium {
  border-color: rgba(228, 189, 112, 0.55);
}
.choice-card .go {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 16px;
  width: 11px;
  height: 11px;
  border-top: 3px solid var(--gold);
  border-inline-start: 3px solid var(--gold);
}
[dir='rtl'] .choice-card .go {
  transform: rotate(-45deg);
}
[dir='ltr'] .choice-card .go {
  transform: rotate(135deg);
}
@media (max-width: 700px) {
  .choice-cards {
    grid-template-columns: 1fr;
  }
  .cc-img {
    aspect-ratio: 21/8;
  }
}
@media (max-height: 560px) {
  .cc-img {
    aspect-ratio: 21/8;
  }
  .choice-panel p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .choice-panel,
.choice-card {
    opacity: 1;
    transform: none;
  }
  .choice:not(.open) {
    display: none;
  }
}
@media (max-width: 900px) {
  .pv-frame {
    min-height: 220px;
  }
  .pv .build-details .chips {
    grid-template-columns: 1fr 1fr;
  }
}
/* three-way choice */
.choice-panel {
  width: min(1180px, 95vw);
}
.choice-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice-card.vip {
  border-color: rgba(228, 189, 112, 0.85);
}
.choice-card.vip .cc-tag {
  padding: 6px 14px;
}
@media (max-width: 900px) {
  .choice-cards {
    grid-template-columns: 1fr;
  }
  .cc-img {
    aspect-ratio: 21/8;
  }
  .choice-panel {
    overflow-y: auto;
  }
}
/* autoplay control */
.scrub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  flex: none;
}
.scrub-row .stage-range {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.play-btn {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(3, 42, 40, 0.55);
  border: 1px solid rgba(228, 189, 112, 0.4);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s,
    border-color 0.3s;
}
.play-btn:hover {
  transform: scale(1.08);
  border-color: var(--gold);
  background: rgba(228, 189, 112, 0.16);
}
.play-btn:active {
  transform: scale(0.94);
}
.play-btn .pr {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.play-btn .pr circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: calc(132px * (1 - var(--t, 0)));
  opacity: 0;
  transition: opacity 0.3s;
}
.play-btn.on .pr circle {
  opacity: 1;
}
.play-btn .pi {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  transition: transform 0.3s;
}
.play-btn .pl {
  margin-inline-start: 3px;
}
.play-btn .pa {
  display: none;
}
.play-btn.on .pl {
  display: none;
}
.play-btn.on .pa {
  display: block;
}
.play-btn.on {
  background: rgba(228, 189, 112, 0.14);
  border-color: rgba(228, 189, 112, 0.7);
}
.build-details .chip {
  font-size: clamp(13px, 1.35vw, 17px);
  padding: 12px 10px;
}
.tour-badge {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(228, 189, 112, 0.55);
  background: rgba(3, 42, 40, 0.55);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 700;
  transition:
    background 0.3s,
    transform 0.3s;
}
.tour-badge:hover {
  background: rgba(228, 189, 112, 0.18);
  transform: translateY(-2px);
}
.tour-badge::after {
  content: '';
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--gold);
  border-inline-end: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}
/* brand cursor */
*,
*::before,
*::after {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M4 2v17l4.5-4 3 6.5 2.6-1.2-3-6.3H17z' fill='%23e4bd70' stroke='%23042725' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E")
      3 2,
    auto !important;
}
:is(a,
button,
label,
select,
[onclick],
[role='button'],
input[type='range'],
.chip,
.tile),
:is(a,
button,
label,
select,
[onclick],
[role='button'],
input[type='range'],
.chip,
.tile) * {
  cursor:
    url(../media/cursor.png) 20 20,
    pointer !important;
}
input[type='text'],
input[type='tel'],
input[type='number'],
input:not([type]) {
  cursor: text !important;
}
/* sector photo cards */
.sector {
  background: var(--ink);
  padding: 0;
}
.sector-photo {
  position: absolute;
  top: -20px;
  left: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 40px);
  object-fit: cover;
  object-position: 50% 25%;
  transform-origin: 50% 50%;
  transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px)) scale(1);
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.sector:hover .sector-photo {
  transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px)) scale(1.08);
}
.sector::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 42, 40, 0.4) 72%, rgba(2, 29, 28, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(246, 236, 214, 0.12),
    inset 0 -80px 80px -60px rgba(228, 189, 112, 0);
  transition: box-shadow 0.5s;
}
.sector:hover::before {
  box-shadow:
    inset 0 0 0 1px rgba(228, 189, 112, 0.5),
    inset 0 -90px 90px -60px rgba(228, 189, 112, 0.22);
}
.sector .go {
  z-index: 2;
}
.sector-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(228, 189, 112, 0.38), transparent 46%);
  mix-blend-mode: screen;
  transition: opacity 0.4s;
}
.sector:hover .sector-glow,
.sector:active .sector-glow {
  opacity: 1;
}
.sector-cap {
  position: absolute;
  z-index: 2;
  inset-inline: clamp(16px, 6cqw, 28px);
  bottom: clamp(16px, 5cqh, 30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: start;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sector:hover .sector-cap {
  transform: translateY(-8px);
}
.sector-cap em {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(12px, min(3.2cqh, 5cqw), 17px);
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.9;
}
.sector-cap .bar {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(228, 189, 112, 0.15));
  transform-origin: left center;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[dir='rtl'] .sector-cap .bar {
  transform-origin: right center;
  background: linear-gradient(270deg, var(--gold), rgba(228, 189, 112, 0.15));
}
.sector:hover .sector-cap .bar {
  width: 96px;
}
.sector-cap b {
  font-size: clamp(20px, min(6.4cqh, 9cqw), 44px);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.sectors .sector {
  animation: numIn 0.8s calc(var(--i) * 0.12s) both cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
  width: 100%;
}
.sectors .sector .sector-cap em,
.sectors .sector .sector-cap b {
  animation: capRise 0.8s calc(0.35s + var(--i) * 0.12s) both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sectors .sector .sector-cap .bar {
  animation: capLine 0.9s calc(0.5s + var(--i) * 0.12s) both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes capRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes capLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/* blueprints */
.bp-layout {
  gap: 16px;
}
.bp-viewer {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  display: flex;
}
.bp-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  touch-action: none;
  background:
    linear-gradient(rgba(111, 185, 165, 0.07) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg, rgba(111, 185, 165, 0.07) 1px, transparent 1px) 0 0/32px 32px,
    radial-gradient(circle at 50% 40%, #0b4a43, #052f2c);
}
.bp-stage.grab {
  cursor: grabbing;
}
#bpCanvas {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  transition: opacity 0.25s;
}
#bpBase {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  visibility: hidden;
}
.bp-render {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) 0 0/40% 100% no-repeat;
  transition: opacity 0.3s;
}
.bp-render.on {
  opacity: 1;
  animation: bpSweep 1.1s linear infinite;
}
@keyframes bpSweep {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}
.bp-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(11, 74, 67, 0.96), rgba(5, 47, 44, 0.98));
  transition: opacity 0.6s;
}
.bp-loading.done {
  opacity: 0;
  pointer-events: none;
}
.bp-loading b {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 500;
}
.bp-loading span {
  color: var(--gold);
  font-weight: 700;
  min-height: 1.2em;
}
.bp-loading .spin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(228, 189, 112, 0.25);
  border-top-color: var(--gold);
  animation: bpSpin 1s linear infinite;
}
.bp-loading.error .spin {
  animation: none;
  border-color: rgba(228, 189, 112, 0.35);
  border-top-color: rgba(228, 189, 112, 0.35);
}
@keyframes bpSpin {
  to {
    transform: rotate(360deg);
  }
}
.bp-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 12px);
  max-width: 90%;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(3, 42, 40, 0.7);
  border: 1px solid rgba(228, 189, 112, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(12px, 1.2vw, 15px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.bp-hint.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bp-mini {
  position: absolute;
  z-index: 3;
  top: 14px;
  inset-inline-end: 14px;
  width: 190px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(3, 42, 40, 0.72);
  border: 1px solid rgba(228, 189, 112, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.bp-mini.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bp-mini canvas {
  display: block;
  width: 100%;
  border-radius: 7px;
}
.bp-mini .mb {
  position: relative;
}
.bp-mini i {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: rgba(228, 189, 112, 0.18);
  box-shadow: 0 0 0 1px rgba(3, 42, 40, 0.6);
  pointer-events: none;
}
.bp-tools {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  inset-inline-end: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-tools button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 42, 40, 0.72);
  border: 1px solid rgba(228, 189, 112, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s,
    background 0.25s;
}
.bp-tools button:hover {
  background: rgba(228, 189, 112, 0.2);
  transform: scale(1.08);
}
.bp-tools button:active {
  transform: scale(0.92);
}
.bp-tools svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-side {
  flex: 0 0 clamp(230px, 23vw, 310px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.bp-side h3 {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 22px);
  color: var(--gold);
}
.bp-areas {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline-end: 4px;
  touch-action: pan-y;
}
.bp-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(246, 236, 214, 0.18);
  background: rgba(246, 236, 214, 0.05);
  text-align: start;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 500;
  line-height: 1.35;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s,
    color 0.3s;
}
.bp-area em {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(228, 189, 112, 0.5);
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: var(--gold);
  transition:
    background 0.3s,
    color 0.3s;
}
.bp-area:hover {
  transform: translateX(0) translateY(-2px);
  border-color: var(--gold);
}
.bp-area.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.bp-area.on em {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold);
}
.bp-desc {
  flex: none;
  margin: 0;
  min-height: 3.4em;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 300;
  line-height: 1.75;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .bp-layout {
    flex-direction: column;
  }
  .bp-viewer {
    flex: 1 1 0;
  }
  .bp-side {
    flex: 0 0 auto;
    max-height: 36%;
  }
  .bp-mini {
    width: 120px;
  }
}
/* camp details */

@keyframes infoSwap {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
@media (min-width: 901px) {
  .choice-cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sd-desc {
  flex: none;
  margin: calc(-1 * clamp(2px, 0.8vw, 10px)) 0 0;
  font-weight: 300;
  opacity: 0.85;
  font-size: clamp(14px, 1.6vw, 20px);
}
/* camp cards inside the sector pages: they share the popup's look and fill the page height */
.sector-detail .choice-cards {
  flex: 1;
  grid-template-rows: minmax(0, 1fr);
}
.sector-detail .choice-card {
  height: 100%;
}
.sector-detail .cc-img {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.sector-detail .cc-txt {
  flex: none;
}
@media (max-width: 900px) {
  .sector-detail .choice-cards {
    grid-template-rows: none;
    overflow-y: auto;
  }
  .sector-detail .choice-card {
    height: auto;
  }
  .sector-detail .cc-img {
    flex: none;
    aspect-ratio: 21/8;
  }
}
/* camp page: the two home-style tiles fill the page; short laptop screens get a tighter home */
.hub {
  flex: 1;
  grid-template-rows: minmax(0, 1fr);
}
.hub .tile {
  grid-column: span 6;
}
@media (max-height: 700px) {
  .home-t {
    font-size: clamp(22px, 3vw, 34px);
  }
  .home-s {
    margin-bottom: 10px;
  }
  .grid:not(.hub) .tile {
    padding: 12px 20px;
  }
  .grid:not(.hub) .tile b {
    font-size: clamp(17px, 2vw, 26px);
  }
}
/* camp page tiles: a large self-drawing icon, centred text and a few touches of motion */
.hub .tile {
  container-type: size;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(2.5cqh, 12px);
  padding: clamp(14px, 4cqh, 34px);
  text-align: center;
  animation: numIn 0.7s backwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hub .tile:nth-child(2) {
  animation-delay: 0.14s;
}
.hub .tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 38%, rgba(228, 189, 112, 0.24), transparent 52%),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(228, 189, 112, 0.05) 22px 23px);
}
.hub .tile.a::before {
  background:
    radial-gradient(circle at 50% 38%, rgba(7, 56, 53, 0.12), transparent 52%),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(7, 56, 53, 0.05) 22px 23px);
}
.hub .tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  translate: -120% 0;
  transition: translate 0.9s ease;
}
.hub .tile:hover::after {
  translate: 120% 0;
}
.hub .tile > svg {
  position: static;
  flex: none;
  width: clamp(64px, min(44cqh, 40cqw), 190px);
  height: clamp(64px, min(44cqh, 40cqw), 190px);
  padding: min(5cqh, 22px);
  box-sizing: content-box;
  border-radius: 50%;
  border: 1px solid rgba(228, 189, 112, 0.4);
  background: rgba(228, 189, 112, 0.08);
  animation: hubFloat 5s ease-in-out infinite;
  transition:
    scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    rotate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hub .tile.a > svg {
  border-color: rgba(7, 56, 53, 0.35);
  background: rgba(7, 56, 53, 0.07);
}
.hub .tile:hover > svg {
  scale: 1.08;
  rotate: -5deg;
}
.hub .tile > svg * {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: hubDraw 1.5s 0.35s forwards ease-out;
}
.hub .tile b,
.hub .tile span {
  max-width: 100%;
}
.hub .tile b {
  font-size: clamp(22px, min(11cqh, 6.4cqw), 50px);
}
.hub .tile b::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin: min(2cqh, 10px) auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hub .tile:hover b::after {
  width: 100px;
}
.hub .tile span {
  font-size: clamp(14px, min(5.4cqh, 3.2cqw), 22px);
}
@keyframes hubFloat {
  50% {
    translate: 0 -8px;
  }
}
@keyframes hubDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hub .tile > svg {
    animation: none;
  }
  .hub .tile > svg * {
    animation: none;
    stroke-dashoffset: 0;
  }
}
/* one header for the sector pages: back button + clickable trail, the page title sits below */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 700;
}
.crumbs button {
  padding: 4px 2px;
  opacity: 0.72;
  transition:
    opacity 0.3s,
    color 0.3s;
}
.crumbs button:hover {
  opacity: 1;
  color: var(--gold);
}
.crumbs button:last-of-type {
  opacity: 1;
}
.crumbs i {
  flex: none;
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--gold);
  border-inline-start: 3px solid var(--gold);
  opacity: 0.8;
}
[dir='rtl'] .crumbs i {
  transform: rotate(-45deg);
}
[dir='ltr'] .crumbs i {
  transform: rotate(135deg);
}
/* tour: photo carousel (stage) + titles (rail) */
#tour {
  --flip: 1;
}
html[dir='rtl'] #tour {
  --flip: -1;
}
.tr-layout {
  gap: clamp(14px, 1.8vw, 24px);
}
.tr-stage {
  flex: 1 1 0;
  min-width: 0;
  --dir: -1;
  --dx: 0px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(12px, 1.4vw, 20px);
  overflow: hidden;
}
.tr-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.tr-track {
  position: absolute;
  inset: 0;
}
.tr-slide {
  position: absolute;
  inset-block: 0;
  inset-inline: 17%;
  width: 66%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 17, 16, 0.4);
  transform: translateX(calc(var(--o) * var(--dir) * 98% + var(--dx))) scale(var(--s, 1));
  transition:
    transform 0.6s cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 0.5s ease;
  will-change: transform;
}
.tr-slide:not(.front) {
  cursor: pointer;
}
.tr-stage.drag .tr-slide {
  transition: opacity 0.5s ease;
}
.tr-stage.swap .tr-track {
  animation: trIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes trIn {
  from {
    opacity: 0;
    translate: calc(var(--dir) * -24px) 0;
  }
}
.tr-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}
.tr-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tr-count {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tr-dots {
  display: flex;
  gap: 8px;
}
.tr-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 10px;
  background: rgba(246, 236, 214, 0.3);
  transition:
    width 0.35s,
    background 0.35s;
}
.tr-dot.on {
  width: 30px;
  background: var(--gold);
}
.tr-num {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  color: var(--gold);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.tr-arrow {
  flex: none;
  width: clamp(48px, 4.6vw, 64px);
  height: clamp(48px, 4.6vw, 64px);
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  box-shadow: 0 8px 20px rgba(0, 17, 16, 0.35);
  transition:
    transform 0.25s,
    opacity 0.3s;
}
.tr-arrow svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(var(--flip));
}
.tr-arrow:active:not(:disabled) {
  transform: scale(0.92);
}
.tr-arrow:disabled {
  opacity: 0.22;
  box-shadow: none;
}
.tr-stage.single .tr-arrow,
.tr-stage.single .tr-dots {
  visibility: hidden;
}
.tr-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  font-size: clamp(12px, 1.15vw, 15px);
  color: var(--muted);
  transition: opacity 0.4s;
}
.tr-hint.off {
  opacity: 0;
}
.tr-hint i {
  position: relative;
  flex: none;
  width: 36px;
  height: 18px;
  border-radius: 18px;
  border: 1.5px solid var(--gold);
}
.tr-hint i::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  animation: trNudge 1.7s ease-in-out infinite;
}
@keyframes trNudge {
  50% {
    translate: calc(var(--dir) * 15px) 0;
  }
}
.tr-cap {
  display: none;
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--gold);
}
.tr-rail {
  flex: 0 0 clamp(290px, 33%, 470px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(10px, 1.2vw, 16px);
  overflow-y: auto;
}
.tr-item {
  flex: 1 1 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px clamp(12px, 1.3vw, 18px);
  border-radius: 18px;
  border: 1px solid rgba(246, 236, 214, 0.2);
  background: rgba(246, 236, 214, 0.05);
  text-align: start;
  color: inherit;
  overflow: hidden;
  transition:
    flex-grow 0.5s cubic-bezier(0.22, 0.8, 0.2, 1),
    min-height 0.5s cubic-bezier(0.22, 0.8, 0.2, 1),
    background 0.35s,
    color 0.35s,
    border-color 0.35s;
  animation: infoSwap 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 0.05s);
}
.tr-item:hover:not(.on) {
  border-color: var(--gold);
  background: rgba(228, 189, 112, 0.12);
}
.tr-item.on {
  flex-grow: 2.3;
  min-height: 108px;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.tr-item em {
  flex: none;
  min-width: 2.1ch;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--gold);
  direction: ltr;
  transition: color 0.35s;
}
.tr-item.on em {
  color: rgba(4, 39, 37, 0.55);
}
.tr-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tr-t b {
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.35;
}
.tr-d {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 0.4s;
}
.tr-d small {
  min-height: 0;
  overflow: hidden;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.6;
  font-weight: 400;
}
.tr-item.on .tr-d {
  grid-template-rows: 1fr;
  opacity: 0.85;
  transition-delay: 0.1s;
}
.tr-go {
  flex: none;
  width: 11px;
  height: 11px;
  border-bottom: 2.5px solid var(--gold);
  border-right: 2.5px solid var(--gold);
  transform: rotate(calc(45deg + var(--flip) * 90deg));
  transition: border-color 0.35s;
}
.tr-item.on .tr-go {
  border-color: var(--ink);
}
@media (max-width: 900px) {
  .tr-layout {
    flex-direction: column;
  }
  .tr-stage {
    flex: 1 1 auto;
    min-height: 340px;
  }
  .tr-slide {
    inset-inline: 8%;
    width: 84%;
    transform: translateX(calc(var(--o) * var(--dir) * 104% + var(--dx))) scale(var(--s, 1));
  }
  .tr-cap {
    display: block;
  }
  .tr-rail {
    flex: 0 0 auto;
    flex-direction: row;
    overflow: auto hidden;
    scroll-snap-type: x proximity;
  }
  .tr-item,
.tr-item.on {
    flex: none;
    min-height: 0;
    padding-block: 12px;
    scroll-snap-align: center;
  }
  .tr-d,
.tr-go {
    display: none;
  }
}
/* featured item (Hajj works): gold card with a soft pulse */
.item.feat {
  background: linear-gradient(145deg, #f1cf8a, #d9a94f);
  border-color: #f6e2b0;
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(246, 226, 176, 0.6),
    0 16px 40px rgba(228, 189, 112, 0.28);
}
.item.feat::before {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
}
.item.feat .ico {
  stroke: var(--ink);
  border-color: rgba(4, 39, 37, 0.45);
}
.item.feat .go {
  border-color: var(--ink);
}
.item.feat strong {
  font-size: clamp(15px, min(13cqh, 9cqw), 28px);
}
/* tour carousel: depth, mouse drift, zoom button */
.tr-view {
  --px: 0;
  --py: 0;
}
.tr-slide {
  filter: blur(2.5px) brightness(0.8);
  transition:
    transform 0.65s cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 0.5s ease,
    filter 0.5s ease,
    translate 0.35s ease-out;
}
.tr-slide.front {
  filter: none;
  cursor: zoom-in;
  translate: calc(var(--px) * -12px) calc(var(--py) * -8px);
}
.tr-stage.drag .tr-slide {
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}
.tr-zoom {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  transition:
    background 0.25s,
    scale 0.25s;
}
.tr-zoom:hover {
  background: rgba(228, 189, 112, 0.2);
  scale: 1.08;
}
.tr-zoom svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* tour viewer (lightbox) */
.lb {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.lb.on {
  opacity: 1;
  visibility: visible;
}
.lb-back {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lb-box {
  position: relative;
  width: min(1400px, 96vw);
  height: 96vh;
  height: 96dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(0.95) translateY(14px);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lb.on .lb-box {
  transform: none;
}
.lb-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lb-head h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 28px);
  color: var(--gold);
}
.lb-x,
.lb-btn {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(3, 42, 40, 0.85);
  border: 1px solid rgba(228, 189, 112, 0.55);
  transition:
    background 0.25s,
    scale 0.25s,
    opacity 0.3s;
}
.lb-x {
  width: 50px;
  height: 50px;
}
.lb-btn {
  width: 52px;
  height: 52px;
}
.lb-x:hover,
.lb-btn:hover:not(:disabled) {
  background: rgba(228, 189, 112, 0.25);
  scale: 1.08;
}
.lb-btn:disabled {
  opacity: 0.25;
}
.lb-x svg,
.lb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[dir='rtl'] .lb-btn:not(.z) svg {
  scale: -1 1;
}
.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(228, 189, 112, 0.4);
  background: rgba(0, 0, 0, 0.35);
  touch-action: none;
  cursor: zoom-in;
}
.lb-stage.zoomed {
  cursor: grab;
}
.lb-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-stage img.in {
  animation: lbIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes lbIn {
  from {
    opacity: 0;
    translate: var(--from, 0px) 0;
  }
}
.lb-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lb-num,
.lb-pct {
  min-width: 64px;
  text-align: center;
  font-weight: 700;
  color: var(--gold);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.lb-pct {
  padding: 10px 6px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid var(--line);
}
.lb-sep {
  width: 1px;
  height: 30px;
  margin-inline: 10px;
  background: rgba(228, 189, 112, 0.4);
}
@media (max-width: 900px) {
  .lb-sep {
    display: none;
  }
  .lb-bar {
    gap: 8px;
  }
  .lb-btn {
    width: 46px;
    height: 46px;
  }
}
/* ===================== phones & tablets =====================
   The project always fits the screen: nothing scrolls, every page shares the height it has.
   Everything below sits inside max-width queries, so laptops and desktops (wider than 1024px) are not affected. */

/* header: logo (right),
full-screen button (left),
languages on their own scrollable row */
@media (max-width: 1024px) {
  .screen {
    padding-top: 104px;
  }
  .lang-picker {
    top: 56px;
    left: 5vw;
    right: 5vw;
    transform: none;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    gap: 8px;
    padding: 2px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lang-picker::-webkit-scrollbar {
    display: none;
  }
  .lang-btn {
    flex: none;
    scroll-snap-align: center;
    padding: 9px 18px;
    font-size: 14px;
  }
  .lang-btn:first-child {
    margin-inline-start: auto;
  }
  .lang-btn:last-child {
    margin-inline-end: auto;
  }
}
@media (max-width: 900px) {
  html,
body {
    height: 100%;
  }
  .top-logo {
    right: 4vw;
    height: 44px;
  }
  .fullscreen-btn {
    left: 4vw;
    top: 10px;
    width: 40px;
    height: 40px;
  }
  .screen {
    position: fixed;
    inset: 0;
    overflow: hidden;
    padding-inline: 4vw;
    padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
  }
  .bar {
    flex: none;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 10px;
  }
  .bar h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(17px, 5vw, 26px);
    line-height: 1.3;
  }
  .back {
    padding: 9px 16px;
    font-size: 14px;
  }
  .tour-badge {
    padding: 7px 12px;
    font-size: 13px;
  }
  .crumbs {
    flex: 1 1 0;
    font-size: clamp(14px, 4vw, 20px);
  }
  .body {
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
  }
  /* attract */
  #attract h1 {
    white-space: normal;
    font-size: clamp(24px, 7.4vw, 44px);
    margin: 22px 0 10px;
  }
  #attract p {
    white-space: normal;
    width: auto;
    min-width: 0;
    font-size: clamp(14px, 3.8vw, 19px) !important;
  }
  .hero-text {
    width: 100%;
    max-width: 92vw;
    margin-bottom: 26px;
  }
  .touch {
    padding: 16px 40px;
    font-size: clamp(18px, 5vw, 24px);
  }
  /* home: the four sector cards take the free height, the three tiles stay compact */
  header {
    flex: none;
    gap: 10px;
    margin-bottom: 8px;
  }
  .home-t {
    font-size: clamp(20px, 5.6vw, 32px);
    margin: 0;
  }
  .home-s {
    font-size: clamp(12px, 3.4vw, 17px);
  }
  .sectors {
    flex: 1 1 0;
    min-height: 0;
    margin-bottom: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sector-cap {
    inset-inline: 12px;
    bottom: 12px;
    gap: 5px;
  }
  .sector-cap em {
    font-size: 11px;
  }
  .sector-cap b {
    font-size: clamp(14px, min(6.4cqh, 9cqw), 26px);
  }
  .grid:not(.hub) {
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 10px;
  }
  .grid:not(.hub) .tile {
    grid-column: auto;
    min-height: 0;
    padding: 10px 12px;
    gap: 2px 8px;
  }
  .grid:not(.hub) .tile.cta {
    grid-column: 1 / -1;
  }
  .tile b,
.tile span {
    white-space: normal;
  }
  .tile b {
    font-size: clamp(14px, 4vw, 20px);
  }
  .tile span {
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.35;
  }
  .grid .tile > svg {
    width: 28px;
    height: 28px;
  }
  /* camp page: the two big tiles share the height */
  .hub {
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hub .tile {
    grid-column: auto;
  }
  /* sector pages */
  .plans-wrap,
.sector-detail {
    flex: 1 1 0;
    min-height: 0;
  }
  .sd-head h3 {
    font-size: clamp(19px, 5.4vw, 28px);
  }
  /* camp-type cards (page and popup): image beside the text, so the three cards and their names always fit */
  .sector-detail .choice-cards {
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(0, 1fr);
    gap: 10px;
    overflow: visible;
  }
  .choice-cards {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }
  .choice-card,
.sector-detail .choice-card {
    flex: none;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    min-height: 0;
    text-align: start;
    border-radius: 18px;
  }
  .sector-detail .choice-card {
    height: 100%;
  }
  .cc-img,
.sector-detail .cc-img {
    flex: 0 0 38%;
    aspect-ratio: auto;
    max-height: none;
    min-height: 84px;
  }
  .sector-detail .cc-img {
    min-height: 0;
  }
  .cc-tag {
    top: 8px;
    inset-inline-start: 8px;
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .cc-tag svg {
    width: 12px;
    height: 12px;
  }
  .cc-txt,
.sector-detail .cc-txt {
    flex: 1;
    min-width: 0;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    padding-inline-end: 34px;
  }
  .cc-txt b {
    font-size: clamp(16px, 4.8vw, 22px);
  }
  .cc-txt small {
    font-size: 12px;
    line-height: 1.5;
  }
  .choice {
    padding: 12px;
  }
  .choice-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 22px;
  }
  .choice-panel h3 {
    font-size: clamp(19px, 5.4vw, 28px);
    padding-inline: 44px;
  }
  .choice-panel p {
    margin-bottom: 10px;
    font-size: 13px;
  }
  .choice-x {
    top: 10px;
    width: 36px;
    height: 36px;
  }
  /* execution stages: photo + slider take the free height, the stage list stays compact */
  .build-visual,
.build-layout .build-visual {
    flex: 1 1 0;
    min-height: 0;
  }
  .pv-frame {
    min-height: 0;
  }
  .pv-badge {
    top: 10px;
    inset-inline-start: 10px;
    padding: 4px 12px;
  }
  .build-details {
    flex: none;
    justify-content: flex-start;
    padding: 12px;
  }
  .build-details .chips {
    gap: 6px;
  }
  .build-details .chip,
.pv .chip {
    padding: 8px 6px;
    font-size: clamp(11px, 3.1vw, 14px);
  }
  #estgTxt,
#pstgTxt,
#vstgTxt {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    margin-top: 8px !important;
  }
  /* photo gallery */
  
  
  
  /* tour */
  .tr-layout {
    flex: 1 1 0;
    min-height: 0;
  }
  .tr-stage {
    flex: 1 1 0;
    min-height: 0;
  }
  .tr-rail {
    flex: 0 0 auto;
  }
  /* blueprints */
  .bp-viewer {
    flex: 1 1 0;
    min-height: 0;
  }
  .bp-side {
    flex: 0 0 auto;
    max-height: 32%;
  }
  /* contact form: 16px inputs stop iOS from zooming the page on focus */
  
  
}
/* landscape phones: little height, so pages go side by side again and the language strip shares the logo's row */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1024px) {
  .screen {
    padding-top: 60px;
  }
  .lang-picker {
    top: 8px;
    left: calc(4vw + 52px);
    right: calc(4vw + 180px);
  }
  .lang-btn {
    padding: 7px 14px;
    font-size: 13px;
  }
  .body,
.build-layout,
.tr-layout,
.bp-layout {
    flex-direction: row;
  }
  .build-visual,
.build-layout .build-visual {
    flex: 0 0 55%;
  }
  .build-details {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
  }
  .tr-rail {
    flex: 0 0 34%;
    flex-direction: column;
    overflow: hidden auto;
  }
  .tr-item,
.tr-item.on {
    flex: none;
    min-height: 44px;
    padding-block: 6px;
  }
  .tr-d {
    display: none;
  }
  .tr-cap {
    display: none;
  }
  
  
  .bp-side {
    flex: 0 0 30%;
    max-height: none;
  }
  .sectors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }
  .items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}
/* phone browsers: the address bar changes the viewport height, so size the photo viewer with dvh when supported */

/* tour: many photos -> a slim progress bar (tap or drag to jump) instead of one dot per photo; the footer never overflows */
.tr-count {
  max-width: 100%;
  min-width: 0;
}
.tr-dots {
  min-width: 0;
  flex-wrap: nowrap;
}
.tr-dots.bar {
  position: relative;
  width: clamp(110px, 24vw, 300px);
  height: 22px;
  align-items: center;
  touch-action: none;
}
.tr-dots.bar::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 6px;
  background: rgba(246, 236, 214, 0.25);
}
.tr-fill {
  --p: 0;
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  width: calc(var(--p) * 100%);
  min-width: 6px;
  border-radius: 6px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.tr-fill::after {
  content: '';
  position: absolute;
  inset-inline-end: -8px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(228, 189, 112, 0.25);
}
@media (max-width: 900px) {
  .tr-foot {
    gap: 8px;
  }
  .tr-dots.bar {
    width: clamp(80px, 30vw, 200px);
  }
}
/* themed scrollbars: slim, rounded and gold on the dark green panels (replaces the default white system bar) */
:root {
  color-scheme: dark;
}
@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(228, 189, 112, 0.55) transparent;
  }
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 10px;
}
*::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(228, 189, 112, 0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
/* hide the leftover arrow buttons of the webkit scrollbar (they showed as a stray dot at the corner of rounded panels) */
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:start:decrement,
*::-webkit-scrollbar-button:end:increment {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
*::-webkit-scrollbar-track {
  margin-block: 26px;
}
/* ===== photo gallery: places (Arafah / Mina), division lists, flat galleries ===== */
.sector-cap small {
  margin-top: 2px;
  font-size: clamp(12px, min(3.4cqh, 4.6cqw), 17px);
  font-weight: 400;
  color: var(--sand);
  opacity: 0.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
/* the two place cards (reuse the sector card look) */
.sectors.places {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}
.places .sector-cap b {
  font-size: clamp(28px, min(11cqh, 11cqw), 64px);
}
/* division lists: 2 / 4 columns, and five cards on two rows (3 above, 2 centred below) */
.choice-cards.cc-n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-cards.cc-n4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.choice-cards.cc-n5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.choice-cards.cc-n5 .choice-card {
  grid-column: span 2;
}
.choice-cards.cc-n5 .choice-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.choice-cards.cc-n5 .choice-card:nth-child(5) {
  grid-column: 4 / span 2;
}
.choice-cards.cc-n4 .cc-img,
.choice-cards.cc-n5 .cc-img {
  aspect-ratio: 16 / 8;
}
.choice-cards.cc-n4 .cc-txt b,
.choice-cards.cc-n5 .cc-txt b {
  font-size: clamp(15px, 1.7vw, 22px);
  line-height: 1.35;
}
.sector-detail .choice-cards.cc-n5 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.cc-txt small {
  font-variant-numeric: tabular-nums;
}
/* gallery without area titles: the carousel takes the whole width */
.tr-layout.flat .tr-rail {
  display: none;
}
.tr-n {
  flex: none;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(228, 189, 112, 0.5);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  transition:
    color 0.35s,
    border-color 0.35s;
}
.tr-item.on .tr-n {
  color: var(--ink);
  border-color: rgba(4, 39, 37, 0.45);
}
.tour-badge[hidden] {
  display: none;
}
.tour-badge {
  max-width: min(52vw, 520px);
  text-align: start;
}
.bar #tourHead {
  flex: 0 1 auto;
}
@media (max-width: 900px) {
  .sectors.places {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .choice-cards.cc-n2,
.choice-cards.cc-n4,
.choice-cards.cc-n5 {
    grid-template-columns: 1fr;
  }
  .choice-cards.cc-n5 .choice-card,
.choice-cards.cc-n5 .choice-card:nth-child(4),
.choice-cards.cc-n5 .choice-card:nth-child(5) {
    grid-column: auto;
  }
  .sector-detail .choice-cards.cc-n5 {
    grid-template-rows: none;
    grid-auto-rows: minmax(0, 1fr);
  }
  .choice-cards.cc-n4 .cc-img,
.choice-cards.cc-n5 .cc-img {
    aspect-ratio: auto;
  }
  .choice-cards.cc-n5 .cc-txt small,
.choice-cards.cc-n4 .cc-txt small {
    font-size: 11px;
  }
  .tr-n {
    display: none;
  }
  .tour-badge {
    max-width: 100%;
  }
}
/* warehouse plan: no side panel, the viewer takes the whole width */
.bp-layout.bp-solo .bp-side {
  display: none;
}
/* the choice popup scrolls instead of growing past the screen */
.choice-panel {
  overflow-y: auto;
}
/* short screens (laptops, landscape tablets): division cards go side by side (photo | text) so the photo is never a thin strip */
@media (max-height: 720px) and (min-width: 901px) {
  .sector-detail .choice-cards.cc-n5 .choice-card,
.sector-detail .choice-cards.cc-n4 .choice-card {
    flex-direction: row;
    align-items: stretch;
    text-align: start;
  }
  .sector-detail .choice-cards.cc-n5 .cc-img,
.sector-detail .choice-cards.cc-n4 .cc-img {
    flex: 0 0 40%;
    aspect-ratio: auto;
    min-height: 0;
  }
  .sector-detail .choice-cards.cc-n5 .cc-txt,
.sector-detail .choice-cards.cc-n4 .cc-txt {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 8px 16px;
    padding-inline-end: 34px;
  }
}
/* never let a photo shrink to a strip: keep a minimum height for the cover */
.sector-detail .choice-card .cc-img {
  min-height: 70px;
}
/* contact page: a QR code to the links page */
.qr-layout {
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 96px);
}
.qr-info {
  flex: 0 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 20px);
}
.qr-info h3 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.2;
  color: var(--gold);
}
.qr-info p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 21px);
  line-height: 1.85;
  font-weight: 300;
  opacity: 0.88;
}
.qr-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qr-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(14px, 1.45vw, 19px);
}
.qr-steps i {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}
.qr-url {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(228, 189, 112, 0.14);
  border: 1px solid rgba(228, 189, 112, 0.6);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 22px);
  letter-spacing: 0.02em;
  color: var(--sand);
}
.qr-url svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qr-card {
  position: relative;
  flex: none;
  width: min(46vh, 40vw, 440px);
  aspect-ratio: 1;
  padding: 6.5%;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(228, 189, 112, 0.7);
  animation: qrIn 0.8s 0.15s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.qr-card::before {
  content: '';
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: 48px;
  background: radial-gradient(circle, rgba(228, 189, 112, 0.28), transparent 68%);
  animation: qrGlow 3.4s ease-in-out infinite;
}
.qr-img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.qr-c {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 0 solid var(--gold);
  border-radius: 8px;
}
.qr-c.tl {
  top: -12px;
  left: -12px;
  border-width: 4px 0 0 4px;
}
.qr-c.tr {
  top: -12px;
  right: -12px;
  border-width: 4px 4px 0 0;
}
.qr-c.bl {
  bottom: -12px;
  left: -12px;
  border-width: 0 0 4px 4px;
}
.qr-c.br {
  bottom: -12px;
  right: -12px;
  border-width: 0 4px 4px 0;
}
.qr-scan {
  position: absolute;
  inset-inline: 6.5%;
  top: 6.5%;
  height: 3px;
  border-radius: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 14px rgba(228, 189, 112, 0.9);
  animation: qrScan 3.4s ease-in-out infinite;
}
@keyframes qrIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
}
@keyframes qrGlow {
  50% {
    opacity: 0.55;
  }
}
@keyframes qrScan {
  0%,
  100% {
    top: 6.5%;
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  50% {
    top: 93%;
  }
}
@media (max-width: 900px) {
  .qr-layout {
    gap: 22px;
    justify-content: center;
  }
  .qr-card {
    order: -1;
    width: min(64vw, 38vh, 340px);
    border-radius: 22px;
  }
  .qr-info {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
  }
  .qr-info h3 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .qr-steps {
    display: none;
  }
  .qr-url {
    align-self: center;
  }
}
@media (max-height: 560px) {
  .qr-steps {
    display: none;
  }
}
/* language buttons keep their places whatever the page direction (Arabic/Urdu are RTL, the others LTR) */
.lang-picker {
  direction: rtl;
}
.lang-btn {
  unicode-bidi: isolate;
}
/* home: two tiles (achievements, contact) share the row */
.grid:not(.hub) .tile {
  grid-column: span 6;
}
@media (max-width: 900px) {
  .grid:not(.hub) .tile,
.grid:not(.hub) .tile.cta {
    grid-column: auto;
  }
}
/* blueprints: switch between the warehouse plan and the engineering site plan */
.bp-tabs {
  margin-inline-start: auto;
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(228, 189, 112, 0.55);
  background: rgba(3, 42, 40, 0.55);
}
.bp-tab {
  padding: 8px clamp(12px, 1.4vw, 20px);
  border-radius: 999px;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 700;
  color: inherit;
  transition:
    background 0.3s,
    color 0.3s;
}
.bp-tab:hover:not(.on) {
  background: rgba(228, 189, 112, 0.18);
}
.bp-tab.on {
  background: var(--gold);
  color: var(--ink);
}
/* equipment: the details are as important as the photos, so both halves get the same width */
@media (min-width: 901px) {
  .tr-layout.eq .tr-rail {
    flex: 1 1 0;
  }
}

/* equipment: the fleet intro is the headline strip of the photo card (gold accent bar, fades out to the side) */
.tr-intro {
  flex: none;
  margin: 0;
  padding: 8px clamp(12px, 1.6vw, 22px);
  border-inline-start: 4px solid var(--gold);
  border-radius: 6px 16px 16px 6px;
  background: linear-gradient(90deg, rgba(228, 189, 112, 0.2), rgba(228, 189, 112, 0));
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.7;
}
html[dir='rtl'] .tr-intro {
  border-radius: 16px 6px 6px 16px;
  background: linear-gradient(270deg, rgba(228, 189, 112, 0.2), rgba(228, 189, 112, 0));
}
.tr-intro:empty {
  display: none;
}
/* equipment categories: title | count, description, then the types in gold; each one opens its photos */
.tr-item.eqt {
  flex: 0 0 auto;
  min-height: 0;
  padding-block: 12px;
  overflow: visible;
}
.tr-item.eqt .tr-t b {
  line-height: 1.5;
}
.tr-item.eqt .tr-d {
  grid-template-rows: 1fr;
  opacity: 0.9;
}
.tr-item.eqt .tr-d small {
  overflow: visible;
}
.tr-item.eqt:hover {
  border-color: rgba(246, 236, 214, 0.2);
  background: rgba(246, 236, 214, 0.05);
}
.eq-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.eq-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #f6ecd6, #ecd49c);
  color: var(--ink);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 17, 16, 0.25);
  transition:
    transform 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}
.eq-sub::after {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid var(--ink);
  border-inline-end: 2px solid var(--ink);
  transform: rotate(calc(45deg + var(--flip) * 90deg));
  opacity: 0.6;
}
.eq-sub:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 17, 16, 0.35);
}
.eq-sub:active {
  transform: scale(0.95);
}
/* equipment popup: a swipeable strip, the centred photo is full size and its neighbours shrink and fade */
.choice {
  --flip: 1;
}
html[dir='rtl'] .choice {
  --flip: -1;
}
.choice-panel:has(.eq-pop) {
  width: min(1000px, 95vw);
}
.choice-cards.eq-pop {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eq-trk {
  display: flex;
  gap: 14px;
  height: min(46vh, 480px);
  padding-inline: 10%;
  animation: eqIn 0.5s ease backwards;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.eq-trk::-webkit-scrollbar {
  display: none;
}
.eq-trk.drag {
  scroll-snap-type: none;
  cursor: grabbing;
}
.eq-slide {
  flex: 0 0 80%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 17, 16, 0.4);
  transform: scale(calc(1 - var(--d, 0) * 0.14));
  opacity: calc(1 - var(--d, 0) * 0.5);
  user-select: none;
}
.eq-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
}
/* equipment popup: quick switch between the types of the same category */
.eq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.eq-tabs .eq-sub {
  background: rgba(246, 236, 214, 0.08);
  border-color: rgba(228, 189, 112, 0.5);
  color: var(--sand);
  box-shadow: none;
}
.eq-tabs .eq-sub::after {
  display: none;
}
.eq-tabs .eq-sub:hover {
  background: rgba(228, 189, 112, 0.25);
}
.eq-tabs .eq-sub.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
@keyframes eqIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
/* equipment popup: the category is the small headline above the type name */
.eq-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--sand);
}
.eq-cat::before,
.eq-cat::after {
  content: '';
  width: clamp(18px, 4vw, 48px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eq-cat::after {
  transform: scaleX(-1);
}
