:root {
  --bg: #050711;
  --bg-deep: #02040a;
  --text: #f8f7ff;
  --muted: rgba(248, 247, 255, 0.62);
  --faint: rgba(248, 247, 255, 0.38);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --card-bg: rgba(255, 255, 255, 0.1);
  --blue: #27a7ff;
  --cyan: #3ce6ff;
  --red: #ff455c;
  --orange: #ff8c3a;
  --violet: #9b6cff;
  --case-accent: var(--blue);
  --nav-h: 72px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(39, 167, 255, 0.24), transparent 26vw),
    radial-gradient(circle at 84% 16%, rgba(155, 108, 255, 0.22), transparent 28vw),
    linear-gradient(135deg, #050816 0%, #080613 42%, #17041f 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 84px);
  background-size: 130px 130px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(39, 167, 255, 0.09), transparent 32%, rgba(255, 69, 92, 0.08) 72%, transparent),
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(60, 230, 255, 0.12), transparent 32vw);
  background-size: 180% 180%, auto;
  animation: backgroundFlow 18s ease-in-out infinite alternate;
  pointer-events: none;
}

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

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

button {
  font: inherit;
}

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

h1 {
  margin-bottom: 30px;
  font-size: clamp(56px, 8.5vw, 126px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6.5vw, 92px);
  line-height: 0.98;
  font-weight: 820;
}

h3 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.04;
}

h4 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
}

.pointer-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 167, 255, 0.2), rgba(155, 108, 255, 0.08) 42%, transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 36px), 1180px);
  min-height: var(--nav-h);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 20, 29, 0.78), rgba(5, 8, 13, 0.62));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  white-space: nowrap;
}

.brand-text {
  position: relative;
  font-size: clamp(20px, 1.72vw, 28px);
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-text::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  z-index: -1;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: translateY(-50%);
}

.brand-sub {
  color: var(--faint);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-link {
  min-width: 68px;
  padding: 14px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-link.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 69, 92, 0.38), rgba(255, 69, 92, 0.14));
  box-shadow: 0 12px 36px rgba(255, 69, 92, 0.16);
}

.section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 68px) 24px 104px;
  overflow: hidden;
}

.section-screen {
  display: grid;
  align-items: center;
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.glass-card,
.info-grid div,
.case-panel,
.split-showcase,
.other-grid,
.detail-info-card,
.detail-meta span,
.slide-card {
  border: 0;
  background: var(--card-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 16, 0.68), rgba(6, 8, 24, 0.2) 46%, rgba(19, 4, 26, 0.62)),
    url("assets/bg-cover.webp") center / cover no-repeat;
  opacity: 0.72;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 64%, rgba(5, 7, 17, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 24px);
  mix-blend-mode: screen;
  opacity: 0.34;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 74px;
  color: rgba(255, 255, 255, 0.62);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 700;
}

.timeline span {
  width: min(26vw, 300px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.spaced {
  color: rgba(60, 230, 255, 0.82);
  letter-spacing: 0.36em;
}

.hero h1 {
  max-width: 980px;
  color: #fff;
  font-size: clamp(54px, 6.55vw, 92px);
  line-height: 1.04;
  text-shadow: 0 0 36px rgba(39, 167, 255, 0.18);
}

.role {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(22px, 2.48vw, 34px);
}

.role strong {
  color: var(--red);
  font-weight: 650;
}

.play-dot {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: url("assets/hero-play.png") center / 72% no-repeat;
  box-shadow: none;
  animation: iconFade 2.8s ease-in-out infinite;
}

.contact-lines {
  display: grid;
  gap: 14px;
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.8vw, 25px);
}

.hero-panel {
  position: relative;
  padding: 34px;
  border-radius: 8px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 48%, rgba(255, 69, 92, 0.08));
  pointer-events: none;
}

.panel-kicker {
  position: relative;
  color: rgba(255, 255, 255, 0.56);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.hero-number {
  position: relative;
  margin: 18px 0 12px;
  color: var(--red);
  font-size: clamp(96px, 12vw, 156px);
  font-weight: 880;
  line-height: 0.85;
}

.hero-panel p {
  position: relative;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.ability-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.ability-list span {
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--card-bg);
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translateX(-50%);
  animation: floatCue 1.8s ease-in-out infinite, iconFade 3s ease-in-out infinite;
  transition: border-color 0.24s ease, transform 0.24s ease;
}

.scroll-cue span {
  display: block;
  width: 12px;
  height: 12px;
  margin: -3px 0 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.scroll-cue:hover {
  border-color: rgba(255, 69, 92, 0.72);
  transform: translateX(-50%) translateY(-3px);
}

.profile {
  background:
    radial-gradient(circle at 24% 24%, rgba(39, 167, 255, 0.18), transparent 34vw),
    linear-gradient(115deg, rgba(4, 23, 57, 0.58), rgba(32, 7, 51, 0.42));
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 58px;
}

.avatar {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 20px 70px rgba(39, 167, 255, 0.2);
}

.profile-line h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  font-size: clamp(42px, 4.15vw, 58px);
  line-height: 1.06;
}

.profile-line h3 span {
  display: inline-flex;
  align-items: center;
  padding-left: 0;
  border-left: 0;
  color: var(--red);
  font-size: 0.72em;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.profile-line p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.profile-stack {
  display: grid;
  gap: 30px;
}

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

.info-grid div {
  min-width: 0;
  height: 126px;
  display: grid;
  align-content: center;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.info-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--faint);
}

.info-grid strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(18px, 1.72vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-grid div:nth-child(4) strong {
  font-size: clamp(17px, 1.55vw, 22px);
}

.career-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 224px;
  padding-top: 0;
}

.career-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 90px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24));
}

.career-node {
  position: relative;
  display: grid;
  grid-template-rows: 82px 32px 1fr;
  padding-right: 32px;
}

.career-node + .career-node {
  padding-left: 32px;
  padding-right: 0;
}

.career-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.company-logo {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.22));
  animation: iconFade 3.2s ease-in-out infinite;
}

.career-brand h4 {
  margin: 0;
  min-width: 0;
  font-size: clamp(23px, 2.18vw, 30px);
  line-height: 1.08;
  white-space: nowrap;
}

.career-brand h4 span {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.78em;
  font-weight: 500;
  color: var(--muted);
}

.career-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  align-self: start;
  margin-left: 31px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
}

.career-dot.is-active {
  width: 24px;
  height: 24px;
  margin-top: -4px;
  margin-left: 27px;
  border: 5px solid var(--orange);
  background: transparent;
}

.career-detail {
  padding-top: 22px;
}

.career-detail strong {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(23px, 2.05vw, 29px);
  line-height: 1.2;
  white-space: nowrap;
}

.career-detail span {
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(24px, 2.2vw, 31px);
}

.contents {
  background: #050909;
}

.contents-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.96), rgba(4, 8, 14, 0.66) 52%, rgba(3, 7, 12, 0.92)),
    linear-gradient(180deg, rgba(3, 7, 12, 0.42), rgba(3, 7, 12, 0.94)),
    url("assets/ai-pet-widget.webp") center / cover no-repeat;
  opacity: 0.86;
}

.contents-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(39, 167, 255, 0.22), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.046) 0 1px, transparent 1px 18px);
  mix-blend-mode: screen;
  opacity: 0.36;
}

.contents-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(58px, 7vw, 118px);
  align-items: center;
}

.folio-count {
  margin-bottom: 28px;
  color: var(--blue);
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  font-weight: 800;
}

.contents-heading h2 {
  margin-bottom: 34px;
  max-width: 460px;
  font-size: clamp(56px, 6.7vw, 94px);
  line-height: 0.96;
}

.blue-stroke {
  display: block;
  width: 104px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), rgba(255, 140, 58, 0.92));
  box-shadow: 0 0 22px rgba(255, 69, 92, 0.35);
}

.work-list {
  display: grid;
  align-self: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 64px;
  gap: 20px;
  align-items: center;
  min-height: 150px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 80%) var(--my, 50%), rgba(39, 167, 255, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(39, 167, 255, 0.14), rgba(255, 255, 255, 0.015));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.work-row:hover {
  border-color: rgba(60, 230, 255, 0.42);
}

.work-row:hover::before {
  opacity: 1;
}

.work-index,
.work-main,
.work-arrow {
  position: relative;
  z-index: 1;
}

.work-index {
  color: rgba(255, 255, 255, 0.42);
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  font-weight: 700;
}

.work-main strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.08vw, 44px);
  line-height: 1.16;
}

.work-main em {
  color: rgba(255, 255, 255, 0.46);
  font-family: Consolas, "Courier New", monospace;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.work-arrow {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 30px;
  transition: transform 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.work-row:hover .work-arrow {
  transform: rotate(45deg);
  border-color: rgba(255, 69, 92, 0.7);
  color: #fff;
}

.contents-hint {
  grid-column: 2;
  justify-self: end;
  width: min(100%, 470px);
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.8;
  text-align: right;
}

.projects {
  padding-top: 120px;
}

.section-title {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.project-block {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 58px);
  align-items: center;
  padding: 78px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.project-block.reverse {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
}

.project-block.reverse .project-copy {
  order: 2;
}

.project-block.reverse .image-cluster {
  order: 1;
}

.project-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.project-copy {
  min-width: 0;
}

.project-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.9;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 30px;
}

.metric-row span {
  min-width: 0;
  min-height: 92px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: var(--card-bg);
  overflow: hidden;
}

.metric-row strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: clamp(25px, 2.35vw, 36px);
  line-height: 1;
  white-space: nowrap;
}

#project-eco .metric-row strong {
  font-size: clamp(23px, 2.1vw, 33px);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 850;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.detail-link:hover {
  background: rgba(255, 69, 92, 0.22);
  box-shadow: 0 18px 46px rgba(255, 69, 92, 0.16);
  transform: translateY(-2px);
}

.image-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.74fr);
  gap: 18px;
  align-items: center;
  align-content: center;
  min-height: clamp(280px, 30vw, 390px);
}

.image-cluster img,
.split-showcase img,
.other-grid img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.36);
}

.image-cluster img {
  height: clamp(190px, 22vw, 300px);
  object-fit: contain;
  transition: transform 0.36s ease, border-color 0.36s ease, box-shadow 0.36s ease, filter 0.36s ease;
}

.image-cluster img:nth-child(2) {
  transform: translateY(38px);
}

#project-core .image-cluster,
#project-eco .image-cluster {
  grid-template-columns: 1fr;
  gap: 14px;
}

#project-core .image-cluster img,
#project-eco .image-cluster img {
  height: clamp(124px, 13.5vw, 184px);
}

#project-core .image-cluster img:nth-child(2),
#project-eco .image-cluster img:nth-child(2) {
  transform: none;
}

#project-core:hover .image-cluster img:first-child,
#project-eco:hover .image-cluster img:first-child {
  transform: translateY(-4px);
}

#project-core:hover .image-cluster img:nth-child(2),
#project-eco:hover .image-cluster img:nth-child(2) {
  transform: translateY(4px);
}

#project-wallpaper .image-cluster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  min-height: clamp(230px, 25vw, 340px);
}

#project-wallpaper .image-cluster img {
  height: auto;
  object-fit: contain;
}

#project-wallpaper .image-cluster img:nth-child(2) {
  transform: none;
}

#project-wallpaper:hover .image-cluster img:first-child {
  transform: translateY(-4px);
}

#project-wallpaper:hover .image-cluster img:nth-child(2) {
  transform: translateY(4px);
}

#project-ai .image-cluster {
  grid-template-columns: minmax(0, 1.08fr) minmax(178px, 0.74fr);
}

#project-ai .image-cluster img:first-child {
  height: clamp(158px, 16.5vw, 218px);
}

#project-ai .image-cluster img:nth-child(2) {
  height: clamp(238px, 24vw, 324px);
}

.project-block:hover .image-cluster img {
  border-color: rgba(60, 230, 255, 0.28);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
  filter: saturate(1.06) contrast(1.03);
}

.project-block:hover .image-cluster img:first-child {
  transform: translateY(-8px);
}

.project-block:hover .image-cluster img:nth-child(2) {
  transform: translateY(24px) scale(1.018);
}

#project-core:hover .image-cluster img:first-child,
#project-eco:hover .image-cluster img:first-child {
  transform: translateY(-4px);
}

#project-core:hover .image-cluster img:nth-child(2),
#project-eco:hover .image-cluster img:nth-child(2) {
  transform: translateY(4px);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 4px 0 34px;
}

.case-panel {
  min-height: 180px;
  padding: 26px;
  border-radius: 8px;
}

.case-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.85;
}

.split-showcase,
.other-grid,
.thanks-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: center;
  padding: 44px;
  border-radius: 8px;
}

.split-showcase p,
.ability-copy p,
.thanks-layout p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.85;
}

.other {
  min-height: auto;
  padding-bottom: 124px;
}

.other-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.ability-copy h3 {
  font-size: clamp(42px, 6vw, 78px);
}

.thanks {
  min-height: 78vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(39, 167, 255, 0.14), transparent 34vw),
    linear-gradient(180deg, transparent, rgba(7, 18, 54, 0.68));
}

.thanks-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.thanks-layout h2 {
  margin-bottom: 14px;
  font-size: clamp(64px, 9vw, 128px);
}

.thanks-layout img {
  width: min(100%, 320px);
  justify-self: end;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.detail-body {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(5, 10, 27, 0.98), rgba(16, 5, 28, 0.98)),
    var(--bg);
}

.detail-side-nav {
  position: fixed;
  top: 132px;
  left: 22px;
  z-index: 24;
  width: 158px;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(7, 11, 22, 0.66);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.detail-side-nav::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--case-accent) 22%, transparent), transparent 58%);
  opacity: 0.72;
}

.side-back,
.detail-side-nav button {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.side-back {
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
}

.side-title {
  padding: 9px 4px 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.detail-side-nav button:hover,
.detail-side-nav button.is-active,
.side-back:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--case-accent) 58%, white 10%);
  background: color-mix(in srgb, var(--case-accent) 18%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--case-accent) 20%, transparent);
}

.detail-body::before {
  background:
    linear-gradient(90deg, rgba(3, 6, 16, 0.88), rgba(3, 6, 16, 0.68)),
    var(--detail-cover, none) center / cover no-repeat;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 80%);
}

.detail-shell {
  padding: 126px 24px 76px 196px;
}

.detail-hero,
.detail-tabs,
.case-story,
.detail-content,
.slide-stage {
  scroll-margin-top: 126px;
}

.detail-hero {
  width: min(100%, var(--max));
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  gap: 40px;
  align-items: end;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-bottom: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.22s ease, background 0.22s ease;
}

.back-link:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.detail-hero h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(46px, 5.7vw, 82px);
  line-height: 1.02;
}

.mobile-title-break {
  display: none;
}

.detail-hero p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-meta span {
  min-height: 122px;
  padding: 18px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.detail-meta strong {
  display: block;
  margin-bottom: 8px;
  color: var(--case-accent);
  font-size: 34px;
  line-height: 1;
}

.detail-tabs {
  width: min(100%, var(--max));
  margin: 0 auto 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.detail-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.detail-tab:hover,
.detail-tab.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--case-accent) 72%, white 12%);
  background: color-mix(in srgb, var(--case-accent) 24%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--case-accent) 24%, transparent);
}

.case-story {
  width: min(100%, var(--max));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  min-height: 460px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--case-accent) 14%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.story-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: visible;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.story-index {
  display: block;
  margin-bottom: 18px;
  color: var(--case-accent);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 850;
}

.story-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.story-copy p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.72;
}

.story-copy ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.story-copy li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.46;
}

.story-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--case-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--case-accent) 70%, transparent);
}

.story-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.story-media.media-stack {
  grid-template-columns: 1fr;
  align-content: center;
}

.story-media.media-mixed {
  grid-template-columns: minmax(0, 1.14fr) minmax(220px, 0.86fr);
}

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

.story-media figure {
  --visual-ratio: 4 / 3;
  --media-pad: 14px;
  --media-pad-total: 28px;
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: var(--visual-ratio);
  min-height: 0;
  align-self: center;
  justify-self: stretch;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--case-accent) 18%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.story-panorama {
  --visual-ratio: 3.05 / 1;
}

.story-wide {
  --visual-ratio: 16 / 9;
}

.story-fit {
  --visual-ratio: 4 / 3;
}

.story-square {
  --visual-ratio: 1 / 1;
}

.story-phone {
  --visual-ratio: 86 / 100;
  width: auto;
  max-width: 100%;
  height: min(30vw, 360px);
  justify-self: center;
}

.story-tall,
.story-doc {
  --visual-ratio: 58 / 100;
  width: auto;
  max-width: 100%;
  height: min(39vw, 468px);
  justify-self: center;
}

.media-stack .story-wide {
  --visual-ratio: 2.05 / 1;
}

.media-stack .story-fit {
  --visual-ratio: 1.62 / 1;
}

.media-mixed .story-panorama,
.media-mixed .story-wide,
.media-mixed .story-fit {
  align-self: center;
}

.media-phones .story-tall,
.media-phones .story-phone {
  max-height: 468px;
}

.story-media img {
  position: absolute;
  inset: var(--media-pad);
  width: calc(100% - var(--media-pad-total));
  height: calc(100% - var(--media-pad-total));
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.story-phone img,
.story-tall img,
.story-doc img {
  width: calc(100% - var(--media-pad-total));
  height: calc(100% - var(--media-pad-total));
  max-width: none;
  max-height: none;
}

.story-media figcaption {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(12px);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
}

.detail-content {
  width: min(100%, var(--max));
  margin: 0 auto 44px;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail-info-card {
  position: relative;
  min-height: 232px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(150deg, rgba(35, 43, 66, 0.88), rgba(22, 15, 34, 0.84)),
    rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.detail-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--case-accent) 24%, transparent), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.detail-info-card:hover,
.detail-info-card.is-active {
  border-color: color-mix(in srgb, var(--case-accent) 50%, white 8%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32), inset 0 0 0 1px color-mix(in srgb, var(--case-accent) 24%, transparent);
}

.detail-info-card:hover::before,
.detail-info-card.is-active::before {
  opacity: 0.55;
}

.detail-info-card span,
.detail-info-card h2,
.detail-info-card p {
  position: relative;
  z-index: 1;
}

.detail-info-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--case-accent);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 850;
}

.detail-info-card h2 {
  margin-bottom: 16px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.2;
}

.detail-info-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.72;
}

.slide-stage {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.slide-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 14px 0 28px;
  scrollbar-width: none;
}

.slide-strip::-webkit-scrollbar {
  display: none;
}

.slide-card {
  --slide-width: min(66vw, 760px);
  --slide-height: clamp(390px, 54vh, 580px);
  --slide-pad-x: 22px;
  --slide-pad-x-total: 44px;
  --slide-pad-top: 46px;
  --slide-pad-bottom: 22px;
  --slide-pad-y-total: 68px;
  position: relative;
  flex: 0 0 var(--slide-width);
  margin: 0;
  height: var(--slide-height);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: center;
  background:
    linear-gradient(145deg, rgba(42, 50, 76, 0.82), rgba(22, 13, 34, 0.86)),
    rgba(255, 255, 255, 0.045);
}

.slide-panorama {
  --slide-width: min(86vw, 1080px);
  --slide-height: clamp(270px, 30vw, 390px);
}

.slide-wide {
  --slide-width: min(78vw, 960px);
  --slide-height: clamp(340px, 42vw, 520px);
}

.slide-fit,
.slide-square {
  --slide-width: min(62vw, 700px);
}

.slide-phone,
.slide-tall,
.slide-doc {
  --slide-width: min(44vw, 480px);
}

.slide-card img {
  position: absolute;
  left: var(--slide-pad-x);
  right: var(--slide-pad-x);
  top: var(--slide-pad-top);
  bottom: var(--slide-pad-bottom);
  width: calc(100% - var(--slide-pad-x-total));
  height: calc(100% - var(--slide-pad-y-total));
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.slide-phone img,
.slide-tall img,
.slide-doc img {
  width: calc(100% - var(--slide-pad-x-total));
  height: calc(100% - var(--slide-pad-y-total));
  max-width: none;
  max-height: none;
}

.slide-panorama img,
.slide-wide img,
.slide-fit img,
.slide-square img {
  max-width: 100%;
}

.slide-caption {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(12px);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
}

.slide-controls {
  width: min(100%, var(--max));
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.slide-buttons {
  display: flex;
  gap: 12px;
}

.slide-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.slide-button:hover {
  border-color: color-mix(in srgb, var(--case-accent) 64%, white 12%);
  background: color-mix(in srgb, var(--case-accent) 18%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--case-accent) 18%, transparent);
}

.slide-progress {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.slide-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--case-accent), var(--cyan));
}

.slide-count {
  min-width: 74px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Consolas, "Courier New", monospace;
  text-align: right;
}

.detail-note {
  width: min(100%, var(--max));
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.76s ease var(--reveal-delay, 0ms), transform 0.76s ease var(--reveal-delay, 0ms);
}

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

@keyframes floatCue {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -8px);
  }
}

@keyframes iconFade {
  0%,
  100% {
    opacity: 0.82;
  }

  50% {
    opacity: 1;
  }
}

@keyframes backgroundFlow {
  from {
    background-position: 0% 44%;
  }

  to {
    background-position: 100% 65%;
  }
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), 720px);
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 13px;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-link {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }

  .section {
    padding-top: 154px;
  }

  .detail-shell {
    padding: 148px 18px 132px;
  }

  .detail-side-nav {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding: 10px;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .detail-side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-title {
    display: none;
  }

  .side-back,
  .detail-side-nav button {
    white-space: nowrap;
  }

  .hero-grid,
  .profile-layout,
  .contents-layout,
  .project-block,
  .project-block.reverse,
  .split-showcase,
  .other-grid,
  .thanks-layout,
  .detail-hero,
  .case-story,
  .story-media {
    grid-template-columns: 1fr;
  }

  .project-block.reverse .project-copy,
  .project-block.reverse .image-cluster {
    order: initial;
  }

  .contents-hint {
    grid-column: auto;
    justify-self: start;
    text-align: left;
  }

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

  .case-story {
    height: auto;
    min-height: 0;
  }

  .story-media figure {
    min-height: 0;
  }

  .slide-card {
    --slide-width: min(84vw, 760px);
  }

  .slide-panorama {
    --slide-width: min(88vw, 840px);
    --slide-height: clamp(240px, 38vw, 360px);
  }

  .slide-phone,
  .slide-tall,
  .slide-doc {
    --slide-width: min(58vw, 460px);
  }

  .thanks-layout img {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 16px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .spaced {
    letter-spacing: 0.18em;
  }

  .timeline {
    margin-bottom: 46px;
  }

  .role {
    align-items: flex-start;
    font-size: 24px;
  }

  .play-dot {
    width: 52px;
    height: 52px;
  }

  .contact-lines {
    margin-top: 44px;
  }

  .hero-panel {
    padding: 26px;
  }

  .profile-line {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
  }

  .info-grid,
  .career-timeline,
  .case-grid,
  .metric-row,
  .image-cluster,
  .detail-meta,
  .detail-section-grid {
    grid-template-columns: 1fr;
  }

  .info-grid div {
    height: auto;
    min-height: 116px;
  }

  .career-timeline {
    gap: 14px;
    min-height: 0;
  }

  .career-timeline::before {
    display: none;
  }

  .career-node,
  .career-node + .career-node {
    grid-template-rows: auto;
    gap: 16px;
    padding: 20px;
    border-left: 3px solid var(--orange);
    background: rgba(255, 255, 255, 0.045);
  }

  .career-dot {
    display: none;
  }

  .career-detail {
    padding-top: 0;
  }

  .career-brand h4 {
    font-size: 28px;
  }

  .company-logo {
    width: 54px;
    height: 54px;
  }

  .work-row {
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    gap: 12px;
    min-height: 132px;
  }

  .work-row:hover {
    transform: none;
  }

  .work-main strong {
    font-size: clamp(25px, 8vw, 34px);
  }

  .work-main em {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .work-arrow {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  .project-block {
    padding: 54px 0;
  }

  .metric-row span {
    min-height: 82px;
  }

  .image-cluster img:nth-child(2),
  .project-block:hover .image-cluster img:first-child,
  .project-block:hover .image-cluster img:nth-child(2) {
    transform: none;
  }

  .split-showcase,
  .other-grid,
  .thanks-layout {
    padding: 24px;
  }

  .detail-shell {
    padding: 136px 14px 132px;
  }

  .mobile-title-break {
    display: block;
  }

  .detail-meta span {
    min-height: 104px;
  }

  .slide-strip {
    padding-inline: 6px;
  }

  .slide-card {
    --slide-width: calc(100vw - 42px);
    --slide-height: min(112vw, 520px);
    --slide-pad-x: 12px;
    --slide-pad-x-total: 24px;
    --slide-pad-top: 44px;
    --slide-pad-bottom: 16px;
    --slide-pad-y-total: 60px;
  }

  .slide-panorama {
    --slide-width: calc(100vw - 42px);
    --slide-height: min(56vw, 260px);
  }

  .slide-wide {
    --slide-width: calc(100vw - 42px);
    --slide-height: min(76vw, 360px);
  }

  .slide-phone,
  .slide-tall,
  .slide-doc {
    --slide-width: min(86vw, 360px);
    --slide-height: min(132vw, 560px);
  }

  .story-copy {
    padding: 18px;
  }

  .story-media figure {
    height: auto;
    min-height: 0;
  }

  .detail-info-card {
    height: auto;
    min-height: 214px;
  }

  .story-media {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 84%);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .story-media::-webkit-scrollbar {
    display: none;
  }

  .story-media figure {
    scroll-snap-align: start;
  }

  .story-panorama {
    --visual-ratio: 2.15 / 1;
  }

  .story-wide,
  .media-stack .story-wide {
    --visual-ratio: 1.62 / 1;
  }

  .story-phone {
    --visual-ratio: 0.76 / 1;
  }

  .story-tall,
  .story-doc {
    --visual-ratio: 0.58 / 1;
  }

  .slide-caption {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    white-space: normal;
  }

  .slide-controls {
    padding-inline: 2px;
  }
}

/* Rebuilt flat project detail pages */
.detail-flat-shell {
  padding: 126px clamp(24px, 4vw, 58px) 86px 286px;
}

.detail-flat-shell .detail-hero,
.detail-chapter {
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--card-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.detail-flat-shell .detail-hero {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 10px;
  align-items: center;
}

.detail-flat-shell .back-link {
  display: none;
}

.detail-flat-shell .back-link:hover {
  background: rgba(255, 69, 92, 0.2);
}

.detail-flat-shell .detail-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 4.7vw, 66px);
  line-height: 1.08;
}

.detail-flat-shell .detail-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-flat-shell .detail-meta span {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

.detail-flat-shell .detail-meta strong {
  color: var(--red);
}

.detail-side-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

.detail-side-nav::before {
  display: none;
}

.side-back,
.detail-side-nav button {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

.detail-side-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.detail-side-nav button.is-active,
.side-back:hover {
  color: #fff;
  background: rgba(255, 69, 92, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 69, 92, 0.18);
}

.detail-chapters {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 42px;
}

.detail-chapter {
  scroll-margin-top: 126px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 10px;
  overflow: clip;
}

.detail-chapter-copy {
  max-width: 860px;
  margin-bottom: 24px;
}

.detail-chapter-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.detail-chapter-copy h2 {
  max-width: 900px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.06;
}

.detail-chapter-copy p {
  max-width: 830px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.85;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.detail-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.detail-figure:first-child {
  grid-column: 1 / -1;
}

.detail-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.detail-figure:hover img {
  transform: scale(1.025);
}

@media (max-width: 900px) {
  .detail-flat-shell {
    padding: 148px 18px 132px;
  }

  .detail-flat-shell .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-image-grid {
    grid-template-columns: 1fr;
  }

  .detail-figure {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .detail-flat-shell {
    padding: 136px 14px 132px;
  }

  .detail-chapter {
    padding: 18px;
  }
}

/* Second pass: unified red editorial system */
body {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 69, 92, 0.14), transparent 28vw),
    radial-gradient(circle at 82% 18%, rgba(144, 72, 255, 0.16), transparent 30vw),
    linear-gradient(135deg, #050711 0%, #080614 48%, #15041d 100%);
}

body::after {
  background:
    linear-gradient(100deg, rgba(255, 69, 92, 0.08), transparent 34%, rgba(255, 140, 58, 0.065) 76%, transparent),
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(255, 69, 92, 0.12), transparent 32vw);
}

.pointer-glow {
  background: radial-gradient(circle, rgba(255, 69, 92, 0.2), rgba(255, 140, 58, 0.075) 42%, transparent 68%);
}

.spaced {
  color: rgba(255, 69, 92, 0.9);
  text-shadow: 0 0 18px rgba(255, 69, 92, 0.24);
}

.nav-link:focus,
.detail-side-nav button:focus,
.side-back:focus,
.work-row:focus,
.detail-link:focus {
  outline: none;
}

.nav-link:focus-visible,
.detail-side-nav button:focus-visible,
.side-back:focus-visible,
.work-row:focus-visible,
.detail-link:focus-visible {
  outline: 1px solid rgba(255, 69, 92, 0.72);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 69, 92, 0.12);
}

.section,
.profile,
.contents,
.projects,
.other,
.thanks {
  background: transparent;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.84), rgba(10, 7, 24, 0.22) 46%, rgba(22, 4, 29, 0.72)),
    url("assets/bg-cover.webp") center / cover no-repeat;
  opacity: 0.58;
}

.profile-layout {
  grid-template-columns: 1fr;
  gap: 24px;
}

.profile-main {
  max-width: 780px;
}

.profile-main h2 {
  margin-bottom: 0;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.profile-line {
  margin-top: 0;
  gap: 22px;
}

.avatar {
  width: clamp(118px, 9.8vw, 136px);
  height: clamp(118px, 9.8vw, 136px);
}

.profile-line h3 {
  font-size: clamp(42px, 4vw, 56px);
}

.profile-line h3 span {
  font-size: 0.68em;
}

.profile-line p {
  max-width: 380px;
  font-size: clamp(16px, 1.45vw, 18px);
}

.profile-stack {
  gap: 0;
}

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

.career-timeline {
  min-height: 178px;
  padding-top: 0;
}

.career-timeline::before {
  top: 82px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 69, 92, 0.72), rgba(255, 255, 255, 0.16));
}

.career-node {
  grid-template-rows: 74px 28px 1fr;
}

.company-logo {
  width: 58px;
  height: 58px;
}

.career-brand {
  gap: 16px;
}

.career-brand h4 {
  font-size: clamp(22px, 2vw, 28px);
}

.career-brand h4 span {
  font-size: 0.74em;
}

.career-detail {
  padding-top: 18px;
}

.career-detail strong {
  font-size: clamp(21px, 1.75vw, 26px);
}

.career-detail span {
  font-size: clamp(22px, 1.9vw, 28px);
}

.career-dot {
  background: rgba(10, 7, 24, 0.92);
}

.career-dot.is-active {
  border-color: var(--orange);
  background: rgba(10, 7, 24, 0.92);
}

.contents-bg {
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.97), rgba(7, 7, 14, 0.74) 52%, rgba(3, 7, 12, 0.95)),
    linear-gradient(180deg, rgba(4, 5, 10, 0.46), rgba(4, 5, 10, 0.95)),
    url("assets/ai-pet-widget.webp") center / cover no-repeat;
}

.contents-bg::after {
  background:
    linear-gradient(90deg, rgba(255, 69, 92, 0.16), transparent 34%, rgba(255, 140, 58, 0.1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.044) 0 1px, transparent 1px 18px);
}

.folio-count {
  color: var(--red);
}

.work-row::before {
  background:
    radial-gradient(circle at var(--mx, 80%) var(--my, 50%), rgba(255, 69, 92, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(255, 69, 92, 0.16), rgba(255, 140, 58, 0.035));
}

.work-row:hover {
  border-color: rgba(255, 69, 92, 0.46);
}

.work-row:hover .work-index,
.work-row:hover .work-main em {
  color: rgba(255, 140, 58, 0.82);
}

.work-arrow:hover,
.work-row:hover .work-arrow {
  border-color: rgba(255, 69, 92, 0.78);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 69, 92, 0.22), 0 0 36px rgba(255, 69, 92, 0.18);
}

.section-title-major {
  max-width: 980px;
  margin-bottom: 54px;
}

.section-title-major h2 {
  font-size: clamp(54px, 7vw, 104px);
}

.other-title .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.other-grid {
  align-items: center;
}

.ability-copy .eyebrow {
  color: var(--red);
}

.detail-body {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 69, 92, 0.12), transparent 28vw),
    radial-gradient(circle at 82% 12%, rgba(144, 72, 255, 0.14), transparent 30vw),
    linear-gradient(135deg, #050711 0%, #080614 50%, #15041d 100%);
}

.detail-side-nav {
  width: 188px;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.08);
}

.detail-side-nav button {
  min-height: 40px;
  border-radius: 12px;
  padding: 8px 12px;
}

.detail-side-nav button:hover {
  background: rgba(255, 69, 92, 0.16);
}

.detail-side-nav button.is-active {
  background: linear-gradient(90deg, rgba(255, 69, 92, 0.42), rgba(255, 140, 58, 0.16));
  box-shadow: inset 3px 0 0 var(--red), 0 16px 34px rgba(255, 69, 92, 0.14);
}

.detail-chapters {
  gap: 34px;
}

.detail-chapter {
  padding: clamp(24px, 3vw, 38px);
}

.detail-image-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-figure,
.detail-figure:first-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: clamp(10px, 1vw, 14px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.detail-figure:hover img {
  transform: none;
}

@media (max-width: 1100px) {
  .profile-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .profile-band {
    padding: 22px;
  }

  .profile-line {
    align-items: flex-start;
  }

  .career-timeline {
    grid-template-columns: 1fr;
  }

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

/* Third pass: restore original palette and Figma-like resume page */
body {
  background:
    radial-gradient(circle at 16% 14%, rgba(39, 167, 255, 0.22), transparent 26vw),
    radial-gradient(circle at 84% 16%, rgba(155, 108, 255, 0.22), transparent 28vw),
    linear-gradient(135deg, #050816 0%, #080613 42%, #17041f 100%);
}

body::after {
  background:
    linear-gradient(100deg, rgba(39, 167, 255, 0.09), transparent 32%, rgba(155, 108, 255, 0.1) 72%, transparent),
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(60, 230, 255, 0.12), transparent 32vw);
}

.pointer-glow {
  background: radial-gradient(circle, rgba(39, 167, 255, 0.2), rgba(155, 108, 255, 0.08) 42%, transparent 68%);
}

.spaced {
  color: rgba(60, 230, 255, 0.82);
  text-shadow: 0 0 18px rgba(60, 230, 255, 0.2);
}

.profile {
  background:
    radial-gradient(circle at 18% 28%, rgba(39, 167, 255, 0.16), transparent 34vw),
    radial-gradient(circle at 76% 28%, rgba(155, 108, 255, 0.16), transparent 34vw),
    linear-gradient(115deg, rgba(4, 23, 57, 0.5), rgba(32, 7, 51, 0.42));
}

.profile-layout {
  width: min(calc(100% - 64px), 1500px);
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.8vw, 48px);
  align-content: center;
}

.profile-main {
  max-width: 980px;
}

.profile-main h2 {
  margin-bottom: 16px;
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.02;
}

.profile-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.2;
}

.profile-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.2vw, 42px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-info-row {
  display: grid;
  grid-template-columns: minmax(500px, 0.86fr) 1px minmax(0, 1.14fr);
  gap: clamp(28px, 3.2vw, 58px);
  align-items: center;
}

.profile-divider {
  width: 1px;
  height: 124px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.46), transparent);
}

.profile-line {
  gap: clamp(26px, 3.2vw, 48px);
}

.avatar {
  width: clamp(124px, 10.2vw, 154px);
  height: clamp(124px, 10.2vw, 154px);
}

.profile-line h3 {
  gap: clamp(24px, 3vw, 52px);
  margin-bottom: 16px;
  font-size: clamp(40px, 3.6vw, 62px);
  font-weight: 520;
}

.profile-line h3 span {
  color: var(--red);
  font-size: 0.86em;
  font-weight: 480;
}

.profile-line p {
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(20px, 1.85vw, 30px);
  line-height: 1.3;
}

.profile .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.profile .info-grid div {
  height: auto;
  min-height: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.profile .info-grid span {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 1.5vw, 24px);
}

.profile .info-grid strong,
.profile .info-grid div:nth-child(4) strong {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 430;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
}

.profile .info-grid div:nth-child(4) strong {
  font-size: clamp(16px, 1.28vw, 20px);
  white-space: nowrap;
  overflow-wrap: normal;
}

.profile .career-timeline {
  min-height: 170px;
  padding-top: 0;
}

.profile .career-timeline::before {
  top: 86px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.72));
}

.profile .career-node {
  grid-template-rows: 84px 28px 1fr;
}

.profile .career-node + .career-node {
  padding-left: clamp(28px, 4vw, 62px);
}

.profile .company-logo {
  width: 64px;
  height: 64px;
}

.profile .career-brand h4 {
  font-size: clamp(25px, 2.5vw, 36px);
}

.profile .career-brand h4 span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78em;
}

.profile .career-detail strong {
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 470;
}

.profile .career-detail span {
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(24px, 2.2vw, 32px);
}

.profile-app-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 4vw, 70px);
  align-items: start;
}

.profile-app-strip > div {
  position: relative;
  min-width: 0;
}

.profile-app-strip > div + div::before {
  content: "";
  position: absolute;
  left: calc(clamp(34px, 4vw, 70px) / -2);
  top: 0;
  bottom: -10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.app-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.app-icons img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.app-icons .app-logo-sogou {
  width: 70px;
  height: 70px;
  margin-inline: -10px -7px;
}

.app-icons .app-logo-getapps {
  width: 52px;
  height: 52px;
  margin-inline: 1px;
}

.profile-app-strip p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(17px, 1.6vw, 24px);
}

.contents-bg {
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.82), rgba(9, 10, 20, 0.5) 52%, rgba(3, 7, 12, 0.78)),
    linear-gradient(180deg, rgba(4, 5, 10, 0.2), rgba(4, 5, 10, 0.66)),
    url("assets/ai-pet-widget.webp") center / cover no-repeat;
  opacity: 0.94;
}

.contents-bg::after {
  background:
    linear-gradient(90deg, rgba(39, 167, 255, 0.2), transparent 36%, rgba(155, 108, 255, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.046) 0 1px, transparent 1px 18px);
  opacity: 0.54;
}

.detail-body {
  background:
    radial-gradient(circle at 14% 14%, rgba(39, 167, 255, 0.16), transparent 28vw),
    radial-gradient(circle at 82% 12%, rgba(155, 108, 255, 0.18), transparent 30vw),
    linear-gradient(135deg, #050816 0%, #080613 44%, #17041f 100%);
}

.detail-side-nav {
  width: 226px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.side-project {
  display: grid;
  gap: 7px;
  padding: 12px 8px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-kicker {
  color: rgba(255, 69, 92, 0.9);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.side-project strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.38;
}

.side-list {
  display: grid;
  gap: 8px;
}

.detail-side-nav button {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 14px;
  padding: 11px 12px;
  text-align: left;
}

.side-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.07);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 850;
}

.side-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.side-text strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.22;
}

.side-text em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.detail-side-nav button:hover {
  background: linear-gradient(90deg, rgba(255, 69, 92, 0.18), rgba(255, 140, 58, 0.08)), rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.detail-side-nav button.is-active {
  background: linear-gradient(100deg, rgba(255, 69, 92, 0.42), rgba(255, 140, 58, 0.18)), rgba(255, 255, 255, 0.09);
  box-shadow: inset 3px 0 0 var(--red), 0 16px 34px rgba(255, 69, 92, 0.14);
}

.detail-side-nav button.is-active .side-index {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-side-nav button.is-active .side-text strong,
.detail-side-nav button.is-active .side-text em {
  color: #fff;
}

.detail-return {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 56px 24px 18px;
  text-align: center;
}

.detail-return p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 16px;
}

.detail-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 69, 92, 0.32), rgba(255, 140, 58, 0.14)), rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.detail-return-button::after {
  content: "->";
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  line-height: 1;
}

.detail-return-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 69, 92, 0.42), rgba(255, 140, 58, 0.18)), rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 52px rgba(255, 69, 92, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

@media (max-width: 1100px) {
  .profile-info-row {
    grid-template-columns: 1fr;
  }

  .profile-divider {
    display: none;
  }

  .profile .info-grid,
  .profile-app-strip {
    grid-template-columns: 1fr;
  }

  .profile-app-strip > div + div::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .profile-line {
    flex-direction: row;
    align-items: center;
  }

  .profile-line h3 {
    gap: 12px;
    font-size: 38px;
  }

  .profile-line p,
  .profile .info-grid span,
  .profile .info-grid strong {
    font-size: 18px;
  }

  .profile .info-grid div {
    display: grid;
    gap: 6px;
  }
}

/* Final background unification: keep the original dark tech palette continuous across the homepage. */
html {
  background: #050816;
}

body {
  background:
    radial-gradient(circle at 16% 12%, rgba(18, 88, 145, 0.34), transparent 34vw),
    radial-gradient(circle at 82% 18%, rgba(91, 50, 132, 0.36), transparent 36vw),
    radial-gradient(circle at 54% 78%, rgba(36, 18, 76, 0.34), transparent 42vw),
    linear-gradient(135deg, #041121 0%, #080817 44%, #17051f 100%);
  background-attachment: fixed;
}

body::after {
  background:
    linear-gradient(100deg, rgba(39, 167, 255, 0.07), transparent 34%, rgba(155, 108, 255, 0.08) 72%, transparent),
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(60, 230, 255, 0.1), transparent 32vw);
}

main,
.section,
.hero,
.profile,
.contents,
.projects,
.other,
.thanks {
  background: transparent !important;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(4, 9, 21, 0.56), rgba(7, 8, 25, 0.16) 48%, rgba(25, 5, 31, 0.48)),
    url("assets/bg-cover.webp") center / cover no-repeat;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
}

.hero-bg::after {
  background:
    linear-gradient(180deg, transparent 0 72%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 24px);
}

.contents-bg {
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.18), rgba(9, 10, 20, 0.08) 52%, rgba(3, 7, 12, 0.18)),
    linear-gradient(180deg, transparent, rgba(4, 5, 10, 0.12)),
    url("assets/bg-cover.webp") center / cover no-repeat;
  opacity: 0.32;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.52) 22%, rgba(0, 0, 0, 0.56) 74%, transparent 100%);
}

.contents-bg::after {
  background:
    linear-gradient(90deg, rgba(39, 167, 255, 0.08), transparent 36%, rgba(155, 108, 255, 0.06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px);
}

.contents {
  min-height: 92vh;
  padding-top: calc(var(--nav-h) + 18px);
  padding-bottom: 84px;
}

.contents.section-screen {
  align-items: start;
}

.contents-layout {
  padding-top: 0;
}

.profile .company-logo.company-logo--sogou {
  width: 72px;
  height: 72px;
  margin-right: -2px;
}

.profile .company-logo.company-logo--xiaomi {
  width: 60px;
  height: 60px;
  margin-inline: 2px 4px;
}

.profile .career-brand {
  min-height: 76px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026-07 polish pass: requested asset swaps, tighter resume scale, and safer responsive layouts. */
.profile .career-timeline {
  min-height: 154px;
}

.profile .career-timeline::before {
  top: 78px;
}

.profile .career-node {
  grid-template-rows: 76px 24px 1fr;
  padding-right: clamp(18px, 2.4vw, 34px);
}

.profile .career-node + .career-node {
  padding-left: clamp(40px, 5vw, 82px);
}

.profile .career-brand {
  min-height: 64px;
  gap: 14px;
}

.profile .company-logo,
.profile .company-logo.company-logo--sogou,
.profile .company-logo.company-logo--xiaomi {
  width: 56px;
  height: 56px;
  margin: 0;
  object-fit: contain;
}

.profile .career-brand h4 {
  font-size: clamp(21px, 2vw, 30px);
}

.profile .career-brand h4 span {
  font-size: 0.76em;
}

.career-dot,
.career-dot.is-active {
  justify-self: start;
  margin-left: 20px;
}

.career-dot.is-active {
  margin-top: -4px;
  margin-left: 16px;
}

.profile .career-detail {
  padding-top: 16px;
}

.profile .career-detail strong {
  margin-bottom: 12px;
  font-size: clamp(21px, 2vw, 30px);
}

.profile .career-detail span {
  font-size: clamp(21px, 2vw, 29px);
}

.app-icons {
  gap: 10px;
  min-height: 50px;
}

.app-icons img,
.app-icons .app-logo-sogou,
.app-icons .app-logo-getapps {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 11px;
  object-fit: contain;
}

.profile-app-strip p {
  margin-top: 12px;
  font-size: clamp(15px, 1.35vw, 20px);
}

.contents-layout {
  grid-template-columns: minmax(260px, 0.58fr) minmax(660px, 1fr);
  gap: clamp(70px, 8vw, 150px);
}

.contents-heading h2 {
  max-width: 400px;
  font-size: clamp(52px, 5.6vw, 86px);
}

.work-list {
  min-width: 0;
}

.work-row {
  grid-template-columns: 56px minmax(0, 1fr) 58px;
  min-height: 138px;
}

.work-main strong {
  font-size: clamp(28px, 2.7vw, 42px);
}

.work-main em {
  font-size: clamp(13px, 1.1vw, 17px);
  letter-spacing: 0.1em;
}

.work-row::before {
  background:
    radial-gradient(circle at var(--mx, 80%) var(--my, 50%), rgba(255, 69, 92, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(255, 69, 92, 0.12), rgba(255, 255, 255, 0.015));
}

.work-row:hover {
  border-color: rgba(255, 69, 92, 0.46);
}

.project-block {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 5.6vw, 86px);
  padding: 84px 0;
}

.project-block.reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
}

.image-cluster,
#project-core .image-cluster,
#project-wallpaper .image-cluster,
#project-ai .image-cluster,
#project-eco .image-cluster {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 0;
  align-items: center;
}

.image-cluster img,
#project-core .image-cluster img,
#project-wallpaper .image-cluster img,
#project-ai .image-cluster img:first-child,
#project-ai .image-cluster img:nth-child(2),
#project-eco .image-cluster img {
  width: 100%;
  height: clamp(330px, 34vw, 520px);
  object-fit: contain;
  transform: none;
}

#project-core .image-cluster img {
  height: clamp(360px, 38vw, 560px);
}

#project-ai .image-cluster img,
#project-eco .image-cluster img {
  max-height: 560px;
}

.project-block:hover .image-cluster img,
.project-block:hover .image-cluster img:first-child,
.project-block:hover .image-cluster img:nth-child(2),
#project-core:hover .image-cluster img:first-child,
#project-core:hover .image-cluster img:nth-child(2),
#project-eco:hover .image-cluster img:first-child,
#project-eco:hover .image-cluster img:nth-child(2),
#project-wallpaper:hover .image-cluster img:first-child,
#project-wallpaper:hover .image-cluster img:nth-child(2) {
  transform: translateY(-4px);
  border-color: rgba(255, 69, 92, 0.28);
}

.other {
  padding-top: 110px;
}

.method-pages {
  display: grid;
  gap: 28px;
}

.method-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: clamp(34px, 4vw, 58px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 30%, rgba(39, 167, 255, 0.12), transparent 28vw),
    radial-gradient(circle at 72% 36%, rgba(255, 69, 92, 0.1), transparent 24vw),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.method-card h3 {
  margin: 0 0 52px;
  color: #fff;
  font-size: clamp(22px, 2vw, 31px);
  text-align: center;
}

.method-flow {
  display: grid;
  align-content: center;
}

.flow-stage,
.flow-lane,
.flow-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.flow-stage {
  margin: 0 8% 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.flow-stage span:nth-child(1) {
  grid-column: 2;
}

.flow-stage span:nth-child(2) {
  grid-column: 3;
}

.flow-stage span:nth-child(3) {
  grid-column: 5;
}

.flow-stage span:nth-child(4) {
  grid-column: 6;
}

.flow-lane {
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.flow-lane span,
.flow-bottom span {
  justify-self: center;
  min-width: 86px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.flow-lane .is-blue,
.flow-bottom span {
  color: #fff;
  background: #079cf2;
  box-shadow: 0 0 22px rgba(7, 156, 242, 0.28);
}

.flow-bottom {
  grid-template-columns: repeat(3, 1fr);
  width: 68%;
  margin: 42px auto 0;
}

.flow-rings {
  position: absolute;
  inset: 145px 9% 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  pointer-events: none;
}

.flow-rings i {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  opacity: 0.7;
}

.method-focus {
  display: grid;
  align-content: center;
}

.focus-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 70px);
  align-items: center;
}

.focus-circles div {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 68%),
    rgba(255, 255, 255, 0.12);
}

.focus-circles div.is-red {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 69, 92, 0.32), transparent 72%),
    rgba(255, 69, 92, 0.16);
  box-shadow: 0 0 44px rgba(255, 69, 92, 0.16);
}

.focus-circles strong {
  align-self: end;
  color: #fff;
  font-size: clamp(17px, 1.9vw, 30px);
}

.focus-circles b {
  color: #fff;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.95;
}

.focus-circles b span {
  font-size: 0.42em;
}

.focus-circles .is-red strong,
.focus-circles .is-red b,
.focus-circles .is-red em {
  color: var(--red);
}

.focus-circles em {
  align-self: start;
  color: #f4c94d;
  font-size: clamp(14px, 1.5vw, 22px);
  font-style: normal;
}

.thanks {
  position: relative;
  min-height: 82vh;
}

.thanks::before {
  content: "";
  position: absolute;
  left: 4vw;
  bottom: 10vh;
  width: min(38vw, 520px);
  aspect-ratio: 1.2;
  border: 28px solid rgba(255, 255, 255, 0.035);
  border-radius: 32%;
  opacity: 0.7;
}

.thanks-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  min-height: 68vh;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.thanks-layout h2 {
  font-size: clamp(76px, 8vw, 136px);
}

.thanks-layout img {
  align-self: end;
  width: min(34vw, 430px);
  max-height: 66vh;
  object-fit: contain;
}

.detail-flat-shell .detail-hero {
  grid-template-columns: 1fr;
}

.detail-meta {
  display: none;
}

@media (max-width: 1320px) {
  .contents-layout {
    grid-template-columns: minmax(240px, 0.48fr) minmax(620px, 1fr);
    gap: clamp(82px, 9vw, 150px);
  }

  .contents-heading h2 {
    font-size: clamp(48px, 5vw, 72px);
  }
}

@media (max-width: 1040px) {
  .contents-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contents-heading h2 {
    max-width: none;
  }

  .work-list {
    width: 100%;
  }

  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
  }

  .project-block.reverse .project-copy,
  .project-block.reverse .image-cluster {
    order: initial;
  }

  .image-cluster img,
  #project-core .image-cluster img,
  #project-wallpaper .image-cluster img,
  #project-ai .image-cluster img:first-child,
  #project-ai .image-cluster img:nth-child(2),
  #project-eco .image-cluster img {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .flow-stage,
  .flow-lane,
  .flow-bottom,
  .focus-circles {
    grid-template-columns: 1fr;
  }

  .flow-stage,
  .flow-bottom {
    width: 100%;
    margin-inline: 0;
  }

  .flow-stage span:nth-child(n) {
    grid-column: auto;
  }

  .flow-rings {
    display: none;
  }
}

/* Final QA corrections: visual-size consistency and safer cross-resolution spacing. */
.profile .career-timeline {
  column-gap: clamp(72px, 8vw, 150px);
}

.profile .career-node {
  grid-template-rows: 70px 22px 1fr;
}

.profile .career-timeline::before {
  top: 72px;
}

.profile .career-brand {
  min-height: 58px;
  gap: 13px;
}

.profile .company-logo,
.profile .company-logo.company-logo--xiaomi {
  width: 54px;
  height: 54px;
}

.profile .company-logo.company-logo--sogou {
  width: 50px;
  height: 50px;
}

.career-dot,
.career-dot.is-active {
  justify-self: start;
}

.career-dot {
  margin-left: 20px;
}

.career-dot.is-active {
  margin-left: 18px;
}

.profile .career-brand h4 {
  font-size: clamp(19px, 1.76vw, 27px);
}

.profile .career-detail strong {
  font-size: clamp(20px, 1.82vw, 28px);
}

.profile .career-detail span {
  font-size: clamp(20px, 1.84vw, 28px);
}

.app-icons {
  align-items: center;
  gap: 9px;
  min-height: 44px;
}

.app-icons img,
.app-icons .app-logo-getapps {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.app-icons .app-logo-sogou {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  transform: translateY(1px);
}

.profile-app-strip p {
  margin-top: 10px;
  font-size: clamp(14px, 1.2vw, 18px);
}

.contents-layout {
  grid-template-columns: minmax(360px, 0.56fr) minmax(720px, 1fr);
  gap: clamp(96px, 10vw, 190px);
}

.contents-heading {
  min-width: 0;
}

.contents-heading h2 {
  max-width: 430px;
  font-size: clamp(56px, 5.25vw, 82px);
}

.work-row {
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  padding-left: clamp(32px, 3.8vw, 58px);
}

.work-main strong {
  font-size: clamp(30px, 2.55vw, 40px);
}

.work-main em {
  max-width: 100%;
  white-space: normal;
}

.blue-stroke {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.detail-chapter {
  scroll-margin-top: calc(var(--nav-h) + 34px);
}

.side-back,
.detail-return-button,
.detail-link,
.scroll-cue {
  cursor: pointer;
}

@media (max-width: 1280px) {
  .contents-layout {
    grid-template-columns: minmax(300px, 0.42fr) minmax(620px, 1fr);
    gap: clamp(116px, 12vw, 190px);
  }

  .contents-heading h2 {
    max-width: 340px;
    font-size: clamp(46px, 4.6vw, 66px);
  }
}

@media (max-width: 1120px) {
  .contents-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contents-heading h2 {
    max-width: none;
  }

  .work-row {
    padding-left: clamp(22px, 4vw, 44px);
  }
}

/* Third revision: match annotated original pages. */
.profile .company-logo.company-logo--sogou {
  width: 64px;
  height: 64px;
  transform: translateY(1px);
}

.profile .company-logo.company-logo--xiaomi {
  width: 58px;
  height: 58px;
}

.profile .career-brand {
  min-height: 72px;
  gap: 16px;
}

.profile .career-timeline::before {
  top: 82px;
}

.profile .career-node {
  grid-template-rows: 80px 24px 1fr;
}

.career-dot {
  margin-left: 26px;
}

.career-dot.is-active {
  margin-left: 22px;
}

.profile-app-strip {
  grid-template-columns: minmax(260px, 0.82fr) minmax(220px, 0.64fr) minmax(420px, 1.24fr);
  gap: clamp(42px, 4.8vw, 86px);
  align-items: start;
  padding-top: 26px;
  margin-top: 10px;
}

.profile-app-strip > div + div::before {
  display: none;
}

.app-strip-group {
  position: relative;
  min-width: 0;
}

.app-strip-group--intl::before {
  content: "";
  position: absolute;
  left: calc(clamp(42px, 4.8vw, 86px) / -2);
  top: -28px;
  bottom: -36px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.profile-app-strip .app-icons {
  min-height: 62px;
  gap: 10px;
}

.profile-app-strip .app-icons img,
.profile-app-strip .app-icons .app-logo-getapps,
.profile-app-strip .app-icons .app-logo-sogou {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 14px;
  object-fit: cover;
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.app-strip-group--core .app-icons {
  justify-content: flex-start;
  gap: 12px;
}

.app-strip-group--core .app-icons img {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
}

.profile-app-strip p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(16px, 1.22vw, 20px);
  line-height: 1.35;
  white-space: nowrap;
}

.image-cluster,
#project-core .image-cluster,
#project-eco .image-cluster {
  min-height: clamp(420px, 37vw, 590px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 3vw, 48px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

#project-core .image-cluster img,
#project-eco .image-cluster img {
  width: min(100%, 980px);
  height: min(100%, clamp(360px, 32vw, 500px));
  max-height: 500px;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}

#project-core .image-cluster img {
  width: min(100%, 880px);
}

#project-eco .image-cluster img {
  width: min(100%, 860px);
}

.other {
  padding-top: calc(var(--nav-h) + 78px);
}

.other-heading {
  margin-bottom: clamp(44px, 5vw, 78px);
}

.other-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(72px, 9vw, 150px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.method-pages {
  gap: clamp(34px, 4vw, 58px);
}

.method-card {
  min-height: 420px;
  align-content: center;
}

.thanks {
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.thanks::before {
  left: max(-80px, 2vw);
  bottom: 8vh;
  width: min(42vw, 620px);
  border-width: 34px;
  border-color: rgba(255, 255, 255, 0.032);
  border-radius: 33%;
}

.thanks-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: end;
  min-height: 76vh;
  max-width: 1480px;
}

.thanks-layout > div {
  align-self: center;
  padding-left: clamp(80px, 10vw, 170px);
  transform: translateY(22px);
}

.thanks-layout .timeline {
  position: relative;
  top: auto;
  left: clamp(150px, 18vw, 300px);
  transform: none;
  width: min(520px, 34vw);
  margin: 0 0 clamp(54px, 7vh, 86px);
  color: rgba(255, 255, 255, 0.5);
}

.thanks-layout h2 {
  margin: 0;
  font-size: clamp(96px, 10vw, 178px);
  line-height: 0.9;
}

.thanks-layout p:not(.timeline) {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(26px, 2.4vw, 42px);
}

.thanks-layout img {
  justify-self: end;
  align-self: end;
  width: min(44vw, 610px);
  max-height: 78vh;
  transform: translate(2vw, 2vh);
  object-fit: contain;
}

@media (max-width: 1280px) {
  .profile-app-strip {
    grid-template-columns: minmax(230px, 0.82fr) minmax(190px, 0.58fr) minmax(360px, 1fr);
    gap: 42px;
  }

  .profile-app-strip .app-icons img,
  .profile-app-strip .app-icons .app-logo-getapps,
  .profile-app-strip .app-icons .app-logo-sogou {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .app-strip-group--core .app-icons img {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 980px) {
  .profile-app-strip {
    grid-template-columns: 1fr;
  }

  .app-strip-group--intl::before {
    display: none;
  }

  .profile-app-strip p {
    white-space: normal;
  }

  .thanks-layout {
    grid-template-columns: 1fr;
  }

  .thanks-layout > div {
    padding-left: 0;
    transform: none;
  }

  .thanks-layout .timeline {
    position: static;
    transform: none;
    width: min(520px, 90vw);
    margin-bottom: 40px;
  }

  .thanks-layout img {
    position: absolute;
    right: -10vw;
    bottom: 0;
    width: min(58vw, 420px);
    opacity: 0.88;
  }
}

/* Local interaction repair: restore global hover feedback without changing layout. */
.pointer-glow {
  z-index: 20;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle, rgba(255, 69, 92, 0.18), rgba(255, 140, 58, 0.08) 38%, rgba(39, 167, 255, 0.045) 54%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(1px);
  will-change: transform, opacity;
}

main,
.site-header,
.floating-avatar {
  position: relative;
}

main {
  z-index: 2;
}

.site-header,
.floating-avatar {
  z-index: 30;
}

.profile-card,
.profile-band,
.project-block,
.image-cluster,
.metric-row span,
.method-card,
.detail-link,
.scroll-cue,
.profile-app-strip .app-icons img {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    filter 0.24s ease;
}

.profile-card:hover,
.profile-band:hover,
.method-card:hover,
.metric-row span:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 69, 92, 0.18) inset,
    0 0 34px rgba(255, 69, 92, 0.08);
}

.project-block:hover {
  transform: translateY(-2px);
}

.project-block:hover .image-cluster,
.image-cluster:hover {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 69, 92, 0.13), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 58%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 69, 92, 0.2) inset;
}

.project-block:hover .image-cluster img {
  transform: translateY(-6px) scale(1.01);
  filter: saturate(1.08) contrast(1.03);
}

.profile-app-strip .app-icons img:hover {
  transform: translateY(-5px) scale(1.045);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 26px rgba(255, 69, 92, 0.12);
}

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

.metric-row span {
  min-height: 96px;
  padding: 16px 14px;
}

.metric-row strong,
#project-eco .metric-row strong {
  max-width: 100%;
  font-size: clamp(22px, 1.9vw, 31px);
  line-height: 1.02;
  white-space: normal;
  overflow-wrap: anywhere;
}

.metric-row span {
  font-size: clamp(14px, 1vw, 16px);
}

.profile .career-timeline::before {
  top: 88px;
}

.career-dot,
.career-dot.is-active {
  align-self: center;
}

.career-dot {
  margin-top: 0;
}

.career-dot.is-active {
  margin-top: 0;
}

/* Annotation pass 2026-07-02: fixed timeline dots, wider metrics, closer Thanks layout. */
.profile .career-timeline {
  --career-line-y: 88px;
  position: relative;
}

.profile .career-timeline::before {
  top: var(--career-line-y);
}

.profile .career-node {
  position: relative;
}

.profile .career-node .career-dot,
.profile .career-node .career-dot.is-active {
  position: absolute;
  top: var(--career-line-y);
  left: 0;
  justify-self: auto;
  align-self: auto;
  margin: 0;
  transform: translateY(-50%);
}

.profile .career-node .career-dot {
  left: 28px;
}

.profile .career-node .career-dot.is-active {
  left: 24px;
}

.project-block {
  grid-template-columns: minmax(460px, 0.86fr) minmax(0, 1.14fr);
}

.project-block.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(460px, 0.9fr);
}

.project-copy {
  min-width: 0;
  overflow: visible;
}

.metric-row {
  width: 100%;
  grid-template-columns: repeat(3, minmax(138px, 1fr));
  gap: 14px;
}

.metric-row span {
  min-height: 104px;
  padding: 18px 16px;
}

.metric-row strong,
#project-eco .metric-row strong {
  font-size: clamp(22px, 1.72vw, 30px);
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.metric-row span {
  white-space: nowrap;
}

.thanks {
  min-height: 100vh;
  align-items: center;
}

.thanks::before {
  left: max(-64px, 2.2vw);
  bottom: 4vh;
  width: min(43vw, 700px);
  height: min(31vw, 500px);
  opacity: 0.72;
}

.thanks-layout {
  position: relative;
  display: block;
  min-height: 86vh;
  max-width: 1560px;
}

.thanks-layout > div {
  position: absolute;
  left: clamp(300px, 36vw, 610px);
  top: 47%;
  z-index: 2;
  padding-left: 0;
  transform: translateY(-50%);
}

.thanks-layout .timeline {
  position: absolute;
  top: clamp(78px, 11vh, 122px);
  left: clamp(600px, 58vw, 1040px);
  width: min(520px, 34vw);
  margin: 0;
  transform: translateX(-50%);
}

.thanks-layout h2 {
  font-size: clamp(106px, 10.6vw, 188px);
  line-height: 0.88;
  letter-spacing: 0;
}

.thanks-layout p:not(.timeline) {
  margin-top: clamp(26px, 3vh, 42px);
  font-size: clamp(27px, 2.35vw, 42px);
}

.thanks-layout img {
  position: absolute;
  right: clamp(-96px, -4vw, -28px);
  bottom: 2vh;
  z-index: 3;
  width: min(48vw, 720px);
  max-height: 82vh;
  transform: none;
}

@media (max-width: 1180px) {
  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
  }

  .thanks-layout > div {
    left: 12vw;
  }

  .thanks-layout .timeline {
    left: 50%;
    width: min(520px, 46vw);
  }

  .thanks-layout img {
    right: -12vw;
    width: min(62vw, 620px);
  }
}

@media (max-width: 760px) {
  .metric-row {
    grid-template-columns: 1fr;
  }

  .thanks-layout {
    min-height: 78vh;
  }

  .thanks-layout > div {
    left: 0;
    top: 42%;
  }

  .thanks-layout .timeline {
    position: relative;
    top: auto;
    left: 0;
    width: min(520px, 90vw);
    margin-bottom: 36px;
    transform: none;
  }

  .thanks-layout img {
    right: -22vw;
    width: min(78vw, 420px);
    opacity: 0.9;
  }
}

/* Annotation pass 2026-07-02b: keep Thanks layout closer to original Figma page. */
.thanks-layout {
  position: relative;
  display: block;
  min-height: 90vh;
  max-width: 1680px;
  overflow: visible;
}

.thanks {
  padding-top: calc(var(--nav-h) + 6px) !important;
  padding-bottom: 0 !important;
}

.thanks-layout > div {
  display: contents !important;
  position: static !important;
  inset: auto !important;
  z-index: auto;
  padding: 0 !important;
  transform: none !important;
}

.thanks-layout .timeline {
  position: absolute !important;
  top: clamp(54px, 8vh, 96px) !important;
  left: clamp(650px, 60vw, 1120px) !important;
  width: min(540px, 35vw) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

.thanks-layout h2 {
  position: absolute !important;
  left: clamp(170px, 14vw, 260px) !important;
  top: 48% !important;
  margin: 0 !important;
  font-size: clamp(108px, 10.4vw, 182px);
  line-height: 0.9;
  transform: translateY(-50%) !important;
}

.thanks-layout p:not(.timeline) {
  position: absolute !important;
  left: clamp(176px, 14.4vw, 270px) !important;
  top: 63% !important;
  margin: 0 !important;
  font-size: clamp(26px, 2.2vw, 40px);
  line-height: 1.25;
  transform: translateY(-50%) !important;
}

.thanks-layout img {
  position: absolute;
  right: clamp(-240px, -10vw, -160px);
  bottom: 1vh;
  z-index: 3;
  width: min(36vw, 560px);
  max-height: 82vh;
  transform: none;
}

@media (max-width: 1180px) {
  .thanks-layout .timeline {
    left: 58%;
    width: min(500px, 42vw);
  }

  .thanks-layout h2 {
    left: 25vw;
  }

  .thanks-layout p:not(.timeline) {
    left: 25.4vw;
  }

  .thanks-layout img {
    right: -22vw;
    width: min(56vw, 560px);
  }
}

@media (max-width: 760px) {
  .thanks-layout {
    min-height: 78vh;
  }

  .thanks-layout .timeline {
    top: 64px;
    left: 50%;
    width: min(420px, 82vw);
  }

  .thanks-layout h2 {
    left: 6vw;
    top: 42%;
    font-size: clamp(70px, 18vw, 116px);
  }

  .thanks-layout p:not(.timeline) {
    left: 7vw;
    top: 53%;
    font-size: clamp(20px, 5.2vw, 30px);
  }

  .thanks-layout img {
    right: -30vw;
    width: min(86vw, 440px);
  }
}

/* 2026-07-02 final annotation pass: restore Figma-relative composition. */
.brand-text::after {
  display: none;
}

.hero .eyebrow.spaced {
  color: var(--red);
}

.hero .timeline,
.thanks-layout .timeline {
  font-weight: 300;
}

.hero .role,
.hero .role strong,
.contact-lines {
  font-weight: 300;
}

.contact-lines span {
  font-weight: 300;
}

.profile .career-timeline {
  --career-line-y: 108px;
  min-height: 212px;
}

.profile .career-node {
  grid-template-rows: 82px 60px 1fr;
}

.profile .career-detail {
  padding-top: 58px;
}

.profile .career-node:nth-child(2) .career-dot.is-active {
  left: 101px;
}

.profile .career-detail strong {
  margin-bottom: 18px;
  font-weight: 560;
}

.profile .career-detail span {
  font-weight: 300;
}

.profile .company-logo.company-logo--sogou,
.profile .company-logo.company-logo--xiaomi {
  width: 62px;
  height: 62px;
  margin: 0;
  object-fit: contain;
}

.profile .company-logo.company-logo--xiaomi {
  padding: 2px;
}

.project-copy .detail-link {
  margin-top: 30px;
}

.image-cluster,
#project-core .image-cluster,
#project-wallpaper .image-cluster,
#project-ai .image-cluster,
#project-eco .image-cluster,
.project-block:hover .image-cluster,
.image-cluster:hover {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.image-cluster img,
#project-core .image-cluster img,
#project-wallpaper .image-cluster img,
#project-ai .image-cluster img,
#project-eco .image-cluster img,
.project-block:hover .image-cluster img {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#project-core .image-cluster img {
  height: clamp(430px, 38vw, 620px);
}

#project-wallpaper .image-cluster img,
#project-ai .image-cluster img,
#project-eco .image-cluster img {
  height: clamp(420px, 36vw, 600px);
}

.method-card {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(150deg, rgba(18, 16, 46, 0.72), rgba(9, 9, 28, 0.9)),
    rgba(255, 255, 255, 0.035);
}

.method-card h3 {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 620;
  line-height: 1.28;
}

.method-flow {
  min-height: clamp(420px, 33vw, 560px);
}

.method-flow::after {
  content: "";
  position: absolute;
  left: clamp(22px, 4vw, 72px);
  right: clamp(22px, 4vw, 72px);
  top: clamp(104px, 9vw, 148px);
  bottom: clamp(28px, 4vw, 58px);
  background: url("assets/other-process.webp") center / contain no-repeat;
}

.method-flow .flow-stage,
.method-flow .flow-lane,
.method-flow .flow-bottom,
.method-flow .flow-rings {
  opacity: 0;
}

.method-focus {
  min-height: clamp(360px, 29vw, 460px);
}

.focus-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-items: center;
  gap: clamp(22px, 4vw, 72px);
  max-width: 1120px;
  margin: clamp(26px, 4vw, 54px) auto 0;
}

.focus-circles div {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto auto auto 1fr;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.07), transparent 64%),
    rgba(255, 255, 255, 0.12);
}

.focus-circles div.is-red {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 69, 92, 0.2), transparent 64%),
    rgba(255, 69, 92, 0.14);
}

.focus-circles strong {
  grid-row: 2;
  margin-bottom: 12px;
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 700;
}

.focus-circles b {
  grid-row: 3;
  font-size: clamp(46px, 4.2vw, 76px);
  line-height: 0.9;
}

.focus-circles em {
  grid-row: 4;
  margin-top: 24px;
  min-height: 1.4em;
  color: #ffd21f;
  font-size: clamp(15px, 1.2vw, 20px);
  font-style: normal;
  font-weight: 520;
  text-align: center;
}

.thanks {
  min-height: 100vh;
  background:
    radial-gradient(circle at 66% 64%, rgba(255, 69, 92, 0.1), transparent 20vw),
    linear-gradient(180deg, #191919 0%, #171717 100%);
}

.thanks::before {
  z-index: 0;
  left: clamp(650px, 42vw, 800px);
  bottom: clamp(18px, 4vh, 58px);
  width: clamp(360px, 27vw, 560px);
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: url("assets/thanks-bubble.png") center / contain no-repeat;
  opacity: 0.12;
}

.thanks-layout {
  z-index: 1;
}

.thanks-layout {
  width: min(calc(100vw - 96px), 1680px) !important;
  max-width: 1680px;
  min-height: calc(100vh - var(--nav-h));
}

.thanks-layout .timeline {
  top: clamp(78px, 10vh, 112px) !important;
  left: clamp(780px, 52vw, 960px) !important;
  width: min(560px, 35vw) !important;
}

.thanks-layout h2 {
  left: clamp(780px, 54vw, 940px) !important;
  top: 47% !important;
  font-size: clamp(82px, 6.8vw, 128px);
  font-weight: 760;
}

.thanks-layout p:not(.timeline) {
  left: clamp(784px, 54.2vw, 944px) !important;
  top: calc(47% + clamp(82px, 6.8vw, 128px)) !important;
  font-size: clamp(19px, 1.34vw, 26px);
  font-weight: 300;
}

.thanks-layout img {
  right: clamp(72px, 7vw, 130px);
  bottom: clamp(0px, 3vh, 28px);
  width: clamp(300px, 25vw, 500px);
  max-height: 70vh;
}

.detail-chapter {
  width: min(100%, 1540px);
  margin-inline: auto;
  padding: clamp(42px, 5vw, 78px) 0;
}

.detail-chapter-copy {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-chapter-copy h2 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 720;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 42px);
}

.detail-figure,
.detail-figure:first-child {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.detail-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.detail-figure:hover img {
  transform: none;
  filter: none;
}

.side-text strong {
  white-space: normal;
}

.side-text em {
  display: none;
}

@media (max-width: 1180px) {
  .focus-circles {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 18px;
  }

  .thanks::before {
    left: 32vw;
  }

  .thanks-layout h2,
  .thanks-layout p:not(.timeline) {
    left: 48vw !important;
  }

  .thanks-layout img {
    right: 2vw;
    width: min(42vw, 420px);
  }
}

@media (max-width: 760px) {
  .profile .career-detail {
    padding-top: 24px;
  }

  .project-copy .detail-link {
    margin-top: 22px;
  }

  #project-core .image-cluster img,
  #project-wallpaper .image-cluster img,
  #project-ai .image-cluster img,
  #project-eco .image-cluster img {
    height: auto;
    max-height: 420px;
  }

  .focus-circles {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .method-flow::after {
    inset: 118px 14px 18px;
  }

  .thanks::before {
    left: 18vw;
    bottom: 10vh;
    width: 46vw;
    height: 58vw;
  }

  .thanks-layout h2 {
    left: 8vw !important;
    top: 38% !important;
    font-size: clamp(64px, 17vw, 108px);
  }

  .thanks-layout p:not(.timeline) {
    left: 9vw !important;
    top: 50% !important;
  }

  .thanks-layout img {
    right: -28vw;
    width: min(86vw, 420px);
  }

  .detail-figure,
  .detail-figure:first-child {
    border-radius: 6px;
  }
}

/* Detail page recovery: keep the exported Figma pages inside a cohesive portfolio surface. */
.detail-body {
  background:
    radial-gradient(circle at 14% 14%, rgba(39, 167, 255, 0.14), transparent 28vw),
    radial-gradient(circle at 82% 12%, rgba(155, 108, 255, 0.16), transparent 30vw),
    linear-gradient(135deg, #050816 0%, #080613 44%, #17041f 100%);
}

.detail-flat-shell .detail-hero {
  width: min(100%, 1280px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.detail-chapters {
  position: relative;
  isolation: isolate;
  width: min(100%, 1320px);
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(39, 167, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 69, 92, 0.12), transparent 30%),
    linear-gradient(150deg, rgba(18, 20, 42, 0.76), rgba(5, 7, 18, 0.94));
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.detail-chapters::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 28%, rgba(255, 69, 92, 0.04) 72%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 22px);
  opacity: 0.42;
  pointer-events: none;
}

.detail-chapter,
.detail-flat-shell .detail-chapter {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.detail-chapter-copy {
  background: transparent;
}

.detail-flat-shell .detail-chapter-copy {
  display: none;
}

.detail-image-grid {
  position: relative;
  z-index: 1;
  gap: clamp(18px, 2.2vw, 32px);
}

.detail-figure,
.detail-figure:first-child {
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.3);
}

.detail-figure img {
  display: block;
  object-fit: contain;
  background: #050816;
  border-radius: 8px;
}

/* Match the 20260701 detail treatment: each chapter is the natural wrapper. */
.detail-chapters {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  gap: 34px;
}

.detail-chapters::before {
  display: none;
}

.detail-chapter,
.detail-flat-shell .detail-chapter {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(24px, 3vw, 38px);
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--card-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  overflow: clip;
}

.detail-image-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-figure,
.detail-figure:first-child {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: auto;
  padding: clamp(10px, 1vw, 14px);
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.detail-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
}

/* Match the old detail entrance: start with the visual chapter canvas. */
.detail-flat-shell .detail-hero {
  display: none;
}

/* Fixed nav recovery: keep the capsule navigation floating above every section. */
.site-header {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  z-index: 1000 !important;
  width: min(calc(100% - 36px), 1180px);
  transform: translateX(-50%) !important;
}

@media (max-width: 980px) {
  .site-header {
    top: 10px !important;
    width: min(calc(100% - 20px), 720px);
  }
}

/* Annotation pass 2026-07-02c: new review notes only. */
.work-row:hover .work-index,
.work-row:hover .work-main em {
  color: rgba(255, 69, 92, 0.92);
}

.thanks::before {
  left: clamp(560px, 36vw, 700px);
}

.thanks-layout .timeline {
  left: clamp(700px, 48vw, 880px) !important;
}

.thanks-layout h2 {
  left: clamp(700px, 49vw, 850px) !important;
}

.thanks-layout p:not(.timeline) {
  left: clamp(704px, 49.2vw, 854px) !important;
}

.thanks-layout img {
  right: clamp(150px, 12vw, 240px);
}

.detail-side-nav button {
  min-height: 72px;
  align-items: center;
  padding: 12px;
}

.detail-side-nav button .side-index {
  align-self: center;
}

.detail-side-nav button .side-text {
  align-self: center;
  gap: 4px;
}

.detail-side-nav button.is-title-only .side-text {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.detail-side-nav button.is-title-only .side-text strong {
  line-height: 1.28;
}

.side-text em {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.detail-side-nav button.is-active .side-text em {
  color: #fff;
}

@media (max-width: 1180px) {
  .thanks::before {
    left: 24vw;
  }

  .thanks-layout h2,
  .thanks-layout p:not(.timeline) {
    left: 42vw !important;
  }

  .thanks-layout .timeline {
    left: 48% !important;
  }

  .thanks-layout img {
    right: 10vw;
  }
}

@media (max-width: 760px) {
  .thanks::before {
    left: 8vw;
  }

  .thanks-layout h2 {
    left: 8vw !important;
  }

  .thanks-layout p:not(.timeline) {
    left: 9vw !important;
  }

  .thanks-layout .timeline {
    left: 50% !important;
  }

  .thanks-layout img {
    right: -18vw;
  }
}

/* Annotation pass 2026-07-02d: align Thanks page to the supplied reference composition. */
.thanks::before {
  left: clamp(-40px, 2.2vw, 48px);
  bottom: clamp(-150px, -8vh, -60px);
  width: clamp(620px, 38vw, 760px);
  opacity: 0.16;
}

.thanks-layout .timeline {
  top: clamp(10px, 1.2vh, 18px) !important;
  left: clamp(1240px, 72vw, 1400px) !important;
  width: min(560px, 30vw) !important;
}

.thanks-layout h2 {
  left: clamp(500px, 27vw, 560px) !important;
  top: 38% !important;
  font-size: clamp(132px, 7.85vw, 160px);
  font-weight: 820;
}

.thanks-layout p:not(.timeline) {
  left: clamp(510px, 27.5vw, 570px) !important;
  top: calc(38% + clamp(126px, 7.45vw, 152px)) !important;
  font-size: clamp(34px, 2.2vw, 44px);
  font-weight: 360;
}

.thanks-layout img {
  right: clamp(-96px, -3.2vw, -54px);
  bottom: clamp(-132px, -10vh, -72px);
  width: clamp(650px, 38vw, 760px);
  max-height: none;
}

@media (max-width: 1180px) {
  .thanks::before {
    left: -8vw;
    width: min(64vw, 640px);
  }

  .thanks-layout .timeline {
    left: 60% !important;
    width: min(500px, 42vw) !important;
  }

  .thanks-layout h2 {
    left: 28vw !important;
    top: 40% !important;
    font-size: clamp(100px, 12vw, 140px);
  }

  .thanks-layout p:not(.timeline) {
    left: 29vw !important;
    top: calc(40% + clamp(96px, 11vw, 132px)) !important;
    font-size: clamp(28px, 3.2vw, 38px);
  }

  .thanks-layout img {
    right: -12vw;
    width: min(58vw, 650px);
  }
}

@media (max-width: 760px) {
  .thanks::before {
    left: -28vw;
    bottom: 0;
    width: 96vw;
  }

  .thanks-layout .timeline {
    top: 40px !important;
    left: 50% !important;
    width: min(420px, 82vw) !important;
  }

  .thanks-layout h2 {
    left: 8vw !important;
    top: 34% !important;
    font-size: clamp(72px, 19vw, 112px);
  }

  .thanks-layout p:not(.timeline) {
    left: 9vw !important;
    top: 47% !important;
    font-size: clamp(22px, 5.8vw, 32px);
  }

  .thanks-layout img {
    right: -42vw;
    bottom: -6vh;
    width: min(112vw, 520px);
  }
}

/* Annotation pass 2026-07-02e: keep one outer frame for project previews. */
#project-core .image-cluster,
#project-wallpaper .image-cluster,
#project-ai .image-cluster,
#project-eco .image-cluster,
#project-core:hover .image-cluster,
#project-wallpaper:hover .image-cluster,
#project-ai:hover .image-cluster,
#project-eco:hover .image-cluster,
#project-core .image-cluster:hover,
#project-wallpaper .image-cluster:hover,
#project-ai .image-cluster:hover,
#project-eco .image-cluster:hover {
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.3);
}

#project-core .image-cluster img,
#project-wallpaper .image-cluster img,
#project-ai .image-cluster img,
#project-eco .image-cluster img,
#project-core:hover .image-cluster img,
#project-wallpaper:hover .image-cluster img,
#project-ai:hover .image-cluster img,
#project-eco:hover .image-cluster img {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#project-core .image-cluster img,
#project-eco .image-cluster img {
  width: min(100%, 760px);
  height: auto;
  max-height: min(72vh, 720px);
  justify-self: center;
  object-fit: contain;
}

/* Annotation pass 2026-07-03: polish latest homepage review notes. */
.profile .company-logo.company-logo--xiaomi {
  width: 56px;
  height: 56px;
  padding: 0;
}

.work-row:hover .work-index,
.work-row:hover .work-main strong,
.work-row:hover .work-main em {
  color: rgba(255, 69, 92, 0.94);
}

.method-flow h3 {
  margin-top: clamp(-28px, -2vw, -16px);
  margin-bottom: clamp(38px, 3vw, 54px);
}

.method-flow::after {
  top: clamp(126px, 10vw, 168px);
}

.focus-circles {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  max-width: 1260px;
  gap: clamp(18px, 2.8vw, 52px);
}

.method-focus {
  min-height: clamp(400px, 32vw, 520px);
}

.thanks-layout .timeline {
  left: clamp(1320px, 76vw, 1480px) !important;
}

.thanks-layout h2 {
  left: 50% !important;
  top: 38% !important;
  font-size: clamp(154px, 9vw, 184px);
  transform: translate(-50%, -50%) !important;
}

.thanks-layout p:not(.timeline) {
  left: 50% !important;
  top: calc(38% + clamp(132px, 8vw, 164px)) !important;
  transform: translate(-50%, -50%) !important;
}

.thanks-layout img {
  width: clamp(730px, 42vw, 840px);
}

@media (max-width: 1180px) {
  .focus-circles {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    max-width: 960px;
  }

  .thanks-layout .timeline {
    left: 66% !important;
  }

  .thanks-layout h2 {
    left: 48% !important;
    font-size: clamp(112px, 13vw, 150px);
  }

  .thanks-layout p:not(.timeline) {
    left: 48% !important;
  }

  .thanks-layout img {
    width: min(64vw, 700px);
  }
}

@media (max-width: 760px) {
  .profile .company-logo.company-logo--xiaomi {
    width: 50px;
    height: 50px;
  }

  .method-flow h3 {
    margin-top: 0;
    margin-bottom: 28px;
  }

  .method-flow::after {
    inset: 142px 14px 18px;
  }

  .focus-circles {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .thanks-layout .timeline {
    left: 54% !important;
  }

  .thanks-layout h2 {
    left: 50% !important;
    font-size: clamp(86px, 22vw, 124px);
  }

  .thanks-layout p:not(.timeline) {
    left: 50% !important;
  }

  .thanks-layout img {
    width: min(122vw, 560px);
  }
}

/* Detail page motion: soft scroll fade and restrained image zoom. */
.detail-flat-shell .detail-figure {
  opacity: 0.22;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.78s ease var(--detail-motion-delay, 0ms),
    transform 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) var(--detail-motion-delay, 0ms),
    box-shadow 0.32s ease,
    background 0.32s ease;
  will-change: opacity, transform;
}

.detail-flat-shell .detail-figure.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-flat-shell .detail-figure img {
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.42s ease;
  will-change: transform;
}

.detail-flat-shell .detail-figure:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.26);
}

.detail-flat-shell .detail-figure:hover img {
  transform: translateZ(0) scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .detail-flat-shell .detail-figure,
  .detail-flat-shell .detail-figure img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Annotation pass 2026-07-03b: refine contents hover and method cards. */
.work-row:hover .work-main strong {
  color: #fff;
}

.work-row:hover .work-main em {
  color: rgba(255, 69, 92, 0.94);
}

.method-flow h3 {
  margin-top: clamp(-46px, -3.2vw, -30px);
  margin-bottom: clamp(48px, 4vw, 70px);
}

.method-flow::after {
  top: clamp(142px, 11vw, 186px);
}

.focus-circles {
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  max-width: 1480px;
  gap: clamp(18px, 2.4vw, 44px);
}

.method-focus {
  min-height: clamp(470px, 38vw, 640px);
}

.focus-circles div {
  padding: clamp(22px, 2vw, 34px);
}

.focus-circles strong {
  max-width: 82%;
  text-align: center;
}

.focus-circles em {
  max-width: 78%;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .focus-circles {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    max-width: 1080px;
  }

  .method-flow h3 {
    margin-top: clamp(-28px, -2vw, -16px);
  }
}

@media (max-width: 760px) {
  .focus-circles {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .method-focus {
    min-height: auto;
  }

  .method-flow h3 {
    margin-top: 0;
  }
}

/* Annotation pass 2026-07-03c: final method sizing and 1920-based Thanks lock. */
.method-flow h3 {
  margin-top: clamp(-62px, -4.2vw, -46px);
  margin-bottom: clamp(60px, 4.8vw, 86px);
}

.method-flow::after {
  top: clamp(158px, 12vw, 204px);
}

.focus-circles {
  grid-template-columns: repeat(3, minmax(310px, 1fr));
  max-width: 1640px;
  gap: clamp(16px, 2vw, 36px);
}

.method-focus {
  min-height: clamp(540px, 43vw, 720px);
}

.focus-circles div {
  padding: clamp(28px, 2.4vw, 42px);
}

.focus-circles strong,
.focus-circles em {
  justify-self: center;
  text-align: center;
}

.focus-circles em {
  white-space: nowrap;
}

.thanks {
  --thanks-scale: min(1, calc((100vw - 96px) / 1920));
  min-height: 100vh;
}

.thanks-layout {
  width: 1920px !important;
  max-width: none !important;
  min-height: 1080px;
  transform: translateX(-50%) scale(var(--thanks-scale));
  transform-origin: top center;
  left: 50%;
  margin: 0 !important;
}

.thanks::before {
  left: calc(50% - 860px * var(--thanks-scale));
  bottom: calc(-86px * var(--thanks-scale));
  width: calc(730px * var(--thanks-scale));
}

.thanks-layout .timeline {
  top: 96px !important;
  left: 1520px !important;
  width: 560px !important;
}

.thanks-layout h2 {
  left: 960px !important;
  top: 488px !important;
  font-size: 184px;
  transform: translate(-50%, -50%) !important;
}

.thanks-layout p:not(.timeline) {
  left: 960px !important;
  top: 646px !important;
  font-size: 42px;
  transform: translate(-50%, -50%) !important;
}

.thanks-layout img {
  right: 58px;
  bottom: -144px;
  width: 840px;
  max-height: none;
}

@media (max-width: 1180px) {
  .method-flow h3 {
    margin-top: clamp(-36px, -3vw, -24px);
  }

  .focus-circles {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    max-width: 1200px;
  }
}

@media (max-width: 760px) {
  .method-flow h3 {
    margin-top: 0;
  }

  .focus-circles {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .thanks {
    --thanks-scale: calc((100vw - 28px) / 1920);
  }
}

/* Annotation pass 2026-07-03d: hard-lock Thanks composition to a 1920 x 1080 stage. */
.thanks {
  --thanks-scale-fixed: 1;
  --thanks-stage-height: 1080px;
  min-height: max(100vh, var(--thanks-stage-height)) !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden;
}

.thanks-layout {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 2;
  display: block !important;
  width: 1920px !important;
  height: 1080px !important;
  min-height: 1080px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) scale(var(--thanks-scale-fixed)) !important;
  transform-origin: top center !important;
}

.thanks::before {
  left: calc(50% - (860px * var(--thanks-scale-fixed))) !important;
  bottom: calc(-86px * var(--thanks-scale-fixed)) !important;
  width: calc(730px * var(--thanks-scale-fixed)) !important;
}

.thanks-layout .timeline {
  top: 96px !important;
  left: 1104px !important;
  width: 690px !important;
  transform: none !important;
}

.thanks-layout .timeline span {
  width: 370px !important;
}

.thanks-layout h2 {
  left: 960px !important;
  top: 488px !important;
  font-size: 184px !important;
  transform: translate(-50%, -50%) !important;
}

.thanks-layout p:not(.timeline) {
  left: 960px !important;
  top: 646px !important;
  font-size: 42px !important;
  transform: translate(-50%, -50%) !important;
}

.thanks-layout img {
  right: 58px !important;
  bottom: -144px !important;
  width: 840px !important;
  max-height: none !important;
  transform: none !important;
}
