:root {
  --bg: #f7faff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --ink: #101c31;
  --muted: #62728b;
  --line: rgba(117, 148, 186, 0.22);
  --cyan: #00a6cf;
  --blue: #3372ff;
  --aqua: #2fdcc5;
  --lavender: #8c86ff;
  --shadow: 0 22px 65px rgba(36, 76, 132, 0.1);
  --radius: 28px;
  --display: "Manrope", "Noto Sans TC", sans-serif;
  --body: "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
}

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

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

.shell {
  width: min(1200px, calc(100% - 52px));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(15px);
}

.glow-one {
  top: -190px;
  right: -170px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(47, 220, 197, 0.16), rgba(51, 114, 255, 0.04) 53%, transparent 70%);
}

.glow-two {
  top: 520px;
  left: -320px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(51, 114, 255, 0.12), transparent 68%);
}

.grid-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 141, 184, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 141, 184, 0.052) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 0;
  background: rgba(247, 250, 255, 0.68);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(51, 114, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(222, 243, 255, 0.86));
  color: var(--blue);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.27em;
}

.nav-links {
  display: flex;
  gap: 38px;
  align-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

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

.nav-links a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: clamp(50px, 7vw, 92px);
  min-height: calc(100vh - 82px);
  align-items: center;
  padding: 62px 0 92px;
}

.live-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 13px var(--aqua);
}

.kicker {
  margin: 42px 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(55px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #42b79f);
  background-clip: text;
  color: transparent;
  font-size: clamp(36px, 3.85vw, 51px);
  letter-spacing: -0.055em;
}

.lead {
  max-width: 480px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 43px;
}

.hero-skills span {
  border: 1px solid rgba(51, 114, 255, 0.13);
  border-radius: 999px;
  padding: 8px 17px;
  background: rgba(255, 255, 255, 0.67);
  color: #355a87;
  font-size: 13px;
}

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

.button {
  display: inline-flex;
  gap: 13px;
  min-height: 54px;
  padding: 0 27px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.solid {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 32px rgba(51, 114, 255, 0.25);
}

.button.outline {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  padding: 25px 0 34px 29px;
}

.portrait-panel {
  height: min(68vh, 675px);
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% bottom;
}

.floating-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 48px rgba(37, 73, 119, 0.13);
  backdrop-filter: blur(16px);
}

.location-card {
  bottom: 74px;
  left: 0;
  width: 182px;
  border-radius: 22px;
  padding: 20px 21px;
}

.location-card p {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.location-card strong {
  display: block;
  font-family: var(--display);
  font-size: 23px;
}

.location-card span {
  color: var(--muted);
  font-size: 12px;
}

.label {
  margin: 0 0 17px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.section-top {
  position: relative;
  margin-bottom: 48px;
}

.section-top h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.section-note {
  position: absolute;
  right: 0;
  bottom: 7px;
  max-width: 365px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.about,
.projects,
.gallery {
  padding: 83px 0;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.04fr 1fr 0.82fr;
  gap: 17px;
}

.profile {
  padding: 36px 35px;
}

.profile h3 {
  margin: 0 0 19px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.45;
}

.profile > p:not(.label) {
  margin: 0 0 39px;
  color: var(--muted);
  font-size: 14px;
}

.interest-line {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.interest-line span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
}

.interest-line strong {
  font-size: 15px;
}

.timeline {
  padding: 36px 31px;
}

.timeline ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 14px 0 22px 26px;
}

.timeline li:not(:last-child)::before {
  position: absolute;
  top: 27px;
  bottom: -3px;
  left: 5px;
  width: 1px;
  content: "";
  background: #d5e3f6;
}

.timeline .track {
  position: absolute;
  top: 22px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid #caecff;
  border-radius: 50%;
  background: var(--blue);
}

.timeline small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline strong {
  font-size: 15px;
}

.expertise {
  padding: 36px 26px;
}

.expert-row {
  display: grid;
  gap: 6px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.expert-row:last-child {
  border-bottom: 0;
}

.expert-row > span {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.expert-row strong {
  font-size: 16px;
}

.expert-row small {
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
}

.projects {
  margin-top: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
  gap: 17px;
}

.project {
  position: relative;
  min-height: 276px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 31px;
  background: var(--surface-solid);
}

.project.feature {
  background:
    linear-gradient(120deg, rgba(51, 114, 255, 0.94), rgba(0, 166, 207, 0.88)),
    var(--surface-solid);
  color: white;
}

.project.feature .label,
.project.feature p:not(.label),
.project.feature .project-status {
  color: rgba(255, 255, 255, 0.76);
}

.project h3 {
  margin: 18px 0 11px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.project p:not(.project-number, .label) {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-number {
  margin: 0;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.project-status {
  position: absolute;
  bottom: 29px;
  left: 31px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-signal {
  position: absolute;
  right: -12px;
  bottom: 31px;
  display: flex;
  gap: 8px;
  align-items: end;
  opacity: 0.32;
}

.project-signal span {
  width: 8px;
  border-radius: 5px;
  background: white;
}

.project-signal span:nth-child(1) { height: 36px; }
.project-signal span:nth-child(2) { height: 68px; }
.project-signal span:nth-child(3) { height: 102px; }
.project-signal span:nth-child(4) { height: 77px; }

.gallery {
  padding-bottom: 110px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.77fr;
  grid-template-rows: 250px 232px;
  gap: 16px;
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
}

.shot.main-shot {
  grid-row: span 2;
}

.shot.tall-shot {
  grid-row: span 2;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}

.main-shot img {
  object-position: center;
}

.tall-shot img {
  object-position: center 62%;
}

.shot:hover img {
  transform: scale(1.05);
}

.shot::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(5, 18, 37, 0.66));
}

.shot figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 1;
  color: white;
}

.shot figcaption strong {
  display: block;
  font-size: 17px;
}

.shot figcaption span {
  color: rgba(255, 255, 255, 0.77);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 55px 0;
  background: rgba(255, 255, 255, 0.48);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 28px;
}

.copyright {
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
}

.footer-links .label {
  margin-bottom: 7px;
}

.nas-access {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 31px;
  background: white;
}

.nas-access h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nas-access > p:not(.label) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.button.small {
  min-height: 45px;
  padding: 0 19px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr 0.82fr;
    gap: 34px;
  }

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

  .expertise,
  .project.feature {
    grid-column: span 2;
  }

  .section-note {
    position: static;
    margin-top: 17px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 34px, 550px);
  }

  .nav-toggle {
    display: grid;
    gap: 7px;
    width: 45px;
    height: 45px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
  }

  .nav-toggle span:not(.sr-only) {
    width: 19px;
    height: 1px;
    background: var(--ink);
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 17px;
    left: 17px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 43px;
    padding: 44px 0 73px;
  }

  .kicker {
    margin-top: 33px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 56px);
  }

  .hero h1 span {
    font-size: clamp(30px, 9vw, 38px);
  }

  .hero-visual {
    width: 100%;
    padding-left: 0;
  }

  .portrait-panel {
    height: 545px;
    min-height: 0;
  }

  .location-card {
    bottom: 38px;
    left: 14px;
  }

  .about,
  .projects,
  .gallery {
    padding: 57px 0;
  }

  .about-layout,
  .project-grid,
  .gallery-grid,
  .footer-grid {
    display: block;
  }

  .glass,
  .project,
  .shot {
    margin-bottom: 15px;
  }

  .project {
    min-height: 255px;
  }

  .shot,
  .shot.main-shot,
  .shot.tall-shot {
    height: 270px;
  }

  .main-shot {
    height: 350px !important;
  }

  .footer-links {
    margin: 43px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
