:root {
  --ink: #0b1f33;
  --muted: rgba(11, 31, 51, 0.68);
  --paper: #eaf6ff;
  --surface: #ffffff;
  --line: rgba(140, 180, 255, 0.44);
  --line-strong: rgba(85, 145, 225, 0.58);
  --blue: #78aaff;
  --cyan: #aee8ff;
  --deep-blue: #245fc4;
  --glow: rgba(120, 170, 255, 0.38);
  --shadow: 0 20px 70px rgba(120, 170, 255, 0.22);
  --max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(11, 31, 51, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 31, 51, 0.035) 1px, transparent 1px),
    radial-gradient(900px 500px at 15% 15%, rgba(120, 170, 255, 0.4), transparent 60%),
    radial-gradient(700px 420px at 86% 20%, rgba(174, 232, 255, 0.56), transparent 58%),
    radial-gradient(640px 560px at 50% 90%, rgba(200, 220, 255, 0.42), transparent 62%),
    linear-gradient(145deg, #f9fdff 0%, var(--paper) 44%, #d6f0ff 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  font-family: "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
}

body::selection {
  color: #fff;
  background: var(--deep-blue);
}

a {
  color: inherit;
}

.site-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.032) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(140, 180, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(120, 170, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--blue));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  min-height: 34px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(120, 170, 255, 0.14);
}

.nav a[aria-current="page"] {
  color: var(--deep-blue);
  background: rgba(120, 170, 255, 0.16);
}

.page {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 72px 0 90px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-label,
.work-kicker {
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
}

.title {
  min-height: 190px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(48px, 6.8vw, 88px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.cursor {
  display: inline-block;
  margin-left: 6px;
  color: var(--blue);
  animation: blink 900ms steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.sub {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.btn,
.work-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.work-link:hover {
  transform: translateY(-2px);
  border-color: var(--deep-blue);
  background: #fff;
}

.btn.primary {
  color: #fff;
  border-color: var(--deep-blue);
  background: linear-gradient(135deg, var(--deep-blue), var(--blue));
  box-shadow: 0 12px 32px rgba(120, 170, 255, 0.36);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 30px;
  padding: 9px 12px;
  border: 1px solid rgba(140, 180, 255, 0.44);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deep-blue);
  box-shadow: 0 0 0 5px rgba(120, 170, 255, 0.18);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.36);
  border-radius: 8px;
  background: #07172a;
  box-shadow: var(--shadow);
}

.visual-topbar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.visual-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #eaf6ff;
}

.visual-topbar span:nth-child(2) {
  background: var(--cyan);
}

.visual-topbar span:nth-child(3) {
  background: var(--blue);
}

.visual-stage {
  position: relative;
  min-height: 390px;
  padding: 26px;
  color: #eef8ff;
  background:
    linear-gradient(90deg, rgba(214, 240, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 240, 255, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, rgba(120, 170, 255, 0.34), transparent 45%),
    linear-gradient(320deg, rgba(174, 232, 255, 0.22), transparent 45%),
    #07172a;
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%, 100% 100%;
}

.model-logo {
  position: absolute;
  inset: 26px;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  perspective: 900px;
  background:
    radial-gradient(circle at 46% 34%, rgba(174, 232, 255, 0.08), transparent 12%),
    radial-gradient(circle at 50% 56%, rgba(34, 72, 126, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(4, 14, 28, 0.9), rgba(1, 7, 17, 0.98)),
    #020812;
}

.model-logo::before,
.model-logo::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(174, 232, 255, 0.14);
  border-radius: 50%;
  opacity: 0.9;
  transform: rotateX(66deg) rotateZ(0deg);
  animation: orbitSpin 12s linear infinite;
}

.model-logo::after {
  inset: 21%;
  border-color: rgba(120, 170, 255, 0.2);
  animation-duration: 8s;
  animation-direction: reverse;
}

.model-glow {
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dff7ff;
  filter: blur(48px);
  opacity: 0.08;
  animation: logoPulse 3.6s ease-in-out infinite;
}

.model-logo-viewer {
  position: relative;
  z-index: 2;
  width: min(44%, 230px);
  height: min(68%, 290px);
  min-width: 168px;
  min-height: 198px;
  --poster-color: transparent;
  filter:
    saturate(0.72)
    brightness(0.9)
    contrast(1.08)
    drop-shadow(0 18px 28px rgba(0, 3, 12, 0.42))
    drop-shadow(0 0 18px rgba(188, 226, 255, 0.22));
  animation: modelFloat 5s ease-in-out infinite;
}

.model-spotlight {
  position: absolute;
  z-index: 3;
  width: 28%;
  aspect-ratio: 1;
  left: 47%;
  top: 19%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.54) 0 8%, rgba(185, 229, 255, 0.2) 24%, transparent 60%);
  filter: blur(9px);
  mix-blend-mode: screen;
  opacity: 0.48;
  pointer-events: none;
  animation: spotlightDrift 6.8s ease-in-out infinite;
}

.logo-shine {
  position: absolute;
  z-index: 4;
  width: 22%;
  height: 120%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(197, 238, 255, 0.46), transparent);
  filter: blur(14px);
  opacity: 0.1;
  transform: translateX(-170%) rotate(18deg);
  animation: shineSweep 5.4s ease-in-out infinite;
  pointer-events: none;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(214, 240, 255, 0.24);
  pointer-events: none;
  z-index: 2;
}

@keyframes modelFloat {
  0%,
  100% {
    translate: 0 -4px;
  }

  50% {
    translate: 0 8px;
  }
}

@keyframes spotlightDrift {
  0%,
  100% {
    transform: translate(-10%, -4%) scale(0.9);
  }

  50% {
    transform: translate(8%, 10%) scale(1.08);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.48;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.68;
  }
}

@keyframes orbitSpin {
  to {
    transform: rotateX(66deg) rotateZ(360deg);
  }
}

@keyframes shineSweep {
  0%,
  38% {
    transform: translateX(-170%) rotate(18deg);
  }

  72%,
  100% {
    transform: translateX(170%) rotate(18deg);
  }
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: translateY(-100%);
  animation: scan 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0%,
  34% {
    transform: translateY(-100%);
  }

  70%,
  100% {
    transform: translateY(100%);
  }
}

.frame-number {
  position: relative;
  z-index: 4;
  width: fit-content;
  padding: 7px 9px;
  border-radius: 6px;
  color: rgba(234, 246, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline {
  display: grid;
  gap: 10px;
  padding: 24px 28px 28px;
  background:
    radial-gradient(circle at 22% 0%, rgba(98, 151, 245, 0.2), transparent 34%),
    linear-gradient(135deg, #061326, #071a31 55%, #041023);
}

.timeline p {
  margin: 0;
}

.mockup-title {
  color: rgba(234, 246, 255, 0.96);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
}

.mockup-title span {
  color: var(--blue);
}

.mockup-line {
  color: rgba(214, 240, 255, 0.86);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
}

.mockup-caption {
  color: rgba(174, 205, 226, 0.76);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.55;
}

.section-block {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.subpage {
  padding-bottom: 80px;
}

.works-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 76px;
}

.works-title {
  max-width: 860px;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(56px, 8vw, 118px);
  font-weight: 880;
  line-height: 0.94;
  letter-spacing: 0;
}

.works-lead {
  max-width: 640px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.works-page-section {
  padding-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 640px;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-text {
  grid-column: 2;
  max-width: 660px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.about-list,
.contact-list {
  display: grid;
  gap: 10px;
}

.about-item,
.contact-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.about-item:hover,
.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 170, 255, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(120, 170, 255, 0.14);
}

.about-name,
.contact-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-value,
.contact-value {
  color: rgba(11, 31, 51, 0.78);
  font-size: 15px;
  line-height: 1.85;
}

.contact-item {
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.contact-value {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  font-weight: 700;
}

.contact-value::after {
  content: "Open";
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--blue));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.42);
  border-radius: 8px;
  color: #eef8ff;
  background:
    linear-gradient(90deg, rgba(214, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #07172a 0%, #0b1f33 52%, #245fc4 150%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  box-shadow: var(--shadow);
}

.work-showcase-large {
  min-height: 340px;
}

.work-showcase h2,
.work-showcase h3 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.work-showcase .work-kicker {
  color: var(--cyan);
}

.work-link {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.88);
  background: #eaf6ff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.work-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 34px rgba(120, 170, 255, 0.1);
}

.work-card h3 {
  margin-top: 54px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.work-card p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.reveal,
.about-item,
.contact-item,
.work-showcase {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

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

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

@media (max-width: 860px) {
  .site-header {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 28px));
    padding-top: 56px;
  }

  .title {
    min-height: 118px;
  }

  .section-block {
    width: min(var(--max), calc(100% - 28px));
    padding: 68px 0;
  }

  .works-page-section {
    padding-top: 0;
  }

  .works-hero {
    width: min(var(--max), calc(100% - 28px));
    padding: 84px 0 56px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-text {
    grid-column: auto;
  }

  .hero-visual {
    max-width: 560px;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .title {
    min-height: 102px;
    font-size: clamp(42px, 15vw, 70px);
  }

  .sub {
    font-size: 16px;
  }

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

  .btn {
    width: 100%;
  }

  .visual-stage {
    min-height: 330px;
    padding: 18px;
  }

  .model-logo {
    inset: 18px;
  }

  .visual-stage::before {
    inset: 18px;
  }

  .about-item,
  .contact-item,
  .work-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .work-showcase-large {
    min-height: 280px;
  }

  .contact-value {
    align-items: flex-start;
    flex-direction: column;
  }
}
