:root {
  --bg: #06080a;
  --bg-2: #0b0f12;
  --text: #ece6da;
  --muted: rgba(236, 230, 218, .62);
  --faint: rgba(236, 230, 218, .38);
  --gold: #c9a466;
  --gold-hi: #e8cf9c;
  --line: rgba(236, 230, 218, .12);
  --glass: rgba(18, 22, 26, .42);
  --glass-line: rgba(236, 230, 218, .1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1400px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 300; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-hi); letter-spacing: 0; }
::selection { background: var(--gold); color: var(--bg); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Background layers */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.atmos {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(var(--tod-glow, 201, 164, 102), .1), transparent 70%),
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(60, 90, 110, .10), transparent 70%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .55) 100%);
}
.no-webgl .atmos { background:
  radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201, 164, 102, .16), transparent 70%),
  radial-gradient(ellipse 60% 60% at 10% 100%, rgba(60, 90, 110, .18), transparent 70%), var(--bg); }
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-2%); } 60% { transform: translate(-2%,-4%); } 80% { transform: translate(4%,2%); } }
main, .site-footer { position: relative; z-index: 3; }

/* Loader */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg);
  transition: clip-path 1.2s var(--ease), visibility 0s 1.2s; clip-path: inset(0 0 0 0);
}
.loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 18px; }
.loader-brand { font-family: var(--serif); font-size: 22px; color: var(--text); letter-spacing: .02em; }
.loader-count { font-family: var(--mono); font-size: clamp(56px, 9vw, 110px); font-weight: 300; line-height: 1; color: var(--gold-hi); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader-bar { width: 200px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.loader-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }

/* Cursor */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .has-cursor .cursor { display: block; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
  .cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--gold-hi); }
  .cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(232, 207, 156, .45); transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s; }
  .cursor.hover .cursor-ring { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(232, 207, 156, .08); border-color: rgba(232, 207, 156, .8); }
}

/* HUD */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 24px var(--gutter);
  transition: background .5s, padding .5s, border-color .5s; border-bottom: 1px solid transparent;
}
.hud-top.scrolled { background: rgba(6, 8, 10, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.mark { width: 40px; height: 40px; color: var(--gold-hi); }
.mark circle:nth-of-type(2) { transform-origin: 32px 32px; animation: spinmark 30s linear infinite; }
@keyframes spinmark { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 21px; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--faint); }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--muted); display: flex; gap: 8px; align-items: baseline; transition: color .3s; position: relative; padding: 6px 0; }
.nav a .n { color: var(--gold); font-size: 9.5px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; }

.hud-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--muted);
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 12px; }
.hud-dim { color: var(--faint); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,164,102,.55); } 70% { box-shadow: 0 0 0 10px rgba(201,164,102,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,102,0); } }
#clock, #secnum { color: var(--text); font-variant-numeric: tabular-nums; }
.hud-sep { color: var(--faint); }
.hud-phase { color: rgb(var(--tod-glow, 201, 164, 102)); filter: brightness(1.35) saturate(1.1); text-transform: uppercase; transition: color 2s; }
.sound-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; margin-right: 18px; padding: 6px 0;
  background: none; border: 0; color: var(--muted); font: 400 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}
.sound-btn:hover { color: var(--text); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { display: block; width: 2px; height: 3px; background: currentColor; transition: height .4s; }
.sound-btn.on { color: var(--gold-hi); }
.sound-btn.on .bars i { animation: eq 1.1s ease-in-out infinite; }
.sound-btn.on .bars i:nth-child(2) { animation-delay: -.3s; } .sound-btn.on .bars i:nth-child(3) { animation-delay: -.6s; } .sound-btn.on .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.hud-track { width: 90px; height: 1px; background: var(--line); overflow: hidden; }
#secbar { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(6, 8, 10, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 24px 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-size: 42px; line-height: 1.2; font-weight: 200; text-decoration: none; display: flex; align-items: baseline; gap: 16px; letter-spacing: -.02em; }
.menu nav a span { font-family: var(--mono); font-size: 11px; color: var(--gold); width: 26px; letter-spacing: .1em; }
.menu-foot { margin: auto 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); line-height: 2; }

/* Typography */
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 28px; white-space: nowrap; }
.title { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 36px; font-weight: 200; }
.title.big { font-size: clamp(54px, 9vw, 150px); letter-spacing: -.05em; }
.panel p { color: var(--muted); max-width: 540px; }

/* Split text */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 45ms); }
[data-split].in .w > span { transform: none; }

/* Reveals */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.cards .reveal:nth-child(2) { transition-delay: .1s; } .cards .reveal:nth-child(3) { transition-delay: .2s; } .cards .reveal:nth-child(4) { transition-delay: .3s; }
.js .card.settled { transition: transform .6s var(--ease), opacity 1s, filter 1s; transition-delay: 0s; }

/* Panels */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 120px; }
.col-text { max-width: 640px; }
.col-text.right { margin-left: auto; }

/* Hero */
.hero { align-items: flex-end; padding-bottom: clamp(90px, 13vh, 150px); }
.hero-title { font-size: clamp(50px, 8.6vw, 148px); line-height: .96; letter-spacing: -.05em; font-weight: 200; max-width: 11.5em; margin-bottom: 34px; }
.hero-sub { font-size: clamp(16px, 1.3vw, 19px); max-width: 460px !important; margin: 0; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: clamp(90px, 13vh, 150px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 70px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--gold-hi); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Glass */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.6);
}

/* Spec list */
.spec { margin: 44px 0 0; padding: 8px 26px; max-width: 540px; }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15px; color: var(--text); text-align: right; }

/* Quote */
.quote { text-align: center; justify-content: center; }
.quote blockquote { margin: 0 auto; max-width: 1100px; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4.8vw, 72px); line-height: 1.12; color: var(--text); max-width: none; margin: 0 0 40px; letter-spacing: -.01em; }
.quote .tag { margin: 0; }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 20px; perspective: 1200px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 32px 28px 30px; min-height: 300px; display: flex; flex-direction: column; overflow: hidden;
  transform-style: preserve-3d; transition: transform .7s var(--ease), border-color .5s; will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(232, 207, 156, .14), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(232, 207, 156, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); margin-bottom: auto; }
.card h3 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -.03em; margin: 60px 0 12px; font-weight: 300; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--gold-hi); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.cards.four .card h3 { margin-top: 40px; }

/* Ticker */
.ticker { position: relative; z-index: 3; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(6,8,10,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 18px 0; }
.ticker-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: tick 45s linear infinite; font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ticker-track span { white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; padding: 8px 8px 8px 26px; border: 1px solid rgba(232,207,156,.4); border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); transition: border-color .4s, background .4s; }
.btn i { font-style: normal; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--bg); transition: transform .5s var(--ease); }
.btn:hover { border-color: var(--gold-hi); background: rgba(232,207,156,.06); }
.btn:hover i { transform: rotate(-45deg); }

/* Contact */
.email { display: inline-block; margin: 14px 0 6px; font-size: clamp(28px, 4vw, 58px); font-weight: 200; letter-spacing: -.035em; text-decoration: none; color: var(--text); background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; padding-bottom: 6px; transition: background-size .8s var(--ease), color .4s; word-break: break-word; }
.email:hover { color: var(--gold-hi); background-size: 0 1px; background-position: right bottom; }

/* Footer */
.site-footer { background: linear-gradient(180deg, rgba(6,8,10,.7), var(--bg) 30%); padding: clamp(80px, 9vw, 130px) 0 80px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); }
.legal { display: grid; grid-template-columns: 1fr 2.3fr; gap: 40px clamp(40px, 7vw, 120px); padding-bottom: clamp(48px, 6vw, 80px); }
.legal-title { font-size: clamp(28px, 2.8vw, 40px); color: var(--text); line-height: 1.05; letter-spacing: -.03em; font-weight: 200; }
.legal-body { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
.legal-body p { break-inside: avoid; margin: 0 0 22px; font-size: 12.5px; line-height: 1.75; color: rgba(236,230,218,.48); }
.legal-body strong { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--text); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  [data-split] .w > span { transform: none; }
  .grain { display: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); cursor: pointer;
    font: 400 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; padding: 10px 0; position: relative; z-index: 60;
  }
  .menu-icon { width: 24px; height: 9px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
  .menu-icon::before { top: 0; } .menu-icon::after { top: 8px; }
  .menu-open .menu-icon::before { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-icon::after { top: 4px; transform: rotate(-45deg); }
  .menu-open .hud-top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cards.three { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-body { columns: 1; }
  .col-text.right { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  #scene { opacity: .75; }
  .hud-top { padding: 16px; }
  .hud-top.scrolled { padding: 12px 16px; }
  .hud-bottom { padding: 14px 16px; font-size: 9.5px; }
  .hud-track { width: 50px; }
  .sound-label { display: none; }
  .sound-btn { margin-right: 12px; }
  .hud-sep, .hud-phase { display: none; }
  .mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .panel { padding: 120px 0 100px; min-height: auto; }
  .hero { min-height: 100svh; }
  .office, .contact, .founders { min-height: 90svh; }
  .tag { font-size: 10px; letter-spacing: .18em; white-space: normal; }
  .scroll-hint { display: none; }
  .cards.four { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 26px 22px; }
  .card h3 { margin-top: 34px; }
  .cards.four .card h3 { margin-top: 18px; }
  .spec { padding: 4px 18px; }
  .spec div { flex-direction: column; gap: 2px; }
  .spec dd { text-align: left; }
  .panel p { color: rgba(236,230,218,.75); }
}

/* ===================== Header actions: language + Family Access ===================== */
.hud-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: rgba(6,8,10,.35); }
.lang button {
  background: none; border: 0; color: var(--faint); font: 400 10px/1 var(--mono); letter-spacing: .14em;
  padding: 7px 9px; border-radius: 999px; cursor: pointer; transition: color .3s, background .3s;
}
.lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 12px; letter-spacing: 0; padding-top: 5px; padding-bottom: 6px; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--gold-hi); }
.access-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(232,207,156,.14), rgba(232,207,156,.03)); border: 1px solid rgba(232,207,156,.35);
  color: var(--text); font: 400 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  position: relative; overflow: hidden; transition: border-color .4s, background .4s;
}
.access-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,240,210,.25) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 5s ease-in-out infinite 2s; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.access-btn svg { width: 15px; height: 15px; fill: none; stroke: var(--gold-hi); stroke-width: 1.3; stroke-linecap: round; }
.access-btn:hover { border-color: var(--gold-hi); background: rgba(232,207,156,.12); }
.lang--menu { margin-top: 34px; align-self: flex-start; }
.lang--menu button { font-size: 11px; padding: 9px 13px; }
.menu nav a.menu-access { color: var(--gold-hi); }
.menu nav a.menu-access span { color: var(--gold-hi); font-size: 9px; }

/* ===================== Globe beacon labels ===================== */
.beacons { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.beacon { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; will-change: transform, opacity; }
.b-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold-hi); }
.b-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(232,207,156,.5); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.b-line { position: absolute; left: 6px; top: 0; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold-hi), transparent); }
.b-text { position: absolute; left: 46px; top: -14px; display: flex; flex-direction: column; white-space: nowrap; padding: 5px 10px; border-radius: 8px; background: rgba(6,8,10,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--glass-line); }
.b-text b { font-weight: 400; font-size: 13px; color: var(--text); letter-spacing: -.01em; line-height: 1.2; }
.b-text small { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.beacon--hq .b-text { border-color: rgba(232,207,156,.4); }
.beacon--hq .b-dot { background: var(--gold-hi); box-shadow: 0 0 14px var(--gold-hi); }
.access-open .beacons, .menu-open .beacons { opacity: 0; }

/* ===================== Family Access dialog ===================== */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.access { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.access[hidden] { display: none; }
.access-backdrop { position: absolute; inset: 0; background: rgba(4,6,8,.62); -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); opacity: 0; transition: opacity .6s var(--ease); }
.access.open .access-backdrop { opacity: 1; }
.access-panel {
  position: relative; width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 38px 34px 24px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(24,28,32,.88), rgba(10,12,14,.92));
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transform: translateY(24px) scale(.96); filter: blur(8px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
  scrollbar-width: none;
}
.access.open .access-panel { opacity: 1; transform: none; filter: none; }
.access-border {
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), rgba(232,207,156,0) 0deg, rgba(232,207,156,.9) 60deg, rgba(232,207,156,0) 120deg, rgba(232,207,156,.15) 200deg, rgba(232,207,156,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinb 6s linear infinite;
}
@keyframes spinb { to { --spin: 360deg; } }
.access-scanline { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent, rgba(232,207,156,.06) 60%, rgba(232,207,156,.18) 99%, transparent); transform: translateY(-130px); }
.access.checking .access-scanline { animation: scan 1.4s linear infinite; }
@keyframes scan { to { transform: translateY(620px); } }
.access-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .3s, transform .5s var(--ease); }
.access-close span { position: absolute; left: 11px; right: 11px; top: 18px; height: 1px; background: var(--text); transform: rotate(45deg); }
.access-close span + span { transform: rotate(-45deg); }
.access-close:hover { border-color: var(--gold-hi); transform: rotate(90deg); }
.access-head { text-align: center; margin-bottom: 26px; }
.scanner { width: 92px; height: 92px; margin: 0 auto 22px; overflow: visible; }
.sc-ring { fill: none; stroke: rgba(232,207,156,.35); stroke-width: .7; transform-origin: 60px 60px; }
.sc-1 { stroke-dasharray: 2 4; animation: spinmark 18s linear infinite; }
.sc-2 { stroke: rgba(232,207,156,.18); }
.sc-3 { stroke-dasharray: 30 10 4 10; animation: spinmark 9s linear infinite reverse; }
.sc-arc { fill: none; stroke: var(--gold-hi); stroke-width: 1.4; stroke-linecap: round; transform-origin: 60px 60px; animation: spinmark 2.8s linear infinite; filter: drop-shadow(0 0 4px rgba(232,207,156,.8)); }
.sc-ticks path { stroke: rgba(232,207,156,.5); stroke-width: 1; }
.scanner text { font-family: var(--serif); font-size: 26px; fill: var(--text); }
.access.checking .sc-arc { animation-duration: .7s; }
.access.denied .sc-arc { stroke: #e0876f; filter: drop-shadow(0 0 6px rgba(224,135,111,.9)); animation-duration: 6s; }
.access.denied .sc-ring { stroke: rgba(224,135,111,.35); }
.access-head .tag { margin-bottom: 12px; }
#access-title { font-size: 34px; font-weight: 200; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.access-sub { margin: 0 auto; font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.55; }
.access-form { display: grid; gap: 14px; }
.field { position: relative; display: block; }
.field input {
  width: 100%; height: 56px; padding: 22px 16px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--text); font: 300 16px/1 var(--sans); letter-spacing: .02em; outline: none; transition: border-color .35s, background .35s, box-shadow .35s;
}
.field input[type="password"] { letter-spacing: .3em; font-family: var(--mono); }
.field-label { position: absolute; left: 17px; top: 19px; font: 400 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); pointer-events: none; transition: transform .35s var(--ease), color .35s, font-size .35s; transform-origin: left top; }
.field input:focus + .field-label, .field input:not(:placeholder-shown) + .field-label { transform: translateY(-10px) scale(.82); color: var(--gold); }
.field input:focus { border-color: rgba(232,207,156,.55); background: rgba(232,207,156,.04); box-shadow: 0 0 0 4px rgba(232,207,156,.06); }
.field-line { position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--gold-hi); transform: scaleX(0); transition: transform .6s var(--ease); box-shadow: 0 0 10px var(--gold-hi); }
.field input:focus ~ .field-line { transform: scaleX(1); }
.field input:disabled { opacity: .5; }
.access-submit {
  margin-top: 6px; height: 56px; border-radius: 12px; border: 0; cursor: pointer; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px;
  background: linear-gradient(135deg, #e8cf9c, #b88d4f); color: #0b0d0f; font: 500 11.5px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 14px 40px -12px rgba(201,164,102,.6); transition: transform .4s var(--ease), box-shadow .4s, opacity .3s;
}
.access-submit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.55) 50%, transparent 75%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.access-submit:hover::before { transform: translateX(120%); }
.access-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 50px -12px rgba(201,164,102,.75); }
.access-submit i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: rgba(11,13,15,.92); }
.access-submit svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.access-submit:disabled { opacity: .55; cursor: progress; }
.access-status { min-height: 0; margin-top: 16px; font: 400 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.st-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.st-row.in { opacity: 1; transform: none; }
.st-caret { color: var(--gold); }
.st-dots { flex: 1; border-bottom: 1px dotted rgba(236,230,218,.18); transform: translateY(-3px); min-width: 20px; }
.st-res { min-width: 3em; text-align: right; }
.st-row:not(.ok):not(.bad):not(.warn) .st-res::after { content: "···"; animation: blink 1s steps(3) infinite; color: var(--gold); }
@keyframes blink { 50% { opacity: .2; } }
.st-row.ok .st-res { color: #9ccf9a; }
.st-row.bad .st-res, .st-row.warn .st-text { color: #e8a08c; }
.st-row.warn .st-dots, .st-row.warn .st-res { display: none; }
.st-denied { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(224,135,111,.35); background: rgba(224,135,111,.07); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.st-denied.in { opacity: 1; transform: none; }
.st-denied strong { display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #f0b3a2; margin-bottom: 6px; }
.st-denied p { margin: 0; font: 300 13.5px/1.55 var(--sans); letter-spacing: 0; color: var(--muted); }
.access-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 9.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.access-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.access-meta b { font-weight: 400; color: var(--muted); letter-spacing: .12em; }
.led { width: 6px; height: 6px; border-radius: 50%; background: #8fd18c; box-shadow: 0 0 8px #8fd18c; display: inline-block; }
.access.shake .access-panel { animation: shake .5s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.access-open .hud-top, .access-open .hud-bottom { opacity: .25; transition: opacity .6s; }

/* ===================== Legal translation note ===================== */
.legal-note:empty { display: none; }

/* ===================== Arabic / right-to-left ===================== */
html[lang="ar"] [data-i18n], html[lang="ar"] [data-i18n] *, html[lang="ar"] .access-sub, html[lang="ar"] .st-row, html[lang="ar"] .st-denied * {
  font-family: "IBM Plex Sans Arabic", var(--sans) !important; letter-spacing: 0 !important; font-style: normal;
}
html[lang="ar"] .hero-title, html[lang="ar"] .title { line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] .hero-title { font-weight: 300; }
html[lang="ar"] .quote blockquote p { line-height: 1.6; font-size: clamp(26px, 3.6vw, 52px); }
html[lang="ar"] em { color: var(--gold-hi); }
html[lang="ar"] .tag { font-size: 13px; }
html[lang="ar"] .nav a { font-size: 13px; }
[dir="rtl"] .col-text.right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .spec dd { text-align: left; }
[dir="rtl"] .scroll-hint { right: auto; left: var(--gutter); }
[dir="rtl"] .st-res { text-align: left; }
[dir="rtl"] .field-label { left: auto; right: 17px; transform-origin: right top; }
[dir="rtl"] .access-close { right: auto; left: 16px; }
[dir="rtl"] .access-submit svg, [dir="rtl"] .btn i { transform: scaleX(-1); }
[dir="rtl"] .btn:hover i { transform: scaleX(-1) rotate(-45deg); }
[dir="rtl"] .ticker-track { animation-direction: reverse; }
.beacon, .beacons { direction: ltr; }

@media (max-width: 1180px) { .nav { gap: 16px; } .access-btn span { display: none; } .access-btn { padding: 9px 11px; } }
@media (max-width: 960px) {
  .hud-actions .lang { display: none; }
  .hud-actions { gap: 12px; }
}
@media (max-width: 640px) {
  .access-panel { padding: 34px 20px 20px; border-radius: 20px; }
  #access-title { font-size: 28px; }
  .b-text { padding: 4px 8px; left: 40px; }
  .b-text b { font-size: 11.5px; }
  .b-text small { display: none; }
  .b-line { width: 28px; }
}
/* near the right edge the label drops below its dot instead */
.beacon.flip .b-line { left: -0.5px; top: 6px; width: 1px; height: 26px; background: linear-gradient(180deg, var(--gold-hi), transparent); }
.beacon.flip .b-text { left: auto; right: -14px; top: 34px; align-items: flex-end; }
