:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ececec;
  --surface-2: #d8d8d8;
  --surface-3: #c5c5c5;
  --text: #f4f4f4;
  --muted: #eeeeee;
  --subtle: #a5a9aa;
  --line: #c7ccce;
  --line-soft: rgba(65, 72, 76, 0.22);
  --primary: #00d2ff;
  --primary-strong: #00d2ff;
  --danger: #ffb4ab;
  --header-h: 74px;
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: #ffffff;
}

main {
  background:
    linear-gradient(rgba(70, 78, 82, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 78, 82, 0.13) 1px, transparent 1px),
    #ffffff;
  background-size: 64px 64px, 64px 64px, auto;
}

body.menu-open {
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus-visible {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: clamp(24px, 5vw, 64px);
  z-index: 30;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.96);
  color: var(--primary);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.desktop-nav a:focus:not(:focus-visible),
.nav-cta:focus:not(:focus-visible),
.button:focus:not(:focus-visible),
.menu-toggle:focus:not(:focus-visible),
.mobile-nav a:focus:not(:focus-visible),
.brand:focus:not(:focus-visible),
.footer-links a:focus:not(:focus-visible) {
  outline: none;
}

.desktop-nav a:focus-visible,
.nav-cta:focus-visible,
.button:focus-visible,
.menu-toggle:focus-visible,
.mobile-nav a:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid #3c494e;
  background: rgba(17, 17, 17, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e5e2e1;
}

.site-header .brand {
  grid-column: 1;
  justify-self: start;
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.desktop-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 30px;
  color: #bbc9cf;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
  color: var(--primary-strong);
  border-color: var(--primary-strong);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta {
  grid-column: 3;
  justify-self: end;
  min-width: 96px;
  color: var(--primary);
}

.nav-cta:hover,
.button-primary:hover {
  color: #071114;
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 19;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(18px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    max-height 280ms ease,
    padding 280ms ease,
    border-color 220ms ease;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(60, 73, 78, 0.6);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.menu-open .mobile-nav {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 20px 24px 28px;
  border-bottom-color: var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav {
    transition: none;
  }
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: grid;
  align-items: center;
  margin-bottom: 96px;
  padding: 96px clamp(24px, 5vw, 64px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.82;
  mix-blend-mode: multiply;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(70, 78, 82, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 78, 82, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 245, 0.54), rgba(245, 245, 245, 0.34) 48%, rgba(245, 245, 245, 0.12)),
    rgba(255, 255, 255, 0.06);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(896px, 100%);
  padding-top: 80px;
}

.eyebrow,
.section-code,
.tag,
.project-top p,
.site-footer small,
.footer-links,
.compliance {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 48px;
  height: 1px;
  background: var(--primary);
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  letter-spacing: 0.2em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 0;
  padding: 8px 0 8px 24px;
  border-left: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.hero-copy strong {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.button {
  min-height: 50px;
  padding: 0 32px;
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(74, 82, 86, 0.35);
}

.section {
  width: 100%;
  margin: 0 0 128px;
  padding: 0 clamp(24px, 5vw, 64px);
  background:
    linear-gradient(rgba(70, 78, 82, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 78, 82, 0.13) 1px, transparent 1px),
    #ffffff;
  background-size: 64px 64px, 64px 64px, auto;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #d4d4d4;
}

.section-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 18px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.section-code {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.12em;
}

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

.project-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(60, 73, 78, 0.28);
  border-right-color: rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.5);
  background: rgba(120, 120, 120, 0.72);
  backdrop-filter: blur(12px);
}

.project-card:not(.project-card-featured)::before {
  content: "";
  position: absolute;
  inset: 0 0 60% 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(90, 90, 90, 0.9), rgba(120, 120, 120, 0.76));
  pointer-events: none;
}

.project-card-featured {
  container-type: size;
}

.project-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(13, 13, 13, 0.78), rgba(13, 13, 13, 0.08));
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.project-card:hover .card-visual {
  transform: translateY(-10px);
}

.project-card-featured:hover .card-visual {
  transform: scale(1.05);
}

.project-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(60, 73, 78, 0.45);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.tag-live {
  color: var(--primary);
  border-color: rgba(71, 214, 255, 0.34);
  background: rgba(71, 214, 255, 0.08);
}

h3 {
  max-width: 520px;
  margin: 18px 0 8px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.24;
  letter-spacing: 0;
}

.project-top p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.card-arrow {
  flex: none;
  color: rgba(255, 255, 255, 0.48);
  font-size: 25px;
  transition: color 180ms ease;
}

.project-card:hover .card-arrow {
  color: var(--primary);
}

.card-visual {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 60%;
  transition: transform 700ms ease;
}

.card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(19, 19, 19, 0.4);
  backdrop-filter: blur(2px);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.6;
}

.card-visual.health-visual {
  inset: 0 0 0 auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: clamp(180px, 55%, 279px);
  width: calc(100cqh * 286 / 512);
  height: 100%;
  overflow: visible;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.card-visual.health-visual img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  margin-left: auto;
  object-fit: contain;
  object-position: right center;
  filter: grayscale(1) contrast(1.25);
  opacity: 1;
}

.project-card-featured:hover .card-visual.health-visual {
  transform-origin: right center;
}

.project-card-featured .card-visual::before {
  display: none;
}


.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 48px clamp(24px, 5vw, 64px);
  border-top: 1px solid #3c494e;
  background: #0d0d0d;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
}

.site-footer p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer small {
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 14px 22px;
  max-width: 440px;
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--primary);
}

.compliance {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: right;
}

@media (max-width: 820px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    height: 100svh;
    min-height: 620px;
    padding-bottom: 88px;
  }

  .hero::before {
    background:
      linear-gradient(rgba(70, 78, 82, 0.13) 1px, transparent 1px),
      linear-gradient(90deg, rgba(70, 78, 82, 0.13) 1px, transparent 1px),
      linear-gradient(90deg, rgba(245, 245, 245, 0.56), rgba(245, 245, 245, 0.36)),
      rgba(255, 255, 255, 0.08);
    background-size: 64px 64px, 64px 64px, auto, auto;
  }

  .hero-media img {
    object-position: 60% center;
  }

  .section {
    padding: 0 24px;
  }

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

  .section-bar {
    align-items: start;
    flex-direction: column;
  }

  .project-card {
    height: 500px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .compliance {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 20px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 62px);
  }

  .hero-copy {
    padding-left: 16px;
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .project-top {
    padding: 22px;
  }

  .tag {
    white-space: normal;
  }
}
