@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Roboto:wght@400;500;700;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap");

:root {
  color-scheme: light;
  --font-body: "Roboto", Arial, sans-serif;
  --font-display: "Roboto", Arial, sans-serif;
  --font-arabic: "Tajawal", Arial, sans-serif;
  --page-background: #f7f3eb;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --border: #e3d8c8;
  --grid-line: rgba(7, 88, 75, 0.045);
  --primary: #075447;
  --primary-light: #2f7167;
  --primary-dark: #063a33;
  --primary-soft: #eaf3ee;
  --accent: #a9793f;
  --accent-light: #bd935e;
  --text-main: #14201d;
  --text-muted: #63706b;
  --shadow-panel: 0 18px 54px rgba(5, 71, 61, 0.12);
  --shadow-card: 0 14px 34px rgba(20, 32, 29, 0.055);
  --shadow-glow: 0 18px 42px rgba(5, 71, 61, 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-background: #06110f;
  --surface: #0d1f1b;
  --surface-strong: #112b25;
  --border: rgba(225, 236, 230, 0.12);
  --grid-line: rgba(225, 236, 230, 0.055);
  --primary: #73e2c8;
  --primary-light: #9df0dc;
  --primary-dark: #0a6b5b;
  --primary-soft: rgba(115, 226, 200, 0.12);
  --accent: #d7b071;
  --accent-light: #ead0a0;
  --text-main: #f4f7f4;
  --text-muted: #b8c7c1;
  --shadow-panel: 0 18px 54px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--page-background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(7, 84, 71, 0.08), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(169, 121, 63, 0.1), transparent 28%),
    var(--page-background);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: background 200ms ease, color 200ms ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(115, 226, 200, 0.11), transparent 26%),
    radial-gradient(circle at 90% 4%, rgba(215, 176, 113, 0.1), transparent 28%),
    linear-gradient(135deg, #06110f 0%, #081916 52%, #04100e 100%);
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--font-arabic);
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; }

.section-shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 1px 2px rgba(20, 32, 29, 0.06);
  backdrop-filter: blur(14px);
}

.header-strip {
  height: 4px;
  background: var(--primary);
}

.nav-bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-actions,
.nav-links,
.hero-actions,
.visual-head,
.window-dots,
.stat-card,
.timeline-card-head,
.project-actions,
.direct-link,
.icon-text-button,
.primary-small,
.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(7, 84, 71, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 0 0 2px rgba(5, 71, 61, 0.08), 0 12px 28px rgba(5, 71, 61, 0.16);
}

html[data-theme="dark"] .brand-mark { background: var(--surface-strong); }
.brand-copy span { display: block; color: var(--primary); font-weight: 800; }
.brand-copy small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: 700; }

.nav-links { gap: 4px; }
.nav-links a {
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 900;
  transition: 180ms ease;
}
.nav-links a:hover { background: var(--primary-soft); color: var(--primary); }

.nav-actions { gap: 12px; }
.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--primary);
}
.menu-button { display: none; width: 44px; height: 44px; }
.icon-text-button,
.primary-small {
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-strong);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}
.primary-small {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  padding: 10px 16px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 20px 40px rgba(20, 32, 29, 0.12);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  max-width: 448px;
  margin-inline: auto;
  display: grid;
  gap: 8px;
}
.mobile-menu a,
.mobile-menu button {
  width: 100%;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text-main);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
}
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.site-motion-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.72;
}
.site-motion-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.18;
  animation: ambient-drift 18s ease-in-out infinite;
}
.site-motion-orb-a { width: 280px; height: 280px; inset-inline-start: 8%; top: 18%; background: var(--primary); }
.site-motion-orb-b { width: 220px; height: 220px; inset-inline-end: 7%; bottom: 12%; background: var(--accent); animation-delay: -7s; }
.site-motion-line {
  position: absolute;
  height: 1px;
  width: 36vw;
  min-width: 320px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 42%, transparent), transparent);
  opacity: 0.38;
  transform: rotate(-12deg);
  animation: signal-slide 15s linear infinite;
}
.site-motion-line-a { top: 32%; inset-inline-start: -20%; }
.site-motion-line-b { bottom: 24%; inset-inline-end: -22%; animation-delay: -6s; transform: rotate(14deg); }

main {
  position: relative;
  z-index: 10;
}

.hero-section { padding-top: 77px; overflow: hidden; }
.spc-hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 96px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(244, 239, 229, 0.96) 52%, rgba(234, 243, 238, 0.92)),
    linear-gradient(90deg, rgba(7, 84, 71, 0.08), transparent 44%);
}
html[data-theme="dark"] .spc-hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 15, 0.98), rgba(10, 32, 28, 0.96) 54%, rgba(14, 43, 37, 0.92)),
    radial-gradient(circle at 86% 18%, rgba(115, 226, 200, 0.12), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(215, 176, 113, 0.09), transparent 24%);
}
.field-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero-grid,
.card-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}
.operations-backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.operations-backdrop svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.operations-backdrop path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
  animation: path-pulse 9s ease-in-out infinite;
}
.operations-backdrop path:nth-child(2) { animation-delay: 0.7s; }
.operations-backdrop path:nth-child(3) { animation-delay: 1.4s; }
.motion-halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.2;
  animation: ambient-drift 13s ease-in-out infinite;
}
.motion-halo-primary {
  width: 340px;
  height: 340px;
  inset-inline-start: 4%;
  top: 9%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 28%, transparent), transparent 68%);
}
.motion-halo-accent {
  width: 300px;
  height: 300px;
  inset-inline-end: 8%;
  bottom: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  animation-delay: -5s;
}
.motion-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 12%, transparent);
  animation: node-pulse 3.8s ease-in-out infinite;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px;
}
.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 75%, transparent);
  padding: 9px 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 1px 2px rgba(20, 32, 29, 0.08);
  backdrop-filter: blur(12px);
}
.gold-kicker { margin: 0 0 16px; color: var(--accent); font-size: 18px; font-weight: 800; }
h1 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  font-weight: 900;
  text-wrap: balance;
}
.prestige-rule {
  width: 76px;
  height: 3px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
html[dir="rtl"] .prestige-rule { background: linear-gradient(270deg, var(--primary), var(--accent)); }
.hero-subtitle {
  max-width: 672px;
  margin: 24px 0 0;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.8;
  font-weight: 900;
}
.hero-note {
  max-width: 672px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
}
.native-name { margin: 20px 0 0; color: var(--primary); font-size: 14px; font-weight: 900; }
.native-role { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.primary-action,
.secondary-action {
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.primary-action {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.secondary-action {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(20, 32, 29, 0.08);
}
.primary-action:hover,
.secondary-action:hover,
.spc-card:hover { transform: translateY(-4px); }
.primary-action:hover { background: var(--primary-dark); }
.secondary-action:hover { background: var(--primary-soft); }

.operational-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  padding: 24px;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(14px);
}
.signal-sweep {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -33%;
  width: 33%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 10%, transparent), transparent);
  transform: skewX(-14deg);
  animation: sweep 7s ease-in-out infinite;
}
.visual-content { position: relative; }
.visual-head {
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.visual-head p {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.visual-head h2 {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}
.window-dots { gap: 6px; }
.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dots span:nth-child(1) { background: var(--primary); }
.window-dots span:nth-child(2) { background: var(--accent); }
.window-dots span:nth-child(3) { background: var(--primary-light); }
.flow-list { display: grid; gap: 16px; padding-block: 24px; }
.flow-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(20, 32, 29, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.flow-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 14px 28px rgba(20, 32, 29, 0.1);
}
.flow-index {
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 54%),
    linear-gradient(145deg, var(--primary-soft), color-mix(in srgb, var(--surface) 78%, var(--primary-soft)));
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 10px 22px rgba(20, 32, 29, 0.08);
}
.flow-index::after {
  content: "";
  position: absolute;
  inset: -40% 58% -40% -55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(16deg);
  animation: flow-shine 5.5s ease-in-out infinite;
}
.flow-index svg,
.flow-index span {
  position: relative;
  z-index: 1;
}
.flow-index span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.flow-body { flex: 1; min-width: 0; }
.flow-body p { margin: 0; color: var(--text-main); font-weight: 900; }
.progress-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  transform-origin: left;
  animation: progress-breathe 4.2s ease-in-out infinite;
}
html[dir="rtl"] .progress-fill {
  transform-origin: right;
}
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quality-card {
  border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 12px;
  background: var(--primary-soft);
  padding: 12px;
  color: var(--primary);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}
.quality-card svg { margin: 0 auto 8px; }

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -40px;
  padding-bottom: 64px;
}
.spc-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: 180ms ease;
}
.stat-card {
  min-height: 130px;
  align-items: flex-start;
  gap: 16px;
  border-radius: 12px;
  padding: 20px;
}
.card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-value {
  display: block;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}
.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.page-section { padding-block: 80px; }
.section-header { max-width: 768px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-marker {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-header.center .section-marker { margin-inline: auto; }
.section-marker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.section-eyebrow,
.section-marker p {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.section-header h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.3;
  font-weight: 900;
  text-wrap: balance;
}
.section-header .prestige-rule { margin-top: 20px; }
.section-header.center .prestige-rule { margin-inline: auto; }
.section-header > p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  margin-top: 40px;
}
.large-copy {
  border-radius: 16px;
  padding: 32px;
}
.large-copy p {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  line-height: 2;
  font-weight: 700;
}
.large-copy p + p {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pillar-card,
.skill-card,
.project-card {
  height: 100%;
  border-radius: 16px;
  padding: 24px;
}
.pillar-card h3,
.skill-card h3,
.project-card h3,
.links-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 900;
}
.pillar-card p,
.project-card p,
.links-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}
.pillar-card .card-icon,
.skill-card .card-icon { margin-bottom: 20px; width: 48px; height: 48px; border-radius: 12px; }

.journey-section { position: relative; }
.section-gradient {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: -1;
  height: 320px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 10%, transparent), transparent);
}
.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 48px;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 20px;
  width: 1px;
  background: linear-gradient(var(--primary), var(--primary-light), var(--accent));
}
html[dir="rtl"] .timeline::before {
  inset-inline-start: auto;
  inset-inline-end: 20px;
}
.timeline-card {
  position: relative;
  margin-inline-start: 56px;
  border-radius: 16px;
  padding: 24px;
}
html[dir="rtl"] .timeline-card {
  margin-inline-start: 0;
  margin-inline-end: 56px;
}
.timeline-icon {
  position: absolute;
  inset-inline-start: -58px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
html[dir="rtl"] .timeline-icon {
  inset-inline-start: auto;
  inset-inline-end: -58px;
}
.timeline-card-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.timeline-card h3 { margin: 0; color: var(--text-main); font-size: 24px; font-weight: 900; }
.role { margin: 8px 0 0; color: var(--primary); font-size: 14px; font-weight: 900; }
.chip {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--primary) 13%, transparent);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}
.timeline-card > p {
  max-width: 896px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.skill-head { display: flex; align-items: center; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.project-role {
  margin: 6px 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.project-card > .tags { margin-top: 24px; }
.project-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 260ms ease;
}
.project-card.open .project-details {
  max-height: 240px;
  opacity: 1;
}
.project-details p {
  margin-top: 24px;
  border-inline-start: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  padding-inline-start: 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.project-actions { flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.small-button,
.small-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
}
.small-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
}
.small-link {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--primary);
}
.chevron { transition: transform 180ms ease; }
.project-card.open .chevron,
.faq-item.open .chevron { transform: rotate(180deg); }

.faq-list {
  max-width: 768px;
  margin: 48px auto 0;
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 20px;
  color: var(--text-main);
  text-align: start;
  font-weight: 900;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 240ms ease;
}
.faq-item.open .faq-answer {
  max-height: 180px;
  opacity: 1;
}
.faq-answer p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 48px;
}
.contact-form-card,
.links-card {
  border-radius: 16px;
  padding: 32px;
}
form { display: grid; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text-main);
  outline: none;
  padding: 14px 16px;
  font-size: 14px;
  transition: 180ms ease;
}
textarea {
  min-height: 160px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}
.full-submit { border: 0; }
.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.links-card h3 {
  margin-top: 12px;
  font-size: 24px;
}
.links-card > p:not(.section-eyebrow) {
  font-size: 16px;
  line-height: 2;
}
.direct-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.direct-link {
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  padding: 16px;
  transition: 180ms ease;
}
.direct-link:hover {
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
  background: var(--primary-soft);
}
.direct-link strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
}
.direct-link small {
  display: block;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-strong);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-inner p { margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-direction-icon].flip { transform: rotate(180deg); }

@keyframes ambient-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.05); }
}
@keyframes signal-slide {
  0% { transform: translateX(0) rotate(-12deg); }
  100% { transform: translateX(160vw) rotate(-12deg); }
}
@keyframes sweep {
  0%, 20% { transform: translateX(0) skewX(-14deg); }
  80%, 100% { transform: translateX(410%) skewX(-14deg); }
}
@keyframes path-pulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.08; }
  50% { stroke-dashoffset: -80; opacity: 0.22; }
}
@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.34; }
  50% { transform: scale(1.55); opacity: 0.88; }
}
@keyframes progress-breathe {
  0%, 100% { transform: scaleX(0.86); }
  50% { transform: scaleX(1); }
}
@keyframes flow-shine {
  0%, 58% { transform: translateX(-110%) rotate(16deg); opacity: 0; }
  68% { opacity: 0.9; }
  100% { transform: translateX(210%) rotate(16deg); opacity: 0; }
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-actions { display: none; }
  .menu-button { display: inline-grid; }
  .hero-layout,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid,
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .brand-copy { display: none; }
  .spc-hero { padding-block: 48px 80px; }
  .hero-actions,
  .primary-action,
  .secondary-action { width: 100%; }
  .stats-grid,
  .pillar-grid,
  .skills-grid,
  .projects-grid,
  .form-row { grid-template-columns: 1fr; }
  .timeline::before,
  .timeline-icon { display: none; }
  .timeline-card,
  html[dir="rtl"] .timeline-card {
    margin-inline: 0;
  }
  .project-top,
  .timeline-card-head,
  .footer-inner {
    flex-direction: column;
  }
  .quality-grid { gap: 8px; }
  .quality-card { padding: 10px 6px; }
  .contact-form-card,
  .links-card,
  .large-copy { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
