/* ========================================================
   TAJAWAL — self-hosted webfonts (fonts/*.woff2).
   Google Fonts is often blocked or slow; shipping the files
   locally guarantees the brand typeface renders instantly,
   offline, on every page. These rules come after the Google
   <link> in the HTML, so the local files win for the same
   family + weight + unicode-range.
   ======================================================== */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/tajawal-arabic-300-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/tajawal-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/tajawal-arabic-800-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/tajawal-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/tajawal-arabic-900-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/tajawal-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================================
   GLOBAL DESIGN TOKENS — OCTOSRC LOGO VIOLET & CALM MONOCHROME
   Focused on eye comfort, black & white, and the logo violet accent, calm and glare-free.
   ======================================================== */
:root {
  --font-tajawal: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Light Theme Variables — Calm, Anti-glare Soft Slate & Monochrome (gentle on the eyes) */
  --bg-primary: #eaeef4;        /* Soft muted slate — deeper, zero glare */
  --bg-surface: #f1f4f8;        /* Calm off-white for cards (no bright white) */
  --bg-elevated: #e4e8f0;       /* Soft cool elevated panels */
  --bg-overlay: rgba(234, 238, 244, 0.94);
  
  --text-primary: #0f172a;      /* Slate 900: Crisp deep slate-black */
  --text-secondary: #334155;    /* Slate 700: High readability cool charcoal */
  --text-muted: #64748b;        /* Slate 500: Calm secondary tone */
  --text-inverse: #ffffff;
  
  --brand-dark: #0f172a;
  --brand-dark-hover: #020617;
  
  /* Brand Accent — OctoSRC logo violet */
  --brand-accent: #7c3aed;       /* Violet 600 — logo purple (light mode) */
  --brand-accent-hover: #6d28d9;
  --brand-accent-light: rgba(124, 58, 237, 0.08);
  --brand-accent-text: #6d28d9;
  
  --border-light: #e2e8f0;       /* Slate 200 */
  --border-subtle: rgba(15, 23, 42, 0.06);

  --footer-bg: #0d0918;
  
  --accent-lime: #a78bfa;
  --accent-lime-hover: #8b5cf6;
}

/* ========================================================
   DARK THEME VARIABLES — VIOLET-BLACK, CRISP WHITE & LOGO VIOLET
   Retinted from blue-obsidian to a violet-black that matches the
   new logo palette. Ultra-comfortable with zero harsh glare.
   ======================================================== */
html.dark {
  --bg-primary: #0d0918;        /* Deep Obsidian Cool Slate — easy on the eye */
  --bg-surface: #15102a;        /* Cool Slate Surface */
  --bg-elevated: #1a1433;       /* Elevated violet card */
  --bg-overlay: rgba(13, 9, 24, 0.94);
  
  --text-primary: #f8fafc;      /* Slate 50: Crisp soft white */
  --text-secondary: #cbd5e1;    /* Slate 300: Comfortable reading gray */
  --text-muted: #94a3b8;        /* Slate 400 */
  --text-inverse: #0d0918;
  
  --brand-dark: #ffffff;
  --brand-dark-hover: #f1f5f9;
  
  /* Brand Accent — OctoSRC logo violet */
  --brand-accent: #a78bfa;       /* Violet 400 — logo purple (dark mode) */
  --brand-accent-hover: #c4b5fd; /* Violet 300 */
  --brand-accent-light: rgba(167, 139, 250, 0.12);
  --brand-accent-text: #a78bfa;
  
  --border-light: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --footer-bg: #070511;
  
  --accent-lime: #a78bfa;
  --accent-lime-hover: #c4b5fd;
}

* {
  font-family: var(--font-tajawal);
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: clip;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: clip;
  min-height: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Navbar — base is transparent (glass pill floats on top;
   see the ORTECH-STYLE PILL NAVBAR block for the full design). */
.unified-navbar {
  background-color: transparent !important;
  border-bottom: none !important;
}

/* ========================================================
   ROBUST DARK THEME ADAPTERS & COMPONENT ADAPTERS
   ======================================================== */
html.dark {
  color-scheme: dark;
}

html.dark,
html.dark body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* Background Adapters */
html.dark .bg-\[\#fbfbfb\],
html.dark .bg-slate-50 {
  background-color: var(--bg-primary) !important;
}

html.dark .bg-white {
  background-color: var(--bg-surface) !important;
}

html.dark .bg-gray-50,
html.dark .bg-gray-100,
html.dark .bg-\[\#f8faf9\] {
  background-color: var(--bg-elevated) !important;
  border-color: var(--border-light) !important;
}

html.dark .bg-gray-200 {
  background-color: #1e2638 !important;
}

/* Typography Adapters */
html.dark .text-gray-900 {
  color: var(--text-primary) !important;
}

html.dark .text-gray-800 {
  color: #f1f5f9 !important;
}

html.dark .text-gray-700 {
  color: var(--text-secondary) !important;
}

html.dark .text-gray-600 {
  color: #cbd5e1 !important;
}

html.dark .text-gray-500 {
  color: var(--text-muted) !important;
}

html.dark .text-gray-400 {
  color: #64748b !important;
}

/* Hover typography */
html.dark .hover\:text-black:hover {
  color: #ffffff !important;
}

html.dark .group:hover .group-hover\:text-gray-700 {
  color: #ffffff !important;
}

html.dark .group:hover .group-hover\:text-brand-gold {
  color: var(--brand-accent) !important;
}

/* ========================================================
   OVERRIDE ALL HARSH WARM ACCENTS INTO SOOTHING COOL ACCENTS
   ======================================================== */
.text-brand-gold,
.text-amber-500,
.text-amber-400 {
  color: var(--brand-accent) !important;
}

.text-brand-lime {
  color: var(--brand-accent) !important;
}

/* Primary Action Buttons (Crisp Monochrome Black & White with calm high-contrast readability) */
button.bg-brand-gold,
a.bg-brand-gold,
.bg-brand-lime {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  transition: all 0.25s ease !important;
}

button.bg-brand-gold:hover,
a.bg-brand-gold:hover,
.hover\:bg-brand-goldHover:hover,
.bg-brand-lime:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

html.dark button.bg-brand-gold,
html.dark a.bg-brand-gold,
html.dark .bg-brand-lime {
  background-color: #f8fafc !important;
  color: #0d0918 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

html.dark button.bg-brand-gold:hover,
html.dark a.bg-brand-gold:hover,
html.dark .hover\:bg-brand-goldHover:hover,
html.dark .bg-brand-lime:hover {
  background-color: #e2e8f0 !important;
  color: #000000 !important;
}

/* Decorative / Accent Dots, Badges & Icons with .bg-brand-gold */
div.bg-brand-gold,
span.bg-brand-gold,
i.bg-brand-gold,
.bg-brand-gold:not(button):not(a) {
  background-color: var(--brand-accent) !important;
  color: #0d0918 !important;
}

/* Brand Violet Accent Buttons */
.bg-brand-cool,
.bg-brand-accent {
  background-color: var(--brand-accent) !important;
  color: #0d0918 !important;
}

.bg-brand-cool:hover,
.bg-brand-accent:hover {
  background-color: var(--brand-accent-hover) !important;
}

.border-brand-gold,
.border-amber-500,
.border-amber-500\/50,
.border-amber-500\/30,
.border-amber-500\/20 {
  border-color: var(--brand-accent) !important;
}

/* Badges & Chips */
.bg-amber-500\/10,
.bg-amber-100,
html.dark .bg-amber-100 {
  background-color: var(--brand-accent-light) !important;
  color: var(--brand-accent) !important;
  border-color: rgba(167, 139, 250, 0.22) !important;
}

.text-amber-900,
.text-amber-800,
.text-amber-600,
html.dark .text-amber-900,
html.dark .text-amber-800,
html.dark .text-amber-300 {
  color: var(--brand-accent) !important;
}

/* Borders and Dividers */
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300 {
  border-color: var(--border-light) !important;
}

html.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border-light) !important;
}

/* Form Controls (Inputs, Selects, Textareas) in Dark Mode */
html.dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html.dark select,
html.dark textarea {
  background-color: var(--bg-elevated) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.25) !important;
}

html.dark select option {
  background-color: #15102a !important;
  color: #ffffff !important;
}

/* Consultation Modal in Dark Mode */
html.dark #consultation-modal .bg-white {
  background-color: var(--bg-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(167, 139, 250, 0.08) !important;
}

html.dark #consultation-modal button[type="submit"] {
  background-color: var(--brand-accent) !important;
  color: #0d0918 !important;
  font-weight: 700 !important;
}

html.dark #consultation-modal button[type="submit"]:hover {
  background-color: var(--brand-accent-hover) !important;
}

html.dark #consultation-modal .bg-gray-100 {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

/* Methodology Process Steps in Dark Mode */
html.dark #how-we-work .w-11.h-11.bg-gray-900 {
  background-color: var(--bg-elevated) !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  color: var(--brand-accent) !important;
}

/* Next / Action Buttons with bg-gray-900 in Dark Mode */
html.dark #how-we-work button.bg-gray-900 {
  background-color: #ffffff !important;
  color: #0d0918 !important;
}

html.dark #how-we-work button.bg-gray-900:hover {
  background-color: #e2e8f0 !important;
}

/* Floating Consultation Badge in Dark Mode */
html.dark .floating-badge {
  background-color: #111624 !important;
  border: 2px solid var(--brand-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.25) !important;
}

/* Mobile Dropdown Menu in Dark Mode — keep the frosted glass */
html.dark .octo-mobile-menu {
  background-color: rgba(10, 14, 24, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Unified Footer */
.unified-footer {
  background-color: var(--footer-bg) !important;
}
/* ========================================================
   PREMIUM FOOTER · OCTOSRC Command Center
   Adaptive: light panel in light mode, obsidian in dark.
   ======================================================== */
.octo-footer {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  color: #1e293b;
  background:
    radial-gradient(1100px 480px at 50% -12%, rgba(124, 58, 237, 0.10), transparent 62%),
    linear-gradient(180deg, #eef1f7 0%, #e2e7ef 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.09);
}

html.dark .octo-footer {
  color: #e7ebf6;
  background:
    radial-gradient(1100px 480px at 50% -12%, rgba(167, 139, 250, 0.16), transparent 62%),
    radial-gradient(700px 500px at 108% 120%, rgba(167, 139, 250, 0.10), transparent 60%),
    linear-gradient(180deg, #0b1120 0%, #070c18 100%);
  border-top-color: rgba(148, 163, 184, 0.16);
}

/* Grid texture + vignette */
.octo-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000 25%, transparent 78%);
  mask-image: radial-gradient(90% 70% at 50% 20%, #000 25%, transparent 78%);
  pointer-events: none;
}

html.dark .octo-footer::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

/* Giant outline watermark */
.octo-footer__watermark {
  position: absolute;
  left: 50%;
  bottom: -0.16em;
  transform: translateX(-50%);
  font-size: clamp(110px, 17vw, 240px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.8;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.09);
  user-select: none;
  pointer-events: none;
}

html.dark .octo-footer__watermark {
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.10);
}

@supports not (-webkit-text-stroke: 1px black) {
  .octo-footer__watermark { color: rgba(15, 23, 42, 0.05); }
  html.dark .octo-footer__watermark { color: rgba(148, 163, 184, 0.045); }
}

.octo-footer__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 5vw, 64px) 26px;
}

/* ---------- CTA band ---------- */
.octo-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: clamp(30px, 3.4vw, 44px);
  margin-bottom: clamp(30px, 3.4vw, 44px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

html.dark .octo-footer__cta { border-bottom-color: rgba(148, 163, 184, 0.14); }

.octo-footer__cta-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #0f172a;
  text-wrap: balance;
}

html.dark .octo-footer__cta-title { color: #f8fafc; }

.octo-footer__cta-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #475569;
  max-width: 46ch;
}

html.dark .octo-footer__cta-desc { color: #94a3b8; }

.octo-footer__cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding-inline: 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(140deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%);
  border: 1px solid rgba(167, 139, 250, 0.55);
  box-shadow:
    0 18px 38px -16px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, filter 0.4s ease;
}

.octo-footer__cta-btn i.fa-whatsapp { font-size: 22px; }

.octo-footer__cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 22px 44px -16px rgba(139, 92, 246, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.octo-footer__cta-btn:active { transform: translateY(0) scale(0.97); }

/* ---------- Main grid ---------- */
.octo-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 40px clamp(28px, 4vw, 56px);
}

.octo-footer__brand { display: flex; flex-direction: column; gap: 14px; }

.octo-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: max-content; }

.octo-footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.octo-footer__logo-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #0f172a;
  line-height: 1.1;
}

html.dark .octo-footer__logo-name { color: #f8fafc; }

.octo-footer__logo-tag {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6d28d9;
}

html.dark .octo-footer__logo-tag { color: #c4b5fd; }

.octo-footer__statement {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #64748b;
}

.octo-footer__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }

.octo-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #334155;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 14px;
  text-decoration: none;
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

html.dark .octo-footer__social {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.14);
}

.octo-footer__social:hover {
  color: #0f172a;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

html.dark .octo-footer__social:hover {
  color: #f8fafc;
  background: rgba(196, 181, 253, 0.12);
  border-color: rgba(196, 181, 253, 0.35);
}

.octo-footer__social--wa:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
}

.octo-footer__mail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  width: max-content;
  transition: color .3s ease;
}

html.dark .octo-footer__mail { color: #94a3b8; }
.octo-footer__mail:hover { color: #6d28d9; }
html.dark .octo-footer__mail:hover { color: #c4b5fd; }

/* Columns */
.octo-footer__col h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

html.dark .octo-footer__col h4 {
  color: #e2e8f0;
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.octo-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }

.octo-footer__col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  transition: color .3s ease;
}

html.dark .octo-footer__col a { color: #94a3b8; }

.octo-footer__col a::after {
  content: "›";
  font-size: 14px;
  line-height: 1;
  color: #7c3aed;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s ease, transform .3s ease;
}

html.dark .octo-footer__col a::after { color: #a78bfa; }

.octo-footer__col a:hover { color: #0f172a; }
html.dark .octo-footer__col a:hover { color: #f8fafc; }
.octo-footer__col a:hover::after { opacity: 1; transform: translateX(0); }

/* ---------- Status bar ---------- */
.octo-footer__status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 3vw, 40px);
  padding-block: 14px;
  border-block: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
}

html.dark .octo-footer__status {
  border-block-color: rgba(148, 163, 184, 0.14);
  color: #a7b3c7;
}

.octo-footer__status-group { display: inline-flex; align-items: center; gap: 9px; color: #1e293b; }
html.dark .octo-footer__status-group { color: #d7e0ee; }

.octo-footer__status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: octo-footer-beat 2.4s ease-out infinite;
}

html.dark .octo-footer__status-dot { background: #34d399; }

@keyframes octo-footer-beat {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.octo-footer__status-sep { width: 1px; height: 14px; background: rgba(15, 23, 42, 0.15); }
html.dark .octo-footer__status-sep { background: rgba(148, 163, 184, 0.22); }

.octo-footer__status-item { display: inline-flex; align-items: center; gap: 8px; }
.octo-footer__status-item i { color: #7c3aed; font-size: 11px; }
html.dark .octo-footer__status-item i { color: #a78bfa; }

/* ---------- Bottom bar ---------- */
.octo-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding-top: clamp(18px, 2vw, 26px);
  font-size: 10.5px;
  line-height: 1.6;
  color: #64748b;
}

.octo-footer__founders { color: #475569; font-weight: 600; }
html.dark .octo-footer__founders { color: #7c8aa0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .octo-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 32px; }
  .octo-footer__brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
  .octo-footer__statement { width: 100%; }
}

@media (max-width: 640px) {
  .octo-footer { margin-top: 3rem; }
  .octo-footer__cta { flex-direction: column; align-items: flex-start; }
  .octo-footer__cta-btn { width: 100%; justify-content: center; }
  .octo-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .octo-footer__brand { flex-direction: column; align-items: flex-start; }
  .octo-footer__status { gap: 10px; font-size: 10px; }
  .octo-footer__status-sep { display: none; }
  .octo-footer__bottom { flex-direction: column; align-items: flex-start; }
  .octo-footer__watermark { font-size: 26vw; bottom: -0.22em; }
}


/* Custom Scrollbar — Calm & Cool */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent);
}

/* Selection */
::selection {
  background: rgba(167, 139, 250, 0.3);
  color: #ffffff;
}

/* Image zoom container */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* Floating Consultation Badge */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.35);
  }
}

.floating-badge {
  animation: softPulse 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.floating-badge:hover {
  animation: none;
  transform: scale(1.08);
}

/* Header utility buttons */
.header-pill-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

html.dark .header-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-light);
  color: #ffffff;
}

.header-pill-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--text-primary);
}

html.dark .header-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* RTL Gradients */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .hero-gradient-overlay {
  background: linear-gradient(270deg, rgba(9, 13, 22, 0.96) 0%, rgba(9, 13, 22, 0.85) 45%, rgba(9, 13, 22, 0.35) 78%, rgba(9, 13, 22, 0.1) 100%) !important;
}

[dir="ltr"] .hero-gradient-overlay {
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.96) 0%, rgba(9, 13, 22, 0.85) 45%, rgba(9, 13, 22, 0.35) 78%, rgba(9, 13, 22, 0.1) 100%) !important;
}

/* ========================================================
   3D CAROUSEL & PORTFOLIO STYLES
   ======================================================== */
.carousel-3d-stage {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.carousel-3d-track {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-3d-card {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-3d-card.active {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(167, 139, 250, 0.25);
  border-color: var(--brand-accent) !important;
}

/* Glassmorphic Slide-over Drawer */
.project-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.project-drawer.closed {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

[dir="rtl"] .project-drawer.closed {
  transform: translateX(100%);
}

.project-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================
   INTERACTIVE TEAM SHOWCASE STYLES
   ======================================================== */
.team-portrait-mask {
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.team-bg-portrait {
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: opacity, transform;
}

.team-bg-portrait.switching {
  opacity: 0;
  transform: scale(0.96);
}

.team-watermark-text {
  letter-spacing: 0.12em;
  will-change: transform, opacity;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-watermark-text.switching {
  opacity: 0;
  transform: translateY(-12px);
}

.team-avatar-item {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-avatar-item:hover:not(.active) {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(167, 139, 250, 0.4) !important;
}

.team-avatar-item.active {
  transform: scale(1.15);
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 25px rgba(167, 139, 250, 0.45);
}

html.dark .team-avatar-item.active {
  box-shadow: 0 0 0 3px #0d0918, 0 0 25px rgba(167, 139, 250, 0.5);
}

.team-card-transition {
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.team-card-transition.switching {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

/* ========================================================
   PILLARS & BADGES
   ======================================================== */
.pillar-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 25px rgba(167, 139, 250, 0.1);
}

html.dark .pillar-card:hover {
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.35) !important;
}

.timeline-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  transform: translateY(-4px);
}


/* ========================================================
   CONTACT & ESTIMATOR CHIPS
   ======================================================== */
.contact-chip-input:checked + label,
.est-pill.active {
  background-color: rgba(167, 139, 250, 0.15) !important;
  border-color: var(--brand-accent) !important;
  color: var(--brand-accent) !important;
}

html.dark .contact-chip-input:checked + label {
  background-color: rgba(167, 139, 250, 0.2) !important;
  border-color: var(--brand-accent) !important;
  color: #a78bfa !important;
}

.pgp-terminal-box {
  background: #0d0918;
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.faq-accordion-header {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-content {
  max-height: 400px;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-icon {
  transform: rotate(180deg);
}

.pulse-node {
  animation: pulseNodeAnim 2.5s infinite;
}

@keyframes pulseNodeAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(167, 139, 250, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
  }
}

.contact-map-grayscale {
  filter: grayscale(100%) contrast(105%) brightness(95%);
}

html.dark .contact-map-grayscale {
  filter: grayscale(100%) invert(90%) hue-rotate(180deg) contrast(110%);
}

/* ========================================================
   ORTECH-STYLE FLOATING PILL NAVBAR
   A glass capsule that floats at the top of every page:
   • transparent at the very top of the page
   • gains frosted glass + shadow once you scroll
   • shrinks its padding smoothly (0.7s expo easing)
   • hides on scroll-down, glides back on scroll-up
   • nav links "roll" up on hover (overflow-hidden trick)
   Stable order in both languages: logo left · links center ·
   tools right (row stays LTR; links follow page direction).
   ======================================================== */
.unified-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 10px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.unified-navbar.is-scrolled {
  padding-block: 10px;               /* compact capsule */
}

/* The capsule itself — ORTECH-STYLE:
   at the very top it SPREADS OUT (transparent, full-width, no capsule);
   once the visitor scrolls it CONDENSES into a frosted floating pill.
   It never hides — it stays pinned & visible the whole time. */
.octo-nav-pill {
  position: relative;
  border-radius: 0;                     /* spread: no capsule at page top */
  padding-inline: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background-color 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    backdrop-filter 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    padding 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Frosted glass capsule once the visitor scrolls — the pill "shrinks" in */
.unified-navbar.is-scrolled .octo-nav-pill {
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  padding-inline: 18px;
}

html.dark .unified-navbar.is-scrolled .octo-nav-pill {
  background-color: rgba(10, 14, 24, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* The row itself stays LTR so the logo is always left & tools always right. */
.octo-nav-pill {
  direction: ltr;
}

/* Only the center links follow the page language */
.octo-nav-links {
  direction: ltr;
}

html[dir='rtl'] .octo-nav-links {
  direction: rtl;
}

/* ---------- Logo ---------- */
.octo-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: 16px;
}

.octo-nav-logo__mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-top: -2px;
  /* transparent logo (octopus only) — no plate, no border, no background */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Blink layer: second frame (eyes shut) swapped in for a blink every ~5s */
.octo-nav-logo__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('octo-logo-blink.png') no-repeat center / contain;
  opacity: 0;
  pointer-events: none;
  animation: octo-blink 5s ease-in-out infinite;
}

@keyframes octo-blink {
  0%, 96.5%, 100% { opacity: 0; }
  97%, 98.5% { opacity: 1; }
  99% { opacity: 0; }
}

.octo-nav-logo:hover .octo-nav-logo__mark {
  transform: scale(1.1) rotate(-4deg);
}

.octo-nav-logo__title {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.octo-nav-logo__sub {
  display: block;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .octo-nav-logo__title,
  .octo-nav-logo__sub {
    display: none;
  }
}

/* ---------- Center links: roll-up hover ---------- */
.octo-nav-links {
  display: none;                     /* xl:flex unlocks it */
  align-items: center;
  gap: 2px;
}

@media (min-width: 1280px) {
  .octo-nav-links {
    display: flex;
  }
}

.octo-nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.35s ease, background-color 0.35s ease;
}

.octo-nav-link:hover,
.octo-nav-link:focus-visible {
  color: var(--brand-accent);
  background-color: var(--brand-accent-light);
  outline: none;
}

/* Current page gets a soft filled capsule */
.octo-nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-accent), #8b5cf6);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

/* The rolling text (two stacked copies; hover slides them up) */
.octo-nav-link__roll {
  display: block;
  overflow: hidden;
  height: 1.35em;
  line-height: 1.35em;
}

.octo-nav-link__roll > span {
  display: block;
  height: 1.35em;
  line-height: 1.35em;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.octo-nav-link:hover .octo-nav-link__roll > span,
.octo-nav-link:focus-visible .octo-nav-link__roll > span {
  transform: translateY(-100%);
}

/* Artist's touch: the rolling copy lands in the brand accent */
.octo-nav-link__roll > span:last-child {
  color: var(--brand-accent);
}

.octo-nav-link.is-active .octo-nav-link__roll > span:last-child {
  color: #ffffff;
}

/* ---------- Circular glass tool buttons ---------- */
.octo-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.5s ease,
    background-color 0.35s ease;
}

html.dark .octo-nav-icon {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.octo-nav-icon:hover,
.octo-nav-icon:focus-visible {
  transform: translateY(-3px) scale(1.06);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
  outline: none;
}

.octo-nav-icon--wa {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.35);
  background-color: rgba(16, 185, 129, 0.12);
}

.octo-nav-icon--wa:hover,
.octo-nav-icon--wa:focus-visible {
  color: #ffffff;
  background-color: #059669;
  border-color: #059669;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.4);
}

/* ---------- Language pill ---------- */
.octo-nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.5s ease,
    background-color 0.35s ease;
}

html.dark .octo-nav-lang {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.octo-nav-lang:hover,
.octo-nav-lang:focus-visible {
  transform: translateY(-3px);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
  outline: none;
}

/* ---------- Live clock · Sana'a time ---------- */
/* Always on, from tablet up. From 1280px the centre links unfold,
   so the pill drops its city label to stay slim and never squeeze
   the navigation. Below 768px it steps aside (the mobile menu owns
   that space). */
.octo-clock {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--text-primary);
  white-space: nowrap;
  user-select: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.dark .octo-clock {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 768px) {
  .octo-clock--nav { display: inline-flex; }
}

@media (min-width: 1280px) {
  /* The centre links unfold here, so the bar is at its busiest:
     trim the link padding and widen the utility rhythm a touch so
     nothing kisses anything else — the clock keeps its own slot. */
  .octo-nav-link {
    padding-inline: 12px;
  }

  .octo-nav-pill > .flex.items-center.gap-2 {
    gap: 10px;
  }

  /* The 3-line menu button belongs to narrow screens only. tw.css
     declares `xl:hidden`, but `.octo-nav-icon` (loaded later) forces
     display:inline-flex and wins — so it is switched off here. */
  .octo-nav-pill .octo-nav-icon.xl\:hidden {
    display: none !important;
  }

  .octo-clock--nav {
    gap: 8px;
    padding-inline: 13px;
    /* a little air between the clock and the action icons, so the
       bar reads as "time · tools" instead of one glued row */
    margin-inline-end: 10px;
  }

  .octo-clock--nav .octo-clock__city { display: none; }
}

.octo-clock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  animation: octo-clock-beat 2s ease-in-out infinite;
}

.octo-clock__digits {
  display: inline-flex;
  align-items: baseline;
  direction: ltr;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.octo-clock__digits b {
  font-weight: 800;
}

.octo-clock__digits i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.55;
}

.octo-clock__city {
  padding-inline-start: 9px;
  border-inline-start: 1px solid var(--border-light);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text-muted);
}

@keyframes octo-clock-beat {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Compact clock inside the mobile dropdown (phones only — from
   768px the navbar pill carries it instead). */
.octo-mm-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px dashed var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
  user-select: none;
}

@media (min-width: 768px) {
  .octo-mm-clock { display: none; }
}

/* ---------- Mobile glass dropdown ---------- */
.octo-mobile-menu {
  margin-top: 12px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(31, 38, 135, 0.16);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  display: grid;
  gap: 2px;
}

html.dark .octo-mobile-menu {
  background-color: rgba(10, 14, 24, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.octo-mm-link {
  display: block;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.octo-mm-link:hover,
.octo-mm-link:focus-visible {
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  outline: none;
}

html[dir='rtl'] .octo-mm-link:hover {
  transform: translateX(-4px);
}

html[dir='ltr'] .octo-mm-link:hover {
  transform: translateX(4px);
}

/* Active page inside the mobile menu */
.octo-mm-link.is-active {
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
}

/* Safety net: keep the panel hidden even if the Tailwind
   `hidden` utility ever fails to load (menu JS toggles it). */
.octo-mobile-menu.hidden {
  display: none !important;
}

.octo-mm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.octo-mm-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-accent);
  text-decoration: none;
}

.octo-mm-foot__wa {
  color: #059669;
}

/* (scroll-progress hairline removed per design request — the capsule
   no longer draws a line across content as you scroll) */

@media (prefers-reduced-motion: reduce) {
  .unified-navbar,
  .octo-nav-pill,
  .octo-nav-link__roll > span,
  .octo-nav-icon,
  .octo-nav-lang,
  .octo-nav-logo__mark {
    transition: none;
  }

  /* no blink for users who prefer reduced motion */
  .octo-nav-logo__mark::after {
    animation: none;
    opacity: 0;
  }

  .unified-navbar.is-hidden-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .octo-nav-link:hover .octo-nav-link__roll > span {
    transform: none;
  }
}
/* ========================================================
   ABOUT · OUR STORY — THE CHRONICLE
   Fixed full-screen stage · giant ink year · crossfading
   chapters · vertical rail with a traveling dot. Paper-quiet
   backdrop, near-black ink, sapphire accents.
   ======================================================== */
.story {
  --story-ink: #101827;
  --story-ink-2: #334155;
  --story-dim: #64748b;
  --story-paper: #f4f1ec;
  --story-paper-2: #ffffff;
  --story-line: rgba(16, 24, 39, 0.10);
  --story-accent: #7c3aed;
  --story-accent-2: #a78bfa;
  position: relative;
  height: 600svh;
  color: var(--story-ink);
  background-color: var(--story-paper);
  background-image:
    radial-gradient(rgba(16, 24, 39, 0.055) 1px, transparent 1.4px);
  background-size: 18px 18px;
  background-position: center top;
  overflow: visible !important;
}
html.dark .story {
  --story-ink: #f3f6fb;
  --story-ink-2: #cbd5e1;
  --story-dim: #94a3b8;
  --story-paper: #10141d;
  --story-paper-2: #131a29;
  --story-line: rgba(255, 255, 255, 0.08);
  --story-accent: #a78bfa;
  --story-accent-2: #c4b5fd;
  border-top-color: var(--story-line) !important;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 65% at 50% 38%, rgba(124, 58, 237, 0.10), transparent 68%);
}
html.dark .story::before {
  background:
    radial-gradient(80% 65% at 50% 38%, rgba(167, 139, 250, 0.10), transparent 68%);
}

/* Ambient washes — one per chapter */
.story-amb { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.story-amb i {
  position: absolute;
  inset: -12%;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: story-drift 22s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.story[data-ch="0"] .story-amb--1,
.story[data-ch="1"] .story-amb--2,
.story[data-ch="2"] .story-amb--3,
.story[data-ch="3"] .story-amb--4,
.story[data-ch="4"] .story-amb--5 { opacity: 1; animation-play-state: running; }
@keyframes story-drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}
.story-amb--1 { background: radial-gradient(52% 62% at 18% 70%, rgba(124, 58, 237, 0.16), transparent 70%); }
.story-amb--2 { background: radial-gradient(52% 62% at 82% 30%, rgba(139, 92, 246, 0.14), transparent 70%); }
.story-amb--3 { background: radial-gradient(52% 62% at 22% 32%, rgba(167, 139, 250, 0.13), transparent 70%); }
.story-amb--4 { background: radial-gradient(52% 62% at 78% 70%, rgba(167, 139, 250, 0.14), transparent 70%); }
.story-amb--5 { background: radial-gradient(52% 62% at 30% 72%, rgba(124, 58, 237, 0.15), transparent 70%); }

/* Pinned screen */
.story__pin {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: clip;
  z-index: 20;
}

.story__frame {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
  padding-top: clamp(64px, 8.5vh, 90px);
  padding-bottom: clamp(20px, 4vh, 40px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) auto minmax(0, 1.08fr);
  gap: clamp(22px, 3.6vw, 48px);
  align-items: center;
  height: 100%;
}

/* ==================== Side A · giant year ==================== */
.story__stage {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3.2vh, 30px);
  min-width: 0;
}

.story__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 52ch;
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
}
html.dark .story-kicker {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.22);
}
.story-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--story-accent);
  animation: story-pulse 2.3s ease-in-out infinite;
}
@keyframes story-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  55% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0); }
}

.story-headline {
  margin: 2px 0 0;
  font-size: clamp(20px, 2.9vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--story-ink);
  text-wrap: balance;
  max-width: 24ch;
}

.story-sub {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--story-ink-2);
  max-width: 46ch;
}

/* Giant year block */
.story__year-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: clamp(10px, 2vh, 22px);
}

.story-year-big {
  display: flex;
  align-items: baseline;
  direction: ltr;
  gap: 0.02em;
  user-select: none;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.story-digit {
  display: inline-block;
  font-size: clamp(3.6rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--story-ink);
  transition: color .5s ease;
}
.story[data-ch="0"] .story-digit,
.story[data-ch="1"] .story-digit,
.story[data-ch="2"] .story-digit,
.story[data-ch="3"] .story-digit,
.story[data-ch="4"] .story-digit { color: var(--story-ink); }

.story__year-sub {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--story-dim);
}
.story__chap b { color: var(--story-accent); font-weight: 800; }
.story__chap i { margin-inline: 7px; opacity: .4; font-style: normal; }

/* ==================== Side B · chapter cards ==================== */
.story__panels {
  position: relative;
  height: min(58svh, 560px);
}

/* Light paper card with ink shadow */
.story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.2vh, 24px);
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: 22px;
  border: 1px solid var(--story-line);
  background: var(--story-paper-2);
  color: var(--story-ink);
  box-shadow:
    0 34px 70px -34px rgba(16, 24, 39, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: clip;
  visibility: hidden;
  opacity: 0;
  transform: translateY(52px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.45s;
}
html.dark .story-panel {
  background: var(--story-paper-2);
  box-shadow:
    0 34px 70px -34px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.story-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* Corner crop marks on the card */
.story-panel__corner {
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 26px;
  border: 0 solid var(--story-accent);
  opacity: 0.75;
  pointer-events: none;
}
.story-panel__corner--tl { top: 16px; inset-inline-start: 16px; border-top-width: 2px; border-inline-start-width: 2px; }
.story-panel__corner--br { bottom: 16px; inset-inline-end: 16px; border-bottom-width: 2px; border-inline-end-width: 2px; }

/* Ghost year inside the card */
.story-panel__ghost {
  position: absolute;
  bottom: -26px;
  inset-inline-end: -12px;
  z-index: 0;
  font-size: clamp(92px, 13.5vw, 150px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: rgba(124, 58, 237, 0.10);
  user-select: none;
  pointer-events: none;
}
html.dark .story-panel__ghost { color: rgba(196, 181, 253, 0.07); }

.story-panel__date {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--story-accent);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.06);
}
.story-panel__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(24px, 3.1vw, 38px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.26;
  color: var(--story-ink);
  text-wrap: balance;
  max-width: 22ch;
}
.story-panel__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--story-ink-2);
  max-width: 48ch;
}
.story-panel__foot {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--story-line);
}
.story-panel__foot-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--story-dim);
}

/* ==================== Vertical rail — grid middle column ==================== */
.story__rail {
  position: relative;
  align-self: center;
  height: min(56svh, 540px);
  z-index: 1;
  width: 2px;
  background: var(--story-line);
  pointer-events: none;
}

.story__rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.18s linear;
}

.story__rail-dot {
  position: absolute;
  left: 50%;
  top: calc(100% * var(--p, 0));
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--story-accent);
  border: 3px solid var(--story-paper);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.55);
  transform: translate(-50%, -50%);
  transition: top 0.18s linear;
}
html.dark .story__rail-dot { border-color: var(--story-paper); }

/* ==================== Scroll hint ==================== */
.story__scroll {
  position: absolute;
  bottom: clamp(20px, 4.5vh, 36px);
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--story-dim);
  transform: translateX(-50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.story__scroll.is-hidden {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}
.story__scroll-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.story__scroll-chev {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--story-accent);
  animation: story-bounce 1.9s ease-in-out infinite;
}
@keyframes story-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==================== Small phones ==================== */
@media (max-width: 640px) {
  .story__frame {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 3.5vh;
    height: 100%;
  }
  .story__stage { order: -1; }
  .story-headline { max-width: none; font-size: clamp(19px, 5vw, 24px); }
  .story-sub { font-size: 12px; line-height: 1.7; }
  .story-year-big .story-digit { font-size: clamp(3.4rem, 17vw, 4.6rem); }
  .story__year-sub { font-size: 9px; gap: 10px; flex-wrap: wrap; }
  .story__panels { height: min(44svh, 380px); }
  .story-panel { padding: 18px; gap: 10px; border-radius: 18px; }
  .story-panel__title { font-size: clamp(18px, 5vw, 21px); max-width: none; }
  .story-panel__desc { font-size: 12px; line-height: 1.72; }
  .story-panel__ghost { font-size: clamp(70px, 24vw, 96px); bottom: -14px; }
  .story__rail { display: none; }
  .story__rail-dot { display: none; }
  .story__scroll { display: none; }
}

/* ==================== Short viewports ==================== */
@media (max-height: 720px) {
  .story__stage { gap: clamp(8px, 1.4vh, 12px); }
  .story-kicker { font-size: 9px; padding: 6px 12px; }
  .story-headline { font-size: clamp(16px, 4vh, 22px); line-height: 1.2; }
  .story-sub { font-size: 12px; line-height: 1.65; }
  .story-year-big .story-digit { font-size: clamp(3.2rem, 10vh, 5rem); }
  .story__panels { height: min(50svh, 430px); }
  .story-panel { padding: clamp(14px, 2.2vh, 20px) clamp(16px, 2vw, 24px); gap: 8px; }
  .story-panel__title { font-size: clamp(17px, 3.2vh, 24px); line-height: 1.2; }
  .story-panel__desc { font-size: 11.5px; line-height: 1.7; }
  .story-panel__ghost { font-size: clamp(66px, 16vh, 96px); bottom: -16px; }
  .story__scroll { display: none; }
}

/* ==================== Reduced motion ==================== */
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; overflow: visible; }
  .story__pin { position: static; height: auto; flex-direction: column; padding: 40px 0; }
  .story__frame { grid-template-columns: 1fr; height: auto; padding-block: 24px; }
  .story__panels { height: auto; display: grid; gap: 16px; }
  .story-panel { position: static; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto; }
  .story__rail { display: none; }
  .story-amb i { animation: none; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .unified-navbar,
  .octo-nav-pill,
  .octo-nav-link__roll > span,
  .octo-nav-icon,
  .octo-nav-lang,
  .octo-nav-logo__mark {
    transition: none;
  }

  /* no blink for users who prefer reduced motion */
  .octo-nav-logo__mark::after {
    animation: none;
    opacity: 0;
  }

  .unified-navbar.is-hidden-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .octo-nav-link:hover .octo-nav-link__roll > span {
    transform: none;
  }
}

/* ========================================================
   LIGHT THEME — SOFTENED WHITE (glare-free, eye comfort)
   Pure white is replaced by a gentle off-white only in the
   light theme. Dark theme untouched. The hero (dark stage)
   is explicitly excluded — it keeps its exact original look.
   ======================================================== */
html:not(.dark) body {
  background-color: var(--bg-primary) !important;
}

html:not(.dark) .bg-white {
  background-color: var(--bg-surface) !important;
}

html:not(.dark) .bg-gray-50,
html:not(.dark) .bg-gray-100,
html:not(.dark) .bg-slate-50 {
  background-color: var(--bg-elevated) !important;
}

/* Form fields: soft paper tone instead of glaring white */
html:not(.dark) input,
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: #f6f8fb !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
  color: #93a0b1;
}

/* Hero stage keeps its original pure white elements */
html:not(.dark) .bg-gray-950 .bg-white {
  background-color: #ffffff !important;
}

/* ========================================================
   CREATIVE TOUCH 1 — REVEAL ON SCROLL
   Sections & cards fade up gently as they enter the viewport.
   Pure CSS + a tiny IntersectionObserver in script.js.
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (cards in a grid) */
.reveal-stagger > .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal-stagger.is-visible > .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   CREATIVE TOUCH 2 — 3D TILT ON CARDS
   Cards lean subtly toward the pointer (skip: hero, touch,
   and reduced-motion users).
   ======================================================== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card.tilt-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.tilt-card.is-tilting.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.35s ease;
}

.tilt-card::after {
  /* moving sheen highlight */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--tilt-x, 50%) var(--tilt-y, 50%), rgba(167, 139, 250, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tilt-card,
  .tilt-card.is-tilting {
    transform: none !important;
    transition: none !important;
  }

  .tilt-card::after {
    display: none;
  }
}


/* ========================================================
   CINEMATIC INTRO — official banner first (logo only, the
   wordmark is cropped away), then the octopus comes alive:
   light sweep → double blink → friendly nod → one more sweep.
   The site opens after 5s — MANDATORY: no click / key /
   scroll can skip it; only the timer continues the visit.
   Shown ONLY on index.
   ======================================================== */
#octosrc-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #010101; /* deep-space base — the aurora washes over it, the banner screens into it */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#octosrc-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Luxury backdrop: a slow aurora wash (violet → arctic blue)
   breathing behind everything — pure CSS, GPU-composited. */
.splash-aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 24% 28%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(40% 34% at 78% 72%, rgba(167, 139, 250, 0.12), transparent 70%),
    radial-gradient(48% 42% at 62% 18%, rgba(216, 180, 254, 0.07), transparent 72%);
  animation: splash-aurora 9s ease-in-out infinite alternate;
}

@keyframes splash-aurora {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); opacity: 1; }
}

/* A quiet field of stars, each on its own clock (timings are
   injected inline by splash.js — zero script per frame). */
.splash-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.splash-star {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: splash-twinkle 3.6s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(216, 180, 254, 0.8);
}

@keyframes splash-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 0.85; transform: scale(1); }
}

/* Glass bubbles rising from the seabed — the octopus's habitat */
.splash-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.splash-bubble {
  position: absolute;
  bottom: -24px;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
    rgba(255, 255, 255, 0.9),
    rgba(167, 139, 250, 0.4) 45%,
    rgba(167, 139, 250, 0.2) 72%,
    rgba(167, 139, 250, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
  opacity: 0;
  animation: splash-rise linear infinite;
}

@keyframes splash-rise {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  8% { opacity: 0.75; }
  50% { transform: translate3d(16px, -52vh, 0) scale(1); }
  90% { opacity: 0.45; }
  100% { transform: translate3d(-10px, -110vh, 0) scale(0.9); opacity: 0; }
}

.splash-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.4vh, 14px);
}

/* Soft breathing violet halo — a RING that stays entirely clear of
   the banner edges (transparent up to ~72% of a 880px circle, while
   the banner's farthest corner is only ~321px from the centre), so
   the banner keeps blending seamlessly into the black background. */
.splash-glow {
  position: absolute;
  width: min(94vw, 880px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    transparent 72%,
    rgba(139, 92, 246, 0.22) 82%,
    rgba(167, 139, 250, 0.08) 90%,
    transparent 98%);
  filter: blur(22px);
  pointer-events: none;
  animation: splash-breathe 3.2s ease-in-out infinite;
}

@keyframes splash-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Frameless + backgroundless: the octopus is a cut-out PNG with a
   real alpha channel — nothing boxes it, nothing clips it, the
   aurora and glow pass right through the empty pixels. */
.splash-frame {
  position: relative;
  display: block;
  overflow: visible;
  transform-origin: 43% 55%; /* pivot at the octopus head for the nod */
  animation: splash-greet 1.15s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

/* The float: the octopus drifts and breathes like it hovers in
   deep water — a wrapper so the nod below stays independent. */
.splash-float {
  display: block;
  animation: splash-swim 5.2s ease-in-out infinite;
}

@keyframes splash-swim {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  35% { transform: translate3d(-5px, -11px, 0) rotate(-1.4deg) scale(1.012); }
  70% { transform: translate3d(5px, -6px, 0) rotate(1.3deg) scale(0.995); }
}

/* Friendly pop-in of the banner */
@keyframes splash-greet {
  0% { opacity: 0; transform: scale(0.6) translateY(18px); }
  60% { opacity: 1; transform: scale(1.03) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* The octopus says hello (nod at ~2.75s) */
#octosrc-splash.is-nodding .splash-frame {
  animation: splash-nod 0.9s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes splash-nod {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-4.5deg) scale(1.015); }
  62% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

.splash-logo {
  display: block;
  /* 46vh cap leaves breathing room for the live wordmark below */
  width: min(86vw, 480px, 34vh);
  height: auto;
  /* Cut-out PNG (octo-octopus.png): the same 450×610 frame the
     eyelids were measured on, but with a real alpha channel —
     zero background, zero box, zero square. */
  aspect-ratio: 450 / 610;
  object-fit: cover;
  object-position: left center;
  user-select: none;
}

/* The octopus is drawn TWICE, split at the shoulder line (55%):
   the head half stays still while the tentacle half sways.
   skewX/scaleY with the transform-origin ON the seam keeps the
   join pixel-perfect — a point at the origin never moves. */
.splash-logo--head {
  clip-path: polygon(0 0, 100% 0, 100% 55.6%, 0 55.6%);
}

.splash-logo--arms {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 55%, 100% 55%, 100% 101%, 0 101%);
  transform-origin: 50% 55%;
  animation: splash-wave 3.8s ease-in-out infinite;
}

@keyframes splash-wave {
  0%, 100% { transform: skewX(0deg) scaleY(1); }
  30% { transform: skewX(2.6deg) scaleY(1.02); }
  65% { transform: skewX(-2.4deg) scaleY(0.985); }
}

/* Graceful fallback if the banner image fails to load */
#octosrc-splash.no-logo .splash-frame {
  width: min(86vw, 480px, 34vh);
  aspect-ratio: 450 / 610;
  background: linear-gradient(135deg, #1e1b4b, #0b1225);
}

/* Eyelids — placed over the octopus eyes of the CROPPED frame
   (measured on the left 450px of the 1080x610 banner) */
.splash-lid {
  position: absolute;
  top: 42.93%;
  width: 8.64%;
  height: 4.8%;
  background: #0b1225; /* matches the octopus head colour */
  border-radius: 5px;
  transform: scaleY(0);
  transform-origin: top center;
}

.splash-lid--l { left: 38.78%; }
.splash-lid--r { left: 50.13%; }

.splash-lid.is-blinking {
  animation: splash-blink 0.34s ease-in-out;
}

@keyframes splash-blink {
  0%, 100% { transform: scaleY(0); }
  45%, 60% { transform: scaleY(1); }
}

/* Light sweep across the WHOLE PAGE (at ~0.9s and ~3.7s) —
   never clipped to the logo box, so no square edge can appear */
.splash-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(216, 180, 254, 0.34) 50%,
    rgba(167, 139, 250, 0.16) 53%,
    rgba(255, 255, 255, 0.05) 56%,
    transparent 64%
  );
  transform: translateX(-120%);
  opacity: 0;
}

.splash-sheen.is-sweeping {
  animation: splash-sweep 1.1s ease-in-out;
}

@keyframes splash-sweep {
  0% { transform: translateX(-120%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Full-bleed progress rail: spans edge-to-edge at the very
   bottom of the viewport and fills over the 5-second hold */
.splash-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 18px rgba(139, 92, 246, 0.25);
  overflow: hidden;
}

.splash-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6 45%, #a78bfa);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.9);
  transform: scaleX(0);
  transform-origin: left center;
  animation: splash-fill 4.6s linear forwards;
}

html[dir="rtl"] .splash-progress i {
  transform-origin: right center;
}

@keyframes splash-fill {
  to { transform: scaleX(1); }
}

/* --------------------------------------------------------
   LIVE WORDMARK — the company name shown in a creative,
   modern way: each letter of OCTOSRC scrambles through
   glyphs and locks into place, above a glowing rule and
   the Arabic name. Pure CSS motion + one short interval
   in splash.js (no rAF, no canvas); fully static under
   prefers-reduced-motion.
   -------------------------------------------------------- */
.splash-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  /* The PNG's visible ink ends at ~77% of its 610px frame, so the
     cut-out carries ~23% empty pixels below the tentacles. Pull the
     wordmark up by that dead space (plus a little of the stage gap)
     so the name sits close to the octopus instead of floating away. */
  margin-top: calc(min(86vw, 560px, 46vh) * -0.25);
}

.splash-name__row {
  display: flex;
  direction: ltr; /* keep the Latin wordmark's order inside RTL */
  font-size: clamp(26px, 6.5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.3em;
  padding-inline-start: 0.3em; /* optical centring: balance trailing space */
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.45));
}

.splash-name__row i {
  font-style: normal;
  opacity: 0;
  /* flung down FROM the octopus: start up near the logo, tiny
     and tilted, then land in place with a soft overshoot */
  transform: translateY(-130px) scale(0.35) rotate(-16deg);
  background: linear-gradient(180deg, #ffffff 6%, #ddd6fe 52%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: splash-letter 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.12) both;
}

.splash-name__row i:nth-child(even) {
  animation-name: splash-letter-r;
}

@keyframes splash-letter {
  0% { opacity: 0; transform: translateY(-130px) scale(0.35) rotate(-16deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes splash-letter-r {
  0% { opacity: 0; transform: translateY(-130px) scale(0.35) rotate(16deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.splash-name__rule {
  display: block;
  width: min(52vw, 240px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #8b5cf6 30%, #a78bfa 70%, transparent);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
  transform: scaleX(0);
  animation: splash-rule 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) 1.9s forwards;
}

@keyframes splash-rule {
  to { transform: scaleX(1); }
}

.splash-name__sub {
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 500;
  color: rgba(226, 232, 240, 0.78);
  opacity: 0;
  transform: translateY(10px);
  animation: splash-sub 0.8s ease 2.1s forwards;
}

@keyframes splash-sub {
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion: static banner + calm fade, no performance */
@media (prefers-reduced-motion: reduce) {
  #octosrc-splash {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .splash-glow,
  .splash-sheen,
  .splash-aurora,
  .splash-star,
  .splash-float,
  .splash-logo--arms {
    animation: none;
  }

  /* No starfield or bubbles under reduced motion — still backdrop */
  .splash-stars,
  .splash-bubbles {
    display: none;
  }

  .splash-aurora {
    opacity: 0.8;
  }

  .splash-frame,
  #octosrc-splash.is-nodding .splash-frame {
    animation: splash-calm 0.3s ease both;
  }

  .splash-lid.is-blinking {
    animation: none;
  }

  .splash-progress i {
    animation: none;
    transform: scaleX(1);
  }

  /* The wordmark appears instantly — no decode, no motion */
  .splash-name__row i,
  .splash-name__rule,
  .splash-name__sub {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes splash-calm {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================================
   REFERENCE-STYLE GHOST NUMERALS — instead of the old code
   pills (SEC.01 / SFT.02 …), service cards carry a huge,
   almost-invisible number like the reference site: quiet at
   rest, a whisper of violet on hover.
   ======================================================== */
.catalog-card {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Reference-style hover lift — the card floats a touch closer */
.catalog-card:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card,
  .catalog-card:hover {
    transition: none;
    transform: none;
  }
}

.octo-ghost {
  position: absolute;
  top: 14px;
  inset-inline-end: 20px;
  font-size: clamp(44px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1;
  color: rgba(15, 23, 42, 0.055);
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

html.dark .octo-ghost {
  color: rgba(255, 255, 255, 0.055);
}

.catalog-card:hover .octo-ghost {
  color: rgba(139, 92, 246, 0.16);
  transform: translateY(-3px);
}

html.dark .catalog-card:hover .octo-ghost {
  color: rgba(139, 92, 246, 0.3);
}

/* ==========================================================
   EXPERIENCE LAYER
   ========================================================== */

/* Success state on buttons that hand the message to WhatsApp */
.octo-sent,
.octo-sent:hover {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

/* Floating action buttons (WhatsApp + back to top) */
.floating-actions {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.float-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(2, 10, 30, 0.3);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.07);
}

.float-btn--wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-btn--top {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.float-btn--top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dark .float-btn {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

/* Skip to main content */
.skip-link {
  position: fixed;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 60;
  background: #7c3aed;
  color: #fff;
  padding: 0.6rem 1.05rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
  transform: translateY(-220%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Staggered heading reveal — words rise one after another.
   Scoped to .reveal so headings stay visible if the
   observer never runs. */
.reveal .hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--wi, 0) * 55ms);
}

.reveal.is-visible .hw {
  opacity: 1;
  transform: none;
}

/* Magnetic buttons */
.magnetic {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal .hw {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .skip-link {
    transition: none;
  }
}

/* ========================================================
   EXPANDABLE IMAGE GALLERY (portfolio page)
   Original OctoSRC treatment: a row of panels where the
   focused one stretches open and the rest condense into
   narrow vertical-labelled strips. Pure CSS transitions
   (transform/flex) — no rAF loop, no layout thrash.
   ======================================================== */
.octo-gal {
  display: flex;
  gap: 10px;
  height: 430px;
}

.octo-gal__panel {
  position: relative;
  margin: 0; /* reset <figure> default */
  flex: 1 1 0;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.octo-gal__panel.is-active {
  flex: 4.4 1 0;
}

.octo-gal__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.78);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.octo-gal__panel.is-active img {
  filter: saturate(1) brightness(1);
  transform: scale(1.02);
}

/* Narrow-strip label (visible while collapsed) */
.octo-gal__vlabel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg); /* reads bottom-to-top in both LTR & RTL */
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.3), rgba(6, 10, 20, 0.55));
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.octo-gal__panel.is-active .octo-gal__vlabel {
  opacity: 0;
}

/* Caption (revealed on the expanded panel) */
.octo-gal__cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(4, 8, 16, 0.9), rgba(4, 8, 16, 0.35) 65%, transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
  pointer-events: none;
}

.octo-gal__panel.is-active .octo-gal__cap {
  opacity: 1;
  transform: none;
}

.octo-gal__cap h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.octo-gal__cap p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}

.octo-gal__panel:focus-visible {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.65);
}

/* Touch layout: vertical accordion */
@media (max-width: 767px) {
  .octo-gal {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }

  .octo-gal__panel {
    height: 58px;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .octo-gal__panel.is-active {
    height: 300px;
  }

  .octo-gal__vlabel {
    writing-mode: horizontal-tb;
    transform: none;
    justify-content: flex-start;
    padding-inline: 18px;
  }

  .octo-gal__cap {
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .octo-gal__panel,
  .octo-gal__panel img,
  .octo-gal__vlabel,
  .octo-gal__cap {
    transition: none;
  }
}

/* ========================================================
   LUXURY UPGRADES (HOME) — view-all pills · masonry
   project walls · founders spotlight · FAQ accordion
   ======================================================== */

/* ---------- 1) VIEW-ALL FROSTED PILL ---------- */
.octo-viewall {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 9px 7px 21px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  color: #5b21b6;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78));
  border: 1px solid rgba(139, 92, 246, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 26px -14px rgba(124, 58, 237, .55),
    0 2px 10px -6px rgba(15, 23, 42, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s ease,
    border-color .4s ease,
    color .4s ease;
}
[dir="rtl"] .octo-viewall { padding: 7px 21px 7px 9px; }

.octo-viewall::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(167, 139, 250, .3) 47%, rgba(255, 255, 255, .9) 52%, transparent 66%);
  transform: translateX(-130%);
  transition: transform .95s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.octo-viewall:hover::before,
.octo-viewall:focus-visible::before { transform: translateX(130%); }

.octo-viewall:hover {
  color: #6d28d9;
  border-color: rgba(139, 92, 246, .55);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 16px 34px -16px rgba(124, 58, 237, .7),
    0 0 0 4px rgba(167, 139, 250, .12);
}
.octo-viewall:active { transform: translateY(0) scale(.97); }
.octo-viewall:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(167, 139, 250, .55), 0 16px 34px -16px rgba(124, 58, 237, .7); }

.octo-viewall__orb {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #04101d;
  background: linear-gradient(140deg, #c4b5fd, #8b5cf6 55%, #6d28d9);
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}
.octo-viewall__orb i {
  font-size: 12px;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
html[dir="ltr"] .octo-viewall__orb i { transform: rotate(180deg); }
[dir="rtl"] .octo-viewall:hover .octo-viewall__orb { transform: translateX(-7px); }
html[dir="ltr"] .octo-viewall:hover .octo-viewall__orb { transform: translateX(7px); }
.octo-viewall:hover .octo-viewall__orb {
  box-shadow: 0 12px 24px -8px rgba(124, 58, 237, 1), inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 5px rgba(167, 139, 250, .16);
}

html.dark .octo-viewall {
  color: #ede9fe;
  background: linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(9, 14, 26, .64));
  border-color: rgba(167, 139, 250, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 14px 30px -16px rgba(124, 58, 237, .6);
}
html.dark .octo-viewall:hover { color: #c4b5fd; border-color: rgba(167, 139, 250, .6); }
html.dark .octo-viewall::before {
  background: linear-gradient(115deg, transparent 34%, rgba(167, 139, 250, .32) 47%, rgba(255, 255, 255, .3) 52%, transparent 66%);
}

/* ---------- 2) FEATURED PROJECT MASONRY WALLS ---------- */
.octo-show {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 474px;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .09);
  box-shadow: 0 26px 56px -34px rgba(15, 23, 42, .18);
  isolation: isolate;
  transition:
    transform .55s cubic-bezier(.22, 1, .36, 1),
    box-shadow .55s ease,
    border-color .55s ease,
    background-color .4s ease,
    color .4s ease;
}
html.dark .octo-show {
  color: #fff;
  background: #0a0f1a;
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 30px 60px -42px rgba(2, 8, 23, .85);
}
.octo-show:hover {
  transform: translateY(-9px);
  border-color: rgba(124, 58, 237, .42);
  box-shadow: 0 36px 68px -36px rgba(124, 58, 237, .28), 0 0 0 1px rgba(124, 58, 237, .12);
}
html.dark .octo-show:hover {
  border-color: rgba(167, 139, 250, .5);
  box-shadow: 0 44px 80px -44px rgba(124, 58, 237, .8), 0 0 0 1px rgba(167, 139, 250, .14);
}
.octo-show:focus-visible { outline: none; border-color: rgba(167, 139, 250, .75); box-shadow: 0 0 0 3px rgba(167, 139, 250, .45); }

.octo-show__wall {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  height: 258px;
  padding: 10px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(124, 58, 237, .07), transparent 55%),
    #f1f5f9;
}
html.dark .octo-show__wall {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(139, 92, 246, .16), transparent 55%),
    #0a0f1a;
}
.octo-show__cell {
  margin: 0;
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: #e2e8f0;
}
html.dark .octo-show__cell {
  background: #111827;
}
.octo-show__cell--main { grid-column: 1; grid-row: 1 / span 2; }
.octo-show__stack {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  min-height: 0;
}
.octo-show__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
  transform: scale(1.01);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s ease;
}
html.dark .octo-show__cell img {
  filter: saturate(.85) contrast(1.06) brightness(.92);
}
/* per-tile tint identities (kept distinct from the flat portfolio gallery) */
html.dark .octo-show--a .octo-show__cell img { filter: saturate(.92) contrast(1.05) brightness(.95) hue-rotate(-5deg); }
html.dark .octo-show--b .octo-show__cell img { filter: saturate(1.05) contrast(1.08) brightness(.9) hue-rotate(7deg); }
html.dark .octo-show--c .octo-show__cell img { filter: saturate(.72) contrast(1.16) brightness(.85); }
.octo-show:hover .octo-show__cell img {
  transform: scale(1.09);
  filter: saturate(1.08) contrast(1.06) brightness(1.02);
}

.octo-show__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .58) 76%, #ffffff 100%);
  pointer-events: none;
}
html.dark .octo-show__veil {
  background: linear-gradient(180deg, rgba(4, 8, 16, 0) 30%, rgba(4, 8, 16, .68) 60%, rgba(3, 6, 12, .97) 100%);
}
.octo-show__code {
  position: absolute;
  top: 20px;
  inset-inline-start: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #c4b5fd;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 14, 26, .62);
  border: 1px solid rgba(167, 139, 250, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 18px -6px rgba(167, 139, 250, .85);
  transition: box-shadow .5s ease, border-color .5s ease, color .5s ease;
}
.octo-show:hover .octo-show__code {
  border-color: rgba(196, 181, 253, .85);
  color: #ddd6fe;
  box-shadow: 0 0 26px -4px rgba(167, 139, 250, 1);
}
.octo-show__cat {
  position: absolute;
  top: 23px;
  inset-inline-end: 22px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(226, 232, 240, .88);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
}
.octo-show__body {
  position: relative;
  margin-top: auto;
  padding: 0 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.octo-show__title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  min-height: 2.5em;
  letter-spacing: -.01em;
  color: #0f172a;
  transition: color .4s ease;
}
html.dark .octo-show__title {
  color: #f8fafc;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.octo-show:hover .octo-show__title { color: #6d28d9; }
html.dark .octo-show:hover .octo-show__title { color: #c4b5fd; }
.octo-show__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  min-height: 5.55em;
  color: #475569;
  max-width: 48ch;
}
html.dark .octo-show__desc {
  color: rgba(203, 213, 225, .88);
}
.octo-show__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}
html.dark .octo-show__row {
  border-top-color: rgba(148, 163, 184, .18);
}
.octo-show__metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
}
.octo-show__pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: octoPulse 2.4s ease-out infinite;
}
@keyframes octoPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.octo-show__go {
  position: relative;
  font-size: 12px;
  font-weight: 800;
  color: #6d28d9;
  padding-bottom: 4px;
  background-image: linear-gradient(90deg, #a78bfa, #6d28d9);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .5s cubic-bezier(.22, 1, .36, 1), color .4s ease;
}
html.dark .octo-show__go {
  color: #c4b5fd;
}
[dir="rtl"] .octo-show__go { background-position: 100% 100%; }
.octo-show:hover .octo-show__go { background-size: 100% 2px; color: #4c1d95; }
html.dark .octo-show:hover .octo-show__go { color: #ede9fe; }

@media (max-width: 640px) {
  .octo-show { min-height: 0; }
  .octo-show__wall { height: 212px; }
  .octo-show__body { padding: 0 20px 20px; }
  .octo-show__title { font-size: 19px; }
  .octo-show__code { top: 18px; inset-inline-start: 18px; }
  .octo-show__cat { top: 21px; inset-inline-end: 18px; }
}

/* ---------- 3) FOUNDERS SPOTLIGHT ---------- */
.octo-founders {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 54px 46px;
  color: #fff;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(167, 139, 250, .10), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0f172a 55%, #080d18 100%);
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: 0 40px 70px -50px rgba(2, 8, 20, .85), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.octo-founders__aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 45% at 25% 30%, rgba(167, 139, 250, .12), transparent 70%),
    radial-gradient(35% 40% at 78% 65%, rgba(139, 92, 246, .12), transparent 70%);
  filter: blur(60px);
  opacity: .55;
  animation: octoAurora 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes octoAurora {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-4deg) scale(1); }
  50% { transform: translate3d(4%, 3%, 0) rotate(5deg) scale(1.08); }
  100% { transform: translate3d(-2%, 4%, 0) rotate(-2deg) scale(1.03); }
}
.octo-founders__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .03) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 35%, #000 30%, transparent 80%);
  mask-image: radial-gradient(85% 75% at 50% 35%, #000 30%, transparent 80%);
  pointer-events: none;
}
.octo-founders__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 46px;
}
.octo-founders__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #ddd6fe;
  background: rgba(167, 139, 250, .07);
  border: 1px solid rgba(167, 139, 250, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 18px -12px rgba(167, 139, 250, .6);
}
.octo-founders__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: octoPulseSky 2.6s ease-out infinite;
}
@keyframes octoPulseSky {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .65); }
  70% { box-shadow: 0 0 0 9px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}
.octo-founders__title {
  margin: 20px 0 14px;
  font-size: clamp(25px, 3.2vw, 37px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffffff 30%, #cfe8fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.octo-founders__desc {
  margin: 0 auto;
  max-width: 74ch;
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(203, 213, 225, .85);
}
.octo-founders__desc strong { color: #c4b5fd; font-weight: 800; }
.octo-founders__grid2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 26px;
  align-items: stretch;
}
.octo-founder {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px 32px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform .55s cubic-bezier(.22, 1, .36, 1),
    border-color .55s ease,
    box-shadow .55s ease;
}
.octo-founder::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .75), transparent);
  opacity: .6;
  transition: opacity .5s ease;
}
.octo-founder:hover {
  transform: translateY(-7px);
  border-color: rgba(167, 139, 250, .32);
  box-shadow: 0 30px 55px -40px rgba(124, 58, 237, .6), 0 0 30px -22px rgba(167, 139, 250, .45);
}
.octo-founder:hover::before { opacity: 1; }
.octo-founder__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 220px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 22px;
  background: linear-gradient(140deg, #8b5cf6, #6d28d9);
  box-shadow: 0 18px 36px -16px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease;
}
.octo-founder:hover .octo-founder__photo { transform: translateY(-4px) scale(1.03); box-shadow: 0 26px 46px -16px rgba(139, 92, 246, .75); }
.octo-founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.octo-founder:hover .octo-founder__photo img { transform: scale(1.08); }
.octo-founder__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, .55) 100%);
  pointer-events: none;
}
.octo-founder__num {
  position: absolute;
  top: 12px;
  inset-inline-end: 16px;
  z-index: 2;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: rgba(255, 255, 255, .18);
  pointer-events: none;
  transition: color .5s ease;
}
.octo-founder:hover .octo-founder__num { color: rgba(196, 181, 253, .45); }
.octo-founder__name {
  margin: 0 0 6px;
  font-size: 18.5px;
  font-weight: 900;
  color: #f8fafc;
}
.octo-founder__role {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, #c4b5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.octo-founder__bio {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 2;
  color: rgba(203, 213, 225, .82);
}
.octo-founder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.octo-founder__tags span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 6px 11px;
  border-radius: 9px;
  color: rgba(221, 214, 254, .92);
  background: rgba(167, 139, 250, .08);
  border: 1px solid rgba(167, 139, 250, .2);
  transition: border-color .4s ease, background .4s ease, color .4s ease;
}
.octo-founder__tags span:hover {
  border-color: rgba(167, 139, 250, .55);
  background: rgba(167, 139, 250, .16);
  color: #ede9fe;
}
.octo-founders__bond {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.octo-founders__bond-line {
  flex: 1;
  width: 1px;
  min-height: 44px;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, .55), transparent);
}
.octo-founders__bond-gem {
  flex: none;
  width: 42px;
  height: 42px;
  transform: rotate(45deg);
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(167, 139, 250, .16), rgba(109, 40, 217, .22));
  border: 1px solid rgba(167, 139, 250, .35);
  box-shadow: 0 0 20px -8px rgba(167, 139, 250, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.octo-founders__bond-gem i { transform: rotate(-45deg); color: #c4b5fd; font-size: 13px; }
.octo-founders__cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  padding: 24px 28px;
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(167, 139, 250, .14), rgba(109, 40, 217, .13) 55%, rgba(139, 92, 246, .1));
  border: 1px solid rgba(196, 181, 253, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.octo-founders__cta-orb {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #c4b5fd;
  background: rgba(8, 14, 26, .55);
  border: 1px solid rgba(167, 139, 250, .28);
  box-shadow: 0 0 18px -8px rgba(167, 139, 250, .65);
}
.octo-founders__cta-txt { flex: 1; min-width: 240px; }
.octo-founders__cta-txt h3 { margin: 0 0 5px; font-size: 17px; font-weight: 900; color: #f8fafc; }
.octo-founders__cta-txt p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(203, 213, 225, .8);
  max-width: 64ch;
}
.octo-founders__cta-btn {
  flex: none;
  margin-inline-start: auto;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  color: #0b1220;
  background: linear-gradient(140deg, #f8fafc, #dbe4ee);
  box-shadow: 0 18px 36px -18px rgba(226, 232, 240, .75), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, filter .45s ease;
}
.octo-founders__cta-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 24px 46px -18px rgba(196, 181, 253, .75), 0 0 0 4px rgba(167, 139, 250, .18);
}
.octo-founders__cta-btn:active { transform: translateY(0) scale(.97); }
.octo-founders__cta-btn:focus-visible { outline: 3px solid rgba(167, 139, 250, .65); outline-offset: 3px; }

@media (max-width: 900px) {
  .octo-founders { padding: 40px 22px; border-radius: 30px; }
  .octo-founders__head { margin-bottom: 34px; }
  .octo-founders__grid2 { grid-template-columns: 1fr; gap: 20px; }
  .octo-founders__bond { flex-direction: row; padding: 4px 0; }
  .octo-founders__bond-line {
    width: auto;
    height: 1px;
    min-height: 0;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .55), transparent);
  }
  .octo-founder { padding: 28px 24px; }
  .octo-founders__cta { flex-direction: column; align-items: flex-start; padding: 22px 22px; }
  .octo-founders__cta-btn { margin-inline-start: 0; width: 100%; text-align: center; }
}

/* ========================================================
   FOUNDERS SPOTLIGHT — SIMPLE (no cards)
   Clean, minimal: photo + text, no boxes/borders/backgrounds.
   ======================================================== */
.octo-founders--simple {
  position: relative;
  overflow: visible;
  border-radius: 0;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: none;
  box-shadow: none;
}
.octo-founders--simple .octo-founders__aurora,
.octo-founders--simple .octo-founders__mesh {
  display: none;
}
.octo-founders--simple .octo-founders__badge {
  color: var(--brand-accent-text);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.octo-founders--simple .octo-founders__dot {
  background: var(--brand-accent);
  animation: octoPulseSky 2.6s ease-out infinite;
}
.octo-founders--simple .octo-founders__title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text-primary);
  -webkit-text-fill-color: initial;
}
.octo-founders--simple .octo-founders__desc {
  color: var(--text-secondary);
}
.octo-founders--simple .octo-founders__desc strong {
  color: var(--brand-accent-text);
}

/* Simple grid: founder | bond | founder */
.octo-founders__stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 720px;
  margin: 0 auto;
}
.octo-founders__stack .octo-founder-simple {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  text-align: start;
}
.octo-founders__stack .octo-founder-simple__photo {
  flex: 0 0 140px;
  max-width: 140px;
  margin-bottom: 0;
}
.octo-founders__stack .octo-founder-simple__body {
  align-items: flex-start;
  flex: 1;
}
.octo-founders__stack .octo-founder-simple__bio {
  max-width: none;
}
.octo-founders__stack .octo-founder-simple__tags {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .octo-founders__stack .octo-founder-simple {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .octo-founders__stack .octo-founder-simple__photo {
    flex: 0 0 auto;
    max-width: 160px;
  }
  .octo-founders__stack .octo-founder-simple__body {
    align-items: center;
  }
  .octo-founders__stack .octo-founder-simple__tags {
    justify-content: center;
  }
  .octo-founders__stack .octo-founder-simple__bio {
    max-width: 34ch;
  }
}

/* Founder: no card — just photo + text */
.octo-founder-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: none;
}
.octo-founder-simple__photo {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg-elevated);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .25);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}
.octo-founder-simple:hover .octo-founder-simple__photo {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, .35);
}
.octo-founder-simple__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.octo-founder-simple:hover .octo-founder-simple__photo img {
  transform: scale(1.06);
}
.octo-founder-simple__num {
  position: absolute;
  top: 8px;
  inset-inline-end: 12px;
  z-index: 2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .7);
  background: rgba(15, 23, 42, .45);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.octo-founder-simple__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.octo-founder-simple__name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}
.octo-founder-simple__role {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-accent-text);
}
.octo-founder-simple__bio {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 34ch;
}
.octo-founder-simple__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.octo-founder-simple__tags span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--brand-accent-text);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  transition: border-color .3s ease, background .3s ease;
}
.octo-founder-simple__tags span:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent-light);
}

/* Simple CTA */
.octo-founders__simple-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.octo-founders__simple-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-inverse);
  background: var(--brand-dark);
  box-shadow: 0 12px 28px -14px rgba(15, 23, 42, .5);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, filter .4s ease;
}
.octo-founders__simple-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 32px -14px rgba(15, 23, 42, .6);
}
.octo-founders__simple-cta-btn:active { transform: translateY(0) scale(.97); }

/* ========================================================
   TECHNICAL PARTNERS — SIMPLE GRID (no cards)
   ======================================================== */
.octo-partners--simple {
  position: relative;
}
.octo-partners__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.octo-partners__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.octo-partners__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.octo-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.octo-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid var(--border-light);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
  cursor: default;
}
.octo-partner:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent-light);
  transform: translateY(-3px);
}
.octo-partner__logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--text-secondary);
  transition: color .3s ease, transform .3s ease;
}
.octo-partner:hover .octo-partner__logo {
  color: var(--brand-accent);
  transform: scale(1.1);
}
.octo-partner__name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .octo-partners__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .octo-partners__grid { grid-template-columns: 1fr; }
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .octo-founders__carousel { max-width: 100%; }
  .octo-founders__bond { flex-direction: row; padding: 4px 0; }
  .octo-founders__bond-line {
    width: auto;
    height: 1px;
    min-height: 0;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  }
  .octo-founders__bond-gem { width: 36px; height: 36px; }
  .octo-founder-simple__photo { max-width: 200px; }
}


/* ---------- 4) FAQ LUXURY ACCORDION ---------- */
.octo-faq__head {
  text-align: center;
  margin-bottom: 44px;
}
.octo-faq__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #6d28d9;
  background: rgba(167, 139, 250, .1);
  border: 1px solid rgba(167, 139, 250, .35);
  box-shadow: 0 10px 26px -16px rgba(124, 58, 237, .85);
}
html.dark .octo-faq__badge { color: #c4b5fd; background: rgba(167, 139, 250, .12); }
.octo-faq__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b5cf6;
  animation: octoPulseSky 2.6s ease-out infinite;
}
html.dark .octo-faq__dot { background: #a78bfa; }
.octo-faq__title {
  margin: 16px 0 0;
  font-size: clamp(24px, 3.3vw, 34px);
  font-weight: 900;
  letter-spacing: -.01em;
  color: #0f172a;
}
html.dark .octo-faq__title { color: #f8fafc; }

.octo-faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.octo-faq__item {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .86));
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px -32px rgba(15, 23, 42, .5);
  overflow: hidden;
  transition: border-color .45s ease, box-shadow .45s ease;
}
html.dark .octo-faq__item {
  background: linear-gradient(180deg, rgba(16, 24, 39, .95), rgba(10, 15, 26, .9));
  border-color: rgba(148, 163, 184, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -32px rgba(0, 0, 0, .85);
}
.octo-faq__item:hover { border-color: rgba(167, 139, 250, .45); }
.octo-faq__item.is-open {
  border-color: rgba(167, 139, 250, .6);
  box-shadow: 0 30px 60px -34px rgba(124, 58, 237, .6), 0 0 0 1px rgba(167, 139, 250, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html.dark .octo-faq__item.is-open {
  box-shadow: 0 30px 60px -34px rgba(124, 58, 237, .55), 0 0 0 1px rgba(167, 139, 250, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* staggered entrance — only active once JS opts in (.faq-anim) */
.octo-faq.faq-anim .octo-faq__item {
  opacity: 0;
  transform: translateY(18px);
}
.octo-faq.faq-anim .octo-faq__item.in {
  opacity: 1;
  transform: none;
  transition:
    opacity .65s ease calc(var(--faq-i, 0) * 65ms),
    transform .65s cubic-bezier(.22, 1, .36, 1) calc(var(--faq-i, 0) * 65ms),
    border-color .45s ease,
    box-shadow .45s ease;
}

.octo-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
  -webkit-tap-highlight-color: transparent;
  transition: background .35s ease, transform .25s ease;
}
.octo-faq__q:hover { background: rgba(167, 139, 250, .055); }
.octo-faq__q:active { transform: scale(.995); }
.octo-faq__q:focus-visible { outline: 2px solid rgba(139, 92, 246, .75); outline-offset: -3px; }

.octo-faq__idx {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 800;
  color: #6d28d9;
  background: linear-gradient(140deg, #ede9fe, #ddd6fe);
  border: 1px solid rgba(167, 139, 250, .4);
  transition: background .45s ease, color .45s ease, box-shadow .45s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
html.dark .octo-faq__idx {
  color: #c4b5fd;
  background: linear-gradient(140deg, rgba(167, 139, 250, .16), rgba(109, 40, 217, .24));
  border-color: rgba(167, 139, 250, .3);
}
.octo-faq__item.is-open .octo-faq__idx {
  background: linear-gradient(140deg, #a78bfa, #7c3aed);
  color: #04101d;
  border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 1);
  transform: rotate(-6deg) scale(1.05);
}
html.dark .octo-faq__item.is-open .octo-faq__idx { color: #04101d; }

.octo-faq__qt {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
  color: #0f172a;
  transition: color .4s ease;
}
html.dark .octo-faq__qt { color: #f1f5f9; }
.octo-faq__item.is-open .octo-faq__qt { color: #6d28d9; }
html.dark .octo-faq__item.is-open .octo-faq__qt { color: #c4b5fd; }

.octo-faq__sign {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7c3aed;
  border: 1px solid rgba(148, 163, 184, .4);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), background .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease;
}
html.dark .octo-faq__sign { color: #c4b5fd; border-color: rgba(148, 163, 184, .3); }
.octo-faq__sign i { font-size: 12px; }
.octo-faq__item.is-open .octo-faq__sign {
  transform: rotate(135deg);
  background: linear-gradient(140deg, #a78bfa, #7c3aed);
  color: #04101d;
  border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 1);
}
html.dark .octo-faq__item.is-open .octo-faq__sign { color: #04101d; }

/* animated height via grid-rows trick */
.octo-faq__wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.22, 1, .36, 1);
}
.octo-faq__item.is-open .octo-faq__wrap { grid-template-rows: 1fr; }
.octo-faq__inner {
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.octo-faq__inner::before {
  content: "";
  position: absolute;
  inset-inline-start: 41px;
  top: 2px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  opacity: .85;
}
.octo-faq__inner p {
  margin: 0;
  padding: 2px 26px 24px 78px;
  font-size: 13.5px;
  line-height: 2.05;
  color: #475569;
  max-width: 82ch;
}
[dir="rtl"] .octo-faq__inner p { padding: 2px 78px 24px 26px; }
html.dark .octo-faq__inner p { color: #9aa8bc; }

@media (max-width: 640px) {
  .octo-faq__q { gap: 12px; padding: 16px 15px; }
  .octo-faq__idx { width: 36px; height: 36px; border-radius: 12px; font-size: 11.5px; }
  .octo-faq__qt { font-size: 14px; }
  .octo-faq__sign { width: 32px; height: 32px; }
  .octo-faq__inner p { padding: 2px 18px 20px 64px; line-height: 1.95; }
  [dir="rtl"] .octo-faq__inner p { padding: 2px 64px 20px 18px; }
  .octo-faq__inner::before { inset-inline-start: 33px; }
}

.octo-faq__foot {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(167, 139, 250, .09), rgba(109, 40, 217, .08));
  border: 1px dashed rgba(167, 139, 250, .4);
}
html.dark .octo-faq__foot { background: linear-gradient(120deg, rgba(167, 139, 250, .1), rgba(109, 40, 217, .1)); }
.octo-faq__foot p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
html.dark .octo-faq__foot p { color: #cbd5e1; }
.octo-faq__foot-btn {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;
  text-decoration: none;
  color: #04101d;
  background: linear-gradient(140deg, #c4b5fd, #8b5cf6 60%, #7c3aed);
  box-shadow: 0 14px 30px -14px rgba(124, 58, 237, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, filter .45s ease;
}
.octo-faq__foot-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
  box-shadow: 0 20px 38px -14px rgba(124, 58, 237, 1), 0 0 0 5px rgba(167, 139, 250, .16);
}
.octo-faq__foot-btn:active { transform: translateY(0) scale(.97); }
.octo-faq__foot-btn:focus-visible { outline: 3px solid rgba(167, 139, 250, .6); outline-offset: 3px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .octo-viewall,
  .octo-viewall::before,
  .octo-viewall__orb,
  .octo-viewall__orb i,
  .octo-show,
  .octo-show__cell img,
  .octo-show__title,
  .octo-show__go,
  .octo-show__code,
  .octo-founder,
  .octo-founder__photo,
  .octo-founder__photo img,
  .octo-founders__cta-btn,
  .octo-faq__item,
  .octo-faq__wrap,
  .octo-faq__sign,
  .octo-faq__idx,
  .octo-faq__foot-btn {
    transition: none !important;
  }
  .octo-founders__aurora,
  .octo-show__pulse,
  .octo-founders__dot,
  .octo-faq__dot {
    animation: none !important;
  }
  .octo-faq.faq-anim .octo-faq__item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================================
   GRID CASCADE REPAIR
   tw.css ships its base .grid-cols-* helpers *after* the
   responsive blocks, so .grid-cols-1 (0,1,0, later source
   order) beat .sm/.md/.lg:grid-cols-* (same specificity,
   earlier). Every responsive grid collapsed to a single
   column. style.css loads after tw.css, so re-declaring the
   responsive helpers here restores the intended 1 / 2 / 3 / 4
   column rhythm site-wide.
   ======================================================== */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ========================================================
   TECHNOLOGY STRIP · MOVING MARQUEE
   Two identical logo groups slide left in a seamless loop;
   hovering the strip freezes it. Each logo lights up inside a
   mint rounded square on hover, and its name slides up above it.
   overflow-x clips the moving track; overflow-y stays visible so
   the hover tips are never cut off.
   ======================================================== */
.octo-tech {
  position: relative;
  width: 100%;
  overflow-x: hidden;          /* clip the moving marquee track */
  overflow-y: visible;         /* allow hover tips to show above */
  direction: ltr;
  padding-block: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background:
    linear-gradient(90deg, rgba(167, 139, 250, 0.07), transparent 28%, transparent 72%, rgba(139, 92, 246, 0.07)),
    rgba(255, 255, 255, 0.5);
}

html.dark .octo-tech {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(167, 139, 250, 0.10), transparent 28%, transparent 72%, rgba(139, 92, 246, 0.10)),
    rgba(9, 13, 22, 0.6);
}

/* Caption wrapper: sits OUTSIDE the bordered strip rectangle */
.octo-tech__caption-wrap {
  width: 100%;
  padding-block: 12px 6px;
  text-align: right;
  direction: rtl;
  padding-inline: clamp(14px, 2.2vw, 32px);
}

/* Section label: "التقنيات المستخدمة" — outside the strip */
.octo-tech__caption {
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.2;
}

html.dark .octo-tech__caption {
  color: #94a3b8;
}

/* Moving track: two identical groups side by side (max-content so the
   -50% translation lines up exactly with one group for a seamless loop) */
.octo-tech__track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: octo-tech-marquee 40s linear infinite;
  will-change: transform;
}

/* Pause on hover so the user can read / target a logo */
.octo-tech:hover .octo-tech__track {
  animation-play-state: paused;
}

.octo-tech__group {
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: 0;
  flex-shrink: 0;
  justify-content: center;
}

/* Each item: icon only, faded until active */
.octo-tech__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-inline-end: 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.octo-tech__item i {
  font-size: 22px;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

html.dark .octo-tech__item {
  color: #64748b;
}

/* Hover / focus: mint rounded square + bright icon */
.octo-tech__item:hover,
.octo-tech__item:focus-visible {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.10);
  color: #059669;
  box-shadow: 0 0 0 9px rgba(52, 211, 153, 0.14);
  outline: none;
}

.octo-tech__item:hover i,
.octo-tech__item:focus-visible i {
  color: #059669;
  transform: scale(1.12);
}

/* Per-item tip (hidden — the shared fixed tooltip is used instead so it
   is never clipped by the strip's overflow) */
.octo-tech__tip {
  display: none;
}

/* Shared fixed tooltip, positioned by JS above the hovered logo */
#octoTechTip {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

#octoTechTip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px));
}

#octoTechTip .octo-tech__tip-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  box-shadow:
    0 16px 32px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  direction: ltr;
}

html.dark #octoTechTip .octo-tech__tip-name {
  background: rgba(9, 13, 22, 0.86);
}

.octo-tech__tip-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  box-shadow:
    0 16px 32px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  direction: ltr;
}

html.dark .octo-tech__tip-name {
  background: rgba(9, 13, 22, 0.86);
}

/* Marquee keyframes: 3 groups, translate one group width (-33.333%) */
@keyframes octo-tech-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-33.333%, 0, 0); }
}

/* Reduced motion: no slide-up, just fade; no scrolling */
@media (prefers-reduced-motion: reduce) {
  .octo-tech__track {
    animation: none;
  }

  .octo-tech__item:hover i,
  .octo-tech__item:focus-visible i {
    transform: none;
  }

  .octo-tech__item:hover .octo-tech__tip,
  .octo-tech__item:focus-visible .octo-tech__tip {
    transform: translateX(-50%);
  }
}

/* ========================================================
   SERVICE CARDS AS STACKED PAPER SHEETS
   Each service is a crisp sheet of paper resting on a small
   stack of pages (soft box-shadow layers, no extra DOM).
   ======================================================== */
.octo-sheet {
  position: relative;
  border-radius: 20px;
  background-color: #ffffff;
  background-image: radial-gradient(rgba(15, 23, 42, 0.035) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
  box-shadow:
    6px 7px 0 -2px #ffffff,
    6px 7px 0 -1px rgba(15, 23, 42, 0.06),
    12px 14px 0 -4px #ffffff,
    12px 14px 0 -3px rgba(15, 23, 42, 0.05),
    0 20px 32px -26px rgba(15, 23, 42, 0.45);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

html.dark .octo-sheet {
  background-color: #15102a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.6px, transparent 0.6px);
  box-shadow:
    6px 7px 0 -2px #0c111b,
    6px 7px 0 -1px rgba(255, 255, 255, 0.06),
    12px 14px 0 -4px #0a0f18,
    12px 14px 0 -3px rgba(255, 255, 255, 0.04),
    0 20px 32px -26px rgba(0, 0, 0, 0.9);
}

/* The reveal wrapper pins transform on .reveal-item, so the
   lift needs one notch more specificity to win at rest. */
.reveal-stagger.is-visible > .octo-sheet.reveal-item:hover {
  transform: translateY(-8px);
  box-shadow:
    7px 9px 0 -2px #ffffff,
    7px 9px 0 -1px rgba(15, 23, 42, 0.07),
    14px 17px 0 -4px #ffffff,
    14px 17px 0 -3px rgba(15, 23, 42, 0.06),
    0 30px 44px -28px rgba(15, 23, 42, 0.5);
}

html.dark .reveal-stagger.is-visible > .octo-sheet.reveal-item:hover {
  box-shadow:
    7px 9px 0 -2px #0c111b,
    7px 9px 0 -1px rgba(255, 255, 255, 0.07),
    14px 17px 0 -4px #0a0f18,
    14px 17px 0 -3px rgba(255, 255, 255, 0.05),
    0 30px 44px -28px rgba(0, 0, 0, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .octo-sheet,
  .reveal-stagger.is-visible > .octo-sheet.reveal-item:hover {
    transform: none !important;
    transition: none !important;
  }
}


/* ========================================================
   FULLSCREEN LUXURY HERO SECTION (Behind Navbar)
   Photorealistic City & Laptop Background (Dark & Light)
   ======================================================== */
.octo-hero-full {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: -92px; /* Pulls hero all the way to screen top behind navbar */
  padding-top: 92px; /* Counteracts the pull so content is centered */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--bg-primary, #090d16);
}

@media (max-width: 768px) {
  .octo-hero-full {
    margin-top: -84px;
    padding-top: 84px;
  }
}

/* Dual-Theme Background Layer */
.octo-hero-full__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.octo-hero-full__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 28% center; /* Keeps laptop with OctoSRC logo clearly visible on the left */
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dual-Theme Background Base (Desktop 16:9) */
.octo-hero-full__img--light {
  background-image: url('images/hero-city-light.jpg');
  opacity: 1;
}

.octo-hero-full__img--dark {
  background-image: url('images/hero-city-dark.jpg');
  opacity: 0;
}

html.dark .octo-hero-full__img--light {
  opacity: 0;
}

html.dark .octo-hero-full__img--dark {
  opacity: 1;
}

/* Services Page Hero Variant Images (Desktop 16:9) */
.octo-hero-full--services .octo-hero-full__img {
  background-position: 24% center;
}
.octo-hero-full--services .octo-hero-full__img--light {
  background-image: url('images/services-hero-light.jpg');
}
.octo-hero-full--services .octo-hero-full__img--dark {
  background-image: url('images/services-hero-dark.jpg');
}

/* Atmospheric Gradients for Unbeatable Text Contrast */
.octo-hero-full__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 82% at 86% 48%, rgba(255, 255, 255, 0.88) 0%, rgba(241, 245, 249, 0.56) 45%, rgba(241, 245, 249, 0.08) 78%, transparent 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.52) 0%, transparent 18%, transparent 78%, var(--bg-primary, #eaeef4) 100%);
  transition: background 0.6s ease;
}

html.dark .octo-hero-full__overlay {
  background:
    radial-gradient(ellipse 70% 80% at 88% 50%, rgba(9, 13, 22, 0.92) 0%, rgba(9, 13, 22, 0.75) 48%, rgba(9, 13, 22, 0.25) 85%, transparent 100%),
    linear-gradient(to bottom, rgba(9, 13, 22, 0.7) 0%, transparent 18%, transparent 78%, var(--bg-primary, #0d0918) 100%);
}

/* Container & Typography */
.octo-hero-full__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
  padding-block: clamp(40px, 8vh, 80px);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* RTL: pushes copy to the right */
}

.octo-hero-full__copy {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vh, 22px);
}

/* Dedicated Portrait / Mobile Composition:
   Laptop & logo cleanly centered at the BOTTOM; headline & CTAs cleanly above */
@media (max-width: 900px) and (orientation: portrait), (max-width: 540px) {
  .octo-hero-full {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100svh;
  }

  .octo-hero-full__img {
    background-position: center bottom;
    background-size: cover;
  }

  .octo-hero-full__img--light {
    background-image: url('images/hero-mobile-light.jpg');
  }

  .octo-hero-full__img--dark {
    background-image: url('images/hero-mobile-dark.jpg');
  }

  .octo-hero-full--services .octo-hero-full__img {
    background-position: center bottom;
  }

  .octo-hero-full--services .octo-hero-full__img--light {
    background-image: url('images/services-hero-mobile-light.jpg');
  }

  .octo-hero-full--services .octo-hero-full__img--dark {
    background-image: url('images/services-hero-mobile-dark.jpg');
  }

  .octo-hero-full__overlay {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(248, 250, 252, 0.54) 36%,
      rgba(248, 250, 252, 0.12) 54%,
      rgba(255, 255, 255, 0) 64%,
      rgba(234, 238, 244, 0) 90%,
      var(--bg-primary, #eaeef4) 100%
    );
  }

  html.dark .octo-hero-full__overlay {
    background: linear-gradient(
      to bottom,
      rgba(9, 13, 22, 0.72) 0%,
      rgba(9, 13, 22, 0.52) 36%,
      rgba(9, 13, 22, 0.14) 54%,
      rgba(9, 13, 22, 0) 64%,
      rgba(9, 13, 22, 0) 88%,
      var(--bg-primary, #0d0918) 100%
    );
  }

  .octo-hero-full__container {
    justify-content: center;
    padding-inline: clamp(16px, 4.5vw, 32px);
    padding-top: clamp(14px, 3svh, 34px);
    padding-bottom: clamp(250px, 46svh, 420px);
  }

  .octo-hero-full__copy {
    max-width: 34rem;
    align-items: center;
    text-align: center;
    gap: clamp(10px, 1.8svh, 16px);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .octo-hero-title {
    font-size: clamp(22px, 5.8vw, 36px) !important;
    line-height: 1.26 !important;
  }

  .octo-hero-sub {
    font-size: clamp(12.5px, 3.3vw, 15px) !important;
    line-height: 1.7 !important;
    max-width: 24rem;
    margin-inline: auto;
  }

  .octo-hero-actions {
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
  }

  .octo-hero-btn--wa,
  .octo-hero-btn--ghost {
    padding: 10px 18px;
    font-size: 13px;
  }

  .octo-hero-trust {
    justify-content: center;
    gap: 8px 14px;
    margin-top: 2px;
    padding-top: 10px;
  }

  .octo-hero-trust__item {
    font-size: 11px;
  }
}

/* Portrait Tablets (iPad Mini / Air / Pro in portrait) refinement */
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  .octo-hero-full__container {
    padding-top: clamp(32px, 5svh, 64px);
    padding-bottom: clamp(360px, 48svh, 520px);
  }

  .octo-hero-title {
    font-size: clamp(30px, 4.6vw, 42px) !important;
  }

  .octo-hero-sub {
    max-width: 32rem;
    font-size: 15.5px !important;
  }
}

/* Landscape mobile phones keep desktop 16:9 scene neatly scaled */
@media (max-width: 900px) and (orientation: landscape) and (min-width: 541px) {
  .octo-hero-full__container {
    padding-block: clamp(18px, 4vh, 36px);
  }
  .octo-hero-title {
    font-size: clamp(22px, 3.6vw, 32px) !important;
  }
  .octo-hero-sub {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
}

/* Badge */
.octo-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark .octo-hero-kicker {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
}

.octo-hero-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: octo-dot-pulse 2s infinite ease-in-out;
}

@keyframes octo-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Headline */
.octo-hero-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #111827;
  text-wrap: balance;
}

html.dark .octo-hero-title {
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 40%, #e0e7ff 75%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.25));
}

/* Description */
.octo-hero-sub {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.9;
  color: #374151;
  max-width: 38rem;
}

html.dark .octo-hero-sub {
  color: #94a3b8;
}

/* Actions */
.octo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

/* WhatsApp Primary Button */
.octo-hero-btn--wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 14px 34px -10px rgba(37, 211, 102, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  text-decoration: none !important;
}

.octo-hero-btn--wa:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 20px 42px -10px rgba(37, 211, 102, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.octo-hero-btn--wa:active {
  transform: translateY(0) scale(0.98);
}

.octo-hero-btn--wa i {
  font-size: 19px;
  transition: transform 0.3s ease;
}

.octo-hero-btn--wa:hover i {
  transform: scale(1.15) rotate(6deg);
}

/* Secondary Ghost Button */
.octo-hero-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

html.dark .octo-hero-btn--ghost {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.octo-hero-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.4);
  color: #6d28d9;
}

html.dark .octo-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 139, 250, 0.4);
  color: #ffffff;
}

/* Trust Pills Row */
.octo-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark .octo-hero-trust {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.octo-hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11.5px, 1.4vw, 13px);
  font-weight: 700;
  color: #4b5563;
}

html.dark .octo-hero-trust__item {
  color: #94a3b8;
}


/* Theme contrast guarantees */
html:not(.dark) .octo-hero-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
  filter: none !important;
}
html.dark .octo-hero-title {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ffffff 40%, #e0e7ff 75%, #c7d2fe 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.35)) !important;
}
html:not(.dark) .octo-hero-sub {
  color: #334155 !important;
}
html.dark .octo-hero-sub {
  color: #cbd5e1 !important;
}
html:not(.dark) .octo-hero-kicker {
  color: #5b21b6 !important;
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
}
html.dark .octo-hero-kicker {
  color: #ddd6fe !important;
  background: rgba(167, 139, 250, 0.1) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
}
html:not(.dark) .octo-hero-trust__item {
  color: #334155 !important;
}
html.dark .octo-hero-trust__item {
  color: #cbd5e1 !important;
}

.octo-hero-trust__item i {
  color: #7c3aed;
  font-size: 13px;
}

html.dark .octo-hero-trust__item i {
  color: #a78bfa;
}

/* ==========================================================
   HERO — "SOVEREIGN CORE"
   No stock photo. A hand-built scene: aurora light, a
   perspective grid horizon, and the octopus as a holographic
   core inside a radar orbit, with floating glass telemetry.
   ========================================================== */
.octo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 100% at 88% -10%, rgba(167, 139, 250, 0.12), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(139, 92, 246, 0.20), transparent 60%),
    linear-gradient(155deg, #060a14 0%, #0a1120 46%, #070b16 100%);
  box-shadow:
    0 50px 90px -60px rgba(2, 6, 23, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .octo-hero { border-radius: 38px; }
}

.octo-hero::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 14%;
  height: 1px;
  z-index: 4;
  opacity: 0.75;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), rgba(167, 139, 250, 0.8), transparent);
}

.octo-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Fine dot-matrix texture, faded toward the edges */
.octo-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.6px, transparent 0.7px);
  background-size: 24px 24px;
  opacity: 0.13;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(75% 75% at 50% 30%, #000 0%, transparent 78%);
}

/* Thin horizon line where the grid meets the dark */
.octo-hero__bg::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 17%;
  height: 1px;
  opacity: 0.8;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.25), rgba(139, 92, 246, 0.32), transparent);
}

.octo-hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.octo-hero__aurora--a {
  width: 46vw;
  max-width: 560px;
  aspect-ratio: 1;
  top: -22%;
  inset-inline-start: -10%;
  background: rgba(124, 58, 237, 0.45);
  animation: octo-aurora-a 16s ease-in-out infinite;
}

.octo-hero__aurora--b {
  width: 40vw;
  max-width: 480px;
  aspect-ratio: 1;
  bottom: -30%;
  inset-inline-end: -8%;
  background: rgba(139, 92, 246, 0.28);
  animation: octo-aurora-b 20s ease-in-out infinite;
}

/* Perspective floor — a quiet "systems" horizon */
.octo-hero__grid {
  position: absolute;
  inset-inline: -25%;
  bottom: -16%;
  height: 52%;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(440px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0%, transparent 88%);
  opacity: 0.55;
}

.octo-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 34px 24px 38px;
}

@media (min-width: 640px) {
  .octo-hero__inner { padding: 44px 40px 46px; }
}

@media (min-width: 900px) {
  .octo-hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(20px, 3vw, 48px);
    min-height: 620px;
    padding: 52px 48px;
  }
}

.octo-hero__copy {
  max-width: 620px;
}

.octo-hero__title {
  margin: 20px 0 0;
  font-size: clamp(30px, 3.9vw, 54px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 30%, #e6e2ff 68%, #b6a4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  filter: drop-shadow(0 10px 32px rgba(76, 29, 149, 0.35));
}

.octo-hero__desc {
  margin-top: 16px;
  max-width: 34rem;
  font-size: 14px;
  line-height: 1.95;
  color: #9fa9bd;
}

.octo-hero__title-accent {
  display: block;
  margin-top: 8px;
  font-family: 'Playfair Display', 'Tajawal', serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-accent-text);
  text-wrap: balance;
}
html.dark .octo-hero__title-accent { color: #a78bfa; }

@media (min-width: 768px) {
  .octo-hero__desc { font-size: 15px; }
}

.octo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.octo-hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.octo-hero__btn--primary {
  background: #ffffff;
  color: #0a0e18;
  box-shadow:
    0 14px 34px -16px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.octo-hero__btn--primary i {
  color: #7c3aed;
  font-size: 12px;
}

.octo-hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -18px rgba(255, 255, 255, 0.65);
}

.octo-hero__btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.octo-hero__btn--ghost {
  color: #e7ebf6;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.octo-hero__btn--ghost i {
  color: #a78bfa;
  font-size: 13px;
}

.octo-hero__btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------------- Scene: holographic core ---------------- */
.octo-hero__scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .octo-hero__scene { min-height: 540px; margin-top: 0; }
}

.octo-orbit {
  position: relative;
  width: min(88%, 430px);
  aspect-ratio: 1;
}

@media (min-width: 1024px) {
  .octo-orbit { width: min(98%, 470px); }
}

@media (max-width: 899px) {
  .octo-hero__scene { min-height: 340px; }
  .octo-orbit { width: min(82%, 340px); }
}

/* Tablet landscape / small laptops: a tighter two-column stage */
@media (min-width: 900px) and (max-width: 1023px) {
  .octo-hero__scene { min-height: 500px; }
  .octo-orbit { width: min(94%, 350px); }
}

.octo-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196, 181, 253, 0.16);
  pointer-events: none;
}

.octo-orbit__ring--a {
  inset: 0;
  border-style: dashed;
  animation: octo-spin 46s linear infinite;
}

.octo-orbit__ring--b {
  inset: 9%;
  border-color: rgba(167, 139, 250, 0.16);
  animation: octo-spin 34s linear infinite reverse;
}

.octo-orbit__ring--c {
  inset: 19%;
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.22);
  animation: octo-spin 26s linear infinite;
}

.octo-orbit__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.9;
  background: conic-gradient(from 210deg,
    transparent 0deg 288deg,
    rgba(167, 139, 250, 0.05) 318deg,
    rgba(167, 139, 250, 0.30) 354deg,
    transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%);
  mask: radial-gradient(circle, transparent 56%, #000 57%);
  animation: octo-spin 9s linear infinite;
}

.octo-orbit__dots {
  position: absolute;
  inset: 0;
  animation: octo-spin 40s linear infinite;
}

.octo-orbit__dots i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 12px 2px rgba(167, 139, 250, 0.8);
}

.octo-orbit__dots i:nth-child(1) { top: -3px; left: 50%; }
.octo-orbit__dots i:nth-child(2) { top: 50%; right: -3px; background: #a78bfa; box-shadow: 0 0 12px 2px rgba(167, 139, 250, 0.8); }
.octo-orbit__dots i:nth-child(3) { bottom: -3px; left: 50%; }
.octo-orbit__dots i:nth-child(4) { top: 50%; left: -3px; background: #a78bfa; box-shadow: 0 0 12px 2px rgba(167, 139, 250, 0.8); }

.octo-orbit__core {
  position: absolute;
  inset: 14% 21% 28% 21%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%,
    rgba(139, 92, 246, 0.38),
    rgba(76, 29, 149, 0.10) 56%,
    transparent 74%);
  box-shadow:
    0 0 90px 6px rgba(124, 58, 237, 0.22),
    inset 0 0 70px rgba(124, 58, 237, 0.18);
  animation: octo-core-breathe 6s ease-in-out infinite;
}

.octo-orbit__core::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.18);
}

.octo-orbit__core img {
  position: relative;
  top: 0;
  width: 88%;
  max-width: none;
  height: auto;
  user-select: none;
  filter:
    drop-shadow(0 14px 34px rgba(76, 29, 149, 0.75))
    drop-shadow(0 0 18px rgba(139, 92, 246, 0.45))
    brightness(1.1)
    saturate(1.15);
  animation: octo-hover 6.5s ease-in-out infinite;
}

/* The glass telemetry chips (UPTIME / Critical CVEs) were removed
   from the hero, so their styles and keyframes are gone too — the
   live clock now lives in the navbar. */

@keyframes octo-spin {
  to { transform: rotate(360deg); }
}

@keyframes octo-hover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.4deg); }
}

@keyframes octo-core-breathe {
  0%, 100% { opacity: 0.85; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes octo-aurora-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(42px, 30px, 0) scale(1.1); }
}

@keyframes octo-aurora-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-52px, -26px, 0) scale(0.95); }
}

@keyframes octo-ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .octo-hero__aurora,
  .octo-orbit__ring,
  .octo-orbit__sweep,
  .octo-orbit__dots,
  .octo-orbit__core,
  .octo-orbit__core img,
  .octo-clock__dot {
    animation: none !important;
  }

  .octo-hero__btn,
  .octo-hero__btn:hover,
  .octo-hero__btn:active {
    transition: none !important;
    transform: none !important;
  }
}

/* ========================================================
   SERVICES · THE INDEX
   A white editorial ledger: eight disciplines as numbered
   rows, hairline rules, an oversized outlined count, and a
   quiet logo-violet accent reserved for interaction.
   ======================================================== */
.svc {
  --svc-ink: #0b1220;
  --svc-muted: #64748b;
  --svc-faint: #94a3b8;
  --svc-line: #e8edf3;
  --svc-paper: #ffffff;
  --svc-tint: rgba(124, 58, 237, 0.035);
  --svc-accent: #7c3aed;
  --svc-accent-soft: rgba(124, 58, 237, 0.10);
  --svc-accent-line: rgba(124, 58, 237, 0.26);
  position: relative;
  isolation: isolate;
  background-color: var(--svc-paper);
  color: var(--svc-ink);
  padding-block: clamp(58px, 7.5vw, 104px);
  overflow: clip;
}

html.dark .svc {
  --svc-ink: #f0ecff;
  --svc-muted: #9fb0c6;
  --svc-faint: #64748b;
  --svc-line: rgba(255, 255, 255, 0.09);
  --svc-paper: #0b1120;
  --svc-tint: rgba(167, 139, 250, 0.06);
  --svc-accent: #a78bfa;
  --svc-accent-soft: rgba(167, 139, 250, 0.14);
  --svc-accent-line: rgba(167, 139, 250, 0.28);
}

/* Fine dot texture, fading out before it reaches the list */
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--svc-line) 1px, transparent 1.1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 64%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 64%);
  pointer-events: none;
  opacity: 0.7;
}

.svc__shell {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ==================== Header ==================== */
.svc__head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 4.6vw, 60px);
}

.svc__head-main { min-width: 0; }

.svc__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--svc-accent-line);
  background: var(--svc-accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--svc-accent);
}

.svc__kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--svc-accent);
  box-shadow: 0 0 0 0 var(--svc-accent-soft);
  animation: svc-pulse 2.6s ease-in-out infinite;
}

@keyframes svc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--svc-accent-soft); }
  55% { box-shadow: 0 0 0 7px transparent; }
}

.svc__title {
  margin: clamp(16px, 2vw, 24px) 0 0;
  font-size: clamp(29px, 3.9vw, 52px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--svc-ink);
  text-wrap: balance;
  max-width: 20ch;
}

.svc__head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 6px;
  min-width: 0;
}

.svc__lead {
  margin: 0;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 2;
  color: var(--svc-muted);
}

.svc__meta {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.svc__meta-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--svc-accent);
  opacity: 0.18;
}

@supports (-webkit-text-stroke: 1px #000) {
  .svc__meta-num {
    color: transparent;
    opacity: 0.85;
    -webkit-text-stroke: 1.5px var(--svc-accent);
  }
}

.svc__meta-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--svc-faint);
  padding-bottom: 4px;
}

/* ==================== The ledger ==================== */
.svc__list {
  border-top: 1px solid var(--svc-line);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 50px minmax(0, 1.05fr) minmax(0, 0.95fr) 44px;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: clamp(20px, 2.3vw, 30px) clamp(4px, 0.8vw, 10px);
  border-bottom: 1px solid var(--svc-line);
  cursor: pointer;
  outline: none;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.svc-row:hover,
.svc-row:focus-visible {
  background-color: var(--svc-tint);
}

.svc-row:focus-visible {
  outline: 2px solid var(--svc-accent);
  outline-offset: -2px;
}

/* Accent bar that grows on interaction */
.svc-row::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 2px;
  background: var(--svc-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-row:hover::before,
.svc-row:focus-visible::before {
  transform: scaleY(1);
}

/* Blueprint tick on every rule */
.svc-row::after {
  content: "+";
  position: absolute;
  inset-inline-start: 0;
  top: -7px;
  padding-inline: 3px;
  background-color: var(--svc-paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1;
  color: var(--svc-faint);
  opacity: 0.55;
  transition: color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.svc-row:hover::after {
  color: var(--svc-accent);
  opacity: 1;
}

.svc-row__num {
  justify-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--svc-faint);
  transition: color 0.35s ease, transform 0.35s ease;
}

.svc-row:hover .svc-row__num {
  color: var(--svc-accent);
  transform: translateY(-1px);
}

.svc-row__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--svc-line);
  background-color: var(--svc-paper);
  color: var(--svc-ink);
  font-size: 15px;
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-row:hover .svc-row__icon,
.svc-row:focus-visible .svc-row__icon {
  background-color: var(--svc-ink);
  border-color: var(--svc-ink);
  color: var(--svc-paper);
  transform: rotate(-6deg) scale(1.04);
}

.svc-row__title {
  margin: 0;
  min-width: 0;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--svc-ink);
  transition: color 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-row:hover .svc-row__title {
  transform: translateX(6px);
}

html[dir="rtl"] .svc-row:hover .svc-row__title {
  transform: translateX(-6px);
}

.svc-row__desc {
  margin: 0;
  min-width: 0;
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--svc-muted);
}

.svc-row__go {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--svc-line);
  color: var(--svc-ink);
  font-size: 11px;
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.svc-row:hover .svc-row__go,
.svc-row:focus-visible .svc-row__go {
  background-color: var(--svc-accent);
  border-color: var(--svc-accent);
  color: #ffffff;
  transform: rotate(8deg);
  box-shadow: 0 12px 26px -12px rgba(124, 58, 237, 0.7);
}

html.dark .svc-row:hover .svc-row__go,
html.dark .svc-row:focus-visible .svc-row__go {
  color: #06202e;
}

/* ==================== Footer ==================== */
.svc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: clamp(28px, 3.4vw, 44px);
}

.svc__foot-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--svc-muted);
}

.svc__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 999px;
  background-color: var(--svc-ink);
  color: var(--svc-paper);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px -20px rgba(11, 18, 32, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc__cta i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.svc__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -20px rgba(11, 18, 32, 0.7);
}

.svc__cta:hover i {
  transform: translateX(-4px);
}

html[dir="ltr"] .svc__cta:hover i {
  transform: translateX(4px);
}

/* ==================== Tablet ==================== */
@media (max-width: 860px) {
  .svc__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .svc__head-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    padding-bottom: 0;
  }

  .svc__title { max-width: none; }

  .svc-row {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    grid-template-areas:
      "num title go"
      "icon desc desc";
    row-gap: 10px;
    align-items: center;
  }

  .svc-row__num { grid-area: num; }
  .svc-row__icon {
    grid-area: icon;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }
  .svc-row__title { grid-area: title; }
  .svc-row__desc { grid-area: desc; margin: 0; }
  .svc-row__go { grid-area: go; width: 36px; height: 36px; }
}

/* ==================== Small phones ==================== */
@media (max-width: 560px) {
  .svc__head-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .svc__title { font-size: clamp(25px, 7.2vw, 33px); }

  .svc-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    column-gap: 12px;
    padding-block: 17px;
  }

  .svc-row__icon { display: none; }

  .svc-row__title { font-size: 17.5px; }
  .svc-row__desc { font-size: 12.5px; line-height: 1.8; }
  .svc-row__go { width: 34px; height: 34px; font-size: 10px; }

  .svc__foot { justify-content: flex-start; }
}

/* ==================== Reduced motion ==================== */
@media (prefers-reduced-motion: reduce) {
  .svc-row,
  .svc-row__num,
  .svc-row__icon,
  .svc-row__title,
  .svc-row__go,
  .svc__cta,
  .svc__cta i {
    transition: none !important;
  }

  .svc-row:hover .svc-row__title,
  html[dir="rtl"] .svc-row:hover .svc-row__title,
  .svc-row:hover .svc-row__icon,
  .svc-row:hover .svc-row__go,
  .svc__cta:hover,
  .svc__cta:hover i {
    transform: none;
  }

  .svc__kicker-dot { animation: none; }
}

/* ========================================================
   SERVICES PAGE · HERO, WHAT WE DO, WHY OCTOSRC
   A quiet editorial flow that leads into THE INDEX:
   dark typographic hero, hairline lists, four flat cards.
   ======================================================== */
.sp-intro,
.sp-why {
  --sp-ink: #0b1220;
  --sp-muted: #64748b;
  --sp-faint: #94a3b8;
  --sp-line: #e6ebf1;
  --sp-paper: #ffffff;
  --sp-accent: #7c3aed;
  --sp-accent-soft: rgba(124, 58, 237, 0.08);
  --sp-accent-line: rgba(124, 58, 237, 0.26);
}

html.dark .sp-intro,
html.dark .sp-why {
  --sp-ink: #f0ecff;
  --sp-muted: #9fb0c6;
  --sp-faint: #64748b;
  --sp-line: rgba(255, 255, 255, 0.09);
  --sp-paper: #15102a;
  --sp-accent: #a78bfa;
  --sp-accent-soft: rgba(167, 139, 250, 0.12);
  --sp-accent-line: rgba(167, 139, 250, 0.3);
}

/* ==================== Hero ==================== */
.sp-hero {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: 16px clamp(16px, 4vw, 32px) 0;
}

.sp-hero__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(330px, 42vw, 430px);
  padding: clamp(26px, 4vw, 52px);
  border-radius: clamp(26px, 3vw, 36px);
  background-color: #0b1220;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 64px -46px rgba(11, 18, 32, 0.75);
}

.sp-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(85% 90% at 82% 22%, #000 0%, transparent 72%);
  mask-image: radial-gradient(85% 90% at 82% 22%, #000 0%, transparent 72%);
  pointer-events: none;
}

.sp-hero__glow {
  position: absolute;
  z-index: -1;
  inset-inline-end: -12%;
  top: -55%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.30) 0%, rgba(167, 139, 250, 0.06) 45%, transparent 68%);
  pointer-events: none;
}

.sp-hero__mark {
  position: absolute;
  z-index: 0;
  top: 50%;
  inset-inline-end: clamp(8px, 3.5vw, 52px);
  transform: translateY(-50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(112px, 17vw, 200px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(196, 181, 253, 0.08);
  user-select: none;
  pointer-events: none;
}

@supports (-webkit-text-stroke: 1px #000) {
  .sp-hero__mark {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(196, 181, 253, 0.22);
  }
}

.sp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 62ch;
}

.sp-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(167, 139, 250, 0.08);
  color: #ddd6fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sp-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16);
}

.sp-hero__title {
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-wrap: balance;
}

.sp-hero__desc {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  max-width: 52ch;
  font-size: clamp(13.5px, 1.35vw, 16px);
  line-height: 1.95;
  color: rgba(226, 232, 240, 0.74);
}

.sp-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(30px, 4vw, 54px);
}

.sp-hero__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.62);
}

.sp-hero__crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sp-hero__crumbs a:hover { color: #ffffff; }
.sp-hero__crumbs span { color: #c4b5fd; }
.sp-hero__crumbs i { font-size: 9px; opacity: 0.55; }
html[dir="ltr"] .sp-hero__crumbs i { transform: rotate(180deg); }

.sp-hero__count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.58);
}

.sp-hero__count b {
  margin-inline-end: 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  color: #c4b5fd;
  vertical-align: -2px;
}

/* ==================== Shared kicker ==================== */
.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-accent);
}

.sp-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ==================== What we do ==================== */
.sp-intro {
  padding-block: clamp(56px, 8vw, 100px) clamp(30px, 4vw, 52px);
}

.sp-intro__shell,
.sp-why__shell {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.sp-why__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.sp-intro__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  max-width: 1180px;
}

.sp-intro__copy h2 {
  margin: 16px 0 0;
  max-width: 100%;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--sp-ink);
  text-wrap: pretty;
}

.sp-intro__desc,
.sp-why__lead {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 2;
  color: var(--sp-muted);
}

.sp-intro__focus {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(34px, 4.5vw, 58px);
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--sp-line);
}

.sp-intro__focus-title {
  margin: 6px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-faint);
}

.sp-focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  column-gap: clamp(24px, 4vw, 56px);
}

.sp-focus li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 13px;
  border-bottom: 1px solid var(--sp-line);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--sp-ink);
}

.sp-focus__n {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sp-accent);
}

/* ==================== Why OctoSRC ==================== */
.sp-why {
  padding-bottom: clamp(62px, 8vw, 108px);
}

.sp-why__head {
  padding-top: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--sp-line);
}

.sp-why__copy h2 {
  margin: 18px 0 0;
  max-width: 26ch;
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--sp-ink);
  text-wrap: balance;
}

.sp-why__lead {
  max-width: 42ch;
}

.sp-why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(30px, 4vw, 50px);
}

.sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  background-color: var(--sp-paper);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
  border-color: var(--sp-accent-line);
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -38px rgba(11, 18, 32, 0.55);
}

.sp-card__num {
  position: absolute;
  top: clamp(22px, 2.4vw, 30px);
  inset-inline-end: clamp(22px, 2.4vw, 30px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--sp-faint);
  transition: color 0.3s ease;
}

.sp-card:hover .sp-card__num {
  color: var(--sp-accent);
}

.sp-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background-color: var(--sp-accent-soft);
  color: var(--sp-accent);
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sp-card:hover .sp-card__icon {
  background-color: var(--sp-ink);
  color: var(--sp-paper);
  transform: rotate(-5deg);
}

.sp-card__title {
  margin: 4px 0 0;
  padding-inline-end: 34px;
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--sp-ink);
}

.sp-card__desc {
  margin: 0;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.95;
  color: var(--sp-muted);
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .sp-intro__head,
  .sp-why__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sp-intro__desc,
  .sp-why__lead {
    max-width: 60ch;
  }

  .sp-intro__focus {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .sp-hero__card {
    min-height: 300px;
  }

  .sp-hero__title {
    font-size: clamp(38px, 12vw, 56px);
  }

  .sp-hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sp-why__grid {
    grid-template-columns: 1fr;
  }

  .sp-focus {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-card,
  .sp-card__num,
  .sp-card__icon {
    transition: none !important;
  }

  .sp-card:hover,
  .sp-card:hover .sp-card__icon {
    transform: none;
  }
}

/* ========================================================
   PORTFOLIO PAGE · CINEMATIC HERO, 3D CAROUSEL, METRICS
   ======================================================== */
/* ========================================================
   PORTFOLIO PAGE · CINEMATIC HERO, 3D CAROUSEL, METRICS
   Warm earth-glow backdrop, a calm typographic head, and
   cards that glide on a real CSS transition (no re-render).
   ======================================================== */

.po-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 32px);
  margin-top: -92px;
  min-height: clamp(720px, 96svh, 920px);
  padding: calc(92px + clamp(24px, 3.6vw, 44px)) clamp(16px, 4vw, 40px) clamp(24px, 3vw, 38px);
  background: #050913;
  color: #ffffff;
}

.po-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: brightness(0.84) saturate(1.12);
  transform: scale(1.04);
  pointer-events: none;
}

.po-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(115% 70% at 50% 112%, rgba(167, 139, 250, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.94) 0%, rgba(3, 7, 18, 0.72) 34%, rgba(3, 7, 18, 0.52) 60%, rgba(3, 7, 18, 0.9) 100%);
  pointer-events: none;
}

.po-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 58% at 50% 20%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 58% at 50% 20%, #000 0%, transparent 80%);
  pointer-events: none;
}

.po-hero__glow {
  position: absolute;
  z-index: -1;
  top: -34%;
  inset-inline-end: -12%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.26) 0%, rgba(167, 139, 250, 0.06) 46%, transparent 70%);
  pointer-events: none;
}

.po-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
}

.po-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(167, 139, 250, 0.08);
  color: #ddd6fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.po-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16);
}

.po-hero__title {
  margin: 0;
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.028em;
  color: #ffffff;
  text-wrap: balance;
}

.po-hero__desc {
  margin: clamp(10px, 1.4vw, 16px) 0 0;
  max-width: 56ch;
  font-size: clamp(13px, 1.3vw, 15.5px);
  line-height: 1.95;
  color: rgba(226, 232, 240, 0.78);
  text-wrap: pretty;
}

.po-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(18px, 2.4vw, 28px);
}

.po-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.po-btn:hover { transform: translateY(-1px); }
.po-btn:active { transform: translateY(0) scale(0.99); }
.po-btn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }

.po-btn--solid {
  background: #ffffff;
  color: #0b1220;
  box-shadow: 0 16px 34px -20px rgba(255, 255, 255, 0.6);
}

.po-btn--solid:hover { background: #e6f4ff; }

.po-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.po-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.36);
}

/* ==================== 3D carousel ==================== */
.po-carousel {
  position: relative;
  z-index: 2;
  width: 100%;
}

.po-carousel__stage {
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
}

.po-carousel__track {
  position: relative;
  height: 424px;
  transform-style: preserve-3d;
}

.carousel-3d-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 410px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: #0b1220;
  box-shadow: 0 30px 60px -42px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, border-color 0.4s ease, box-shadow 0.5s ease;
}

.carousel-3d-card.is-active {
  border-color: rgba(196, 181, 253, 0.6);
  box-shadow:
    0 34px 70px -34px rgba(0, 0, 0, 0.94),
    0 0 0 1px rgba(167, 139, 250, 0.24),
    0 0 46px -10px rgba(167, 139, 250, 0.38);
}

.carousel-3d-card:hover {
  border-color: rgba(196, 181, 253, 0.45);
}

.carousel-3d-card:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: -2px;
}

.po-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.9s ease, filter 0.6s ease;
}

.carousel-3d-card:hover .po-card__img { transform: scale(1.06); }

.po-card__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.38) 0%, rgba(4, 8, 18, 0.06) 32%, rgba(4, 8, 18, 0.62) 64%, rgba(4, 8, 18, 0.95) 100%);
  pointer-events: none;
}

.po-card__body {
  position: absolute;
  inset-inline: 18px;
  bottom: 16px;
  z-index: 3;
  text-align: start;
  transition: opacity 0.5s ease;
}

.carousel-3d-card:not(.is-active) .po-card__body { opacity: 0; }

.po-card__cat {
  display: block;
  margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.po-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
}

.po-card__impact {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.84);
}

.po-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  color: #ddd6fe;
}

.po-carousel__nav {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(2px, 1.6vw, 14px);
  pointer-events: none;
}

.po-carousel__arrow {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 17, 32, 0.6);
  color: #e6f3ff;
  font-size: 13px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.po-carousel__arrow:hover {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(196, 181, 253, 0.55);
  transform: scale(1.06);
}

.po-carousel__arrow:active { transform: scale(0.96); }
.po-carousel__arrow:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }

.po-carousel__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(8px, 1.4vw, 16px);
}

.po-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.po-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.po-carousel__dots button:hover { background: rgba(255, 255, 255, 0.5); }

.po-carousel__dots button.is-active {
  width: 26px;
  background: #c4b5fd;
}

.po-carousel__dots button:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }

/* ==================== Metrics ==================== */
.po-metric {
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 24px;
  border: 1px solid #e6ebf3;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

html.dark .po-metric {
  background-color: #15102a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.po-metric:hover {
  border-color: rgba(124, 58, 237, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -34px rgba(11, 18, 32, 0.5);
}

.po-metric__num {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0b1220;
  font-variant-numeric: tabular-nums;
}

html.dark .po-metric__num { color: #f1f7ff; }

.po-metric__label {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d28d9;
}

html.dark .po-metric__label { color: #c4b5fd; }

.po-metric__desc {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #4b5563;
}

html.dark .po-metric__desc { color: #9fb0c6; }

/* ==================== Drawer palette ==================== */
.po-drawer__code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(196, 181, 253, 0.25);
  background-color: #08111f;
  color: #c4b5fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.po-drawer__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
}

html.dark .po-drawer__cat { color: #94a3b8; }

.po-drawer__label {
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563;
}

html.dark .po-drawer__label { color: #94a3b8; }

.po-drawer__status {
  padding: 5px 12px;
  border-radius: 999px;
  background-color: #047857;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.7);
}

.po-drawer__results {
  margin-bottom: 32px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #ddd6fe;
  background-color: #f5f3ff;
}

html.dark .po-drawer__results {
  border-color: rgba(167, 139, 250, 0.3);
  background-color: rgba(46, 16, 101, 0.35);
}

.po-drawer__results-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #5b21b6;
}

html.dark .po-drawer__results-title { color: #c4b5fd; }

.po-drawer__results-list {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  color: #0c4a6e;
}

html.dark .po-drawer__results-list { color: #ddd6fe; }

/* ==================== Gallery polish ==================== */
.octo-gal__panel img { filter: saturate(0.92) brightness(0.86); }
.octo-gal__cap p { color: rgba(255, 255, 255, 0.88); }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .po-hero {
    min-height: 0;
    padding-top: calc(92px + clamp(20px, 4vw, 36px));
  }

  .po-hero__title { font-size: clamp(32px, 8vw, 52px); }
}

@media (max-width: 768px) {
  .po-hero {
    margin-top: -84px;
    padding-top: calc(84px + clamp(20px, 4vw, 36px));
  }
}

@media (max-width: 767px) {
  .po-carousel__track { height: 358px; }
}

@media (max-width: 720px) {
  .po-hero { padding-inline: 14px; }
  .po-hero__glow { width: 80%; top: -26%; }
  .po-carousel__arrow { width: 40px; height: 40px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-3d-card,
  .po-card__img,
  .po-carousel__dots button,
  .po-btn,
  .po-carousel__arrow,
  .po-metric {
    transition: none !important;
  }

  .po-btn:hover,
  .po-carousel__arrow:hover,
  .po-metric:hover,
  .carousel-3d-card:hover .po-card__img {
    transform: none !important;
  }
}

/* ==================== FORM SUBMISSION STATES ==================== */
.octo-form-success {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 22px;
  background: rgba(240, 253, 244, 0.92);
  color: #047857;
  text-align: start;
}

html.dark .octo-form-success {
  background: rgba(6, 78, 59, 0.32);
  border-color: rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
}

.octo-form-success__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #10b981;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 10px 24px -12px rgba(4, 120, 87, 0.65);
}

.octo-form-success__copy {
  display: grid;
  gap: 3px;
  margin: 0;
}

.octo-form-success__copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.octo-form-success__copy span {
  display: block;
  font-size: 11.5px;
  line-height: 1.75;
  color: inherit;
  opacity: 0.9;
}

.octo-form-success__close {
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.octo-form-success__close:hover { opacity: 1; transform: translateY(-1px); }
.octo-form-success__close:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.octo-form-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(254, 242, 242, 0.92);
  color: #be123d;
  font-size: 11.5px;
  line-height: 1.7;
}

html.dark .octo-form-error {
  background: rgba(76, 5, 25, 0.38);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fda4af;
}

@media (max-width: 520px) {
  .octo-form-success {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .octo-form-success__copy { width: 100%; }
}

/* ========================================================
   ACCESSIBLE CHROME — skip link + reading progress
   ======================================================== */
.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.85);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}
[dir="rtl"] .skip-link { inset-inline-start: auto; inset-inline-end: 12px; }

.scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #ddd6fe);
  transform-origin: inset-inline-start 50%;
  transform: scaleX(0);
}
[dir="rtl"] .scroll-progress { transform-origin: inset-inline-end 50%; background: linear-gradient(270deg, #7c3aed, #a78bfa, #ddd6fe); }

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none !important; }
}

/* Tajawal font unify */
body { font-family: "Tajawal", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-inter, .font-tajawal { font-family: "Tajawal", Inter, system-ui, sans-serif !important; }

/* ========================================================
   SERVICES — THE SOVEREIGN PATH LAB (interactive blueprint)
   Dark "war room" chamber in both themes.
   ======================================================== */
.svc-lab [hidden] {
  display: none !important;
}

.svc-lab {
  position: relative;
  padding: 20px 14px 72px;
}

@media (min-width: 768px) {
  .svc-lab { padding: 24px 22px 96px; }
}

.svc-lab__shell {
  position: relative;
  max-width: 82rem;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.14);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(900px 520px at 8% 108%, rgba(124, 58, 237, 0.22), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #070c16 100%);
  box-shadow: 0 40px 80px -40px rgba(2, 6, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 34px 20px 30px;
}

@media (min-width: 768px) {
  .svc-lab__shell { border-radius: 34px; padding: 48px 40px 42px; }
}

@media (min-width: 1280px) {
  .svc-lab__shell { padding: 56px 56px 48px; }
}

.svc-lab__head {
  position: relative;
  max-width: 880px;
  margin: 0 auto 30px;
  text-align: center;
}

.svc-lab__head .sp-kicker { justify-content: center; }

.svc-lab__title {
  margin: 14px 0 12px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #f8fafc;
  text-wrap: balance;
}

.svc-lab__lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.95;
  color: #94a7bd;
}

.svc-lab__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 1024px) {
  .svc-lab__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 26px;
  }
}

/* ---------- Console (questions) ---------- */
.svc-lab__console {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(11, 18, 32, 0.82));
  padding: 20px 18px 16px;
  backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
  .svc-lab__console { padding: 26px 24px 20px; }
}

.svc-lab__q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #dbe6f5;
}

.svc-lab__q:not(:first-child) { margin-top: 18px; }

.svc-lab__q-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #a78bfa;
  opacity: 0.9;
}

.svc-lab__opts {
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .svc-lab__opts { grid-template-columns: 1fr 1fr; }
}

.lab-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #c3cfdd;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.lab-opt i {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(167, 139, 250, 0.10);
  color: #c4b5fd;
  font-size: 15px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.lab-opt:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.05);
  color: #f3efff;
  transform: translateY(-2px);
}

.lab-opt:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.lab-opt.is-active {
  border-color: rgba(167, 139, 250, 0.65);
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.14), rgba(124, 58, 237, 0.12));
  color: #f5f3ff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25) inset, 0 10px 24px -18px rgba(167, 139, 250, 0.6);
}

.lab-opt.is-active i {
  background: linear-gradient(140deg, #a78bfa, #8b5cf6);
  color: #04121f;
  box-shadow: 0 8px 20px -8px rgba(167, 139, 250, 0.75);
}

.svc-lab__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(196, 181, 253, 0.3);
  background: transparent;
  color: #8ea7bd;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.svc-lab__reset:hover,
.svc-lab__reset:focus-visible {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.5);
}

/* ---------- Blueprint (generated answer) ---------- */
.svc-lab__blueprint {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background:
    radial-gradient(520px 320px at 50% -10%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(420px 300px at 50% 115%, rgba(167, 139, 250, 0.12), transparent 62%),
    #080e1c;
  padding: 22px 18px 18px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .svc-lab__blueprint { padding: 26px 26px 22px; }
}

.lab-kicker {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: #a89df0;
  text-transform: uppercase;
}

/* Gauge */
.lab-gauge {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 6px;
}

.lab-gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.lab-gauge__track,
.lab-gauge__fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.lab-gauge__track { stroke: rgba(196, 181, 253, 0.14); }

.lab-gauge__fill {
  stroke: #a78bfa;
  stroke-dasharray: 0 100;   /* pathLength="100" on the circle: 0 filled -> full arc */
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.55));
  transition: stroke-dasharray 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-gauge__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.lab-gauge__value {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lab-gauge__unit {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.lab-gauge__caption {
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #c4b5fd;
  text-transform: uppercase;
}

/* Phases */
.lab-phases {
  list-style: none;
  margin: 16px 0 0;
  padding: 4px 2px 0;
  text-align: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.lab-phase {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.svc-lab__blueprint.is-live .lab-phase { opacity: 1; transform: none; }
.svc-lab__blueprint.is-live .lab-phase:nth-child(1) { transition-delay: 0.15s; }
.svc-lab__blueprint.is-live .lab-phase:nth-child(2) { transition-delay: 0.28s; }
.svc-lab__blueprint.is-live .lab-phase:nth-child(3) { transition-delay: 0.41s; }
.svc-lab__blueprint.is-live .lab-phase:nth-child(4) { transition-delay: 0.54s; }

.lab-phase__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #a78bfa;
  opacity: 0.85;
}

.lab-phase h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #eef2ff;
}

.lab-phase p {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: #8ea3b8;
}

.lab-phase__time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
  color: #c4b5fd;
  opacity: 0.9;
}

.lab-roster {
  margin: 12px 2px 0;
  font-size: 11px;
  line-height: 1.6;
  color: #c4b5fd;
  border-inline-start: 2px solid rgba(167, 139, 250, 0.5);
  padding-inline-start: 10px;
}

/* Idle state */
.lab-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 18px auto 6px;
  max-width: 34ch;
  color: #64748b;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.lab-idle i { font-size: 26px; color: #a78bfa; opacity: 0.75; }

/* CTA */
.svc-lab__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #a78bfa 0%, #6d28d9 100%);
  color: #04121f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 40px -18px rgba(167, 139, 250, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.svc-lab__cta:hover,
.svc-lab__cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -18px rgba(167, 139, 250, 0.75);
}

.svc-lab__cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

/* RTL flips the arrow automatically via rtl:rotate-0 class in markup */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lab-opt,
  .lab-phase,
  .lab-gauge__fill,
  .svc-lab__cta,
  .svc-lab__reset {
    transition: none !important;
    animation: none !important;
  }
  .svc-lab__blueprint.is-live .lab-phase { opacity: 1 !important; transform: none !important; }
}


/* ============================================================
   PALETTE REMAP — OctoSRC logo violet
   tw.css is frozen (62718 bytes) and still emits sky/blue/
   cyan/indigo utilities. style.css loads after tw.css, so
   these rules re-point every one of them to the brand
   violet taken from the logo — no page markup changes.
   ============================================================ */
.border-brand-gold\/30 { border-color:rgb(167 139 250 / 0.3) !important }
.bg-brand-gold { --tw-bg-opacity:1 !important; background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1)) !important }
.bg-sky-500\/10 { background-color:rgb(139 92 246 / 0.1) !important }
.bg-sky-500 { --tw-bg-opacity:1 !important; background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1)) !important }
.text-brand-gold { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.text-sky-600 { --tw-text-opacity:1 !important; color:rgb(124 58 237 / var(--tw-text-opacity, 1)) !important }
.text-sky-500 { --tw-text-opacity:1 !important; color:rgb(139 92 246 / var(--tw-text-opacity, 1)) !important }
.text-blue-500 { --tw-text-opacity:1 !important; color:rgb(139 92 246 / var(--tw-text-opacity, 1)) !important }
.text-cyan-500 { --tw-text-opacity:1 !important; color:rgb(139 92 246 / var(--tw-text-opacity, 1)) !important }
.hover\:border-sky-500:hover { --tw-border-opacity:1 !important; border-color:rgb(139 92 246 / var(--tw-border-opacity, 1)) !important }
.hover\:bg-brand-goldHover:hover { --tw-bg-opacity:1 !important; background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1)) !important }
.hover\:bg-sky-500\/10:hover { background-color:rgb(139 92 246 / 0.1) !important }
.group:hover .group-hover\:text-sky-500 { --tw-text-opacity:1 !important; color:rgb(139 92 246 / var(--tw-text-opacity, 1)) !important }
.dark\:text-sky-400:is(.dark *) { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.border-sky-400\/50 { border-color:rgb(167 139 250 / 0.5) !important }
.border-blue-500\/25 { border-color:rgb(139 92 246 / 0.25) !important }
.border-brand-gold { --tw-border-opacity:1 !important; border-color:rgb(167 139 250 / var(--tw-border-opacity, 1)) !important }
.border-brand-gold\/25 { border-color:rgb(167 139 250 / 0.25) !important }
.border-brand-gold\/60 { border-color:rgb(167 139 250 / 0.6) !important }
.bg-\[\#0284c7\] { --tw-bg-opacity:1 !important; background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1)) !important }
.bg-blue-500\/10 { background-color:rgb(139 92 246 / 0.1) !important }
.bg-brand-gold\/15 { background-color:rgb(167 139 250 / 0.15) !important }
.from-brand-gold\/80 { --tw-gradient-from:rgb(167 139 250 / 0.8) var(--tw-gradient-from-position) !important; --tw-gradient-to:rgb(167 139 250 / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to) !important }
.via-brand-gold\/40 { --tw-gradient-to:rgb(167 139 250 / 0)  var(--tw-gradient-to-position) !important; --tw-gradient-stops:var(--tw-gradient-from), rgb(167 139 250 / 0.4) var(--tw-gradient-via-position), var(--tw-gradient-to) !important }
.text-blue-600 { --tw-text-opacity:1 !important; color:rgb(109 40 217 / var(--tw-text-opacity, 1)) !important }
.ring-brand-gold\/30 { --tw-ring-color:rgb(167 139 250 / 0.3) !important }
.focus-within\:border-brand-gold:focus-within { --tw-border-opacity:1 !important; border-color:rgb(167 139 250 / var(--tw-border-opacity, 1)) !important }
.hover\:bg-\[\#0369a1\]:hover { --tw-bg-opacity:1 !important; background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1)) !important }
.hover\:text-\[\#0284c7\]:hover { --tw-text-opacity:1 !important; color:rgb(124 58 237 / var(--tw-text-opacity, 1)) !important }
.hover\:text-brand-gold:hover { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.focus\:ring-brand-gold:focus { --tw-ring-opacity:1 !important; --tw-ring-color:rgb(167 139 250 / var(--tw-ring-opacity, 1)) !important }
.group:hover .group-hover\:border-brand-gold\/60 { border-color:rgb(167 139 250 / 0.6) !important }
.dark\:border-brand-gold\/50:is(.dark *) { border-color:rgb(167 139 250 / 0.5) !important }
.dark\:bg-sky-500\/15:is(.dark *) { background-color:rgb(139 92 246 / 0.15) !important }
.dark\:text-brand-gold:is(.dark *) { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.dark\:text-blue-400:is(.dark *) { --tw-text-opacity:1 !important; color:rgb(196 181 253 / var(--tw-text-opacity, 1)) !important }
.dark\:hover\:text-brand-gold:hover:is(.dark *) { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.border-sky-500\/20 { border-color:rgb(139 92 246 / 0.2) !important }
.hover\:border-sky-500\/50:hover { border-color:rgb(139 92 246 / 0.5) !important }
.hover\:text-sky-500:hover { --tw-text-opacity:1 !important; color:rgb(139 92 246 / var(--tw-text-opacity, 1)) !important }
.bg-indigo-500\/10 { background-color:rgb(139 92 246 / 0.1) !important }
.text-indigo-600 { --tw-text-opacity:1 !important; color:rgb(109 40 217 / var(--tw-text-opacity, 1)) !important }
.dark\:text-indigo-400:is(.dark *) { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.bg-\[\#38bdf8\] { --tw-bg-opacity:1 !important; background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1)) !important }
.text-\[\#38bdf8\] { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.hover\:bg-\[\#0ea5e9\]:hover { --tw-bg-opacity:1 !important; background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1)) !important }
.hover\:text-\[\#38bdf8\]:hover { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.focus\:border-\[\#38bdf8\]:focus { --tw-border-opacity:1 !important; border-color:rgb(167 139 250 / var(--tw-border-opacity, 1)) !important }
.focus\:ring-\[\#38bdf8\]:focus { --tw-ring-opacity:1 !important; --tw-ring-color:rgb(167 139 250 / var(--tw-ring-opacity, 1)) !important }
.border-sky-500\/30 { border-color:rgb(139 92 246 / 0.3) !important }
.bg-blue-500 { --tw-bg-opacity:1 !important; background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1)) !important }
.bg-sky-400 { --tw-bg-opacity:1 !important; background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1)) !important }
.from-sky-500 { --tw-gradient-from:#8b5cf6 var(--tw-gradient-from-position) !important; --tw-gradient-to:rgb(139 92 246 / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to) !important }
.to-sky-600 { --tw-gradient-to:#7c3aed var(--tw-gradient-to-position) !important }
.text-blue-400 { --tw-text-opacity:1 !important; color:rgb(196 181 253 / var(--tw-text-opacity, 1)) !important }
.text-sky-400 { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.hover\:bg-sky-400:hover { --tw-bg-opacity:1 !important; background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1)) !important }
.hover\:text-sky-400:hover { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.hover\:text-sky-600:hover { --tw-text-opacity:1 !important; color:rgb(124 58 237 / var(--tw-text-opacity, 1)) !important }
.focus\:ring-sky-500:focus { --tw-ring-opacity:1 !important; --tw-ring-color:rgb(139 92 246 / var(--tw-ring-opacity, 1)) !important }
.dark\:bg-sky-500:is(.dark *) { --tw-bg-opacity:1 !important; background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1)) !important }
.border-sky-200\/50 { border-color:rgb(221 214 254 / 0.5) !important }
.bg-sky-950\/30 { background-color:rgb(46 16 101 / 0.3) !important }
.bg-sky-950\/40 { background-color:rgb(46 16 101 / 0.4) !important }
.text-sky-300 { --tw-text-opacity:1 !important; color:rgb(196 181 253 / var(--tw-text-opacity, 1)) !important }
.text-sky-300\/90 { color:rgb(196 181 253 / 0.9) !important }
.dark\:bg-brand-gold:is(.dark *) { --tw-bg-opacity:1 !important; background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1)) !important }
.dark\:bg-sky-950\/20:is(.dark *) { background-color:rgb(46 16 101 / 0.2) !important }
.dark\:bg-sky-950\/40:is(.dark *) { background-color:rgb(46 16 101 / 0.4) !important }
.dark\:text-sky-200\/90:is(.dark *) { color:rgb(221 214 254 / 0.9) !important }
.dark\:text-sky-300:is(.dark *) { --tw-text-opacity:1 !important; color:rgb(196 181 253 / var(--tw-text-opacity, 1)) !important }
.dark\:hover\:bg-brand-goldHover:hover:is(.dark *) { --tw-bg-opacity:1 !important; background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1)) !important }
.border-sky-500 { --tw-border-opacity:1 !important; border-color:rgb(139 92 246 / var(--tw-border-opacity, 1)) !important }
.bg-brand-gold\/10 { background-color:rgb(167 139 250 / 0.1) !important }
.hover\:shadow-brand-gold\/20:hover { --tw-shadow-color:rgb(167 139 250 / 0.2) !important; --tw-shadow:var(--tw-shadow-colored) !important }
.border-brand-gold\/40 { border-color:rgb(167 139 250 / 0.4) !important }
.group:hover .group-hover\:bg-brand-goldHover { --tw-bg-opacity:1 !important; background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1)) !important }
.group:hover .group-hover\:text-brand-gold { --tw-text-opacity:1 !important; color:rgb(167 139 250 / var(--tw-text-opacity, 1)) !important }
.dark\:bg-sky-950\/50:is(.dark *) { background-color:rgb(46 16 101 / 0.5) !important }

/* ============================================================
   BRAND CTA BUTTONS - unified violet gradient (logo palette)
   Old brand-gold pills rendered as flat light violet with
   black text after the palette swap. Re-point every brand
   pill to the canonical violet gradient with white text so
   all CTAs match (portfolio metrics CTA, forms, 404, about).
   ============================================================ */
.bg-brand-gold,
.dark\:bg-brand-gold {
  background-image: linear-gradient(140deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%) !important;
  background-color: #7c3aed !important;
  color: #ffffff !important;
}

.bg-brand-gold:hover,
.dark\:bg-brand-gold:hover {
  background-image: linear-gradient(140deg, #b49bfc 0%, #9775f8 55%, #7c3aed 100%) !important;
  filter: brightness(1.06);
}

/* ============================================================
   TIMELINE NODE — brand violet glow (was mint #3cdbb5)
   ============================================================ */
.octo-tl-node {
  background: #a78bfa;
  box-shadow:
    0 0 16px rgba(167, 139, 250, 0.95),
    0 0 36px rgba(139, 92, 246, 0.55);
}
html.dark .octo-tl-node {
  background: #c4b5fd;
  box-shadow:
    0 0 16px rgba(196, 177, 253, 0.95),
    0 0 38px rgba(167, 139, 250, 0.6);
}

/* ============================================================
   DARK PALETTE RETINT — overrides for arbitrary hex utilities.
   Selector names keep the OLD hex (they must match the HTML);
   only the emitted color moves to the new violet-black.
   ============================================================ */
.dark .dark\:bg-\[\#0f1420\] { background-color: #15102a !important; }
.dark .dark\:bg-\[\#090d16\] { background-color: #0d0918 !important; }
.dark .dark\:text-\[\#090d16\] { color: #0d0918 !important; }
.bg-\[\#090d16\] { background-color: #0d0918 !important; }
.via-\[\#0f1420\] {
  --tw-gradient-to: rgb(21 16 42 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #15102a var(--tw-gradient-via-position), var(--tw-gradient-to);
}

/* ============================================================
   TEAM PHOTO DECK — flip cards in a messy, self-shuffling pile.
   Front: square photo, soft 26px corners. Back: name, role,
   bio, skills line + GitHub / Instagram / Portfolio links.
   ============================================================ */
.octo-deck {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.octo-deck__stage {
  position: relative;
  width: min(310px, 78vw);
  height: min(310px, 78vw);
  margin: 0 auto;
}
.octo-deck__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 150%;
  height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 92, 246, 0.4), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.octo-deck__slot {
  position: absolute;
  inset: 0;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.85s ease,
    filter 0.85s ease;
  will-change: transform, opacity;
}
.octo-deck__float {
  width: 100%;
  height: 100%;
  perspective: 1400px;
}
.octo-deck__slot.is-front .octo-deck__float {
  animation: octo-deck-bob 5.5s ease-in-out infinite;
}
@keyframes octo-deck-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.octo-deck__flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.15, 0.2, 1);
}
.octo-deck__slot.is-flipped .octo-deck__flip { transform: rotateY(180deg); }
.octo-deck__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 26px;
  overflow: hidden;
}
.octo-deck__face--front {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 64px -30px rgba(139, 92, 246, 0.7),
    0 12px 28px -18px rgba(0, 0, 0, 0.6);
}
html.dark .octo-deck__face--front { border-color: rgba(196, 177, 253, 0.3); }
.octo-deck__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.octo-deck__tap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.octo-deck__tap:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: -5px;
  border-radius: 26px;
}
.octo-deck__corner {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  background: rgba(11, 9, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px) rotate(-40deg);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.octo-deck__slot.is-front:hover .octo-deck__corner,
.octo-deck__slot.is-front:focus-within .octo-deck__corner {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
/* ---- back face ---- */
.octo-deck__face--back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 18px 16px;
  background:
    radial-gradient(130% 100% at 85% -10%, rgba(167, 139, 250, 0.3), transparent 55%),
    radial-gradient(120% 90% at 0% 110%, rgba(109, 40, 217, 0.38), transparent 60%),
    var(--bg-elevated);
  border: 1px solid rgba(167, 139, 250, 0.42);
  box-shadow: 0 34px 64px -30px rgba(139, 92, 246, 0.7);
}
.octo-deck__info {
  text-align: center;
  overflow: hidden;
  min-height: 0;
}
.octo-deck__name {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}
.octo-deck__role {
  margin: 3px 0 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-accent-text);
}
.octo-deck__bio {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.octo-deck__tags {
  margin: 9px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-accent-text);
  opacity: 0.92;
}
.octo-deck__socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.octo-deck__soc {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--brand-accent-text);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.octo-deck__soc:hover {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  background: rgba(139, 92, 246, 0.2);
}
.octo-deck__soc:focus-visible,
.octo-deck__close:focus-visible,
.octo-deck__pause:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.octo-deck__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.35s ease, color 0.3s ease, border-color 0.3s ease;
}
.octo-deck__close:hover {
  transform: rotate(90deg);
  color: var(--brand-accent-text);
  border-color: var(--brand-accent);
}
.octo-deck__close[disabled] { display: none; }
/* ---- foot: hint + pause ---- */
.octo-deck__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.octo-deck__hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.octo-deck__pause {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--brand-accent-text);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.octo-deck__pause:hover {
  transform: scale(1.14);
  border-color: var(--brand-accent);
}
/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .octo-deck__slot,
  .octo-deck__flip,
  .octo-deck__corner,
  .octo-deck__soc,
  .octo-deck__close {
    transition: none !important;
  }
  .octo-deck__slot.is-front .octo-deck__float {
    animation: none !important;
  }
}

/* ============================================================
   STORY CTA PILL — "تعرف على قصة وفلسفة أوكتوسورس" now uses
   the same violet gradient as every other brand CTA
   ============================================================ */
.octo-founders__simple-cta-btn {
  color: #ffffff;
  background: linear-gradient(140deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%);
  box-shadow: 0 12px 28px -14px rgba(139, 92, 246, 0.75);
}
.octo-founders__simple-cta-btn:hover {
  background: linear-gradient(140deg, #b49bfc 0%, #9775f8 55%, #7c3aed 100%);
  box-shadow: 0 16px 32px -14px rgba(139, 92, 246, 0.85);
}
.octo-founders__simple-cta-btn:active {
  background: linear-gradient(140deg, #9775f8 0%, #7c3aed 55%, #6d28d9 100%);
}

/* Deck: the whole back face closes on press (no X button needed) */
.octo-deck__face--back { cursor: pointer; }

/* ============================================================
   TEAM ALL MEMBERS — trigger button + tidy grid modal
   ============================================================ */
.octo-deck__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-accent-text);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.octo-deck__all:hover {
  transform: translateY(-2px);
  border-color: var(--brand-accent);
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 14px 28px -18px rgba(139, 92, 246, 0.95);
}
.octo-deck__all:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ---- modal shell ---- */
.octo-team {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.octo-team.is-open {
  visibility: visible;
  opacity: 1;
}
.octo-team__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 17, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.octo-team__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 26px 32px;
  border-radius: 28px;
  background: var(--bg-surface);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, 0.75);
  transform: translateY(18px) scale(0.97);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--brand-accent) transparent;
}
.octo-team.is-open .octo-team__panel { transform: none; }
.octo-team__x {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--brand-accent-light);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform .35s ease, color .3s ease, border-color .3s ease;
}
.octo-team__x:hover {
  transform: rotate(90deg);
  color: var(--brand-accent-text);
  border-color: var(--brand-accent);
}
.octo-team__x:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.octo-team__title {
  margin: 0 0 24px;
  padding-inline-end: 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
}

/* ---- member cards ---- */
.octo-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
}
.octo-tm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px 18px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.octo-tm:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 24px 44px -32px rgba(139, 92, 246, 0.8);
}
.octo-tm__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 26px;
  border: 2px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 16px 30px -20px rgba(139, 92, 246, 0.9);
}
.octo-tm__name {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}
.octo-tm__role {
  margin: 4px 0 0;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-accent-text);
}
.octo-tm__bio {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  flex: 1;
}
.octo-tm__socials {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

@media (max-width: 560px) {
  .octo-team { padding: 12px; }
  .octo-team__panel { padding: 24px 14px 26px; border-radius: 22px; }
  .octo-team__title { font-size: 20px; margin-bottom: 18px; }
  .octo-team__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .octo-team, .octo-team__panel, .octo-team__x, .octo-tm, .octo-deck__all {
    transition: none !important;
  }
}


/* ========================================================
   MASTER FLUID RESPONSIVE ENGINE — MOBILE, TABLET & DESKTOP
   Flexible viewport-relative measurements with zero fixed-size traps.
   ======================================================== */

/* 1. Global Viewport & Container Resets */
html {
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
}

.max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl, .max-w-lg {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .max-w-xl { max-width: 36rem; }
  .max-w-2xl { max-width: 42rem; }
  .max-w-3xl { max-width: 48rem; }
}
@media (min-width: 768px) {
  .max-w-4xl { max-width: 56rem; }
  .max-w-5xl { max-width: 64rem; }
}
@media (min-width: 1024px) {
  .max-w-6xl { max-width: 72rem; }
  .max-w-7xl { max-width: 80rem; }
}

/* Universal Media Fluidity */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
iframe, embed, object {
  max-width: 100%;
}

/* Universal Word Wrap Prevention */
h1, h2, h3, h4, h5, h6, p, span, a, li, button, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Touch & iOS Zoom Prevention on Inputs */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
button, [role="button"], a, input, select, textarea {
  touch-action: manipulation;
}

/* 2. Floating Navbar Fluid Responsiveness */
@media (max-width: 640px) {
  .octo-nav-pill {
    height: 56px !important;
    padding-inline: 10px !important;
    gap: 6px !important;
  }
  .octo-nav-logo {
    gap: 6px !important;
  }
  .octo-nav-logo__mark {
    width: 34px !important;
    height: 34px !important;
  }
  .octo-nav-pill > .flex.items-center.gap-2 {
    gap: 5px !important;
  }
  .octo-nav-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
  .octo-nav-lang {
    height: 36px !important;
    padding-inline: 10px !important;
    gap: 4px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .octo-nav-pill {
    padding-inline: 8px !important;
    gap: 4px !important;
  }
  .octo-nav-pill > .flex.items-center.gap-2 {
    gap: 4px !important;
  }
  .octo-nav-lang #langLabel {
    display: none !important;
  }
  .octo-nav-lang {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }
}

/* Tablet & iPad Navbar */
@media (min-width: 641px) and (max-width: 1023px) {
  .octo-nav-pill {
    height: 64px !important;
    padding-inline: 14px !important;
  }
  .octo-clock--nav {
    display: inline-flex !important;
    height: 38px !important;
    padding-inline: 10px !important;
  }
  .octo-clock--nav .octo-clock__city {
    display: none !important;
  }
  .octo-nav-icon {
    width: 38px !important;
    height: 38px !important;
  }
  .octo-nav-lang {
    height: 38px !important;
    padding-inline: 12px !important;
  }
}

.octo-mobile-menu {
  width: 100% !important;
  max-height: calc(100vh - 80px) !important;
  max-height: calc(100dvh - 80px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 3. Hero Section Fluid Scaling */
.octo-hero__inner {
  padding: clamp(20px, 4vw, 48px) clamp(16px, 3.5vw, 44px) !important;
  gap: clamp(20px, 3.5vw, 36px) !important;
}
.octo-hero__title {
  font-size: clamp(24px, 5.2vw, 50px) !important;
  line-height: 1.25 !important;
}
.octo-hero__desc {
  font-size: clamp(13px, 1.8vw, 15px) !important;
  line-height: 1.85 !important;
  max-width: min(100%, 36rem) !important;
}
.octo-hero__actions {
  gap: clamp(8px, 2vw, 14px) !important;
  margin-top: clamp(18px, 3vw, 30px) !important;
}
.octo-hero__btn {
  height: clamp(44px, 6vh, 50px) !important;
  padding: 0 clamp(18px, 3vw, 28px) !important;
  font-size: clamp(12.5px, 1.6vw, 14px) !important;
}
@media (max-width: 440px) {
  .octo-hero__btn {
    width: 100% !important;
  }
}
.octo-hero__scene {
  min-height: clamp(240px, 40vh, 340px) !important;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .octo-hero__scene {
    min-height: clamp(340px, 45vh, 460px) !important;
  }
}
@media (min-width: 1024px) {
  .octo-hero__scene {
    min-height: clamp(480px, 55vh, 560px) !important;
  }
}
.octo-orbit {
  width: min(84vw, clamp(250px, 45vw, 440px)) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
}

/* 4. Fluid Cards, Grids & Showcases */
.catalog-card {
  padding: clamp(16px, 2.5vw, 24px) !important;
  border-radius: clamp(18px, 2.5vw, 26px) !important;
}

.octo-show {
  min-height: 0 !important;
  width: 100% !important;
  border-radius: clamp(20px, 2.5vw, 28px) !important;
}
.octo-show__wall {
  height: clamp(190px, 25vw, 258px) !important;
  padding: clamp(6px, 1.2vw, 10px) !important;
  gap: clamp(6px, 1.2vw, 9px) !important;
}
.octo-show__body {
  padding: clamp(14px, 2.2vw, 22px) !important;
}
.octo-show__title {
  font-size: clamp(16px, 2vw, 20px) !important;
  line-height: 1.35 !important;
}
.octo-show__desc {
  font-size: clamp(11.5px, 1.4vw, 13px) !important;
  line-height: 1.7 !important;
}

/* 5. Founders Deck & Team Grid */
.octo-deck {
  width: 100% !important;
  max-width: 100% !important;
}
.octo-deck__stage {
  width: min(320px, 80vw) !important;
  height: min(320px, 80vw) !important;
}
.octo-deck__face--back {
  padding: clamp(14px, 3.5vw, 22px) clamp(12px, 3vw, 18px) !important;
}
.octo-deck__name {
  font-size: clamp(16px, 3.2vw, 19px) !important;
}
.octo-deck__role {
  font-size: clamp(10.5px, 2.2vw, 12px) !important;
}
.octo-deck__bio {
  font-size: clamp(10.5px, 2.2vw, 12px) !important;
  line-height: 1.65 !important;
}
.octo-deck__tags {
  font-size: clamp(8.5px, 1.8vw, 10px) !important;
}

/* Team Modal */
.octo-team {
  padding: clamp(10px, 2.5vw, 20px) !important;
}
.octo-team__panel {
  width: min(980px, 100%) !important;
  max-height: min(90vh, 90svh) !important;
  padding: clamp(18px, 3vw, 32px) !important;
  border-radius: clamp(18px, 3vw, 28px) !important;
}
.octo-team__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(150px, 42vw, 230px)), 1fr)) !important;
  gap: clamp(10px, 2vw, 18px) !important;
}
.octo-tm {
  padding: clamp(14px, 2vw, 20px) clamp(10px, 1.8vw, 16px) !important;
}
.octo-tm__photo {
  width: clamp(72px, 16vw, 96px) !important;
  height: clamp(72px, 16vw, 96px) !important;
}

/* 6. Portfolio 3D Carousel & Expandable Gallery */
.po-carousel {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.po-carousel__stage {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.po-carousel__track {
  height: clamp(340px, 48vh, 430px) !important;
  width: 100% !important;
}
.carousel-3d-card {
  max-width: 82vw !important;
  border-radius: clamp(18px, 2.5vw, 26px) !important;
}
.po-card__body {
  padding: clamp(14px, 2.5vw, 22px) !important;
}
.po-card__title {
  font-size: clamp(15px, 2.2vw, 19px) !important;
}
.po-card__impact {
  font-size: clamp(11.5px, 1.6vw, 13px) !important;
}
.po-carousel__arrow {
  width: clamp(36px, 6vw, 46px) !important;
  height: clamp(36px, 6vw, 46px) !important;
  font-size: clamp(11px, 2vw, 14px) !important;
}

@media (min-width: 768px) {
  .octo-gal {
    height: clamp(360px, 46vh, 440px) !important;
    gap: clamp(8px, 1.2vw, 12px) !important;
  }
}
@media (max-width: 767px) {
  .octo-gal {
    flex-direction: column !important;
    height: auto !important;
    gap: 8px !important;
  }
  .octo-gal__panel {
    height: 54px !important;
  }
  .octo-gal__panel.is-active {
    height: clamp(260px, 42vh, 320px) !important;
  }
}

/* 7. Services Page: The Sovereign Path Lab */
.svc-lab__shell {
  padding: clamp(22px, 3.5vw, 56px) clamp(16px, 3vw, 56px) !important;
  border-radius: clamp(20px, 3vw, 34px) !important;
}
.svc-lab__title {
  font-size: clamp(22px, 4vw, 38px) !important;
}
.svc-lab__opts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)) !important;
}
.lab-opt {
  padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 14px) !important;
  font-size: clamp(11.5px, 1.6vw, 13px) !important;
}

/* 8. About Story Timeline for Tablets & Mobile */
@media (min-width: 641px) and (max-width: 1024px) {
  .story__frame {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) !important;
    gap: clamp(16px, 2.5vw, 28px) !important;
    padding-inline: clamp(16px, 3vw, 32px) !important;
  }
  .story-headline {
    font-size: clamp(18px, 2.6vw, 26px) !important;
  }
  .story-year-big .story-digit {
    font-size: clamp(2.8rem, 7.5vw, 5.2rem) !important;
  }
  .story__panels {
    height: min(52svh, 440px) !important;
  }
}
@media (max-width: 640px) {
  .story__frame {
    grid-template-columns: 1fr !important;
    padding-inline: clamp(12px, 3vw, 20px) !important;
    padding-top: clamp(70px, 10vh, 90px) !important;
  }
  .story__panels {
    height: min(46svh, 380px) !important;
  }
}

/* 9. Universal Modal Viewport Constraint */
#consultation-modal {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: clamp(12px, 3vw, 24px) !important;
}
#consultation-modal > div {
  max-height: min(92vh, 92svh) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: clamp(18px, 3.5vw, 32px) !important;
  border-radius: clamp(18px, 3.5vw, 28px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#search-modal-container {
  max-height: min(90vh, 90svh) !important;
  border-radius: clamp(18px, 3vw, 28px) !important;
}

/* 10. Responsive Grid Cascade Overrides */
@media (min-width: 480px) {
  .xs\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
