:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --surface: #f5f5f7;
  --white: #fff;
  --radius: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100% - 36px, 1100px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, .76);
}
.brand { font-size: 22px; font-weight: 750; letter-spacing: -.04em; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-contact {
  padding: 8px 14px;
  color: white;
  border-radius: 999px;
  background: var(--blue);
}

.section { width: min(100% - 40px, 1100px); margin-inline: auto; }
.hero {
  position: relative;
  min-height: 760px;
  padding-top: 190px;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .contact h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}
.hero h1 { max-width: 860px; font-size: clamp(58px, 9vw, 110px); }
.hero h1 span, .contact h2 span { color: #a1a1a6; }
.hero-copy {
  max-width: 570px;
  margin: 36px 0 30px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  color: white;
  border-radius: 999px;
  background: var(--blue);
  font-size: 15px;
  transition: transform .25s, background .25s;
}
.button:hover { transform: translateY(-2px); background: #0077ed; }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.orb-one {
  right: -120px;
  top: 130px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle at 30% 30%, #dff3ff, #a8d5ff 45%, #f4e9ff);
  opacity: .8;
}
.orb-two {
  right: 170px;
  top: 420px;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, #d7edff, #efe2ff);
  opacity: .7;
}

.about, .project { padding: 140px 0; }
.section-heading { margin-bottom: 64px; }
.section-heading h2 { max-width: 900px; font-size: clamp(44px, 7vw, 78px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  min-height: 420px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
}
.education { color: white; background: var(--ink); }
.identity { background: var(--surface); }
.card-index { font-size: 14px; opacity: .6; }
.card-label { margin: 0 0 12px; font-size: 14px; opacity: .65; }
.card h3 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; }
.card div > p:last-child { margin: 12px 0 0; font-size: 18px; opacity: .7; }

.project { padding-top: 80px; }
.project-card {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  color: white;
  background: #0a0a0b;
}
.project-copy { padding: clamp(38px, 6vw, 72px); align-self: center; }
.project-number { color: #54a9ff; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.project-copy h3 {
  margin: 16px 0 24px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.project-copy > p { color: #a1a1a6; font-size: 17px; line-height: 1.8; }
.project-copy ul { display: flex; gap: 9px; padding: 0; margin: 30px 0 0; list-style: none; flex-wrap: wrap; }
.project-copy li {
  padding: 8px 12px;
  border: 1px solid #38383a;
  border-radius: 999px;
  color: #d2d2d7;
  font-size: 12px;
}
.dog-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 113, 227, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 113, 227, .1) 1px, transparent 1px),
    radial-gradient(circle at center, #11345c 0, #08111b 48%, #050506 75%);
  background-size: 44px 44px, 44px 44px, auto;
}
.dog-visual > p {
  position: absolute; right: 25px; bottom: 18px;
  color: #54a9ff; font: 10px monospace; letter-spacing: .16em;
}
.scan-line {
  position: absolute; z-index: 4; width: 100%; height: 2px;
  background: #46a6ff; box-shadow: 0 0 18px #1688f4;
  animation: scan 4s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 12%; opacity: .3; } 50% { top: 82%; opacity: 1; } }
.dog {
  position: absolute; left: 50%; top: 51%; width: 280px; height: 190px;
  transform: translate(-50%, -50%);
}
.dog-body {
  position: absolute; left: 55px; top: 45px; width: 175px; height: 78px;
  border: 2px solid #65b4ff; border-radius: 20px 28px 18px 18px;
  background: linear-gradient(145deg, rgba(42, 135, 220, .45), rgba(4, 19, 32, .8));
  box-shadow: inset 0 0 28px rgba(51, 155, 255, .18), 0 0 30px rgba(23, 131, 230, .2);
}
.dog-body span, .dog-body b {
  position: absolute; top: 24px; width: 29px; height: 29px;
  border: 1px solid #3e8fd7; border-radius: 50%;
}
.dog-body span { left: 28px; } .dog-body b { right: 28px; }
.dog-head {
  position: absolute; z-index: 2; right: 3px; top: 25px; width: 70px; height: 62px;
  border: 2px solid #65b4ff; border-radius: 15px 24px 18px 13px;
  background: #0b2944;
}
.dog-head i {
  position: absolute; right: 12px; top: 18px; width: 9px; height: 9px;
  border-radius: 50%; background: #ff593d; box-shadow: 0 0 13px #ff3b1f;
}
.leg {
  position: absolute; top: 112px; width: 16px; height: 72px;
  border: 2px solid #65b4ff; border-radius: 7px; background: #0a2237;
  transform-origin: top;
}
.leg::after {
  content: ""; position: absolute; left: -4px; bottom: -7px; width: 31px; height: 10px;
  border: 2px solid #65b4ff; border-radius: 8px; background: #0a2237;
}
.leg-a { left: 70px; transform: rotate(9deg); }
.leg-b { left: 112px; transform: rotate(-8deg); }
.leg-c { right: 67px; transform: rotate(8deg); }
.leg-d { right: 103px; transform: rotate(-9deg); }

.contact { padding: 180px 0; text-align: center; }
.contact h2 { font-size: clamp(60px, 10vw, 118px); }
.phone {
  display: inline-flex; gap: 16px; align-items: center;
  margin-top: 54px; color: var(--blue); font-size: clamp(22px, 4vw, 36px);
}
.phone span { transition: transform .2s; }
.phone:hover span { transform: translate(4px, -4px); }

footer {
  width: min(100% - 40px, 1100px);
  margin: auto;
  padding: 26px 0 40px;
  display: flex; justify-content: space-between;
  border-top: 1px solid #d2d2d7;
  color: var(--muted); font-size: 12px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav nav a:not(.nav-contact) { display: none; }
  .hero { min-height: 700px; padding-top: 150px; }
  .hero-copy { font-size: 18px; }
  .orb-one { right: -210px; top: 260px; }
  .about, .project { padding: 90px 0; }
  .about-grid, .project-card { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
  .project-copy { order: 2; }
  .dog-visual { min-height: 390px; }
  .dog { transform: translate(-50%, -50%) scale(.82); }
  .contact { padding: 120px 0; }
  footer { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-line { animation: none; top: 52%; }
}
