:root {
  --bg: #050507;
  --bg-2: #0a0a10;
  --text: rgba(255, 255, 255, 0.93);
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.32);
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(16, 16, 22, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --blur: 26px;
  --sat: 170%;
  --accent-a: #7c3aed;
  --accent-b: #06b6d4;
  --accent-c: #f59e0b;
  --grad-brand: linear-gradient(120deg, #a78bfa, #22d3ee 45%, #fbbf24);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Clash Display", "Vazirmatn", system-ui, sans-serif;
  --font-body: "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077 20.4%, 1.121, 1.149 24.3%, 1.159, 1.163 27%, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 37.2%, 1.014 40.1%, 0.991, 0.977 46.3%, 0.969 49.7%, 0.967 55.8%, 0.969 62.8%, 0.975 71.4%, 0.982 83.2%, 0.99 95.2%, 1);
  --dock-h: 66px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(124, 58, 237, 0.55);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

html[lang="fa"],
[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] .display {
  --font-display: "Vazirmatn", -apple-system, system-ui, sans-serif;
  --font-body: "Vazirmatn", -apple-system, system-ui, sans-serif;
  font-family: "Vazirmatn", -apple-system, system-ui, sans-serif;
  letter-spacing: 0;
}

#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  filter: saturate(115%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(5, 5, 7, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.35), transparent 30%, rgba(5, 5, 7, 0.65) 90%);
}

.noise {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-5%, -2%); }
  80% { transform: translate(4%, 4%); }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 90;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out), border-color 0.28s;
}

.cursor-ring.is-hover {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none; }
}

.glass,
.glass-pill,
.glass-card,
.glass-strong {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.glass-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--glass-border);
}

.glass-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.04) 35%, transparent 65%, rgba(255, 255, 255, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 24px;
}

.glass-strong {
  background: var(--glass-bg-strong);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 40px 120px rgba(0, 0, 0, 0.65);
}

.btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.magnetic {
  transition: translate 0.5s var(--spring-soft), background 0.3s, border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease-spring);
}

.dock-item:active {
  transform: scale(calc(var(--s, 1) * 0.86));
  transition-duration: 0.1s;
}

.contact-card:active {
  scale: 0.98;
  transition-duration: 0.1s;
}

.glass-chip {
  will-change: translate;
}

.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 28px);
  pointer-events: none;
  background: rgba(5,5,7,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar > * {
  pointer-events: auto;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.win-dot:hover { transform: scale(1.15); filter: brightness(1.15); }
.win-dot:active { transform: scale(0.9); }
.win-close { background: #ff5f57; }
.win-min { background: #ffbd2e; }
.win-max { background: #28c940; }

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #a78bfa, #22d3ee, #fbbf24, #a78bfa);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.65);
  animation: spin 9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}

.header-react {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.react-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.react-badge i { width: 12px; height: 12px; }
.header-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
}
.header-slider {
  width: 70px;
  height: 4px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.top-spacer { display: none; }

@media (max-width: 860px) {
  .header-react { display: none; }
  .window-chrome { padding: 4px 8px; }
  .win-dot { width: 10px; height: 10px; }
}

.container {
  width: min(1180px, 100% - clamp(32px, 7vw, 88px));
  margin-inline: auto;
}

.eyebrow {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0.06em;
}

.section-title {
  font-size: clamp(34px, 5.4vw, 62px);
}

.section-title-sm {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  margin-bottom: 28px;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 17.5px);
}

.page-head {
  padding-top: calc(96px + 34px);
  margin-bottom: clamp(34px, 5vw, 60px);
}

.page-title {
  font-size: clamp(42px, 7.4vw, 92px);
  margin-bottom: 20px;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), background 0.3s, border-color 0.3s, box-shadow 0.35s;
  will-change: transform;
}

.btn i {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-spring);
}

.btn:hover i {
  transform: translateX(4px);
}

[dir="rtl"] .btn:hover i {
  transform: translateX(-4px) scaleX(-1);
}

[dir="rtl"] .btn i.flip,
[dir="rtl"] [data-icon="arrow-right"],
[dir="rtl"] [data-icon="arrow-up-right"],
[dir="rtl"] [data-icon="chevron-left"],
[dir="rtl"] [data-icon="chevron-right"] {
  transform: scaleX(-1);
}

.btn-primary {
  background: linear-gradient(115deg, #8b5cf6, #6366f1 55%, #06b6d4);
  color: #fff;
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  box-shadow: 0 18px 54px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 150px;
  overflow: hidden;
}

.hero-avatar {
  margin-bottom: 30px;
  padding: 8px 20px 8px 8px;
  gap: 12px;
}

[dir="rtl"] .hero-avatar {
  padding: 8px 8px 8px 20px;
}

.avatar-ring {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #a78bfa, #22d3ee, #fbbf24, #a78bfa);
  animation: spin 14s linear infinite;
}

.avatar-ring img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  will-change: transform;
}

.hero-title-accent .char {
  animation: char-in 0.9s var(--ease-out) forwards, char-shimmer 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 34ms + 150ms), calc(var(--i) * 160ms + 1.6s);
}

@keyframes char-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-avatar-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

[dir="rtl"] .hero-avatar-text {
  align-items: flex-end;
}

.hero-avatar-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.hero-avatar-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

.status-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  flex-shrink: 0;
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.5;
  animation: pulse-ring 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: normal;
  padding: 6px 14px;
  border-radius: 999px;
  margin-inline: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.35s;
}

.hero-inline-chip:hover {
  transform: translateY(-7px) scale(1.05);
}

.hero-inline-chip i {
  width: 14px;
  height: 14px;
}

.hero-inline-chip.chip-cyan {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.18);
}

.hero-inline-chip.chip-amber {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.18);
}

.hero-stats-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  padding: 12px 30px;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s var(--ease-out) 1.05s forwards;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-stat-item .stat-num small {
  font-size: 11px;
  color: var(--faint);
  margin-inline-start: 2px;
}

.hero-stat-item .stat-lbl {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.hero-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-title {
  font-size: clamp(52px, 11vw, 132px);
  font-weight: 600;
  overflow: hidden;
  padding-bottom: 0.08em;
  width: 100%;
  max-width: 100%;
}

.hero-title-accent {
  padding-bottom: 0.12em;
}

.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  animation: char-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 34ms + 150ms);
}

.space {
  display: inline-block;
  width: 0.28em;
}

@keyframes char-in {
  to { transform: translateY(0) rotate(0); }
}

.hero-sub {
  width: 100%;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.9vw, 19px);
  margin-top: 26px;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s var(--ease-out) 0.75s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s var(--ease-out) 0.92s forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0;
  animation: orb-float 9s ease-in-out infinite, fade-in 1.6s ease forwards;
  will-change: translate, transform;
}

@keyframes orb-float {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.12) translateY(-22px); }
}

.orb-a {
  width: 300px;
  height: 300px;
  top: 16%;
  left: 12%;
  background: radial-gradient(circle at 35% 35%, rgba(139, 92, 246, 0.4), transparent 65%);
  animation-delay: 0.4s, 0.4s;
}

.orb-b {
  width: 230px;
  height: 230px;
  top: 24%;
  right: 10%;
  background: radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.32), transparent 65%);
  animation-delay: 0.7s, 0.7s;
}

.orb-c {
  width: 190px;
  height: 190px;
  bottom: 22%;
  left: 22%;
  background: radial-gradient(circle at 45% 40%, rgba(251, 191, 36, 0.26), transparent 65%);
  animation-delay: 1s, 1s;
}

.orb-d {
  width: 260px;
  height: 260px;
  bottom: 18%;
  right: 20%;
  background: radial-gradient(circle at 40% 40%, rgba(217, 70, 239, 0.24), transparent 65%);
  animation-delay: 1.3s, 1.3s;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  will-change: transform, opacity;
}

.hero-scroll {
  position: absolute;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  animation: fade-in 1s ease 2s forwards;
  opacity: 0;
}

[dir="rtl"] .hero-scroll-text {
  letter-spacing: 0.05em;
}

.hero-scroll-line {
  width: 1.5px;
  height: 44px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  border-radius: inherit;
  background: #fff;
  animation: scroll-drip 1.8s ease-in-out infinite;
}

@keyframes scroll-drip {
  0% { top: -50%; }
  100% { top: 110%; }
}

.marquee {
  position: relative;
  padding: 26px 0 10px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 600;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
  transition: color 0.4s;
  display: flex;
  align-items: center;
  gap: 54px;
  margin-inline-end: 54px;
}

.marquee-item::after {
  content: "✦";
  font-size: 0.45em;
  -webkit-text-stroke: 0;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.featured {
  padding: clamp(70px, 10vw, 140px) 0 150px;
}

#work-grid {
  padding-bottom: 150px;
}

.timeline-section {
  padding-bottom: 150px;
}

.section-head {
  margin-bottom: clamp(30px, 4.5vw, 52px);
}

.center-row {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card-grid-home {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-home .project-card {
  grid-column: span 1;
}

.project-card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

.project-card:hover {
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 24px 80px -24px var(--c1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.project-card:active {
  scale: 0.985;
  transition-duration: 0.1s;
}

.project-card .card-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.03);
  transition: transform 0.9s var(--ease-out), opacity 0.5s;
  user-select: none;
  background: var(--bg-2);
}

.project-card:hover .card-shot {
  transform: scale(1.09);
}

.card-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.42), transparent 34%),
    linear-gradient(0deg, rgba(8, 8, 12, 0.5), transparent 42%);
}

.project-card .card-art {
  position: relative;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card .card-art::before,
.project-card .card-art::after {
  content: "";
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.85;
  transition: transform 0.8s var(--ease-out);
}

.project-card .card-art::before {
  background: var(--c1);
  top: -22%;
  left: -14%;
}

.project-card .card-art::after {
  background: var(--c2);
  bottom: -26%;
  right: -12%;
}

.project-card:hover .card-art::before {
  transform: translate(9%, 12%) scale(1.14);
}

.project-card:hover .card-art::after {
  transform: translate(-9%, -12%) scale(1.14);
}

.card-icon {
  position: absolute;
  z-index: 4;
  inset-inline-start: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 20, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease-spring);
}

.project-card:hover .card-icon {
  transform: translateY(-6px) scale(1.08) rotate(-4deg);
}

.card-icon i {
  width: 28px;
  height: 28px;
}

.card-index {
  position: absolute;
  z-index: 3;
  top: 8px;
  inset-inline-end: 18px;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

.card-shine {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover .card-shine {
  opacity: 1;
}

.card-info {
  position: relative;
  z-index: 2;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.2), rgba(8, 8, 12, 0.72));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-spring), background 0.3s;
}

.card-arrow i {
  width: 15px;
  height: 15px;
}

.project-card:hover .card-arrow {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.16);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.card-meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }

.project-card.span-12 .card-art,
.project-card.span-7 .card-art {
  height: 300px;
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.about-card {
  position: sticky;
  top: 104px;
  text-align: center;
  padding: 34px 26px;
}

.about-photo-wrap {
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #a78bfa, #22d3ee, #fbbf24, #a78bfa);
  margin-bottom: 18px;
}

.about-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 4px solid rgba(8, 8, 12, 0.9);
}

.about-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.about-role {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.about-meta {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  text-align: start;
}

.about-meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
}

.about-meta i {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.about-bio {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  font-weight: 500;
}

.about-bio.muted {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 400;
  margin-top: 16px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}

[dir="rtl"] .feature-pill {
  padding: 12px 12px 12px 20px;
}

.feature-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
}

.pill-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--g);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -8px var(--gs);
  flex-shrink: 0;
}

.pill-orb i {
  width: 17px;
  height: 17px;
  color: #fff;
}

.skills-section,
.timeline-section {
  margin-top: clamp(80px, 12vw, 150px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skill-group {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  padding: 22px;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}

.skill-group:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-orb {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--g);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px -8px var(--gs);
}

.skill-orb i {
  width: 19px;
  height: 19px;
  color: #fff;
}

.skill-head h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.tag-soft {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  inset-inline-start: 11px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.7), rgba(34, 211, 238, 0.5), rgba(251, 191, 36, 0.4));
}

.timeline li {
  position: relative;
  padding: 18px 20px 18px 44px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}

[dir="rtl"] .timeline li {
  padding: 18px 44px 18px 20px;
}

.timeline li:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--glass-border);
  transform: translateX(6px);
}

[dir="rtl"] .timeline li:hover {
  transform: translateX(-6px);
}

.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 26px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid #a78bfa;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.8);
}

.timeline .tl-chapter {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
}

[dir="rtl"] .timeline .tl-chapter {
  letter-spacing: 0.04em;
}

.timeline h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 6px;
}

.timeline p {
  color: var(--muted);
  font-size: 14.5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 16px;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 22px 54px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, background 0.3s, box-shadow 0.45s;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gs), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 18px 50px -18px var(--gs);
}

.contact-card:active {
  scale: 0.98;
  transition-duration: 0.1s;
}

.contact-orb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 25% 15%, rgba(255, 255, 255, 0.38), transparent 42%),
    var(--g);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(0, 0, 0, 0.22),
    0 16px 36px -10px var(--gs);
  flex-shrink: 0;
  transition: transform 0.55s var(--spring-soft);
}

.contact-orb::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 23px;
  border: 1px solid var(--gs);
  opacity: 0.5;
  pointer-events: none;
}

.contact-card:hover .contact-orb {
  transform: rotate(-7deg) scale(1.1);
}

[dir="rtl"] .contact-card:hover .contact-orb {
  transform: rotate(7deg) scale(1.1);
}

.contact-orb i {
  width: 25px;
  height: 25px;
  color: #fff;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.contact-body {
  min-width: 0;
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.contact-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-copy {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s, transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.contact-copy:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.08);
}

.contact-copy i {
  width: 15px;
  height: 15px;
}

.contact-copy.copied {
  border-color: rgba(52, 211, 153, 0.6);
  color: #34d399;
}

.soon-chip {
  display: inline-block;
  width: fit-content;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.footnote {
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 30px;
  padding-bottom: 140px;
}

.dock {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 22px rgba(255, 255, 255, 0.03),
    0 24px 70px rgba(0, 0, 0, 0.65);
}

.liquid-edge {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 30%, transparent 55%, rgba(167, 139, 250, 0.35) 85%, rgba(34, 211, 238, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.dock-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.25s, color 0.25s, transform 0.18s ease-out;
  transform: scale(var(--s, 1));
}

.dock-item i {
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dock-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.dock-dot {
  position: absolute;
  bottom: 3.5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  transition: transform 0.35s var(--ease-spring);
}

.dock-item.active .dock-dot {
  transform: translateX(-50%) scale(1);
}

.dock-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.16);
  margin-inline: 5px;
}

.dock-lang .lang-code {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
}

.dock-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.9);
  background: rgba(20, 20, 28, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-spring);
}

.dock-item:hover .dock-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.6);
  -webkit-backdrop-filter: blur(0px) saturate(120%);
  backdrop-filter: blur(0px) saturate(120%);
  opacity: 0;
  transition: opacity 0.35s, -webkit-backdrop-filter 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}

.modal.open .modal-backdrop {
  opacity: 1;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.modal-sheet {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86svh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(40px) scale(0.94);
  opacity: 0;
  transition: transform 0.55s var(--spring-soft), opacity 0.35s;
}

.modal.open .modal-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sheet-grabber {
  display: none;
  position: sticky;
  top: 10px;
  z-index: 5;
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 6;
  width: 40px;
  height: 40px;
  justify-content: center;
  padding: 0;
}

.modal-close i {
  width: 17px;
  height: 17px;
}

.modal-art-link {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 6px) calc(var(--radius-xl) - 6px) 0 0;
  background: var(--bg-2);
}

.modal-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  transition: transform 1s var(--ease-out);
  user-select: none;
}

.modal-art-link:hover .modal-shot {
  transform: scale(1.08);
}

.modal-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.35), transparent 40%),
    linear-gradient(0deg, rgba(10, 10, 16, 0.55), transparent 45%);
}

.modal-expand {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 10, 16, 0.55);
  padding: 8px 14px;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.45s var(--spring-soft);
}

.modal-expand i {
  width: 14px;
  height: 14px;
}

.modal-index {
  position: absolute;
  top: 10px;
  inset-inline-end: 20px;
  z-index: 2;
  font-size: clamp(56px, 8vw, 84px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.modal-art-link:hover .modal-expand,
.modal-art-link:focus-visible .modal-expand {
  opacity: 1;
  transform: translateY(0);
}

.modal-body {
  padding: 26px clamp(20px, 4vw, 34px) 30px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-title {
  font-size: clamp(28px, 4.6vw, 42px);
  margin-bottom: 4px;
}

.modal-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.modal-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  margin-bottom: 20px;
}

.modal-features {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.modal-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
}

.modal-features li i {
  width: 17px;
  height: 17px;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 3px;
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

[data-icon] {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 0;
}

[data-icon] svg {
  width: 100%;
  height: 100%;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal="left"] {
  transform: translateX(-34px);
}

[dir="rtl"] [data-reveal="left"] {
  transform: translateX(34px);
}

[data-reveal="right"] {
  transform: translateX(34px);
}

[dir="rtl"] [data-reveal="right"] {
  transform: translateX(-34px);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 0.7s var(--spring-soft);
}

.view.leaving {
  display: block;
  animation: view-out 0.3s ease forwards;
  pointer-events: none;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes view-out {
  to {
    opacity: 0;
    transform: translateY(-18px) scale(0.99);
    filter: blur(8px);
  }
}

.toast {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 95;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

  .card-grid-home .project-card {
    grid-column: span 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    position: static;
    max-width: 460px;
    margin-inline: auto;
  }

  .span-7,
  .span-6,
  .span-5 {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-top: 110px;
    min-height: 100svh;
  }

  .hero-orb {
    scale: 0.62;
  }

  .hero-avatar {
    margin-bottom: 22px;
  }

  .hero-sub {
    margin-top: 20px;
  }

  .hero-cta {
    margin-top: 28px;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }

  .btn {
    justify-content: center;
  }

  .card-grid,
  .card-grid-home {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-6,
  .span-5,
  .span-12,
  .card-grid-home .project-card {
    grid-column: span 1;
  }

  .project-card .card-art,
  .project-card.span-12 .card-art,
  .project-card.span-7 .card-art {
    height: 210px;
  }

  .stats-grid,
  .feature-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-pills {
    display: grid;
  }

  .feature-pill {
    justify-content: flex-start;
  }

  .page-head {
    padding-top: 108px;
  }

  .top-status {
    display: none;
  }

  .modal {
    padding: 0;
    place-items: end center;
  }

  .modal-sheet {
    width: 100%;
    max-height: 92svh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }

  .modal.open .modal-sheet {
    transform: translateY(0);
  }

  .sheet-grabber {
    display: block;
  }

  .dock-item {
    width: 44px;
    height: 44px;
  }

  .dock {
    padding: 8px;
  }

  .dock-tip {
    display: none;
  }

  .footnote {
    padding-bottom: 130px;
  }

  .marquee-item {
    gap: 34px;
    margin-inline-end: 34px;
  }

  .timeline li::before {
    top: 24px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .glass-pill,
  .glass-card,
  .glass-strong,
  .btn-ghost,
  .skill-group,
  .contact-card,
  .dock {
    background: rgba(18, 18, 24, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .noise {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.78);
    --faint: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.35);
  }

  .btn-outline,
  .btn-ghost {
    border-color: rgba(255, 255, 255, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .noise {
    animation: none;
  }

  .hero-title .char {
    transform: none;
    animation: none;
  }

  .hero-sub,
  .hero-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-orb {
    opacity: 0.5;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
