/* ============================================================
   国风水墨个人主页 · 样式表
   配色：宣纸米白 + 浓墨黑 + 朱砂红
   ============================================================ */

:root {
  --paper: #f5f0e4;         /* 宣纸底色 */
  --paper-deep: #ece4d2;    /* 深宣纸 */
  --paper-card: #faf7ee;    /* 卡片纸面 */
  --ink: #22201d;           /* 浓墨 */
  --ink-soft: #4a4642;      /* 淡墨 */
  --ink-faint: #8a837a;     /* 远墨 */
  --cinnabar: #a8412f;      /* 朱砂 */
  --cinnabar-deep: #8c3122; /* 深朱砂 */
  --line: rgba(34, 32, 29, 0.18);

  --font-brush: "Ma Shan Zheng", "ZCOOL XiaoWei", "KaiTi", "STKaiti", serif;
  --font-body: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", "SimSun", serif;

  --shadow-ink: 0 10px 30px rgba(34, 32, 29, 0.12);
  --radius: 4px;
}

/* ---------- 基础 ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.9;
  /* 宣纸纹理：多层渐变模拟纸纤维与旧纸斑驳 */
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(120, 100, 60, 0.06), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(120, 100, 60, 0.05), transparent 50%),
    repeating-linear-gradient(0deg, rgba(90, 75, 45, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90, 75, 45, 0.014) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 防止宽行距文本在窄屏产生横向滚动 */
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1080px, 90%);
  margin: 0 auto;
}

section {
  scroll-margin-top: 72px;
}

/* ---------- 印章 ---------- */

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  background: var(--cinnabar);
  color: #fdf6ec;
  font-family: var(--font-brush);
  font-size: 1rem;
  line-height: 1;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(253, 246, 236, 0.55),
    inset 0 0 6px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg);
  user-select: none;
}

.seal--small {
  width: 1.9em;
  height: 1.9em;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* ---------- 顶部阅读进度 ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--cinnabar-deep), var(--cinnabar));
  box-shadow: 0 0 8px rgba(168, 65, 47, 0.45);
}

/* ---------- 导航栏 ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(245, 240, 228, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(34, 32, 29, 0.06);
}

.nav-inner {
  width: min(1080px, 92%);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-text {
  font-family: var(--font-brush);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  padding: 0.3em 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cinnabar);
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cinnabar-deep);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
  left: 0;
}

/* ---------- 首页 Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Chinese%20traditional%20shan%20shui%20ink%20wash%20painting%2C%20misty%20mountains%20and%20distant%20river%2C%20vast%20empty%20negative%20space%2C%20minimalist%20black%20ink%20on%20aged%20rice%20paper%2C%20soft%20ink%20diffusion%2C%20no%20text%20no%20people&image_size=landscape_16_9");
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(0.15);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(245, 240, 228, 0.55) 0%, rgba(245, 240, 228, 0.15) 35%, rgba(245, 240, 228, 0.35) 65%, var(--paper) 96%),
    radial-gradient(ellipse at center, rgba(245, 240, 228, 0.35), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  min-width: 0; /* 允许 flex 子项在窄屏收缩，避免长文本撑破视口 */
}

.hero-eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
  text-indent: 0.5em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-brush);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 18px rgba(245, 240, 228, 0.9);
}

.hero-tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.35em;
  color: var(--ink-soft);
  text-indent: 0.35em;
}

.hero-seal {
  margin: 1.8rem 0 2.2rem;
}

.hero-seal .seal {
  font-size: 1.3rem;
  width: 2.6em;
  height: 2.6em;
}

.btn-ink {
  display: inline-block;
  padding: 0.7em 2.4em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(250, 247, 238, 0.6);
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-ink:hover {
  background: var(--ink);
  color: var(--paper-card);
  transform: translateY(-2px);
}

.btn-ink--ghost {
  background: transparent;
}

.btn-ink--ghost:hover {
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
  color: var(--paper-card);
}

.btn-beidc {
  border-color: var(--cinnabar);
  color: var(--cinnabar-deep);
}

.btn-beidc:hover {
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
  color: var(--paper-card);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
}

.scroll-hint-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ---------- 通用章节 ---------- */

.section {
  padding: 6rem 0;
}

.section--paper {
  background: var(--paper-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(120, 100, 60, 0.07), transparent 60%);
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.section-subtitle {
  margin: 1rem auto 0;
  color: var(--ink-faint);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

/* 标题下的一笔飞白 */
.title-brush {
  display: block;
  width: 120px;
  height: 10px;
  margin: 0.8rem auto 0;
  background:
    radial-gradient(ellipse at 30% 50%, var(--ink) 0%, rgba(34, 32, 29, 0.7) 45%, transparent 75%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 82%, transparent);
  opacity: 0.75;
  border-radius: 50%;
  filter: blur(0.4px);
}

/* ---------- 关于我 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 4rem;
  align-items: center;
}

.about-portrait {
  margin: 0;
  text-align: center;
}

.about-portrait img {
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-ink);
  filter: contrast(1.02);
}

.about-portrait-caption {
  margin-top: 1rem;
  color: var(--ink-faint);
  letter-spacing: 0.25em;
  font-size: 0.95rem;
}

.about-text p {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.about-text strong {
  color: var(--cinnabar-deep);
  font-weight: 600;
}

/* 技能分组 */
.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2.4rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px dashed var(--line);
}

.skill-group-title {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.skill-group-title::before {
  content: "◆ ";
  color: var(--cinnabar);
  font-size: 0.7em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tags li {
  padding: 0.2em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-card);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* 数据统计 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 4.5rem auto 0;
  max-width: 860px;
  padding: 2.4rem 1rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-ink);
}

.stat {
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  width: 1px;
  background: var(--line);
}

.stat-num {
  display: block;
  font-family: var(--font-brush);
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--cinnabar-deep);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--ink-faint);
}

/* ---------- 行迹时间线 ---------- */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 0;
}

/* 时间线主轴 */
.timeline::before {
  content: "";
  position: absolute;
  left: 7.5rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--ink-faint) 8%, var(--ink-faint) 92%, transparent);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 6rem 3rem 1fr;
  align-items: start;
  margin-bottom: 2.2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  grid-column: 1;
  padding-top: 0.35rem;
  text-align: right;
  font-family: var(--font-brush);
  font-size: 1.5rem;
  color: var(--cinnabar-deep);
  letter-spacing: 0.05em;
}

.timeline-dot {
  grid-column: 2;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 0.7rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--cinnabar);
  box-shadow: 0 0 0 4px var(--paper);
  position: relative;
  z-index: 1;
}

.timeline-card {
  grid-column: 3;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cinnabar);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-ink);
}

.timeline-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.timeline-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* ---------- 作品 ---------- */

.works-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: -1.5rem 0 3rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 1.5em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar-deep);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-card);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.works-empty {
  text-align: center;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-top: 3rem;
  font-size: 1.05rem;
}

/* 筛选显隐 */
.work-card.is-hidden {
  display: none;
}

.work-card.is-shown {
  animation: card-in 0.5s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.work-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(34, 32, 29, 0.18);
}

.work-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.work-card-year {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.1em 0.7em;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--paper-card);
  background: rgba(34, 32, 29, 0.72);
  border-radius: 3px;
  backdrop-filter: blur(2px);
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-img img {
  transform: scale(1.05);
}

.work-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.work-card-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.work-card-desc {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-card-tags li {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cinnabar-deep);
  border: 1px solid rgba(168, 65, 47, 0.35);
  border-radius: 3px;
  padding: 0.1em 0.7em;
}

.work-card-links {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.work-link {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.work-link::after {
  content: " →";
  color: var(--cinnabar);
}

.work-link:hover {
  color: var(--cinnabar-deep);
}

/* ---------- 联系 ---------- */

.contact-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-lead {
  margin: 0 0 0.6rem;
  font-family: var(--font-brush);
  font-size: 2rem;
  letter-spacing: 0.2em;
}

.contact-sub {
  margin: 0 0 1.8rem;
  color: var(--ink-soft);
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--cinnabar-deep);
  border-bottom: 1px dashed var(--cinnabar);
  padding-bottom: 0.15em;
  transition: opacity 0.25s ease;
}

.contact-email:hover {
  opacity: 0.7;
}

.btn-copy {
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45em 1.2em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-copy:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar-deep);
}

.btn-copy.is-copied {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-card);
}

.btn-copy.is-failed {
  border-color: var(--cinnabar);
  color: var(--cinnabar-deep);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-links a {
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.contact-links a::before {
  content: "◇ ";
  color: var(--cinnabar);
  font-size: 0.8em;
}

.contact-links a:hover {
  color: var(--cinnabar-deep);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 2.2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-text {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

/* ---------- 回到顶部 ---------- */

.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: rgba(250, 247, 238, 0.9);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease;
  box-shadow: var(--shadow-ink);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ink);
  color: var(--paper-card);
}

/* ---------- 滚动淡入动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint-line { animation: none; }
  .work-card.is-shown { animation: none; }
  .back-to-top { transition: none; }
}

/* ---------- 响应式 ---------- */

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

  .about-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .stat + .stat::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  /* 导航：窄屏仅留印章，5 个链接收紧为一行 */
  .nav-inner {
    height: 56px;
  }

  .nav-brand-text {
    display: none;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }

  /* Hero：缩小字号与字距，避免横向溢出 */
  .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
  }

  .hero-tagline {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero-actions {
    gap: 0.8rem;
  }

  .btn-ink {
    padding: 0.55em 1.6em;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

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

  .works-filter {
    gap: 0.6rem;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 0.3em 1.2em;
  }

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

  .about-portrait {
    max-width: 260px;
    margin: 0 auto;
  }

  .skill-group-title {
    text-align: center;
  }

  .skill-tags {
    justify-content: center;
  }

  /* 时间线：轴线贴左，年份进入卡片上方 */
  .timeline::before {
    left: 0.7rem;
  }

  .timeline-item {
    grid-template-columns: 1.5rem 1fr;
    column-gap: 0.9rem;
  }

  .timeline-year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding-top: 0;
    font-size: 1.2rem;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0.5rem;
  }

  .timeline-card {
    grid-column: 2;
    grid-row: 2;
    padding: 1rem 1.2rem;
  }

  .contact-links {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}
