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

:root {

  --bg: #0A0A0C;
  --surface: #0F0D12;
  --surface-2: #121014;

  --border: #241E2C;

  --deep: #2E0B4E;
  --purple: #4B1878;
  --accent: #8A4FD1;

  --text: #EDEBF2;
  --soft: #B9AFCB;
  --muted: #6E6480;

  --ease:
    cubic-bezier(.2,.8,.2,1);

  --max: 1240px;
}

[data-theme="light"] {
  --bg: #F6F4F8;
  --surface: #FFFFFF;
  --surface-2: #EFECF3;

  --border: #D9D1E1;

  --deep: #EFE7F7;
  --purple: #6B2FA6;
  --accent: #7A3DC4;

  --text: #17131C;
  --soft: #4A4257;
  --muted: #776D89;
}

[data-theme="light"] body::before {
  opacity: .015;
}

[data-theme="light"] .footer {
  background: #EFECF3;
}


/* ================= LANGUAGE / RTL ================= */

[lang="en"] .lang-ar {
  display: none;
}

[lang="ar"] .lang-en {
  display: none;
}

[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Space Grotesk", sans-serif;
}

[dir="rtl"] pre,
[dir="rtl"] code,
[dir="rtl"] .terminal-body,
[dir="rtl"] .hero-terminal {
  direction: ltr;
  text-align: left;
}


/* ================= NAV TOGGLES ================= */

.nav-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--soft);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.nav-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}


html {
  scroll-behavior: smooth;
}


body {

  background: var(--bg);

  color: var(--text);

  font-family:
    "Space Grotesk",
    sans-serif;

  line-height: 1.5;

  overflow-x: hidden;

  cursor: none;

  transition: background .3s ease, color .3s ease;
}


body::before {

  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  z-index: 9999;

  opacity: .025;

  background-image:
    repeating-linear-gradient(
      0deg,
      #fff 0,
      #fff 1px,
      transparent 1px,
      transparent 4px
    );
}


a {

  color: inherit;

  text-decoration: none;
}


::selection {

  background: var(--accent);

  color: var(--bg);
}


/* =========================
   PAGE LOADER
========================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--bg);
  color: var(--accent);

  animation: loaderOut .7s ease 1.2s forwards;
  pointer-events: none;
}

.loader-mark {
  font-size: 42px;
  color: var(--accent);
  animation: loaderPulse 800ms infinite alternate;
}

.loader-text {
  margin-top: 15px;
  font-size: 12px;
  letter-spacing: 7px;
  color: var(--soft);
}

.loader-text span {
  color: var(--accent);
}

@keyframes loaderPulse {
  from { opacity: .35; transform: scale(.9); }
  to { opacity: 1; transform: scale(1.1); }
}

@keyframes loaderOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* =========================
   CURSOR
========================= */

.cursor-dot {

  position: fixed;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--accent);

  top: -2px;
  left: -2px;

  z-index: 10000;

  pointer-events: none;
}


.cursor-ring {

  position: fixed;

  width: 30px;
  height: 30px;

  margin: -15px 0 0 -15px;

  border: 1px solid
    rgba(138,79,209,.6);

  border-radius: 50%;

  z-index: 9999;

  pointer-events: none;

  transition:
    width .2s,
    height .2s,
    border-color .2s;
}


/* =========================
   NAV
========================= */

.navbar {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 72px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding:
    0 max(28px, calc((100vw - 1240px) / 2));

  background:
    rgba(10,10,12,.82);

  border-bottom:
    1px solid rgba(36,30,44,.8);

  backdrop-filter:
    blur(18px);

  z-index: 1000;
}


.brand {

  display: flex;

  align-items: center;

  gap: 10px;

  font-weight: 700;

  font-size: 15px;

  letter-spacing: 5px;
}


.brand-symbol {

  width: 29px;
  height: 29px;
}


.brand-symbol svg {

  width: 100%;
  height: 100%;
}


.nav-links {

  display: flex;

  gap: 27px;

  font-size: 9px;

  letter-spacing: 1.8px;
}


.nav-links a {

  position: relative;

  color: var(--muted);

  transition:
    color .2s;
}


.nav-links a:hover,
.nav-links a.active {

  color: var(--text);
}


.nav-links a.active::after {

  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -9px;

  height: 1px;

  background: var(--accent);
}


.nav-status {

  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--muted);

  font-size: 8px;

  letter-spacing: 1.5px;
}


.status-dot {

  width: 5px;
  height: 5px;

  background: var(--accent);

  border-radius: 50%;

  box-shadow:
    0 0 10px var(--accent);

  animation:
    pulse 1.8s infinite;
}


/* ================= MOBILE NAV ================= */

.mobile-menu-btn {

  display: none;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;

  width: 34px;
  height: 34px;

  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;

  cursor: pointer;
}

.mobile-menu-btn span {

  display: block;
  width: 16px;
  height: 1.5px;

  background: var(--text);

  transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {

  display: none;
  flex-direction: column;

  position: fixed;
  top: 64px;
  left: 0;
  right: 0;

  background: var(--bg);
  border-bottom: 1px solid var(--border);

  padding: 10px 20px 20px;

  z-index: 200;

  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;

  transition: transform .2s ease, opacity .2s ease;
}

.mobile-nav.open {

  display: flex;

  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {

  padding: 14px 4px;

  color: var(--muted);

  font-size: 13px;
  letter-spacing: 2px;

  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.active,
.mobile-nav a:hover {

  color: var(--text);
}


/* =========================
   HERO
========================= */

.hero {

  position: relative;

  min-height: 100vh;

  padding:
    125px max(28px, 7vw) 35px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  overflow: hidden;

  border-bottom:
    1px solid var(--border);
}


.grid {

  position: absolute;

  inset: 0;

  background-image:

    linear-gradient(
      rgba(138,79,209,.045) 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      rgba(138,79,209,.045) 1px,
      transparent 1px
    );

  background-size: 65px 65px;

  mask-image:
    radial-gradient(
      circle at 50% 50%,
      black,
      transparent 80%
    );

  animation:
    gridMove 18s linear infinite;
}


.noise {

  position: absolute;

  width: 600px;
  height: 600px;

  right: -180px;
  top: 20%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(75,24,120,.22),
      transparent 68%
    );

  filter: blur(15px);

  animation:
    breathe 5s ease-in-out infinite;
}


.hero-top {

  position: relative;

  display: flex;

  justify-content: space-between;

  z-index: 2;
}


.system-status {

  display: flex;

  gap: 20px;

  font-size: 8px;

  letter-spacing: 2px;
}


.status-label {

  color: var(--muted);
}


.status-online {

  color: var(--accent);
}


.status-online i {

  display: inline-block;

  width: 5px;
  height: 5px;

  margin-right: 5px;

  background: var(--accent);

  border-radius: 50%;
}


.coordinates {

  color: var(--muted);

  font-family: monospace;

  font-size: 8px;

  line-height: 1.6;

  text-align: right;
}


/* =========================
   HERO MAIN
========================= */

.hero-main {

  position: relative;

  display: grid;

  grid-template-columns:
    minmax(280px, .9fr)
    minmax(360px, 1.3fr)
    minmax(220px, .7fr);

  gap: 50px;

  align-items: center;

  max-width: 1350px;

  width: 100%;

  margin: auto;

  z-index: 2;
}


/* terminal */

.hero-terminal {

  background:
    rgba(15,13,18,.75);

  border:
    1px solid var(--border);

  border-radius: 5px;

  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0,0,0,.3);
}


.terminal-top {

  height: 38px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 0 13px;

  border-bottom:
    1px solid var(--border);

  color: var(--muted);

  font-family: monospace;

  font-size: 8px;
}


.terminal-lights {

  display: flex;

  gap: 5px;
}


.terminal-lights i {

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--purple);
}


.terminal-id {

  margin-left: auto;

  opacity: .5;
}


.terminal-content {

  min-height: 260px;

  padding: 24px;

  font-family: monospace;

  font-size: 10px;

  line-height: 2.1;
}


.prompt {

  color: var(--accent);

  margin-right: 7px;
}


.typing-cursor {

  color: var(--accent);

  animation:
    blink .8s infinite;
}


.terminal-output {

  margin-top: 25px;

  color: var(--soft);
}


.ok {

  color: var(--accent);

  margin-right: 5px;
}


.accent {

  color: var(--accent);
}


.muted {

  color: var(--muted);
}


/* title */

.hero-title {

  position: relative;
}


.eyebrow {

  margin-bottom: 20px;

  color: var(--accent);

  font-size: 8px;

  letter-spacing: 3px;
}


.hero-title h1 {

  font-size:
    clamp(55px, 6.2vw, 94px);

  line-height: .86;

  letter-spacing: -4px;

  font-weight: 700;
}


.hero-title h1 .break {

  color: var(--text);
}


.hero-title h1 .own {

  color: var(--accent);
}


.hero-title p {

  max-width: 450px;

  margin-top: 30px;

  color: var(--soft);

  font-size: 14px;

  line-height: 1.8;
}


.hero-actions {

  display: flex;

  gap: 12px;

  margin-top: 32px;
}


.btn {

  min-height: 44px;

  padding:
    0 18px;

  display: inline-flex;

  align-items: center;

  gap: 18px;

  border-radius: 4px;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 1.7px;

  transition:
    background .2s,
    border-color .2s,
    color .2s;
}


.btn b {

  font-size: 14px;

  font-weight: 400;
}


.btn.primary {

  background: var(--accent);

  color: #170B20;
}


.btn.primary:hover {

  background: #9a61df;
}


.btn.secondary {

  border:
    1px solid var(--border);

  color: var(--soft);
}


.btn.secondary:hover {

  border-color: var(--accent);

  color: var(--text);
}


/* logo */

.hero-logo {

  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;
}


.hero-logo svg {

  width:
    min(22vw, 310px);

  filter:
    drop-shadow(
      0 0 40px
      rgba(138,79,209,.2)
    );

  animation:
    logoFloat 5s ease-in-out infinite;
}


.logo-glow {

  position: absolute;

  width: 230px;
  height: 230px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(138,79,209,.13),
      transparent 68%
    );

  filter: blur(10px);
}


.logo-label {

  margin-top: 20px;

  color: var(--muted);

  font-size: 7px;

  letter-spacing: 3px;
}


/* hero bottom */

.hero-bottom {

  position: relative;

  display: grid;

  grid-template-columns:
    1fr 1fr 1fr 2fr;

  align-items: end;

  gap: 30px;

  z-index: 2;
}


.hero-bottom div {

  display: flex;

  flex-direction: column;

  gap: 5px;
}


.hero-bottom span {

  color: var(--muted);

  font-size: 7px;

  letter-spacing: 2px;
}


.hero-bottom strong {

  font-size: 8px;

  letter-spacing: 1px;
}


.online {

  color: var(--accent);
}


.scroll {

  align-items: flex-end;

  color: var(--muted);

  font-size: 7px;

  letter-spacing: 3px;
}


/* =========================
   SECTION
========================= */

.section {

  max-width: var(--max);

  margin: auto;

  padding:
    130px 35px;

  border-bottom:
    1px solid var(--border);
}


.section-header {

  display: flex;

  align-items: center;

  gap: 20px;

  margin-bottom: 65px;
}


.section-header span {

  color: var(--accent);

  font-family: monospace;

  font-size: 10px;
}


.section-header h2 {

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 3px;

  font-weight: 500;
}


/* =========================
   INTRO
========================= */

.intro-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;
}


.mini-terminal {

  margin-bottom: 25px;

  font-family: monospace;

  font-size: 9px;

  color: var(--muted);
}


.mini-terminal span:first-child {

  color: var(--accent);

  margin-right: 8px;
}


.intro-title h2 {

  font-size:
    clamp(42px, 5vw, 70px);

  line-height: .95;

  letter-spacing: -3px;
}


.intro-title h2 span {

  color: var(--accent);
}


.intro-content {

  padding-top: 35px;
}


.intro-content p {

  max-width: 520px;

  color: var(--soft);

  font-size: 16px;

  line-height: 1.9;
}


.intro-content .arabic {

  margin-top: 45px;

  font-family:
    "IBM Plex Sans Arabic";

  font-size: 25px;

  color: var(--text);
}


.tagline {

  color: var(--muted);

  font-size: 8px;

  letter-spacing: 3px;
}


/* =========================
   SERVICES
========================= */

.service-grid {

  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  border-top:
    1px solid var(--border);

  border-left:
    1px solid var(--border);
}


.service-card {

  position: relative;

  min-height: 330px;

  padding: 32px;

  border-right:
    1px solid var(--border);

  border-bottom:
    1px solid var(--border);

  transition:
    background .25s,
    transform .25s;
}


.service-card:hover {

  background:
    linear-gradient(
      135deg,
      rgba(75,24,120,.12),
      transparent
    );
}


.service-top {

  display: flex;

  justify-content: space-between;

  color: var(--muted);

  font-size: 8px;

  letter-spacing: 2px;
}


.service-icon {

  margin-top: 50px;

  color: var(--accent);

  font-family: monospace;

  font-size: 25px;
}


.service-card h3 {

  margin-top: 20px;

  font-size: 24px;

  letter-spacing: 1px;
}


.service-card p {

  max-width: 430px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.8;
}


.service-link {

  position: absolute;

  left: 32px;
  bottom: 28px;

  color: var(--accent);

  font-size: 8px;

  letter-spacing: 2px;
}


/* =========================
   RESEARCH
========================= */

.research-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  align-items: center;
}


.lab-status {

  color: var(--accent);

  font-family: monospace;

  font-size: 8px;

  letter-spacing: 2px;
}


.research-copy h2 {

  margin-top: 25px;

  font-size:
    clamp(44px, 5vw, 72px);

  line-height: .9;

  letter-spacing: -3px;
}


.research-copy h2 span {

  color: var(--accent);
}


.research-copy p {

  max-width: 500px;

  margin-top: 30px;

  color: var(--soft);

  font-size: 14px;

  line-height: 1.9;
}


.text-button {

  display: inline-block;

  margin-top: 30px;

  color: var(--accent);

  font-size: 9px;

  letter-spacing: 2px;
}


.research-console {

  overflow: hidden;

  background: #080809;

  border:
    1px solid var(--border);

  border-radius: 5px;

  box-shadow:
    0 30px 80px rgba(0,0,0,.35);
}


.console-header {

  height: 40px;

  padding: 0 15px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom:
    1px solid var(--border);

  font-family: monospace;

  font-size: 8px;

  color: var(--muted);
}


.console-header div {

  display: flex;

  gap: 5px;
}


.console-header i {

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--purple);
}


.console-body {

  min-height: 360px;

  padding: 28px;

  font-family: monospace;

  font-size: 10px;

  line-height: 2.3;
}


.console-body .prompt {

  margin-right: 5px;
}


.dim {

  color: var(--muted);
}


.progress {

  height: 2px;

  margin:
    10px 0 15px;

  background:
    var(--border);
}


.progress span {

  display: block;

  width: 72%;

  height: 100%;

  background: var(--accent);

  animation:
    progress 2s ease-in-out infinite alternate;
}


.console-body b {

  color: var(--accent);

  font-weight: 400;
}


.accent-text {

  color: var(--accent);
}


.terminal-cursor {

  color: var(--accent);

  animation:
    blink .8s infinite;
}


/* =========================
   CTF
========================= */

.ctf-panel {

  position: relative;

  min-height: 470px;

  padding: 70px;

  display: flex;

  align-items: center;

  overflow: hidden;

  border:
    1px solid var(--border);

  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(75,24,120,.2),
      transparent 40%
    ),
    var(--surface);
}


.ctf-content {

  position: relative;

  z-index: 2;
}


.ctf-content h2 {

  margin-top: 20px;

  font-size:
    clamp(65px, 8vw, 110px);

  line-height: .8;

  letter-spacing: -5px;
}


.ctf-content h2 span {

  color: var(--accent);
}


.ctf-content p {

  max-width: 550px;

  margin:
    30px 0;

  color: var(--soft);

  font-size: 14px;

  line-height: 1.9;
}


.ctf-display {

  position: absolute;

  right: 9%;

  display: flex;

  align-items: center;

  gap: 30px;

  transform:
    rotate(-12deg);
}


.hex {

  width: 190px;
  height: 220px;

  display: grid;

  place-items: center;

  background:
    linear-gradient(
      135deg,
      var(--purple),
      transparent
    );

  clip-path:
    polygon(
      50% 0,
      100% 25%,
      100% 75%,
      50% 100%,
      0 75%,
      0 25%
    );

  font-size: 60px;

  color: var(--accent);

  opacity: .5;
}


.binary {

  color: var(--accent);

  font-family: monospace;

  font-size: 17px;

  line-height: 1.7;

  opacity: .2;
}


/* =========================
   WHY
========================= */

.why-grid {

  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  border-top:
    1px solid var(--border);

  border-left:
    1px solid var(--border);
}


.why-grid article {

  min-height: 280px;

  padding: 30px;

  border-right:
    1px solid var(--border);

  border-bottom:
    1px solid var(--border);

  transition:
    background .25s;
}


.why-grid article:hover {

  background: var(--surface);
}


.number {

  color: var(--purple);

  font-family: monospace;

  font-size: 11px;
}


.why-grid h3 {

  margin-top: 65px;

  font-size: 21px;

  line-height: 1;

  letter-spacing: 1px;
}


.why-grid p {

  margin-top: 18px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.8;
}


/* =========================
   FINAL CTA
========================= */

.final-cta {

  position: relative;

  min-height: 620px;

  display: grid;

  place-items: center;

  overflow: hidden;

  text-align: center;

  border-bottom:
    1px solid var(--border);
}


.cta-grid {

  position: absolute;

  inset: 0;

  background-image:

    linear-gradient(
      rgba(138,79,209,.05) 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      rgba(138,79,209,.05) 1px,
      transparent 1px
    );

  background-size: 55px 55px;

  mask-image:
    radial-gradient(
      circle,
      black,
      transparent 75%
    );
}


.cta-content {

  position: relative;

  z-index: 2;
}


.cta-content > span {

  color: var(--accent);

  font-family: monospace;

  font-size: 9px;

  letter-spacing: 3px;
}


.cta-content h2 {

  margin-top: 25px;

  font-size:
    clamp(50px, 8vw, 100px);

  line-height: .85;

  letter-spacing: -4px;
}


.cta-content h2 em {

  color: var(--accent);

  font-style: normal;
}


.cta-content p {

  margin:
    30px auto;

  color: var(--soft);

  font-size: 14px;
}


/* =========================
   FOOTER
========================= */

.footer {

  padding:
    70px 35px 25px;

  background: #080809;
}


.footer-main {

  max-width: var(--max);

  margin: auto;

  display: flex;

  justify-content: space-between;

  gap: 80px;
}


.footer-brand p {

  margin-top: 18px;

  color: var(--muted);

  font-size: 10px;
}


.footer-links {

  display: flex;

  gap: 100px;
}


.footer-links div {

  display: flex;

  flex-direction: column;

  gap: 10px;
}


.footer-links span {

  margin-bottom: 8px;

  color: var(--accent);

  font-size: 8px;

  letter-spacing: 2px;
}


.footer-links a {

  color: var(--muted);

  font-size: 10px;

  transition:
    color .2s;
}


.footer-links a:hover {

  color: var(--text);
}


.footer-links .social-tbd {

  color: var(--muted);

  font-size: 10px;

  opacity: .5;

  cursor: default;
}


.footer-bottom {

  max-width: var(--max);

  margin:
    65px auto 0;

  padding-top: 20px;

  display: flex;

  justify-content: space-between;

  border-top:
    1px solid var(--border);

  color: var(--muted);

  font-size: 8px;

  letter-spacing: 1px;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes blink {

  0%, 45% {
    opacity: 1;
  }

  46%, 100% {
    opacity: 0;
  }
}


@keyframes pulse {

  0%,100% {
    opacity: .4;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}


@keyframes logoFloat {

  0%,100% {
    transform:
      translateY(0)
      rotate(0deg);
  }

  50% {
    transform:
      translateY(-12px)
      rotate(1deg);
  }
}


@keyframes breathe {

  0%,100% {
    transform: scale(.9);
    opacity: .5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}


@keyframes gridMove {

  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      65px 65px,
      65px 65px;
  }
}


@keyframes progress {

  from {
    width: 55%;
  }

  to {
    width: 90%;
  }
}


/* =========================
   REVEAL
========================= */

.reveal {

  opacity: 0;

  transform:
    translateY(35px);

  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
}


.reveal.visible {

  opacity: 1;

  transform:
    translateY(0);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .nav-links {

    gap: 15px;
  }

  .hero-main {

    grid-template-columns:
      .8fr 1.3fr;

  }

  .hero-logo {

    display: none;
  }

  .hero-title h1 {

    font-size:
      clamp(55px, 8vw, 85px);
  }

  .why-grid {

    grid-template-columns:
      repeat(2,1fr);
  }

}


/* Tablet and below: switch to the mobile nav (iPad-width
   windows previously felt cramped with all six links +
   toggles + status in one row). */
@media (max-width: 1024px) {

  .navbar {

    padding: 0 20px;
  }

  .nav-links,
  .nav-status {

    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Any touch device (phone, iPad, tablet) — hide the custom
   mouse-follower cursor regardless of screen width. */
@media (hover: none), (pointer: coarse) {

  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (max-width: 800px) {

  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .hero {

    padding:
      115px 20px 30px;
  }

  .hero-main {

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .hero-terminal {

    order: 2;
  }

  .hero-title {

    order: 1;
  }

  .hero-title h1 {

    font-size:
      clamp(52px, 14vw, 80px);

    letter-spacing: -3px;
  }

  .hero-bottom {

    grid-template-columns:
      repeat(3,1fr);

    gap: 15px;
  }

  .hero-bottom .scroll {

    display: none;
  }

  .intro-grid,
  .research-grid {

    grid-template-columns: 1fr;

    gap: 45px;
  }

  .service-grid {

    grid-template-columns: 1fr;
  }

  .ctf-panel {

    padding: 45px 30px;
  }

  .ctf-display {

    right: -100px;

    opacity: .25;
  }

  .why-grid {

    grid-template-columns: 1fr;
  }

  .footer-main {

    flex-direction: column;
  }

  .footer-links {

    gap: 60px;
  }

  .footer-bottom {

    flex-direction: column;

    gap: 12px;
  }

}


@media (max-width: 500px) {

  .section {

    padding:
      90px 20px;
  }

  .section-header {

    margin-bottom: 45px;
  }

  .hero-actions {

    flex-direction: column;

    align-items: stretch;

    max-width: 280px;
  }

  .hero-bottom {

    grid-template-columns:
      repeat(3,1fr);
  }

  .hero-bottom strong {

    font-size: 7px;
  }

  .terminal-content {

    padding: 18px;

    font-size: 9px;
  }

  .intro-title h2 {

    font-size: 48px;
  }

  .research-copy h2 {

    font-size: 48px;
  }

  .ctf-content h2 {

    font-size: 70px;
  }

  .final-cta {

    min-height: 520px;
  }

  .cta-content h2 {

    font-size: 57px;
  }

  .footer-links {

    gap: 40px;
  }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;

    scroll-behavior: auto !important;

    transition-duration: .01ms !important;
  }
}
