:root {
  --paper: #f4f1ea;
  --ink: #171614;
  --muted: #76716a;
  --line: rgba(23, 22, 20, 0.14);
  --panel: #fffaf1;
  --green: #1d5d48;
  --rose: #d56b63;
  --gold: #ddb15b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(244, 241, 234, 0.82);
  border-bottom: 1px solid rgba(23, 22, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.intro-strip,
.availability,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 13px;
}

.nav-links {
  gap: 8px;
  padding: 5px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
  background: #fff;
}

.section {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 96px) clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: 44px;
  min-height: calc(100vh - 76px);
  padding-top: clamp(72px, 9vw, 116px);
}

.eyebrow {
  margin: 0 0 22px;
  color: #1d5d48;
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(54px, 9.4vw, 136px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-meta {
  display: grid;
  gap: 28px;
  padding-bottom: 100px;
}

.hero-meta p {
  margin: 0;
  color: #171614;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 2;
}

.pill-link,
.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  min-height: 54px;
  padding: 0 22px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.intro-strip {
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip p {
  margin: 0;
  color: rgb(71, 67, 67);
}

.availability {
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #25a86a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(37, 168, 106, 0.15);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
  padding-top: 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  /* text-transform: uppercase; */
}

.section-heading span{
  font-size: 40px;
  color: black;}

.work-section {
  padding-bottom: 40px;
}

.project {
  display: grid;
  gap: 18px;
}

.project-large {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 36px;
}

.project-visual {
  display: grid;
  min-height: 460px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(23, 22, 20, 0.1);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 22, 20, 0.12);
}

.rush {
  background:
    radial-gradient(circle at 20% 20%, rgba(221, 177, 91, 0.55), transparent 28%),
    linear-gradient(135deg, #a9c7b2, #efe0bb 54%, #d58f77);
}

.ember {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(135deg, #e37f65, #f1c47c);
}

.atlas {
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, #274e5c, #6aa180 55%, #ead587);
}

.browser-frame {
  width: min(82%, 760px);
  background: #fffaf4;
  border: 1px solid rgba(23, 22, 20, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 22, 20, 0.22);
}

.browser-bar {
  display: flex;
  gap: 7px;
  height: 36px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(23, 22, 20, 0.1);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0c7b9;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 70px 1fr 190px;
  gap: 18px;
  min-height: 310px;
  padding: 22px;
}

.side-rail,
.chart-card,
.metric-stack,
.phone-mock,
.ai-panel {
  background: rgba(23, 22, 20, 0.05);
  border: 1px solid rgba(23, 22, 20, 0.08);
}

.side-rail {
  border-radius: 8px;
}

.chart-card {
  position: relative;
  min-height: 245px;
  border-radius: 8px;
}

.chart-line {
  position: absolute;
  inset: 34px 28px 96px;
  border-bottom: 4px solid var(--green);
  border-left: 4px solid var(--green);
  transform: skewY(-10deg);
}

.bars {
  position: absolute;
  inset: auto 28px 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 90px;
}

.bars i {
  display: block;
  height: 42%;
  background: var(--gold);
  border-radius: 8px 8px 3px 3px;
}

.bars i:nth-child(2) {
  height: 72%;
}

.bars i:nth-child(3) {
  height: 54%;
}

.bars i:nth-child(4) {
  height: 88%;
}

.bars i:nth-child(5) {
  height: 66%;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
}

.metric-stack b {
  font-size: 32px;
}

.metric-stack span {
  color: var(--muted);
  font-size: 13px;
}

.project-info h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.project-info p {
  max-width: 520px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.project-info span {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.project-grid .project-visual {
  min-height: 420px;
}

.phone-mock {
  width: 210px;
  height: 380px;
  padding: 28px 18px;
  background: #fffaf4;
  border-radius: 34px;
  box-shadow: 0 26px 62px rgba(23, 22, 20, 0.24);
}

.phone-top {
  width: 72px;
  height: 8px;
  margin: 0 auto 34px;
  background: rgba(23, 22, 20, 0.18);
  border-radius: 999px;
}

.phone-card {
  height: 142px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), #93b486);
}

.phone-row {
  height: 18px;
  margin-bottom: 13px;
  background: rgba(23, 22, 20, 0.1);
  border-radius: 999px;
}

.phone-row.short {
  width: 68%;
}

.ai-panel {
  display: grid;
  place-items: center;
  width: min(72%, 420px);
  min-height: 300px;
  padding: 30px;
  background: rgba(255, 250, 244, 0.88);
  border-radius: 8px;
  box-shadow: 0 26px 62px rgba(23, 22, 20, 0.2);
}

.prompt-line {
  width: 100%;
  height: 18px;
  background: rgba(23, 22, 20, 0.12);
  border-radius: 999px;
}

.prompt-line.small {
  width: 60%;
}

.orbital {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 24px 0;
  border: 1px solid rgba(23, 22, 20, 0.18);
  border-radius: 50%;
}

.orbital span {
  position: absolute;
  width: 38px;
  height: 38px;
  background: var(--rose);
  border-radius: 50%;
}

.orbital span:nth-child(1) {
  top: 18px;
  left: 54px;
}

.orbital span:nth-child(2) {
  right: 8px;
  bottom: 36px;
  background: var(--gold);
}

.orbital span:nth-child(3) {
  left: 12px;
  bottom: 30px;
  background: var(--green);
}

.services {
  padding-top: 52px;
}

/* .service-list {
  display: grid;
  border-top: 1px solid var(--line);
} */

/* .service-list>div {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
} */

/* .service-list h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
} */

/* .service-list p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
} */

.contact {
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: start;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 980px;
  margin: 0 0 34px;
  font-size: clamp(48px, 9vw, 118px);
  line-height: 0.96;
  letter-spacing: 0;
}

.email-button small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .project-large,
  .project-grid,
  .service-list>div 
  {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100vh;
  }

  .intro-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-visual,
  .project-grid .project-visual {
    min-height: 340px;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .side-rail,
  .metric-stack {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .browser-frame {
    width: 90%;
  }

  .phone-mock {
    transform: scale(0.86);
  }

  .email-button {
    width: 100%;
  }
}

/* --- 让 p5.js 动画固定在背景 --- */
canvas {
  position: fixed !important;
  /* 固定在视口 */
  top: 0;
  left: 0;
  width: 100vw !important;
  /* 强制占满宽 */
  height: 100vh !important;
  /* 强制占满高 */
  z-index: -1;
  /* 沉到最底层 */
  pointer-events: none;
  /* 让鼠标点击穿透，不影响你点击网页上的链接 */
  display: block;
}
/* === 强制把 hero 内容提上去 === */


.hero-section {
    height: auto !important;      /* 【关键】强制去掉固定高度 */
    min-height: 0 !important;     /* 去掉最小高度 */
    padding-top: 0 !important;    /* 去掉顶部间距 */
    padding-bottom: 0 !important; /* 去掉底部间距 */
    position: relative;
}

/* 把个人档案 + 照片 + 文字 整体往上挪 */
.hero-copy {
    position: relative;
    top: -120px !important;  
}

.portrait {
    width: 100%;           /* 宽度适应容器 */
    max-width: 480px;      /* 限制最大宽度（防止图片撑爆） */
    height: auto;          /* 保持比例 */
    display: block;        /* 独占一行 */
    margin: 300px 100px 0 100px;  /* 水平居中 + 底部留点空隙 */
    border-radius: 10px;   /* 加个圆角，更好看 */
}


.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 关键：让视频铺满且不拉伸 */
    border-radius: 12px; /* 和卡片圆角保持一致 */
    display: block;
}

/* 如果你希望鼠标悬停时有缩放效果，可以去掉 video 的 pointer-events */
.project-video {
    /* pointer-events: none;  */
}

/* 整体布局：左侧标题 + 右侧列表 */
#about.section.services {
    display: flex;
    gap: 60px;
    padding: 80px 40px;
    align-items: flex-start;
}

/* 左侧：标题区域 */
#about .section-heading {
    flex: 1;
    max-width: 300px;
}

#about .section-heading h2 {
    font-size: 48px; /* 字体大小按你喜欢调整 */
    font-weight: 700;
    margin: 0;
    line-height: 2;
    color: black;
}

#about .section-number {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

/* 右侧：列表区域 */
#about .service-list {
    flex: 2;
}

/* 单个列表项 */
.service-item {
    padding: 32px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* 分隔线 */
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.service-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 响应式：手机屏幕变成一列 */
@media (max-width: 768px) {
    #about.section.services {
        flex-direction: column;
        padding: 40px 20px;
    }
    #about .section-heading {
        max-width: 100%;
    }
}