@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #f3f0e8;
  --ink: #121212;
  --acid: #d9ff3f;
  --pink: #ff6fae;
  --purple: #7759ff;
  --line: #121212;
  --paper: #fffdf7;
  --shadow: 8px 8px 0 #121212;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(119, 89, 255, 0.12), transparent 28%),
    radial-gradient(circle at 90% 30%, rgba(255, 111, 174, 0.16), transparent 24%),
    var(--bg);
  font-family: "Noto Sans TC", sans-serif;
}

a {
  color: inherit;
}

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

.developer-title {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 4px 4px 0 var(--line);
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  backdrop-filter: blur(10px);
}

.developer-title.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -24px);
}

.developer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 111, 174, 0.22);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: 120px max(6vw, 24px) 84px;
  border-bottom: 3px solid var(--line);
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.scribble {
  position: relative;
  display: inline-block;
  color: var(--purple);
  transform: rotate(-2deg);
}

.scribble::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -8px;
  left: -4px;
  height: 12px;
  border-radius: 50%;
  background: var(--acid);
  transform: rotate(-2deg);
  z-index: -1;
}

.intro {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.status {
  padding: 7px 11px;
  border: 2px solid var(--line);
  background: var(--acid);
  font-weight: 700;
  transform: rotate(-1deg);
}

.tiny-note {
  font-size: 12px;
  opacity: 0.65;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-btn {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.social-btn:hover {
  box-shadow: 2px 2px 0 var(--line);
  transform: translate(3px, 3px);
}

.social-btn small {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}

.social-btn span:last-child {
  font-weight: 900;
  line-height: 1.1;
}

.line {
  background: var(--acid);
}

.instagram {
  background: var(--pink);
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.photo-frame {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  padding: 14px;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.photo-frame img {
  aspect-ratio: 4 / 5;
  border: 2px solid var(--line);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

.image-missing {
  min-height: 420px;
  background:
    linear-gradient(135deg, transparent 47%, var(--line) 48%, var(--line) 52%, transparent 53%),
    linear-gradient(45deg, transparent 47%, var(--line) 48%, var(--line) 52%, transparent 53%),
    #d9d4ca;
  color: transparent;
}

.photo-sticker {
  position: absolute;
  padding: 7px 11px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 12px;
  font-weight: 900;
}

.sticker-one {
  top: 8%;
  left: -28px;
  background: var(--acid);
  transform: rotate(-8deg);
}

.sticker-two {
  right: -34px;
  bottom: 18%;
  background: var(--pink);
  transform: rotate(8deg);
}

.sticker-three {
  right: 8px;
  bottom: -25px;
  background: var(--paper);
  transform: rotate(-3deg);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
  animation: bounce 1.6s ease-in-out infinite;
}

.section {
  padding: 110px max(6vw, 24px);
  border-bottom: 3px solid var(--line);
}

.section-label {
  display: inline-block;
  margin-bottom: 38px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
}

.about-photo {
  position: relative;
  max-width: 470px;
}

.about-photo img {
  aspect-ratio: 4 / 5;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  transform: rotate(-2deg);
}

.warning-label {
  position: absolute;
  right: -22px;
  bottom: -18px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 900;
  transform: rotate(4deg);
}

.about-content h2,
.gallery-heading h2,
.contact-card h2 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.about-content > p,
.gallery-heading p,
.contact-card > p {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.8;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.fact {
  min-height: 115px;
  padding: 20px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 253, 247, 0.55);
}

.fact span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  opacity: 0.6;
}

.fact strong {
  font-size: 18px;
}

.gallery {
  background: var(--paper);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-heading p {
  max-width: 360px;
  margin-bottom: 8px;
  font-size: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 24px;
}

.gallery-card {
  margin: 0;
  padding: 10px;
  border: 3px solid var(--line);
  background: var(--bg);
  box-shadow: 6px 6px 0 var(--line);
}

.gallery-card:nth-child(2) {
  transform: translateY(50px) rotate(1deg);
}

.gallery-card:nth-child(3) {
  transform: rotate(-1deg);
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line);
  object-fit: cover;
}

.gallery-card.card-tall img {
  aspect-ratio: 4 / 5;
}

.gallery-card figcaption {
  padding: 14px 5px 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.contact {
  min-height: 75vh;
  display: grid;
  place-items: center;
  background: var(--purple);
}

.contact-card {
  width: min(980px, 100%);
  padding: clamp(30px, 6vw, 80px);
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--line);
  text-align: center;
  transform: rotate(-0.8deg);
}

.contact-card > p {
  margin-right: auto;
  margin-left: auto;
}

.contact-buttons {
  justify-content: center;
  margin-top: 34px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(6vw, 24px);
  border-top: 3px solid var(--line);
  background: var(--ink);
  color: white;
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 125px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    width: min(90%, 520px);
    margin: 20px auto 40px;
  }

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

  .about-photo {
    width: min(88%, 470px);
    margin-inline: auto;
  }

  .gallery-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .gallery-card:first-child {
    grid-row: span 2;
  }

  .gallery-card:nth-child(2) {
    transform: translateY(20px) rotate(1deg);
  }
}

@media (max-width: 620px) {
  .developer-title {
    top: 12px;
    width: max-content;
    max-width: calc(100% - 28px);
    justify-content: center;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 100px 18px 82px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

  .intro {
    font-size: 16px;
  }

  .social-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-btn {
    width: 100%;
  }

  .photo-frame {
    box-shadow: 6px 6px 0 var(--line);
  }

  .sticker-one {
    left: -12px;
  }

  .sticker-two {
    right: -12px;
  }

  .scroll-hint {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 82px 18px;
  }

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

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

  .gallery-card:first-child {
    grid-row: auto;
  }

  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3) {
    transform: none;
  }

  .contact-card {
    padding: 38px 20px;
    box-shadow: 7px 7px 0 var(--line);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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