:root {
  /* 可修改：蓝灰主题色集中配置 */
  --ink: #172432;
  --ink-soft: #2b3e50;
  --muted: rgba(35, 55, 73, 0.66);
  --paper: #e7edf2;
  --sand: #bccbd6;
  --sand-deep: #6f879b;
  --rose-light: #c9d8e5;
  --sky: #8ba4b8;
  --line: rgba(255, 255, 255, 0.32);
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.3);
  --dark-glass: rgba(23, 36, 50, 0.82);
  --metal: #aebfcb;
  --accent: #b8cee0;
  --radius: 34px;
  --radius-small: 22px;
  --shadow: 0 34px 90px rgba(31, 54, 73, 0.24);
  --soft-shadow: 0 18px 55px rgba(31, 54, 73, 0.15);
}

/* 可修改：经历作品预览的间距、尺寸与蓝灰配色 */
.timeline-item > div { min-width: 0; }
.experience-evidence { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(35,55,73,.2); }
.experience-evidence h4 { margin: 0 0 16px; font-size: 1.1rem; }
.evidence-link { display: inline-block; padding: 10px 0; color: var(--ink); font-weight: 600; text-underline-offset: 5px; }
.swimlane-preview { margin: 18px 0 0; }
.swimlane-preview figcaption { margin-bottom: 12px; font-weight: 600; }
.swimlane-preview small { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 4px; }
.swimlane-scroll { overflow-x: auto; border: 1px solid rgba(35,55,73,.22); border-radius: 12px; }
.swimlane-grid { display: grid; grid-template-columns: 125px repeat(3,minmax(175px,1fr)); min-width: 650px; font: 13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.swimlane-grid > * { padding: 15px 12px; border-bottom: 1px solid rgba(35,55,73,.13); }
.swimlane-grid > strong { background: #425d74; color: white; }
.swimlane-grid > b { background: rgba(255,255,255,.35); }
.swimlane-grid > :nth-last-child(-n+4) { border-bottom: 0; }
.system-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.system-links a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); padding: 12px 0; text-decoration: none; border-bottom: 1px solid rgba(35,55,73,.22); }
.system-links span,.sop-gallery span { font-size: .86rem; color: var(--ink-soft); }
.experience-evidence .evidence-note { font-size: .8rem; line-height: 1.7; color: var(--ink-soft); margin: 12px 0 20px; }
.sop-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
.sop-gallery a { display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--ink); }
.sop-gallery img { width: 100%; height: 215px; object-fit: contain; background: #fff; border-radius: 8px; padding: 8px; }
.sop-gallery strong { font-size: .95rem; }
.experience-evidence a:hover strong,.evidence-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.experience-evidence a:focus-visible,.swimlane-scroll:focus-visible { outline: 3px solid #425d74; outline-offset: 5px; }
@media(max-width:600px) {
  .system-links { grid-template-columns: 1fr; gap: 4px; }
  .sop-gallery { grid-template-columns: 1fr; }
  .sop-gallery img { height: 260px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(111, 135, 155, 0.92) 0%, rgba(180, 199, 214, 0.88) 24%, rgba(207, 219, 228, 0.94) 58%, #e7edf2 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

html:lang(zh-CN) body {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
}

html:lang(zh-CN) .site-nav,
html:lang(zh-CN) .lang-switch,
html:lang(zh-CN) .button,
html:lang(zh-CN) .eyebrow,
html:lang(zh-CN) h1,
html:lang(zh-CN) h2,
html:lang(zh-CN) h3,
html:lang(zh-CN) .hero-lines,
html:lang(zh-CN) .portrait-caption,
html:lang(zh-CN) .metric-card,
html:lang(zh-CN) .timeline,
html:lang(zh-CN) .skill-card,
html:lang(zh-CN) .detail-item,
html:lang(zh-CN) .highlight-item {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse at 68% 16%, rgba(226, 239, 248, 0.58), transparent 30%),
    linear-gradient(180deg, transparent 0 38%, rgba(74, 103, 127, 0.18) 39%, transparent 70%);
  pointer-events: none;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.dune {
  position: absolute;
  right: -12vw;
  left: -12vw;
  height: 34vh;
  background: linear-gradient(180deg, rgba(216, 229, 238, 0.8), rgba(96, 125, 148, 0.34));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  filter: blur(0.2px);
  transform-origin: center bottom;
}

.dune-one {
  bottom: -6vh;
  transform: rotate(-1deg);
}

.dune-two {
  bottom: 8vh;
  opacity: 0.62;
  transform: translateX(-8vw) rotate(2deg) scaleY(0.72);
}

.dune-three {
  bottom: 23vh;
  opacity: 0.36;
  transform: translateX(7vw) rotate(-2deg) scaleY(0.55);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 28px));
  min-height: 88px;
  margin: 14px auto 0;
  padding: 13px 16px 13px 20px;
  background: rgba(228, 237, 244, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(35, 55, 73, 0.12);
  backdrop-filter: blur(24px) saturate(1.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand-mark,
.nav-cta,
.icon-disc,
.mini-photo {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.brand-mark {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(58, 82, 102, 0.18));
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(23, 36, 50, 0.44);
}

.photo-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: 0 8px 22px rgba(35, 55, 73, 0.14);
}

.photo-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.28);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.04;
}

.brand strong {
  font-size: 1.22rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: rgba(23, 36, 50, 0.82);
  font-family: "Avenir Next", "Optima", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav a {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 28px rgba(73, 54, 48, 0.12);
  transform: translateY(-1px);
  backdrop-filter: blur(18px) saturate(1.2);
  outline: none;
}

.nav-cta {
  width: 56px;
  height: 56px;
  background: rgba(23, 36, 50, 0.86);
  color: white;
}

.nav-cta svg {
  width: 17px;
  height: 17px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 94px;
  height: 56px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(23, 36, 50, 0.72);
  font: inherit;
  font-family: "Avenir Next", "Optima", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.lang-switch span {
  display: grid;
  min-width: 40px;
  height: 43px;
  place-items: center;
  border-radius: 999px;
}

.lang-switch span.active {
  background: rgba(23, 36, 50, 0.84);
  color: white;
  box-shadow: 0 8px 20px rgba(73, 54, 48, 0.16);
}

.art-section,
.section,
.detail-page {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: clamp(42px, 7vw, 86px) 0 clamp(62px, 8vw, 104px);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(52, 77, 98, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 11vw, 9.6rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.86;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.4vw, 5.2rem);
  font-weight: 630;
  letter-spacing: 0;
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.18;
}

.hero-lines {
  display: grid;
  gap: 6px;
  max-width: 480px;
  color: rgba(23, 36, 50, 0.66);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.action-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(73, 54, 48, 0.1);
  backdrop-filter: blur(18px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.button.primary {
  background: rgba(23, 36, 50, 0.88);
  border-color: rgba(23, 36, 50, 0.3);
  color: white;
}

.button.icon-only {
  width: 46px;
  padding: 0;
}

.button svg,
.skill-card svg,
.highlight-item svg,
.icon-disc svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.22);
}

.dark-glass {
  background:
    linear-gradient(145deg, rgba(55, 78, 98, 0.66), rgba(88, 111, 130, 0.42)),
    rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.hero-stage {
  position: relative;
  min-height: 700px;
}

.portrait-device {
  position: absolute;
  right: -1%;
  top: 3%;
  width: min(420px, 72vw);
  height: 620px;
  overflow: hidden;
  padding: 18px;
  border-radius: 46px;
  z-index: 1;
}

.portrait-device::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 36px;
  pointer-events: none;
}

.portrait-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 32px;
  filter: saturate(0.92) contrast(0.97);
}

.portrait-caption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 5;
  display: grid;
  gap: 5px;
  padding: 18px;
  background: rgba(23, 36, 50, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.portrait-caption span {
  color: white;
  font-weight: 700;
}

.portrait-caption strong {
  font-size: 0.92rem;
  font-weight: 500;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 14px;
  width: 250px;
  min-height: 156px;
  padding: 21px;
}

.floating-card p {
  margin: 0;
  color: rgba(23, 36, 50, 0.72);
  font-size: 0.98rem;
  line-height: 1.3;
}

.dark-glass p {
  color: rgba(255, 255, 255, 0.86);
}

.card-one {
  top: 4%;
  left: -4%;
}

.card-two {
  top: 73%;
  left: -10%;
}

.card-three {
  top: 38%;
  left: 5%;
}

.mini-photo {
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
}

.mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.icon-disc {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.12));
  color: rgba(23, 36, 50, 0.78);
}

.dark-glass .icon-disc {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: clamp(74px, 10vw, 130px) 0;
}

.journey-panel {
  padding-top: clamp(34px, 6vw, 76px);
}

.snapshot-carousel {
  position: relative;
  min-height: 420px;
  margin-top: 6px;
}

.snapshot-viewport {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 44px;
  perspective: 1100px;
}

.snapshot-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.quiet-copy {
  max-width: 360px;
  color: var(--muted);
  font-size: 1.04rem;
}

.metric-grid,
.skill-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.snapshot-carousel .metric-grid {
  display: block;
}

.metric-card,
.skill-card,
.highlight-item,
.detail-item {
  border-radius: var(--radius);
}

.metric-card {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 26px;
}

.snapshot-carousel .metric-card {
  position: absolute;
  top: 24px;
  left: 50%;
  display: grid;
  align-content: end;
  width: min(520px, 72vw);
  min-height: 300px;
  padding: clamp(26px, 4vw, 38px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.72);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    filter 420ms ease;
  will-change: transform, opacity;
  overflow: hidden;
  isolation: isolate;
}

.snapshot-carousel .metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(180deg, rgba(228, 237, 244, 0.06) 5%, rgba(215, 227, 236, 0.7) 66%, rgba(213, 225, 234, 0.96) 100%);
  pointer-events: none;
}

.snapshot-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.62;
  filter: saturate(0.58) contrast(0.92);
  transition: opacity 420ms ease, filter 420ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.snapshot-carousel .metric-card[data-card-state="active"] .snapshot-image {
  opacity: 0.78;
  filter: saturate(0.72) contrast(0.96);
  transform: scale(1.025);
}

.snapshot-content {
  position: relative;
  z-index: 1;
  max-width: 330px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  background: rgba(229, 238, 245, 0.52);
  box-shadow: 0 14px 35px rgba(30, 51, 68, 0.14);
  backdrop-filter: blur(14px);
}

.snapshot-carousel .metric-card[data-card-state="active"] {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  filter: saturate(1.08);
  transform: translateX(-50%) translateY(0) scale(1);
}

.snapshot-carousel .metric-card[data-card-state="prev"] {
  z-index: 2;
  opacity: 0.72;
  filter: blur(0.2px) saturate(0.9);
  transform: translateX(calc(-50% - min(330px, 31vw))) translateY(26px) rotateY(10deg) scale(0.82);
}

.snapshot-carousel .metric-card[data-card-state="next"] {
  z-index: 2;
  opacity: 0.72;
  filter: blur(0.2px) saturate(0.9);
  transform: translateX(calc(-50% + min(330px, 31vw))) translateY(26px) rotateY(-10deg) scale(0.82);
}

.snapshot-carousel .metric-card[data-card-state="far"] {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) translateY(38px) scale(0.72);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 620;
  line-height: 0.9;
}

.snapshot-carousel .metric-card strong,
.snapshot-carousel .metric-card span {
  position: relative;
  z-index: 1;
}

.carousel-button {
  position: absolute;
  top: 154px;
  z-index: 8;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(23, 36, 50, 0.78);
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(73, 54, 48, 0.12);
  backdrop-filter: blur(18px);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.carousel-button svg {
  width: 19px;
  height: 19px;
}

.carousel-prev {
  left: clamp(8px, 9vw, 118px);
}

.carousel-next {
  right: clamp(8px, 9vw, 118px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 36, 50, 0.24);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.carousel-dot.active {
  width: 34px;
  background: rgba(23, 36, 50, 0.5);
}

.metric-card span,
.skill-card p,
.timeline-item p,
.detail-item p,
.highlight-item p {
  color: var(--muted);
}

.experience-kicker {
  margin: 7px 0 12px;
  color: var(--sand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-note {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.metric-card span,
.skill-card p {
  max-width: 260px;
  font-size: 0.98rem;
  line-height: 1.42;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 116px;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 10px 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-date {
  color: rgba(52, 77, 98, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.clean-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: rgba(23, 36, 50, 0.66);
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 16px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(184, 206, 224, 0.82);
}

.skill-card,
.highlight-item {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 26px;
}

/* 可修改：个人亮点卡片半透明白底 */
.highlight-item {
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  backdrop-filter: blur(18px) saturate(118%);
}

.skill-card h3,
.highlight-item h2 {
  font-size: 1.28rem;
}

.skill-card p {
  max-width: 220px;
  margin-bottom: 0;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto clamp(42px, 7vw, 84px);
  padding: clamp(28px, 5vw, 48px);
}

.contact-band h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 3.4rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.detail-page {
  padding: clamp(74px, 10vw, 130px) 0;
}

.page-hero {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 3.4rem);
  font-weight: 630;
  line-height: 1.06;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-item {
  padding: 26px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(24px);
}

.detail-item h2 {
  font-size: 1.28rem;
  line-height: 1.18;
}

.detail-item p {
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.68;
}

.detail-points {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 16px 0 0;
  padding: 0;
  color: rgba(23, 36, 50, 0.68);
  list-style: none;
}

.detail-points li {
  position: relative;
  padding-left: 18px;
  line-height: 1.56;
}

.detail-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 206, 224, 0.95);
  box-shadow: 0 0 18px rgba(184, 206, 224, 0.82);
}

.detail-points strong {
  color: rgba(25, 23, 22, 0.88);
  font-weight: 750;
}

.detail-points.compact {
  gap: 8px;
  margin-top: 8px;
}

.project-evidence {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(35, 55, 73, 0.16);
}

.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
}

.project-gallery figure {
  margin: 0;
}

.project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
}

.project-gallery figcaption {
  margin: 8px 2px 0;
  color: rgba(23, 36, 50, 0.65);
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.project-resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-resource:hover {
  background: rgba(255, 255, 255, 0.52);
  transform: translateY(-2px);
}

.project-resource:focus-visible {
  outline: 3px solid #425d74;
  outline-offset: 4px;
}

.project-resource svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.project-resource > span {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--ink);
}

.project-resource strong,
.project-resource small {
  display: block;
}

.project-resource small {
  color: rgba(23, 36, 50, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
}

.detail-item span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(91, 61, 52, 0.72);
  font-weight: 700;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: rgba(25, 23, 22, 0.55);
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto auto;
    border-radius: 30px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .nav-cta {
    justify-self: end;
  }

  .lang-switch {
    justify-self: end;
  }

  .hero,
  .split-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 720px;
  }

  .sticky-heading {
    position: static;
  }

  .metric-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot-carousel .metric-grid {
    display: block;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    top: 0;
    width: min(100% - 18px, 1180px);
    margin-top: 9px;
  }

  .site-nav {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5rem);
  }

  .hero-stage {
    min-height: 760px;
  }

  .portrait-device {
    right: 0;
    left: auto;
    width: 88%;
    height: 540px;
    margin: 0 auto;
  }

  .floating-card {
    width: min(248px, 72vw);
    min-height: 136px;
    padding: 18px;
  }

  .card-one {
    top: 0;
    left: 0;
  }

  .card-two {
    top: 78%;
    left: -4%;
  }

  .card-three {
    top: 39%;
    left: 8%;
  }

  .metric-grid,
  .skill-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery,
  .project-resources {
    grid-template-columns: 1fr;
  }

  .project-resource {
    min-height: 68px;
  }

  .snapshot-carousel .metric-grid {
    display: block;
  }

  .metric-card,
  .skill-card {
    min-height: 190px;
  }

  .snapshot-carousel {
    min-height: 390px;
  }

  .snapshot-viewport {
    height: 326px;
  }

  .snapshot-carousel .metric-card {
    top: 18px;
    width: min(330px, 78vw);
    min-height: 286px;
  }

  .snapshot-carousel .metric-card[data-card-state="prev"] {
    opacity: 0.48;
    transform: translateX(calc(-50% - 210px)) translateY(28px) scale(0.78);
  }

  .snapshot-carousel .metric-card[data-card-state="next"] {
    opacity: 0.48;
    transform: translateX(calc(-50% + 210px)) translateY(28px) scale(0.78);
  }

  .carousel-button {
    top: 142px;
    width: 42px;
    height: 42px;
  }

  .timeline {
    padding: 4px 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .button {
    min-width: 0;
  }

  .contact-actions .button {
    flex: 1 1 140px;
  }

  .site-footer {
    flex-direction: column;
  }
}
