:root {
  --ink: #10151c;
  --ink-soft: #48515d;
  --muted: #66717d;
  --paper: #f4f5f2;
  --white: #ffffff;
  --line: #d7dcd8;
  --blue: #2155e8;
  --blue-dark: #102d8b;
  --acid: #d8f35d;
  --orange: #ff865c;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(21, 31, 45, 0.12);
  --sans: "Segoe UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(216, 243, 93, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 52%, rgba(33, 85, 232, 0.08), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.45;
  overflow-x: clip;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.36;
}

body::before {
  top: 28%;
  left: -230px;
  background: radial-gradient(circle, rgba(255, 134, 92, 0.12), transparent 68%);
}

body::after {
  right: -220px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(121, 107, 212, 0.12), transparent 68%);
}

::selection {
  color: var(--white);
  background: var(--blue);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-year {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.topnav {
  display: flex;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 13px;
}

.topnav a,
.topbar-cta {
  transition: color 160ms ease;
}

.topnav a:hover,
.topbar-cta:hover {
  color: var(--blue);
}

.topbar-cta {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.language-toggle {
  padding: 7px 10px;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.language-toggle:hover {
  border-color: var(--blue);
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.06em;
  line-height: 1.04;
}

h1 {
  max-width: 630px;
  margin-bottom: 25px;
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 720;
}

h1 span,
h2 span {
  color: var(--blue);
}

html:lang(zh-CN) .hero h1 span {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
}

h3 {
  letter-spacing: -0.035em;
}

.hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: 1fr 1.05fr;
  gap: 45px;
  align-items: center;
  padding: 68px 0 64px;
}

.hero-sub {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-tags {
  margin-bottom: 34px;
}

.hero-tags span,
.chip-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.primary-button {
  display: inline-flex;
  gap: 18px;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 18% 88%, rgba(216, 243, 93, 0.42), transparent 19rem);
}

.hero-art {
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 13, 38, 0.18), rgba(3, 13, 38, 0.02)),
    url("./assets/hero-tech-network-v1.png") center / cover no-repeat;
}

.hero-art::before {
  background:
    linear-gradient(110deg, rgba(4, 14, 39, 0.2), transparent 46%),
    radial-gradient(circle at 15% 85%, rgba(216, 243, 93, 0.14), transparent 18rem);
}

.hero-art-glow {
  position: absolute;
  z-index: 1;
  right: 12%;
  bottom: 16%;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(216, 243, 93, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(216, 243, 93, 0.22);
}

.hero-art-glow::after {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(101, 217, 255, 0.65);
  border-radius: 50%;
  content: "";
}

.hero-art-lines {
  position: absolute;
  z-index: 1;
  inset: 9% 8%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  opacity: 0.8;
}

.hero-art-lines::before,
.hero-art-lines::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.42);
}

.hero-art-lines::before {
  top: 18%;
  right: 14%;
  width: 1px;
  height: 62%;
}

.hero-art-lines::after {
  top: 52%;
  right: 14%;
  left: 10%;
  height: 1px;
}

.hero-art-mark {
  position: absolute;
  z-index: 2;
  bottom: 12%;
  left: 9%;
  color: var(--white);
}

.hero-art-mark span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-art-mark strong {
  display: block;
  font-size: clamp(24px, 3.8vw, 52px);
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.hero-art-mark em {
  color: var(--acid);
  font-style: normal;
}

.hero-art-chip {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 8%;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.dot-red {
  background: #ff6d6d;
}

.dot-yellow {
  background: #f4c94c;
}

.dot-green {
  background: #6bc87c;
}

.tiny-chart {
  width: 100%;
  height: 55px;
  margin: 8px 0 12px;
}

.tiny-chart path:first-child {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
}

.tiny-chart .chart-fill {
  fill: rgba(33, 85, 232, 0.12);
  stroke: none;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-row > div {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.proof-row > div:last-child {
  border-right: 0;
}

.proof-row strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: -0.08em;
}

.proof-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.work-section,
.skills-section,
.process-section {
  padding: 120px 0 0;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.section-intro h2 {
  max-width: 710px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.work-card-large {
  grid-column: span 2;
}

.work-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.image-visual {
  isolation: isolate;
  padding: 0;
  background: #081525;
}

.image-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.image-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.26), transparent 45%),
    linear-gradient(0deg, rgba(4, 12, 24, 0.38), transparent 36%);
  content: "";
  pointer-events: none;
}

.image-visual .visual-kicker {
  z-index: 3;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(7, 16, 30, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.work-card:hover .image-visual img {
  transform: scale(1.035);
}

.website-visual img {
  object-position: center center;
}

.production-visual img {
  object-position: center center;
}

.billing-visual img {
  object-position: center center;
}

.video-visual img {
  object-position: center center;
}

.hr-visual img {
  object-position: center center;
}

.visual-kicker {
  position: absolute;
  z-index: 5;
  top: 19px;
  left: 21px;
  color: rgba(16, 21, 28, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.work-card-dark {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.work-card-dark .visual-kicker,
.work-card-dark .work-status {
  color: #a7b1be;
}

.work-card-dark .status-video {
  color: #b26700;
}

.work-card-dark .status-research {
  color: #6657b9;
}

.work-card-dark .work-copy {
  color: var(--ink);
  background: var(--white);
}

.work-card-dark .work-copy p:not(.work-status) {
  color: var(--ink-soft);
}

.work-card-dark .work-number {
  color: var(--blue);
}

.work-card-dark .chip-row span {
  color: var(--ink-soft);
  border-color: var(--line);
}

.work-copy {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 25px 27px 29px;
}

.work-number {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.work-status {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.status-live {
  color: #4d8b28;
}

.status-research {
  color: #796bd4;
}

.status-video {
  color: var(--orange);
}

.work-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.02;
}

.work-copy p:not(.work-status) {
  max-width: 540px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.work-card-dark .work-copy p:not(.work-status) {
  color: var(--ink-soft);
}

.card-link {
  display: block;
  padding: 0 27px 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.skills-section {
  padding-top: 130px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.skill-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.skill-card > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
}

.skill-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.tech-line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #65707c;
  font-family: var(--mono);
  font-size: 10px;
}

.tech-line span {
  margin-right: auto;
  color: var(--blue);
  font-weight: 700;
}

.tech-line b {
  color: var(--ink-soft);
  font-weight: 500;
}

.process-section {
  position: relative;
  padding-top: 88px;
  isolation: isolate;
}

.process-section::before {
  position: absolute;
  z-index: -1;
  top: 38px;
  right: -10px;
  color: rgba(33, 85, 232, 0.045);
  content: "04";
  font-family: var(--mono);
  font-size: clamp(130px, 20vw, 260px);
  font-weight: 800;
  letter-spacing: -0.14em;
  line-height: 0.8;
}

.process-head {
  margin-bottom: 46px;
}

.process-head h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.process-line > div {
  position: relative;
  min-height: 145px;
  padding: 20px 18px 18px 0;
  border-right: 1px solid var(--line);
}

.process-line > div + div {
  padding-left: 18px;
}

.process-line > div:last-child {
  border-right: 0;
}

.process-line strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
}

.process-line span,
.process-line small {
  display: block;
}

.process-line span {
  margin-top: 36px;
  font-size: 18px;
  font-weight: 700;
}

.process-line small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 50px;
  align-items: end;
  margin-top: 120px;
  padding: 66px 0 90px;
  border-top: 1px solid var(--ink);
}

.contact-copy h2 {
  font-size: clamp(42px, 6vw, 74px);
}

.contact-copy > p:last-child {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
}

.contact-panel span,
.contact-panel strong,
.contact-panel small {
  display: block;
}

.contact-panel span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.contact-panel strong {
  margin-top: 9px;
  font-size: 13px;
}

.contact-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.contact-panel .primary-button {
  flex: 0 0 auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 21px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-visual {
    min-height: 490px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 30px, 1240px);
  }

  .topbar {
    height: 70px;
  }

  .topnav {
    display: none;
  }

  .brand-name {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 54px;
  }

  h1 {
    font-size: 50px;
  }

  html:lang(zh-CN) .hero h1 span {
    white-space: normal;
  }

  .hero-visual {
    min-height: 405px;
    border-radius: 20px;
  }

  .proof-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-row > div:nth-child(2) {
    border-right: 0;
  }

  .proof-row > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .work-section,
  .skills-section,
  .process-section {
    padding-top: 82px;
  }

  .section-intro {
    display: block;
    margin-bottom: 30px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card-large {
    grid-column: auto;
  }

  .work-visual {
    min-height: 245px;
  }

  .work-copy {
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 21px 20px 24px;
  }

  .card-link {
    padding: 0 20px 21px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 205px;
  }

  .skill-icon {
    margin-bottom: 24px;
  }

  .tech-line {
    gap: 12px;
  }

  .tech-line span {
    flex-basis: 100%;
  }

  .process-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line > div:nth-child(2) {
    border-right: 0;
  }

  .process-line > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-line > div + div {
    padding-left: 14px;
  }

  .process-line > div:nth-child(odd) {
    padding-left: 0;
  }

  .contact-section {
    gap: 30px;
    margin-top: 80px;
    padding-top: 58px;
  }

  .contact-panel {
    display: block;
  }

  .contact-panel .primary-button {
    width: 100%;
    margin-top: 20px;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
  }

  .footer span + span {
    margin-top: 7px;
  }
}

.work-visual.image-visual {
  display: block;
  height: 300px;
  min-height: 0;
  padding: 0;
  background: #081525;
}

.work-card-large .work-visual.image-visual {
  height: 360px;
}

.image-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.image-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(6, 17, 32, 0.28), transparent 44%),
    radial-gradient(circle at 82% 18%, rgba(121, 224, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(6, 17, 32, 0.05), rgba(6, 17, 32, 0.08));
  content: "";
  pointer-events: none;
}

.image-visual::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.18), transparent 38%),
    linear-gradient(0deg, rgba(4, 12, 24, 0.62), transparent 42%);
  content: "";
  pointer-events: none;
}

.image-visual .visual-kicker {
  top: 18px;
  left: 18px;
  z-index: 4;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(7, 16, 30, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.website-visual img {
  object-position: 66% center;
}

.production-visual img {
  object-position: 50% center;
}

.billing-visual img {
  object-position: 50% center;
}

.video-visual img {
  object-position: 62% center;
}

.hr-visual img {
  object-position: 64% center;
}

.skill-icon {
  position: relative;
  display: grid !important;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  background-color: #102342 !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 14px 28px rgba(21, 31, 45, 0.14);
}

.skill-icon::before {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.skill-icon::after {
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  content: "";
  transform: rotate(-8deg);
}

.skill-card:nth-child(1) .skill-icon {
  background-image:
    linear-gradient(135deg, rgba(33, 85, 232, 0.86), rgba(13, 35, 91, 0.3)),
    url("./assets/card-workflow-automation-v1.png");
}

.skill-card:nth-child(2) .skill-icon {
  background-image:
    linear-gradient(135deg, rgba(33, 85, 232, 0.82), rgba(13, 35, 91, 0.25)),
    url("./assets/card-semiconductor-thermal-v1.png");
}

.skill-card:nth-child(3) .skill-icon {
  background-image:
    linear-gradient(135deg, rgba(7, 28, 51, 0.82), rgba(33, 85, 232, 0.24)),
    url("./assets/hero-tech-network-v1.png");
}

.skill-card:nth-child(4) .skill-icon {
  background-image:
    linear-gradient(135deg, rgba(30, 35, 76, 0.84), rgba(121, 107, 212, 0.25)),
    url("./assets/card-peoplehub-hr-v1.png");
}

.skill-card:nth-child(5) .skill-icon {
  background-image:
    linear-gradient(135deg, rgba(56, 28, 83, 0.8), rgba(255, 134, 92, 0.28)),
    url("./assets/card-ai-video-production-v1.png");
}

.skill-card:nth-child(1) .skill-icon::before {
  content: "01";
}

.skill-card:nth-child(2) .skill-icon::before {
  content: "02";
}

.skill-card:nth-child(3) .skill-icon::before {
  content: "03";
}

.skill-card:nth-child(4) .skill-icon::before {
  content: "04";
}

.skill-card:nth-child(5) .skill-icon::before {
  content: "05";
}

.skill-icon i {
  display: none !important;
}

.skill-card p {
  font-size: 11px;
  line-height: 1.55;
}

.process-line small,
.footer {
  font-size: 10px;
}

.contact-status {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  color: #1a7250 !important;
  background: #e8f7ee;
  border: 1px solid #b8e0c7;
  border-radius: 999px;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.contact-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #28a56c;
  box-shadow: 0 0 0 4px rgba(40, 165, 108, 0.12);
  content: "";
}

@media (max-width: 900px) {
  .work-card-large .work-visual.image-visual {
    height: 330px;
  }
}

@media (max-width: 620px) {
  .work-visual.image-visual {
    height: 230px;
  }

  .work-card-large .work-visual.image-visual {
    height: 260px;
  }

  .image-visual .visual-kicker {
    top: 14px;
    left: 14px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .skill-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
  }

  .contact-status {
    margin-top: 18px;
  }
}

.topbar {
  height: 72px;
}

.hero {
  min-height: 520px;
  gap: 32px;
  padding: 46px 0 44px;
}

.hero-sub {
  margin-bottom: 16px;
  font-size: 16px;
}

.hero-tags {
  margin-bottom: 24px;
}

.primary-button {
  min-height: 44px;
  padding: 0 16px;
}

.hero-visual {
  min-height: 420px;
  border-radius: 24px;
}

.proof-row > div {
  min-height: 68px;
  padding: 10px 16px;
}

.work-section,
.skills-section,
.process-section {
  padding-top: 72px;
}

.section-intro {
  margin-bottom: 28px;
}

.section-intro h2 {
  max-width: 650px;
  font-size: clamp(31px, 3.8vw, 48px);
}

.work-grid {
  gap: 14px;
}

.work-visual.image-visual {
  height: 250px;
}

.work-card-large .work-visual.image-visual {
  height: 300px;
}

.work-copy {
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px 22px 20px;
}

.work-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.4vw, 27px);
}

.work-copy p:not(.work-status) {
  margin-bottom: 11px;
  font-size: 13px;
}

.chip-row {
  gap: 5px;
}

.chip-row span {
  padding: 6px 8px;
  font-size: 9px;
}

.card-link {
  padding: 0 22px 18px;
}

.skills-section {
  padding-top: 78px;
}

.skill-grid {
  gap: 10px;
}

.skill-card {
  min-height: 190px;
  padding: 18px;
}

.skill-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
}

.skill-card h3 {
  margin: 9px 0 6px;
  font-size: 17px;
}

.skill-card p {
  font-size: 10px;
  line-height: 1.45;
}

.tech-line {
  gap: 14px;
  margin-top: 18px;
  padding: 14px 0;
}

.process-section {
  padding-top: 62px;
}

.process-head {
  margin-bottom: 28px;
}

.process-head h2 {
  font-size: clamp(31px, 3.8vw, 46px);
}

.process-line > div {
  min-height: 112px;
  padding: 14px 14px 14px 0;
}

.process-line > div + div {
  padding-left: 14px;
}

.process-line span {
  margin-top: 24px;
  font-size: 16px;
}

.contact-section {
  gap: 32px;
  margin-top: 78px;
  padding: 48px 0 62px;
}

.contact-copy h2 {
  font-size: clamp(38px, 5.5vw, 64px);
}

.contact-copy > p:last-child {
  margin-top: 16px;
  font-size: 15px;
}

.contact-panel {
  gap: 16px;
  padding: 18px;
}

.contact-email {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.contact-email:hover {
  color: var(--blue);
}

.footer {
  padding: 18px 0 24px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    gap: 28px;
    padding: 42px 0 38px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .work-card-large .work-visual.image-visual {
    height: 280px;
  }

  .skill-card {
    min-height: 180px;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 30px, 1240px);
  }

  .topbar {
    height: 64px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 9px;
  }

  .brand-year {
    font-size: 9px;
  }

  .language-toggle {
    padding: 6px 9px;
    font-size: 9px;
  }

  .topbar-cta {
    font-size: 10px;
  }

  .hero {
    padding: 46px 0 34px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 42px;
    line-height: 0.98;
  }

  html:lang(zh-CN) .hero h1 span {
    letter-spacing: -0.08em;
  }

  .hero-sub {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .hero-tags {
    margin-bottom: 20px;
  }

  .hero-tags span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .hero-visual {
    min-height: 310px;
    border-radius: 20px;
  }

  .hero-art-mark {
    bottom: 11%;
    left: 9%;
  }

  .hero-art-mark span {
    margin-bottom: 10px;
    font-size: 8px;
  }

  .hero-art-mark strong {
    font-size: 30px;
  }

  .hero-art-chip {
    padding: 7px 9px;
    font-size: 8px;
  }

  .proof-row > div {
    min-height: 58px;
    padding: 9px 14px;
  }

  .proof-row > div:nth-child(3) {
    grid-column: span 2;
    border-right: 0;
  }

  .proof-row strong {
    font-size: 19px;
  }

  .proof-row span {
    font-size: 11px;
  }

  .work-section,
  .skills-section,
  .process-section {
    padding-top: 60px;
  }

  .section-intro {
    margin-bottom: 22px;
  }

  .section-intro h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .work-visual.image-visual {
    height: 190px;
  }

  .work-card-large .work-visual.image-visual {
    height: 220px;
  }

  .work-copy {
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 16px 18px 18px;
  }

  .work-copy h3 {
    margin-bottom: 7px;
    font-size: 22px;
  }

  .work-copy p:not(.work-status) {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .card-link {
    padding: 0 18px 17px;
  }

  .skills-section {
    padding-top: 64px;
  }

  .skill-card {
    min-height: 166px;
    padding: 16px;
  }

  .skill-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
  }

  .skill-card h3 {
    font-size: 17px;
  }

  .tech-line {
    gap: 10px;
    margin-top: 16px;
    padding: 13px 0;
  }

  .process-section {
    padding-top: 56px;
  }

  .process-head {
    margin-bottom: 22px;
  }

  .process-head h2 {
    font-size: 34px;
  }

  .process-line > div {
    min-height: 100px;
    padding: 13px 12px 13px 0;
  }

  .process-line > div + div {
    padding-left: 12px;
  }

  .process-line span {
    margin-top: 21px;
    font-size: 15px;
  }

  .process-line small {
    font-size: 9px;
  }

  .contact-section {
    gap: 24px;
    margin-top: 62px;
    padding: 42px 0 48px;
  }

  .contact-copy h2 {
    font-size: 42px;
  }

  .contact-copy > p:last-child {
    margin-top: 13px;
    font-size: 14px;
  }

  .contact-panel {
    padding: 16px;
  }

  .contact-email {
    font-size: 14px;
  }

  .contact-status {
    margin-top: 16px;
  }

  .footer {
    padding: 16px 0 22px;
    font-size: 9px;
  }
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 12px;
  height: 64px;
  margin-top: 12px;
  padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 21, 28, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(21, 31, 45, 0.09);
}

.brand-name {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.topnav {
  gap: 4px;
  padding: 4px;
  background: #eef1ef;
  border: 1px solid rgba(16, 21, 28, 0.05);
  border-radius: 12px;
}

.topnav a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.topnav a:hover {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(21, 31, 45, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  background: var(--white);
  border-color: rgba(16, 21, 28, 0.12);
}

.topbar-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--white);
  background: var(--ink);
  border-radius: 11px;
  font-size: 11px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.topbar-cta:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-1px);
}

.hero {
  padding-top: 48px;
}

.hero-sub {
  margin-bottom: 26px;
}

.process-section::before {
  display: none;
}

.process-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.process-head h2 {
  max-width: 660px;
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(110, 155, 255, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(110deg, rgba(5, 16, 35, 0.95), rgba(10, 28, 58, 0.82)),
    url("./assets/hero-tech-network-v1.png") center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(10, 27, 52, 0.16);
  isolation: isolate;
}

.process-flow::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 243, 93, 0.7), rgba(82, 188, 255, 0.76), transparent);
  content: "";
}

.process-flow::after {
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 85, 232, 0.28), transparent 68%);
  content: "";
}

.process-node {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 15, 32, 0.82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.process-node:not(:last-child)::after {
  position: absolute;
  z-index: 4;
  top: calc(50% - 15px);
  right: -30px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #10203c;
  background: var(--acid);
  border: 4px solid #0a1b36;
  border-radius: 50%;
  content: "→";
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.process-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--acid);
  background: rgba(216, 243, 93, 0.1);
  border: 1px solid rgba(216, 243, 93, 0.34);
  border-radius: 14px;
}

.process-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.process-node-copy span,
.process-node-copy strong,
.process-node-copy small {
  display: block;
}

.process-node-copy span {
  margin-bottom: 10px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-node-copy strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.process-node-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 10px;
}

.tech-line b {
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .process-head {
    display: block;
  }

  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
  }

  .process-flow::before,
  .process-node:not(:last-child)::after {
    display: none;
  }

  .process-node {
    min-height: 166px;
  }
}

@media (max-width: 620px) {
  .topbar {
    top: 8px;
    height: 58px;
    margin-top: 8px;
    padding: 0 8px 0 14px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 20px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-toggle {
    width: 36px;
    height: 36px;
  }

  .topbar-cta {
    min-height: 36px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 10px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-sub {
    margin-bottom: 21px;
  }

  .process-head {
    margin-bottom: 20px;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px 20px 54px;
    border-radius: 20px;
  }

  .process-flow::before {
    display: block;
    top: 38px;
    right: auto;
    bottom: 38px;
    left: 30px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--acid), rgba(82, 188, 255, 0.74), transparent);
  }

  .process-node {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .process-node::before {
    position: absolute;
    top: calc(50% - 5px);
    left: -29px;
    width: 10px;
    height: 10px;
    background: var(--acid);
    border: 3px solid #0a1b36;
    border-radius: 50%;
    content: "";
  }

  .process-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .process-icon svg {
    width: 22px;
    height: 22px;
  }

  .process-node-copy span {
    margin-bottom: 6px;
    font-size: 8px;
  }

  .process-node-copy strong {
    font-size: 18px;
  }

  .process-node-copy small {
    font-size: 9px;
  }

  .tech-line b {
    padding: 5px 8px;
  }
}

/* -------------------------------------------------------------------------- */
/* Ambient AI background v0.2                                                  */
/* A lightweight, section-aware visual layer. It stays non-interactive and     */
/* uses transparent cutouts plus CSS motion instead of a heavy video asset.    */
/* -------------------------------------------------------------------------- */

.site-shell {
  position: relative;
  z-index: 2;
}

.ambient-ai-layer {
  position: fixed;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.ambient-ai-glow {
  position: absolute;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.28;
  transition: opacity 450ms ease, transform 450ms ease;
}

.ambient-ai-glow--left {
  left: clamp(-220px, calc((100vw - 1240px) / 2 - 180px), 40px);
  background: radial-gradient(circle, rgba(255, 134, 92, 0.18), transparent 68%);
}

.ambient-ai-glow--right {
  right: clamp(-210px, calc((100vw - 1240px) / 2 - 170px), 40px);
  background: radial-gradient(circle, rgba(33, 85, 232, 0.18), transparent 68%);
}

.ambient-ai-figure {
  position: absolute;
  bottom: -24px;
  line-height: 0;
  transform-origin: bottom center;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 420ms ease;
  will-change: opacity, transform;
}

.ambient-ai-figure picture,
.ambient-ai-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ambient-ai-figure img {
  filter: drop-shadow(0 20px 22px rgba(16, 21, 28, 0.16));
}

.ambient-ai-figure--office {
  left: clamp(-104px, calc((100vw - 1240px) / 2 - 80px), 40px);
  width: clamp(190px, 17vw, 238px);
  opacity: 0.18;
  transform: translateX(-78px) scale(0.82);
  filter: saturate(0.72);
}

.ambient-ai-figure--ai {
  right: clamp(-74px, calc((100vw - 1240px) / 2 - 78px), 40px);
  width: clamp(180px, 18vw, 270px);
  opacity: 0.92;
  transform: translateX(0) scale(1);
  filter: saturate(0.98);
}

.ambient-ai-figure--office picture {
  animation: ambient-office-busy 3.6s ease-in-out infinite;
  transform-origin: 50% 92%;
}

.ambient-ai-figure--ai picture {
  animation: ambient-ai-breathe 4.8s ease-in-out infinite;
  transform-origin: 50% 92%;
}

.ambient-ai-caption {
  position: absolute;
  right: 35%;
  bottom: 30%;
  padding: 6px 8px;
  color: rgba(16, 21, 28, 0.76);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 21, 28, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(16, 21, 28, 0.08);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.ambient-ai-caption--office {
  right: 13%;
  bottom: 42%;
  color: #9a4f35;
  background: rgba(255, 247, 242, 0.88);
  border-color: rgba(255, 134, 92, 0.36);
}

.ambient-ai-caption--ai {
  color: #126c63;
  background: rgba(230, 255, 248, 0.9);
  border-color: rgba(98, 215, 193, 0.6);
  animation: ambient-status-blink 3.2s ease-in-out infinite;
}

.ambient-ai-stream {
  position: absolute;
  top: -34%;
  right: 42%;
  width: 168px;
  height: 132px;
  overflow: hidden;
  opacity: 0.9;
  transition: opacity 350ms ease, transform 420ms ease;
}

.ambient-ai-stream span {
  position: absolute;
  right: 0;
  bottom: -24px;
  display: block;
  padding: 7px 9px;
  color: #b7fff0;
  background: rgba(5, 24, 41, 0.78);
  border: 1px solid rgba(98, 215, 193, 0.64);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(5, 24, 41, 0.16);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  animation: ambient-completion-up 5.8s linear infinite;
}

.ambient-ai-stream span:nth-child(2) {
  right: 18px;
  animation-delay: 1.9s;
  opacity: 0.76;
}

.ambient-ai-stream span:nth-child(3) {
  right: -8px;
  animation-delay: 3.8s;
  opacity: 0.54;
}

.ambient-ai-layer[data-ambient-state="hero"] .ambient-ai-figure--office {
  opacity: 0.18;
  transform: translateX(-78px) scale(0.82);
}

.ambient-ai-layer[data-ambient-state="hero"] .ambient-ai-figure--ai {
  opacity: 0.92;
  transform: translateX(0) scale(1);
}

.ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--office {
  opacity: 0.72;
  transform: translateX(-24px) scale(0.72);
  filter: saturate(0.86);
}

.ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--ai {
  opacity: 0.72;
  transform: translateX(22px) scale(0.78);
  filter: saturate(0.82);
}

.ambient-ai-layer[data-ambient-state="content"] .ambient-ai-stream {
  opacity: 0.62;
  transform: scale(0.82);
  transform-origin: right bottom;
}

.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-figure--office {
  opacity: 0.1;
  transform: translateX(-112px) scale(0.48);
  filter: saturate(0.46) brightness(0.9);
}

.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-figure--ai {
  opacity: 0.28;
  transform: translateX(48px) scale(0.58);
  filter: saturate(0.52) brightness(0.86);
}

.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-stream {
  opacity: 0.22;
  transform: scale(0.62);
  transform-origin: right bottom;
}

.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-figure--office {
  opacity: 0.04;
  transform: translateX(-130px) scale(0.42);
}

.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-figure--ai {
  opacity: 0.12;
  transform: translateX(66px) scale(0.46);
}

.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-stream {
  opacity: 0;
}

@keyframes ambient-office-busy {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  32% { transform: translate3d(0, -2px, 0) rotate(-0.35deg); }
  68% { transform: translate3d(1px, 0, 0) rotate(0.3deg); }
}

@keyframes ambient-ai-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -3px, 0) rotate(0.25deg); }
}

@keyframes ambient-status-blink {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes ambient-completion-up {
  0% { transform: translate3d(0, 18px, 0) scale(0.92); opacity: 0; }
  15% { opacity: 0.92; }
  78% { opacity: 0.72; }
  100% { transform: translate3d(-10px, -128px, 0) scale(1.04); opacity: 0; }
}

@media (max-width: 900px) {
  .ambient-ai-figure--office {
    left: -88px;
    width: 190px;
  }

  .ambient-ai-figure--ai {
    right: -62px;
    width: 220px;
  }

  .ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--office {
    transform: translateX(-32px) scale(0.66);
  }
}

@media (max-width: 620px) {
  .ambient-ai-layer {
    z-index: 3;
  }

  .ambient-ai-glow {
    width: 230px;
    height: 230px;
    bottom: -100px;
    opacity: 0.2;
  }

  .ambient-ai-glow--left {
    left: -170px;
  }

  .ambient-ai-glow--right {
    right: -150px;
  }

  .ambient-ai-figure--office {
    display: none;
  }

  .ambient-ai-figure--ai {
    right: 0;
    bottom: 92px;
    width: 160px;
    opacity: 0.82;
    transform: translateX(0) scale(1);
  }

  .ambient-ai-caption--ai {
    right: 20%;
    bottom: 35%;
    padding: 5px 7px;
    font-size: 7px;
  }

  .ambient-ai-stream {
    display: none;
  }

  .ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--ai {
    bottom: -8px;
    opacity: 0.5;
    transform: translateX(20px) scale(0.72);
  }

  .ambient-ai-layer[data-ambient-state="process"] .ambient-ai-figure--ai {
    bottom: -8px;
    opacity: 0.18;
    transform: translateX(34px) scale(0.58);
  }

  .ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-figure--ai {
    bottom: -8px;
    opacity: 0.08;
    transform: translateX(42px) scale(0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-ai-figure picture,
  .ambient-ai-caption--ai,
  .ambient-ai-stream span {
    animation: none !important;
  }

  .ambient-ai-figure,
  .ambient-ai-stream {
    transition: none !important;
  }
}

/* v0.4 uses actual multi-frame animated WebP assets. Keep the picture element
   itself stationary so the motion comes from the image frames, not a CSS
   transform applied to a static picture. */
.ambient-ai-figure--office picture,
.ambient-ai-figure--ai picture {
  animation: none !important;
}

/* v0.5 cleanup: figure artwork carries its own visual story; no HTML
   annotation badges or generated sweat overlays should be rendered. */
.ambient-ai-caption,
.ambient-ai-task-label,
.ambient-ai-relax-label,
.ambient-ai-stream,
.ambient-office-sweat {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Ambient AI background v0.3                                                  */
/* Full-head crop + explicit activity layers. Both desktop characters keep    */
/* comparable visual weight; the difference is expressed through motion.      */
/* -------------------------------------------------------------------------- */

.ambient-ai-figure {
  bottom: -26px;
}

.ambient-ai-figure--office {
  left: clamp(-54px, calc((100vw - 1240px) / 2 - 24px), 34px);
  width: clamp(210px, 19vw, 280px);
  opacity: 0.94;
  transform: translateX(-18px) translateY(56px) scale(0.88);
  filter: saturate(0.94);
}

.ambient-ai-figure--ai {
  right: clamp(-20px, calc((100vw - 1240px) / 2 - 20px), 34px);
  width: clamp(220px, 20vw, 300px);
  opacity: 0.96;
  transform: translateX(0) translateY(0) scale(1);
  filter: saturate(1);
}

.ambient-ai-figure--office picture {
  animation: ambient-office-typing 5.4s ease-in-out infinite;
}

.ambient-ai-figure--ai picture {
  animation: ambient-ai-sip 8.2s ease-in-out infinite;
}

.ambient-ai-layer[data-ambient-state="hero"] .ambient-ai-figure--office {
  opacity: 0.94;
  transform: translateX(-18px) translateY(56px) scale(0.88);
}

.ambient-ai-layer[data-ambient-state="hero"] .ambient-ai-figure--ai {
  opacity: 0.96;
  transform: translateX(0) translateY(0) scale(1);
}

.ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--office {
  opacity: 0.9;
  transform: translateX(-14px) translateY(68px) scale(0.82);
  filter: saturate(0.96);
}

.ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--ai {
  opacity: 0.9;
  transform: translateX(18px) translateY(0) scale(0.84);
  filter: saturate(0.92);
}

.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-figure--office {
  opacity: 0.34;
  transform: translateX(-88px) translateY(18px) scale(0.58);
  filter: saturate(0.66) brightness(0.9);
}

.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-figure--ai {
  opacity: 0.34;
  transform: translateX(56px) translateY(14px) scale(0.62);
  filter: saturate(0.66) brightness(0.88);
}

.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-figure--office {
  opacity: 0.14;
  transform: translateX(-122px) translateY(34px) scale(0.48);
}

.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-figure--ai {
  opacity: 0.14;
  transform: translateX(74px) translateY(28px) scale(0.5);
}

.ambient-ai-task-label,
.ambient-ai-relax-label {
  position: absolute;
  z-index: 4;
  padding: 5px 8px;
  border-radius: 999px;
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: opacity 350ms ease, transform 350ms ease;
}

.ambient-ai-task-label {
  top: 34%;
  left: 57%;
  color: #9a4f35;
  background: rgba(255, 247, 242, 0.9);
  border: 1px solid rgba(255, 134, 92, 0.42);
}

.ambient-ai-relax-label {
  top: 18%;
  right: 34%;
  color: #b7fff0;
  background: rgba(5, 24, 41, 0.82);
  border: 1px solid rgba(98, 215, 193, 0.65);
}

.ambient-ai-caption--ai {
  display: none;
}

.ambient-office-keyboard-scan {
  position: absolute;
  z-index: 4;
  left: 31%;
  bottom: 27%;
  width: 24%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 243, 93, 0.22);
  box-shadow: 0 0 12px rgba(216, 243, 93, 0.36);
  animation: ambient-keyboard-scan 2.7s ease-in-out infinite;
}

.ambient-office-keyboard-scan::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 42%;
  content: "";
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  animation: ambient-keyboard-glint 2.7s linear infinite;
}

.ambient-office-sweat {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 13px;
  border: 1px solid rgba(74, 177, 218, 0.8);
  border-radius: 70% 35% 70% 35%;
  background: rgba(113, 220, 247, 0.72);
  box-shadow: 0 4px 10px rgba(52, 164, 211, 0.22);
  opacity: 0;
  transform: rotate(25deg) translateY(5px);
  animation: ambient-sweat-drop 4.8s ease-in-out infinite;
}

.ambient-office-sweat--one {
  top: 15%;
  left: 22%;
}

.ambient-office-sweat--two {
  top: 19%;
  left: 27%;
  width: 6px;
  height: 10px;
  animation-delay: 1.3s;
}

.ambient-office-sweat--three {
  top: 12%;
  left: 29%;
  width: 5px;
  height: 9px;
  animation-delay: 2.7s;
}

.ambient-office-files {
  position: absolute;
  z-index: 4;
  bottom: 20%;
  left: 1%;
  width: 22%;
  height: 26%;
}

.ambient-office-files i {
  position: absolute;
  bottom: 0;
  left: calc(var(--file-index, 0) * 8px);
  display: block;
  width: 42px;
  height: 27px;
  border: 1px solid rgba(16, 21, 28, 0.2);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(226, 231, 229, 0.92)),
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(33, 85, 232, 0.2) 5px 6px);
  box-shadow: 0 5px 8px rgba(16, 21, 28, 0.1);
  opacity: 0;
  transform: translateY(24px) rotate(-5deg);
  animation: ambient-file-arrival 6.4s ease-in-out infinite;
}

.ambient-office-files i:nth-child(1) {
  --file-index: 0;
  animation-delay: 0.8s;
}

.ambient-office-files i:nth-child(2) {
  --file-index: 1;
  animation-delay: 2.2s;
  transform: translateY(24px) rotate(4deg);
}

.ambient-office-files i:nth-child(3) {
  --file-index: 2;
  animation-delay: 3.8s;
  transform: translateY(24px) rotate(-2deg);
}

.ambient-office-files i:nth-child(4) {
  --file-index: 3;
  animation-delay: 5.1s;
  transform: translateY(24px) rotate(6deg);
}

.ambient-ai-steam {
  position: absolute;
  z-index: 4;
  top: 27%;
  left: 59%;
  width: 42px;
  height: 74px;
}

.ambient-ai-steam::before,
.ambient-ai-steam::after,
.ambient-ai-steam {
  pointer-events: none;
}

.ambient-ai-steam--one,
.ambient-ai-steam--two,
.ambient-ai-steam--three {
  position: absolute;
  display: block;
  width: 11px;
  height: 28px;
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px) rotate(12deg);
  animation: ambient-coffee-steam 4.6s ease-out infinite;
}

.ambient-ai-steam--one {
  left: 3px;
  top: 18px;
}

.ambient-ai-steam--two {
  left: 16px;
  top: 6px;
  animation-delay: 1.4s;
}

.ambient-ai-steam--three {
  left: 28px;
  top: 20px;
  animation-delay: 2.8s;
}

.ambient-ai-sip-pulse {
  position: absolute;
  z-index: 4;
  top: 32%;
  left: 58%;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(98, 215, 193, 0.8);
  border-radius: 50%;
  opacity: 0;
  animation: ambient-sip-pulse 8.2s ease-in-out infinite;
}

.ambient-ai-figure--office.is-typing picture {
  animation: ambient-office-typing-burst 2.8s ease-in-out infinite;
}

.ambient-ai-figure--office.is-file-arrival .ambient-office-files i {
  animation-duration: 3.8s;
}

.ambient-ai-figure--ai.is-sipping picture {
  animation: ambient-ai-sip-burst 3.8s ease-in-out infinite;
}

.ambient-ai-figure--ai.is-sipping .ambient-ai-sip-pulse {
  animation-duration: 3.8s;
}

.ambient-ai-figure--ai.is-relaxed .ambient-ai-steam--one,
.ambient-ai-figure--ai.is-relaxed .ambient-ai-steam--two,
.ambient-ai-figure--ai.is-relaxed .ambient-ai-steam--three {
  animation-duration: 5.8s;
}

.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-task-label,
.ambient-ai-layer[data-ambient-state="process"] .ambient-ai-relax-label,
.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-task-label,
.ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-relax-label {
  opacity: 0;
}

@keyframes ambient-office-typing {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  42% { transform: translate3d(0, -1px, 0) rotate(-0.2deg); }
  46% { transform: translate3d(1px, 0, 0) rotate(0.2deg); }
  50% { transform: translate3d(0, -1px, 0) rotate(-0.15deg); }
}

@keyframes ambient-office-typing-burst {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  18% { transform: translate3d(1px, -1px, 0) rotate(0.22deg); }
  25% { transform: translate3d(-1px, 0, 0) rotate(-0.2deg); }
  32% { transform: translate3d(1px, -1px, 0) rotate(0.18deg); }
  39% { transform: translate3d(-1px, 0, 0) rotate(-0.18deg); }
  48% { transform: translate3d(0, -1px, 0) rotate(0.12deg); }
}

@keyframes ambient-ai-sip {
  0%, 55%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  63% { transform: translate3d(0, -1px, 0) rotate(-0.35deg); }
  70% { transform: translate3d(1px, -2px, 0) rotate(0.45deg); }
  77% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes ambient-ai-sip-burst {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  28% { transform: translate3d(0, -1px, 0) rotate(-0.35deg); }
  46% { transform: translate3d(1px, -2px, 0) rotate(0.45deg); }
  64% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes ambient-keyboard-scan {
  0%, 100% { opacity: 0.25; transform: scaleX(0.72); }
  45% { opacity: 0.9; transform: scaleX(1); }
  60% { opacity: 0.35; transform: scaleX(0.78); }
}

@keyframes ambient-keyboard-glint {
  0% { left: -45%; }
  100% { left: 110%; }
}

@keyframes ambient-sweat-drop {
  0%, 62%, 100% { opacity: 0; transform: rotate(25deg) translateY(5px) scale(0.7); }
  68% { opacity: 0.9; }
  84% { opacity: 0.5; transform: rotate(25deg) translateY(-13px) scale(1); }
}

@keyframes ambient-file-arrival {
  0%, 54%, 100% { opacity: 0; transform: translateY(24px) rotate(-5deg) scale(0.88); }
  62% { opacity: 0.92; }
  78% { opacity: 0.92; transform: translateY(0) rotate(-2deg) scale(1); }
  92% { opacity: 0.42; transform: translateY(-2px) rotate(-2deg) scale(1); }
}

@keyframes ambient-coffee-steam {
  0%, 100% { opacity: 0; transform: translateY(12px) rotate(12deg) scale(0.7); }
  20% { opacity: 0.65; }
  72% { opacity: 0.28; transform: translateY(-18px) rotate(-10deg) scale(1); }
}

@keyframes ambient-sip-pulse {
  0%, 52%, 100% { opacity: 0; transform: scale(0.65); }
  65% { opacity: 0.72; transform: scale(1); }
  78% { opacity: 0; transform: scale(1.45); }
}

@media (max-width: 900px) {
  .ambient-ai-figure--office {
    left: -76px;
    width: 220px;
  }

  .ambient-ai-figure--ai {
    right: -60px;
    width: 250px;
  }
}

@media (max-width: 620px) {
  .ambient-ai-figure--office {
    display: none;
  }

  .ambient-ai-figure--ai {
    right: 0;
    bottom: 92px;
    width: 170px;
    opacity: 0.92;
    transform: translateX(0) translateY(0) scale(1);
  }

  .ambient-ai-layer[data-ambient-state="content"] .ambient-ai-figure--ai {
    bottom: -8px;
    opacity: 0.56;
    transform: translateX(18px) translateY(0) scale(0.76);
  }

  .ambient-ai-layer[data-ambient-state="process"] .ambient-ai-figure--ai,
  .ambient-ai-layer[data-ambient-state="contact"] .ambient-ai-figure--ai {
    bottom: -8px;
    opacity: 0.2;
    transform: translateX(34px) translateY(0) scale(0.58);
  }

  .ambient-ai-relax-label,
  .ambient-ai-sip-pulse,
  .ambient-ai-steam {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-ai-figure--office picture,
  .ambient-ai-figure--ai picture,
  .ambient-ai-caption--ai,
  .ambient-ai-stream span,
  .ambient-office-keyboard-scan,
  .ambient-office-keyboard-scan::after,
  .ambient-office-sweat,
  .ambient-office-files i,
  .ambient-ai-steam--one,
  .ambient-ai-steam--two,
  .ambient-ai-steam--three,
  .ambient-ai-sip-pulse {
    animation: none !important;
  }

  .ambient-ai-figure,
  .ambient-ai-stream,
  .ambient-ai-task-label,
  .ambient-ai-relax-label {
    transition: none !important;
  }
}

/* Actual frame animation is embedded in the WebP files. */
.ambient-ai-figure--office picture,
.ambient-ai-figure--ai picture {
  animation: none !important;
}
