:root {
  --color-bg: #0a0a0c;
  --color-bg-2: #111114;
  --color-bg-3: #16161b;
  --color-line: #1c1c22;
  --color-line-2: #2a2a33;
  --color-fg: #e6e6ea;
  --color-muted: #9a9aa3;
  --color-dim: #5c5c66;
  --color-accent: #00e5ff;
  --color-accent-rgb: 0, 229, 255;
  --color-accent-2: #ff2e88;
  --color-on-accent: #001a1f;
  --card-bg: rgba(15, 15, 22, 0.55);
  --card-bg-strong: rgba(15, 15, 22, 0.75);
  --card-border: var(--color-line-2);
  --watermark-color: rgba(255, 255, 255, 0.025);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
  --font-display: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --color-bg: #f5f2ec;
  --color-bg-2: #fff;
  --color-bg-3: #ecead9;
  --color-line: #1a1612;
  --color-line-2: #d8d4cb;
  --color-fg: #1a1612;
  --color-muted: #6e675c;
  --color-dim: #a39d92;
  --color-accent: #1a1612;
  --color-accent-2: #1a1612;
  --color-on-accent: #f5f2ec;
  --card-bg: #fff;
  --card-bg-strong: #fff;
  --card-border: #1a1612;
  --watermark-color: rgba(26, 22, 18, 0.03);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--color-fg);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 56px 56px;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.home-page {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

body.project-detail-body {
  background-color: #000;
}

.project-detail-body .page-bg {
  display: none;
}

[data-theme="light"] body {
  background-image: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  background-image: repeating-linear-gradient(rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

[data-theme="light"] body::before {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.mono-label,
.hud-top,
.hud-bottom,
.cta,
.work-head,
.theme-toggle,
.timeline time,
.contact-strip {
  font-family: var(--font-mono);
}

.content-block {
  position: relative;
  z-index: 5;
}

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.home-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  transform: scale(1.02);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 5, 0.6), rgba(3, 3, 5, 0.18) 42%, rgba(3, 3, 5, 0.06) 76%),
    linear-gradient(0deg, rgba(3, 3, 5, 0.7), rgba(3, 3, 5, 0.08) 48%, rgba(3, 3, 5, 0.18));
}

[data-theme="light"] .home-cover {
  filter: grayscale(0.1) contrast(0.9) brightness(1.35);
}

[data-theme="light"] .cover-shade {
  background:
    linear-gradient(90deg, rgba(245, 242, 236, 0.95), rgba(245, 242, 236, 0.68) 44%, rgba(245, 242, 236, 0.2)),
    linear-gradient(0deg, rgba(245, 242, 236, 0.88), transparent 48%);
}

.hud-top,
.hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(24px, 5vw, 80px);
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hud-top {
  top: 0;
  padding-top: 22px;
}

.hud-bottom {
  bottom: 0;
  padding-bottom: 60px;
}

[data-theme="light"] .hud-top,
[data-theme="light"] .hud-bottom {
  color: rgba(26, 22, 18, 0.68);
}

.hud-id,
.hud-date,
.hud-nav,
.hud-bottom a {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.hud-date {
  color: rgba(255, 255, 255, 0.46);
}

.hud-nav {
  gap: clamp(18px, 4vw, 44px);
}

.hud-nav a,
.hud-bottom a {
  transition: color 0.25s ease;
}

.hud-nav a:hover,
.hud-bottom a:hover {
  color: var(--color-accent);
}

.hud-bottom span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hud-dot,
.t-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.muted {
  opacity: 0.42;
}

.hero-copy {
  width: min(820px, calc(100% - 48px));
  margin-left: clamp(30px, 4.7vw, 80px);
  padding-top: 80vh;
  transform: translateY(-13%);
}

.index-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
}

.index-line span,
.hud-bottom i {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
}

.display-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(3.1rem, 4.9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

[data-theme="light"] .display-title {
  color: var(--color-fg);
}

.hero-subtitle {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.48em;
}

.hero-desc {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.9;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-desc {
  color: rgba(26, 22, 18, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.cta,
.theme-toggle {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.cta {
  position: relative;
  display: inline-flex;
  min-width: 205px;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  letter-spacing: 0.26em;
  backdrop-filter: blur(8px);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cta i {
  color: var(--color-accent);
  font-style: normal;
}

.cta b {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.cta-primary {
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  background: var(--color-accent);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.cta-primary i {
  color: var(--color-on-accent);
}

.cta:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.34);
}

.page-section {
  position: relative;
  width: min(1300px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(76px, 10vw, 130px) clamp(0px, 2vw, 24px);
}

.page-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 229, 255, 0.12), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(255, 46, 136, 0.08), transparent 28%);
  filter: blur(18px);
  transform: translateX(-50%);
}

.section-title {
  max-width: 840px;
  margin-bottom: clamp(44px, 8vw, 78px);
}

.inner-page {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin-inline: auto;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 58px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-line-2);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.page-nav a {
  transition: color 0.2s ease;
}

.page-nav a:hover {
  color: var(--color-accent);
}

.page-section-first {
  padding-top: 58px;
}

.inner-page .page-section {
  width: 100%;
  padding-inline: 0;
}

.inner-page .section-title h1,
.about-hero h1 {
  margin: 0;
  color: var(--color-fg);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.05em;
}

.about-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 1.15;
}

.about-hero h1 span {
  color: var(--color-accent);
}

.back-home {
  display: inline-flex;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.mono-label {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: var(--color-fg);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 8.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.05em;
}

.section-title p:not(.mono-label) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.85;
}

.ai-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-flow-intro {
  margin: 10px 0 38px;
  color: var(--color-muted);
}

.ai-flow-intro header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.24);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.ai-flow-intro header div {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.ai-flow-intro b {
  color: var(--color-accent);
  font-weight: 500;
}

.ai-flow-intro em,
.ai-flow-intro strong {
  color: rgba(255, 255, 255, 0.38);
  font-style: normal;
  font-weight: 400;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.72);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex: 0 0 auto;
}

.ai-flow-intro p {
  max-width: none;
  margin: 34px 0 0;
  color: rgba(230, 230, 234, 0.7);
  font-size: 17px;
  line-height: 1.9;
}

.ai-flow-intro p span {
  color: var(--color-accent);
}

.corner-frame {
  position: relative;
}

.corner-frame::before,
.corner-frame::after,
.corner-frame > .cf-tr,
.corner-frame > .cf-br {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  content: "";
  border: 1px solid var(--color-accent);
  opacity: 0.7;
}

.corner-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.corner-frame::after {
  bottom: -1px;
  left: -1px;
  border-top: 0;
  border-right: 0;
}

.corner-frame > .cf-tr {
  top: -1px;
  right: -1px;
  border-bottom: 0;
  border-left: 0;
}

.corner-frame > .cf-br {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.ai-steps article {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--color-line-2);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(0, 229, 255, 0.06);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.45s ease;
}

.ai-steps article:hover {
  border-color: rgba(var(--color-accent-rgb), 0.35);
  background: var(--card-bg-strong);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.18),
    0 18px 48px rgba(0, 229, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.42);
  transform: translateY(-6px);
}

.ai-steps header,
.work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-steps b,
.work-head span {
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.3em;
}

.ai-steps i {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.5);
  background: transparent;
  color: rgba(var(--color-accent-rgb), 0.5);
  font-size: 0;
  font-style: normal;
  overflow: hidden;
  transform: rotate(45deg);
  transition: transform 0.6s ease, color 0.4s ease, border-color 0.4s ease;
}

.ai-steps article:hover i {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: rotate(225deg);
}

.ai-steps h3 {
  margin: 28px 0 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
}

[data-theme="light"] .ai-steps h3 {
  color: var(--color-fg);
}

.ai-steps p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.ai-steps footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.ai-steps footer span {
  padding: 6px 9px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(32px, 7vw, 82px);
  align-items: start;
}

.inner-page .work-grid {
  gap: 64px 40px;
}

.work-card.is-offset {
  margin-top: 70px;
}

.work-card {
  position: relative;
}

.work-card-link {
  display: block;
}

.work-head {
  margin-bottom: 13px;
}

.work-head time {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  letter-spacing: 0.3em;
}

[data-theme="light"] .work-head time {
  color: rgba(26, 22, 18, 0.45);
}

.work-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-line-2);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 36%),
    linear-gradient(315deg, rgba(255, 46, 136, 0.16), transparent 40%),
    var(--color-bg-2);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.45s ease,
    filter 0.3s ease;
}

.work-cover::before {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.14) 49%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.12) 49%, transparent 51%);
  transform: skew(-8deg);
}

.work-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-cover:has(> img)::before {
  display: none;
}

.project-cta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  height: 60px;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  color: var(--color-accent);
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.7);
  background: rgba(3, 6, 10, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-cta span,
.project-cta em {
  flex: 0 0 auto;
}

.project-cta i {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(var(--color-accent-rgb), 0.82);
}

.project-cta em {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

.work-cover b {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.work-card:hover .work-cover {
  border-color: var(--color-accent);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.22),
    0 22px 64px rgba(0, 229, 255, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.58);
  filter: saturate(1.18);
  transform: translateY(-8px) scale(1.025);
}

.work-card:hover .project-cta {
  transform: translateY(0);
}

.work-cover-a { background-color: #0d1518; }
.work-cover-b { background-color: #15101a; }
.work-cover-c { background-color: #101816; }
.work-cover-d { background-color: #151515; }
.work-cover-e { background-color: #0d121a; }
.work-cover-f { background-color: #17130f; }
.work-cover-g { background-color: #101217; }
.work-cover-h { background-color: #121017; }

.work-card h3 {
  margin: 18px 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.work-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

[data-theme="light"] .work-card h3 {
  color: var(--color-fg);
}

[data-theme="light"] .work-card p {
  color: rgba(26, 22, 18, 0.58);
}

.detail-page {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin-inline: auto;
  padding: 72px 0 76px;
}

.detail-nav,
.detail-footer,
.related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  letter-spacing: 0.34em;
}

.detail-nav {
  padding-bottom: 60px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.detail-nav a,
.related-head a,
.detail-footer a {
  transition: color 0.25s ease;
}

.detail-nav a:hover,
.related-head a:hover,
.detail-footer a:hover {
  color: var(--color-accent);
}

.project-hero {
  padding-bottom: 40px;
}

.project-kicker {
  margin: 0 0 26px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.36em;
}

.project-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--color-fg);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  max-width: 980px;
  margin: 30px 0 30px;
}

.project-meta span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.38em;
}

.project-meta strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.detail-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line-2);
  background: var(--card-bg);
}

.detail-image img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.detail-image:hover img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.project-story {
  max-width: 1180px;
  padding-bottom: 40px;
}

.section-mark {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.38em;
}

.section-mark span {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}

.project-story > p:not(.section-mark) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: 0.06em;
}

.project-gallery {
  display: grid;
  gap: 34px;
  padding-bottom: 110px;
}

.related-section {
  padding: 0 0 68px;
}

.related-head {
  margin-bottom: 34px;
}

.related-head .section-mark {
  margin: 0;
}

.related-head a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.related-card {
  display: block;
}

.related-card figure {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--color-line-2);
  background: var(--card-bg);
}

.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.related-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.related-card h2 {
  margin: 0 0 10px;
  color: var(--color-fg);
  font-size: 16px;
  font-weight: 400;
}

.related-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.detail-footer {
  padding-top: 34px;
  border-top: 1px solid var(--color-line-2);
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.65fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  margin-bottom: clamp(64px, 10vw, 110px);
}

.about-hero p {
  max-width: 680px;
 
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.9;
}

.profile-card {
  padding: 26px;
  border: 1px solid var(--color-line-2);
  background: var(--card-bg-strong);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.45s ease;
}

.profile-card:hover {
  border-color: var(--color-accent);
  background: rgba(7, 14, 22, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.24),
    0 18px 48px rgba(0, 229, 255, 0.12);
  transform: translateY(-6px);
}

.profile-card:hover::before,
.profile-card:hover::after,
.profile-card:hover > .cf-tr,
.profile-card:hover > .cf-br {
  opacity: 1;
}

.profile-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 0;
}

.profile-card div {
  display: contents;
}

.profile-card dt,
.profile-card dd {
  padding: 13px 0;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}

.profile-card dt {
  color: var(--color-muted);
}

.profile-card dd {
  margin: 0;
  text-align: right;
  color: var(--color-fg);
}

.module-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.module-title span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.module-title b {
  font-weight: 500;
}

.module-title em {
  color: rgba(255, 255, 255, 0.36);
  font-style: normal;
}

.resume-module,
.skills-module,
.scan-module {
  margin-top: clamp(72px, 10vw, 120px);
}

.resume-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.resume-list {
  display: grid;
  gap: 0;
}

.resume-list button {
  display: grid;
  grid-template-columns: 16px 78px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-bottom-color: var(--color-line);
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  background: rgba(8, 10, 14, 0.46);
  font-family: var(--font-mono);
  text-align: left;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-list button:hover {
  background: var(--card-bg-strong);
  border-color: rgba(var(--color-accent-rgb), 0.35);
  transform: translate(3px);
}

.resume-list button.is-active {
  border: 1px solid var(--color-accent);
  color: var(--color-fg);
  background: rgba(0, 229, 255, 0.1);
}

.resume-list i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
}

.resume-list .is-active i {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
}

.resume-list b,
.resume-list small,
.resume-list strong,
.resume-list em {
  display: block;
  font-style: normal;
  font-weight: 400;
}

.resume-list small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
}

.resume-list strong {
  font-family: var(--font-sans);
  font-size: 15px;
}

.resume-detail {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--color-line-2);
  background: linear-gradient(135deg, rgba(10, 12, 18, 0.92), rgba(14, 16, 24, 0.72));
}

.resume-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.resume-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.meta-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.72);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.resume-detail time {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.resume-detail h2 {
  margin: 20px 0 18px;
  font-size: 30px;
  font-weight: 400;
}

.resume-detail p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.9;
}

.resume-detail footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.resume-detail footer span {
  padding: 7px 10px;
  border: 1px solid var(--color-line-2);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.skills-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.skills-track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: skill-scroll 28s linear infinite;
}

.skills-marquee:hover .skills-track {
  animation-play-state: paused;
}

.skills-track article {
  display: grid;
  grid-template-columns: 42px max-content;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 150px;
}

.skills-track i,
.skills-track img {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  background: #111827;
}

.skills-track img {
  display: block;
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.skills-track strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 400;
}

.skills-track small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
}

.icon-ps { color: #31a8ff !important; background: #001e36 !important; }
.icon-ai { color: #ff9a00 !important; background: #330000 !important; }
.icon-fg { background: #242938 !important; }
.icon-c4d { background: #10345b !important; }
.icon-ae { color: #b292ff !important; background: #1f1147 !important; }
.icon-gpt { color: #ff7b54 !important; background: #2a1512 !important; }
.icon-md { color: #f8fafc !important; background: #3439a8 !important; }
.icon-html { color: #00e5ff !important; background: #0a1c24 !important; }
.icon-js { color: #f7df1e !important; background: #1f1c00 !important; }

.scan-card {
  padding: 18px 18px 0;
  border: 1px solid var(--color-line-2);
  background: rgba(10, 12, 18, 0.76);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.45s ease;
}

.scan-card:hover {
  border-color: var(--color-accent);
  background: rgba(7, 14, 22, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.24),
    0 18px 48px rgba(0, 229, 255, 0.12);
  transform: translateY(-6px);
}

.scan-card:hover::before,
.scan-card:hover::after,
.scan-card:hover > .cf-tr,
.scan-card:hover > .cf-br {
  opacity: 1;
}

.scan-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.34);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.scan-card:hover img {
  transform: scale(1.02);
}

.scan-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.24);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scan-head span {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.scan-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.72);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.scan-head em {
  color: rgba(255, 255, 255, 0.42);
  font-style: normal;
}

.scan-card figcaption {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
}

.scan-card figcaption span {
  width: 34px;
  height: 1px;
  background: var(--color-accent);
}

@keyframes skill-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.about-panel {
  align-self: start;
  padding: 32px;
  border: 1px solid var(--color-line-2);
  background: var(--card-bg-strong);
}

.about-panel h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
}

.about-panel p,
.about-panel li,
.timeline p {
  color: var(--color-muted);
  line-height: 1.82;
}

.about-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.about-panel li {
  border-top: 1px solid var(--color-line-2);
  padding-top: 12px;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--color-line-2);
  border: 1px solid var(--color-line-2);
}

.timeline article {
  padding: 24px 26px;
  background: var(--color-bg);
}

.timeline time {
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.timeline h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 400;
}

.timeline p {
  margin: 0;
  font-size: 14px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  width: min(1300px, calc(100% - 40px));
  margin: 0 auto 42px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line-2);
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.inner-page .contact-strip {
  width: 100%;
  margin-top: 76px;
  margin-bottom: 0;
}

.inner-footer {
  display: flex;
  justify-content: space-between;
  padding: 34px 0 48px;
  border-top: 1px solid var(--color-line-2);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.contact-strip p {
  margin: 0;
  color: var(--color-accent);
}

.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--card-border);
  color: var(--color-fg);
  cursor: pointer;
  background: var(--card-bg-strong);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.32);
  transform: translateY(-2px);
}

.t-icon {
  color: var(--color-accent);
}

.t-label {
  font-size: 10px;
  letter-spacing: 0.28em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-transition,
.theme-transition * {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .hud-nav {
    display: none;
  }

  .hero-copy {
    padding-top: 42vh;
    transform: none;
  }

  .ai-steps,
  .work-grid,
  .about-grid,
  .about-hero,
  .resume-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .work-card.is-offset {
    margin-top: 0;
  }

  .detail-page {
    width: min(1200px, calc(100% - 40px));
    padding-top: 52px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-grid {
    gap: 42px;
  }

  .resume-list {
    grid-template-columns: 1fr;
  }

  .ai-flow-intro header,
  .ai-flow-intro header div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.78);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
    box-shadow: 0 0 4px rgba(0, 229, 255, 0.32);
  }
}

@media (max-width: 640px) {
  .hud-top,
  .hud-bottom {
    padding-inline: 20px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .hud-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-copy {
    width: calc(100% - 40px);
    margin-left: 20px;
    padding-top: 38vh;
  }

  .display-title {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .hero-subtitle {
    letter-spacing: 0.18em;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-actions {
    gap: 12px;
  }

  .cta {
    width: 100%;
  }

  .page-section {
    width: min(100% - 28px, 1300px);
  }

  .detail-page {
    width: min(1200px, calc(100% - 28px));
    padding-bottom: 48px;
  }

  .detail-nav,
  .detail-footer,
  .related-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .project-hero h1 {
    font-size: clamp(3.4rem, 14vw, 5rem);
  }

  .project-story > p:not(.section-mark) {
    font-size: 1.5rem;
  }

  .project-gallery {
    gap: 20px;
    padding-bottom: 70px;
  }

  .section-title h2 {
    font-size: clamp(3.4rem, 17vw, 5.6rem);
  }

  .ai-steps article,
  .about-panel {
    padding: 24px;
  }

  .contact-strip {
    width: min(100% - 28px, 1300px);
    padding-bottom: 88px;
  }

  .resume-list button {
    grid-template-columns: 14px 70px 1fr auto;
  }

  .resume-detail {
    padding: 22px;
  }

  .resume-meta {
    flex-direction: column;
    gap: 8px;
  }

  .skills-track {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
