*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

@property --canvas-particle {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --canvas-line {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

:root {
  --bg:           #f0f4fb;
  --surface:      #ffffff;
  --text:         #1e293b;
  --heading:      #0f172a;
  --muted:        #64748b;
  --blue:         #2563eb;
  --accent:       #1e40af;
  --accent-hover: #1e3a8a;

  --mix-border:  14%;
  --mix-tag:      7%;
  --mix-glow:    22%;
  --mix-section:  3%;
  --mix-grid:     3%;

  --border:        color-mix(in srgb, var(--accent) var(--mix-border), transparent);
  --border-strong: color-mix(in srgb, var(--accent) 30%, transparent);
  --tag-bg:        color-mix(in srgb, var(--accent) var(--mix-tag), transparent);
  --glow:          color-mix(in srgb, var(--accent) var(--mix-glow), transparent);
  --surface-sunken: color-mix(in srgb, var(--accent) 5%, var(--surface));
  --transition:   0.3s ease;

  --shadow-sm:      0 2px 8px rgb(0 0 0 / 0.02);
  --shadow-md:      0 4px 6px rgb(0 0 0 / 0.05);
  --shadow-glow:    0 4px 20px var(--glow);
  --shadow-glow-hi: 0 6px 25px color-mix(in srgb, var(--accent) 40%, transparent);
  --shadow-card:    0 10px 20px color-mix(in srgb, var(--accent) 8%, transparent);
  --shadow-contact: 0 16px 40px color-mix(in srgb, var(--accent) 12%, transparent);

  --header-bg:          color-mix(in srgb, var(--bg) 85%, transparent);
  --header-scrolled-bg: color-mix(in srgb, var(--surface) 95%, transparent);
  --scrollbar-track:    #e2e8f0;
  --section-alt-bg:     color-mix(in srgb, var(--accent) var(--mix-section), transparent);

  --canvas-particle:   var(--accent);
  --canvas-line:       color-mix(in srgb, var(--accent) 15%, transparent);
  --error-grid-line:   color-mix(in srgb, var(--accent) var(--mix-grid), transparent);
}

[data-theme="dark"] {
  --bg:           #0b0f19;
  --surface:      #131b2e;
  --text:         #cbd5e1;
  --heading:      #f8fafc;
  --muted:        #94a3b8;
  --blue:         #3b82f6;
  --accent:       #60a5fa;
  --accent-hover: #93c5fd;

  --mix-border:  18%;
  --mix-tag:     10%;
  --mix-glow:    25%;
  --mix-section:  4%;
  --mix-grid:     5%;

  --shadow-sm:      0 2px 8px rgb(0 0 0 / 0.3);
  --shadow-md:      0 4px 12px rgb(0 0 0 / 0.4);
  --shadow-glow:    0 4px 20px color-mix(in srgb, var(--accent) 20%, transparent);
  --shadow-glow-hi: 0 6px 25px color-mix(in srgb, var(--accent) 35%, transparent);
  --shadow-card:    0 10px 25px rgb(0 0 0 / 0.4);
  --shadow-contact: 0 16px 40px rgb(0 0 0 / 0.5);

  --scrollbar-track:    #1e293b;
}

html { 
  scroll-behavior: smooth; 
  scrollbar-width: thin;
  scrollbar-color: var(--muted) var(--scrollbar-track);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { 
  width: 6px; 
}
::-webkit-scrollbar-track { 
  background: var(--scrollbar-track); 
}
::-webkit-scrollbar-thumb { 
  background: var(--muted); 
  border-radius: 4px; 
  
  &:hover { 
    background: var(--accent); 
  }
}

/* Canvas grid background */
#canvas-bg {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.25; pointer-events: none;
}

/* Header & Nav */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 60px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  transition: padding var(--transition), background var(--transition), border-color var(--transition);

  &.scrolled {
    padding: 15px 60px;
    background: var(--header-scrolled-bg);
    box-shadow: var(--shadow-card);
  }

  &:has(.nav-links.open) {
    background: var(--header-scrolled-bg);
    box-shadow: var(--shadow-card);
  }

  @media (max-width: 1024px) {
    &, &.scrolled { padding: 15px 30px; }
  }
}

@media (max-width: 1024px) {
  body:has(.nav-links.open) { overflow: hidden; }
}

.nav-logo {
  --logo-h: 20px;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;

  /* Focus ring stays outside the mark's clear space of half its height.
     Rounded up because outline-offset snaps to whole pixels. Drawn on the
     mark, not the link, so it rides along with the hover lift. */
  &:focus-visible { outline: none; }
  &:focus-visible .logo-mark {
    outline: 2px dashed var(--accent);
    outline-offset: round(up, calc(var(--logo-h) / 2), 1px);
  }

  &:hover .logo-mark { transform: translateY(-2px); }
  &:hover .logo-tld  { fill: var(--accent-hover); }

  @media (max-width: 600px) {
    & { --logo-h: 17px; }
  }
}

.logo-mark {
  display: block;
  height: var(--logo-h); width: auto;
  transition: transform var(--transition);
}

.logo-word { fill: var(--heading); transition: fill var(--transition); }
.logo-tld  { fill: var(--accent);  transition: fill var(--transition); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Slider */
.theme-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
  gap: 2px;
  user-select: none;
  transition: background-color var(--transition), border-color var(--transition);

  &:has(.theme-slider-btn:focus-visible) {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
  }

  .theme-slider-btn:focus-visible { outline: none; }
}

.theme-slider-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color var(--transition);
  pointer-events: none;
  z-index: 0;
}

[data-theme-mode="light"] .theme-slider-thumb {
  transform: translateX(0px);
}

[data-theme-mode="system"] .theme-slider-thumb,
:root:not([data-theme-mode]) .theme-slider-thumb {
  transform: translateX(32px);
}

[data-theme-mode="dark"] .theme-slider-thumb {
  transform: translateX(64px);
}

.theme-slider-btn {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.2s ease;

  &:hover {
    color: var(--heading);
  }

  svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
  }
}

/* Active Button Indicator Color */
[data-theme-mode="light"] .theme-slider-btn[data-theme-val="light"] {
  color: #ffffff;
}

[data-theme="dark"][data-theme-mode="dark"] .theme-slider-btn[data-theme-val="dark"] {
  color: #0b0f19;
}

[data-theme="light"][data-theme-mode="dark"] .theme-slider-btn[data-theme-val="dark"] {
  color: #ffffff;
}

[data-theme="dark"][data-theme-mode="system"] .theme-slider-btn[data-theme-val="system"],
[data-theme="dark"]:not([data-theme-mode]) .theme-slider-btn[data-theme-val="system"] {
  color: #0b0f19;
}

[data-theme="light"][data-theme-mode="system"] .theme-slider-btn[data-theme-val="system"],
[data-theme="light"]:not([data-theme-mode]) .theme-slider-btn[data-theme-val="system"] {
  color: #ffffff;
}

.nav-links { 
  display: flex; gap: 36px; align-items: center; 
  
  a {
    color: var(--muted); text-decoration: none;
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.2s;
    position: relative;

    &::after {
      content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px;
      background: var(--accent); transition: width 0.3s ease;
    }

    &:hover, &.active { 
      color: var(--accent); 
      &::after { width: 100%; }
    }
  }

  @media (max-width: 1024px) {
    & {
      position: fixed; top: 65px; left: 0; right: 0;
      background: var(--surface); border-bottom: 1px solid var(--border);
      flex-direction: column; gap: 0; padding: 20px 0;
      box-shadow: var(--shadow-card);
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
      transition: clip-path 0.4s ease-in-out;
    }

    &.open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

    a { 
      padding: 15px 30px; width: 100%; text-align: center; font-size: 14px; 
      
      &::after { display: none; }
    }
  }
}

.mobile-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 10px;

  span {
    display: block; width: 24px; height: 2px; background: var(--accent);
    transition: var(--transition);
  }

  header:has(.nav-links.open) & span {
    &:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    &:nth-child(2) { opacity: 0; }
    &:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  }

  @media (max-width: 1024px) {
    & { display: flex; }
  }
}

/* Layout & Main */
main { position: relative; z-index: 1; }
section { 
  padding: 120px 60px; 

  @media (max-width: 1024px) {
    & { padding: 80px 30px; }
  }
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; 
  padding-top: 80px;
  width: 100%;

  @media (max-width: 1024px) {
    & { padding-top: 100px; }
  }
}

.hero-inner {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  text-align: left; gap: 60px; max-width: 1340px; width: 100%; padding: 0 60px;

  @media (max-width: 1024px) {
    & { padding: 0 40px; gap: 30px; align-items: flex-end; }
  }

  @media (max-width: 768px) {
    & { flex-direction: column; text-align: center; padding: 0 24px; gap: 40px; align-items: center; }
  }
}

.hero-content {
  flex: 1; min-width: 320px; max-width: 600px; padding-bottom: 20px;

  @media (max-width: 1024px) {
    & { min-width: 0; padding-bottom: 30px; }
  }

  @media (max-width: 768px) {
    & { padding-bottom: 0; width: 100%; }
  }
}

.hero-image {
  flex: 1; min-width: 320px; display: flex; justify-content: center; align-items: flex-end;

  img {
    width: 100%; max-width: 640px; height: auto; display: block;
    filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--accent) 15%, transparent));
  }

  @media (max-width: 1024px) {
    & { min-width: 0; }
    img { max-width: 100%; }
  }

  @media (max-width: 768px) {
    & { width: 100%; }
    img { max-width: 400px; margin: 0 auto; }
  }
}

h1 {
  font-size: clamp(48px, 6vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -3px;
  color: var(--heading); margin-bottom: 12px;
  
  span { color: var(--accent); }

  @media (max-width: 600px) {
    & { font-size: 40px; }
  }
}

.hero-subtitle {
  font-size: 16px; font-weight: 600;
  color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase; margin: 16px 0 32px;
}

.hero-desc {
  color: var(--muted); font-size: 15px; max-width: 540px; line-height: 1.8; margin: 0 0 40px 0;

  @media (max-width: 768px) {
    & { margin: 0 auto 40px auto; }
  }
}

.hero-actions { 
  display: flex; gap: 16px; flex-wrap: nowrap; justify-content: flex-start; 

  @media (max-width: 768px) {
    & { justify-content: center; width: 100%; }
  }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s; 
  cursor: pointer; border: none; white-space: nowrap;
}

.btn-primary {
  background: var(--accent); color: #ffffff;
  box-shadow: var(--shadow-glow);

  &:hover {
    background: var(--accent-hover); 
    box-shadow: var(--shadow-glow-hi);
    transform: translateY(-3px);
  }
}

.btn-ghost {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);

  &:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-3px);
    background: var(--tag-bg);
  }
}

.hero-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

/* Section Headers */
.section-header {
  display: flex; align-items: center; gap: 24px; margin-bottom: clamp(14px, 1.2vw, 20px);
}
.section-num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.25em; color: var(--accent); text-transform: uppercase;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

h2 {
  font-size: clamp(26px, 1.2vw + 21px, 38px); font-weight: 800; color: var(--heading);
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: clamp(36px, 3.3vw, 48px);
  
  em { color: var(--accent); font-style: normal; }
}

.skill-icon svg,
.contact-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.skill-icon { margin-bottom: 20px; }

/* Skills */
#skills {
  background: linear-gradient(180deg, transparent 0%, var(--section-alt-bg) 50%, transparent 100%);
}
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.skill-card {
  container: skill-card / inline-size;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; transition: var(--transition);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);

  &::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
  }

  &:hover {
    border-color: var(--border-strong);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);

    &::after { transform: scaleX(1); }
  }
}

.skill-cat {
  font-size: 14px; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px;
}
.skill-items { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  padding: 6px 12px; border-radius: 6px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text);
}

@container skill-card (max-width: 200px) {
  .skill-icon svg { width: 26px; height: 26px; }
  .skill-icon { margin-bottom: 14px; }
  .skill-cat { font-size: 13px; letter-spacing: 0.5px; margin-bottom: 14px; }
  .skill-items { gap: 6px; }
  .skill-tag { font-size: 12px; padding: 5px 10px; }
}

/* Experience */
.timeline {
  container: timeline / inline-size;
  position: relative; margin-top: 40px;

  &::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--blue), transparent);
  }
}

.timeline-item {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; 
  padding: 0 0 60px 40px; position: relative;

  &::before {
    content: ''; position: absolute; left: -6px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--accent);
    box-shadow: 0 0 12px var(--glow);
  }
}

@container timeline (max-width: 720px) {
  .timeline-item { grid-template-columns: 1fr; gap: 24px; padding: 0 0 48px 32px; }
}

.tl-company { font-weight: 800; font-size: 18px; color: var(--heading); margin-bottom: 4px; }
.tl-brand { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.tl-total {
  display: inline-block; background: var(--tag-bg); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--accent);
}

.tl-stack { 
  margin-top: 20px; 
}

.tl-stack-label { 
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; 
}

.tl-stack-list { 
  display: flex; flex-wrap: wrap; gap: 6px; 
}

.tl-stack-tag {
  padding: 4px 10px; border-radius: 4px;
  background: var(--tag-bg); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--accent);
}

.tl-roles { display: flex; flex-direction: column; gap: 24px; }
.tl-role {
  container: tl-role / inline-size;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; transition: var(--transition);
  box-shadow: var(--shadow-sm);

  &:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
  }

  &:not(:has(li)) .tl-role-header { margin-bottom: 0; }

  ul { 
    list-style: none; 
    
    li {
      color: var(--text); font-size: 14px; line-height: 1.8;
      padding-left: 24px; position: relative; margin-bottom: 8px;
      
      &:last-child { margin-bottom: 0; }
      &::before {
        content: '→'; position: absolute; left: 0; top: 0;
        color: var(--accent); font-weight: bold;
      }
    }
  }
}

.tl-role-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.tl-role-title { font-weight: 800; font-size: 16px; color: var(--accent); }
.tl-date {
  font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px;
  background: var(--surface-sunken); padding: 4px 12px; border-radius: 6px; white-space: nowrap;
}

@container tl-role (max-width: 380px) {
  .tl-role-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tl-role ul li { font-size: 13px; }
}

/* Education & Certs */
#education { 
  background: linear-gradient(180deg, transparent 0%, var(--section-alt-bg) 50%, transparent 100%); 
}

.edu-title, .certs-title { 
  font-size: 24px; font-weight: 800; color: var(--heading); margin-bottom: 32px; letter-spacing: -0.5px;
}

.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 60px; }
.edu-card {
  container: edu-card / inline-size;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; transition: var(--transition);
  box-shadow: var(--shadow-sm);

  &:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-card); }
}
.edu-degree { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.edu-school { font-weight: 800; font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.edu-field { color: var(--text); font-size: 14px; margin-bottom: 20px; }

.edu-years {
  font-size: 13px; 
  font-weight: 600; 
  color: var(--muted);
  border-top: 1px solid var(--border); 
  padding-top: 16px;
  display: flex; 
  align-items: center;
  gap: 8px;
  white-space: nowrap;

  span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  svg {
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@container edu-card (max-width: 280px) {
  .edu-school { font-size: 16px; }
  .edu-degree { letter-spacing: 1px; }
  .edu-years { white-space: normal; flex-wrap: wrap; }
}

.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;

  &:has(.cert-card:only-child) { grid-template-columns: minmax(250px, 400px); }
}
.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; transition: var(--transition);
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-sm);
  
  &:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }
}
.cert-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; line-height: 1.5; }
.cert-issuer { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; }

/* Contact */
#contact { 
  text-align: center; 
  background: linear-gradient(180deg, transparent 0%, var(--section-alt-bg) 100%); 
}
.contact-header {
  max-width: 700px; margin-inline: auto;

  &::before { content: ""; flex: 1; height: 1px; background: var(--border); }
}

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; max-width: 800px; margin: 0 auto;

  &:has(.contact-item:hover) .contact-item:not(:hover) {
    opacity: 0.55;
    transform: scale(0.98);
  }

  @media (max-width: 600px) {
    & { grid-template-columns: 1fr; }
  }
}
.contact-item {
  container: contact-item / inline-size;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 24px;
  text-decoration: none; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);

  &:hover {
    border-color: var(--accent); transform: translateY(-6px);
    box-shadow: var(--shadow-contact);
  }

  &:hover .contact-icon svg {
    transform: scale(1.1);
  }
}
.contact-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all; }

@container contact-item (max-width: 170px) {
  .contact-icon svg { width: 26px; height: 26px; }
  .contact-label { letter-spacing: 1px; }
  .contact-value { font-size: 13px; }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 60px; background: var(--surface);
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  transition: background-color var(--transition), border-color var(--transition);

  @media (max-width: 1024px) {
    & {
      padding: 30px;
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }
  }
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);

  &:hover {
    color: var(--accent);
  }
}

.footer-dot {
  color: var(--border);
  user-select: none;

  @media (max-width: 1024px) {
    & { display: none; }
  }
}

/* Subpage card entrance (legal.css, error.css) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal Animations */
.js .reveal {
  opacity: 0; 
  transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  
  &.visible { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.delay-50  { transition-delay: 0.05s; }
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.3s; }
.delay-350 { transition-delay: 0.35s; }
.delay-400 { transition-delay: 0.4s; }
.delay-450 { transition-delay: 0.45s; }
.delay-500 { transition-delay: 0.5s; }
