:root {
  --ink: #14202c;
  --ink-soft: #3a4a5c;
  --muted: #667688;
  --paper: #eef3f8;
  --paper-2: #e0e8f1;
  --accent: #1a7a8c;
  --accent-deep: #0f5160;
  --glow: rgba(56, 168, 196, 0.32);
  --glow-warm: rgba(232, 140, 74, 0.22);
  --line: rgba(20, 32, 44, 0.12);
  --font-display: "Oxanium", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(1100px 680px at 85% -8%, rgba(56, 168, 196, 0.22), transparent 55%),
    radial-gradient(900px 560px at -12% 18%, rgba(232, 140, 74, 0.14), transparent 48%),
    linear-gradient(180deg, #e8eef5 0%, var(--paper) 38%, #dfe7f0 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
  background: rgba(238, 243, 248, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(238, 243, 248, 0.88);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent-deep);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 44, 0.42) 0%, rgba(238, 243, 248, 0.5) 62%, var(--paper) 100%),
    linear-gradient(115deg, rgba(8, 40, 48, 0.45), transparent 48%),
    url("https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
  animation: wash-in 1.4s var(--ease) both;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 10s ease-in-out infinite;
}

.hero-orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 12%;
  right: 8%;
  background: var(--glow);
}

.hero-orb--b {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: 18%;
  left: 5%;
  background: var(--glow-warm);
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 32, 44, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 44, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #0c1620;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #101a26;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.125rem);
  animation: rise 0.9s var(--ease) 0.34s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.9s var(--ease) 0.46s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--accent-deep);
  color: #f2f8fa;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
}

.section {
  padding: clamp(4.5rem, 12vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  line-height: 1.25;
}

.section-copy {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.values li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.values strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.values span {
  color: var(--muted);
  font-size: 0.95rem;
}

.work {
  position: relative;
  background:
    linear-gradient(180deg, transparent, rgba(224, 232, 241, 0.85) 18%, rgba(224, 232, 241, 0.9) 82%, transparent),
    url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1800&q=70")
      center / cover no-repeat;
  background-blend-mode: normal, soft-light;
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(238, 243, 248, 0.92) 0%,
    rgba(224, 232, 241, 0.88) 50%,
    rgba(238, 243, 248, 0.95) 100%
  );
  pointer-events: none;
}

.work .section-inner {
  position: relative;
  z-index: 1;
}

.work-list {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 900px) {
  .work-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.work-num {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.work-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  padding-bottom: clamp(5rem, 14vh, 8rem);
}

.contact-inner {
  text-align: left;
}

.mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.8vw, 2.75rem);
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.mail:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--accent-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

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

@keyframes wash-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 1rem;
    font-size: 0.82rem;
  }

  .hero {
    align-items: center;
  }
}

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

  .brand,
  .hero h1,
  .lead,
  .cta-row,
  .hero-wash,
  .hero-orb,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
