:root {
  --background: #131313;
  --surface-lowest: #0e0e0e;
  --surface-low: #1b1b1b;
  --surface: #1f1f1f;
  --surface-high: #2a2a2a;
  --surface-highest: #353535;
  --text: #e2e2e2;
  --muted: #c6c6c6;
  --ghost: rgba(71, 71, 71, 0.18);
  --primary: #ffffff;
  --primary-text: #1a1c1c;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --easing: cubic-bezier(0.2, 0, 0, 1);
  --container: min(1400px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Manrope", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 2px 2px,
      rgba(53, 53, 53, 0.85) 1px,
      transparent 0
    ),
    var(--background);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 36%);
}

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(19, 19, 19, 0.7);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0;
}

.brand,
.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.site-nav,
.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 240ms var(--easing);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  color: var(--primary);
}

.header-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition:
    transform 220ms var(--easing),
    opacity 220ms var(--easing),
    background-color 220ms var(--easing);
}

.header-link,
.button-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.button-secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(71, 71, 71, 0.32);
}

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

.menu-toggle {
  display: none;
  justify-self: end;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  background: var(--primary);
  color: var(--primary-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 144px 0 96px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0) 0%,
    var(--surface) 100%
  );
  z-index: -1;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  width: var(--container);
  min-height: calc(100vh - 240px);
  margin: 0 auto;
}

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

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.info-copy h2 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(4.6rem, 13vw, 10rem);
  line-height: 0.86;
}

.hero-text,
.about-body p,
.service-card p,
.project-copy p,
.info-copy p,
.info-list dd {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 520px;
  margin-top: 28px;
  font-size: 1rem;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
}

.scroll-cue {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(71, 71, 71, 0.2);
  color: var(--primary);
  font-size: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.section {
  padding: 132px 0;
}

.section-surface-low {
  background: var(--surface-low);
}

.section-surface {
  background: var(--surface);
}

.section-surface-deep {
  background: var(--surface-lowest);
}

.about-grid,
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 96px;
  align-items: center;
}

.visual-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.01)
    ),
    var(--surface);
}

.visual-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.15), transparent 35%),
    linear-gradient(250deg, rgba(255, 255, 255, 0.08), transparent 40%);
  content: "";
}

.visual-panel {
  position: absolute;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(255, 255, 255, 0.03);
}

.visual-panel-large {
  bottom: 0;
  left: 0;
  width: 72%;
  height: 84%;
  clip-path: polygon(0 100%, 0 24%, 18% 0, 62% 0, 100% 100%);
}

.visual-panel-tall {
  right: 12%;
  bottom: 0;
  width: 16%;
  height: 34%;
}

.visual-panel-small {
  left: 12%;
  bottom: 0;
  width: 18%;
  height: 54%;
  opacity: 0.6;
}

.about-copy h2,
.section-heading h2,
.info-copy h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.about-body {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.number-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  box-shadow: inset 0 1px 0 rgba(71, 71, 71, 0.15);
}

.number-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.number-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-split span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 44px;
  background: var(--surface-low);
  transition:
    transform 260ms var(--easing),
    background-color 260ms var(--easing),
    opacity 260ms var(--easing);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card-wide {
  grid-column: span 2;
}

.service-card-accent {
  background: var(--surface-high);
}

.service-card-inset {
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(71, 71, 71, 0.15);
}

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

.service-aside {
  width: 220px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(
      circle at 60% 40%,
      rgba(255, 255, 255, 0.26),
      transparent 16%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 58%),
    var(--surface-high);
  opacity: 0.58;
}

.service-icon {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.service-card h3,
.project-copy h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--primary);
}

.service-meta,
.project-copy span {
  display: inline-block;
  margin-top: 30px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.project-card-reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
}

.project-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--surface);
}

.project-media-commerce {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%), #202020;
}

.project-media-app {
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%), #1b1b1b;
}

.media-glow,
.media-orbit {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 28% 28%,
      rgba(255, 255, 255, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at 72% 62%,
      rgba(255, 255, 255, 0.08),
      transparent 24%
    );
  opacity: 0.65;
}

.media-frame,
.media-core {
  position: absolute;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.media-frame-wide {
  top: 16%;
  left: 14%;
  width: 58%;
  height: 24%;
}

.media-frame-left {
  bottom: 14%;
  left: 10%;
  width: 72%;
  height: 38%;
}

.media-core {
  top: 50%;
  left: 50%;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.media-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  content: "";
}

.info-panel {
  padding: 44px;
  background: var(--surface-low);
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 28px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 8px;
}

.info-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
}

.site-footer {
  padding: 56px 0;
  display: flex;
  background: var(--surface-lowest);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  width: var(--container);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.footer-meta {
  display: grid;
  gap: 16px;
  margin: 0;
}

.footer-meta div {
  display: grid;
  gap: 6px;
}

.footer-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-meta dd {
  margin: 0;
  color: var(--primary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-side {
  display: grid;
  justify-items: end;
  gap: 24px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

body.has-motion .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms var(--easing),
    transform 700ms var(--easing);
}

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

@media (max-width: 1120px) {
  .hero-inner,
  .about-grid,
  .info-grid,
  .project-card,
  .project-card-reverse {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero-rail {
    align-items: flex-start;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 840px) {
  :root {
    --container: min(100vw - 32px, 100vw - 32px);
  }

  .site-header__inner {
    grid-template-columns: auto auto;
    gap: 16px;
    padding: 18px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav,
  .header-link {
    display: none;
  }

  .site-header.is-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    gap: 16px;
    padding-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 128px;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 19vw, 6.4rem);
  }

  .section {
    padding: 92px 0;
  }

  .section-heading,
  .section-heading-split {
    margin-bottom: 52px;
  }

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

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

  .service-card,
  .service-card-wide {
    grid-column: span 1;
    min-height: auto;
    padding: 32px;
  }

  .service-wide-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-aside {
    width: 100%;
    max-width: 240px;
  }

  .project-list {
    gap: 56px;
  }

  .project-media {
    min-height: 260px;
  }

  .visual-stage,
  .info-panel {
    min-height: 340px;
  }

  .number-row {
    flex-wrap: wrap;
    gap: 28px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-side {
    justify-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-text,
  .about-body p,
  .service-card p,
  .project-copy p,
  .info-copy p,
  .info-list dd {
    font-size: 0.95rem;
  }

  .scroll-cue {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    padding: 40px 0 48px;
  }

  .site-footer__inner {
    gap: 18px;
  }
}

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

  .button,
  .header-link,
  .service-card,
  body.has-motion .reveal,
  body.has-motion .reveal.is-visible {
    transition: none;
    transform: none;
  }

  body.has-motion .reveal,
  body.has-motion .reveal.is-visible {
    opacity: 1;
  }
}
