:root {
  --black: #1d1d1f;
  --gray: #6e6e73;
  --light-gray: #f5f5f7;
  --blue: #0071e3;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 52px;
  background: rgba(250, 250, 252, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-shell {
  display: flex;
  width: min(var(--max-width), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 36px;
  color: #3d3d3f;
  font-size: 12px;
  font-weight: 500;
}

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

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

.nav-contact {
  font-size: 12px;
  font-weight: 600;
}

.hero {
  position: relative;
  display: flex;
  min-height: 94vh;
  padding: 150px 24px 110px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background:
    radial-gradient(circle at 50% 75%, rgba(215, 226, 255, 0.52), transparent 35%),
    linear-gradient(180deg, #fff 0%, #fafaff 100%);
  isolation: isolate;
}

.hero-eyebrow {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(52px, 8.2vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(100deg, #1d1d1f 5%, #7777e8 48%, #44a8e9 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 610px;
  margin: 36px 0 0;
  color: var(--gray);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.hero-link {
  display: inline-flex;
  margin-top: 34px;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
}

.hero-link span {
  transition: transform 180ms ease;
}

.hero-link:hover span {
  transform: translateY(4px);
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
}

.orb-one {
  right: -130px;
  bottom: 5%;
  width: 380px;
  height: 380px;
  background: linear-gradient(145deg, rgba(105, 211, 255, 0.45), rgba(158, 120, 255, 0.25));
}

.orb-two {
  bottom: -220px;
  left: -120px;
  width: 470px;
  height: 470px;
  background: linear-gradient(145deg, rgba(255, 159, 213, 0.25), rgba(136, 177, 255, 0.38));
}

.project-section {
  padding: 130px 24px;
  background: var(--light-gray);
}

.section-heading,
.project-list,
.about-section,
footer {
  width: min(var(--max-width), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading p,
.about-label {
  margin: 0 0 10px;
  color: #86868b;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.project-list {
  display: grid;
  gap: 28px;
}

.project-card {
  --card-bg: #e9f2ff;
  --card-text: #1d1d1f;
  position: relative;
  display: grid;
  min-height: 630px;
  padding: clamp(40px, 6vw, 76px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--card-bg);
  color: var(--card-text);
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.project-card:nth-child(even) .project-visual {
  order: -1;
}

.project-copy {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.project-number {
  margin: 0 0 16px;
  opacity: 0.6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.project-description {
  margin: 22px 0 0;
  opacity: 0.72;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
}

.shortcut-list {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 10px;
}

.shortcut-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-card[data-dark="true"] .shortcut-button {
  background: white;
  color: var(--black);
}

.shortcut-button:hover {
  opacity: 0.82;
  transform: scale(1.025);
}

.shortcut-button.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.project-visual {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 430px;
  place-items: center;
}

.device-frame {
  position: relative;
  width: min(520px, 92%);
  aspect-ratio: 1.42;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: white;
  box-shadow: 0 34px 75px rgba(25, 35, 70, 0.2);
  transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:nth-child(even) .device-frame {
  transform: perspective(1000px) rotateY(7deg) rotateX(3deg);
}

.project-card:hover .device-frame {
  transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-8px);
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.abstract-visual {
  position: relative;
  width: min(430px, 82%);
  aspect-ratio: 1;
  border-radius: 32%;
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.95), transparent 18%),
    linear-gradient(145deg, var(--visual-a), var(--visual-b));
  box-shadow:
    inset -30px -30px 60px rgba(0, 0, 0, 0.1),
    0 40px 90px rgba(0, 0, 0, 0.2);
  transform: rotate(-8deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.abstract-visual::after {
  position: absolute;
  inset: 16%;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.project-card:hover .abstract-visual {
  transform: rotate(0) scale(1.03);
}

.about-section {
  display: grid;
  padding: 150px 24px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
}

.about-copy {
  margin: 0 0 7px;
  color: var(--gray);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.7;
  font-weight: 500;
}

footer {
  display: flex;
  padding: 28px 0 38px;
  border-top: 1px solid #d2d2d7;
  justify-content: space-between;
  color: #86868b;
  font-size: 12px;
}

.reveal {
  animation: rise 900ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero h1 {
  animation-delay: 100ms;
}

.hero-description {
  animation-delay: 180ms;
}

.hero-link {
  animation-delay: 260ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

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

  .project-section {
    padding: 90px 16px;
  }

  .project-card {
    min-height: 720px;
    padding: 42px 28px 32px;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 30px;
  }

  .project-card:nth-child(even) .project-visual {
    order: initial;
  }

  .project-visual {
    min-height: 320px;
  }

  .about-section {
    padding: 100px 24px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  footer {
    width: calc(100% - 48px);
  }
}

@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;
  }
}
