:root {
  --primary: #0f172a;
  --primary-600: #1e3a8a;
  --accent: #2563eb;
  --accent-2: #38bdf8;
  --accent-3: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.11);
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --text: #111827;
  --muted: #64748b;
  --border: #d8e1ed;
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.11);
  --success: #067647;
  --success-soft: rgba(6, 118, 71, 0.11);
  --shadow-sm: 0 10px 26px rgba(17, 24, 39, 0.07);
  --shadow-md: 0 18px 44px rgba(17, 24, 39, 0.12);
  --shadow-glow: 0 14px 38px rgba(37, 99, 235, 0.2);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --font-display: Georgia, "Times New Roman", serif;
}

body.dark {
  --primary: #93c5fd;
  --primary-600: #bfdbfe;
  --accent: #60a5fa;
  --accent-2: #38bdf8;
  --accent-3: #22d3ee;
  --accent-soft: rgba(96, 165, 250, 0.16);
  --bg: #0b1120;
  --surface: #111827;
  --surface-soft: #172033;
  --text: #f8fafc;
  --muted: #a8b3c7;
  --border: #263247;
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-glow: 0 22px 58px rgba(96, 165, 250, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 16px;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--bg) 32%,
    var(--bg) 100%
  );
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

body.dark::before {
  background:
    linear-gradient(rgba(246, 240, 227, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 227, 0.035) 1px, transparent 1px);
}

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

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

button,
input,
textarea {
  font: inherit;
}

select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(216, 225, 237, 0.78);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

body.dark .site-header {
  border-bottom-color: rgba(38, 50, 71, 0.86);
  background: rgba(11, 17, 32, 0.84);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

body.dark .site-header.is-scrolled {
  background: rgba(17, 17, 15, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.brand,
.footer-profile,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  flex: 0 1 260px;
  min-width: 188px;
  transition: transform 0.24s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand span,
.footer-profile span,
.admin-brand span,
.login-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.brand strong {
  max-width: 188px;
  line-height: 1.25;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-menu a,
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.68vw, 0.9rem);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.theme-toggle:hover {
  color: var(--primary);
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.11);
  transform: translateY(-1px);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent),
    var(--surface-soft);
  color: var(--text);
}

.theme-toggle-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transition:
    background 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -1px -1px 1px 5px;
  border-radius: inherit;
  background: var(--surface-soft);
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

body.dark .theme-toggle-icon {
  background: #f8fafc;
  box-shadow: 0 0 0 4px rgba(246, 240, 227, 0.12);
}

body.dark .theme-toggle-icon::after {
  transform: scale(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section,
.page-section {
  padding: 68px 0;
}

.section-elevated {
  padding-top: 42px;
}

.page-section > .section-heading:first-child {
  display: block;
}

.page-section > .section-heading:first-child h1,
.page-section > .section-heading:first-child p {
  max-width: 780px;
}

.section-muted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), transparent 36%),
    linear-gradient(245deg, rgba(56, 189, 248, 0.08), transparent 42%),
    var(--surface-soft);
}

.section-showcase {
  position: relative;
  overflow: hidden;
}

.section-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
}

.section-showcase > .container {
  position: relative;
  z-index: 1;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 84px 0 108px;
  background: linear-gradient(115deg, #080d19 0%, #0f192f 58%, #1e3a8a 100%);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-section::before {
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 0 62%,
      rgba(255, 255, 255, 0.08) 62% 63%,
      transparent 63%
    ),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size:
    100% 100%,
    56px 56px,
    56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), transparent 88%);
  z-index: -1;
}

.hero-section::after {
  right: -12vw;
  top: -12vw;
  width: min(680px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(37, 99, 235, 0.3),
    transparent 64%
  );
  opacity: 0.55;
  z-index: -1;
}

body.dark .hero-section {
  background: linear-gradient(115deg, #080d19 0%, #0f192f 58%, #1e3a8a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 16% 24%,
      rgba(37, 99, 235, 0.16),
      transparent 24%
    ),
    radial-gradient(
      circle at 72% 80%,
      rgba(56, 189, 248, 0.18),
      transparent 30%
    );
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(244, 246, 248, 0.12), transparent);
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.86fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-content h1,
.page-section h1,
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 5vw, 4.55rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-content h1 {
  max-width: 760px;
  color: #f8fafc;
  font-size: clamp(2.85rem, 6vw, 5.55rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-content p,
.section-heading p,
.page-hero p,
.profile-summary p,
.about-grid p,
.contact-grid p,
.skill-card p,
.project-card p,
.timeline-item p,
.login-intro p,
.login-card p {
  color: var(--muted);
  max-width: 68ch;
}

.hero-content > p:not(.eyebrow):not(.hero-subtitle) {
  max-width: 650px;
  color: rgba(236, 243, 255, 0.76);
  font-size: 1.02rem;
}

.hero-subtitle {
  max-width: 640px;
  color: #bfdbfe !important;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  text-wrap: balance;
}

p {
  overflow-wrap: anywhere;
}

.hero-section .eyebrow {
  color: #bfdbfe;
}

.badge-row,
.tag-row,
.hero-actions,
.card-actions,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row {
  margin-bottom: 22px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-section .badge {
  border-color: rgba(191, 219, 254, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

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

body.dark .tag {
  background: rgba(255, 255, 255, 0.06);
}

.hero-actions,
.card-actions,
.social-row {
  margin-top: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.hero-metrics div {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.hero-metrics strong {
  display: block;
  color: #bfdbfe;
  font-family: "Instrument Serif", var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 0.95;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(236, 243, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-strip {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-bottom: 28px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(220, 227, 234, 0.86);
  border-radius: 20px;
  background: rgba(220, 227, 234, 0.86);
  box-shadow: var(--shadow-md);
}

.capability-grid article {
  min-height: 166px;
  padding: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.72)
    ),
    var(--surface);
}

body.dark .capability-grid {
  border-color: rgba(38, 50, 71, 0.86);
  background: rgba(38, 50, 71, 0.86);
}

body.dark .capability-grid article {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    ),
    var(--surface);
}

.capability-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.capability-grid h2 {
  margin: 16px 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.hero-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.hero-section .btn-ghost {
  color: rgba(248, 250, 252, 0.82);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-small {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(440px, 100%);
  min-height: 0;
  perspective: 1000px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.04)
    ),
    rgba(10, 16, 30, 0.84);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(37, 99, 235, 0.32),
    transparent 70%
  );
  pointer-events: none;
}

.hero-panel-top,
.hero-panel-footer {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 4px;
  color: #f8fafc;
}

.hero-panel-top {
  padding: 6px 6px 14px;
}

.hero-panel-footer {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel-top span,
.hero-panel-footer span {
  color: rgba(236, 243, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-top strong {
  font-family: "Instrument Serif", var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.hero-panel-footer strong {
  color: #ffffff;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  z-index: 2;
  width: 100%;
  margin-left: 0;
  border: 1px solid rgba(191, 219, 254, 0.26);
  border-radius: 20px;
  background: rgba(191, 219, 254, 0.08);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: 16px;
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    transparent 42%,
    rgba(37, 99, 235, 0.2)
  );
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 4.25;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.01);
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.hero-panel:hover .hero-photo {
  filter: saturate(1.02) contrast(1.06);
  transform: scale(1.045);
}

.section-heading,
.page-hero {
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading > div,
.section-heading > p {
  max-width: 720px;
}

.section-heading h1,
.section-heading h2,
.profile-summary h2,
.panel-header h2 {
  margin: 0;
  line-height: 1.18;
}

.section-heading h1,
.section-heading h2 {
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.section-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-link {
  color: var(--primary);
  font-weight: 800;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.section-link::after {
  content: " ->";
  color: var(--accent);
}

.section-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card,
.project-card,
.bio-card,
.form-card,
.contact-info-card,
.profile-summary,
.timeline-item div,
.empty-state,
.admin-panel,
.stat-card,
.login-card,
.login-intro {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0.52)
    ),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

body.dark .skill-card,
body.dark .project-card,
body.dark .bio-card,
body.dark .form-card,
body.dark .contact-info-card,
body.dark .profile-summary,
body.dark .timeline-item div,
body.dark .empty-state,
body.dark .admin-panel,
body.dark .stat-card,
body.dark .login-card,
body.dark .login-intro {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.02)
    ),
    var(--surface);
}

.skill-card,
.profile-summary,
.bio-card,
.form-card,
.contact-info-card,
.empty-state {
  padding: 24px;
}

.skill-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
}

.profile-summary,
.bio-card,
.form-card,
.contact-info-card {
  position: relative;
  overflow: hidden;
}

.skill-card,
.project-card,
.timeline-item div,
.focus-grid article {
  position: relative;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.skill-card::before,
.project-card::before,
.timeline-item div::before,
.focus-grid article::before,
.profile-summary::before,
.bio-card::before,
.form-card::before,
.contact-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.14),
    transparent 38%,
    rgba(56, 189, 248, 0.1)
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}

.skill-card:hover,
.project-card:hover,
.timeline-item:hover div,
.focus-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-md);
}

.skill-card:hover::before,
.project-card:hover::before,
.timeline-item:hover div::before,
.focus-grid article:hover::before,
.profile-summary:hover::before,
.bio-card:hover::before,
.form-card:hover::before,
.contact-info-card:hover::before {
  opacity: 1;
}

.skill-card > *,
.project-card > *,
.timeline-item div > *,
.focus-grid article > *,
.profile-summary > *,
.bio-card > *,
.form-card > *,
.contact-info-card > * {
  position: relative;
  z-index: 1;
}

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

.card-meta {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-card h2,
.skill-card h3,
.project-card h2,
.project-card h3 {
  margin: 10px 0 10px;
  line-height: 1.25;
}

.skill-card p {
  margin-bottom: 0;
}

.progress {
  overflow: hidden;
  height: 9px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb, #38bdf8);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.22);
  transform-origin: left;
  animation: progressFill 1.15s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-soft);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.project-card:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.045);
}

.project-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-card .card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.certificate-card img {
  object-fit: contain;
  padding: 18px;
}

.page-hero {
  max-width: 1000px;
}

.page-hero h1 {
  text-wrap: initial;
}

.page-hero p {
  max-width: 76ch;
}

.about-grid {
  align-items: stretch;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.focus-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.06)),
    var(--surface-soft);
}

.focus-grid span {
  color: var(--accent);
  font-weight: 900;
}

.focus-grid h3 {
  margin: 8px 0;
}

.bio-card img {
  width: 190px;
  height: 190px;
  margin: 0 0 20px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.bio-card dl {
  margin: 0;
}

.bio-card div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.bio-card div:last-child {
  border-bottom: 0;
}

.bio-card dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.bio-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    var(--accent-2),
    transparent
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.timeline-item > span {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin-top: 22px;
  border: 7px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    0 0 22px rgba(37, 99, 235, 0.22);
}

.section-muted .timeline-item > span {
  border-color: var(--surface-soft);
}

.timeline-item div {
  padding: 24px;
}

.timeline-item strong {
  color: var(--primary);
}

.timeline-item h2 {
  margin: 4px 0;
  line-height: 1.25;
}

.contact-grid {
  align-items: start;
}

.contact-info-card h1 {
  margin: 0 0 18px;
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  line-height: 1.12;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.contact-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent),
    var(--accent-soft);
  color: var(--primary);
  font-weight: 900;
}

.social-row a {
  color: var(--primary);
  font-weight: 800;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-row a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

form label {
  display: block;
  margin: 14px 0 7px;
  color: var(--text);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="file"] {
  cursor: pointer;
  padding: 10px 12px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

body.dark input,
body.dark textarea {
  background: rgba(255, 255, 255, 0.05);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.alert {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
}

.alert-success {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(6, 118, 71, 0.18);
}

.alert-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(180, 35, 24, 0.18);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 38px 0 22px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), transparent 40%),
    var(--surface);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-grid h3,
.footer-grid p {
  margin: 0;
}

.footer-grid p,
.copyright {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--surface-soft);
  color: var(--primary);
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.footer-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

.copyright {
  margin: 26px 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.15), transparent 30%),
    linear-gradient(245deg, rgba(56, 189, 248, 0.13), transparent 32%),
    linear-gradient(135deg, #f8fbff, #eef4fb 54%, #e6edf7);
}

body.dark.login-page {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.16), transparent 30%),
    linear-gradient(245deg, rgba(56, 189, 248, 0.12), transparent 32%),
    linear-gradient(135deg, #0b1120, #111827 54%, #172033);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 26px;
  width: min(920px, 100%);
}

.login-intro,
.login-card {
  padding: 30px;
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
}

.login-intro h1,
.login-card h2 {
  margin: 0 0 12px;
  line-height: 1.12;
}

.login-card .btn {
  width: 100%;
  margin-top: 18px;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), transparent 36%), #0f172a;
  color: #ffffff;
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-brand span {
  background: linear-gradient(135deg, #1e3a8a, #38bdf8);
}

.admin-brand strong {
  color: #ffffff;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav a,
.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 12px;
  color: #cbd5e1;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-nav a span {
  color: #7ca8e8;
  font-size: 0.78rem;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-sidebar-footer a:hover {
  background: rgba(96, 165, 250, 0.16);
  color: #ffffff;
  transform: translateX(2px);
}

.admin-nav a.active {
  box-shadow: inset 3px 0 0 #38bdf8;
}

.admin-sidebar-footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-main {
  min-width: 0;
  padding: 30px;
}

.admin-topbar,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -30px -30px 26px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 251, 255, 0.94);
}

body.dark .admin-topbar {
  background: rgba(11, 18, 32, 0.9);
}

.admin-topbar h1,
.panel-header h2 {
  margin: 0;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.09);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.admin-panel {
  margin-bottom: 22px;
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  scrollbar-color: var(--accent) var(--surface-soft);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:hover {
  background: rgba(37, 99, 235, 0.035);
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody td[colspan] {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

td {
  color: var(--text);
}

td a {
  color: var(--primary);
  font-weight: 800;
}

.table-actions {
  white-space: nowrap;
}

.table-actions .btn {
  margin: 0 5px 6px 0;
}

.table-thumb {
  width: 90px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-soft);
}

.admin-preview {
  width: 190px;
  max-height: 148px;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.76s ease,
    transform 0.76s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.skill-card.reveal-on-scroll.is-visible:hover,
.project-card.reveal-on-scroll.is-visible:hover,
.focus-grid article.reveal-on-scroll.is-visible:hover {
  transform: translateY(-7px);
}

.timeline-item.reveal-on-scroll.is-visible:hover div {
  transform: translateY(-7px);
}

.hero-content > *,
.hero-visual {
  animation: riseIn 0.8s ease both;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.14s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.22s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.3s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.38s;
}

.hero-content > *:nth-child(6) {
  animation-delay: 0.46s;
}

.hero-visual {
  animation-delay: 0.26s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes progressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 992px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    white-space: normal;
    animation: menuReveal 0.24s ease both;
  }

  .nav-menu.open {
    display: grid;
  }

  .nav-menu a,
  .nav-menu .theme-toggle {
    justify-content: center;
    width: 100%;
    border-radius: 12px;
    font-size: 0.94rem;
    min-height: 42px;
  }

  .nav-menu a.active::after {
    left: 18px;
    right: 18px;
    bottom: 7px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(460px, 100%);
    justify-self: start;
  }

  .capability-strip {
    margin-top: -30px;
  }

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

  .capability-grid article {
    min-height: auto;
  }

  .card-grid,
  .project-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .admin-topbar {
    position: static;
    margin: 0 0 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .about-grid {
    gap: clamp(24px, 4vw, 40px);
  }

  .bio-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .bio-card img {
    margin-bottom: 0;
  }

  .card-grid,
  .project-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    padding: 18px;
  }

  .admin-nav a,
  .admin-sidebar-footer a {
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .navbar {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 190px;
    font-size: 0.88rem;
  }

  .theme-toggle {
    min-width: 0;
  }

  .nav-menu {
    top: 70px;
    grid-template-columns: 1fr;
  }

  .section,
  .page-section,
  .hero-section {
    padding: 46px 0;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content h1,
  .page-section h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: auto;
  }

  .hero-actions .btn,
  .card-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-panel {
    min-height: auto;
    border-radius: 22px;
    padding: 14px;
  }

  .hero-photo-wrap {
    margin-left: 0;
  }

  .capability-strip {
    margin-top: 0;
    padding: 0 0 18px;
  }

  .section-heading,
  .footer-grid,
  .admin-topbar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .project-grid,
  .admin-grid,
  .focus-grid,
  .form-grid,
  .admin-nav,
  .admin-sidebar-footer {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .profile-summary,
  .bio-card,
  .form-card,
  .contact-info-card,
  .empty-state,
  .admin-panel,
  .login-card,
  .login-intro {
    padding: 20px;
  }

  .about-grid {
    gap: 22px;
  }

  .bio-card img {
    width: min(190px, 100%);
  }

  .capability-grid article {
    padding: 20px;
  }

  .project-card img {
    height: 200px;
  }

  .bio-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    grid-template-columns: 26px 1fr;
    gap: 12px;
  }

  .timeline-item > span {
    width: 26px;
    height: 26px;
    border-width: 6px;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-topbar {
    padding: 18px;
  }

  .admin-topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user {
    justify-content: center;
    width: 100%;
  }

  .admin-topbar-actions .btn,
  .admin-topbar-actions .theme-toggle {
    width: 100%;
  }

  .login-page {
    padding: 16px;
  }
}

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #080d19 0%, #0f192f 55%, #16295a 100%);
  color: #f8fafc;
  animation: introHide 0.5s ease 8.6s forwards;
}

.intro-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  animation: none;
}

.intro-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(191, 219, 254, 0.3);
  border-radius: 24px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-family: "Instrument Serif", var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.32);
  animation: introMarkIn 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.intro-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: min(260px, 88vw);
}

.intro-label {
  margin: 0;
  color: rgba(236, 243, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-percent {
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.intro-track {
  width: min(260px, 88vw);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.intro-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  animation: introProgress 8s linear both;
}

body.intro-open {
  overflow: hidden;
}

.type-caret {
  display: inline-block;
  width: 0.05em;
  min-width: 3px;
  height: 0.82em;
  margin-left: 0.05em;
  vertical-align: -0.04em;
  border-radius: 2px;
  background: var(--accent-2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.type-target.is-typing + .type-caret {
  opacity: 1;
  animation: caretBlink 0.85s step-end infinite;
}

@keyframes introMarkIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.86);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes introHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 576px) {
  .intro-mark {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader {
    display: none;
  }

  .type-caret {
    animation: none;
  }
}
