:root {
  --bg: #05070b;
  --bg-2: #0a1018;
  --ink: #eef7ff;
  --muted: rgba(238, 247, 255, 0.66);
  --dim: rgba(238, 247, 255, 0.44);
  --cyan: #63e6ff;
  --blue: #2d8dff;
  --amber: #d6a650;
  --line: rgba(99, 230, 255, 0.18);
  --glass: rgba(9, 18, 29, 0.58);
  --glass-strong: rgba(13, 26, 42, 0.82);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.45);
  --display: "Chakra Petch", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(45, 141, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 6% 34%, rgba(99, 230, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--bg), #070b10 52%, #040609);
  color: var(--ink);
  font-family: var(--body);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(238, 247, 255, 0.08);
  background: rgba(5, 7, 11, 0.5);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(99, 230, 255, 0.18), rgba(214, 166, 80, 0.08));
  box-shadow: 0 0 28px rgba(99, 230, 255, 0.18);
  color: var(--cyan);
  font-size: 20px;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.nav-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade,
.tech-grid {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.08);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.tech-grid {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(99, 230, 255, 0.09) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(180deg, rgba(99, 230, 255, 0.07) 1px, transparent 1px) 0 0 / 84px 84px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

.hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.95) 0%, rgba(3, 5, 9, 0.72) 36%, rgba(3, 5, 9, 0.26) 72%),
    linear-gradient(0deg, rgba(3, 5, 9, 0.92) 0%, transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(780px, calc(100% - 40px));
  margin: 0 clamp(20px, 6vw, 88px) clamp(54px, 10vh, 104px);
}

.kicker,
.panel-tag,
.intro-item span,
.card-index,
.section-label {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8em;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(58px, 10vw, 126px);
  font-weight: 700;
  line-height: 0.92;
  text-shadow: 0 0 36px rgba(99, 230, 255, 0.18);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 24px;
  background: rgba(5, 12, 20, 0.48);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 230, 255, 0.62);
  box-shadow: 0 14px 38px rgba(45, 141, 255, 0.22);
}

.button.primary {
  border-color: rgba(99, 230, 255, 0.7);
  background: linear-gradient(135deg, rgba(99, 230, 255, 0.24), rgba(45, 141, 255, 0.3));
  color: #f8fdff;
}

.signal-panel {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(26px, 8vh, 86px);
  width: min(330px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--dim);
  font-family: var(--display);
  font-size: 13px;
}

.signal-row strong {
  color: var(--ink);
}

.signal-meter {
  height: 6px;
  margin-top: 22px;
  overflow: hidden;
  background: rgba(238, 247, 255, 0.1);
}

.signal-meter i {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--amber));
  animation: pulseWidth 2.8s ease-in-out infinite alternate;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(5, 9, 14, 0.96);
  border-bottom: 1px solid var(--line);
}

.intro-item {
  min-height: 210px;
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.intro-item:last-child {
  border-right: 0;
}

.intro-item strong {
  display: block;
  margin: 18px 0 12px;
  font-size: 42px;
  font-weight: 900;
}

.intro-item p,
.work-card p,
.section-main p {
  color: var(--muted);
  line-height: 1.9;
}

.section {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(64px, 10vw, 130px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(99, 230, 255, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, var(--bg-2), #05080d);
}

.section-label {
  padding-top: 12px;
}

.section-main {
  max-width: 940px;
}

.section-main h2 {
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
}

.section-main p {
  max-width: 790px;
  font-size: 20px;
}

.work-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 230, 255, 0.12), transparent 26rem),
    #05070b;
}

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

.work-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--glass-strong), rgba(6, 11, 18, 0.74));
  box-shadow: var(--shadow);
}

.work-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.work-card h3 {
  margin: 54px 0 18px;
  font-size: 28px;
}

.work-card:nth-child(2) {
  transform: translateY(28px);
}

.work-card:nth-child(3) .card-index {
  color: var(--amber);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 6vw, 88px);
  background: #030507;
  color: var(--dim);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--cyan);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(18px, -10px, 0);
  }
}

@keyframes pulseWidth {
  from {
    width: 58%;
  }
  to {
    width: 92%;
  }
}

@media (max-width: 980px) {
  .signal-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    margin: 0 20px 46px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 5, 9, 0.96), rgba(3, 5, 9, 0.48)),
      linear-gradient(0deg, rgba(3, 5, 9, 0.9), transparent 54%);
  }

  .intro-band,
  .section,
  .work-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .intro-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-label {
    padding-top: 0;
  }

  .work-card,
  .work-card:nth-child(2) {
    min-height: 240px;
    transform: none;
  }

}

@media (max-width: 520px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy,
  .section-main p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }
}
