* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050a12;
  color: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
}

a {
  color: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 54px 7vw 86px;
  background:
    radial-gradient(circle at 72% 28%, rgba(0, 221, 255, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(2, 7, 14, 0.94) 0%, rgba(4, 13, 24, 0.78) 45%, rgba(4, 15, 27, 0.22) 100%),
    url("/portfolio-assets/portfolio_hero_bg.webp") center center / cover no-repeat;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 140px);
  max-width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7f4ff;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.32);
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(238, 246, 255, 0.86);
  font-size: 20px;
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-width: 166px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: #f7fbff;
  color: #111b25;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.secondary {
  min-width: 216px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
}

.work-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin-top: 44px;
}

.work-strip article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 18, 29, 0.46);
  backdrop-filter: blur(18px);
}

.work-strip h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.work-strip p {
  margin: 10px 0 0;
  color: rgba(226, 238, 248, 0.74);
  font-size: 13px;
  line-height: 1.5;
}

.records {
  position: absolute;
  left: 7vw;
  right: 7vw;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  color: rgba(236, 244, 252, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.record-line,
.police-record {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.records a {
  color: rgba(236, 244, 252, 0.86);
  text-underline-offset: 4px;
}

.police-record {
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  text-decoration: none;
  white-space: nowrap;
}

.police-record img {
  width: 16px;
  height: 18px;
  flex: 0 0 auto;
}

.sep {
  opacity: 0.55;
}

.debug-page {
  min-height: 100vh;
  padding: 48px 7vw 72px;
  background: #f5f7fb;
  color: #13202d;
}

.debug-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.debug-nav a {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d8e0ea;
  color: #26394d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.debug-nav a:last-child {
  background: #162333;
  color: #fff;
}

.debug-header {
  margin-top: 70px;
}

.debug-header .kicker {
  color: #397c86;
  font-size: 13px;
  font-weight: 850;
}

.debug-header h1 {
  margin-top: 16px;
  color: #13202d;
  text-shadow: none;
  font-size: 52px;
}

.debug-header p {
  max-width: 760px;
  color: #607080;
  font-size: 18px;
  line-height: 1.72;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.debug-card {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(34, 53, 73, 0.08);
}

.debug-card small {
  color: #2c7580;
  font-weight: 850;
}

.debug-card h2 {
  margin: 24px 0 0;
  font-size: 22px;
}

.debug-card p {
  min-height: 112px;
  color: #607080;
  font-size: 15px;
  line-height: 1.62;
}

@media (max-width: 720px) {
  .page {
    padding: 42px 28px 166px;
    background:
      radial-gradient(circle at 70% 20%, rgba(0, 221, 255, 0.18), transparent 32%),
      linear-gradient(180deg, rgba(3, 8, 16, 0.72) 0%, rgba(3, 9, 18, 0.84) 44%, rgba(3, 9, 18, 0.94) 100%),
      url("/portfolio-assets/portfolio_hero_bg_mobile.webp") center center / cover no-repeat;
  }

  .hero {
    min-height: calc(100vh - 230px);
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .work-strip,
  .debug-grid {
    grid-template-columns: 1fr;
  }

  .records {
    left: 28px;
    right: 28px;
    bottom: 26px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }

  .debug-page {
    padding: 36px 24px 64px;
  }

  .debug-nav {
    justify-content: space-between;
  }

  .debug-header h1 {
    font-size: 40px;
  }
}
