/* =========================================================
   周莎俊 resume — light dashboard
   ========================================================= */

:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --violet: #8b7cf6;
  --violet-soft: rgba(139, 124, 246, 0.12);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --orange: #f59e0b;
  --orange-soft: rgba(245, 158, 11, 0.14);
  --radius: 16px;
  --sidebar-w: 240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.08);
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", Times, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* full-page background image */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 246, 251, 0.15), rgba(244, 246, 251, 0.55)),
    url("images/bg-hero.png") center top / cover no-repeat,
    var(--bg);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.35rem 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
  z-index: 40;
}

.sidebar__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.25rem 0.15rem 0.7rem;
}

.sidebar__avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 0.15rem;
  margin-top: 0.35rem;
}

.sidebar__avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.35),
    0 12px 32px rgba(15, 23, 42, 0.12);
}

.sidebar__status {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.sidebar__name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sidebar__role {
  color: var(--text-3);
  font-size: 0.72rem;
  line-height: 1.45;
  max-width: 12.5rem;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.15rem 0;
  flex: 1;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  color: var(--text-2);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s;
}
.side-link svg,
.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon-btn .ico { width: 20px; height: 20px; }
.hobby-card .ico { width: 22px; height: 22px; }
.side-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}
.side-link.is-active {
  color: var(--blue-deep);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.16);
}

.sidebar__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.sidebar__lang {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.18rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto;
}
.sidebar__lang button {
  min-width: 2.1rem;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
}
.sidebar__lang button.is-active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.sidebar__tagline {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.sidebar__pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0.15rem;
  padding: 0.55rem 0.65rem;
  color: var(--text);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sidebar__pdf:hover {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
}
.sidebar__pdf .ico {
  width: 16px;
  height: 16px;
}

/* ---------- MOBILE BAR ---------- */

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mobile-bar__title { font-weight: 800; letter-spacing: -0.02em; }
.mobile-bar__menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
}
.mobile-bar__lang { margin: 0; }

/* ---------- MAIN ---------- */

.main {
  min-width: 0;
  padding: 1.55rem 1.75rem 2.4rem;
  position: relative;
}

.section {
  margin-bottom: 2rem;
  scroll-margin-top: 1.25rem;
  position: relative;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section__head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1rem;
}
.section__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__sub {
  color: var(--text-3);
  font-size: 0.88rem;
}

/* ---------- HOME / HERO ---------- */

.home {
  overflow: visible;
}

.home__motto {
  position: absolute;
  top: -0.15rem;
  right: 0.15rem;
  z-index: 3;
  color: rgba(100, 116, 139, 0.55);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  line-height: 1.65;
  text-align: right;
  pointer-events: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(180px, 0.42fr);
  gap: 1rem 1.2rem;
  align-items: center;
  padding: 1.35rem 1.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-panel__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home__hi {
  color: var(--text-2);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.home__title {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.home__title-name { color: var(--blue); }

.home__focus {
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.home__desc {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: 48rem;
}

.home__points {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.home__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.45;
}
.home__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  flex-shrink: 0;
}

.home__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}
.home__stack span {
  padding: 0.28rem 0.65rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.icon-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #6366f1);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.28);
}
.icon-btn--xhs:hover {
  background: linear-gradient(135deg, #ff2442, #ff6b81);
  box-shadow: 0 10px 20px rgba(255, 36, 66, 0.28);
}

/* right side cards */
.hero-panel__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  align-items: flex-end;
  min-height: 100%;
  padding-top: 0.5rem;
}

.stat-card {
  width: min(100%, 240px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  display: grid;
  gap: 0.05rem;
  align-content: start;
}
.stat-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.28rem 0;
  border-bottom: 1px dashed var(--line);
}
.stat-card__row:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}
.stat-card__row:first-child {
  padding-top: 0.1rem;
}
.stat-card__label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.stat-card strong {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.3;
}

/* Path cards */
.path-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.path-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.path-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.path-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.path-card__icon svg { width: 21px; height: 21px; }
.path-card--blue .path-card__icon { color: var(--blue); background: var(--blue-soft); }
.path-card--violet .path-card__icon { color: var(--violet); background: var(--violet-soft); }
.path-card--green .path-card__icon { color: var(--green); background: var(--green-soft); }

.path-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.path-card__body strong { font-size: 0.96rem; font-weight: 700; }
.path-card__body span { color: var(--text-3); font-size: 0.76rem; line-height: 1.4; }

.path-card__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.path-card:hover .path-card__arrow {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
  transform: translateX(2px);
}

/* ---------- PROJECT LIST (resume-style) ---------- */

.exp-list {
  display: grid;
  gap: 0.9rem;
}

.exp-item {
  padding: 1.15rem 1.25rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.22s, box-shadow 0.22s;
}
.exp-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.exp-item__head {
  margin-bottom: 0.55rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}

.exp-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.3rem;
}
.exp-item__title-row h3 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.exp-item__period {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}
.exp-item__role {
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 500;
}
.exp-item__desc {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.65rem;
}
.exp-item__bullets {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.exp-item__bullets li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.6;
}
.exp-item__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.exp-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}
.exp-item__links .chip {
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
}

.exp-item__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: 0.15rem;
}
.exp-item__foot .tags {
  margin-top: 0;
  padding-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.exp-item__action {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.tags span {
  padding: 0.22rem 0.55rem;
  color: var(--text-2);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- SKILLS ---------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.skill-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s var(--ease);
}
.skill-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.skill-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.skill-card__icon svg { width: 21px; height: 21px; }
.skill-card__icon--blue { color: var(--blue); background: var(--blue-soft); }
.skill-card__icon--violet { color: var(--violet); background: var(--violet-soft); }
.skill-card__icon--green { color: var(--green); background: var(--green-soft); }
.skill-card__icon--orange { color: var(--orange); background: var(--orange-soft); }

.skill-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.28rem;
}
.skill-card p {
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ---------- EDUCATION ---------- */

.edu-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.edu-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 14px;
}
.edu-card__icon svg { width: 23px; height: 23px; }
.edu-card__icon--logo {
  width: 56px;
  height: 56px;
  padding: 8px 6px;
  background: linear-gradient(145deg, #1e3a5f, #2d5a87);
  border: 1px solid rgba(30, 58, 95, 0.35);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.edu-card__icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.edu-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.2rem;
}
.edu-card__top h3 { font-size: 1.1rem; font-weight: 700; }
.edu-card__period {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.edu-card__body p { color: var(--text-2); font-size: 0.9rem; }

/* ---------- HONORS & HOBBIES ---------- */

.honor-line .exp-item__title-row {
  margin-bottom: 0;
}
.honor-line {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.hobby-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hobby-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
}

.hobby-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s var(--ease);
}
a.hobby-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.hobby-card__body { min-width: 0; }
.hobby-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.hobby-card__top h3 { margin-bottom: 0; }
.hobby-card__go {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
a.hobby-card:hover .hobby-card__go {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
  transform: translateX(2px);
}

.hobby-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.hobby-card__icon svg { width: 22px; height: 22px; }
.hobby-card__icon--blue { color: var(--blue); background: var(--blue-soft); }
.hobby-card__icon--violet { color: var(--violet); background: var(--violet-soft); }

.hobby-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.hobby-card p {
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hobby-grid { grid-template-columns: 1fr; }
}

/* ---------- CONTACT ---------- */

.contact__panel {
  padding: 1.3rem 1.4rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 124, 246, 0.05)), rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact__quote {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 48rem;
  margin-bottom: 1rem;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.chip-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.chip:hover {
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}
.chip--static {
  color: var(--text-2);
  pointer-events: none;
}
.chip--static:hover {
  background: #fff;
  border-color: var(--line);
  transform: none;
}

/* ---------- FOOTER ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.15rem 0.2rem;
  color: var(--text-3);
  font-size: 0.78rem;
}
.footer__right {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in,
html.debug-show .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .hero-panel__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .home__motto { display: none; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 280px);
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.12);
  }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-bar { display: flex; }
  .main { padding: 1.1rem 1rem 2rem; }
  .path-cards,
  .skill-grid { grid-template-columns: 1fr; }
  .hero-panel__side { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 23, 42, 0.35);
  }
  .sidebar-backdrop[hidden] { display: none !important; }
}

@media (max-width: 560px) {
  .home__actions { flex-direction: column; }
  .btn { width: 100%; }
  .edu-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
