* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #0A0C0C;
  --bg-2: #101413;
  --cream: #F3F1EA;
  --accent: #4DE8CB;
  --accent-soft: #9FF0E1;
  --muted: #8B9491;
  --line: rgba(243,241,234,0.10);
  --serif: 'Fraunces', serif;
  --sans: 'Manrope', sans-serif;
  --arabic: 'Noto Kufi Arabic', sans-serif;
}

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}
/* cursor:none is applied only once script.js confirms the custom
   cursor actually initialized — never hardcoded, so a JS failure
   or a blocked script never leaves the user with an invisible mouse. */
body.custom-cursor-active{ cursor: none; }

a{ text-decoration: none; color: inherit; }
::selection{ background: var(--accent); color: #14100c; }

.ar{ display: block; font-family: var(--arabic); color: var(--accent-soft); }

/* grain overlay */
.grain{
  position: fixed; inset: 0; z-index: 500; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom cursor */
.cursor-dot, .cursor-ring{
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999;
  border-radius: 50%; transform: translate(-50%,-50%);
}
.cursor-dot{ width: 6px; height: 6px; background: var(--accent); }
.cursor-ring{ width: 34px; height: 34px; border: 1px solid rgba(77,232,203,0.5); transition: width .25s, height .25s, border-color .25s, background .25s; }
.cursor-ring.hover{ width: 60px; height: 60px; background: rgba(77,232,203,0.08); border-color: var(--accent); }

@media (max-width: 900px){
  .cursor-dot, .cursor-ring{ display: none; }
  body{ cursor: auto; }
}
@media (prefers-reduced-motion: reduce){
  .cursor-dot, .cursor-ring{ display: none; }
  body{ cursor: auto; }
}

/* progress bar */
.progress-bar{
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 998; transition: width 0.1s linear;
}

/* header */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 26px 0;
  transition: transform .5s ease, background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  padding: 16px 0;
  background: rgba(10,12,12,0.85);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.site-header.hidden{ transform: translateY(-100%); }

.header-inner{
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo{ font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em; font-size: 14px; }
.logo-accent{ color: var(--accent); }

.nav-links{ display: flex; gap: 40px; }
.nav-links a{
  font-size: 11px; letter-spacing: 0.15em; color: var(--muted);
  position: relative; padding-bottom: 4px;
}
.nav-links a span{ display:inline-block; }
.nav-links a::after{
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .35s ease;
}
.nav-links a:hover{ color: var(--cream); }
.nav-links a:hover::after{ width: 100%; }

.btn-ghost{
  font-size: 11px; letter-spacing: 0.12em; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 30px; display: flex; align-items: center; gap: 8px;
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover{ border-color: var(--accent); background: rgba(77,232,203,0.08); }
.btn-ghost i{ font-style: normal; color: var(--accent); transition: transform .3s; }
.btn-ghost:hover i{ transform: translateX(3px); }

@media (max-width: 800px){
  .nav-links{ display: none; }
  .header-inner{ padding: 0 24px; }
}

/* hero */
.hero{ position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#waveCanvas{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.32; }
.hero-glow{
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(77,232,203,0.1), transparent 65%);
  pointer-events: none; z-index: 1;
}

/* breathing orb — a literal inhale/exhale, centered behind the wordmark.
   The one signature motion moment of the page; everything else stays calm. */
.breath-orb{
  position: absolute; top: 50%; left: 50%; z-index: 1; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  transform: translate(-50%,-50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,232,203,0.22) 0%, rgba(77,232,203,0.07) 45%, transparent 72%);
  filter: blur(2px);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe{
  0%, 100%{ transform: translate(-50%,-50%) scale(0.94); opacity: 0.75; }
  50%{ transform: translate(-50%,-50%) scale(1.05); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .breath-orb{ animation: none; opacity: 0.9; }
}
.hero-inner{ position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 140px 48px 0; width: 100%; }
.eyebrow{ font-size: 11px; letter-spacing: 0.25em; color: var(--accent); margin-bottom: 26px; font-weight: 500; }
.hero-title{
  font-family: var(--serif); font-weight: 600; line-height: 0.98;
  font-size: clamp(44px, 8.5vw, 108px); color: var(--cream);
}
.hero-title .line{ display: block; overflow: hidden; }
.hero-title .line span{ display: block; }
.italic-accent{ font-style: italic; color: var(--accent-soft); font-weight: 500; }

.hero-foot{ margin-top: 46px; max-width: 640px; }
.hero-desc{ font-size: 16px; line-height: 1.7; color: #C7CCC6; font-weight: 300; }
.hero-desc-ar{ font-family: var(--arabic); direction: rtl; text-align: right; font-size: 15px; line-height: 1.9; color: var(--accent-soft); margin-top: 10px; }
.hero-actions{ display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }

.btn-solid{
  background: var(--accent); color: #062420; font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; padding: 15px 28px; border-radius: 30px;
  display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-solid:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(77,232,203,0.35); }
.btn-solid i{ font-style: normal; transition: transform .3s; }
.btn-solid:hover i{ transform: translateX(4px); }
.btn-solid.large{ padding: 20px 38px; font-size: 13px; }

.btn-link{ font-size: 12px; letter-spacing: 0.1em; color: var(--cream); position: relative; padding-bottom: 4px; }
.btn-link::after{ content:''; position:absolute; left:0; bottom:0; width:100%; height:1px; background: var(--muted); }
.btn-link:hover{ color: var(--accent-soft); }

.reveal-line span, .hero-desc span, .hero-desc-ar span, .security-lede span, .security-lede-ar span, .pilot-ar span{ display: inline-block; }

.scroll-cue{ position: absolute; bottom: 40px; left: 48px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue span{ font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.scroll-line{ width: 1px; height: 50px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line i{ position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrollMove 1.8s ease-in-out infinite; }
@keyframes scrollMove{ 0%{ top: -50%; } 50%{ top: 100%; } 100%{ top: 100%; } }

/* marquee */
.marquee-wrap{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee-track{
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted);
}
.marquee-track span{ color: var(--cream); }
.marquee-track i{ color: var(--accent); font-style: normal; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* stat strip */
.stat-section{ max-width: 1280px; margin: 0 auto; padding: 90px 48px 0; }
.stat-grid{ display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.stat-item{ padding: 34px 20px 0 0; border-right: 1px solid var(--line); }
.stat-item:last-child{ border-right: none; }
.stat-num{ font-family: var(--serif); font-weight: 600; font-size: clamp(28px,3.4vw,46px); color: var(--cream); }
.stat-unit{ color: var(--accent-soft); font-style: italic; }
.stat-label{ margin-top: .6em; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.stat-label .ar{ font-size: 13px; margin-top: .3em; }
@media (max-width: 800px){
  .stat-grid{ grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .stat-item:nth-child(2n){ border-right: none; }
  .stat-section{ padding: 60px 24px 0; }
}

/* section shared */
section{ position: relative; padding: 160px 48px; max-width: 1280px; margin: 0 auto; }
.section-head{ margin-bottom: 80px; }
.section-head h2{ font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); font-weight: 500; }
.section-dek{ margin-top: 22px; max-width: 56ch; font-size: 16px; line-height: 1.7; color: var(--muted); font-weight: 300; }
.section-dek-ar{ margin-top: 10px; max-width: 56ch; font-family: var(--arabic); direction: rtl; text-align: right; font-size: 15px; line-height: 1.9; color: var(--accent-soft); }
.reveal-mask{ display: block; overflow: hidden; }
.reveal-mask span{ display: block; transform: translateY(110%); }

/* index */
.index-grid{ border-top: 1px solid var(--line); }
.index-row{
  display: grid; grid-template-columns: 60px 1fr 200px; align-items: center; gap: 30px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s ease, background .4s ease;
  opacity: 0; transform: translateY(30px);
}
.index-row.in-view{ opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease, padding-left .4s ease, background .4s ease; }
.index-row:hover{ padding-left: 18px; background: rgba(77,232,203,0.04); }
.index-num{ font-family: var(--serif); font-size: 14px; color: var(--accent); }
.index-content h3{ font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.index-content p{ color: var(--muted); font-size: 14px; max-width: 520px; font-weight: 300; line-height: 1.6; }
.index-ar{ text-align: right; font-family: var(--arabic); direction: rtl; }
.index-ar .ar-title{ font-size: 12px; letter-spacing: .04em; color: var(--accent); display: block; margin-bottom: .35em; }
.index-ar .ar-body{ font-size: 14px; line-height: 1.7; color: var(--cream); }

@media (max-width: 900px){
  .method-grid{ grid-template-columns: 1fr; }
  .index-row{ grid-template-columns: 40px 1fr; row-gap: .6em; }
  .index-ar{ grid-column: 1/-1; text-align: right; }
}

/* method */
.method-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.method-card{
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color .4s ease, transform .4s ease;
  opacity: 0; transform: translateY(30px);
}
.method-card.in-view{ opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease, border-color .4s ease; }
.method-card:hover{ border-color: rgba(77,232,203,0.4); transform: translateY(-6px); }
.method-mark{ font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 22px; }
.method-card h3{ font-family: var(--serif); font-size: 26px; margin: 16px 0 12px; font-weight: 500; }
.method-card p{ color: var(--muted); font-size: 13.5px; line-height: 1.65; font-weight: 300; min-height: 60px; }
.method-card .ar{ font-size: 13px; margin-top: .3em; text-align: right; }
.method-line{ display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 22px; }
.method-line .bar{ width: 4px; background: var(--accent); border-radius: 2px; opacity: 0.65; animation: barPulse 1.4s ease-in-out infinite; animation-delay: calc(var(--d) * 0.15s); }
@keyframes barPulse{ 0%, 100%{ height: 8px; } 50%{ height: 32px; } }
@media (prefers-reduced-motion: reduce){ .method-line .bar{ animation: none; height: 18px; } }
@media (max-width: 1100px){ .method-grid{ grid-template-columns: 1fr 1fr; } }

/* security */
.security-section{ background: var(--bg-2); border-radius: 32px; }
.security-lede{ font-family: var(--serif); font-size: clamp(19px, 2.4vw, 27px); font-weight: 400; max-width: 780px; line-height: 1.5; color: #DDE3DB; }
.security-lede-ar{ font-family: var(--arabic); direction: rtl; text-align: right; font-size: 16px; line-height: 1.9; color: var(--accent-soft); max-width: 780px; margin-top: 14px; margin-bottom: 60px; }
.security-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.security-item{
  padding: 30px 22px; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .4s, background .4s;
  opacity: 0; transform: translateY(30px);
}
.security-item.in-view{ opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease, border-color .4s, background .4s; }
.security-item:hover{ border-color: rgba(77,232,203,0.4); background: rgba(77,232,203,0.04); }
.security-icon{ width: 40px; height: 40px; margin-bottom: 22px; }
.security-icon svg{ width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.security-item h4{ font-family: var(--serif); font-size: 17px; margin-bottom: 10px; font-weight: 500; }
.security-item p{ color: var(--muted); font-size: 12.5px; line-height: 1.6; font-weight: 300; }
.security-item .ar{ font-size: 12.5px; margin-top: .4em; text-align: right; }

@media (max-width: 900px){ .security-grid{ grid-template-columns: repeat(2, 1fr); } }

/* pilot / cta */
.pilot-section{ text-align: center; padding: 200px 48px; overflow: hidden; }
#pilotCanvas{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.pilot-inner{ position: relative; z-index: 2; }
.pilot-title{ font-family: var(--serif); font-size: clamp(40px, 7vw, 80px); font-weight: 500; line-height: 1.05; }
.pilot-dek{ margin: 22px auto 0; max-width: 52ch; font-size: 15px; line-height: 1.7; color: var(--muted); font-weight: 300; }
.pilot-ar{ margin-top: 14px; max-width: 56ch; margin-left: auto; margin-right: auto; font-family: var(--arabic); direction: rtl; font-size: 15px; line-height: 1.8; color: var(--accent-soft); }
.pilot-actions{ margin-top: 46px; display: flex; justify-content: center; }

/* footer */
.site-footer{ border-top: 1px solid var(--line); padding: 80px 48px 30px; }
.footer-inner{ max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-col p{ color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 14px; max-width: 340px; font-weight: 300; }
.footer-head{ font-size: 11px; letter-spacing: 0.15em; color: var(--accent); display: block; margin-bottom: 18px; }
.footer-col a{ display: block; font-size: 14px; color: #C7CCC6; margin-bottom: 12px; transition: color .3s; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

@media (max-width: 800px){
  .footer-inner{ grid-template-columns: 1fr; }
  section{ padding: 100px 24px; }
  .hero-inner{ padding: 120px 24px 0; }
}

/* general reveal utility (JS toggles .in-view) */
.reveal-up{ opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal-up.in-view{ opacity: 1; transform: translateY(0); }
.reveal-mask span, .reveal-line span{ transition: transform 1s cubic-bezier(.16,1,.3,1), opacity 1s ease; }
.reveal-mask.in-view span, .reveal-line.in-view span{ transform: translateY(0); opacity: 1; }
.reveal-line span{ opacity: 0; transform: translateY(20px); }

@media (prefers-reduced-motion: reduce){
  .reveal-up, .index-row, .method-card, .security-item{ opacity: 1; transform: none; transition: none; }
  .reveal-mask span, .reveal-line span{ opacity: 1; transform: none; transition: none; }
}

/* focus visibility (keyboard nav) */
a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

/* skip-to-content link: visually hidden until keyboard-focused */
.skip-link{
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  background: var(--accent); color: #062420; font-family: var(--sans);
  font-weight: 600; font-size: 13px; letter-spacing: .04em;
  padding: 12px 20px; border-radius: 8px;
  transition: top .25s ease;
}
.skip-link:focus{ top: 16px; }
